ETH Price: $3,488.69 (-0.42%)
Gas: 3 Gwei

Contract

0x711dCFaC096DC8E43CedB03EE9Cd14d0AcBBcF48
 

Overview

ETH Balance

0 ETH

Eth Value

$0.00

Multichain Info

No addresses found
Transaction Hash
Method
Block
From
To
Safe Transfer Fr...202298512024-07-04 1:25:1117 days ago1720056311IN
0x711dCFaC...0AcBBcF48
0 ETH0.000319734.9458307
Set Approval For...199839072024-05-30 16:40:2351 days ago1717087223IN
0x711dCFaC...0AcBBcF48
0 ETH0.0004136417.08846073
Set Approval For...198146202024-05-07 0:28:4775 days ago1715041727IN
0x711dCFaC...0AcBBcF48
0 ETH0.000186344.04069209
Set Approval For...196694412024-04-16 17:09:5995 days ago1713287399IN
0x711dCFaC...0AcBBcF48
0 ETH0.001018822.09125255
Set Approval For...195904672024-04-05 15:35:59106 days ago1712331359IN
0x711dCFaC...0AcBBcF48
0 ETH0.0014659531.78700441
Safe Transfer Fr...194913042024-03-22 16:17:59120 days ago1711124279IN
0x711dCFaC...0AcBBcF48
0 ETH0.0014642727.93783143
Set Approval For...194911782024-03-22 15:52:35120 days ago1711122755IN
0x711dCFaC...0AcBBcF48
0 ETH0.0015037332.60617934
Safe Transfer Fr...194907412024-03-22 14:24:23120 days ago1711117463IN
0x711dCFaC...0AcBBcF48
0 ETH0.0044801844.87097205
Set Approval For...194840442024-03-21 15:52:11121 days ago1711036331IN
0x711dCFaC...0AcBBcF48
0 ETH0.0015439433.478116
Set Approval For...194543082024-03-17 11:36:11125 days ago1710675371IN
0x711dCFaC...0AcBBcF48
0 ETH0.0011025323.90689984
Set Approval For...194523542024-03-17 5:01:35126 days ago1710651695IN
0x711dCFaC...0AcBBcF48
0 ETH0.0011065823.99460326
Safe Transfer Fr...194361252024-03-14 22:14:23128 days ago1710454463IN
0x711dCFaC...0AcBBcF48
0 ETH0.0047139945.99150323
Set Approval For...194107052024-03-11 8:36:59131 days ago1710146219IN
0x711dCFaC...0AcBBcF48
0 ETH0.0022535248.86439343
Set Approval For...194097182024-03-11 5:18:11132 days ago1710134291IN
0x711dCFaC...0AcBBcF48
0 ETH0.0017028236.92331964
Safe Transfer Fr...194093132024-03-11 3:56:59132 days ago1710129419IN
0x711dCFaC...0AcBBcF48
0 ETH0.0022036642.05469549
Safe Transfer Fr...194092262024-03-11 3:39:35132 days ago1710128375IN
0x711dCFaC...0AcBBcF48
0 ETH0.0039744440.88135738
Safe Transfer Fr...193874932024-03-08 2:32:59135 days ago1709865179IN
0x711dCFaC...0AcBBcF48
0 ETH0.0023776745.36501575
Set Approval For...193831102024-03-07 11:50:59135 days ago1709812259IN
0x711dCFaC...0AcBBcF48
0 ETH0.0026544457.55776847
Set Approval For...193666542024-03-05 4:43:23138 days ago1709613803IN
0x711dCFaC...0AcBBcF48
0 ETH0.0036141378.36710056
Set Approval For...193524602024-03-03 5:09:11140 days ago1709442551IN
0x711dCFaC...0AcBBcF48
0 ETH0.0018719140.58976543
Set Approval For...192469102024-02-17 10:13:23154 days ago1708164803IN
0x711dCFaC...0AcBBcF48
0 ETH0.0008193817.76717434
Set Approval For...192442402024-02-17 1:12:11155 days ago1708132331IN
0x711dCFaC...0AcBBcF48
0 ETH0.0007757716.82143381
Safe Transfer Fr...191943362024-02-10 1:08:11162 days ago1707527291IN
0x711dCFaC...0AcBBcF48
0 ETH0.0021730233.58613564
Safe Transfer Fr...191935752024-02-09 22:34:11162 days ago1707518051IN
0x711dCFaC...0AcBBcF48
0 ETH0.010810674.82114713
Safe Transfer Fr...191935662024-02-09 22:32:23162 days ago1707517943IN
0x711dCFaC...0AcBBcF48
0 ETH0.0062502862.60681221
View all transactions

View more zero value Internal Transactions in Advanced View mode

Advanced mode:
Loading...
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
Token

Compiler Version
v0.8.17+commit.8df45f5f

Optimization Enabled:
Yes with 20000 runs

Other Settings:
default evmVersion
File 1 of 11 : Token.sol
// SPDX-License-Identifier: UNLICENSED
pragma solidity ^0.8.9;

import "./ERC1155Hybrid.sol";
import "@openzeppelin/contracts/security/Pausable.sol";
import "@openzeppelin/contracts/access/Ownable.sol";

// import "hardhat/console.sol";

struct TokenConfig {
    bool added;
    bool canMint;
    bool canBurn;
    uint256 supplyLimit;
}

contract Token is ERC1155Hybrid, Pausable, Ownable {
    uint8 public constant ROLE_MINT_FT = 1 << 0;
    uint8 public constant ROLE_MINT_NFT = 1 << 1;
    uint8 public constant ROLE_BATCH_MINT_NFT = 1 << 2;
    uint8 public constant ROLE_BURN_FT = 1 << 3;

    uint256 public constant FUNGIBLE_TOKEN_UPPER_BOUND = 2 ** 16;

    uint256 _tokenUpperBound = 0;
    mapping(uint16 => uint256) _tierStarts;
    uint256[] _tiers;
    mapping(uint16 => uint256) private _nextID;

    mapping(address => uint8) _roles;

    error NotAuthorized(uint8 req, address sender);

    event TierAdded(string name, uint16 id, uint256 size);

    mapping(uint256 => uint256) private _minted;
    mapping(uint256 => TokenConfig) private _added;

    modifier requireRole(uint8 req) {
        if (!hasRole(_msgSender(), req)) {
            revert NotAuthorized(req, _msgSender());
        }
        _;
    }

    constructor(
        string memory name_,
        string memory symbol_,
        string memory contractURI_,
        string memory uri_
    ) ERC1155Hybrid(name_, symbol_, contractURI_, uri_) {
        // Add fungible tier on deployment.
        addTier("Fungible Tokens", FUNGIBLE_TOKEN_UPPER_BOUND);
    }

    function setMetadata(
        string memory name_,
        string memory symbol_,
        string memory contractURI_,
        string memory uri_
    ) public onlyOwner {
        _setMetadata(name_, symbol_, contractURI_, uri_);
    }

    function setPaused(bool b) public onlyOwner {
        if (b) {
            require(b && !paused(), "Contract is already paused");
            _pause();
            return;
        }

        require(!b && paused(), "Contract is not paused");
        _unpause();
    }

    function setRole(address operator, uint8 mask) public onlyOwner {
        _roles[operator] = mask;
    }

    function hasRole(address operator, uint8 role) public view returns (bool) {
        return _roles[operator] & role == role;
    }

    function addTier(
        string memory name,
        uint256 size
    ) public onlyOwner returns (uint16) {
        uint newTier = _tiers.length;

        require(newTier < 2 ** 16, "Tier is too high.");
        require(
            _tokenUpperBound + size < 2 ** 240,
            "Token upper bound is too high."
        );

        _tiers.push(size);
        _tierStarts[uint16(newTier)] = _tokenUpperBound;
        _tokenUpperBound += size;

        emit TierAdded(name, uint16(newTier), size);

        return uint16(newTier);
    }

    function _tierOf(uint256 id) internal pure override returns (uint16) {
        (uint16 tier, ) = _unpackID(id);
        return tier;
    }

    function _tierBounds(
        uint16 tier
    ) internal view override returns (uint256, uint256) {
        require(tier < _tiers.length, "Tier not configured.");
        return (_tierStarts[tier], _tierStarts[tier] + _tiers[tier]);
    }

    function _getNextID(uint16 tier) internal view override returns (uint256) {
        require(tier < _tiers.length, "Tier not configured.");
        return _nextID[tier];
    }

    function _incrementNextID(
        uint16 tier,
        uint256 amount
    ) internal override returns (uint256) {
        (, uint256 end) = _tierBounds(tier);

        require(
            _nextID[tier] + amount < end,
            "Requested IDs exceed bounds of tier"
        );

        uint256 start = _nextID[tier];
        _nextID[tier] += amount;
        return start;
    }

    function _isFungible(uint256 id) internal pure override returns (bool) {
        return _isFungibleTier(_tierOf(id));
    }

    function _isFungibleTier(
        uint16 tier
    ) internal pure override returns (bool) {
        return tier == 0;
    }

    function _supplyLimit(uint256 id) internal view override returns (uint256) {
        if (!_isFungible(id)) {
            return 1;
        }

        return _added[id].supplyLimit;
    }

    function totalMinted(uint256 id) public view returns (uint256) {
        if (!_isFungible(id)) {
            if (ownerOf(id) != address(0)) {
                return 1;
            } else {
                return 0;
            }
        }

        return _minted[id];
    }

    function supplyLimit(uint256 id) public view returns (uint256) {
        return _supplyLimit(id);
    }

    function addFT(
        uint256 supplyLimit_,
        bool canMint_,
        bool canBurn_
    ) public onlyOwner returns (uint256) {
        uint256 packed = _packID(0, _incrementNextID(0, 1));
        _added[packed] = TokenConfig(true, canMint_, canBurn_, supplyLimit_);
        return packed;
    }

    function modifyFT(
        uint256 id,
        uint256 supplyLimit_,
        bool canMint_,
        bool canBurn_
    ) public onlyOwner {
        _added[id] = TokenConfig(true, canMint_, canBurn_, supplyLimit_);
    }

    function mintFT(
        address to,
        uint256 tokenID,
        uint256 quantity
    ) public requireRole(ROLE_MINT_FT) {
        require(_isFungible(tokenID), "Token is not fungible.");
        require(_added[tokenID].added, "Token type not added.");
        require(_added[tokenID].canMint, "Token cannot be minted.");
        require(
            supplyLimit(tokenID) == 0 ||
                (totalMinted(tokenID) + quantity <= supplyLimit(tokenID)),
            "Mint would exceed supply limit."
        );

        _minted[tokenID] += quantity;
        _mintFungible(to, tokenID, quantity);
    }

    function adminMintFT(
        address to,
        uint256 tokenID,
        uint256 quantity
    ) public onlyOwner {
        require(_isFungible(tokenID), "Token is not fungible.");
        require(_added[tokenID].added, "Token type not added.");
        require(
            supplyLimit(tokenID) == 0 ||
                (totalMinted(tokenID) + quantity <= supplyLimit(tokenID)),
            "Mint would exceed supply limit."
        );

        _minted[tokenID] += quantity;
        _mintFungible(to, tokenID, quantity);
    }

    function mintNFT(
        address to,
        uint16 tier,
        uint256 quantity
    ) public requireRole(ROLE_MINT_NFT) {
        require(!_isFungibleTier(tier), "Tier is fungible.");
        _mintNFT(to, tier, quantity);
    }

    function adminMintNFT(
        address to,
        uint16 tier,
        uint256 quantity
    ) public onlyOwner {
        require(!_isFungibleTier(tier), "Tier is fungible.");
        _mintNFT(to, tier, quantity);
    }

    function batchMintNFT(
        address to,
        uint16[] calldata tiers,
        uint256[] calldata quantities
    ) public requireRole(ROLE_BATCH_MINT_NFT) {
        require(tiers.length == quantities.length, "Array mismatch");

        for (uint256 i = 0; i < tiers.length; i++) {
            mintNFT(to, tiers[i], quantities[i]);
        }
    }

    function burnFT(
        address owner,
        uint256 tokenID,
        uint256 quantity
    ) public requireRole(ROLE_BURN_FT) {
        require(_isFungible(tokenID), "Token is not fungible.");
        require(_added[tokenID].added, "Token type not added.");
        require(_added[tokenID].canBurn, "Token cannot be burned.");

        _burnFungible(owner, tokenID, quantity);
    }

    function safeTransferFrom(
        address from,
        address to,
        uint256 id,
        uint256 amount,
        bytes calldata data
    ) public override(ERC1155Hybrid) {
        if (paused()) revert("Token is paused");

        return _safeTransferFrom(from, to, id, amount, data);
    }

    event MetadataUpdate(uint256 _tokenId);
    event BatchMetadataUpdate(uint256 _fromTokenId, uint256 _toTokenId);

    function updateMetadata(uint256 id) public onlyOwner {
        emit MetadataUpdate(id);
    }

    function updateAllMetadata() public onlyOwner {
        emit BatchMetadataUpdate(0, type(uint256).max);
    }

    function packID(uint16 tier, uint256 id) external pure returns (uint256) {
        return _packID(tier, id);
    }

    function unpackID(uint256 id) external pure returns (uint16, uint256) {
        return _unpackID(id);
    }
}

