ETH Price: $3,257.11 (-4.65%)
Gas: 10 Gwei

Token

BYOKEY (BYK)
 

Overview

Max Total Supply

0 BYK

Holders

164

Market

Volume (24H)

N/A

Min Price (24H)

N/A

Max Price (24H)

N/A
0x9E4A9b4334F3167Bc7DD35f48f2238c73F532bAf
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:
BYOKey

Compiler Version
v0.8.7+commit.e28d00a7

Optimization Enabled:
No with 200 runs

Other Settings:
default evmVersion
File 1 of 19 : BYOKey.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.7;

import "@openzeppelin/contracts/token/ERC1155/ERC1155.sol";
import "@openzeppelin/contracts/utils/cryptography/MerkleProof.sol";
import "@openzeppelin/contracts/utils/math/SafeMath.sol";
import "@openzeppelin/contracts/utils/Counters.sol";

import "./BYOKeyInterface.sol";
import "./TokenInterface.sol";

contract BYOKey is BYOKeyInterface {

    using SafeMath for uint256;
    using Counters for Counters.Counter;

    struct BYOKey {
        bool isCollectingOpen;                                                       
        uint256 mintPrice;                              
        uint256 maxPerTx;                               
        string uriHash;                                 
        address redeemableAddress;                      
        bytes32 merkle;                                 
        bool isWhitelistBased;                          
        bool enforceBalance;                            
        address linkedAsset;                            
    }

    mapping(uint256 => BYOKey) public byoKeys;
    Counters.Counter private keyCounter; 
    
    constructor(string memory _name,
        string memory _symbol) ERC1155("") {
        m_Name = _name;
        m_Symbol = _symbol;
    }

    function createBYOKey(
        bytes32 _merkle,
        bool _isWhitelistBased,
        bool _enforceBalance,
        uint256  _mintPrice, 
        uint256 _maxPerTx,
        string memory _uriHash,
        address _redeemableAddress,
        address _linkedAsset
    ) external onlyOwner {
        BYOKey storage byoKey = byoKeys[keyCounter.current()];
        byoKey.merkle = _merkle;
        byoKey.isCollectingOpen = false;
        byoKey.isWhitelistBased = _isWhitelistBased;
        byoKey.enforceBalance = _enforceBalance;
        byoKey.mintPrice = _mintPrice;
        byoKey.maxPerTx = _maxPerTx;
        byoKey.uriHash = _uriHash;
        byoKey.redeemableAddress = _redeemableAddress;
        byoKey.linkedAsset = _linkedAsset;
        keyCounter.increment();
    }

    function editBYOKey(
        bytes32 _merkle,
        bool _isWhitelistBased,
        bool _enforceBalance,
        uint256  _mintPrice, 
        uint256 _maxPerTx,
        string memory _uriHash,
        address _redeemableAddress,
        address _linkedAsset,
        uint256 _keyIdx
    ) external onlyOwner {
        byoKeys[_keyIdx].merkle = _merkle;
        byoKeys[_keyIdx].isWhitelistBased = _isWhitelistBased;
        byoKeys[_keyIdx].enforceBalance = _enforceBalance;
        byoKeys[_keyIdx].mintPrice = _mintPrice; 
        byoKeys[_keyIdx].maxPerTx = _maxPerTx;    
        byoKeys[_keyIdx].uriHash = _uriHash;    
        byoKeys[_keyIdx].redeemableAddress = _redeemableAddress;  
        byoKeys[_keyIdx].linkedAsset = _linkedAsset;
    }   

    function isCollectingOpen (uint256 _keyIdx) public view returns (bool) {
        return byoKeys[_keyIdx].isCollectingOpen;
    }

    function toggleCollecting (uint256 _keyIdx) external onlyOwner {
        byoKeys[_keyIdx].isCollectingOpen = !byoKeys[_keyIdx].isCollectingOpen;
    }

    function ownerCollect (uint256 _numPasses, uint256 _keyIdx) external onlyOwner {
        _mint(msg.sender, _keyIdx, _numPasses, "");
    }

    function publicCollect (
        uint256 _numPasses,
        uint256 _keyIdx
    ) external payable {
        require (byoKeys[_keyIdx].isCollectingOpen, "Collecting not open yet for this key.");           
        require (byoKeys[_keyIdx].isWhitelistBased == false, "Key is whitelist based.");              
        require (byoKeys[_keyIdx].maxPerTx == 0 || _numPasses <= byoKeys[_keyIdx].maxPerTx, "Tx max.");               
        if (byoKeys[_keyIdx].mintPrice > 0 && msg.value < _numPasses.mul(byoKeys[_keyIdx].mintPrice)) {
            revert ("Ethereum sent not sufficient.");
        }
        _mint(msg.sender, _keyIdx, _numPasses, "");
    }

    function whitelistCollect (uint256 _numPasses,
        uint256 _keyIdx,
        uint256 _merkleIdx,
        uint256 _maxAmount,
        bytes32[] calldata merkleProof) external payable {
            require (byoKeys[_keyIdx].isCollectingOpen, "Collecting not open yet for key.");            
            if (byoKeys[_keyIdx].mintPrice > 0 && msg.value < _numPasses.mul(byoKeys[_keyIdx].mintPrice)) {     
                revert ("Ethereum sent not sufficient.");
            }
            require (byoKeys[_keyIdx].maxPerTx == 0 || _numPasses <= byoKeys[_keyIdx].maxPerTx, "Tx max.");                

            bytes32 nHash = keccak256(abi.encodePacked(_merkleIdx, msg.sender, _maxAmount));
            require(
                MerkleProof.verify(merkleProof, byoKeys[_keyIdx].merkle, nHash),
                "Invalid merkle proof !"
            );
            require(_maxAmount == 0 || balanceOf(msg.sender, _keyIdx).add(_numPasses) <= _maxAmount, "Minting more than available mints.");

            if (byoKeys[_keyIdx].enforceBalance) {
                TokenInterface token = TokenInterface(byoKeys[_keyIdx].linkedAsset);
                uint256 bal = token.balanceOf(msg.sender);
                require (balanceOf(msg.sender, _keyIdx).add(_numPasses) <= bal, "Linked asset contract, not enough balance.");  
            }

            _mint(msg.sender, _keyIdx, _numPasses, "");
    } 

    function burnFromRedeem(
        address _account, 
        uint256 _keyIdx, 
        uint256 _amount
    ) external {
        require(byoKeys[_keyIdx].redeemableAddress == msg.sender, "Redeemable address only.");
        _burn(_account, _keyIdx, _amount);
    }  

    function uri(uint256 _id) public view override returns (string memory) {
        require(totalSupply(_id) > 0, "No token supply yet.");    
        return string(abi.encodePacked(super.uri(_id), byoKeys[_id].uriHash));
    }   

    function withdrawAmount(address payable _to, uint256 _amount) public onlyOwner
    {
        _to.transfer(_amount);
    }

}

File 2 of 19 : BYOKeyInterface.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.7;

import '@openzeppelin/contracts/access/Ownable.sol';
import '@openzeppelin/contracts/token/ERC1155/extensions/ERC1155Burnable.sol';
import '@openzeppelin/contracts/token/ERC1155/extensions/ERC1155Pausable.sol';
import '@openzeppelin/contracts/token/ERC1155/extensions/ERC1155Supply.sol';

abstract contract BYOKeyInterface is ERC1155Pausable, ERC1155Supply, ERC1155Burnable, Ownable {
    
    string public m_Name;
    string public m_Symbol;   
    
    function pause() external onlyOwner {
        _pause();
    }

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

    function setBaseURI(string memory baseURI) external onlyOwner {
        _setURI(baseURI);
    }    

    function name() public view returns (string memory) {
        return m_Name;
    }

    function symbol() public view returns (string memory) {
        return m_Symbol;
    }          

    function _mint(
        address account,
        uint256 id,
        uint256 amount,
        bytes memory data
    ) internal virtual override(ERC1155, ERC1155Supply) {
        super._mint(account, id, amount, data);
    }

    function _mintBatch(
        address to,
        uint256[] memory ids,
        uint256[] memory amounts,
        bytes memory data
    ) internal virtual override(ERC1155, ERC1155Supply) {
        super._mintBatch(to, ids, amounts, data);
    }

    function _burn(
        address account,
        uint256 id,
        uint256 amount
    ) internal virtual override(ERC1155, ERC1155Supply) {
        super._burn(account, id, amount);
    }

    function _burnBatch(
        address account,
        uint256[] memory ids,
        uint256[] memory amounts
    ) internal virtual override(ERC1155, ERC1155Supply) {
        super._burnBatch(account, ids, amounts);
    }  

    function _beforeTokenTransfer(
        address operator,
        address from,
        address to,
        uint256[] memory ids,
        uint256[] memory amounts,
        bytes memory data
    ) internal virtual override(ERC1155Pausable, ERC1155) {
        super._beforeTokenTransfer(operator, from, to, ids, amounts, data);
    }  
}

File 3 of 19 : TokenInterface.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.7;

contract TokenInterface {
    function balanceOf(address owner) external view returns (uint256 balance) {}
}