File 2 of 11 : Ownable.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.7.0) (access/Ownable.sol)

pragma solidity ^0.8.0;

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

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

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

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

    /**
     * @dev Throws if called by any account other than the owner.
     */
    modifier onlyOwner() {
        _checkOwner();
        _;
    }

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

    /**
     * @dev Throws if the sender is not the owner.
     */
    function _checkOwner() internal view virtual {
        require(owner() == _msgSender(), "Ownable: caller is not the owner");
    }

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

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

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

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

pragma solidity ^0.8.0;

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

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

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

    bool private _paused;

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

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

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

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

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

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

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

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

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

pragma solidity ^0.8.0;

import "../IERC1155.sol";

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

File 5 of 11 : IERC1155.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.7.0) (token/ERC1155/IERC1155.sol)

pragma solidity ^0.8.0;

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

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

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

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

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

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

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

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

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

    /**
     * @dev Transfers `amount` tokens of token type `id` from `from` to `to`.
     *
     * Emits a {TransferSingle} event.
     *
     * Requirements:
     *
     * - `to` cannot be the zero address.
     * - If the caller is not `from`, it must 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 6 of 11 : IERC1155Receiver.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.5.0) (token/ERC1155/IERC1155Receiver.sol)

pragma solidity ^0.8.0;

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

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

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

File 7 of 11 : Address.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.8.0) (utils/Address.sol)

pragma solidity ^0.8.1;

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

        return account.code.length > 0;
    }

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

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

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

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

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

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

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

    /**
     * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`],
     * but performing a static call.
     *
     * _Available since v3.3._
     */
    function functionStaticCall(
        address target,
        bytes memory data,
        string memory errorMessage
    ) internal view returns (bytes memory) {
        (bool success, bytes memory returndata) = target.staticcall(data);
        return verifyCallResultFromTarget(target, success, returndata, errorMessage);
    }

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

    /**
     * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`],
     * but performing a delegate call.
     *
     * _Available since v3.4._
     */
    function functionDelegateCall(
        address target,
        bytes memory data,
        string memory errorMessage
    ) internal returns (bytes memory) {
        (bool success, bytes memory returndata) = target.delegatecall(data);
        return verifyCallResultFromTarget(target, success, returndata, errorMessage);
    }

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

    /**
     * @dev Tool to verify that a low level call was successful, and revert if it wasn't, either by bubbling the
     * revert reason or using the provided one.
     *
     * _Available since v4.3._
     */
    function verifyCallResult(
        bool success,
        bytes memory returndata,
        string memory errorMessage
    ) internal pure returns (bytes memory) {
        if (success) {
            return returndata;
        } else {
            _revert(returndata, errorMessage);
        }
    }

    function _revert(bytes memory returndata, string memory errorMessage) private pure {
        // Look for revert reason and bubble it up if present
        if (returndata.length > 0) {
            // The easiest way to bubble the revert reason is using memory via assembly
            /// @solidity memory-safe-assembly
            assembly {
                let returndata_size := mload(returndata)
                revert(add(32, returndata), returndata_size)
            }
        } else {
            revert(errorMessage);
        }
    }
}

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

pragma solidity ^0.8.0;

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

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

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

pragma solidity ^0.8.0;

import "./IERC165.sol";

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

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

pragma solidity ^0.8.0;

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

File 11 of 11 : ERC1155Hybrid.sol
// SPDX-License-Identifier: UNLICENSED

pragma solidity ^0.8.9;

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

// import "hardhat/console.sol";

struct Owner {
    address owner;
    bool burned;
    uint256 amount;
}

abstract contract ERC1155Hybrid is
    Context,
    ERC165,
    IERC1155,
    IERC1155MetadataURI
{
    string internal _name;
    string internal _symbol;
    string internal _uri;
    string internal _contractURI;

    mapping(address => mapping(address => bool)) _operatorApprovals;
    mapping(uint256 => mapping(address => uint256)) _fungibleBalances;
    mapping(uint16 => mapping(uint256 => Owner)) _nftOwnership;
    mapping(uint16 => uint256) _nftMintCounter;
    mapping(uint16 => mapping(address => uint256)) _nftBalances;

    constructor(
        string memory name_,
        string memory symbol_,
        string memory contractURI_,
        string memory uri_
    ) {
        _name = name_;
        _symbol = symbol_;
        _contractURI = contractURI_;
        _uri = uri_;
    }

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

    function _setMetadata(
        string memory name_,
        string memory symbol_,
        string memory contractURI_,
        string memory uri_
    ) internal {
        _name = name_;
        _symbol = symbol_;
        _contractURI = contractURI_;
        _uri = uri_;
    }

    function ownerOf(uint256 id) public view returns (address) {
        require(!_isFungible(id), "Token ID is fungible");

        (uint16 tier, uint256 unpacked) = _unpackID(id);
        (, uint256 idx, ) = _findNearestOwnershipRecord(tier, unpacked);

        return _nftOwnership[tier][idx].owner;
    }

    function balanceOfTier(
        address account,
        uint16 tier
    ) public view returns (uint256) {
        return _nftBalances[tier][account];
    }

    function balanceOf(
        address account,
        uint256 id
    ) public view returns (uint256) {
        if (_isFungible(id)) {
            return _balanceOfFungible(account, id);
        }

        if (ownerOf(id) == account) {
            return 1;
        }

        return 0;
    }

    function _balanceOfFungible(
        address account,
        uint256 id
    ) private view returns (uint256) {
        return _fungibleBalances[id][account];
    }

    function balanceOfBatch(
        address[] calldata accounts,
        uint256[] calldata ids
    ) external view returns (uint256[] calldata) {
        require(accounts.length == ids.length, "Array mismatch");

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

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

        return ids;
    }

    function setApprovalForAll(address operator, bool approved) external {
        _setApprovalForAll(_msgSender(), operator, approved);
    }

    function _setApprovalForAll(
        address owner,
        address operator,
        bool approved
    ) internal virtual {
        require(owner != operator, "ERC1155: setting approval status for self");
        _operatorApprovals[owner][operator] = approved;
        emit ApprovalForAll(owner, operator, approved);
    }

    function isApprovedForAll(
        address account,
        address operator
    ) external view returns (bool) {
        return _operatorApprovals[account][operator];
    }

    function safeTransferFrom(
        address from,
        address to,
        uint256 id,
        uint256 amount,
        bytes calldata data
    ) external virtual {
        _safeTransferFrom(from, to, id, amount, data);
    }

    function _safeTransferFrom(
        address from,
        address to,
        uint256 id,
        uint256 amount,
        bytes calldata data
    ) internal {
        if (_isFungible(id)) {
            return _safeTransferFromFungible(from, to, id, amount, data);
        }

        return _safeTransferFromNFT(from, to, id, amount, data);
    }

    function _safeTransferFromFungible(
        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();

        require(
            from == operator || _operatorApprovals[from][operator],
            "ERC1155: not approved"
        );

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

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

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

    function _safeTransferFromNFT(
        address from,
        address to,
        uint256 id,
        uint256 amount,
        bytes memory data
    ) internal {
        address operator = _msgSender();

        require(to != address(0), "ERC1155: transfer to the zero address");
        require(amount == 1, "ERC1155: transfer of NFT must have amount of 1");

        (uint16 tier, uint256 unpacked) = _unpackID(id);

        (
            address origOwner,
            uint256 origStart,
            uint256 origAmount
        ) = _findNearestOwnershipRecord(tier, unpacked);

        require(origOwner == from, "ERC1155: not the owner of this token");
        require(
            from == operator || _operatorApprovals[from][operator],
            "ERC1155: not approved"
        );

        uint256 rightAmount = origStart + origAmount - unpacked - 1;
        uint256 leftAmount = unpacked - origStart;

        // console.log("ownership array length", _nftOwnership[tier].length);
        // console.log("left", left.start, left.amount);
        // console.log("middle", middle.start, middle.amount);
        // console.log("right", right.start, right.amount);

        if (leftAmount > 0) {
            _nftOwnership[tier][origStart].amount = leftAmount;
        }

        _nftOwnership[tier][unpacked] = Owner({
            owner: to,
            burned: false,
            amount: 1
        });

        if (rightAmount > 0) {
            _nftOwnership[tier][unpacked + 1] = Owner({
                owner: from,
                burned: false,
                amount: rightAmount
            });
        }

        _nftBalances[tier][from] -= 1;
        _nftBalances[tier][to] += 1;

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

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

    function safeBatchTransferFrom(
        address from,
        address to,
        uint256[] calldata ids,
        uint256[] calldata amounts,
        bytes calldata data
    ) external {
        require(ids.length == amounts.length, "Array mismatch");

        for (uint256 i = 0; i < ids.length; i++) {
            _safeTransferFrom(from, to, ids[i], amounts[i], data);
        }
    }

    function _findNearestOwnershipRecord(
        uint16 tier,
        uint256 unpacked
    ) private view returns (address, uint256, uint256) {
        // console.log(tier, unpacked);

        if (unpacked > _nftMintCounter[tier]) {
            revert("Token not minted");
        }

        for (uint256 i = unpacked; i >= 0; i--) {
            if (
                _nftOwnership[tier][i].owner != address(0) ||
                _nftOwnership[tier][i].burned
            ) {
                return (
                    _nftOwnership[tier][i].owner,
                    i,
                    _nftOwnership[tier][i].amount
                );
            }
        }

        revert("Ownership could not be determined");
    }

    function name() external view returns (string memory) {
        return _name;
    }

    function symbol() external view returns (string memory) {
        return _symbol;
    }

    function uri(uint256) external view returns (string memory) {
        return _uri;
    }

    function contractURI() public view returns (string memory) {
        return _contractURI;
    }

    function _tierOf(uint256 id) internal view virtual returns (uint16);

    function _isFungible(uint256 id) internal view virtual returns (bool);

    function _isFungibleTier(uint16 tier) internal view virtual returns (bool);

    function _supplyLimit(uint256 id) internal view virtual returns (uint256);

    function _tierBounds(
        uint16 tier
    ) internal view virtual returns (uint256, uint256);

    function _getNextID(uint16 tier) internal view virtual returns (uint256);

    function _incrementNextID(
        uint16 tier,
        uint256 amount
    ) internal virtual returns (uint256);

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

        address operator = _msgSender();

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

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

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

        address operator = _msgSender();

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

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

    function _mintNFT(address to, uint16 tier, uint256 amount) internal {
        require(to != address(0), "ERC1155: mint to the zero address");

        uint256 start = _incrementNextID(tier, amount);
        address from = address(0);

        _nftOwnership[tier][start] = Owner({
            owner: to,
            burned: false,
            amount: amount
        });
        _nftBalances[tier][to] += amount;
        _nftMintCounter[tier] = start + amount - 1;

        emit TransferBatch(
            _msgSender(),
            from,
            to,
            _rangeWithTier(start, amount, tier),
            _repeat(1, amount)
        );
    }

    function _doSafeTransferAcceptanceCheck(
        address operator,
        address from,
        address to,
        uint256 id,
        uint256 amount,
        bytes memory data
    ) private {
        if (_isContract(to)) {
            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 (_isContract(to)) {
            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 _repeat(
        uint256 value,
        uint256 length
    ) private pure returns (uint256[] memory) {
        uint256[] memory array = new uint256[](length);
        for (uint256 i = 0; i < length; i++) {
            array[i] = value;
        }

        return array;
    }

    function _range(
        uint256 start,
        uint256 length
    ) private pure returns (uint256[] memory) {
        uint256[] memory array = new uint256[](length);
        for (uint256 i = 0; i < length; i++) {
            array[i] = start + i;
        }

        return array;
    }

    function _rangeWithTier(
        uint256 start,
        uint256 length,
        uint16 tier
    ) private pure returns (uint256[] memory) {
        uint256[] memory array = new uint256[](length);
        for (uint256 i = 0; i < length; i++) {
            array[i] = _packID(tier, start + i);
        }

        return array;
    }

    function _isContract(address account) private view returns (bool) {
        // This method relies on extcodesize/address.code.length, which returns 0
        // for contracts in construction, since the code is only stored at the end
        // of the constructor execution.

        return account.code.length > 0;
    }

    function _unpackID(uint256 id) internal pure returns (uint16, uint256) {
        uint16 tier = uint16(id & (2 ** 16 - 1));
        return (tier, id >> 16);
    }

    function _packID(uint16 tier, uint256 id) internal pure returns (uint256) {
        require(id < 2 ** 240, "ID too big");
        return (id << 16) + tier;
    }
}

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

Contract Security Audit

Contract ABI

[{"inputs":[{"internalType":"string","name":"name_","type":"string"},{"internalType":"string","name":"symbol_","type":"string"},{"internalType":"string","name":"contractURI_","type":"string"},{"internalType":"string","name":"uri_","type":"string"}],"stateMutability":"nonpayable","type":"constructor"},{"inputs":[{"internalType":"uint8","name":"req","type":"uint8"},{"internalType":"address","name":"sender","type":"address"}],"name":"NotAuthorized","type":"error"},{"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":false,"internalType":"uint256","name":"_fromTokenId","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"_toTokenId","type":"uint256"}],"name":"BatchMetadataUpdate","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"_tokenId","type":"uint256"}],"name":"MetadataUpdate","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"account","type":"address"}],"name":"Paused","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"string","name":"name","type":"string"},{"indexed":false,"internalType":"uint16","name":"id","type":"uint16"},{"indexed":false,"internalType":"uint256","name":"size","type":"uint256"}],"name":"TierAdded","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":[],"name":"FUNGIBLE_TOKEN_UPPER_BOUND","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"ROLE_BATCH_MINT_NFT","outputs":[{"internalType":"uint8","name":"","type":"uint8"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"ROLE_BURN_FT","outputs":[{"internalType":"uint8","name":"","type":"uint8"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"ROLE_MINT_FT","outputs":[{"internalType":"uint8","name":"","type":"uint8"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"ROLE_MINT_NFT","outputs":[{"internalType":"uint8","name":"","type":"uint8"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"supplyLimit_","type":"uint256"},{"internalType":"bool","name":"canMint_","type":"bool"},{"internalType":"bool","name":"canBurn_","type":"bool"}],"name":"addFT","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"name","type":"string"},{"internalType":"uint256","name":"size","type":"uint256"}],"name":"addTier","outputs":[{"internalType":"uint16","name":"","type":"uint16"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenID","type":"uint256"},{"internalType":"uint256","name":"quantity","type":"uint256"}],"name":"adminMintFT","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint16","name":"tier","type":"uint16"},{"internalType":"uint256","name":"quantity","type":"uint256"}],"name":"adminMintNFT","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"},{"internalType":"uint256","name":"id","type":"uint256"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address[]","name":"accounts","type":"address[]"},{"internalType":"uint256[]","name":"ids","type":"uint256[]"}],"name":"balanceOfBatch","outputs":[{"internalType":"uint256[]","name":"","type":"uint256[]"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"},{"internalType":"uint16","name":"tier","type":"uint16"}],"name":"balanceOfTier","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint16[]","name":"tiers","type":"uint16[]"},{"internalType":"uint256[]","name":"quantities","type":"uint256[]"}],"name":"batchMintNFT","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"uint256","name":"tokenID","type":"uint256"},{"internalType":"uint256","name":"quantity","type":"uint256"}],"name":"burnFT","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"contractURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"operator","type":"address"},{"internalType":"uint8","name":"role","type":"uint8"}],"name":"hasRole","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":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenID","type":"uint256"},{"internalType":"uint256","name":"quantity","type":"uint256"}],"name":"mintFT","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint16","name":"tier","type":"uint16"},{"internalType":"uint256","name":"quantity","type":"uint256"}],"name":"mintNFT","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"id","type":"uint256"},{"internalType":"uint256","name":"supplyLimit_","type":"uint256"},{"internalType":"bool","name":"canMint_","type":"bool"},{"internalType":"bool","name":"canBurn_","type":"bool"}],"name":"modifyFT","outputs":[],"stateMutability":"nonpayable","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":"id","type":"uint256"}],"name":"ownerOf","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint16","name":"tier","type":"uint16"},{"internalType":"uint256","name":"id","type":"uint256"}],"name":"packID","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"pure","type":"function"},{"inputs":[],"name":"paused","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256[]","name":"ids","type":"uint256[]"},{"internalType":"uint256[]","name":"amounts","type":"uint256[]"},{"internalType":"bytes","name":"data","type":"bytes"}],"name":"safeBatchTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"id","type":"uint256"},{"internalType":"uint256","name":"amount","type":"uint256"},{"internalType":"bytes","name":"data","type":"bytes"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"operator","type":"address"},{"internalType":"bool","name":"approved","type":"bool"}],"name":"setApprovalForAll","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"name_","type":"string"},{"internalType":"string","name":"symbol_","type":"string"},{"internalType":"string","name":"contractURI_","type":"string"},{"internalType":"string","name":"uri_","type":"string"}],"name":"setMetadata","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bool","name":"b","type":"bool"}],"name":"setPaused","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"operator","type":"address"},{"internalType":"uint8","name":"mask","type":"uint8"}],"name":"setRole","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"id","type":"uint256"}],"name":"supplyLimit","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","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":"id","type":"uint256"}],"name":"totalMinted","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"id","type":"uint256"}],"name":"unpackID","outputs":[{"internalType":"uint16","name":"","type":"uint16"},{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"pure","type":"function"},{"inputs":[],"name":"updateAllMetadata","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"id","type":"uint256"}],"name":"updateMetadata","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"uri","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"}]

60806040526000600a553480156200001657600080fd5b50604051620045d2380380620045d28339810160408190526200003991620003c4565b8383838360006200004b85826200050c565b5060016200005a84826200050c565b5060036200006983826200050c565b5060026200007882826200050c565b50506009805460ff1916905550620000949150339050620000d4565b60408051808201909152600f81526e46756e6769626c6520546f6b656e7360881b6020820152620000c990620100006200012e565b505050505062000642565b600980546001600160a01b03838116610100818102610100600160a81b031985161790945560405193909204169182907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b60006200013a62000293565b600c54620100008110620001895760405162461bcd60e51b81526020600482015260116024820152702a34b2b91034b9903a37b7903434b3b41760791b60448201526064015b60405180910390fd5b600160f01b83600a546200019e9190620005d8565b10620001ed5760405162461bcd60e51b815260206004820152601e60248201527f546f6b656e20757070657220626f756e6420697320746f6f20686967682e0000604482015260640162000180565b600c8054600181019091557fdf6966c971051c3d54ec59162606531493a51404a002842f56009d7e5cf4a8c701839055600a805461ffff83166000908152600b6020526040812082905585929162000247908490620005d8565b90915550506040517ff0c39c5df8d9bc5064aed0c1fecca7bca3ad03c0422b7a4c01be1d5106028234906200028290869084908790620005fa565b60405180910390a190505b92915050565b6009546001600160a01b03610100909104163314620002f55760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015260640162000180565b565b634e487b7160e01b600052604160045260246000fd5b60005b838110156200032a57818101518382015260200162000310565b50506000910152565b600082601f8301126200034557600080fd5b81516001600160401b0380821115620003625762000362620002f7565b604051601f8301601f19908116603f011681019082821181831017156200038d576200038d620002f7565b81604052838152866020858801011115620003a757600080fd5b620003ba8460208301602089016200030d565b9695505050505050565b60008060008060808587031215620003db57600080fd5b84516001600160401b0380821115620003f357600080fd5b620004018883890162000333565b955060208701519150808211156200041857600080fd5b620004268883890162000333565b945060408701519150808211156200043d57600080fd5b6200044b8883890162000333565b935060608701519150808211156200046257600080fd5b50620004718782880162000333565b91505092959194509250565b600181811c908216806200049257607f821691505b602082108103620004b357634e487b7160e01b600052602260045260246000fd5b50919050565b601f8211156200050757600081815260208120601f850160051c81016020861015620004e25750805b601f850160051c820191505b818110156200050357828155600101620004ee565b5050505b505050565b81516001600160401b03811115620005285762000528620002f7565b62000540816200053984546200047d565b84620004b9565b602080601f8311600181146200057857600084156200055f5750858301515b600019600386901b1c1916600185901b17855562000503565b600085815260208120601f198616915b82811015620005a95788860151825594840194600190910190840162000588565b5085821015620005c85787850151600019600388901b60f8161c191681555b5050505050600190811b01905550565b808201808211156200028d57634e487b7160e01b600052601160045260246000fd5b60608152600084518060608401526200061b8160808501602089016200030d565b61ffff9490941660208301525060408101919091526080601f909201601f19160101919050565b613f8080620006526000396000f3fe608060405234801561001057600080fd5b50600436106102d25760003560e01c80638ece7b9111610186578063d4658a87116100e3578063f024715011610097578063f462a4dc11610071578063f462a4dc14610698578063fb7ef4d3146106a0578063ffa3b59a146106b357600080fd5b8063f02471501461065f578063f242432a14610672578063f2fde38b1461068557600080fd5b8063e8a3d485116100c8578063e8a3d48514610604578063e985e9c51461060c578063ef5d0f7f1461065557600080fd5b8063d4658a87146105de578063de34ff35146105f157600080fd5b8063a22cb4651161013a578063b72a9a731161011f578063b72a9a73146105a9578063c4c5bb6a146105bc578063cffc08f6146105d657600080fd5b8063a22cb46514610583578063ae8cb8f71461059657600080fd5b806395d89b411161016b57806395d89b41146105555780639c09628d1461055d5780639d7f4ebf1461057057600080fd5b80638ece7b91146104ec57806395a8c58d1461051257600080fd5b80634734e13c116102345780636352211e116101e8578063715018a6116101cd578063715018a6146104ae57806378416adb146104b65780638da5cb5b146104c957600080fd5b80636352211e146104635780636399b45c1461049b57600080fd5b80635585277b116102195780635585277b14610418578063571c3e60146104455780635c975abb1461045857600080fd5b80634734e13c146103e45780634e1273f4146103f757600080fd5b80630ee683201161028b578063252543871161027057806325254387146103835780632eb2c2d6146103c957806338c52df0146103dc57600080fd5b80630ee683201461035d57806316c38b3c1461037057600080fd5b806306fdde03116102bc57806306fdde03146103205780630cfc96ec146103355780630e89341c1461034a57600080fd5b8062fdd58e146102d757806301ffc9a7146102fd575b600080fd5b6102ea6102e536600461329c565b6106bb565b6040519081526020015b60405180910390f35b61031061030b3660046132f4565b61074e565b60405190151581526020016102f4565b610328610831565b6040516102f49190613375565b61034861034336600461339a565b6108c3565b005b6103286103583660046133d6565b6109bd565b61034861036b3660046133ef565b610a51565b61034861037e366004613432565b610b89565b6102ea61039136600461344d565b61ffff16600090815260086020908152604080832073ffffffffffffffffffffffffffffffffffffffff949094168352929052205490565b6103486103d736600461350e565b610c62565b610348610d17565b6103486103f23660046136d5565b610d7b565b61040a610405366004613782565b610d8f565b6040516102f49291906137ee565b61042b6104263660046133d6565b610eb8565b6040805161ffff90931683526020830191909152016102f4565b610348610453366004613840565b610ecf565b60095460ff16610310565b6104766104713660046133d6565b610f2f565b60405173ffffffffffffffffffffffffffffffffffffffff90911681526020016102f4565b6103486104a936600461339a565b610fdf565b610348611048565b6102ea6104c43660046133d6565b61105c565b600954610100900473ffffffffffffffffffffffffffffffffffffffff16610476565b6104ff6104fa36600461387d565b611067565b60405161ffff90911681526020016102f4565b610310610520366004613840565b73ffffffffffffffffffffffffffffffffffffffff919091166000908152600e6020526040902054811660ff90811691161490565b6103286111e1565b61034861056b3660046133d6565b6111f0565b6102ea61057e3660046133d6565b61122e565b6103486105913660046138c2565b611286565b6102ea6105a43660046138ec565b611295565b6103486105b73660046133ef565b6112a8565b6105c4600181565b60405160ff90911681526020016102f4565b6105c4600881565b6102ea6105ec366004613908565b61140e565b6103486105ff3660046133ef565b611503565b6103286116da565b61031061061a366004613944565b73ffffffffffffffffffffffffffffffffffffffff918216600090815260046020908152604080832093909416825291909152205460ff1690565b6102ea6201000081565b61034861066d36600461396e565b6116e9565b6103486106803660046139b4565b6117bf565b610348610693366004613a2c565b611828565b6105c4600481565b6103486106ae366004613a47565b6118c2565b6105c4600281565b60006106c682611996565b156107015750600081815260056020908152604080832073ffffffffffffffffffffffffffffffffffffffff86168452909152902054610748565b8273ffffffffffffffffffffffffffffffffffffffff1661072183610f2f565b73ffffffffffffffffffffffffffffffffffffffff160361074457506001610748565b5060005b92915050565b60007fffffffff0000000000000000000000000000000000000000000000000000000082167fd9b67a260000000000000000000000000000000000000000000000000000000014806107e157507fffffffff0000000000000000000000000000000000000000000000000000000082167f0e89341c00000000000000000000000000000000000000000000000000000000145b8061074857507f01ffc9a7000000000000000000000000000000000000000000000000000000007fffffffff00000000000000000000000000000000000000000000000000000000831614610748565b60606000805461084090613ac8565b80601f016020809104026020016040519081016040528092919081815260200182805461086c90613ac8565b80156108b95780601f1061088e576101008083540402835291602001916108b9565b820191906000526020600020905b81548152906001019060200180831161089c57829003601f168201915b5050505050905090565b60026108fc335b73ffffffffffffffffffffffffffffffffffffffff166000908152600e602052604090205460ff808416918416161490565b61095b5780335b6040517fd75b2c5100000000000000000000000000000000000000000000000000000000815260ff909216600483015273ffffffffffffffffffffffffffffffffffffffff1660248201526044015b60405180910390fd5b61ffff83166109ac5760405162461bcd60e51b815260206004820152601160248201527f546965722069732066756e6769626c652e0000000000000000000000000000006044820152606401610952565b6109b78484846119ac565b50505050565b6060600280546109cc90613ac8565b80601f01602080910402602001604051908101604052809291908181526020018280546109f890613ac8565b8015610a455780601f10610a1a57610100808354040283529160200191610a45565b820191906000526020600020905b815481529060010190602001808311610a2857829003601f168201915b50505050509050919050565b6008610a5c336108ca565b610a67578033610903565b610a7083611996565b610abc5760405162461bcd60e51b815260206004820152601660248201527f546f6b656e206973206e6f742066756e6769626c652e000000000000000000006044820152606401610952565b60008381526010602052604090205460ff16610b1a5760405162461bcd60e51b815260206004820152601560248201527f546f6b656e2074797065206e6f742061646465642e00000000000000000000006044820152606401610952565b60008381526010602052604090205462010000900460ff16610b7e5760405162461bcd60e51b815260206004820152601760248201527f546f6b656e2063616e6e6f74206265206275726e65642e0000000000000000006044820152606401610952565b6109b7848484611bb1565b610b91611d51565b8015610bfe57808015610ba7575060095460ff16155b610bf35760405162461bcd60e51b815260206004820152601a60248201527f436f6e747261637420697320616c7265616479207061757365640000000000006044820152606401610952565b610bfb611dbe565b50565b80158015610c0e575060095460ff165b610c5a5760405162461bcd60e51b815260206004820152601660248201527f436f6e7472616374206973206e6f7420706175736564000000000000000000006044820152606401610952565b610bfb611e3e565b848314610cb15760405162461bcd60e51b815260206004820152600e60248201527f4172726179206d69736d617463680000000000000000000000000000000000006044820152606401610952565b60005b85811015610d0c57610cfa8989898985818110610cd357610cd3613b1b565b90506020020135888886818110610cec57610cec613b1b565b905060200201358787611e95565b80610d0481613b79565b915050610cb4565b505050505050505050565b610d1f611d51565b60408051600081527fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff60208201527f6bd5c950a8d8df17f772f5af37cb3655737899cbf903264b9795592da439661c91015b60405180910390a1565b610d83611d51565b6109b784848484611f2e565b366000848314610de15760405162461bcd60e51b815260206004820152600e60248201527f4172726179206d69736d617463680000000000000000000000000000000000006044820152606401610952565b60008567ffffffffffffffff811115610dfc57610dfc6135c9565b604051908082528060200260200182016040528015610e25578160200160208202803683370190505b50905060005b86811015610eaa57610e7b888883818110610e4857610e48613b1b565b9050602002016020810190610e5d9190613a2c565b878784818110610e6f57610e6f613b1b565b905060200201356106bb565b828281518110610e8d57610e8d613b1b565b602090810291909101015280610ea281613b79565b915050610e2b565b509396929550919350505050565b60008061ffff8316601084901c5b91509150915091565b610ed7611d51565b73ffffffffffffffffffffffffffffffffffffffff919091166000908152600e6020526040902080547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff001660ff909216919091179055565b6000610f3a82611996565b15610f875760405162461bcd60e51b815260206004820152601460248201527f546f6b656e2049442069732066756e6769626c650000000000000000000000006044820152606401610952565b61ffff8216601083901c6000610f9d8383611f68565b5061ffff9094166000908152600660209081526040808320968352959052939093205473ffffffffffffffffffffffffffffffffffffffff1695945050505050565b610fe7611d51565b61ffff82166110385760405162461bcd60e51b815260206004820152601160248201527f546965722069732066756e6769626c652e0000000000000000000000000000006044820152606401610952565b6110438383836119ac565b505050565b611050611d51565b61105a60006120b1565b565b60006107488261212f565b6000611071611d51565b600c546201000081106110c65760405162461bcd60e51b815260206004820152601160248201527f5469657220697320746f6f20686967682e0000000000000000000000000000006044820152606401610952565b7e0100000000000000000000000000000000000000000000000000000000000083600a546110f49190613bb1565b106111415760405162461bcd60e51b815260206004820152601e60248201527f546f6b656e20757070657220626f756e6420697320746f6f20686967682e00006044820152606401610952565b600c8054600181019091557fdf6966c971051c3d54ec59162606531493a51404a002842f56009d7e5cf4a8c701839055600a805461ffff83166000908152600b60205260408120829055859291611199908490613bb1565b90915550506040517ff0c39c5df8d9bc5064aed0c1fecca7bca3ad03c0422b7a4c01be1d5106028234906111d290869084908790613bc4565b60405180910390a19392505050565b60606001805461084090613ac8565b6111f8611d51565b6040518181527ff8e1a15aba9398e019f0b49df1a4fde98ee17ae345cb5f6b5e2c27f5033e8ce79060200160405180910390a150565b600061123982611996565b61127357600061124883610f2f565b73ffffffffffffffffffffffffffffffffffffffff161461126b57506001919050565b506000919050565b506000908152600f602052604090205490565b61129133838361215c565b5050565b60006112a18383612295565b9392505050565b6112b0611d51565b6112b982611996565b6113055760405162461bcd60e51b815260206004820152601660248201527f546f6b656e206973206e6f742066756e6769626c652e000000000000000000006044820152606401610952565b60008281526010602052604090205460ff166113635760405162461bcd60e51b815260206004820152601560248201527f546f6b656e2074797065206e6f742061646465642e00000000000000000000006044820152606401610952565b61136c8261105c565b1580611393575061137c8261105c565b816113868461122e565b6113909190613bb1565b11155b6113df5760405162461bcd60e51b815260206004820152601f60248201527f4d696e7420776f756c642065786365656420737570706c79206c696d69742e006044820152606401610952565b6000828152600f6020526040812080548392906113fd908490613bb1565b909155506110439050838383612317565b6000611418611d51565b6000611430600061142b60006001612483565b612295565b6040805160808101825260018082528715156020808401918252881515848601908152606085018c815260008881526010909352959091209351845492519151151562010000027fffffffffffffffffffffffffffffffffffffffffffffffffffffffffff00ffff921515610100027fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff00ff921515929092167fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff000090941693909317171617825591519101559150509392505050565b600161150e336108ca565b611519578033610903565b61152283611996565b61156e5760405162461bcd60e51b815260206004820152601660248201527f546f6b656e206973206e6f742066756e6769626c652e000000000000000000006044820152606401610952565b60008381526010602052604090205460ff166115cc5760405162461bcd60e51b815260206004820152601560248201527f546f6b656e2074797065206e6f742061646465642e00000000000000000000006044820152606401610952565b600083815260106020526040902054610100900460ff1661162f5760405162461bcd60e51b815260206004820152601760248201527f546f6b656e2063616e6e6f74206265206d696e7465642e0000000000000000006044820152606401610952565b6116388361105c565b158061165f57506116488361105c565b826116528561122e565b61165c9190613bb1565b11155b6116ab5760405162461bcd60e51b815260206004820152601f60248201527f4d696e7420776f756c642065786365656420737570706c79206c696d69742e006044820152606401610952565b6000838152600f6020526040812080548492906116c9908490613bb1565b909155506109b79050848484612317565b60606003805461084090613ac8565b6116f1611d51565b60408051608081018252600180825293151560208083019182529315158284019081526060830196875260009788526010909452919095209451855491519251151562010000027fffffffffffffffffffffffffffffffffffffffffffffffffffffffffff00ffff931515610100027fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff00ff921515929092167fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff00009093169290921717919091161783559051910155565b60095460ff16156118125760405162461bcd60e51b815260206004820152600f60248201527f546f6b656e2069732070617573656400000000000000000000000000000000006044820152606401610952565b611820868686868686611e95565b505050505050565b611830611d51565b73ffffffffffffffffffffffffffffffffffffffff81166118b95760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201527f64647265737300000000000000000000000000000000000000000000000000006064820152608401610952565b610bfb816120b1565b60046118cd336108ca565b6118d8578033610903565b8382146119275760405162461bcd60e51b815260206004820152600e60248201527f4172726179206d69736d617463680000000000000000000000000000000000006044820152606401610952565b60005b8481101561198d5761197b8787878481811061194857611948613b1b565b905060200201602081019061195d9190613bed565b86868581811061196f5761196f613b1b565b905060200201356108c3565b8061198581613b79565b91505061192a565b50505050505050565b60006107486119a483612558565b61ffff161590565b73ffffffffffffffffffffffffffffffffffffffff8316611a355760405162461bcd60e51b815260206004820152602160248201527f455243313135353a206d696e7420746f20746865207a65726f2061646472657360448201527f73000000000000000000000000000000000000000000000000000000000000006064820152608401610952565b6000611a418383612483565b6040805160608101825273ffffffffffffffffffffffffffffffffffffffff808816808352600060208085018281528587018a815261ffff8c16808552600684528885208a86528452888520975188549351151574010000000000000000000000000000000000000000027fffffffffffffffffffffff000000000000000000000000000000000000000000909416971696909617919091178655516001959095019490945591825260088352838220908252909152908120805492935090918491908390611b11908490613bb1565b9091555060019050611b238484613bb1565b611b2d9190613c08565b61ffff851660009081526007602052604090205573ffffffffffffffffffffffffffffffffffffffff858116908216337f4a39dc06d4c0dbc64b70af90fd698a233a518aa5d07e595d983b8c0526c8f7fb611b8986888a61256e565b611b94600189612608565b604051611ba2929190613c56565b60405180910390a45050505050565b73ffffffffffffffffffffffffffffffffffffffff8316611c3a5760405162461bcd60e51b815260206004820152602360248201527f455243313135353a206275726e2066726f6d20746865207a65726f206164647260448201527f65737300000000000000000000000000000000000000000000000000000000006064820152608401610952565b600082815260056020908152604080832073ffffffffffffffffffffffffffffffffffffffff87168452909152902054339082811015611ce15760405162461bcd60e51b8152602060048201526024808201527f455243313135353a206275726e20616d6f756e7420657863656564732062616c60448201527f616e6365000000000000000000000000000000000000000000000000000000006064820152608401610952565b600084815260056020908152604080832073ffffffffffffffffffffffffffffffffffffffff898116808652918452828520888703905582518981529384018890529092908616917fc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f629101611ba2565b60095473ffffffffffffffffffffffffffffffffffffffff61010090910416331461105a5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610952565b611dc661268c565b600980547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff001660011790557f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a258611e193390565b60405173ffffffffffffffffffffffffffffffffffffffff9091168152602001610d71565b611e466126df565b600980547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff001690557f5db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa33611e19565b611e9e84611996565b15611eeb57611ee68686868686868080601f01602080910402602001604051908101604052809392919081815260200183838082843760009201919091525061273192505050565b611820565b6118208686868686868080601f0160208091040260200160405190810160405280939291908181526020018383808284376000920191909152506129bc92505050565b6000611f3a8582613cca565b506001611f478482613cca565b506003611f548382613cca565b506002611f618282613cca565b5050505050565b61ffff821660009081526007602052604081205481908190841115611fcf5760405162461bcd60e51b815260206004820152601060248201527f546f6b656e206e6f74206d696e746564000000000000000000000000000000006044820152606401610952565b835b61ffff8616600090815260066020908152604080832084845290915290205473ffffffffffffffffffffffffffffffffffffffff16151580612049575061ffff8616600090815260066020908152604080832084845290915290205474010000000000000000000000000000000000000000900460ff165b156120985761ffff861660009081526006602090815260408083208484529091529020805460019091015473ffffffffffffffffffffffffffffffffffffffff909116945090925090506120aa565b806120a281613de4565b915050611fd1565b9250925092565b6009805473ffffffffffffffffffffffffffffffffffffffff8381166101008181027fffffffffffffffffffffff0000000000000000000000000000000000000000ff85161790945560405193909204169182907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b600061213a82611996565b61214657506001919050565b5060009081526010602052604090206001015490565b8173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff16036121fd5760405162461bcd60e51b815260206004820152602960248201527f455243313135353a2073657474696e6720617070726f76616c2073746174757360448201527f20666f722073656c6600000000000000000000000000000000000000000000006064820152608401610952565b73ffffffffffffffffffffffffffffffffffffffff83811660008181526004602090815260408083209487168084529482529182902080547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff001686151590811790915591519182527f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a3505050565b60007e0100000000000000000000000000000000000000000000000000000000000082106123055760405162461bcd60e51b815260206004820152600a60248201527f494420746f6f20626967000000000000000000000000000000000000000000006044820152606401610952565b6112a161ffff8416601084901b613bb1565b73ffffffffffffffffffffffffffffffffffffffff83166123a05760405162461bcd60e51b815260206004820152602160248201527f455243313135353a206d696e7420746f20746865207a65726f2061646472657360448201527f73000000000000000000000000000000000000000000000000000000000000006064820152608401610952565b600082815260056020908152604080832073ffffffffffffffffffffffffffffffffffffffff871684529091528120805433928492916123e1908490613bb1565b9091555050604080518481526020810184905273ffffffffffffffffffffffffffffffffffffffff80871692600092918516917fc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f62910160405180910390a46109b78160008686866040518060400160405280600281526020017f3078000000000000000000000000000000000000000000000000000000000000815250612f89565b60008061248f846131c5565b61ffff86166000908152600d60205260409020549092508291506124b4908590613bb1565b106125275760405162461bcd60e51b815260206004820152602360248201527f526571756573746564204944732065786365656420626f756e6473206f66207460448201527f69657200000000000000000000000000000000000000000000000000000000006064820152608401610952565b61ffff84166000908152600d6020526040812080549185919061254a8385613bb1565b909155509095945050505050565b60008061ffff8316601084901c5b509392505050565b606060008367ffffffffffffffff81111561258b5761258b6135c9565b6040519080825280602002602001820160405280156125b4578160200160208202803683370190505b50905060005b848110156125ff576125d08461142b8389613bb1565b8282815181106125e2576125e2613b1b565b6020908102919091010152806125f781613b79565b9150506125ba565b50949350505050565b606060008267ffffffffffffffff811115612625576126256135c9565b60405190808252806020026020018201604052801561264e578160200160208202803683370190505b50905060005b83811015612566578482828151811061266f5761266f613b1b565b60209081029190910101528061268481613b79565b915050612654565b60095460ff161561105a5760405162461bcd60e51b815260206004820152601060248201527f5061757361626c653a20706175736564000000000000000000000000000000006044820152606401610952565b60095460ff1661105a5760405162461bcd60e51b815260206004820152601460248201527f5061757361626c653a206e6f74207061757365640000000000000000000000006044820152606401610952565b73ffffffffffffffffffffffffffffffffffffffff84166127ba5760405162461bcd60e51b815260206004820152602560248201527f455243313135353a207472616e7366657220746f20746865207a65726f20616460448201527f64726573730000000000000000000000000000000000000000000000000000006064820152608401610952565b3373ffffffffffffffffffffffffffffffffffffffff8616811480612811575073ffffffffffffffffffffffffffffffffffffffff80871660009081526004602090815260408083209385168352929052205460ff165b61285d5760405162461bcd60e51b815260206004820152601560248201527f455243313135353a206e6f7420617070726f76656400000000000000000000006044820152606401610952565b600084815260056020908152604080832073ffffffffffffffffffffffffffffffffffffffff8a168452909152902054838110156129035760405162461bcd60e51b815260206004820152602a60248201527f455243313135353a20696e73756666696369656e742062616c616e636520666f60448201527f72207472616e73666572000000000000000000000000000000000000000000006064820152608401610952565b600085815260056020908152604080832073ffffffffffffffffffffffffffffffffffffffff8b811685529252808320878503905590881682528120805486929061294f908490613bb1565b9091555050604080518681526020810186905273ffffffffffffffffffffffffffffffffffffffff808916928a821692918616917fc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f62910160405180910390a461198d828888888888612f89565b3373ffffffffffffffffffffffffffffffffffffffff8516612a465760405162461bcd60e51b815260206004820152602560248201527f455243313135353a207472616e7366657220746f20746865207a65726f20616460448201527f64726573730000000000000000000000000000000000000000000000000000006064820152608401610952565b82600114612abc5760405162461bcd60e51b815260206004820152602e60248201527f455243313135353a207472616e73666572206f66204e4654206d75737420686160448201527f766520616d6f756e74206f6620310000000000000000000000000000000000006064820152608401610952565b61ffff8416601085901c60008080612ad48585611f68565b9250925092508a73ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff1614612b7a5760405162461bcd60e51b8152602060048201526024808201527f455243313135353a206e6f7420746865206f776e6572206f662074686973207460448201527f6f6b656e000000000000000000000000000000000000000000000000000000006064820152608401610952565b8573ffffffffffffffffffffffffffffffffffffffff168b73ffffffffffffffffffffffffffffffffffffffff161480612be6575073ffffffffffffffffffffffffffffffffffffffff808c166000908152600460209081526040808320938a168352929052205460ff165b612c325760405162461bcd60e51b815260206004820152601560248201527f455243313135353a206e6f7420617070726f76656400000000000000000000006044820152606401610952565b6000600185612c418486613bb1565b612c4b9190613c08565b612c559190613c08565b90506000612c638487613c08565b90508015612c905761ffff8716600090815260066020908152604080832087845290915290206001018190555b6040805160608101825273ffffffffffffffffffffffffffffffffffffffff808f16825260006020808401828152600185870181815261ffff8f168552600684528785208e865290935295909220935184549251151574010000000000000000000000000000000000000000027fffffffffffffffffffffff000000000000000000000000000000000000000000909316931692909217178255519101558115612e05576040805160608101825273ffffffffffffffffffffffffffffffffffffffff8f1681526000602080830182905282840186905261ffff8b168252600690529182209091612d82896001613bb1565b815260208082019290925260409081016000208351815493850151151574010000000000000000000000000000000000000000027fffffffffffffffffffffff00000000000000000000000000000000000000000090941673ffffffffffffffffffffffffffffffffffffffff9091161792909217825591909101516001909101555b6001600860008961ffff1661ffff16815260200190815260200160002060008f73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000828254612e6e9190613c08565b925050819055506001600860008961ffff1661ffff16815260200190815260200160002060008e73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000828254612ede9190613bb1565b925050819055508b73ffffffffffffffffffffffffffffffffffffffff168d73ffffffffffffffffffffffffffffffffffffffff168973ffffffffffffffffffffffffffffffffffffffff167fc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f628e8e604051612f64929190918252602082015260400190565b60405180910390a4612f7a888e8e8e8e8e612f89565b50505050505050505050505050565b73ffffffffffffffffffffffffffffffffffffffff84163b15611820576040517ff23a6e6100000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff85169063f23a6e61906130009089908990889088908890600401613e19565b6020604051808303816000875af1925050508015613059575060408051601f3d9081017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe016820190925261305691810190613e69565b60015b61310e57613065613e86565b806308c379a00361309e5750613079613ea2565b8061308457506130a0565b8060405162461bcd60e51b81526004016109529190613375565b505b60405162461bcd60e51b815260206004820152603460248201527f455243313135353a207472616e7366657220746f206e6f6e2d4552433131353560448201527f526563656976657220696d706c656d656e7465720000000000000000000000006064820152608401610952565b7fffffffff0000000000000000000000000000000000000000000000000000000081167ff23a6e61000000000000000000000000000000000000000000000000000000001461198d5760405162461bcd60e51b815260206004820152602860248201527f455243313135353a204552433131353552656365697665722072656a6563746560448201527f6420746f6b656e730000000000000000000000000000000000000000000000006064820152608401610952565b600c54600090819061ffff84161061321f5760405162461bcd60e51b815260206004820152601460248201527f54696572206e6f7420636f6e666967757265642e0000000000000000000000006044820152606401610952565b61ffff83166000818152600b6020526040902054600c805491929091811061324957613249613b1b565b600091825260208083209091015461ffff87168352600b909152604090912054610ec69190613bb1565b803573ffffffffffffffffffffffffffffffffffffffff8116811461329757600080fd5b919050565b600080604083850312156132af57600080fd5b6132b883613273565b946020939093013593505050565b7fffffffff0000000000000000000000000000000000000000000000000000000081168114610bfb57600080fd5b60006020828403121561330657600080fd5b81356112a1816132c6565b6000815180845260005b818110156133375760208185018101518683018201520161331b565b5060006020828601015260207fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0601f83011685010191505092915050565b6020815260006112a16020830184613311565b803561ffff8116811461329757600080fd5b6000806000606084860312156133af57600080fd5b6133b884613273565b92506133c660208501613388565b9150604084013590509250925092565b6000602082840312156133e857600080fd5b5035919050565b60008060006060848603121561340457600080fd5b61340d84613273565b95602085013595506040909401359392505050565b8035801515811461329757600080fd5b60006020828403121561344457600080fd5b6112a182613422565b6000806040838503121561346057600080fd5b61346983613273565b915061347760208401613388565b90509250929050565b60008083601f84011261349257600080fd5b50813567ffffffffffffffff8111156134aa57600080fd5b6020830191508360208260051b85010111156134c557600080fd5b9250929050565b60008083601f8401126134de57600080fd5b50813567ffffffffffffffff8111156134f657600080fd5b6020830191508360208285010111156134c557600080fd5b60008060008060008060008060a0898b03121561352a57600080fd5b61353389613273565b975061354160208a01613273565b9650604089013567ffffffffffffffff8082111561355e57600080fd5b61356a8c838d01613480565b909850965060608b013591508082111561358357600080fd5b61358f8c838d01613480565b909650945060808b01359150808211156135a857600080fd5b506135b58b828c016134cc565b999c989b5096995094979396929594505050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0601f830116810181811067ffffffffffffffff8211171561363c5761363c6135c9565b6040525050565b600082601f83011261365457600080fd5b813567ffffffffffffffff81111561366e5761366e6135c9565b6040516136a360207fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0601f85011601826135f8565b8181528460208386010111156136b857600080fd5b816020850160208301376000918101602001919091529392505050565b600080600080608085870312156136eb57600080fd5b843567ffffffffffffffff8082111561370357600080fd5b61370f88838901613643565b9550602087013591508082111561372557600080fd5b61373188838901613643565b9450604087013591508082111561374757600080fd5b61375388838901613643565b9350606087013591508082111561376957600080fd5b5061377687828801613643565b91505092959194509250565b6000806000806040858703121561379857600080fd5b843567ffffffffffffffff808211156137b057600080fd5b6137bc88838901613480565b909650945060208701359150808211156137d557600080fd5b506137e287828801613480565b95989497509550505050565b6020815281602082015260007f07ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff83111561382757600080fd5b8260051b80856040850137919091016040019392505050565b6000806040838503121561385357600080fd5b61385c83613273565b9150602083013560ff8116811461387257600080fd5b809150509250929050565b6000806040838503121561389057600080fd5b823567ffffffffffffffff8111156138a757600080fd5b6138b385828601613643565b95602094909401359450505050565b600080604083850312156138d557600080fd5b6138de83613273565b915061347760208401613422565b600080604083850312156138ff57600080fd5b6132b883613388565b60008060006060848603121561391d57600080fd5b8335925061392d60208501613422565b915061393b60408501613422565b90509250925092565b6000806040838503121561395757600080fd5b61396083613273565b915061347760208401613273565b6000806000806080858703121561398457600080fd5b843593506020850135925061399b60408601613422565b91506139a960608601613422565b905092959194509250565b60008060008060008060a087890312156139cd57600080fd5b6139d687613273565b95506139e460208801613273565b94506040870135935060608701359250608087013567ffffffffffffffff811115613a0e57600080fd5b613a1a89828a016134cc565b979a9699509497509295939492505050565b600060208284031215613a3e57600080fd5b6112a182613273565b600080600080600060608688031215613a5f57600080fd5b613a6886613273565b9450602086013567ffffffffffffffff80821115613a8557600080fd5b613a9189838a01613480565b90965094506040880135915080821115613aaa57600080fd5b50613ab788828901613480565b969995985093965092949392505050565b600181811c90821680613adc57607f821691505b602082108103613b15577f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b50919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b60007fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff8203613baa57613baa613b4a565b5060010190565b8082018082111561074857610748613b4a565b606081526000613bd76060830186613311565b61ffff9490941660208301525060400152919050565b600060208284031215613bff57600080fd5b6112a182613388565b8181038181111561074857610748613b4a565b600081518084526020808501945080840160005b83811015613c4b57815187529582019590820190600101613c2f565b509495945050505050565b604081526000613c696040830185613c1b565b8281036020840152613c7b8185613c1b565b95945050505050565b601f82111561104357600081815260208120601f850160051c81016020861015613cab5750805b601f850160051c820191505b8181101561182057828155600101613cb7565b815167ffffffffffffffff811115613ce457613ce46135c9565b613cf881613cf28454613ac8565b84613c84565b602080601f831160018114613d4b5760008415613d155750858301515b7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff600386901b1c1916600185901b178555611820565b6000858152602081207fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe08616915b82811015613d9857888601518255948401946001909101908401613d79565b5085821015613dd457878501517fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff600388901b60f8161c191681555b5050505050600190811b01905550565b600081613df357613df3613b4a565b507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0190565b600073ffffffffffffffffffffffffffffffffffffffff808816835280871660208401525084604083015283606083015260a06080830152613e5e60a0830184613311565b979650505050505050565b600060208284031215613e7b57600080fd5b81516112a1816132c6565b600060033d1115613e9f5760046000803e5060005160e01c5b90565b600060443d1015613eb05790565b6040517ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffc803d016004833e81513d67ffffffffffffffff8160248401118184111715613efe57505050505090565b8285019150815181811115613f165750505050505090565b843d8701016020828501011115613f305750505050505090565b613f3f602082860101876135f8565b50909594505050505056fea26469706673582212208d9d80067314384cd362c8f1cf0c04d63a312ed88cce2f94350da3b3e9136e1764736f6c63430008110033000000000000000000000000000000000000000000000000000000000000008000000000000000000000000000000000000000000000000000000000000000c000000000000000000000000000000000000000000000000000000000000001000000000000000000000000000000000000000000000000000000000000000160000000000000000000000000000000000000000000000000000000000000000e42616e74616d2042726967616465000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000642414e54414d0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000002b68747470733a2f2f6d6574612e62616e74616d627269676164652e78797a2f6f70656e7365612e6a736f6e000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000002868747470733a2f2f6d6574612e62616e74616d627269676164652e78797a2f7b69647d2e6a736f6e000000000000000000000000000000000000000000000000