File 4 of 19 : Ownable.sol
// SPDX-License-Identifier: MIT

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() {
        _setOwner(_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 {
        _setOwner(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");
        _setOwner(newOwner);
    }

    function _setOwner(address newOwner) private {
        address oldOwner = _owner;
        _owner = newOwner;
        emit OwnershipTransferred(oldOwner, newOwner);
    }
}

File 5 of 19 : Pausable.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

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

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

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

    bool private _paused;

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

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

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

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

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

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

File 6 of 19 : ERC1155.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

import "./IERC1155.sol";
import "./IERC1155Receiver.sol";
import "./extensions/IERC1155MetadataURI.sol";
import "../../utils/Address.sol";
import "../../utils/Context.sol";
import "../../utils/introspection/ERC165.sol";

/**
 * @dev Implementation of the basic standard multi-token.
 * See https://eips.ethereum.org/EIPS/eip-1155
 * Originally based on code by Enjin: https://github.com/enjin/erc-1155
 *
 * _Available since v3.1._
 */
contract ERC1155 is Context, ERC165, IERC1155, IERC1155MetadataURI {
    using Address for address;

    // Mapping from token ID to account balances
    mapping(uint256 => mapping(address => uint256)) private _balances;

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

    // Used as the URI for all token types by relying on ID substitution, e.g. https://token-cdn-domain/{id}.json
    string private _uri;

    /**
     * @dev See {_setURI}.
     */
    constructor(string memory uri_) {
        _setURI(uri_);
    }

    /**
     * @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 {IERC1155MetadataURI-uri}.
     *
     * This implementation returns the same URI for *all* token types. It relies
     * on the token type ID substitution mechanism
     * https://eips.ethereum.org/EIPS/eip-1155#metadata[defined in the EIP].
     *
     * Clients calling this function must replace the `\{id\}` substring with the
     * actual token type ID.
     */
    function uri(uint256) public view virtual override returns (string memory) {
        return _uri;
    }

    /**
     * @dev See {IERC1155-balanceOf}.
     *
     * Requirements:
     *
     * - `account` cannot be the zero address.
     */
    function balanceOf(address account, uint256 id) public view virtual override returns (uint256) {
        require(account != address(0), "ERC1155: balance query for the zero address");
        return _balances[id][account];
    }

    /**
     * @dev See {IERC1155-balanceOfBatch}.
     *
     * Requirements:
     *
     * - `accounts` and `ids` must have the same length.
     */
    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 {IERC1155-setApprovalForAll}.
     */
    function setApprovalForAll(address operator, bool approved) public virtual override {
        require(_msgSender() != operator, "ERC1155: setting approval status for self");

        _operatorApprovals[_msgSender()][operator] = approved;
        emit ApprovalForAll(_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);
    }

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

    /**
     * @dev Transfers `amount` tokens of token type `id` from `from` to `to`.
     *
     * Emits a {TransferSingle} event.
     *
     * Requirements:
     *
     * - `to` cannot be the zero address.
     * - `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 memory data
    ) internal virtual {
        require(to != address(0), "ERC1155: transfer to the zero address");

        address operator = _msgSender();

        _beforeTokenTransfer(operator, from, to, _asSingletonArray(id), _asSingletonArray(amount), 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);

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

    /**
     * @dev xref:ROOT:erc1155.adoc#batch-operations[Batched] version of {_safeTransferFrom}.
     *
     * Emits a {TransferBatch} event.
     *
     * Requirements:
     *
     * - 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[] 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);

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

    /**
     * @dev Sets a new URI for all token types, by relying on the token type ID
     * substitution mechanism
     * https://eips.ethereum.org/EIPS/eip-1155#metadata[defined in the EIP].
     *
     * By this mechanism, any occurrence of the `\{id\}` substring in either the
     * URI or any of the amounts in the JSON file at said URI will be replaced by
     * clients with the token type ID.
     *
     * For example, the `https://token-cdn-domain/\{id\}.json` URI would be
     * interpreted by clients as
     * `https://token-cdn-domain/000000000000000000000000000000000000000000000000000000000004cce0.json`
     * for token type ID 0x4cce0.
     *
     * See {uri}.
     *
     * Because these URIs cannot be meaningfully represented by the {URI} event,
     * this function emits no events.
     */
    function _setURI(string memory newuri) internal virtual {
        _uri = newuri;
    }

    /**
     * @dev Creates `amount` tokens of token type `id`, and assigns them to `account`.
     *
     * Emits a {TransferSingle} event.
     *
     * Requirements:
     *
     * - `account` cannot be the zero address.
     * - If `account` refers to a smart contract, it must implement {IERC1155Receiver-onERC1155Received} and return the
     * acceptance magic value.
     */
    function _mint(
        address account,
        uint256 id,
        uint256 amount,
        bytes memory data
    ) internal virtual {
        require(account != address(0), "ERC1155: mint to the zero address");

        address operator = _msgSender();

        _beforeTokenTransfer(operator, address(0), account, _asSingletonArray(id), _asSingletonArray(amount), data);

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

        _doSafeTransferAcceptanceCheck(operator, address(0), account, 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);

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

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

        address operator = _msgSender();

        _beforeTokenTransfer(operator, account, address(0), _asSingletonArray(id), _asSingletonArray(amount), "");

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

        emit TransferSingle(operator, account, address(0), id, amount);
    }

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

        address operator = _msgSender();

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

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

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

        emit TransferBatch(operator, account, address(0), ids, amounts);
    }

    /**
     * @dev Hook that is called before any token transfer. This includes minting
     * and burning, as well as batched variants.
     *
     * The same hook is called on both single and batched variants. For single
     * transfers, the length of the `id` and `amount` arrays will be 1.
     *
     * Calling conditions (for each `id` and `amount` pair):
     *
     * - When `from` and `to` are both non-zero, `amount` of ``from``'s tokens
     * of token type `id` will be  transferred to `to`.
     * - When `from` is zero, `amount` tokens of token type `id` will be minted
     * for `to`.
     * - when `to` is zero, `amount` of ``from``'s tokens of token type `id`
     * will be burned.
     * - `from` and `to` are never both zero.
     * - `ids` and `amounts` have the same, non-zero length.
     *
     * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks].
     */
    function _beforeTokenTransfer(
        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 7 of 19 : IERC1155.sol
// SPDX-License-Identifier: MIT

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 8 of 19 : IERC1155Receiver.sol
// SPDX-License-Identifier: MIT

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.
        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. 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 9 of 19 : ERC1155Burnable.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

import "../ERC1155.sol";

/**
 * @dev Extension of {ERC1155} that allows token holders to destroy both their
 * own tokens and those that they have been approved to use.
 *
 * _Available since v3.1._
 */
abstract contract ERC1155Burnable is ERC1155 {
    function burn(
        address account,
        uint256 id,
        uint256 value
    ) public virtual {
        require(
            account == _msgSender() || isApprovedForAll(account, _msgSender()),
            "ERC1155: caller is not owner nor approved"
        );

        _burn(account, id, value);
    }

    function burnBatch(
        address account,
        uint256[] memory ids,
        uint256[] memory values
    ) public virtual {
        require(
            account == _msgSender() || isApprovedForAll(account, _msgSender()),
            "ERC1155: caller is not owner nor approved"
        );

        _burnBatch(account, ids, values);
    }
}

File 10 of 19 : ERC1155Pausable.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

import "../ERC1155.sol";
import "../../../security/Pausable.sol";

/**
 * @dev ERC1155 token with pausable token transfers, minting and burning.
 *
 * Useful for scenarios such as preventing trades until the end of an evaluation
 * period, or having an emergency switch for freezing all token transfers in the
 * event of a large bug.
 *
 * _Available since v3.1._
 */
abstract contract ERC1155Pausable is ERC1155, Pausable {
    /**
     * @dev See {ERC1155-_beforeTokenTransfer}.
     *
     * Requirements:
     *
     * - the contract must not be paused.
     */
    function _beforeTokenTransfer(
        address operator,
        address from,
        address to,
        uint256[] memory ids,
        uint256[] memory amounts,
        bytes memory data
    ) internal virtual override {
        super._beforeTokenTransfer(operator, from, to, ids, amounts, data);

        require(!paused(), "ERC1155Pausable: token transfer while paused");
    }
}

File 11 of 19 : ERC1155Supply.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

import "../ERC1155.sol";

/**
 * @dev Extension of ERC1155 that adds tracking of total supply per id.
 *
 * Useful for scenarios where Fungible and Non-fungible tokens have to be
 * clearly identified. Note: While a totalSupply of 1 might mean the
 * corresponding is an NFT, there is no guarantees that no other token with the
 * same id are not going to be minted.
 */
abstract contract ERC1155Supply is ERC1155 {
    mapping(uint256 => uint256) private _totalSupply;

    /**
     * @dev Total amount of tokens in with a given id.
     */
    function totalSupply(uint256 id) public view virtual returns (uint256) {
        return _totalSupply[id];
    }

    /**
     * @dev Indicates weither any token exist with a given id, or not.
     */
    function exists(uint256 id) public view virtual returns (bool) {
        return ERC1155Supply.totalSupply(id) > 0;
    }

    /**
     * @dev See {ERC1155-_mint}.
     */
    function _mint(
        address account,
        uint256 id,
        uint256 amount,
        bytes memory data
    ) internal virtual override {
        super._mint(account, id, amount, data);
        _totalSupply[id] += amount;
    }

    /**
     * @dev See {ERC1155-_mintBatch}.
     */
    function _mintBatch(
        address to,
        uint256[] memory ids,
        uint256[] memory amounts,
        bytes memory data
    ) internal virtual override {
        super._mintBatch(to, ids, amounts, data);
        for (uint256 i = 0; i < ids.length; ++i) {
            _totalSupply[ids[i]] += amounts[i];
        }
    }

    /**
     * @dev See {ERC1155-_burn}.
     */
    function _burn(
        address account,
        uint256 id,
        uint256 amount
    ) internal virtual override {
        super._burn(account, id, amount);
        _totalSupply[id] -= amount;
    }

    /**
     * @dev See {ERC1155-_burnBatch}.
     */
    function _burnBatch(
        address account,
        uint256[] memory ids,
        uint256[] memory amounts
    ) internal virtual override {
        super._burnBatch(account, ids, amounts);
        for (uint256 i = 0; i < ids.length; ++i) {
            _totalSupply[ids[i]] -= amounts[i];
        }
    }
}

File 12 of 19 : IERC1155MetadataURI.sol
// SPDX-License-Identifier: MIT

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 13 of 19 : Address.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

/**
 * @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
     * ====
     */
    function isContract(address account) internal view returns (bool) {
        // This method relies on extcodesize, which returns 0 for contracts in
        // construction, since the code is only stored at the end of the
        // constructor execution.

        uint256 size;
        assembly {
            size := extcodesize(account)
        }
        return size > 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 14 of 19 : Context.sol
// SPDX-License-Identifier: MIT

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 15 of 19 : Counters.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

/**
 * @title Counters
 * @author Matt Condon (@shrugs)
 * @dev Provides counters that can only be incremented, decremented or reset. This can be used e.g. to track the number
 * of elements in a mapping, issuing ERC721 ids, or counting request ids.
 *
 * Include with `using Counters for Counters.Counter;`
 */
library Counters {
    struct Counter {
        // This variable should never be directly accessed by users of the library: interactions must be restricted to
        // the library's function. As of Solidity v0.5.2, this cannot be enforced, though there is a proposal to add
        // this feature: see https://github.com/ethereum/solidity/issues/4637
        uint256 _value; // default: 0
    }

    function current(Counter storage counter) internal view returns (uint256) {
        return counter._value;
    }

    function increment(Counter storage counter) internal {
        unchecked {
            counter._value += 1;
        }
    }

    function decrement(Counter storage counter) internal {
        uint256 value = counter._value;
        require(value > 0, "Counter: decrement overflow");
        unchecked {
            counter._value = value - 1;
        }
    }

    function reset(Counter storage counter) internal {
        counter._value = 0;
    }
}

File 16 of 19 : MerkleProof.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

/**
 * @dev These functions deal with verification of Merkle Trees proofs.
 *
 * The proofs can be generated using the JavaScript library
 * https://github.com/miguelmota/merkletreejs[merkletreejs].
 * Note: the hashing algorithm should be keccak256 and pair sorting should be enabled.
 *
 * See `test/utils/cryptography/MerkleProof.test.js` for some examples.
 */
library MerkleProof {
    /**
     * @dev Returns true if a `leaf` can be proved to be a part of a Merkle tree
     * defined by `root`. For this, a `proof` must be provided, containing
     * sibling hashes on the branch from the leaf to the root of the tree. Each
     * pair of leaves and each pair of pre-images are assumed to be sorted.
     */
    function verify(
        bytes32[] memory proof,
        bytes32 root,
        bytes32 leaf
    ) internal pure returns (bool) {
        bytes32 computedHash = leaf;

        for (uint256 i = 0; i < proof.length; i++) {
            bytes32 proofElement = proof[i];

            if (computedHash <= proofElement) {
                // Hash(current computed hash + current element of the proof)
                computedHash = keccak256(abi.encodePacked(computedHash, proofElement));
            } else {
                // Hash(current element of the proof + current computed hash)
                computedHash = keccak256(abi.encodePacked(proofElement, computedHash));
            }
        }

        // Check if the computed hash (root) is equal to the provided root
        return computedHash == root;
    }
}

File 17 of 19 : ERC165.sol
// SPDX-License-Identifier: MIT

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 18 of 19 : IERC165.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

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

File 19 of 19 : SafeMath.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

// CAUTION
// This version of SafeMath should only be used with Solidity 0.8 or later,
// because it relies on the compiler's built in overflow checks.

/**
 * @dev Wrappers over Solidity's arithmetic operations.
 *
 * NOTE: `SafeMath` is no longer needed starting with Solidity 0.8. The compiler
 * now has built in overflow checking.
 */
library SafeMath {
    /**
     * @dev Returns the addition of two unsigned integers, with an overflow flag.
     *
     * _Available since v3.4._
     */
    function tryAdd(uint256 a, uint256 b) internal pure returns (bool, uint256) {
        unchecked {
            uint256 c = a + b;
            if (c < a) return (false, 0);
            return (true, c);
        }
    }

    /**
     * @dev Returns the substraction of two unsigned integers, with an overflow flag.
     *
     * _Available since v3.4._
     */
    function trySub(uint256 a, uint256 b) internal pure returns (bool, uint256) {
        unchecked {
            if (b > a) return (false, 0);
            return (true, a - b);
        }
    }

    /**
     * @dev Returns the multiplication of two unsigned integers, with an overflow flag.
     *
     * _Available since v3.4._
     */
    function tryMul(uint256 a, uint256 b) internal pure returns (bool, uint256) {
        unchecked {
            // Gas optimization: this is cheaper than requiring 'a' not being zero, but the
            // benefit is lost if 'b' is also tested.
            // See: https://github.com/OpenZeppelin/openzeppelin-contracts/pull/522
            if (a == 0) return (true, 0);
            uint256 c = a * b;
            if (c / a != b) return (false, 0);
            return (true, c);
        }
    }

    /**
     * @dev Returns the division of two unsigned integers, with a division by zero flag.
     *
     * _Available since v3.4._
     */
    function tryDiv(uint256 a, uint256 b) internal pure returns (bool, uint256) {
        unchecked {
            if (b == 0) return (false, 0);
            return (true, a / b);
        }
    }

    /**
     * @dev Returns the remainder of dividing two unsigned integers, with a division by zero flag.
     *
     * _Available since v3.4._
     */
    function tryMod(uint256 a, uint256 b) internal pure returns (bool, uint256) {
        unchecked {
            if (b == 0) return (false, 0);
            return (true, a % b);
        }
    }

    /**
     * @dev Returns the addition of two unsigned integers, reverting on
     * overflow.
     *
     * Counterpart to Solidity's `+` operator.
     *
     * Requirements:
     *
     * - Addition cannot overflow.
     */
    function add(uint256 a, uint256 b) internal pure returns (uint256) {
        return a + b;
    }

    /**
     * @dev Returns the subtraction of two unsigned integers, reverting on
     * overflow (when the result is negative).
     *
     * Counterpart to Solidity's `-` operator.
     *
     * Requirements:
     *
     * - Subtraction cannot overflow.
     */
    function sub(uint256 a, uint256 b) internal pure returns (uint256) {
        return a - b;
    }

    /**
     * @dev Returns the multiplication of two unsigned integers, reverting on
     * overflow.
     *
     * Counterpart to Solidity's `*` operator.
     *
     * Requirements:
     *
     * - Multiplication cannot overflow.
     */
    function mul(uint256 a, uint256 b) internal pure returns (uint256) {
        return a * b;
    }

    /**
     * @dev Returns the integer division of two unsigned integers, reverting on
     * division by zero. The result is rounded towards zero.
     *
     * Counterpart to Solidity's `/` operator.
     *
     * Requirements:
     *
     * - The divisor cannot be zero.
     */
    function div(uint256 a, uint256 b) internal pure returns (uint256) {
        return a / b;
    }

    /**
     * @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo),
     * reverting when dividing by zero.
     *
     * Counterpart to Solidity's `%` operator. This function uses a `revert`
     * opcode (which leaves remaining gas untouched) while Solidity uses an
     * invalid opcode to revert (consuming all remaining gas).
     *
     * Requirements:
     *
     * - The divisor cannot be zero.
     */
    function mod(uint256 a, uint256 b) internal pure returns (uint256) {
        return a % b;
    }

    /**
     * @dev Returns the subtraction of two unsigned integers, reverting with custom message on
     * overflow (when the result is negative).
     *
     * CAUTION: This function is deprecated because it requires allocating memory for the error
     * message unnecessarily. For custom revert reasons use {trySub}.
     *
     * Counterpart to Solidity's `-` operator.
     *
     * Requirements:
     *
     * - Subtraction cannot overflow.
     */
    function sub(
        uint256 a,
        uint256 b,
        string memory errorMessage
    ) internal pure returns (uint256) {
        unchecked {
            require(b <= a, errorMessage);
            return a - b;
        }
    }

    /**
     * @dev Returns the integer division of two unsigned integers, reverting with custom message on
     * division by zero. The result is rounded towards zero.
     *
     * Counterpart to Solidity's `/` operator. Note: this function uses a
     * `revert` opcode (which leaves remaining gas untouched) while Solidity
     * uses an invalid opcode to revert (consuming all remaining gas).
     *
     * Requirements:
     *
     * - The divisor cannot be zero.
     */
    function div(
        uint256 a,
        uint256 b,
        string memory errorMessage
    ) internal pure returns (uint256) {
        unchecked {
            require(b > 0, errorMessage);
            return a / b;
        }
    }

    /**
     * @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo),
     * reverting with custom message when dividing by zero.
     *
     * CAUTION: This function is deprecated because it requires allocating memory for the error
     * message unnecessarily. For custom revert reasons use {tryMod}.
     *
     * Counterpart to Solidity's `%` operator. This function uses a `revert`
     * opcode (which leaves remaining gas untouched) while Solidity uses an
     * invalid opcode to revert (consuming all remaining gas).
     *
     * Requirements:
     *
     * - The divisor cannot be zero.
     */
    function mod(
        uint256 a,
        uint256 b,
        string memory errorMessage
    ) internal pure returns (uint256) {
        unchecked {
            require(b > 0, errorMessage);
            return a % b;
        }
    }
}

Settings
{
  "remappings": [],
  "optimizer": {
    "enabled": false,
    "runs": 200
  },
  "evmVersion": "london",
  "libraries": {},
  "outputSelection": {
    "*": {
      "*": [
        "evm.bytecode",
        "evm.deployedBytecode",
        "abi"
      ]
    }
  }
}

Contract Security Audit

Contract ABI

[{"inputs":[{"internalType":"string","name":"_name","type":"string"},{"internalType":"string","name":"_symbol","type":"string"}],"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":false,"internalType":"address","name":"account","type":"address"}],"name":"Paused","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"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"account","type":"address"}],"name":"Unpaused","type":"event"},{"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":"address","name":"account","type":"address"},{"internalType":"uint256","name":"id","type":"uint256"},{"internalType":"uint256","name":"value","type":"uint256"}],"name":"burn","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"},{"internalType":"uint256[]","name":"ids","type":"uint256[]"},{"internalType":"uint256[]","name":"values","type":"uint256[]"}],"name":"burnBatch","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_account","type":"address"},{"internalType":"uint256","name":"_keyIdx","type":"uint256"},{"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"burnFromRedeem","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"byoKeys","outputs":[{"internalType":"bool","name":"isCollectingOpen","type":"bool"},{"internalType":"uint256","name":"mintPrice","type":"uint256"},{"internalType":"uint256","name":"maxPerTx","type":"uint256"},{"internalType":"string","name":"uriHash","type":"string"},{"internalType":"address","name":"redeemableAddress","type":"address"},{"internalType":"bytes32","name":"merkle","type":"bytes32"},{"internalType":"bool","name":"isWhitelistBased","type":"bool"},{"internalType":"bool","name":"enforceBalance","type":"bool"},{"internalType":"address","name":"linkedAsset","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32","name":"_merkle","type":"bytes32"},{"internalType":"bool","name":"_isWhitelistBased","type":"bool"},{"internalType":"bool","name":"_enforceBalance","type":"bool"},{"internalType":"uint256","name":"_mintPrice","type":"uint256"},{"internalType":"uint256","name":"_maxPerTx","type":"uint256"},{"internalType":"string","name":"_uriHash","type":"string"},{"internalType":"address","name":"_redeemableAddress","type":"address"},{"internalType":"address","name":"_linkedAsset","type":"address"}],"name":"createBYOKey","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"_merkle","type":"bytes32"},{"internalType":"bool","name":"_isWhitelistBased","type":"bool"},{"internalType":"bool","name":"_enforceBalance","type":"bool"},{"internalType":"uint256","name":"_mintPrice","type":"uint256"},{"internalType":"uint256","name":"_maxPerTx","type":"uint256"},{"internalType":"string","name":"_uriHash","type":"string"},{"internalType":"address","name":"_redeemableAddress","type":"address"},{"internalType":"address","name":"_linkedAsset","type":"address"},{"internalType":"uint256","name":"_keyIdx","type":"uint256"}],"name":"editBYOKey","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"id","type":"uint256"}],"name":"exists","outputs":[{"internalType":"bool","name":"","type":"bool"}],"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":"_keyIdx","type":"uint256"}],"name":"isCollectingOpen","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"m_Name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"m_Symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_numPasses","type":"uint256"},{"internalType":"uint256","name":"_keyIdx","type":"uint256"}],"name":"ownerCollect","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"pause","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"paused","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_numPasses","type":"uint256"},{"internalType":"uint256","name":"_keyIdx","type":"uint256"}],"name":"publicCollect","outputs":[],"stateMutability":"payable","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":"string","name":"baseURI","type":"string"}],"name":"setBaseURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes4","name":"interfaceId","type":"bytes4"}],"name":"supportsInterface","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_keyIdx","type":"uint256"}],"name":"toggleCollecting","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"id","type":"uint256"}],"name":"totalSupply","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":[],"name":"unpause","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_id","type":"uint256"}],"name":"uri","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_numPasses","type":"uint256"},{"internalType":"uint256","name":"_keyIdx","type":"uint256"},{"internalType":"uint256","name":"_merkleIdx","type":"uint256"},{"internalType":"uint256","name":"_maxAmount","type":"uint256"},{"internalType":"bytes32[]","name":"merkleProof","type":"bytes32[]"}],"name":"whitelistCollect","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"address payable","name":"_to","type":"address"},{"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"withdrawAmount","outputs":[],"stateMutability":"nonpayable","type":"function"}]

60806040523480156200001157600080fd5b50604051620063f4380380620063f48339818101604052810190620000379190620002e6565b604051806020016040528060008152506200005881620000ce60201b60201c565b506000600360006101000a81548160ff0219169083151502179055506200009462000088620000ea60201b60201c565b620000f260201b60201c565b8160069080519060200190620000ac929190620001b8565b508060079080519060200190620000c5929190620001b8565b505050620004ef565b8060029080519060200190620000e6929190620001b8565b5050565b600033905090565b6000600560009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905081600560006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b828054620001c69062000400565b90600052602060002090601f016020900481019282620001ea576000855562000236565b82601f106200020557805160ff191683800117855562000236565b8280016001018555821562000236579182015b828111156200023557825182559160200191906001019062000218565b5b50905062000245919062000249565b5090565b5b80821115620002645760008160009055506001016200024a565b5090565b60006200027f620002798462000394565b6200036b565b9050828152602081018484840111156200029e576200029d620004cf565b5b620002ab848285620003ca565b509392505050565b600082601f830112620002cb57620002ca620004ca565b5b8151620002dd84826020860162000268565b91505092915050565b600080604083850312156200030057620002ff620004d9565b5b600083015167ffffffffffffffff811115620003215762000320620004d4565b5b6200032f85828601620002b3565b925050602083015167ffffffffffffffff811115620003535762000352620004d4565b5b6200036185828601620002b3565b9150509250929050565b6000620003776200038a565b905062000385828262000436565b919050565b6000604051905090565b600067ffffffffffffffff821115620003b257620003b16200049b565b5b620003bd82620004de565b9050602081019050919050565b60005b83811015620003ea578082015181840152602081019050620003cd565b83811115620003fa576000848401525b50505050565b600060028204905060018216806200041957607f821691505b6020821081141562000430576200042f6200046c565b5b50919050565b6200044182620004de565b810181811067ffffffffffffffff821117156200046357620004626200049b565b5b80604052505050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b600080fd5b600080fd5b600080fd5b600080fd5b6000601f19601f8301169050919050565b615ef580620004ff6000396000f3fe6080604052600436106101ed5760003560e01c8063715018a61161010d578063a22cb465116100a0578063e985e9c51161006f578063e985e9c5146106df578063f242432a1461071c578063f2fde38b14610745578063f5298aca1461076e578063fb32fb9614610797576101ed565b8063a22cb46514610625578063bd85b0391461064e578063ddb545d71461068b578063e3d4ca07146106b4576101ed565b80638da5cb5b116100dc5780638da5cb5b1461054d578063920928bd1461057857806395d89b41146105b557806397e6901f146105e0576101ed565b8063715018a6146104da578063736fe565146104f15780637ce063641461051a5780638456cb5914610536576101ed565b80633bdc2209116101855780634f558e79116101545780634f558e791461042057806355f804b31461045d5780635c975abb146104865780636b20c454146104b1576101ed565b80633bdc22091461037a5780633e50d9be146103a35780633f4ba83a146103cc5780634e1273f4146103e3576101ed565b806326507f62116101c157806326507f62146102d45780632eb2c2d6146102fd57806339e29c52146103265780633aeca21014610351576101ed565b8062fdd58e146101f257806301ffc9a71461022f57806306fdde031461026c5780630e89341c14610297575b600080fd5b3480156101fe57600080fd5b5061021960048036038101906102149190614058565b6107b3565b6040516102269190615102565b60405180910390f35b34801561023b57600080fd5b506102566004803603810190610251919061431b565b61087c565b6040516102639190614cb1565b60405180910390f35b34801561027857600080fd5b5061028161095e565b60405161028e9190614d60565b60405180910390f35b3480156102a357600080fd5b506102be60048036038101906102b991906143be565b6109f0565b6040516102cb9190614d60565b60405180910390f35b3480156102e057600080fd5b506102fb60048036038101906102f691906143be565b610a83565b005b34801561030957600080fd5b50610324600480360381019061031f9190613e27565b610b54565b005b34801561033257600080fd5b5061033b610bf5565b6040516103489190614d60565b60405180910390f35b34801561035d57600080fd5b5061037860048036038101906103739190614098565b610c83565b005b34801561038657600080fd5b506103a1600480360381019061039c9190614418565b610d37565b005b3480156103af57600080fd5b506103ca60048036038101906103c59190614163565b610dd2565b005b3480156103d857600080fd5b506103e1610f92565b005b3480156103ef57600080fd5b5061040a600480360381019061040591906140eb565b611018565b6040516104179190614c58565b60405180910390f35b34801561042c57600080fd5b50610447600480360381019061044291906143be565b611131565b6040516104549190614cb1565b60405180910390f35b34801561046957600080fd5b50610484600480360381019061047f9190614375565b611145565b005b34801561049257600080fd5b5061049b6111cd565b6040516104a89190614cb1565b60405180910390f35b3480156104bd57600080fd5b506104d860048036038101906104d39190613f8d565b6111e4565b005b3480156104e657600080fd5b506104ef611281565b005b3480156104fd57600080fd5b5061051860048036038101906105139190613da7565b611309565b005b610534600480360381019061052f9190614418565b6113d0565b005b34801561054257600080fd5b5061054b6115c3565b005b34801561055957600080fd5b50610562611649565b60405161056f9190614b7b565b60405180910390f35b34801561058457600080fd5b5061059f600480360381019061059a91906143be565b611673565b6040516105ac9190614cb1565b60405180910390f35b3480156105c157600080fd5b506105ca6116a0565b6040516105d79190614d60565b60405180910390f35b3480156105ec57600080fd5b50610607600480360381019061060291906143be565b611732565b60405161061c99989796959493929190614ccc565b60405180910390f35b34801561063157600080fd5b5061064c60048036038101906106479190614018565b61186f565b005b34801561065a57600080fd5b50610675600480360381019061067091906143be565b6119f0565b6040516106829190615102565b60405180910390f35b34801561069757600080fd5b506106b260048036038101906106ad9190614235565b611a0d565b005b3480156106c057600080fd5b506106c9611c16565b6040516106d69190614d60565b60405180910390f35b3480156106eb57600080fd5b5061070660048036038101906107019190613de7565b611ca4565b6040516107139190614cb1565b60405180910390f35b34801561072857600080fd5b50610743600480360381019061073e9190613ef6565b611d38565b005b34801561075157600080fd5b5061076c60048036038101906107679190613d7a565b611dd9565b005b34801561077a57600080fd5b5061079560048036038101906107909190614098565b611ed1565b005b6107b160048036038101906107ac9190614458565b611f6e565b005b60008073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff161415610824576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161081b90614e22565b60405180910390fd5b60008083815260200190815260200160002060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054905092915050565b60007fd9b67a26000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916148061094757507f0e89341c000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b80610957575061095682612387565b5b9050919050565b60606006805461096d9061546c565b80601f01602080910402602001604051908101604052809291908181526020018280546109999061546c565b80156109e65780601f106109bb576101008083540402835291602001916109e6565b820191906000526020600020905b8154815290600101906020018083116109c957829003601f168201915b5050505050905090565b606060006109fd836119f0565b11610a3d576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610a3490614da2565b60405180910390fd5b610a46826123f1565b60086000848152602001908152602001600020600301604051602001610a6d929190614b1a565b6040516020818303038152906040529050919050565b610a8b612485565b73ffffffffffffffffffffffffffffffffffffffff16610aa9611649565b73ffffffffffffffffffffffffffffffffffffffff1614610aff576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610af690615002565b60405180910390fd5b6008600082815260200190815260200160002060000160009054906101000a900460ff16156008600083815260200190815260200160002060000160006101000a81548160ff02191690831515021790555050565b610b5c612485565b73ffffffffffffffffffffffffffffffffffffffff168573ffffffffffffffffffffffffffffffffffffffff161480610ba25750610ba185610b9c612485565b611ca4565b5b610be1576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610bd890614f82565b60405180910390fd5b610bee858585858561248d565b5050505050565b60068054610c029061546c565b80601f0160208091040260200160405190810160405280929190818152602001828054610c2e9061546c565b8015610c7b5780601f10610c5057610100808354040283529160200191610c7b565b820191906000526020600020905b815481529060010190602001808311610c5e57829003601f168201915b505050505081565b3373ffffffffffffffffffffffffffffffffffffffff166008600084815260200190815260200160002060040160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1614610d27576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610d1e90615042565b60405180910390fd5b610d328383836127a1565b505050565b610d3f612485565b73ffffffffffffffffffffffffffffffffffffffff16610d5d611649565b73ffffffffffffffffffffffffffffffffffffffff1614610db3576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610daa90615002565b60405180910390fd5b610dce338284604051806020016040528060008152506127b1565b5050565b610dda612485565b73ffffffffffffffffffffffffffffffffffffffff16610df8611649565b73ffffffffffffffffffffffffffffffffffffffff1614610e4e576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610e4590615002565b60405180910390fd5b600060086000610e5e60096127c3565b8152602001908152602001600020905088816005018190555060008160000160006101000a81548160ff021916908315150217905550878160060160006101000a81548160ff021916908315150217905550868160060160016101000a81548160ff02191690831515021790555085816001018190555084816002018190555083816003019080519060200190610ef69291906139bd565b50828160040160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550818160060160026101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550610f8760096127d1565b505050505050505050565b610f9a612485565b73ffffffffffffffffffffffffffffffffffffffff16610fb8611649565b73ffffffffffffffffffffffffffffffffffffffff161461100e576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161100590615002565b60405180910390fd5b6110166127e7565b565b6060815183511461105e576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611055906150a2565b60405180910390fd5b6000835167ffffffffffffffff81111561107b5761107a6155dd565b5b6040519080825280602002602001820160405280156110a95781602001602082028036833780820191505090505b50905060005b8451811015611126576110f68582815181106110ce576110cd6155ae565b5b60200260200101518583815181106110e9576110e86155ae565b5b60200260200101516107b3565b828281518110611109576111086155ae565b5b6020026020010181815250508061111f906154cf565b90506110af565b508091505092915050565b60008061113d836119f0565b119050919050565b61114d612485565b73ffffffffffffffffffffffffffffffffffffffff1661116b611649565b73ffffffffffffffffffffffffffffffffffffffff16146111c1576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016111b890615002565b60405180910390fd5b6111ca81612889565b50565b6000600360009054906101000a900460ff16905090565b6111ec612485565b73ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff16148061123257506112318361122c612485565b611ca4565b5b611271576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161126890614ea2565b60405180910390fd5b61127c8383836128a3565b505050565b611289612485565b73ffffffffffffffffffffffffffffffffffffffff166112a7611649565b73ffffffffffffffffffffffffffffffffffffffff16146112fd576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016112f490615002565b60405180910390fd5b61130760006128b3565b565b611311612485565b73ffffffffffffffffffffffffffffffffffffffff1661132f611649565b73ffffffffffffffffffffffffffffffffffffffff1614611385576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161137c90615002565b60405180910390fd5b8173ffffffffffffffffffffffffffffffffffffffff166108fc829081150290604051600060405180830381858888f193505050501580156113cb573d6000803e3d6000fd5b505050565b6008600082815260200190815260200160002060000160009054906101000a900460ff16611433576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161142a90614f42565b60405180910390fd5b600015156008600083815260200190815260200160002060060160009054906101000a900460ff1615151461149d576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161149490614ec2565b60405180910390fd5b6000600860008381526020019081526020016000206002015414806114d8575060086000828152602001908152602001600020600201548211155b611517576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161150e90615022565b60405180910390fd5b60006008600083815260200190815260200160002060010154118015611564575061156160086000838152602001908152602001600020600101548361297990919063ffffffff16565b34105b156115a4576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161159b90614fa2565b60405180910390fd5b6115bf338284604051806020016040528060008152506127b1565b5050565b6115cb612485565b73ffffffffffffffffffffffffffffffffffffffff166115e9611649565b73ffffffffffffffffffffffffffffffffffffffff161461163f576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161163690615002565b60405180910390fd5b61164761298f565b565b6000600560009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b60006008600083815260200190815260200160002060000160009054906101000a900460ff169050919050565b6060600780546116af9061546c565b80601f01602080910402602001604051908101604052809291908181526020018280546116db9061546c565b80156117285780601f106116fd57610100808354040283529160200191611728565b820191906000526020600020905b81548152906001019060200180831161170b57829003601f168201915b5050505050905090565b60086020528060005260406000206000915090508060000160009054906101000a900460ff16908060010154908060020154908060030180546117749061546c565b80601f01602080910402602001604051908101604052809291908181526020018280546117a09061546c565b80156117ed5780601f106117c2576101008083540402835291602001916117ed565b820191906000526020600020905b8154815290600101906020018083116117d057829003601f168201915b5050505050908060040160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16908060050154908060060160009054906101000a900460ff16908060060160019054906101000a900460ff16908060060160029054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905089565b8173ffffffffffffffffffffffffffffffffffffffff1661188e612485565b73ffffffffffffffffffffffffffffffffffffffff1614156118e5576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016118dc90615082565b60405180910390fd5b80600160006118f2612485565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055508173ffffffffffffffffffffffffffffffffffffffff1661199f612485565b73ffffffffffffffffffffffffffffffffffffffff167f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31836040516119e49190614cb1565b60405180910390a35050565b600060046000838152602001908152602001600020549050919050565b611a15612485565b73ffffffffffffffffffffffffffffffffffffffff16611a33611649565b73ffffffffffffffffffffffffffffffffffffffff1614611a89576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611a8090615002565b60405180910390fd5b886008600083815260200190815260200160002060050181905550876008600083815260200190815260200160002060060160006101000a81548160ff021916908315150217905550866008600083815260200190815260200160002060060160016101000a81548160ff02191690831515021790555085600860008381526020019081526020016000206001018190555084600860008381526020019081526020016000206002018190555083600860008381526020019081526020016000206003019080519060200190611b609291906139bd565b50826008600083815260200190815260200160002060040160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550816008600083815260200190815260200160002060060160026101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550505050505050505050565b60078054611c239061546c565b80601f0160208091040260200160405190810160405280929190818152602001828054611c4f9061546c565b8015611c9c5780601f10611c7157610100808354040283529160200191611c9c565b820191906000526020600020905b815481529060010190602001808311611c7f57829003601f168201915b505050505081565b6000600160008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16905092915050565b611d40612485565b73ffffffffffffffffffffffffffffffffffffffff168573ffffffffffffffffffffffffffffffffffffffff161480611d865750611d8585611d80612485565b611ca4565b5b611dc5576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611dbc90614ea2565b60405180910390fd5b611dd28585858585612a32565b5050505050565b611de1612485565b73ffffffffffffffffffffffffffffffffffffffff16611dff611649565b73ffffffffffffffffffffffffffffffffffffffff1614611e55576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611e4c90615002565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff161415611ec5576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611ebc90614e42565b60405180910390fd5b611ece816128b3565b50565b611ed9612485565b73ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff161480611f1f5750611f1e83611f19612485565b611ca4565b5b611f5e576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611f5590614ea2565b60405180910390fd5b611f698383836127a1565b505050565b6008600086815260200190815260200160002060000160009054906101000a900460ff16611fd1576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611fc890614f22565b60405180910390fd5b6000600860008781526020019081526020016000206001015411801561201e575061201b60086000878152602001908152602001600020600101548761297990919063ffffffff16565b34105b1561205e576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161205590614fa2565b60405180910390fd5b600060086000878152602001908152602001600020600201541480612099575060086000868152602001908152602001600020600201548611155b6120d8576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016120cf90615022565b60405180910390fd5b60008433856040516020016120ef93929190614b3e565b604051602081830303815290604052805190602001209050612169838380806020026020016040519081016040528093929190818152602001838360200280828437600081840152601f19601f82011690508083019250505050505050600860008981526020019081526020016000206005015483612cb4565b6121a8576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161219f90614ee2565b60405180910390fd5b60008414806121d25750836121cf886121c1338a6107b3565b612d6a90919063ffffffff16565b11155b612211576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161220890614e02565b60405180910390fd5b6008600087815260200190815260200160002060060160019054906101000a900460ff16156123635760006008600088815260200190815260200160002060060160029054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905060008173ffffffffffffffffffffffffffffffffffffffff166370a08231336040518263ffffffff1660e01b81526004016122b09190614b7b565b60206040518083038186803b1580156122c857600080fd5b505afa1580156122dc573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061230091906143eb565b90508061231f8a612311338c6107b3565b612d6a90919063ffffffff16565b1115612360576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161235790615062565b60405180910390fd5b50505b61237e338789604051806020016040528060008152506127b1565b50505050505050565b60007f01ffc9a7000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916149050919050565b6060600280546124009061546c565b80601f016020809104026020016040519081016040528092919081815260200182805461242c9061546c565b80156124795780601f1061244e57610100808354040283529160200191612479565b820191906000526020600020905b81548152906001019060200180831161245c57829003601f168201915b50505050509050919050565b600033905090565b81518351146124d1576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016124c8906150c2565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff161415612541576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161253890614f62565b60405180910390fd5b600061254b612485565b905061255b818787878787612d80565b60005b845181101561270c57600085828151811061257c5761257b6155ae565b5b60200260200101519050600085838151811061259b5761259a6155ae565b5b60200260200101519050600080600084815260200190815260200160002060008b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000205490508181101561263c576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161263390614fe2565b60405180910390fd5b81810360008085815260200190815260200160002060008c73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055508160008085815260200190815260200160002060008b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008282546126f191906152b6565b9250508190555050505080612705906154cf565b905061255e565b508473ffffffffffffffffffffffffffffffffffffffff168673ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff167f4a39dc06d4c0dbc64b70af90fd698a233a518aa5d07e595d983b8c0526c8f7fb8787604051612783929190614c7a565b60405180910390a4612799818787878787612d96565b505050505050565b6127ac838383612f7d565b505050565b6127bd84848484612fb7565b50505050565b600081600001549050919050565b6001816000016000828254019250508190555050565b6127ef6111cd565b61282e576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161282590614de2565b60405180910390fd5b6000600360006101000a81548160ff0219169083151502179055507f5db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa612872612485565b60405161287f9190614b7b565b60405180910390a1565b806002908051906020019061289f9291906139bd565b5050565b6128ae838383612ff3565b505050565b6000600560009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905081600560006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b60008183612987919061530c565b905092915050565b6129976111cd565b156129d7576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016129ce90614f02565b60405180910390fd5b6001600360006101000a81548160ff0219169083151502179055507f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a258612a1b612485565b604051612a289190614b7b565b60405180910390a1565b600073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff161415612aa2576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612a9990614f62565b60405180910390fd5b6000612aac612485565b9050612acc818787612abd8861307f565b612ac68861307f565b87612d80565b600080600086815260200190815260200160002060008873ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054905083811015612b63576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612b5a90614fe2565b60405180910390fd5b83810360008087815260200190815260200160002060008973ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055508360008087815260200190815260200160002060008873ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000828254612c1891906152b6565b925050819055508573ffffffffffffffffffffffffffffffffffffffff168773ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff167fc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f628888604051612c9592919061511d565b60405180910390a4612cab8288888888886130f9565b50505050505050565b60008082905060005b8551811015612d5c576000868281518110612cdb57612cda6155ae565b5b60200260200101519050808311612d1c578281604051602001612cff929190614aee565b604051602081830303815290604052805190602001209250612d48565b8083604051602001612d2f929190614aee565b6040516020818303038152906040528051906020012092505b508080612d54906154cf565b915050612cbd565b508381149150509392505050565b60008183612d7891906152b6565b905092915050565b612d8e8686868686866132e0565b505050505050565b612db58473ffffffffffffffffffffffffffffffffffffffff1661333e565b15612f75578373ffffffffffffffffffffffffffffffffffffffff1663bc197c8187878686866040518663ffffffff1660e01b8152600401612dfb959493929190614b96565b602060405180830381600087803b158015612e1557600080fd5b505af1925050508015612e4657506040513d601f19601f82011682018060405250810190612e439190614348565b60015b612eec57612e5261560c565b806308c379a01415612eaf5750612e67615d9f565b80612e725750612eb1565b806040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612ea69190614d60565b60405180910390fd5b505b6040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612ee390614d82565b60405180910390fd5b63bc197c8160e01b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916817bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614612f73576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612f6a90614dc2565b60405180910390fd5b505b505050505050565b612f88838383613351565b80600460008481526020019081526020016000206000828254612fab9190615366565b92505081905550505050565b612fc38484848461356e565b81600460008581526020019081526020016000206000828254612fe691906152b6565b9250508190555050505050565b612ffe838383613704565b60005b82518110156130795781818151811061301d5761301c6155ae565b5b60200260200101516004600085848151811061303c5761303b6155ae565b5b6020026020010151815260200190815260200160002060008282546130619190615366565b9250508190555080613072906154cf565b9050613001565b50505050565b60606000600167ffffffffffffffff81111561309e5761309d6155dd565b5b6040519080825280602002602001820160405280156130cc5781602001602082028036833780820191505090505b50905082816000815181106130e4576130e36155ae565b5b60200260200101818152505080915050919050565b6131188473ffffffffffffffffffffffffffffffffffffffff1661333e565b156132d8578373ffffffffffffffffffffffffffffffffffffffff1663f23a6e6187878686866040518663ffffffff1660e01b815260040161315e959493929190614bfe565b602060405180830381600087803b15801561317857600080fd5b505af19250505080156131a957506040513d601f19601f820116820180604052508101906131a69190614348565b60015b61324f576131b561560c565b806308c379a0141561321257506131ca615d9f565b806131d55750613214565b806040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016132099190614d60565b60405180910390fd5b505b6040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161324690614d82565b60405180910390fd5b63f23a6e6160e01b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916817bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916146132d6576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016132cd90614dc2565b60405180910390fd5b505b505050505050565b6132ee8686868686866139b5565b6132f66111cd565b15613336576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161332d90614e82565b60405180910390fd5b505050505050565b600080823b905060008111915050919050565b600073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff1614156133c1576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016133b890614fc2565b60405180910390fd5b60006133cb612485565b90506133fb818560006133dd8761307f565b6133e68761307f565b60405180602001604052806000815250612d80565b600080600085815260200190815260200160002060008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054905082811015613492576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161348990614e62565b60405180910390fd5b82810360008086815260200190815260200160002060008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002081905550600073ffffffffffffffffffffffffffffffffffffffff168573ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff167fc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f62878760405161355f92919061511d565b60405180910390a45050505050565b600073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff1614156135de576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016135d5906150e2565b60405180910390fd5b60006135e8612485565b9050613609816000876135fa8861307f565b6136038861307f565b87612d80565b8260008086815260200190815260200160002060008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600082825461366891906152b6565b925050819055508473ffffffffffffffffffffffffffffffffffffffff16600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff167fc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f6287876040516136e692919061511d565b60405180910390a46136fd816000878787876130f9565b5050505050565b600073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff161415613774576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161376b90614fc2565b60405180910390fd5b80518251146137b8576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016137af906150c2565b60405180910390fd5b60006137c2612485565b90506137e281856000868660405180602001604052806000815250612d80565b60005b835181101561392f576000848281518110613803576138026155ae565b5b602002602001015190506000848381518110613822576138216155ae565b5b60200260200101519050600080600084815260200190815260200160002060008973ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020549050818110156138c3576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016138ba90614e62565b60405180910390fd5b81810360008085815260200190815260200160002060008a73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055505050508080613927906154cf565b9150506137e5565b50600073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff167f4a39dc06d4c0dbc64b70af90fd698a233a518aa5d07e595d983b8c0526c8f7fb86866040516139a7929190614c7a565b60405180910390a450505050565b505050505050565b8280546139c99061546c565b90600052602060002090601f0160209004810192826139eb5760008555613a32565b82601f10613a0457805160ff1916838001178555613a32565b82800160010185558215613a32579182015b82811115613a31578251825591602001919060010190613a16565b5b509050613a3f9190613a43565b5090565b5b80821115613a5c576000816000905550600101613a44565b5090565b6000613a73613a6e8461516b565b615146565b90508083825260208201905082856020860282011115613a9657613a95615638565b5b60005b85811015613ac65781613aac8882613bc4565b845260208401935060208301925050600181019050613a99565b5050509392505050565b6000613ae3613ade84615197565b615146565b90508083825260208201905082856020860282011115613b0657613b05615638565b5b60005b85811015613b365781613b1c8882613d50565b845260208401935060208301925050600181019050613b09565b5050509392505050565b6000613b53613b4e846151c3565b615146565b905082815260208101848484011115613b6f57613b6e61563d565b5b613b7a84828561542a565b509392505050565b6000613b95613b90846151f4565b615146565b905082815260208101848484011115613bb157613bb061563d565b5b613bbc84828561542a565b509392505050565b600081359050613bd381615e35565b92915050565b600081359050613be881615e4c565b92915050565b600082601f830112613c0357613c02615633565b5b8135613c13848260208601613a60565b91505092915050565b60008083601f840112613c3257613c31615633565b5b8235905067ffffffffffffffff811115613c4f57613c4e61562e565b5b602083019150836020820283011115613c6b57613c6a615638565b5b9250929050565b600082601f830112613c8757613c86615633565b5b8135613c97848260208601613ad0565b91505092915050565b600081359050613caf81615e63565b92915050565b600081359050613cc481615e7a565b92915050565b600081359050613cd981615e91565b92915050565b600081519050613cee81615e91565b92915050565b600082601f830112613d0957613d08615633565b5b8135613d19848260208601613b40565b91505092915050565b600082601f830112613d3757613d36615633565b5b8135613d47848260208601613b82565b91505092915050565b600081359050613d5f81615ea8565b92915050565b600081519050613d7481615ea8565b92915050565b600060208284031215613d9057613d8f615647565b5b6000613d9e84828501613bc4565b91505092915050565b60008060408385031215613dbe57613dbd615647565b5b6000613dcc85828601613bd9565b9250506020613ddd85828601613d50565b9150509250929050565b60008060408385031215613dfe57613dfd615647565b5b6000613e0c85828601613bc4565b9250506020613e1d85828601613bc4565b9150509250929050565b600080600080600060a08688031215613e4357613e42615647565b5b6000613e5188828901613bc4565b9550506020613e6288828901613bc4565b945050604086013567ffffffffffffffff811115613e8357613e82615642565b5b613e8f88828901613c72565b935050606086013567ffffffffffffffff811115613eb057613eaf615642565b5b613ebc88828901613c72565b925050608086013567ffffffffffffffff811115613edd57613edc615642565b5b613ee988828901613cf4565b9150509295509295909350565b600080600080600060a08688031215613f1257613f11615647565b5b6000613f2088828901613bc4565b9550506020613f3188828901613bc4565b9450506040613f4288828901613d50565b9350506060613f5388828901613d50565b925050608086013567ffffffffffffffff811115613f7457613f73615642565b5b613f8088828901613cf4565b9150509295509295909350565b600080600060608486031215613fa657613fa5615647565b5b6000613fb486828701613bc4565b935050602084013567ffffffffffffffff811115613fd557613fd4615642565b5b613fe186828701613c72565b925050604084013567ffffffffffffffff81111561400257614001615642565b5b61400e86828701613c72565b9150509250925092565b6000806040838503121561402f5761402e615647565b5b600061403d85828601613bc4565b925050602061404e85828601613ca0565b9150509250929050565b6000806040838503121561406f5761406e615647565b5b600061407d85828601613bc4565b925050602061408e85828601613d50565b9150509250929050565b6000806000606084860312156140b1576140b0615647565b5b60006140bf86828701613bc4565b93505060206140d086828701613d50565b92505060406140e186828701613d50565b9150509250925092565b6000806040838503121561410257614101615647565b5b600083013567ffffffffffffffff8111156141205761411f615642565b5b61412c85828601613bee565b925050602083013567ffffffffffffffff81111561414d5761414c615642565b5b61415985828601613c72565b9150509250929050565b600080600080600080600080610100898b03121561418457614183615647565b5b60006141928b828c01613cb5565b98505060206141a38b828c01613ca0565b97505060406141b48b828c01613ca0565b96505060606141c58b828c01613d50565b95505060806141d68b828c01613d50565b94505060a089013567ffffffffffffffff8111156141f7576141f6615642565b5b6142038b828c01613d22565b93505060c06142148b828c01613bc4565b92505060e06142258b828c01613bc4565b9150509295985092959890939650565b60008060008060008060008060006101208a8c03121561425857614257615647565b5b60006142668c828d01613cb5565b99505060206142778c828d01613ca0565b98505060406142888c828d01613ca0565b97505060606142998c828d01613d50565b96505060806142aa8c828d01613d50565b95505060a08a013567ffffffffffffffff8111156142cb576142ca615642565b5b6142d78c828d01613d22565b94505060c06142e88c828d01613bc4565b93505060e06142f98c828d01613bc4565b92505061010061430b8c828d01613d50565b9150509295985092959850929598565b60006020828403121561433157614330615647565b5b600061433f84828501613cca565b91505092915050565b60006020828403121561435e5761435d615647565b5b600061436c84828501613cdf565b91505092915050565b60006020828403121561438b5761438a615647565b5b600082013567ffffffffffffffff8111156143a9576143a8615642565b5b6143b584828501613d22565b91505092915050565b6000602082840312156143d4576143d3615647565b5b60006143e284828501613d50565b91505092915050565b60006020828403121561440157614400615647565b5b600061440f84828501613d65565b91505092915050565b6000806040838503121561442f5761442e615647565b5b600061443d85828601613d50565b925050602061444e85828601613d50565b9150509250929050565b60008060008060008060a0878903121561447557614474615647565b5b600061448389828a01613d50565b965050602061449489828a01613d50565b95505060406144a589828a01613d50565b94505060606144b689828a01613d50565b935050608087013567ffffffffffffffff8111156144d7576144d6615642565b5b6144e389828a01613c1c565b92509250509295509295509295565b60006144fe8383614ab9565b60208301905092915050565b6145138161539a565b82525050565b61452a6145258261539a565b615518565b82525050565b600061453b8261524a565b6145458185615278565b935061455083615225565b8060005b8381101561458157815161456888826144f2565b97506145738361526b565b925050600181019050614554565b5085935050505092915050565b614597816153be565b82525050565b6145a6816153ca565b82525050565b6145bd6145b8826153ca565b61552a565b82525050565b60006145ce82615255565b6145d88185615289565b93506145e8818560208601615439565b6145f18161564c565b840191505092915050565b600061460782615260565b614611818561529a565b9350614621818560208601615439565b61462a8161564c565b840191505092915050565b600061464082615260565b61464a81856152ab565b935061465a818560208601615439565b80840191505092915050565b600081546146738161546c565b61467d81866152ab565b9450600182166000811461469857600181146146a9576146dc565b60ff198316865281860193506146dc565b6146b285615235565b60005b838110156146d4578154818901526001820191506020810190506146b5565b838801955050505b50505092915050565b60006146f260348361529a565b91506146fd82615677565b604082019050919050565b600061471560148361529a565b9150614720826156c6565b602082019050919050565b600061473860288361529a565b9150614743826156ef565b604082019050919050565b600061475b60148361529a565b91506147668261573e565b602082019050919050565b600061477e60228361529a565b915061478982615767565b604082019050919050565b60006147a1602b8361529a565b91506147ac826157b6565b604082019050919050565b60006147c460268361529a565b91506147cf82615805565b604082019050919050565b60006147e760248361529a565b91506147f282615854565b604082019050919050565b600061480a602c8361529a565b9150614815826158a3565b604082019050919050565b600061482d60298361529a565b9150614838826158f2565b604082019050919050565b600061485060178361529a565b915061485b82615941565b602082019050919050565b600061487360168361529a565b915061487e8261596a565b602082019050919050565b600061489660108361529a565b91506148a182615993565b602082019050919050565b60006148b960208361529a565b91506148c4826159bc565b602082019050919050565b60006148dc60258361529a565b91506148e7826159e5565b604082019050919050565b60006148ff60258361529a565b915061490a82615a34565b604082019050919050565b600061492260328361529a565b915061492d82615a83565b604082019050919050565b6000614945601d8361529a565b915061495082615ad2565b602082019050919050565b600061496860238361529a565b915061497382615afb565b604082019050919050565b600061498b602a8361529a565b915061499682615b4a565b604082019050919050565b60006149ae60208361529a565b91506149b982615b99565b602082019050919050565b60006149d160078361529a565b91506149dc82615bc2565b602082019050919050565b60006149f460188361529a565b91506149ff82615beb565b602082019050919050565b6000614a17602a8361529a565b9150614a2282615c14565b604082019050919050565b6000614a3a60298361529a565b9150614a4582615c63565b604082019050919050565b6000614a5d60298361529a565b9150614a6882615cb2565b604082019050919050565b6000614a8060288361529a565b9150614a8b82615d01565b604082019050919050565b6000614aa360218361529a565b9150614aae82615d50565b604082019050919050565b614ac281615420565b82525050565b614ad181615420565b82525050565b614ae8614ae382615420565b615546565b82525050565b6000614afa82856145ac565b602082019150614b0a82846145ac565b6020820191508190509392505050565b6000614b268285614635565b9150614b328284614666565b91508190509392505050565b6000614b4a8286614ad7565b602082019150614b5a8285614519565b601482019150614b6a8284614ad7565b602082019150819050949350505050565b6000602082019050614b90600083018461450a565b92915050565b600060a082019050614bab600083018861450a565b614bb8602083018761450a565b8181036040830152614bca8186614530565b90508181036060830152614bde8185614530565b90508181036080830152614bf281846145c3565b90509695505050505050565b600060a082019050614c13600083018861450a565b614c20602083018761450a565b614c2d6040830186614ac8565b614c3a6060830185614ac8565b8181036080830152614c4c81846145c3565b90509695505050505050565b60006020820190508181036000830152614c728184614530565b905092915050565b60006040820190508181036000830152614c948185614530565b90508181036020830152614ca88184614530565b90509392505050565b6000602082019050614cc6600083018461458e565b92915050565b600061012082019050614ce2600083018c61458e565b614cef602083018b614ac8565b614cfc604083018a614ac8565b8181036060830152614d0e81896145fc565b9050614d1d608083018861450a565b614d2a60a083018761459d565b614d3760c083018661458e565b614d4460e083018561458e565b614d5261010083018461450a565b9a9950505050505050505050565b60006020820190508181036000830152614d7a81846145fc565b905092915050565b60006020820190508181036000830152614d9b816146e5565b9050919050565b60006020820190508181036000830152614dbb81614708565b9050919050565b60006020820190508181036000830152614ddb8161472b565b9050919050565b60006020820190508181036000830152614dfb8161474e565b9050919050565b60006020820190508181036000830152614e1b81614771565b9050919050565b60006020820190508181036000830152614e3b81614794565b9050919050565b60006020820190508181036000830152614e5b816147b7565b9050919050565b60006020820190508181036000830152614e7b816147da565b9050919050565b60006020820190508181036000830152614e9b816147fd565b9050919050565b60006020820190508181036000830152614ebb81614820565b9050919050565b60006020820190508181036000830152614edb81614843565b9050919050565b60006020820190508181036000830152614efb81614866565b9050919050565b60006020820190508181036000830152614f1b81614889565b9050919050565b60006020820190508181036000830152614f3b816148ac565b9050919050565b60006020820190508181036000830152614f5b816148cf565b9050919050565b60006020820190508181036000830152614f7b816148f2565b9050919050565b60006020820190508181036000830152614f9b81614915565b9050919050565b60006020820190508181036000830152614fbb81614938565b9050919050565b60006020820190508181036000830152614fdb8161495b565b9050919050565b60006020820190508181036000830152614ffb8161497e565b9050919050565b6000602082019050818103600083015261501b816149a1565b9050919050565b6000602082019050818103600083015261503b816149c4565b9050919050565b6000602082019050818103600083015261505b816149e7565b9050919050565b6000602082019050818103600083015261507b81614a0a565b9050919050565b6000602082019050818103600083015261509b81614a2d565b9050919050565b600060208201905081810360008301526150bb81614a50565b9050919050565b600060208201905081810360008301526150db81614a73565b9050919050565b600060208201905081810360008301526150fb81614a96565b9050919050565b60006020820190506151176000830184614ac8565b92915050565b60006040820190506151326000830185614ac8565b61513f6020830184614ac8565b9392505050565b6000615150615161565b905061515c828261549e565b919050565b6000604051905090565b600067ffffffffffffffff821115615186576151856155dd565b5b602082029050602081019050919050565b600067ffffffffffffffff8211156151b2576151b16155dd565b5b602082029050602081019050919050565b600067ffffffffffffffff8211156151de576151dd6155dd565b5b6151e78261564c565b9050602081019050919050565b600067ffffffffffffffff82111561520f5761520e6155dd565b5b6152188261564c565b9050602081019050919050565b6000819050602082019050919050565b60008190508160005260206000209050919050565b600081519050919050565b600081519050919050565b600081519050919050565b6000602082019050919050565b600082825260208201905092915050565b600082825260208201905092915050565b600082825260208201905092915050565b600081905092915050565b60006152c182615420565b91506152cc83615420565b9250827fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0382111561530157615300615550565b5b828201905092915050565b600061531782615420565b915061532283615420565b9250817fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff048311821515161561535b5761535a615550565b5b828202905092915050565b600061537182615420565b915061537c83615420565b92508282101561538f5761538e615550565b5b828203905092915050565b60006153a582615400565b9050919050565b60006153b782615400565b9050919050565b60008115159050919050565b6000819050919050565b60007fffffffff0000000000000000000000000000000000000000000000000000000082169050919050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000819050919050565b82818337600083830152505050565b60005b8381101561545757808201518184015260208101905061543c565b83811115615466576000848401525b50505050565b6000600282049050600182168061548457607f821691505b602082108114156154985761549761557f565b5b50919050565b6154a78261564c565b810181811067ffffffffffffffff821117156154c6576154c56155dd565b5b80604052505050565b60006154da82615420565b91507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff82141561550d5761550c615550565b5b600182019050919050565b600061552382615534565b9050919050565b6000819050919050565b600061553f8261565d565b9050919050565b6000819050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b600060033d111561562b5760046000803e61562860005161566a565b90505b90565b600080fd5b600080fd5b600080fd5b600080fd5b600080fd5b600080fd5b6000601f19601f8301169050919050565b60008160601b9050919050565b60008160e01c9050919050565b7f455243313135353a207472616e7366657220746f206e6f6e204552433131353560008201527f526563656976657220696d706c656d656e746572000000000000000000000000602082015250565b7f4e6f20746f6b656e20737570706c79207965742e000000000000000000000000600082015250565b7f455243313135353a204552433131353552656365697665722072656a6563746560008201527f6420746f6b656e73000000000000000000000000000000000000000000000000602082015250565b7f5061757361626c653a206e6f7420706175736564000000000000000000000000600082015250565b7f4d696e74696e67206d6f7265207468616e20617661696c61626c65206d696e7460008201527f732e000000000000000000000000000000000000000000000000000000000000602082015250565b7f455243313135353a2062616c616e636520717565727920666f7220746865207a60008201527f65726f2061646472657373000000000000000000000000000000000000000000602082015250565b7f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160008201527f6464726573730000000000000000000000000000000000000000000000000000602082015250565b7f455243313135353a206275726e20616d6f756e7420657863656564732062616c60008201527f616e636500000000000000000000000000000000000000000000000000000000602082015250565b7f455243313135355061757361626c653a20746f6b656e207472616e736665722060008201527f7768696c65207061757365640000000000000000000000000000000000000000602082015250565b7f455243313135353a2063616c6c6572206973206e6f74206f776e6572206e6f7260008201527f20617070726f7665640000000000000000000000000000000000000000000000602082015250565b7f4b65792069732077686974656c6973742062617365642e000000000000000000600082015250565b7f496e76616c6964206d65726b6c652070726f6f66202100000000000000000000600082015250565b7f5061757361626c653a2070617573656400000000000000000000000000000000600082015250565b7f436f6c6c656374696e67206e6f74206f70656e2079657420666f72206b65792e600082015250565b7f436f6c6c656374696e67206e6f74206f70656e2079657420666f72207468697360008201527f206b65792e000000000000000000000000000000000000000000000000000000602082015250565b7f455243313135353a207472616e7366657220746f20746865207a65726f20616460008201527f6472657373000000000000000000000000000000000000000000000000000000602082015250565b7f455243313135353a207472616e736665722063616c6c6572206973206e6f742060008201527f6f776e6572206e6f7220617070726f7665640000000000000000000000000000602082015250565b7f457468657265756d2073656e74206e6f742073756666696369656e742e000000600082015250565b7f455243313135353a206275726e2066726f6d20746865207a65726f206164647260008201527f6573730000000000000000000000000000000000000000000000000000000000602082015250565b7f455243313135353a20696e73756666696369656e742062616c616e636520666f60008201527f72207472616e7366657200000000000000000000000000000000000000000000602082015250565b7f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572600082015250565b7f5478206d61782e00000000000000000000000000000000000000000000000000600082015250565b7f52656465656d61626c652061646472657373206f6e6c792e0000000000000000600082015250565b7f4c696e6b656420617373657420636f6e74726163742c206e6f7420656e6f756760008201527f682062616c616e63652e00000000000000000000000000000000000000000000602082015250565b7f455243313135353a2073657474696e6720617070726f76616c2073746174757360008201527f20666f722073656c660000000000000000000000000000000000000000000000602082015250565b7f455243313135353a206163636f756e747320616e6420696473206c656e67746860008201527f206d69736d617463680000000000000000000000000000000000000000000000602082015250565b7f455243313135353a2069647320616e6420616d6f756e7473206c656e6774682060008201527f6d69736d61746368000000000000000000000000000000000000000000000000602082015250565b7f455243313135353a206d696e7420746f20746865207a65726f2061646472657360008201527f7300000000000000000000000000000000000000000000000000000000000000602082015250565b600060443d1015615daf57615e32565b615db7615161565b60043d036004823e80513d602482011167ffffffffffffffff82111715615ddf575050615e32565b808201805167ffffffffffffffff811115615dfd5750505050615e32565b80602083010160043d038501811115615e1a575050505050615e32565b615e298260200185018661549e565b82955050505050505b90565b615e3e8161539a565b8114615e4957600080fd5b50565b615e55816153ac565b8114615e6057600080fd5b50565b615e6c816153be565b8114615e7757600080fd5b50565b615e83816153ca565b8114615e8e57600080fd5b50565b615e9a816153d4565b8114615ea557600080fd5b50565b615eb181615420565b8114615ebc57600080fd5b5056fea26469706673582212202a4e3241a15ac8e63a8cd000285bed78de4d5f469c5858dc082d7f558d01947e64736f6c6343000807003300000000000000000000000000000000000000000000000000000000000000400000000000000000000000000000000000000000000000000000000000000080000000000000000000000000000000000000000000000000000000000000000642594f4b45590000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000342594b0000000000000000000000000000000000000000000000000000000000

Deployed Bytecode

0x6080604052600436106101ed5760003560e01c8063715018a61161010d578063a22cb465116100a0578063e985e9c51161006f578063e985e9c5146106df578063f242432a1461071c578063f2fde38b14610745578063f5298aca1461076e578063fb32fb9614610797576101ed565b8063a22cb46514610625578063bd85b0391461064e578063ddb545d71461068b578063e3d4ca07146106b4576101ed565b80638da5cb5b116100dc5780638da5cb5b1461054d578063920928bd1461057857806395d89b41146105b557806397e6901f146105e0576101ed565b8063715018a6146104da578063736fe565146104f15780637ce063641461051a5780638456cb5914610536576101ed565b80633bdc2209116101855780634f558e79116101545780634f558e791461042057806355f804b31461045d5780635c975abb146104865780636b20c454146104b1576101ed565b80633bdc22091461037a5780633e50d9be146103a35780633f4ba83a146103cc5780634e1273f4146103e3576101ed565b806326507f62116101c157806326507f62146102d45780632eb2c2d6146102fd57806339e29c52146103265780633aeca21014610351576101ed565b8062fdd58e146101f257806301ffc9a71461022f57806306fdde031461026c5780630e89341c14610297575b600080fd5b3480156101fe57600080fd5b5061021960048036038101906102149190614058565b6107b3565b6040516102269190615102565b60405180910390f35b34801561023b57600080fd5b506102566004803603810190610251919061431b565b61087c565b6040516102639190614cb1565b60405180910390f35b34801561027857600080fd5b5061028161095e565b60405161028e9190614d60565b60405180910390f35b3480156102a357600080fd5b506102be60048036038101906102b991906143be565b6109f0565b6040516102cb9190614d60565b60405180910390f35b3480156102e057600080fd5b506102fb60048036038101906102f691906143be565b610a83565b005b34801561030957600080fd5b50610324600480360381019061031f9190613e27565b610b54565b005b34801561033257600080fd5b5061033b610bf5565b6040516103489190614d60565b60405180910390f35b34801561035d57600080fd5b5061037860048036038101906103739190614098565b610c83565b005b34801561038657600080fd5b506103a1600480360381019061039c9190614418565b610d37565b005b3480156103af57600080fd5b506103ca60048036038101906103c59190614163565b610dd2565b005b3480156103d857600080fd5b506103e1610f92565b005b3480156103ef57600080fd5b5061040a600480360381019061040591906140eb565b611018565b6040516104179190614c58565b60405180910390f35b34801561042c57600080fd5b50610447600480360381019061044291906143be565b611131565b6040516104549190614cb1565b60405180910390f35b34801561046957600080fd5b50610484600480360381019061047f9190614375565b611145565b005b34801561049257600080fd5b5061049b6111cd565b6040516104a89190614cb1565b60405180910390f35b3480156104bd57600080fd5b506104d860048036038101906104d39190613f8d565b6111e4565b005b3480156104e657600080fd5b506104ef611281565b005b3480156104fd57600080fd5b5061051860048036038101906105139190613da7565b611309565b005b610534600480360381019061052f9190614418565b6113d0565b005b34801561054257600080fd5b5061054b6115c3565b005b34801561055957600080fd5b50610562611649565b60405161056f9190614b7b565b60405180910390f35b34801561058457600080fd5b5061059f600480360381019061059a91906143be565b611673565b6040516105ac9190614cb1565b60405180910390f35b3480156105c157600080fd5b506105ca6116a0565b6040516105d79190614d60565b60405180910390f35b3480156105ec57600080fd5b50610607600480360381019061060291906143be565b611732565b60405161061c99989796959493929190614ccc565b60405180910390f35b34801561063157600080fd5b5061064c60048036038101906106479190614018565b61186f565b005b34801561065a57600080fd5b50610675600480360381019061067091906143be565b6119f0565b6040516106829190615102565b60405180910390f35b34801561069757600080fd5b506106b260048036038101906106ad9190614235565b611a0d565b005b3480156106c057600080fd5b506106c9611c16565b6040516106d69190614d60565b60405180910390f35b3480156106eb57600080fd5b5061070660048036038101906107019190613de7565b611ca4565b6040516107139190614cb1565b60405180910390f35b34801561072857600080fd5b50610743600480360381019061073e9190613ef6565b611d38565b005b34801561075157600080fd5b5061076c60048036038101906107679190613d7a565b611dd9565b005b34801561077a57600080fd5b5061079560048036038101906107909190614098565b611ed1565b005b6107b160048036038101906107ac9190614458565b611f6e565b005b60008073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff161415610824576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161081b90614e22565b60405180910390fd5b60008083815260200190815260200160002060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054905092915050565b60007fd9b67a26000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916148061094757507f0e89341c000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b80610957575061095682612387565b5b9050919050565b60606006805461096d9061546c565b80601f01602080910402602001604051908101604052809291908181526020018280546109999061546c565b80156109e65780601f106109bb576101008083540402835291602001916109e6565b820191906000526020600020905b8154815290600101906020018083116109c957829003601f168201915b5050505050905090565b606060006109fd836119f0565b11610a3d576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610a3490614da2565b60405180910390fd5b610a46826123f1565b60086000848152602001908152602001600020600301604051602001610a6d929190614b1a565b6040516020818303038152906040529050919050565b610a8b612485565b73ffffffffffffffffffffffffffffffffffffffff16610aa9611649565b73ffffffffffffffffffffffffffffffffffffffff1614610aff576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610af690615002565b60405180910390fd5b6008600082815260200190815260200160002060000160009054906101000a900460ff16156008600083815260200190815260200160002060000160006101000a81548160ff02191690831515021790555050565b610b5c612485565b73ffffffffffffffffffffffffffffffffffffffff168573ffffffffffffffffffffffffffffffffffffffff161480610ba25750610ba185610b9c612485565b611ca4565b5b610be1576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610bd890614f82565b60405180910390fd5b610bee858585858561248d565b5050505050565b60068054610c029061546c565b80601f0160208091040260200160405190810160405280929190818152602001828054610c2e9061546c565b8015610c7b5780601f10610c5057610100808354040283529160200191610c7b565b820191906000526020600020905b815481529060010190602001808311610c5e57829003601f168201915b505050505081565b3373ffffffffffffffffffffffffffffffffffffffff166008600084815260200190815260200160002060040160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1614610d27576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610d1e90615042565b60405180910390fd5b610d328383836127a1565b505050565b610d3f612485565b73ffffffffffffffffffffffffffffffffffffffff16610d5d611649565b73ffffffffffffffffffffffffffffffffffffffff1614610db3576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610daa90615002565b60405180910390fd5b610dce338284604051806020016040528060008152506127b1565b5050565b610dda612485565b73ffffffffffffffffffffffffffffffffffffffff16610df8611649565b73ffffffffffffffffffffffffffffffffffffffff1614610e4e576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610e4590615002565b60405180910390fd5b600060086000610e5e60096127c3565b8152602001908152602001600020905088816005018190555060008160000160006101000a81548160ff021916908315150217905550878160060160006101000a81548160ff021916908315150217905550868160060160016101000a81548160ff02191690831515021790555085816001018190555084816002018190555083816003019080519060200190610ef69291906139bd565b50828160040160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550818160060160026101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550610f8760096127d1565b505050505050505050565b610f9a612485565b73ffffffffffffffffffffffffffffffffffffffff16610fb8611649565b73ffffffffffffffffffffffffffffffffffffffff161461100e576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161100590615002565b60405180910390fd5b6110166127e7565b565b6060815183511461105e576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611055906150a2565b60405180910390fd5b6000835167ffffffffffffffff81111561107b5761107a6155dd565b5b6040519080825280602002602001820160405280156110a95781602001602082028036833780820191505090505b50905060005b8451811015611126576110f68582815181106110ce576110cd6155ae565b5b60200260200101518583815181106110e9576110e86155ae565b5b60200260200101516107b3565b828281518110611109576111086155ae565b5b6020026020010181815250508061111f906154cf565b90506110af565b508091505092915050565b60008061113d836119f0565b119050919050565b61114d612485565b73ffffffffffffffffffffffffffffffffffffffff1661116b611649565b73ffffffffffffffffffffffffffffffffffffffff16146111c1576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016111b890615002565b60405180910390fd5b6111ca81612889565b50565b6000600360009054906101000a900460ff16905090565b6111ec612485565b73ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff16148061123257506112318361122c612485565b611ca4565b5b611271576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161126890614ea2565b60405180910390fd5b61127c8383836128a3565b505050565b611289612485565b73ffffffffffffffffffffffffffffffffffffffff166112a7611649565b73ffffffffffffffffffffffffffffffffffffffff16146112fd576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016112f490615002565b60405180910390fd5b61130760006128b3565b565b611311612485565b73ffffffffffffffffffffffffffffffffffffffff1661132f611649565b73ffffffffffffffffffffffffffffffffffffffff1614611385576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161137c90615002565b60405180910390fd5b8173ffffffffffffffffffffffffffffffffffffffff166108fc829081150290604051600060405180830381858888f193505050501580156113cb573d6000803e3d6000fd5b505050565b6008600082815260200190815260200160002060000160009054906101000a900460ff16611433576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161142a90614f42565b60405180910390fd5b600015156008600083815260200190815260200160002060060160009054906101000a900460ff1615151461149d576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161149490614ec2565b60405180910390fd5b6000600860008381526020019081526020016000206002015414806114d8575060086000828152602001908152602001600020600201548211155b611517576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161150e90615022565b60405180910390fd5b60006008600083815260200190815260200160002060010154118015611564575061156160086000838152602001908152602001600020600101548361297990919063ffffffff16565b34105b156115a4576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161159b90614fa2565b60405180910390fd5b6115bf338284604051806020016040528060008152506127b1565b5050565b6115cb612485565b73ffffffffffffffffffffffffffffffffffffffff166115e9611649565b73ffffffffffffffffffffffffffffffffffffffff161461163f576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161163690615002565b60405180910390fd5b61164761298f565b565b6000600560009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b60006008600083815260200190815260200160002060000160009054906101000a900460ff169050919050565b6060600780546116af9061546c565b80601f01602080910402602001604051908101604052809291908181526020018280546116db9061546c565b80156117285780601f106116fd57610100808354040283529160200191611728565b820191906000526020600020905b81548152906001019060200180831161170b57829003601f168201915b5050505050905090565b60086020528060005260406000206000915090508060000160009054906101000a900460ff16908060010154908060020154908060030180546117749061546c565b80601f01602080910402602001604051908101604052809291908181526020018280546117a09061546c565b80156117ed5780601f106117c2576101008083540402835291602001916117ed565b820191906000526020600020905b8154815290600101906020018083116117d057829003601f168201915b5050505050908060040160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16908060050154908060060160009054906101000a900460ff16908060060160019054906101000a900460ff16908060060160029054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905089565b8173ffffffffffffffffffffffffffffffffffffffff1661188e612485565b73ffffffffffffffffffffffffffffffffffffffff1614156118e5576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016118dc90615082565b60405180910390fd5b80600160006118f2612485565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055508173ffffffffffffffffffffffffffffffffffffffff1661199f612485565b73ffffffffffffffffffffffffffffffffffffffff167f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31836040516119e49190614cb1565b60405180910390a35050565b600060046000838152602001908152602001600020549050919050565b611a15612485565b73ffffffffffffffffffffffffffffffffffffffff16611a33611649565b73ffffffffffffffffffffffffffffffffffffffff1614611a89576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611a8090615002565b60405180910390fd5b886008600083815260200190815260200160002060050181905550876008600083815260200190815260200160002060060160006101000a81548160ff021916908315150217905550866008600083815260200190815260200160002060060160016101000a81548160ff02191690831515021790555085600860008381526020019081526020016000206001018190555084600860008381526020019081526020016000206002018190555083600860008381526020019081526020016000206003019080519060200190611b609291906139bd565b50826008600083815260200190815260200160002060040160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550816008600083815260200190815260200160002060060160026101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550505050505050505050565b60078054611c239061546c565b80601f0160208091040260200160405190810160405280929190818152602001828054611c4f9061546c565b8015611c9c5780601f10611c7157610100808354040283529160200191611c9c565b820191906000526020600020905b815481529060010190602001808311611c7f57829003601f168201915b505050505081565b6000600160008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16905092915050565b611d40612485565b73ffffffffffffffffffffffffffffffffffffffff168573ffffffffffffffffffffffffffffffffffffffff161480611d865750611d8585611d80612485565b611ca4565b5b611dc5576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611dbc90614ea2565b60405180910390fd5b611dd28585858585612a32565b5050505050565b611de1612485565b73ffffffffffffffffffffffffffffffffffffffff16611dff611649565b73ffffffffffffffffffffffffffffffffffffffff1614611e55576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611e4c90615002565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff161415611ec5576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611ebc90614e42565b60405180910390fd5b611ece816128b3565b50565b611ed9612485565b73ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff161480611f1f5750611f1e83611f19612485565b611ca4565b5b611f5e576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611f5590614ea2565b60405180910390fd5b611f698383836127a1565b505050565b6008600086815260200190815260200160002060000160009054906101000a900460ff16611fd1576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611fc890614f22565b60405180910390fd5b6000600860008781526020019081526020016000206001015411801561201e575061201b60086000878152602001908152602001600020600101548761297990919063ffffffff16565b34105b1561205e576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161205590614fa2565b60405180910390fd5b600060086000878152602001908152602001600020600201541480612099575060086000868152602001908152602001600020600201548611155b6120d8576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016120cf90615022565b60405180910390fd5b60008433856040516020016120ef93929190614b3e565b604051602081830303815290604052805190602001209050612169838380806020026020016040519081016040528093929190818152602001838360200280828437600081840152601f19601f82011690508083019250505050505050600860008981526020019081526020016000206005015483612cb4565b6121a8576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161219f90614ee2565b60405180910390fd5b60008414806121d25750836121cf886121c1338a6107b3565b612d6a90919063ffffffff16565b11155b612211576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161220890614e02565b60405180910390fd5b6008600087815260200190815260200160002060060160019054906101000a900460ff16156123635760006008600088815260200190815260200160002060060160029054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905060008173ffffffffffffffffffffffffffffffffffffffff166370a08231336040518263ffffffff1660e01b81526004016122b09190614b7b565b60206040518083038186803b1580156122c857600080fd5b505afa1580156122dc573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061230091906143eb565b90508061231f8a612311338c6107b3565b612d6a90919063ffffffff16565b1115612360576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161235790615062565b60405180910390fd5b50505b61237e338789604051806020016040528060008152506127b1565b50505050505050565b60007f01ffc9a7000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916149050919050565b6060600280546124009061546c565b80601f016020809104026020016040519081016040528092919081815260200182805461242c9061546c565b80156124795780601f1061244e57610100808354040283529160200191612479565b820191906000526020600020905b81548152906001019060200180831161245c57829003601f168201915b50505050509050919050565b600033905090565b81518351146124d1576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016124c8906150c2565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff161415612541576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161253890614f62565b60405180910390fd5b600061254b612485565b905061255b818787878787612d80565b60005b845181101561270c57600085828151811061257c5761257b6155ae565b5b60200260200101519050600085838151811061259b5761259a6155ae565b5b60200260200101519050600080600084815260200190815260200160002060008b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000205490508181101561263c576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161263390614fe2565b60405180910390fd5b81810360008085815260200190815260200160002060008c73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055508160008085815260200190815260200160002060008b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008282546126f191906152b6565b9250508190555050505080612705906154cf565b905061255e565b508473ffffffffffffffffffffffffffffffffffffffff168673ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff167f4a39dc06d4c0dbc64b70af90fd698a233a518aa5d07e595d983b8c0526c8f7fb8787604051612783929190614c7a565b60405180910390a4612799818787878787612d96565b505050505050565b6127ac838383612f7d565b505050565b6127bd84848484612fb7565b50505050565b600081600001549050919050565b6001816000016000828254019250508190555050565b6127ef6111cd565b61282e576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161282590614de2565b60405180910390fd5b6000600360006101000a81548160ff0219169083151502179055507f5db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa612872612485565b60405161287f9190614b7b565b60405180910390a1565b806002908051906020019061289f9291906139bd565b5050565b6128ae838383612ff3565b505050565b6000600560009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905081600560006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b60008183612987919061530c565b905092915050565b6129976111cd565b156129d7576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016129ce90614f02565b60405180910390fd5b6001600360006101000a81548160ff0219169083151502179055507f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a258612a1b612485565b604051612a289190614b7b565b60405180910390a1565b600073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff161415612aa2576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612a9990614f62565b60405180910390fd5b6000612aac612485565b9050612acc818787612abd8861307f565b612ac68861307f565b87612d80565b600080600086815260200190815260200160002060008873ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054905083811015612b63576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612b5a90614fe2565b60405180910390fd5b83810360008087815260200190815260200160002060008973ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055508360008087815260200190815260200160002060008873ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000828254612c1891906152b6565b925050819055508573ffffffffffffffffffffffffffffffffffffffff168773ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff167fc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f628888604051612c9592919061511d565b60405180910390a4612cab8288888888886130f9565b50505050505050565b60008082905060005b8551811015612d5c576000868281518110612cdb57612cda6155ae565b5b60200260200101519050808311612d1c578281604051602001612cff929190614aee565b604051602081830303815290604052805190602001209250612d48565b8083604051602001612d2f929190614aee565b6040516020818303038152906040528051906020012092505b508080612d54906154cf565b915050612cbd565b508381149150509392505050565b60008183612d7891906152b6565b905092915050565b612d8e8686868686866132e0565b505050505050565b612db58473ffffffffffffffffffffffffffffffffffffffff1661333e565b15612f75578373ffffffffffffffffffffffffffffffffffffffff1663bc197c8187878686866040518663ffffffff1660e01b8152600401612dfb959493929190614b96565b602060405180830381600087803b158015612e1557600080fd5b505af1925050508015612e4657506040513d601f19601f82011682018060405250810190612e439190614348565b60015b612eec57612e5261560c565b806308c379a01415612eaf5750612e67615d9f565b80612e725750612eb1565b806040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612ea69190614d60565b60405180910390fd5b505b6040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612ee390614d82565b60405180910390fd5b63bc197c8160e01b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916817bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614612f73576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612f6a90614dc2565b60405180910390fd5b505b505050505050565b612f88838383613351565b80600460008481526020019081526020016000206000828254612fab9190615366565b92505081905550505050565b612fc38484848461356e565b81600460008581526020019081526020016000206000828254612fe691906152b6565b9250508190555050505050565b612ffe838383613704565b60005b82518110156130795781818151811061301d5761301c6155ae565b5b60200260200101516004600085848151811061303c5761303b6155ae565b5b6020026020010151815260200190815260200160002060008282546130619190615366565b9250508190555080613072906154cf565b9050613001565b50505050565b60606000600167ffffffffffffffff81111561309e5761309d6155dd565b5b6040519080825280602002602001820160405280156130cc5781602001602082028036833780820191505090505b50905082816000815181106130e4576130e36155ae565b5b60200260200101818152505080915050919050565b6131188473ffffffffffffffffffffffffffffffffffffffff1661333e565b156132d8578373ffffffffffffffffffffffffffffffffffffffff1663f23a6e6187878686866040518663ffffffff1660e01b815260040161315e959493929190614bfe565b602060405180830381600087803b15801561317857600080fd5b505af19250505080156131a957506040513d601f19601f820116820180604052508101906131a69190614348565b60015b61324f576131b561560c565b806308c379a0141561321257506131ca615d9f565b806131d55750613214565b806040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016132099190614d60565b60405180910390fd5b505b6040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161324690614d82565b60405180910390fd5b63f23a6e6160e01b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916817bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916146132d6576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016132cd90614dc2565b60405180910390fd5b505b505050505050565b6132ee8686868686866139b5565b6132f66111cd565b15613336576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161332d90614e82565b60405180910390fd5b505050505050565b600080823b905060008111915050919050565b600073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff1614156133c1576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016133b890614fc2565b60405180910390fd5b60006133cb612485565b90506133fb818560006133dd8761307f565b6133e68761307f565b60405180602001604052806000815250612d80565b600080600085815260200190815260200160002060008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054905082811015613492576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161348990614e62565b60405180910390fd5b82810360008086815260200190815260200160002060008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002081905550600073ffffffffffffffffffffffffffffffffffffffff168573ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff167fc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f62878760405161355f92919061511d565b60405180910390a45050505050565b600073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff1614156135de576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016135d5906150e2565b60405180910390fd5b60006135e8612485565b9050613609816000876135fa8861307f565b6136038861307f565b87612d80565b8260008086815260200190815260200160002060008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600082825461366891906152b6565b925050819055508473ffffffffffffffffffffffffffffffffffffffff16600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff167fc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f6287876040516136e692919061511d565b60405180910390a46136fd816000878787876130f9565b5050505050565b600073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff161415613774576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161376b90614fc2565b60405180910390fd5b80518251146137b8576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016137af906150c2565b60405180910390fd5b60006137c2612485565b90506137e281856000868660405180602001604052806000815250612d80565b60005b835181101561392f576000848281518110613803576138026155ae565b5b602002602001015190506000848381518110613822576138216155ae565b5b60200260200101519050600080600084815260200190815260200160002060008973ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020549050818110156138c3576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016138ba90614e62565b60405180910390fd5b81810360008085815260200190815260200160002060008a73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055505050508080613927906154cf565b9150506137e5565b50600073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff167f4a39dc06d4c0dbc64b70af90fd698a233a518aa5d07e595d983b8c0526c8f7fb86866040516139a7929190614c7a565b60405180910390a450505050565b505050505050565b8280546139c99061546c565b90600052602060002090601f0160209004810192826139eb5760008555613a32565b82601f10613a0457805160ff1916838001178555613a32565b82800160010185558215613a32579182015b82811115613a31578251825591602001919060010190613a16565b5b509050613a3f9190613a43565b5090565b5b80821115613a5c576000816000905550600101613a44565b5090565b6000613a73613a6e8461516b565b615146565b90508083825260208201905082856020860282011115613a9657613a95615638565b5b60005b85811015613ac65781613aac8882613bc4565b845260208401935060208301925050600181019050613a99565b5050509392505050565b6000613ae3613ade84615197565b615146565b90508083825260208201905082856020860282011115613b0657613b05615638565b5b60005b85811015613b365781613b1c8882613d50565b845260208401935060208301925050600181019050613b09565b5050509392505050565b6000613b53613b4e846151c3565b615146565b905082815260208101848484011115613b6f57613b6e61563d565b5b613b7a84828561542a565b509392505050565b6000613b95613b90846151f4565b615146565b905082815260208101848484011115613bb157613bb061563d565b5b613bbc84828561542a565b509392505050565b600081359050613bd381615e35565b92915050565b600081359050613be881615e4c565b92915050565b600082601f830112613c0357613c02615633565b5b8135613c13848260208601613a60565b91505092915050565b60008083601f840112613c3257613c31615633565b5b8235905067ffffffffffffffff811115613c4f57613c4e61562e565b5b602083019150836020820283011115613c6b57613c6a615638565b5b9250929050565b600082601f830112613c8757613c86615633565b5b8135613c97848260208601613ad0565b91505092915050565b600081359050613caf81615e63565b92915050565b600081359050613cc481615e7a565b92915050565b600081359050613cd981615e91565b92915050565b600081519050613cee81615e91565b92915050565b600082601f830112613d0957613d08615633565b5b8135613d19848260208601613b40565b91505092915050565b600082601f830112613d3757613d36615633565b5b8135613d47848260208601613b82565b91505092915050565b600081359050613d5f81615ea8565b92915050565b600081519050613d7481615ea8565b92915050565b600060208284031215613d9057613d8f615647565b5b6000613d9e84828501613bc4565b91505092915050565b60008060408385031215613dbe57613dbd615647565b5b6000613dcc85828601613bd9565b9250506020613ddd85828601613d50565b9150509250929050565b60008060408385031215613dfe57613dfd615647565b5b6000613e0c85828601613bc4565b9250506020613e1d85828601613bc4565b9150509250929050565b600080600080600060a08688031215613e4357613e42615647565b5b6000613e5188828901613bc4565b9550506020613e6288828901613bc4565b945050604086013567ffffffffffffffff811115613e8357613e82615642565b5b613e8f88828901613c72565b935050606086013567ffffffffffffffff811115613eb057613eaf615642565b5b613ebc88828901613c72565b925050608086013567ffffffffffffffff811115613edd57613edc615642565b5b613ee988828901613cf4565b9150509295509295909350565b600080600080600060a08688031215613f1257613f11615647565b5b6000613f2088828901613bc4565b9550506020613f3188828901613bc4565b9450506040613f4288828901613d50565b9350506060613f5388828901613d50565b925050608086013567ffffffffffffffff811115613f7457613f73615642565b5b613f8088828901613cf4565b9150509295509295909350565b600080600060608486031215613fa657613fa5615647565b5b6000613fb486828701613bc4565b935050602084013567ffffffffffffffff811115613fd557613fd4615642565b5b613fe186828701613c72565b925050604084013567ffffffffffffffff81111561400257614001615642565b5b61400e86828701613c72565b9150509250925092565b6000806040838503121561402f5761402e615647565b5b600061403d85828601613bc4565b925050602061404e85828601613ca0565b9150509250929050565b6000806040838503121561406f5761406e615647565b5b600061407d85828601613bc4565b925050602061408e85828601613d50565b9150509250929050565b6000806000606084860312156140b1576140b0615647565b5b60006140bf86828701613bc4565b93505060206140d086828701613d50565b92505060406140e186828701613d50565b9150509250925092565b6000806040838503121561410257614101615647565b5b600083013567ffffffffffffffff8111156141205761411f615642565b5b61412c85828601613bee565b925050602083013567ffffffffffffffff81111561414d5761414c615642565b5b61415985828601613c72565b9150509250929050565b600080600080600080600080610100898b03121561418457614183615647565b5b60006141928b828c01613cb5565b98505060206141a38b828c01613ca0565b97505060406141b48b828c01613ca0565b96505060606141c58b828c01613d50565b95505060806141d68b828c01613d50565b94505060a089013567ffffffffffffffff8111156141f7576141f6615642565b5b6142038b828c01613d22565b93505060c06142148b828c01613bc4565b92505060e06142258b828c01613bc4565b9150509295985092959890939650565b60008060008060008060008060006101208a8c03121561425857614257615647565b5b60006142668c828d01613cb5565b99505060206142778c828d01613ca0565b98505060406142888c828d01613ca0565b97505060606142998c828d01613d50565b96505060806142aa8c828d01613d50565b95505060a08a013567ffffffffffffffff8111156142cb576142ca615642565b5b6142d78c828d01613d22565b94505060c06142e88c828d01613bc4565b93505060e06142f98c828d01613bc4565b92505061010061430b8c828d01613d50565b9150509295985092959850929598565b60006020828403121561433157614330615647565b5b600061433f84828501613cca565b91505092915050565b60006020828403121561435e5761435d615647565b5b600061436c84828501613cdf565b91505092915050565b60006020828403121561438b5761438a615647565b5b600082013567ffffffffffffffff8111156143a9576143a8615642565b5b6143b584828501613d22565b91505092915050565b6000602082840312156143d4576143d3615647565b5b60006143e284828501613d50565b91505092915050565b60006020828403121561440157614400615647565b5b600061440f84828501613d65565b91505092915050565b6000806040838503121561442f5761442e615647565b5b600061443d85828601613d50565b925050602061444e85828601613d50565b9150509250929050565b60008060008060008060a0878903121561447557614474615647565b5b600061448389828a01613d50565b965050602061449489828a01613d50565b95505060406144a589828a01613d50565b94505060606144b689828a01613d50565b935050608087013567ffffffffffffffff8111156144d7576144d6615642565b5b6144e389828a01613c1c565b92509250509295509295509295565b60006144fe8383614ab9565b60208301905092915050565b6145138161539a565b82525050565b61452a6145258261539a565b615518565b82525050565b600061453b8261524a565b6145458185615278565b935061455083615225565b8060005b8381101561458157815161456888826144f2565b97506145738361526b565b925050600181019050614554565b5085935050505092915050565b614597816153be565b82525050565b6145a6816153ca565b82525050565b6145bd6145b8826153ca565b61552a565b82525050565b60006145ce82615255565b6145d88185615289565b93506145e8818560208601615439565b6145f18161564c565b840191505092915050565b600061460782615260565b614611818561529a565b9350614621818560208601615439565b61462a8161564c565b840191505092915050565b600061464082615260565b61464a81856152ab565b935061465a818560208601615439565b80840191505092915050565b600081546146738161546c565b61467d81866152ab565b9450600182166000811461469857600181146146a9576146dc565b60ff198316865281860193506146dc565b6146b285615235565b60005b838110156146d4578154818901526001820191506020810190506146b5565b838801955050505b50505092915050565b60006146f260348361529a565b91506146fd82615677565b604082019050919050565b600061471560148361529a565b9150614720826156c6565b602082019050919050565b600061473860288361529a565b9150614743826156ef565b604082019050919050565b600061475b60148361529a565b91506147668261573e565b602082019050919050565b600061477e60228361529a565b915061478982615767565b604082019050919050565b60006147a1602b8361529a565b91506147ac826157b6565b604082019050919050565b60006147c460268361529a565b91506147cf82615805565b604082019050919050565b60006147e760248361529a565b91506147f282615854565b604082019050919050565b600061480a602c8361529a565b9150614815826158a3565b604082019050919050565b600061482d60298361529a565b9150614838826158f2565b604082019050919050565b600061485060178361529a565b915061485b82615941565b602082019050919050565b600061487360168361529a565b915061487e8261596a565b602082019050919050565b600061489660108361529a565b91506148a182615993565b602082019050919050565b60006148b960208361529a565b91506148c4826159bc565b602082019050919050565b60006148dc60258361529a565b91506148e7826159e5565b604082019050919050565b60006148ff60258361529a565b915061490a82615a34565b604082019050919050565b600061492260328361529a565b915061492d82615a83565b604082019050919050565b6000614945601d8361529a565b915061495082615ad2565b602082019050919050565b600061496860238361529a565b915061497382615afb565b604082019050919050565b600061498b602a8361529a565b915061499682615b4a565b604082019050919050565b60006149ae60208361529a565b91506149b982615b99565b602082019050919050565b60006149d160078361529a565b91506149dc82615bc2565b602082019050919050565b60006149f460188361529a565b91506149ff82615beb565b602082019050919050565b6000614a17602a8361529a565b9150614a2282615c14565b604082019050919050565b6000614a3a60298361529a565b9150614a4582615c63565b604082019050919050565b6000614a5d60298361529a565b9150614a6882615cb2565b604082019050919050565b6000614a8060288361529a565b9150614a8b82615d01565b604082019050919050565b6000614aa360218361529a565b9150614aae82615d50565b604082019050919050565b614ac281615420565b82525050565b614ad181615420565b82525050565b614ae8614ae382615420565b615546565b82525050565b6000614afa82856145ac565b602082019150614b0a82846145ac565b6020820191508190509392505050565b6000614b268285614635565b9150614b328284614666565b91508190509392505050565b6000614b4a8286614ad7565b602082019150614b5a8285614519565b601482019150614b6a8284614ad7565b602082019150819050949350505050565b6000602082019050614b90600083018461450a565b92915050565b600060a082019050614bab600083018861450a565b614bb8602083018761450a565b8181036040830152614bca8186614530565b90508181036060830152614bde8185614530565b90508181036080830152614bf281846145c3565b90509695505050505050565b600060a082019050614c13600083018861450a565b614c20602083018761450a565b614c2d6040830186614ac8565b614c3a6060830185614ac8565b8181036080830152614c4c81846145c3565b90509695505050505050565b60006020820190508181036000830152614c728184614530565b905092915050565b60006040820190508181036000830152614c948185614530565b90508181036020830152614ca88184614530565b90509392505050565b6000602082019050614cc6600083018461458e565b92915050565b600061012082019050614ce2600083018c61458e565b614cef602083018b614ac8565b614cfc604083018a614ac8565b8181036060830152614d0e81896145fc565b9050614d1d608083018861450a565b614d2a60a083018761459d565b614d3760c083018661458e565b614d4460e083018561458e565b614d5261010083018461450a565b9a9950505050505050505050565b60006020820190508181036000830152614d7a81846145fc565b905092915050565b60006020820190508181036000830152614d9b816146e5565b9050919050565b60006020820190508181036000830152614dbb81614708565b9050919050565b60006020820190508181036000830152614ddb8161472b565b9050919050565b60006020820190508181036000830152614dfb8161474e565b9050919050565b60006020820190508181036000830152614e1b81614771565b9050919050565b60006020820190508181036000830152614e3b81614794565b9050919050565b60006020820190508181036000830152614e5b816147b7565b9050919050565b60006020820190508181036000830152614e7b816147da565b9050919050565b60006020820190508181036000830152614e9b816147fd565b9050919050565b60006020820190508181036000830152614ebb81614820565b9050919050565b60006020820190508181036000830152614edb81614843565b9050919050565b60006020820190508181036000830152614efb81614866565b9050919050565b60006020820190508181036000830152614f1b81614889565b9050919050565b60006020820190508181036000830152614f3b816148ac565b9050919050565b60006020820190508181036000830152614f5b816148cf565b9050919050565b60006020820190508181036000830152614f7b816148f2565b9050919050565b60006020820190508181036000830152614f9b81614915565b9050919050565b60006020820190508181036000830152614fbb81614938565b9050919050565b60006020820190508181036000830152614fdb8161495b565b9050919050565b60006020820190508181036000830152614ffb8161497e565b9050919050565b6000602082019050818103600083015261501b816149a1565b9050919050565b6000602082019050818103600083015261503b816149c4565b9050919050565b6000602082019050818103600083015261505b816149e7565b9050919050565b6000602082019050818103600083015261507b81614a0a565b9050919050565b6000602082019050818103600083015261509b81614a2d565b9050919050565b600060208201905081810360008301526150bb81614a50565b9050919050565b600060208201905081810360008301526150db81614a73565b9050919050565b600060208201905081810360008301526150fb81614a96565b9050919050565b60006020820190506151176000830184614ac8565b92915050565b60006040820190506151326000830185614ac8565b61513f6020830184614ac8565b9392505050565b6000615150615161565b905061515c828261549e565b919050565b6000604051905090565b600067ffffffffffffffff821115615186576151856155dd565b5b602082029050602081019050919050565b600067ffffffffffffffff8211156151b2576151b16155dd565b5b602082029050602081019050919050565b600067ffffffffffffffff8211156151de576151dd6155dd565b5b6151e78261564c565b9050602081019050919050565b600067ffffffffffffffff82111561520f5761520e6155dd565b5b6152188261564c565b9050602081019050919050565b6000819050602082019050919050565b60008190508160005260206000209050919050565b600081519050919050565b600081519050919050565b600081519050919050565b6000602082019050919050565b600082825260208201905092915050565b600082825260208201905092915050565b600082825260208201905092915050565b600081905092915050565b60006152c182615420565b91506152cc83615420565b9250827fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0382111561530157615300615550565b5b828201905092915050565b600061531782615420565b915061532283615420565b9250817fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff048311821515161561535b5761535a615550565b5b828202905092915050565b600061537182615420565b915061537c83615420565b92508282101561538f5761538e615550565b5b828203905092915050565b60006153a582615400565b9050919050565b60006153b782615400565b9050919050565b60008115159050919050565b6000819050919050565b60007fffffffff0000000000000000000000000000000000000000000000000000000082169050919050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000819050919050565b82818337600083830152505050565b60005b8381101561545757808201518184015260208101905061543c565b83811115615466576000848401525b50505050565b6000600282049050600182168061548457607f821691505b602082108114156154985761549761557f565b5b50919050565b6154a78261564c565b810181811067ffffffffffffffff821117156154c6576154c56155dd565b5b80604052505050565b60006154da82615420565b91507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff82141561550d5761550c615550565b5b600182019050919050565b600061552382615534565b9050919050565b6000819050919050565b600061553f8261565d565b9050919050565b6000819050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b600060033d111561562b5760046000803e61562860005161566a565b90505b90565b600080fd5b600080fd5b600080fd5b600080fd5b600080fd5b600080fd5b6000601f19601f8301169050919050565b60008160601b9050919050565b60008160e01c9050919050565b7f455243313135353a207472616e7366657220746f206e6f6e204552433131353560008201527f526563656976657220696d706c656d656e746572000000000000000000000000602082015250565b7f4e6f20746f6b656e20737570706c79207965742e000000000000000000000000600082015250565b7f455243313135353a204552433131353552656365697665722072656a6563746560008201527f6420746f6b656e73000000000000000000000000000000000000000000000000602082015250565b7f5061757361626c653a206e6f7420706175736564000000000000000000000000600082015250565b7f4d696e74696e67206d6f7265207468616e20617661696c61626c65206d696e7460008201527f732e000000000000000000000000000000000000000000000000000000000000602082015250565b7f455243313135353a2062616c616e636520717565727920666f7220746865207a60008201527f65726f2061646472657373000000000000000000000000000000000000000000602082015250565b7f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160008201527f6464726573730000000000000000000000000000000000000000000000000000602082015250565b7f455243313135353a206275726e20616d6f756e7420657863656564732062616c60008201527f616e636500000000000000000000000000000000000000000000000000000000602082015250565b7f455243313135355061757361626c653a20746f6b656e207472616e736665722060008201527f7768696c65207061757365640000000000000000000000000000000000000000602082015250565b7f455243313135353a2063616c6c6572206973206e6f74206f776e6572206e6f7260008201527f20617070726f7665640000000000000000000000000000000000000000000000602082015250565b7f4b65792069732077686974656c6973742062617365642e000000000000000000600082015250565b7f496e76616c6964206d65726b6c652070726f6f66202100000000000000000000600082015250565b7f5061757361626c653a2070617573656400000000000000000000000000000000600082015250565b7f436f6c6c656374696e67206e6f74206f70656e2079657420666f72206b65792e600082015250565b7f436f6c6c656374696e67206e6f74206f70656e2079657420666f72207468697360008201527f206b65792e000000000000000000000000000000000000000000000000000000602082015250565b7f455243313135353a207472616e7366657220746f20746865207a65726f20616460008201527f6472657373000000000000000000000000000000000000000000000000000000602082015250565b7f455243313135353a207472616e736665722063616c6c6572206973206e6f742060008201527f6f776e6572206e6f7220617070726f7665640000000000000000000000000000602082015250565b7f457468657265756d2073656e74206e6f742073756666696369656e742e000000600082015250565b7f455243313135353a206275726e2066726f6d20746865207a65726f206164647260008201527f6573730000000000000000000000000000000000000000000000000000000000602082015250565b7f455243313135353a20696e73756666696369656e742062616c616e636520666f60008201527f72207472616e7366657200000000000000000000000000000000000000000000602082015250565b7f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572600082015250565b7f5478206d61782e00000000000000000000000000000000000000000000000000600082015250565b7f52656465656d61626c652061646472657373206f6e6c792e0000000000000000600082015250565b7f4c696e6b656420617373657420636f6e74726163742c206e6f7420656e6f756760008201527f682062616c616e63652e00000000000000000000000000000000000000000000602082015250565b7f455243313135353a2073657474696e6720617070726f76616c2073746174757360008201527f20666f722073656c660000000000000000000000000000000000000000000000602082015250565b7f455243313135353a206163636f756e747320616e6420696473206c656e67746860008201527f206d69736d617463680000000000000000000000000000000000000000000000602082015250565b7f455243313135353a2069647320616e6420616d6f756e7473206c656e6774682060008201527f6d69736d61746368000000000000000000000000000000000000000000000000602082015250565b7f455243313135353a206d696e7420746f20746865207a65726f2061646472657360008201527f7300000000000000000000000000000000000000000000000000000000000000602082015250565b600060443d1015615daf57615e32565b615db7615161565b60043d036004823e80513d602482011167ffffffffffffffff82111715615ddf575050615e32565b808201805167ffffffffffffffff811115615dfd5750505050615e32565b80602083010160043d038501811115615e1a575050505050615e32565b615e298260200185018661549e565b82955050505050505b90565b615e3e8161539a565b8114615e4957600080fd5b50565b615e55816153ac565b8114615e6057600080fd5b50565b615e6c816153be565b8114615e7757600080fd5b50565b615e83816153ca565b8114615e8e57600080fd5b50565b615e9a816153d4565b8114615ea557600080fd5b50565b615eb181615420565b8114615ebc57600080fd5b5056fea26469706673582212202a4e3241a15ac8e63a8cd000285bed78de4d5f469c5858dc082d7f558d01947e64736f6c63430008070033

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

00000000000000000000000000000000000000000000000000000000000000400000000000000000000000000000000000000000000000000000000000000080000000000000000000000000000000000000000000000000000000000000000642594f4b45590000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000342594b0000000000000000000000000000000000000000000000000000000000

-----Decoded View---------------
Arg [0] : _name (string): BYOKEY
Arg [1] : _symbol (string): BYK

-----Encoded View---------------
6 Constructor Arguments found :
Arg [0] : 0000000000000000000000000000000000000000000000000000000000000040
Arg [1] : 0000000000000000000000000000000000000000000000000000000000000080
Arg [2] : 0000000000000000000000000000000000000000000000000000000000000006
Arg [3] : 42594f4b45590000000000000000000000000000000000000000000000000000
Arg [4] : 0000000000000000000000000000000000000000000000000000000000000003
Arg [5] : 42594b0000000000000000000000000000000000000000000000000000000000


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.