Deployed Bytecode

0x608060405234801561001057600080fd5b50600436106102d25760003560e01c80638ece7b9111610186578063d4658a87116100e3578063f024715011610097578063f462a4dc11610071578063f462a4dc14610698578063fb7ef4d3146106a0578063ffa3b59a146106b357600080fd5b8063f02471501461065f578063f242432a14610672578063f2fde38b1461068557600080fd5b8063e8a3d485116100c8578063e8a3d48514610604578063e985e9c51461060c578063ef5d0f7f1461065557600080fd5b8063d4658a87146105de578063de34ff35146105f157600080fd5b8063a22cb4651161013a578063b72a9a731161011f578063b72a9a73146105a9578063c4c5bb6a146105bc578063cffc08f6146105d657600080fd5b8063a22cb46514610583578063ae8cb8f71461059657600080fd5b806395d89b411161016b57806395d89b41146105555780639c09628d1461055d5780639d7f4ebf1461057057600080fd5b80638ece7b91146104ec57806395a8c58d1461051257600080fd5b80634734e13c116102345780636352211e116101e8578063715018a6116101cd578063715018a6146104ae57806378416adb146104b65780638da5cb5b146104c957600080fd5b80636352211e146104635780636399b45c1461049b57600080fd5b80635585277b116102195780635585277b14610418578063571c3e60146104455780635c975abb1461045857600080fd5b80634734e13c146103e45780634e1273f4146103f757600080fd5b80630ee683201161028b578063252543871161027057806325254387146103835780632eb2c2d6146103c957806338c52df0146103dc57600080fd5b80630ee683201461035d57806316c38b3c1461037057600080fd5b806306fdde03116102bc57806306fdde03146103205780630cfc96ec146103355780630e89341c1461034a57600080fd5b8062fdd58e146102d757806301ffc9a7146102fd575b600080fd5b6102ea6102e536600461329c565b6106bb565b6040519081526020015b60405180910390f35b61031061030b3660046132f4565b61074e565b60405190151581526020016102f4565b610328610831565b6040516102f49190613375565b61034861034336600461339a565b6108c3565b005b6103286103583660046133d6565b6109bd565b61034861036b3660046133ef565b610a51565b61034861037e366004613432565b610b89565b6102ea61039136600461344d565b61ffff16600090815260086020908152604080832073ffffffffffffffffffffffffffffffffffffffff949094168352929052205490565b6103486103d736600461350e565b610c62565b610348610d17565b6103486103f23660046136d5565b610d7b565b61040a610405366004613782565b610d8f565b6040516102f49291906137ee565b61042b6104263660046133d6565b610eb8565b6040805161ffff90931683526020830191909152016102f4565b610348610453366004613840565b610ecf565b60095460ff16610310565b6104766104713660046133d6565b610f2f565b60405173ffffffffffffffffffffffffffffffffffffffff90911681526020016102f4565b6103486104a936600461339a565b610fdf565b610348611048565b6102ea6104c43660046133d6565b61105c565b600954610100900473ffffffffffffffffffffffffffffffffffffffff16610476565b6104ff6104fa36600461387d565b611067565b60405161ffff90911681526020016102f4565b610310610520366004613840565b73ffffffffffffffffffffffffffffffffffffffff919091166000908152600e6020526040902054811660ff90811691161490565b6103286111e1565b61034861056b3660046133d6565b6111f0565b6102ea61057e3660046133d6565b61122e565b6103486105913660046138c2565b611286565b6102ea6105a43660046138ec565b611295565b6103486105b73660046133ef565b6112a8565b6105c4600181565b60405160ff90911681526020016102f4565b6105c4600881565b6102ea6105ec366004613908565b61140e565b6103486105ff3660046133ef565b611503565b6103286116da565b61031061061a366004613944565b73ffffffffffffffffffffffffffffffffffffffff918216600090815260046020908152604080832093909416825291909152205460ff1690565b6102ea6201000081565b61034861066d36600461396e565b6116e9565b6103486106803660046139b4565b6117bf565b610348610693366004613a2c565b611828565b6105c4600481565b6103486106ae366004613a47565b6118c2565b6105c4600281565b60006106c682611996565b156107015750600081815260056020908152604080832073ffffffffffffffffffffffffffffffffffffffff86168452909152902054610748565b8273ffffffffffffffffffffffffffffffffffffffff1661072183610f2f565b73ffffffffffffffffffffffffffffffffffffffff160361074457506001610748565b5060005b92915050565b60007fffffffff0000000000000000000000000000000000000000000000000000000082167fd9b67a260000000000000000000000000000000000000000000000000000000014806107e157507fffffffff0000000000000000000000000000000000000000000000000000000082167f0e89341c00000000000000000000000000000000000000000000000000000000145b8061074857507f01ffc9a7000000000000000000000000000000000000000000000000000000007fffffffff00000000000000000000000000000000000000000000000000000000831614610748565b60606000805461084090613ac8565b80601f016020809104026020016040519081016040528092919081815260200182805461086c90613ac8565b80156108b95780601f1061088e576101008083540402835291602001916108b9565b820191906000526020600020905b81548152906001019060200180831161089c57829003601f168201915b5050505050905090565b60026108fc335b73ffffffffffffffffffffffffffffffffffffffff166000908152600e602052604090205460ff808416918416161490565b61095b5780335b6040517fd75b2c5100000000000000000000000000000000000000000000000000000000815260ff909216600483015273ffffffffffffffffffffffffffffffffffffffff1660248201526044015b60405180910390fd5b61ffff83166109ac5760405162461bcd60e51b815260206004820152601160248201527f546965722069732066756e6769626c652e0000000000000000000000000000006044820152606401610952565b6109b78484846119ac565b50505050565b6060600280546109cc90613ac8565b80601f01602080910402602001604051908101604052809291908181526020018280546109f890613ac8565b8015610a455780601f10610a1a57610100808354040283529160200191610a45565b820191906000526020600020905b815481529060010190602001808311610a2857829003601f168201915b50505050509050919050565b6008610a5c336108ca565b610a67578033610903565b610a7083611996565b610abc5760405162461bcd60e51b815260206004820152601660248201527f546f6b656e206973206e6f742066756e6769626c652e000000000000000000006044820152606401610952565b60008381526010602052604090205460ff16610b1a5760405162461bcd60e51b815260206004820152601560248201527f546f6b656e2074797065206e6f742061646465642e00000000000000000000006044820152606401610952565b60008381526010602052604090205462010000900460ff16610b7e5760405162461bcd60e51b815260206004820152601760248201527f546f6b656e2063616e6e6f74206265206275726e65642e0000000000000000006044820152606401610952565b6109b7848484611bb1565b610b91611d51565b8015610bfe57808015610ba7575060095460ff16155b610bf35760405162461bcd60e51b815260206004820152601a60248201527f436f6e747261637420697320616c7265616479207061757365640000000000006044820152606401610952565b610bfb611dbe565b50565b80158015610c0e575060095460ff165b610c5a5760405162461bcd60e51b815260206004820152601660248201527f436f6e7472616374206973206e6f7420706175736564000000000000000000006044820152606401610952565b610bfb611e3e565b848314610cb15760405162461bcd60e51b815260206004820152600e60248201527f4172726179206d69736d617463680000000000000000000000000000000000006044820152606401610952565b60005b85811015610d0c57610cfa8989898985818110610cd357610cd3613b1b565b90506020020135888886818110610cec57610cec613b1b565b905060200201358787611e95565b80610d0481613b79565b915050610cb4565b505050505050505050565b610d1f611d51565b60408051600081527fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff60208201527f6bd5c950a8d8df17f772f5af37cb3655737899cbf903264b9795592da439661c91015b60405180910390a1565b610d83611d51565b6109b784848484611f2e565b366000848314610de15760405162461bcd60e51b815260206004820152600e60248201527f4172726179206d69736d617463680000000000000000000000000000000000006044820152606401610952565b60008567ffffffffffffffff811115610dfc57610dfc6135c9565b604051908082528060200260200182016040528015610e25578160200160208202803683370190505b50905060005b86811015610eaa57610e7b888883818110610e4857610e48613b1b565b9050602002016020810190610e5d9190613a2c565b878784818110610e6f57610e6f613b1b565b905060200201356106bb565b828281518110610e8d57610e8d613b1b565b602090810291909101015280610ea281613b79565b915050610e2b565b509396929550919350505050565b60008061ffff8316601084901c5b91509150915091565b610ed7611d51565b73ffffffffffffffffffffffffffffffffffffffff919091166000908152600e6020526040902080547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff001660ff909216919091179055565b6000610f3a82611996565b15610f875760405162461bcd60e51b815260206004820152601460248201527f546f6b656e2049442069732066756e6769626c650000000000000000000000006044820152606401610952565b61ffff8216601083901c6000610f9d8383611f68565b5061ffff9094166000908152600660209081526040808320968352959052939093205473ffffffffffffffffffffffffffffffffffffffff1695945050505050565b610fe7611d51565b61ffff82166110385760405162461bcd60e51b815260206004820152601160248201527f546965722069732066756e6769626c652e0000000000000000000000000000006044820152606401610952565b6110438383836119ac565b505050565b611050611d51565b61105a60006120b1565b565b60006107488261212f565b6000611071611d51565b600c546201000081106110c65760405162461bcd60e51b815260206004820152601160248201527f5469657220697320746f6f20686967682e0000000000000000000000000000006044820152606401610952565b7e0100000000000000000000000000000000000000000000000000000000000083600a546110f49190613bb1565b106111415760405162461bcd60e51b815260206004820152601e60248201527f546f6b656e20757070657220626f756e6420697320746f6f20686967682e00006044820152606401610952565b600c8054600181019091557fdf6966c971051c3d54ec59162606531493a51404a002842f56009d7e5cf4a8c701839055600a805461ffff83166000908152600b60205260408120829055859291611199908490613bb1565b90915550506040517ff0c39c5df8d9bc5064aed0c1fecca7bca3ad03c0422b7a4c01be1d5106028234906111d290869084908790613bc4565b60405180910390a19392505050565b60606001805461084090613ac8565b6111f8611d51565b6040518181527ff8e1a15aba9398e019f0b49df1a4fde98ee17ae345cb5f6b5e2c27f5033e8ce79060200160405180910390a150565b600061123982611996565b61127357600061124883610f2f565b73ffffffffffffffffffffffffffffffffffffffff161461126b57506001919050565b506000919050565b506000908152600f602052604090205490565b61129133838361215c565b5050565b60006112a18383612295565b9392505050565b6112b0611d51565b6112b982611996565b6113055760405162461bcd60e51b815260206004820152601660248201527f546f6b656e206973206e6f742066756e6769626c652e000000000000000000006044820152606401610952565b60008281526010602052604090205460ff166113635760405162461bcd60e51b815260206004820152601560248201527f546f6b656e2074797065206e6f742061646465642e00000000000000000000006044820152606401610952565b61136c8261105c565b1580611393575061137c8261105c565b816113868461122e565b6113909190613bb1565b11155b6113df5760405162461bcd60e51b815260206004820152601f60248201527f4d696e7420776f756c642065786365656420737570706c79206c696d69742e006044820152606401610952565b6000828152600f6020526040812080548392906113fd908490613bb1565b909155506110439050838383612317565b6000611418611d51565b6000611430600061142b60006001612483565b612295565b6040805160808101825260018082528715156020808401918252881515848601908152606085018c815260008881526010909352959091209351845492519151151562010000027fffffffffffffffffffffffffffffffffffffffffffffffffffffffffff00ffff921515610100027fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff00ff921515929092167fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff000090941693909317171617825591519101559150509392505050565b600161150e336108ca565b611519578033610903565b61152283611996565b61156e5760405162461bcd60e51b815260206004820152601660248201527f546f6b656e206973206e6f742066756e6769626c652e000000000000000000006044820152606401610952565b60008381526010602052604090205460ff166115cc5760405162461bcd60e51b815260206004820152601560248201527f546f6b656e2074797065206e6f742061646465642e00000000000000000000006044820152606401610952565b600083815260106020526040902054610100900460ff1661162f5760405162461bcd60e51b815260206004820152601760248201527f546f6b656e2063616e6e6f74206265206d696e7465642e0000000000000000006044820152606401610952565b6116388361105c565b158061165f57506116488361105c565b826116528561122e565b61165c9190613bb1565b11155b6116ab5760405162461bcd60e51b815260206004820152601f60248201527f4d696e7420776f756c642065786365656420737570706c79206c696d69742e006044820152606401610952565b6000838152600f6020526040812080548492906116c9908490613bb1565b909155506109b79050848484612317565b60606003805461084090613ac8565b6116f1611d51565b60408051608081018252600180825293151560208083019182529315158284019081526060830196875260009788526010909452919095209451855491519251151562010000027fffffffffffffffffffffffffffffffffffffffffffffffffffffffffff00ffff931515610100027fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff00ff921515929092167fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff00009093169290921717919091161783559051910155565b60095460ff16156118125760405162461bcd60e51b815260206004820152600f60248201527f546f6b656e2069732070617573656400000000000000000000000000000000006044820152606401610952565b611820868686868686611e95565b505050505050565b611830611d51565b73ffffffffffffffffffffffffffffffffffffffff81166118b95760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201527f64647265737300000000000000000000000000000000000000000000000000006064820152608401610952565b610bfb816120b1565b60046118cd336108ca565b6118d8578033610903565b8382146119275760405162461bcd60e51b815260206004820152600e60248201527f4172726179206d69736d617463680000000000000000000000000000000000006044820152606401610952565b60005b8481101561198d5761197b8787878481811061194857611948613b1b565b905060200201602081019061195d9190613bed565b86868581811061196f5761196f613b1b565b905060200201356108c3565b8061198581613b79565b91505061192a565b50505050505050565b60006107486119a483612558565b61ffff161590565b73ffffffffffffffffffffffffffffffffffffffff8316611a355760405162461bcd60e51b815260206004820152602160248201527f455243313135353a206d696e7420746f20746865207a65726f2061646472657360448201527f73000000000000000000000000000000000000000000000000000000000000006064820152608401610952565b6000611a418383612483565b6040805160608101825273ffffffffffffffffffffffffffffffffffffffff808816808352600060208085018281528587018a815261ffff8c16808552600684528885208a86528452888520975188549351151574010000000000000000000000000000000000000000027fffffffffffffffffffffff000000000000000000000000000000000000000000909416971696909617919091178655516001959095019490945591825260088352838220908252909152908120805492935090918491908390611b11908490613bb1565b9091555060019050611b238484613bb1565b611b2d9190613c08565b61ffff851660009081526007602052604090205573ffffffffffffffffffffffffffffffffffffffff858116908216337f4a39dc06d4c0dbc64b70af90fd698a233a518aa5d07e595d983b8c0526c8f7fb611b8986888a61256e565b611b94600189612608565b604051611ba2929190613c56565b60405180910390a45050505050565b73ffffffffffffffffffffffffffffffffffffffff8316611c3a5760405162461bcd60e51b815260206004820152602360248201527f455243313135353a206275726e2066726f6d20746865207a65726f206164647260448201527f65737300000000000000000000000000000000000000000000000000000000006064820152608401610952565b600082815260056020908152604080832073ffffffffffffffffffffffffffffffffffffffff87168452909152902054339082811015611ce15760405162461bcd60e51b8152602060048201526024808201527f455243313135353a206275726e20616d6f756e7420657863656564732062616c60448201527f616e6365000000000000000000000000000000000000000000000000000000006064820152608401610952565b600084815260056020908152604080832073ffffffffffffffffffffffffffffffffffffffff898116808652918452828520888703905582518981529384018890529092908616917fc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f629101611ba2565b60095473ffffffffffffffffffffffffffffffffffffffff61010090910416331461105a5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610952565b611dc661268c565b600980547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff001660011790557f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a258611e193390565b60405173ffffffffffffffffffffffffffffffffffffffff9091168152602001610d71565b611e466126df565b600980547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff001690557f5db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa33611e19565b611e9e84611996565b15611eeb57611ee68686868686868080601f01602080910402602001604051908101604052809392919081815260200183838082843760009201919091525061273192505050565b611820565b6118208686868686868080601f0160208091040260200160405190810160405280939291908181526020018383808284376000920191909152506129bc92505050565b6000611f3a8582613cca565b506001611f478482613cca565b506003611f548382613cca565b506002611f618282613cca565b5050505050565b61ffff821660009081526007602052604081205481908190841115611fcf5760405162461bcd60e51b815260206004820152601060248201527f546f6b656e206e6f74206d696e746564000000000000000000000000000000006044820152606401610952565b835b61ffff8616600090815260066020908152604080832084845290915290205473ffffffffffffffffffffffffffffffffffffffff16151580612049575061ffff8616600090815260066020908152604080832084845290915290205474010000000000000000000000000000000000000000900460ff165b156120985761ffff861660009081526006602090815260408083208484529091529020805460019091015473ffffffffffffffffffffffffffffffffffffffff909116945090925090506120aa565b806120a281613de4565b915050611fd1565b9250925092565b6009805473ffffffffffffffffffffffffffffffffffffffff8381166101008181027fffffffffffffffffffffff0000000000000000000000000000000000000000ff85161790945560405193909204169182907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b600061213a82611996565b61214657506001919050565b5060009081526010602052604090206001015490565b8173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff16036121fd5760405162461bcd60e51b815260206004820152602960248201527f455243313135353a2073657474696e6720617070726f76616c2073746174757360448201527f20666f722073656c6600000000000000000000000000000000000000000000006064820152608401610952565b73ffffffffffffffffffffffffffffffffffffffff83811660008181526004602090815260408083209487168084529482529182902080547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff001686151590811790915591519182527f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a3505050565b60007e0100000000000000000000000000000000000000000000000000000000000082106123055760405162461bcd60e51b815260206004820152600a60248201527f494420746f6f20626967000000000000000000000000000000000000000000006044820152606401610952565b6112a161ffff8416601084901b613bb1565b73ffffffffffffffffffffffffffffffffffffffff83166123a05760405162461bcd60e51b815260206004820152602160248201527f455243313135353a206d696e7420746f20746865207a65726f2061646472657360448201527f73000000000000000000000000000000000000000000000000000000000000006064820152608401610952565b600082815260056020908152604080832073ffffffffffffffffffffffffffffffffffffffff871684529091528120805433928492916123e1908490613bb1565b9091555050604080518481526020810184905273ffffffffffffffffffffffffffffffffffffffff80871692600092918516917fc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f62910160405180910390a46109b78160008686866040518060400160405280600281526020017f3078000000000000000000000000000000000000000000000000000000000000815250612f89565b60008061248f846131c5565b61ffff86166000908152600d60205260409020549092508291506124b4908590613bb1565b106125275760405162461bcd60e51b815260206004820152602360248201527f526571756573746564204944732065786365656420626f756e6473206f66207460448201527f69657200000000000000000000000000000000000000000000000000000000006064820152608401610952565b61ffff84166000908152600d6020526040812080549185919061254a8385613bb1565b909155509095945050505050565b60008061ffff8316601084901c5b509392505050565b606060008367ffffffffffffffff81111561258b5761258b6135c9565b6040519080825280602002602001820160405280156125b4578160200160208202803683370190505b50905060005b848110156125ff576125d08461142b8389613bb1565b8282815181106125e2576125e2613b1b565b6020908102919091010152806125f781613b79565b9150506125ba565b50949350505050565b606060008267ffffffffffffffff811115612625576126256135c9565b60405190808252806020026020018201604052801561264e578160200160208202803683370190505b50905060005b83811015612566578482828151811061266f5761266f613b1b565b60209081029190910101528061268481613b79565b915050612654565b60095460ff161561105a5760405162461bcd60e51b815260206004820152601060248201527f5061757361626c653a20706175736564000000000000000000000000000000006044820152606401610952565b60095460ff1661105a5760405162461bcd60e51b815260206004820152601460248201527f5061757361626c653a206e6f74207061757365640000000000000000000000006044820152606401610952565b73ffffffffffffffffffffffffffffffffffffffff84166127ba5760405162461bcd60e51b815260206004820152602560248201527f455243313135353a207472616e7366657220746f20746865207a65726f20616460448201527f64726573730000000000000000000000000000000000000000000000000000006064820152608401610952565b3373ffffffffffffffffffffffffffffffffffffffff8616811480612811575073ffffffffffffffffffffffffffffffffffffffff80871660009081526004602090815260408083209385168352929052205460ff165b61285d5760405162461bcd60e51b815260206004820152601560248201527f455243313135353a206e6f7420617070726f76656400000000000000000000006044820152606401610952565b600084815260056020908152604080832073ffffffffffffffffffffffffffffffffffffffff8a168452909152902054838110156129035760405162461bcd60e51b815260206004820152602a60248201527f455243313135353a20696e73756666696369656e742062616c616e636520666f60448201527f72207472616e73666572000000000000000000000000000000000000000000006064820152608401610952565b600085815260056020908152604080832073ffffffffffffffffffffffffffffffffffffffff8b811685529252808320878503905590881682528120805486929061294f908490613bb1565b9091555050604080518681526020810186905273ffffffffffffffffffffffffffffffffffffffff808916928a821692918616917fc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f62910160405180910390a461198d828888888888612f89565b3373ffffffffffffffffffffffffffffffffffffffff8516612a465760405162461bcd60e51b815260206004820152602560248201527f455243313135353a207472616e7366657220746f20746865207a65726f20616460448201527f64726573730000000000000000000000000000000000000000000000000000006064820152608401610952565b82600114612abc5760405162461bcd60e51b815260206004820152602e60248201527f455243313135353a207472616e73666572206f66204e4654206d75737420686160448201527f766520616d6f756e74206f6620310000000000000000000000000000000000006064820152608401610952565b61ffff8416601085901c60008080612ad48585611f68565b9250925092508a73ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff1614612b7a5760405162461bcd60e51b8152602060048201526024808201527f455243313135353a206e6f7420746865206f776e6572206f662074686973207460448201527f6f6b656e000000000000000000000000000000000000000000000000000000006064820152608401610952565b8573ffffffffffffffffffffffffffffffffffffffff168b73ffffffffffffffffffffffffffffffffffffffff161480612be6575073ffffffffffffffffffffffffffffffffffffffff808c166000908152600460209081526040808320938a168352929052205460ff165b612c325760405162461bcd60e51b815260206004820152601560248201527f455243313135353a206e6f7420617070726f76656400000000000000000000006044820152606401610952565b6000600185612c418486613bb1565b612c4b9190613c08565b612c559190613c08565b90506000612c638487613c08565b90508015612c905761ffff8716600090815260066020908152604080832087845290915290206001018190555b6040805160608101825273ffffffffffffffffffffffffffffffffffffffff808f16825260006020808401828152600185870181815261ffff8f168552600684528785208e865290935295909220935184549251151574010000000000000000000000000000000000000000027fffffffffffffffffffffff000000000000000000000000000000000000000000909316931692909217178255519101558115612e05576040805160608101825273ffffffffffffffffffffffffffffffffffffffff8f1681526000602080830182905282840186905261ffff8b168252600690529182209091612d82896001613bb1565b815260208082019290925260409081016000208351815493850151151574010000000000000000000000000000000000000000027fffffffffffffffffffffff00000000000000000000000000000000000000000090941673ffffffffffffffffffffffffffffffffffffffff9091161792909217825591909101516001909101555b6001600860008961ffff1661ffff16815260200190815260200160002060008f73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000828254612e6e9190613c08565b925050819055506001600860008961ffff1661ffff16815260200190815260200160002060008e73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000828254612ede9190613bb1565b925050819055508b73ffffffffffffffffffffffffffffffffffffffff168d73ffffffffffffffffffffffffffffffffffffffff168973ffffffffffffffffffffffffffffffffffffffff167fc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f628e8e604051612f64929190918252602082015260400190565b60405180910390a4612f7a888e8e8e8e8e612f89565b50505050505050505050505050565b73ffffffffffffffffffffffffffffffffffffffff84163b15611820576040517ff23a6e6100000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff85169063f23a6e61906130009089908990889088908890600401613e19565b6020604051808303816000875af1925050508015613059575060408051601f3d9081017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe016820190925261305691810190613e69565b60015b61310e57613065613e86565b806308c379a00361309e5750613079613ea2565b8061308457506130a0565b8060405162461bcd60e51b81526004016109529190613375565b505b60405162461bcd60e51b815260206004820152603460248201527f455243313135353a207472616e7366657220746f206e6f6e2d4552433131353560448201527f526563656976657220696d706c656d656e7465720000000000000000000000006064820152608401610952565b7fffffffff0000000000000000000000000000000000000000000000000000000081167ff23a6e61000000000000000000000000000000000000000000000000000000001461198d5760405162461bcd60e51b815260206004820152602860248201527f455243313135353a204552433131353552656365697665722072656a6563746560448201527f6420746f6b656e730000000000000000000000000000000000000000000000006064820152608401610952565b600c54600090819061ffff84161061321f5760405162461bcd60e51b815260206004820152601460248201527f54696572206e6f7420636f6e666967757265642e0000000000000000000000006044820152606401610952565b61ffff83166000818152600b6020526040902054600c805491929091811061324957613249613b1b565b600091825260208083209091015461ffff87168352600b909152604090912054610ec69190613bb1565b803573ffffffffffffffffffffffffffffffffffffffff8116811461329757600080fd5b919050565b600080604083850312156132af57600080fd5b6132b883613273565b946020939093013593505050565b7fffffffff0000000000000000000000000000000000000000000000000000000081168114610bfb57600080fd5b60006020828403121561330657600080fd5b81356112a1816132c6565b6000815180845260005b818110156133375760208185018101518683018201520161331b565b5060006020828601015260207fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0601f83011685010191505092915050565b6020815260006112a16020830184613311565b803561ffff8116811461329757600080fd5b6000806000606084860312156133af57600080fd5b6133b884613273565b92506133c660208501613388565b9150604084013590509250925092565b6000602082840312156133e857600080fd5b5035919050565b60008060006060848603121561340457600080fd5b61340d84613273565b95602085013595506040909401359392505050565b8035801515811461329757600080fd5b60006020828403121561344457600080fd5b6112a182613422565b6000806040838503121561346057600080fd5b61346983613273565b915061347760208401613388565b90509250929050565b60008083601f84011261349257600080fd5b50813567ffffffffffffffff8111156134aa57600080fd5b6020830191508360208260051b85010111156134c557600080fd5b9250929050565b60008083601f8401126134de57600080fd5b50813567ffffffffffffffff8111156134f657600080fd5b6020830191508360208285010111156134c557600080fd5b60008060008060008060008060a0898b03121561352a57600080fd5b61353389613273565b975061354160208a01613273565b9650604089013567ffffffffffffffff8082111561355e57600080fd5b61356a8c838d01613480565b909850965060608b013591508082111561358357600080fd5b61358f8c838d01613480565b909650945060808b01359150808211156135a857600080fd5b506135b58b828c016134cc565b999c989b5096995094979396929594505050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0601f830116810181811067ffffffffffffffff8211171561363c5761363c6135c9565b6040525050565b600082601f83011261365457600080fd5b813567ffffffffffffffff81111561366e5761366e6135c9565b6040516136a360207fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0601f85011601826135f8565b8181528460208386010111156136b857600080fd5b816020850160208301376000918101602001919091529392505050565b600080600080608085870312156136eb57600080fd5b843567ffffffffffffffff8082111561370357600080fd5b61370f88838901613643565b9550602087013591508082111561372557600080fd5b61373188838901613643565b9450604087013591508082111561374757600080fd5b61375388838901613643565b9350606087013591508082111561376957600080fd5b5061377687828801613643565b91505092959194509250565b6000806000806040858703121561379857600080fd5b843567ffffffffffffffff808211156137b057600080fd5b6137bc88838901613480565b909650945060208701359150808211156137d557600080fd5b506137e287828801613480565b95989497509550505050565b6020815281602082015260007f07ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff83111561382757600080fd5b8260051b80856040850137919091016040019392505050565b6000806040838503121561385357600080fd5b61385c83613273565b9150602083013560ff8116811461387257600080fd5b809150509250929050565b6000806040838503121561389057600080fd5b823567ffffffffffffffff8111156138a757600080fd5b6138b385828601613643565b95602094909401359450505050565b600080604083850312156138d557600080fd5b6138de83613273565b915061347760208401613422565b600080604083850312156138ff57600080fd5b6132b883613388565b60008060006060848603121561391d57600080fd5b8335925061392d60208501613422565b915061393b60408501613422565b90509250925092565b6000806040838503121561395757600080fd5b61396083613273565b915061347760208401613273565b6000806000806080858703121561398457600080fd5b843593506020850135925061399b60408601613422565b91506139a960608601613422565b905092959194509250565b60008060008060008060a087890312156139cd57600080fd5b6139d687613273565b95506139e460208801613273565b94506040870135935060608701359250608087013567ffffffffffffffff811115613a0e57600080fd5b613a1a89828a016134cc565b979a9699509497509295939492505050565b600060208284031215613a3e57600080fd5b6112a182613273565b600080600080600060608688031215613a5f57600080fd5b613a6886613273565b9450602086013567ffffffffffffffff80821115613a8557600080fd5b613a9189838a01613480565b90965094506040880135915080821115613aaa57600080fd5b50613ab788828901613480565b969995985093965092949392505050565b600181811c90821680613adc57607f821691505b602082108103613b15577f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b50919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b60007fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff8203613baa57613baa613b4a565b5060010190565b8082018082111561074857610748613b4a565b606081526000613bd76060830186613311565b61ffff9490941660208301525060400152919050565b600060208284031215613bff57600080fd5b6112a182613388565b8181038181111561074857610748613b4a565b600081518084526020808501945080840160005b83811015613c4b57815187529582019590820190600101613c2f565b509495945050505050565b604081526000613c696040830185613c1b565b8281036020840152613c7b8185613c1b565b95945050505050565b601f82111561104357600081815260208120601f850160051c81016020861015613cab5750805b601f850160051c820191505b8181101561182057828155600101613cb7565b815167ffffffffffffffff811115613ce457613ce46135c9565b613cf881613cf28454613ac8565b84613c84565b602080601f831160018114613d4b5760008415613d155750858301515b7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff600386901b1c1916600185901b178555611820565b6000858152602081207fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe08616915b82811015613d9857888601518255948401946001909101908401613d79565b5085821015613dd457878501517fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff600388901b60f8161c191681555b5050505050600190811b01905550565b600081613df357613df3613b4a565b507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0190565b600073ffffffffffffffffffffffffffffffffffffffff808816835280871660208401525084604083015283606083015260a06080830152613e5e60a0830184613311565b979650505050505050565b600060208284031215613e7b57600080fd5b81516112a1816132c6565b600060033d1115613e9f5760046000803e5060005160e01c5b90565b600060443d1015613eb05790565b6040517ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffc803d016004833e81513d67ffffffffffffffff8160248401118184111715613efe57505050505090565b8285019150815181811115613f165750505050505090565b843d8701016020828501011115613f305750505050505090565b613f3f602082860101876135f8565b50909594505050505056fea26469706673582212208d9d80067314384cd362c8f1cf0c04d63a312ed88cce2f94350da3b3e9136e1764736f6c63430008110033

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

000000000000000000000000000000000000000000000000000000000000008000000000000000000000000000000000000000000000000000000000000000c000000000000000000000000000000000000000000000000000000000000001000000000000000000000000000000000000000000000000000000000000000160000000000000000000000000000000000000000000000000000000000000000e42616e74616d2042726967616465000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000642414e54414d0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000002b68747470733a2f2f6d6574612e62616e74616d627269676164652e78797a2f6f70656e7365612e6a736f6e000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000002868747470733a2f2f6d6574612e62616e74616d627269676164652e78797a2f7b69647d2e6a736f6e000000000000000000000000000000000000000000000000

-----Decoded View---------------
Arg [0] : name_ (string): Bantam Brigade
Arg [1] : symbol_ (string): BANTAM
Arg [2] : contractURI_ (string): https://meta.bantambrigade.xyz/opensea.json
Arg [3] : uri_ (string): https://meta.bantambrigade.xyz/{id}.json

-----Encoded View---------------
14 Constructor Arguments found :
Arg [0] : 0000000000000000000000000000000000000000000000000000000000000080
Arg [1] : 00000000000000000000000000000000000000000000000000000000000000c0
Arg [2] : 0000000000000000000000000000000000000000000000000000000000000100
Arg [3] : 0000000000000000000000000000000000000000000000000000000000000160
Arg [4] : 000000000000000000000000000000000000000000000000000000000000000e
Arg [5] : 42616e74616d2042726967616465000000000000000000000000000000000000
Arg [6] : 0000000000000000000000000000000000000000000000000000000000000006
Arg [7] : 42414e54414d0000000000000000000000000000000000000000000000000000
Arg [8] : 000000000000000000000000000000000000000000000000000000000000002b
Arg [9] : 68747470733a2f2f6d6574612e62616e74616d627269676164652e78797a2f6f
Arg [10] : 70656e7365612e6a736f6e000000000000000000000000000000000000000000
Arg [11] : 0000000000000000000000000000000000000000000000000000000000000028
Arg [12] : 68747470733a2f2f6d6574612e62616e74616d627269676164652e78797a2f7b
Arg [13] : 69647d2e6a736f6e000000000000000000000000000000000000000000000000


Block Transaction Difficulty Gas Used Reward
View All Blocks Produced

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

Validator Index Block Amount
View All Withdrawals

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

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