ETH Price: $3,300.66 (-3.26%)
Gas: 20 Gwei

Token

 

Overview

Max Total Supply

0

Holders

230

Market

Volume (24H)

N/A

Min Price (24H)

N/A

Max Price (24H)

N/A

Other Info

Filtered by Token Holder
easygoboom.eth
0x88e5fae699ae1e31a25df304cd20f1f6daf8f5b5
Loading...
Loading
Loading...
Loading
Loading...
Loading

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

Contract Source Code Verified (Exact Match)

Contract Name:
Vaccine

Compiler Version
v0.8.7+commit.e28d00a7

Optimization Enabled:
Yes with 200 runs

Other Settings:
default evmVersion
File 1 of 17 : Vaccine.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.2;

import "./VaccineApply.sol";

contract Vaccine is VaccineApply {
    constructor () VaccineApply(0x14A2dFF3b2FB4dFfa35b2006e84BF1CBB0Ac4bBA) {}
}

File 2 of 17 : VaccineApply.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.2;

import "./VaccineSelling.sol";
import "@openzeppelin/[email protected]/token/ERC721/IERC721.sol";

abstract contract VaccineApply is VaccineSelling {
    uint8[] _vaccinesStrength = [0, 25, 50, 100];
    uint8[] _vaccinesProbability = [0, 25, 50, 100];
    
    event VaccineApplied(uint256 vaccineId, uint256 porkId, uint8 vaccinationProgress);
    
    address pork1984Address;
    mapping(uint256 => uint8) _vaccinationProgress;
    uint8 constant maxVaccinationProgress = 100;
    
    constructor(address _pork1984Address) {
        pork1984Address = _pork1984Address;
    }
    
    function getMaxVaccinationProgress() public pure returns(uint8) {
        return maxVaccinationProgress;
    }
    
    function isFullyVaccinated(uint256 porkId) public view returns(bool) {
        return _vaccinationProgress[porkId] == maxVaccinationProgress;
    }
    
    function vaccinationProgress(uint256 porkId) public view returns(uint8) {
        return _vaccinationProgress[porkId];
    }
    
    function mutatePork(uint256 vaccineId, uint256 porkId) public {
        _burn(msg.sender, vaccineId, 1);
        
        IERC721 pork1984 = IERC721(pork1984Address);
        require(pork1984.ownerOf(porkId) == msg.sender);
        
        _mutatePorkWithChance(vaccineId, porkId, _vaccinesProbability[vaccineId]);
    }
    
    function _mutatePorkWithChance(uint256 vaccineId, uint256 porkId, uint8 chanceOfMutation) private {
        require(!isFullyVaccinated(porkId), "This pork has already become a mutant");
        
        uint8 randomNumber = uint8(_getRandomInteger(porkId) % 100);
        
        if (randomNumber >= chanceOfMutation) {
            _stackVaccineOnPork(porkId, vaccineId);
        } else {
            _mutatePork(porkId);
        }
        
        emit VaccineApplied(vaccineId, porkId, _vaccinationProgress[porkId]);
    }
    
    function _mutatePork(uint256 porkId) private {
        _vaccinationProgress[porkId] = maxVaccinationProgress;  // become fully vaccinated
    }
    
    function _stackVaccineOnPork(uint256 porkId, uint256 vaccineId) private {
        _vaccinationProgress[porkId] += _vaccinesStrength[vaccineId];
        if (_vaccinationProgress[porkId] > maxVaccinationProgress) {
            _vaccinationProgress[porkId] = maxVaccinationProgress;  // become fully vaccinated
        }
    }
}

File 3 of 17 : IERC721.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

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

/**
 * @dev Required interface of an ERC721 compliant contract.
 */
interface IERC721 is IERC165 {
    /**
     * @dev Emitted when `tokenId` token is transferred from `from` to `to`.
     */
    event Transfer(address indexed from, address indexed to, uint256 indexed tokenId);

    /**
     * @dev Emitted when `owner` enables `approved` to manage the `tokenId` token.
     */
    event Approval(address indexed owner, address indexed approved, uint256 indexed tokenId);

    /**
     * @dev Emitted when `owner` enables or disables (`approved`) `operator` to manage all of its assets.
     */
    event ApprovalForAll(address indexed owner, address indexed operator, bool approved);

    /**
     * @dev Returns the number of tokens in ``owner``'s account.
     */
    function balanceOf(address owner) external view returns (uint256 balance);

    /**
     * @dev Returns the owner of the `tokenId` token.
     *
     * Requirements:
     *
     * - `tokenId` must exist.
     */
    function ownerOf(uint256 tokenId) external view returns (address owner);

    /**
     * @dev Safely transfers `tokenId` token from `from` to `to`, checking first that contract recipients
     * are aware of the ERC721 protocol to prevent tokens from being forever locked.
     *
     * Requirements:
     *
     * - `from` cannot be the zero address.
     * - `to` cannot be the zero address.
     * - `tokenId` token must exist and be owned by `from`.
     * - If the caller is not `from`, it must be have been allowed to move this token by either {approve} or {setApprovalForAll}.
     * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer.
     *
     * Emits a {Transfer} event.
     */
    function safeTransferFrom(
        address from,
        address to,
        uint256 tokenId
    ) external;

    /**
     * @dev Transfers `tokenId` token from `from` to `to`.
     *
     * WARNING: Usage of this method is discouraged, use {safeTransferFrom} whenever possible.
     *
     * Requirements:
     *
     * - `from` cannot be the zero address.
     * - `to` cannot be the zero address.
     * - `tokenId` token must be owned by `from`.
     * - If the caller is not `from`, it must be approved to move this token by either {approve} or {setApprovalForAll}.
     *
     * Emits a {Transfer} event.
     */
    function transferFrom(
        address from,
        address to,
        uint256 tokenId
    ) external;

    /**
     * @dev Gives permission to `to` to transfer `tokenId` token to another account.
     * The approval is cleared when the token is transferred.
     *
     * Only a single account can be approved at a time, so approving the zero address clears previous approvals.
     *
     * Requirements:
     *
     * - The caller must own the token or be an approved operator.
     * - `tokenId` must exist.
     *
     * Emits an {Approval} event.
     */
    function approve(address to, uint256 tokenId) external;

    /**
     * @dev Returns the account approved for `tokenId` token.
     *
     * Requirements:
     *
     * - `tokenId` must exist.
     */
    function getApproved(uint256 tokenId) external view returns (address operator);

    /**
     * @dev Approve or remove `operator` as an operator for the caller.
     * Operators can call {transferFrom} or {safeTransferFrom} for any token owned by the caller.
     *
     * Requirements:
     *
     * - The `operator` cannot be the caller.
     *
     * Emits an {ApprovalForAll} event.
     */
    function setApprovalForAll(address operator, bool _approved) external;

    /**
     * @dev Returns if the `operator` is allowed to manage all of the assets of `owner`.
     *
     * See {setApprovalForAll}
     */
    function isApprovedForAll(address owner, address operator) external view returns (bool);
    
    function tokenURI(uint256) external view returns (string memory);

    /**
     * @dev Safely transfers `tokenId` token from `from` to `to`.
     *
     * Requirements:
     *
     * - `from` cannot be the zero address.
     * - `to` cannot be the zero address.
     * - `tokenId` token must exist and be owned by `from`.
     * - If the caller is not `from`, it must be approved to move this token by either {approve} or {setApprovalForAll}.
     * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer.
     *
     * Emits a {Transfer} event.
     */
    function safeTransferFrom(
        address from,
        address to,
        uint256 tokenId,
        bytes calldata data
    ) external;
}

File 4 of 17 : VaccineSelling.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.2;

import "@openzeppelin/[email protected]/token/ERC1155/ERC1155.sol";
import "@openzeppelin/[email protected]/access/Ownable.sol";
import "@openzeppelin/[email protected]/security/Pausable.sol";
import "@openzeppelin/[email protected]/utils/Strings.sol";
import "./PausableClaim.sol";
import "./VaccineClaimSnapshot.sol";

abstract contract VaccineSelling is ERC1155, Ownable, Pausable, PausableClaim, VaccineClaimSnapshot {
    using Strings for uint256;
    // 1 = vaccine with 25%
    // 2 = vaccine with 50%
    // 3 = vaccine with 100%
    uint constant maxTokenId = 3;
    uint constant maxTotalSupply = 1200;
    uint[] supplyById;
    uint constant singleTokenPrice = 32100000 gwei;  // 0.0321 eth
    uint constant maxTokensToBuyAtOnce = 10;
    uint maxCurrentSupply = 0;
    uint totalMinted = 0;
    
    string _contractURI = "https://api.pork1984.io/contract/vaccine";
    
    constructor() ERC1155("https://api.pork1984.io/api/vaccine/token/") {
        _pause();
        supplyById = new uint[](maxTokenId + 1);
    }
    
    function getMaxTotalSupply() public pure returns(uint) {
        return maxTotalSupply;
    }
    
    function getMaxCurrentSupply() public view returns(uint) {
        return maxCurrentSupply;
    }
    
    function getSupplyById(uint256 id) public view returns(uint) {
        return supplyById[id];
    }
    
    function _isValidTokenId(uint256 tokenId) internal pure returns(bool) {
        return tokenId > 0 && tokenId <= maxTokenId;
    }
    
    function addForSale(uint256 id, uint amountToAdd) public onlyOwner {
        maxCurrentSupply += amountToAdd;
        require(maxCurrentSupply <= maxTotalSupply);
        
        supplyById[id] += amountToAdd;
    }
    
    function removeFromSale(uint256 id) public onlyOwner {
        require(supplyById[id] > 0);
        maxCurrentSupply -= supplyById[id];
        supplyById[id] = 0;
    }
    
    function leftForSale() public view returns(uint) {
        return maxCurrentSupply - totalMinted;
    }
    
    function howManyFreeTokens() public view returns (uint8) {
        return howManyFreeTokensForAddress(msg.sender);
    }

    function pause() public onlyOwner {
        _pause();
    }

    function unpause() public onlyOwner {
        _unpause();
    }
    
    function pauseClaim() public onlyOwner {
        _pauseClaim();
    }

    function unpauseClaim() public onlyOwner {
        _unpauseClaim();
    }
    
    function _calculateAmountsToBuy(uint256 totalAmount, uint256[] memory ids, uint256[] memory amounts) private {
        require(ids.length == amounts.length);
        require(ids.length == maxTokenId);
        
        for (uint256 tokenId = 1; tokenId <= maxTokenId; tokenId++) {
            ids[tokenId - 1] = tokenId;
            amounts[tokenId - 1] = 0;
        }
        
        for (uint256 i = 0; i < totalAmount; i++) {
            uint256 rnd = _getRandomInteger(i) % leftForSale();
            uint256 accumulator = 0;
            for (uint256 tokenId = 1; tokenId <= maxTokenId; tokenId++) {
                accumulator += supplyById[tokenId];
                if (rnd < accumulator) {
                    amounts[tokenId - 1] += 1;
                    _registerMint(tokenId, 1);
                    break;
                }
            }
        }
    }
    
    function _getRandomInteger(uint256 salt) internal view returns (uint256) {
        return uint256(keccak256(abi.encodePacked(block.timestamp, block.difficulty, salt)));
    }

    function buy(uint256 tokensToBuy) public payable whenNotPaused {
        require(tokensToBuy <= maxTokensToBuyAtOnce, "Cannot buy that many tokens at once");
        require(msg.value >= singleTokenPrice * tokensToBuy, "Insufficient funds sent.");
        _internalMint(tokensToBuy);
    }
    
    function claim() public whenClaimNotPaused {
        uint256 tokensToMint = howManyFreeTokens();
        _internalMint(tokensToMint);
        _cannotClaimAnymore(msg.sender);
    }
    
    function _internalMint(uint256 tokensToMint) internal {
        require(tokensToMint > 0, "Cannot mint 0 tokens");
        require(leftForSale() >= tokensToMint, "Not enough tokens left on sale");
        
        uint256[] memory ids = new uint256[](maxTokenId);
        uint256[] memory amounts = new uint256[](maxTokenId);
        
        _calculateAmountsToBuy(tokensToMint, ids, amounts);
        
        _mintBatch(msg.sender, ids, amounts, "100500");
    }
    
    function giveaway(address account, uint256 id, uint256 amount) public onlyOwner {
        require(amount > 0, "Cannot give 0 tokens");
        require(leftForSale() >= amount, "Not enough tokens left on sale");
        require(supplyById[id] >= amount, "Not enough tokens left on sale");
        
        _registerMint(id, amount);
        _mint(account, id, amount, "100500");
    }
    
    function _registerMint(uint256 tokenId, uint256 amount) private {
        totalMinted += amount;
        supplyById[tokenId] -= amount;
    }

    function uri(uint256 _id) public view virtual override returns (string memory) {
        require(_isValidTokenId(_id), "Vaccine#uri: NONEXISTENT_TOKEN");
        string memory baseURI = super.uri(_id);
        return bytes(baseURI).length > 0
            ? string(abi.encodePacked(baseURI, _id.toString()))
            : '';
    }

    function contractURI() public view returns (string memory) {
        return _contractURI;
    }
    
    function setContractURI(string memory newURI) public onlyOwner {
        _contractURI = newURI;
    }
    
    function setURI(string memory newURI) public onlyOwner {
        _setURI(newURI);
    }
    
    function withdraw(address sendTo) public payable onlyOwner {
        uint balance = address(this).balance;
        
        uint share = 25;  // 25 * 0.001 = 2.5%
        uint ethShare = balance * share / 1000;
        for (uint i = 0; i < _snapshotAddresses.length; i++) {
            payable(_snapshotAddresses[i]).transfer(ethShare);
        }
        
        balance -= ethShare * _snapshotAddresses.length;
        
        payable(sendTo).transfer(balance);
    }
}

File 5 of 17 : VaccineClaimSnapshot.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.2;

contract VaccineClaimSnapshot {
    mapping(address => uint8) _snapshot;
    address[] _snapshotAddresses = [
        0xeD051Fe098F973c518c7BEf3325e3a890B1A2237,
        0x88E5FAE699aE1e31A25Df304CD20f1F6DaF8f5B5,
        0xdE98445B4148dbe540308eB9FC40c0CDD3318Ef8,
        0x3ECad9B41fC71840f3362441A397Ab24ab3450Fc,
        0x052F2567Da498C06dC591Ac48e0B56a07b28Bba2,
        0x87A11A1F2E117F6cD2CE68498cae6d2170788406,
        0x5d2846a7f10b56A3582A6f7B9E5f06A939BE3C89,
        0xFC10b8CDa9f09531A2C4c4f5f5ac269B4CFBB907,
        0x0466C648A159d535686FcAaDCd5cD9987B5e08f0,
        0x34E46bD7a1b00D42b5A409B6EC310982C09d0D9D,
        0x70976032911f0cEF0c9e121A6563F21c9C52B2fa,
        0xCeaaa873AE4CD40140C6aa9107cd2aa1Db890B3b,
        0xf50848Eb4125e5151aC4a9f648Cb9E99Bf179b12
    ];
    
    constructor () {
        for (uint i = 0; i < _snapshotAddresses.length; i++) {
            _snapshot[_snapshotAddresses[i]] = 1;
        }
        _snapshot[msg.sender] = 1;  // to test that claim is working and import a collection to opensea
    }
    
    function howManyFreeTokensForAddress(address target) public view returns (uint8) {
        return _snapshot[target];
    }
    
    function _cannotClaimAnymore(address target) internal {
        _snapshot[target] = 0;
    }
}

File 6 of 17 : PausableClaim.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.2;

import "@openzeppelin/[email protected]/utils/Context.sol";

abstract contract PausableClaim is Context {
    bool private _claimPaused;

    event ClaimUnpaused(address account);
    event ClaimPaused(address account);

    constructor() {
        _claimPaused = true;
    }

    function claimPaused() public view virtual returns (bool) {
        return _claimPaused;
    }

    modifier whenClaimNotPaused() {
        require(!claimPaused(), "Claim is paused");
        _;
    }

    modifier whenClaimPaused() {
        require(claimPaused(), "Claim is not paused");
        _;
    }

    function _pauseClaim() internal virtual whenClaimNotPaused {
        _claimPaused = true;
        emit ClaimPaused(_msgSender());
    }

    function _unpauseClaim() internal virtual whenClaimPaused {
        _claimPaused = false;
        emit ClaimUnpaused(_msgSender());
    }
}

File 7 of 17 : Strings.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

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

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

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

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

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

File 8 of 17 : Pausable.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

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

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

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

    bool private _paused;

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

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

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

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

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

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

File 9 of 17 : Ownable.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

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

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

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

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

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

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

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

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

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

File 10 of 17 : ERC1155.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

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

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

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

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

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

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

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

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

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

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

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

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

        return batchBalances;
    }

    /**
     * @dev See {IERC1155-setApprovalForAll}.
     */
    function setApprovalForAll(address operator, bool approved) public virtual override {
        require(_msgSender() != operator, "ERC1155: setting approval status for self");

        _operatorApprovals[_msgSender()][operator] = approved;
        emit ApprovalForAll(_msgSender(), operator, approved);
    }

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

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

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

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

        address operator = _msgSender();

        _beforeTokenTransfer(operator, from, to, _asSingletonArray(id), _asSingletonArray(amount), data);

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

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

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

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

        address operator = _msgSender();

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

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

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

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

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

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

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

        address operator = _msgSender();

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

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

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

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

        address operator = _msgSender();

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

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

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

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

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

        address operator = _msgSender();

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

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

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

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

        address operator = _msgSender();

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

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

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

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

    /**
     * @dev Hook that is called before any token transfer. This includes minting
     * and burning, as well as batched variants.
     *
     * The same hook is called on both single and batched variants. For single
     * transfers, the length of the `id` and `amount` arrays will be 1.
     *
     * Calling conditions (for each `id` and `amount` pair):
     *
     * - When `from` and `to` are both non-zero, `amount` of ``from``'s tokens
     * of token type `id` will be  transferred to `to`.
     * - When `from` is zero, `amount` tokens of token type `id` will be minted
     * for `to`.
     * - when `to` is zero, `amount` of ``from``'s tokens of token type `id`
     * will be burned.
     * - `from` and `to` are never both zero.
     * - `ids` and `amounts` have the same, non-zero length.
     *
     * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks].
     */
    function _beforeTokenTransfer(
        address operator,
        address from,
        address to,
        uint256[] memory ids,
        uint256[] memory amounts,
        bytes memory data
    ) internal virtual {}

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

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

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

        return array;
    }
}

File 11 of 17 : IERC165.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

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

File 12 of 17 : Context.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

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

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

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

pragma solidity ^0.8.0;

import "./IERC165.sol";

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

File 14 of 17 : Address.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

/**
 * @dev Collection of functions related to the address type
 */
library Address {
    /**
     * @dev Returns true if `account` is a contract.
     *
     * [IMPORTANT]
     * ====
     * It is unsafe to assume that an address for which this function returns
     * false is an externally-owned account (EOA) and not a contract.
     *
     * Among others, `isContract` will return false for the following
     * types of addresses:
     *
     *  - an externally-owned account
     *  - a contract in construction
     *  - an address where a contract will be created
     *  - an address where a contract lived, but was destroyed
     * ====
     */
    function isContract(address account) internal view returns (bool) {
        // This method relies on extcodesize, which returns 0 for contracts in
        // construction, since the code is only stored at the end of the
        // constructor execution.

        uint256 size;
        assembly {
            size := extcodesize(account)
        }
        return size > 0;
    }

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

File 15 of 17 : IERC1155MetadataURI.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

import "../IERC1155.sol";

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

File 16 of 17 : IERC1155Receiver.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

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

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

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

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

pragma solidity ^0.8.0;

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

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

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

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

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

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

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

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

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

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

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

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

Contract Security Audit

Contract ABI

[{"inputs":[],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"account","type":"address"},{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":false,"internalType":"bool","name":"approved","type":"bool"}],"name":"ApprovalForAll","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"account","type":"address"}],"name":"ClaimPaused","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"account","type":"address"}],"name":"ClaimUnpaused","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"account","type":"address"}],"name":"Paused","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":false,"internalType":"uint256[]","name":"ids","type":"uint256[]"},{"indexed":false,"internalType":"uint256[]","name":"values","type":"uint256[]"}],"name":"TransferBatch","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":false,"internalType":"uint256","name":"id","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"value","type":"uint256"}],"name":"TransferSingle","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"string","name":"value","type":"string"},{"indexed":true,"internalType":"uint256","name":"id","type":"uint256"}],"name":"URI","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"account","type":"address"}],"name":"Unpaused","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"vaccineId","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"porkId","type":"uint256"},{"indexed":false,"internalType":"uint8","name":"vaccinationProgress","type":"uint8"}],"name":"VaccineApplied","type":"event"},{"inputs":[{"internalType":"uint256","name":"id","type":"uint256"},{"internalType":"uint256","name":"amountToAdd","type":"uint256"}],"name":"addForSale","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"},{"internalType":"uint256","name":"id","type":"uint256"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address[]","name":"accounts","type":"address[]"},{"internalType":"uint256[]","name":"ids","type":"uint256[]"}],"name":"balanceOfBatch","outputs":[{"internalType":"uint256[]","name":"","type":"uint256[]"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokensToBuy","type":"uint256"}],"name":"buy","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"claim","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"claimPaused","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"contractURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getMaxCurrentSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getMaxTotalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"pure","type":"function"},{"inputs":[],"name":"getMaxVaccinationProgress","outputs":[{"internalType":"uint8","name":"","type":"uint8"}],"stateMutability":"pure","type":"function"},{"inputs":[{"internalType":"uint256","name":"id","type":"uint256"}],"name":"getSupplyById","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"},{"internalType":"uint256","name":"id","type":"uint256"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"giveaway","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"howManyFreeTokens","outputs":[{"internalType":"uint8","name":"","type":"uint8"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"target","type":"address"}],"name":"howManyFreeTokensForAddress","outputs":[{"internalType":"uint8","name":"","type":"uint8"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"},{"internalType":"address","name":"operator","type":"address"}],"name":"isApprovedForAll","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"porkId","type":"uint256"}],"name":"isFullyVaccinated","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"leftForSale","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"vaccineId","type":"uint256"},{"internalType":"uint256","name":"porkId","type":"uint256"}],"name":"mutatePork","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"pause","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"pauseClaim","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"paused","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"id","type":"uint256"}],"name":"removeFromSale","outputs":[],"stateMutability":"nonpayable","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":"newURI","type":"string"}],"name":"setContractURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"newURI","type":"string"}],"name":"setURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes4","name":"interfaceId","type":"bytes4"}],"name":"supportsInterface","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"unpause","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"unpauseClaim","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_id","type":"uint256"}],"name":"uri","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"porkId","type":"uint256"}],"name":"vaccinationProgress","outputs":[{"internalType":"uint8","name":"","type":"uint8"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"sendTo","type":"address"}],"name":"withdraw","outputs":[],"stateMutability":"payable","type":"function"}]

61022060405273ed051fe098f973c518c7bef3325e3a890b1a223760809081527388e5fae699ae1e31a25df304cd20f1f6daf8f5b560a05273de98445b4148dbe540308eb9fc40c0cdd3318ef860c052733ecad9b41fc71840f3362441a397ab24ab3450fc60e05273052f2567da498c06dc591ac48e0b56a07b28bba2610100527387a11a1f2e117f6cd2ce68498cae6d217078840661012052735d2846a7f10b56a3582a6f7b9e5f06a939be3c896101405273fc10b8cda9f09531a2c4c4f5f5ac269b4cfbb90761016052730466c648a159d535686fcaadcd5cd9987b5e08f0610180527334e46bd7a1b00d42b5a409b6ec310982c09d0d9d6101a0527370976032911f0cef0c9e121a6563f21c9c52b2fa6101c05273ceaaa873ae4cd40140c6aa9107cd2aa1db890b3b6101e05273f50848eb4125e5151ac4a9f648cb9e99bf179b12610200526200015890600590600d620004b0565b5060006007556000600855604051806060016040528060288152602001620038bc60289139805162000193916009916020909101906200051a565b5060408051608081018252600081526019602082015260329181019190915260646060820152620001c990600a90600462000597565b5060408051608081018252600081526019602082015260329181019190915260646060820152620001ff90600b90600462000597565b503480156200020d57600080fd5b507314a2dff3b2fb4dffa35b2006e84bf1cbb0ac4bba6040518060600160405280602a815260200162003892602a9139620002488162000393565b506200025433620003ac565b6003805461ffff60a01b1916600160a81b17905560005b600554811015620002de57600160046000600584815481106200029257620002926200071f565b6000918252602080832091909101546001600160a01b031683528201929092526040019020805460ff191660ff9290921691909117905580620002d581620006eb565b9150506200026b565b50336000908152600460205260409020805460ff1916600117905562000303620003fe565b620003116003600162000693565b6001600160401b038111156200032b576200032b62000735565b60405190808252806020026020018201604052801562000355578160200160208202803683370190505b5080516200036c916006916020909101906200063f565b50600c80546001600160a01b0319166001600160a01b03929092169190911790556200074b565b8051620003a89060029060208401906200051a565b5050565b600380546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b62000412600354600160a01b900460ff1690565b15620004575760405162461bcd60e51b815260206004820152601060248201526f14185d5cd8589b194e881c185d5cd95960821b604482015260640160405180910390fd5b6003805460ff60a01b1916600160a01b1790557f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a258620004933390565b6040516001600160a01b03909116815260200160405180910390a1565b82805482825590600052602060002090810192821562000508579160200282015b828111156200050857825182546001600160a01b0319166001600160a01b03909116178255602090920191600190910190620004d1565b50620005169291506200067c565b5090565b8280546200052890620006ae565b90600052602060002090601f0160209004810192826200054c576000855562000508565b82601f106200056757805160ff191683800117855562000508565b8280016001018555821562000508579182015b82811115620005085782518255916020019190600101906200057a565b82805482825590600052602060002090601f01602090048101928215620005085791602002820160005b838211156200060157835183826101000a81548160ff021916908360ff1602179055509260200192600101602081600001049283019260010302620005c1565b8015620006305782816101000a81549060ff021916905560010160208160000104928301926001030262000601565b5050620005169291506200067c565b828054828255906000526020600020908101928215620005085791602002820182811115620005085782518255916020019190600101906200057a565b5b808211156200051657600081556001016200067d565b60008219821115620006a957620006a962000709565b500190565b600181811c90821680620006c357607f821691505b60208210811415620006e557634e487b7160e01b600052602260045260246000fd5b50919050565b600060001982141562000702576200070262000709565b5060010190565b634e487b7160e01b600052601160045260246000fd5b634e487b7160e01b600052603260045260246000fd5b634e487b7160e01b600052604160045260246000fd5b613137806200075b6000396000f3fe60806040526004361061020e5760003560e01c8063715018a611610118578063c785140c116100a0578063e1082eec1161006f578063e1082eec146105ee578063e8a3d4851461061e578063e985e9c514610633578063f242432a1461067c578063f2fde38b1461069c57600080fd5b8063c785140c1461057e578063d1e6a64f146105b1578063d96a094a146105c6578063de065caa146105d957600080fd5b8063938e3d7b116100e7578063938e3d7b146104ea578063a22cb4651461050a578063a3c6d7821461052a578063ab5e124a1461054a578063bd12fc6a1461056957600080fd5b8063715018a6146104835780638456cb59146104985780638da5cb5b146104ad5780638ff095f9146104d557600080fd5b80633f4ba83a1161019b57806351cff8d91161016a57806351cff8d91461040857806355d58cdf1461041b57806359740a5e1461043b5780635c975abb1461044f5780635db30bb11461046e57600080fd5b80633f4ba83a146103785780634e1273f41461038d5780634e71d92d146103ba57806350e34236146103cf57600080fd5b80631361a3b6116101e25780631361a3b6146102c557806325e90ae9146102e557806327d523ef146103055780632eb2c2d6146103255780633c0b1edf1461034557600080fd5b8062fdd58e1461021357806301ffc9a71461024657806302fe5305146102765780630e89341c14610298575b600080fd5b34801561021f57600080fd5b5061023361022e36600461291f565b6106bc565b6040519081526020015b60405180910390f35b34801561025257600080fd5b50610266610261366004612a53565b610753565b604051901515815260200161023d565b34801561028257600080fd5b50610296610291366004612a8d565b6107a5565b005b3480156102a457600080fd5b506102b86102b3366004612ad6565b6107db565b60405161023d9190612c8b565b3480156102d157600080fd5b506102966102e0366004612ad6565b61088f565b3480156102f157600080fd5b50610296610300366004612aef565b61093d565b34801561031157600080fd5b5061029661032036600461294b565b610a1e565b34801561033157600080fd5b506102966103403660046127d5565b610b27565b34801561035157600080fd5b503360009081526004602052604090205460ff165b60405160ff909116815260200161023d565b34801561038457600080fd5b50610296610bc3565b34801561039957600080fd5b506103ad6103a8366004612980565b610bf7565b60405161023d9190612c4a565b3480156103c657600080fd5b50610296610d21565b3480156103db57600080fd5b506103666103ea366004612762565b6001600160a01b031660009081526004602052604090205460ff1690565b610296610416366004612762565b610da3565b34801561042757600080fd5b50610296610436366004612aef565b610eaf565b34801561044757600080fd5b506064610366565b34801561045b57600080fd5b50600354600160a01b900460ff16610266565b34801561047a57600080fd5b506104b0610233565b34801561048f57600080fd5b50610296610f37565b3480156104a457600080fd5b50610296610f6b565b3480156104b957600080fd5b506003546040516001600160a01b03909116815260200161023d565b3480156104e157600080fd5b50610296610f9d565b3480156104f657600080fd5b50610296610505366004612a8d565b610fcf565b34801561051657600080fd5b506102966105253660046128ec565b611010565b34801561053657600080fd5b50610233610545366004612ad6565b6110e7565b34801561055657600080fd5b50600354600160a81b900460ff16610266565b34801561057557600080fd5b50600754610233565b34801561058a57600080fd5b50610266610599366004612ad6565b6000908152600d602052604090205460ff1660641490565b3480156105bd57600080fd5b5061023361110e565b6102966105d4366004612ad6565b611120565b3480156105e557600080fd5b50610296611233565b3480156105fa57600080fd5b50610366610609366004612ad6565b6000908152600d602052604090205460ff1690565b34801561062a57600080fd5b506102b8611265565b34801561063f57600080fd5b5061026661064e36600461279c565b6001600160a01b03918216600090815260016020908152604080832093909416825291909152205460ff1690565b34801561068857600080fd5b50610296610697366004612883565b6112f7565b3480156106a857600080fd5b506102966106b7366004612762565b61137e565b60006001600160a01b03831661072d5760405162461bcd60e51b815260206004820152602b60248201527f455243313135353a2062616c616e636520717565727920666f7220746865207a60448201526a65726f206164647265737360a81b60648201526084015b60405180910390fd5b506000908152602081815260408083206001600160a01b03949094168352929052205490565b60006001600160e01b03198216636cdb3d1360e11b148061078457506001600160e01b031982166303a24d0760e21b145b8061079f57506301ffc9a760e01b6001600160e01b03198316145b92915050565b6003546001600160a01b031633146107cf5760405162461bcd60e51b815260040161072490612d75565b6107d881611416565b50565b60606107e682611429565b6108325760405162461bcd60e51b815260206004820152601e60248201527f56616363696e65237572693a204e4f4e4558495354454e545f544f4b454e00006044820152606401610724565b600061083d8361143d565b9050600081511161085d5760405180602001604052806000815250610888565b80610867846114d1565b604051602001610878929190612b78565b6040516020818303038152906040525b9392505050565b6003546001600160a01b031633146108b95760405162461bcd60e51b815260040161072490612d75565b6000600682815481106108ce576108ce613004565b9060005260206000200154116108e357600080fd5b600681815481106108f6576108f6613004565b9060005260206000200154600760008282546109129190612efe565b9250508190555060006006828154811061092e5761092e613004565b60009182526020909120015550565b610949338360016115d7565b600c546040516331a9108f60e11b8152600481018390526001600160a01b039091169033908290636352211e9060240160206040518083038186803b15801561099157600080fd5b505afa1580156109a5573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906109c9919061277f565b6001600160a01b0316146109dc57600080fd5b610a198383600b86815481106109f4576109f4613004565b90600052602060002090602091828204019190069054906101000a900460ff16611751565b505050565b6003546001600160a01b03163314610a485760405162461bcd60e51b815260040161072490612d75565b60008111610a8f5760405162461bcd60e51b815260206004820152601460248201527343616e6e6f742067697665203020746f6b656e7360601b6044820152606401610724565b80610a9861110e565b1015610ab65760405162461bcd60e51b815260040161072490612e33565b8060068381548110610aca57610aca613004565b90600052602060002001541015610af35760405162461bcd60e51b815260040161072490612e33565b610afd828261189d565b610a198383836040518060400160405280600681526020016503130303530360d41b8152506118e3565b6001600160a01b038516331480610b435750610b43853361064e565b610baa5760405162461bcd60e51b815260206004820152603260248201527f455243313135353a207472616e736665722063616c6c6572206973206e6f74206044820152711bdddb995c881b9bdc88185c1c1c9bdd995960721b6064820152608401610724565b610bb785858585856119b3565b5050505050565b905090565b6003546001600160a01b03163314610bed5760405162461bcd60e51b815260040161072490612d75565b610bf5611b4f565b565b60608151835114610c5c5760405162461bcd60e51b815260206004820152602960248201527f455243313135353a206163636f756e747320616e6420696473206c656e677468604482015268040dad2e6dac2e8c6d60bb1b6064820152608401610724565b6000835167ffffffffffffffff811115610c7857610c7861301a565b604051908082528060200260200182016040528015610ca1578160200160208202803683370190505b50905060005b8451811015610d1957610cec858281518110610cc557610cc5613004565b6020026020010151858381518110610cdf57610cdf613004565b60200260200101516106bc565b828281518110610cfe57610cfe613004565b6020908102919091010152610d1281612fa9565b9050610ca7565b509392505050565b600354600160a81b900460ff1615610d6d5760405162461bcd60e51b815260206004820152600f60248201526e10db185a5b481a5cc81c185d5cd959608a1b6044820152606401610724565b3360009081526004602052604090205460ff16610d8981611bec565b336000908152600460205260409020805460ff1916905550565b6003546001600160a01b03163314610dcd5760405162461bcd60e51b815260040161072490612d75565b47601960006103e8610ddf8385612edf565b610de99190612ecb565b905060005b600554811015610e5e5760058181548110610e0b57610e0b613004565b60009182526020822001546040516001600160a01b039091169184156108fc02918591818181858888f19350505050158015610e4b573d6000803e3d6000fd5b5080610e5681612fa9565b915050610dee565b50600554610e6c9082612edf565b610e769084612efe565b6040519093506001600160a01b0385169084156108fc029085906000818181858888f19350505050158015610bb7573d6000803e3d6000fd5b6003546001600160a01b03163314610ed95760405162461bcd60e51b815260040161072490612d75565b8060076000828254610eeb9190612e8e565b90915550506007546104b01015610f0157600080fd5b8060068381548110610f1557610f15613004565b906000526020600020016000828254610f2e9190612e8e565b90915550505050565b6003546001600160a01b03163314610f615760405162461bcd60e51b815260040161072490612d75565b610bf56000611cd6565b6003546001600160a01b03163314610f955760405162461bcd60e51b815260040161072490612d75565b610bf5611d28565b6003546001600160a01b03163314610fc75760405162461bcd60e51b815260040161072490612d75565b610bf5611db0565b6003546001600160a01b03163314610ff95760405162461bcd60e51b815260040161072490612d75565b805161100c9060099060208401906125d4565b5050565b336001600160a01b038316141561107b5760405162461bcd60e51b815260206004820152602960248201527f455243313135353a2073657474696e6720617070726f76616c20737461747573604482015268103337b91039b2b63360b91b6064820152608401610724565b3360008181526001602090815260408083206001600160a01b03871680855290835292819020805460ff191686151590811790915590519081529192917f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a35050565b6000600682815481106110fc576110fc613004565b90600052602060002001549050919050565b6000600854600754610bbe9190612efe565b600354600160a01b900460ff161561116d5760405162461bcd60e51b815260206004820152601060248201526f14185d5cd8589b194e881c185d5cd95960821b6044820152606401610724565b600a8111156111ca5760405162461bcd60e51b815260206004820152602360248201527f43616e6e6f74206275792074686174206d616e7920746f6b656e73206174206f6044820152626e636560e81b6064820152608401610724565b6111db8166720ac7a94a4000612edf565b34101561122a5760405162461bcd60e51b815260206004820152601860248201527f496e73756666696369656e742066756e64732073656e742e00000000000000006044820152606401610724565b6107d881611bec565b6003546001600160a01b0316331461125d5760405162461bcd60e51b815260040161072490612d75565b610bf5611e37565b60606009805461127490612f41565b80601f01602080910402602001604051908101604052809291908181526020018280546112a090612f41565b80156112ed5780601f106112c2576101008083540402835291602001916112ed565b820191906000526020600020905b8154815290600101906020018083116112d057829003601f168201915b5050505050905090565b6001600160a01b0385163314806113135750611313853361064e565b6113715760405162461bcd60e51b815260206004820152602960248201527f455243313135353a2063616c6c6572206973206e6f74206f776e6572206e6f7260448201526808185c1c1c9bdd995960ba1b6064820152608401610724565b610bb78585858585611eba565b6003546001600160a01b031633146113a85760405162461bcd60e51b815260040161072490612d75565b6001600160a01b03811661140d5760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401610724565b6107d881611cd6565b805161100c9060029060208401906125d4565b6000808211801561079f5750506003101590565b60606002805461144c90612f41565b80601f016020809104026020016040519081016040528092919081815260200182805461147890612f41565b80156114c55780601f1061149a576101008083540402835291602001916114c5565b820191906000526020600020905b8154815290600101906020018083116114a857829003601f168201915b50505050509050919050565b6060816114f55750506040805180820190915260018152600360fc1b602082015290565b8160005b811561151f578061150981612fa9565b91506115189050600a83612ecb565b91506114f9565b60008167ffffffffffffffff81111561153a5761153a61301a565b6040519080825280601f01601f191660200182016040528015611564576020820181803683370190505b5090505b84156115cf57611579600183612efe565b9150611586600a86612fc4565b611591906030612e8e565b60f81b8183815181106115a6576115a6613004565b60200101906001600160f81b031916908160001a9053506115c8600a86612ecb565b9450611568565b949350505050565b6001600160a01b0383166116395760405162461bcd60e51b815260206004820152602360248201527f455243313135353a206275726e2066726f6d20746865207a65726f206164647260448201526265737360e81b6064820152608401610724565b336116698185600061164a87611fd7565b61165387611fd7565b5050604080516020810190915260009052505050565b6000838152602081815260408083206001600160a01b0388168452909152902054828110156116e65760405162461bcd60e51b8152602060048201526024808201527f455243313135353a206275726e20616d6f756e7420657863656564732062616c604482015263616e636560e01b6064820152608401610724565b6000848152602081815260408083206001600160a01b03898116808652918452828520888703905582518981529384018890529092908616917fc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f62910160405180910390a45050505050565b61176d826000908152600d602052604090205460ff1660641490565b156117c85760405162461bcd60e51b815260206004820152602560248201527f5468697320706f726b2068617320616c7265616479206265636f6d652061206d6044820152641d5d185b9d60da1b6064820152608401610724565b604080514260208083019190915244828401526060808301869052835180840390910181526080909201909252805191012060009061180990606490612fc4565b90508160ff168160ff1610611827576118228385612022565b611846565b611846836000908152600d60205260409020805460ff19166064179055565b6000838152600d602090815260409182902054825187815291820186905260ff168183015290517ff0450b0b02bc939e05e090c0eeafb69cee78c83764ac863a5d762ab74ff5abb99181900360600190a150505050565b80600860008282546118af9190612e8e565b9250508190555080600683815481106118ca576118ca613004565b906000526020600020016000828254610f2e9190612efe565b6001600160a01b0384166119095760405162461bcd60e51b815260040161072490612df2565b336119238160008761191a88611fd7565b610bb788611fd7565b6000848152602081815260408083206001600160a01b038916845290915281208054859290611953908490612e8e565b909155505060408051858152602081018590526001600160a01b0380881692600092918516917fc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f62910160405180910390a4610bb7816000878787876120c4565b81518351146119d45760405162461bcd60e51b815260040161072490612daa565b6001600160a01b0384166119fa5760405162461bcd60e51b815260040161072490612ce6565b3360005b8451811015611ae1576000858281518110611a1b57611a1b613004565b602002602001015190506000858381518110611a3957611a39613004565b602090810291909101810151600084815280835260408082206001600160a01b038e168352909352919091205490915081811015611a895760405162461bcd60e51b815260040161072490612d2b565b6000838152602081815260408083206001600160a01b038e8116855292528083208585039055908b16825281208054849290611ac6908490612e8e565b9250508190555050505080611ada90612fa9565b90506119fe565b50846001600160a01b0316866001600160a01b0316826001600160a01b03167f4a39dc06d4c0dbc64b70af90fd698a233a518aa5d07e595d983b8c0526c8f7fb8787604051611b31929190612c5d565b60405180910390a4611b4781878787878761222f565b505050505050565b600354600160a01b900460ff16611b9f5760405162461bcd60e51b815260206004820152601460248201527314185d5cd8589b194e881b9bdd081c185d5cd95960621b6044820152606401610724565b6003805460ff60a01b191690557f5db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa335b6040516001600160a01b03909116815260200160405180910390a1565b60008111611c335760405162461bcd60e51b815260206004820152601460248201527343616e6e6f74206d696e74203020746f6b656e7360601b6044820152606401610724565b80611c3c61110e565b1015611c5a5760405162461bcd60e51b815260040161072490612e33565b6040805160038082526080820190925260009160208201606080368337505060408051600380825260808201909252929350600092915060208201606080368337019050509050611cac8383836122f9565b610a193383836040518060400160405280600681526020016503130303530360d41b815250612489565b600380546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b600354600160a01b900460ff1615611d755760405162461bcd60e51b815260206004820152601060248201526f14185d5cd8589b194e881c185d5cd95960821b6044820152606401610724565b6003805460ff60a01b1916600160a01b1790557f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a258611bcf3390565b600354600160a81b900460ff1615611dfc5760405162461bcd60e51b815260206004820152600f60248201526e10db185a5b481a5cc81c185d5cd959608a1b6044820152606401610724565b6003805460ff60a81b1916600160a81b1790557fcfe438f248d3757132817fd95e4dd5bede068f8f6db5595c5ecb816b7cca1c7e611bcf3390565b600354600160a81b900460ff16611e865760405162461bcd60e51b815260206004820152601360248201527210db185a5b481a5cc81b9bdd081c185d5cd959606a1b6044820152606401610724565b6003805460ff60a81b191690557f283a148c0482d064fbf794e0d297192b1854c7edf96c8397dbc1ebd950f232b133611bcf565b6001600160a01b038416611ee05760405162461bcd60e51b815260040161072490612ce6565b33611ef081878761191a88611fd7565b6000848152602081815260408083206001600160a01b038a16845290915290205483811015611f315760405162461bcd60e51b815260040161072490612d2b565b6000858152602081815260408083206001600160a01b038b8116855292528083208785039055908816825281208054869290611f6e908490612e8e565b909155505060408051868152602081018690526001600160a01b03808916928a821692918616917fc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f62910160405180910390a4611fce8288888888886120c4565b50505050505050565b6040805160018082528183019092526060916000919060208083019080368337019050509050828160008151811061201157612011613004565b602090810291909101015292915050565b600a818154811061203557612035613004565b600091825260208083208183040154858452600d909152604083208054601f9093166101000a90910460ff90811693919261207291859116612ea6565b82546101009290920a60ff8181021990931691831602179091556000848152600d6020526040902054606491161115905061100c576000828152600d60205260409020805460ff191660641790555050565b6001600160a01b0384163b15611b475760405163f23a6e6160e01b81526001600160a01b0385169063f23a6e61906121089089908990889088908890600401612c05565b602060405180830381600087803b15801561212257600080fd5b505af1925050508015612152575060408051601f3d908101601f1916820190925261214f91810190612a70565b60015b6121ff5761215e613030565b806308c379a01415612198575061217361304c565b8061217e575061219a565b8060405162461bcd60e51b81526004016107249190612c8b565b505b60405162461bcd60e51b815260206004820152603460248201527f455243313135353a207472616e7366657220746f206e6f6e20455243313135356044820152732932b1b2b4bb32b91034b6b83632b6b2b73a32b960611b6064820152608401610724565b6001600160e01b0319811663f23a6e6160e01b14611fce5760405162461bcd60e51b815260040161072490612c9e565b6001600160a01b0384163b15611b475760405163bc197c8160e01b81526001600160a01b0385169063bc197c81906122739089908990889088908890600401612ba7565b602060405180830381600087803b15801561228d57600080fd5b505af19250505080156122bd575060408051601f3d908101601f191682019092526122ba91810190612a70565b60015b6122c95761215e613030565b6001600160e01b0319811663bc197c8160e01b14611fce5760405162461bcd60e51b815260040161072490612c9e565b805182511461230757600080fd5b600382511461231557600080fd5b60015b6003811161238357808361232d600183612efe565b8151811061233d5761233d613004565b6020908102919091010152600082612356600184612efe565b8151811061236657612366613004565b60209081029190910101528061237b81612fa9565b915050612318565b5060005b8381101561248357600061239961110e565b60408051426020808301919091524482840152606080830187905283518084039091018152608090920190925280519101206123d59190612fc4565b9050600060015b6003811161246d57600681815481106123f7576123f7613004565b90600052602060002001548261240d9190612e8e565b91508183101561245b576001856124248284612efe565b8151811061243457612434613004565b602002602001018181516124489190612e8e565b90525061245681600161189d565b61246d565b8061246581612fa9565b9150506123dc565b505050808061247b90612fa9565b915050612387565b50505050565b6001600160a01b0384166124af5760405162461bcd60e51b815260040161072490612df2565b81518351146124d05760405162461bcd60e51b815260040161072490612daa565b3360005b845181101561256c578381815181106124ef576124ef613004565b602002602001015160008087848151811061250c5761250c613004565b602002602001015181526020019081526020016000206000886001600160a01b03166001600160a01b0316815260200190815260200160002060008282546125549190612e8e565b9091555081905061256481612fa9565b9150506124d4565b50846001600160a01b031660006001600160a01b0316826001600160a01b03167f4a39dc06d4c0dbc64b70af90fd698a233a518aa5d07e595d983b8c0526c8f7fb87876040516125bd929190612c5d565b60405180910390a4610bb78160008787878761222f565b8280546125e090612f41565b90600052602060002090601f0160209004810192826126025760008555612648565b82601f1061261b57805160ff1916838001178555612648565b82800160010185558215612648579182015b8281111561264857825182559160200191906001019061262d565b50612654929150612658565b5090565b5b808211156126545760008155600101612659565b600067ffffffffffffffff8311156126875761268761301a565b60405161269e601f8501601f191660200182612f7c565b8091508381528484840111156126b357600080fd5b83836020830137600060208583010152509392505050565b600082601f8301126126dc57600080fd5b813560206126e982612e6a565b6040516126f68282612f7c565b8381528281019150858301600585901b8701840188101561271657600080fd5b60005b8581101561273557813584529284019290840190600101612719565b5090979650505050505050565b600082601f83011261275357600080fd5b6108888383356020850161266d565b60006020828403121561277457600080fd5b8135610888816130d6565b60006020828403121561279157600080fd5b8151610888816130d6565b600080604083850312156127af57600080fd5b82356127ba816130d6565b915060208301356127ca816130d6565b809150509250929050565b600080600080600060a086880312156127ed57600080fd5b85356127f8816130d6565b94506020860135612808816130d6565b9350604086013567ffffffffffffffff8082111561282557600080fd5b61283189838a016126cb565b9450606088013591508082111561284757600080fd5b61285389838a016126cb565b9350608088013591508082111561286957600080fd5b5061287688828901612742565b9150509295509295909350565b600080600080600060a0868803121561289b57600080fd5b85356128a6816130d6565b945060208601356128b6816130d6565b93506040860135925060608601359150608086013567ffffffffffffffff8111156128e057600080fd5b61287688828901612742565b600080604083850312156128ff57600080fd5b823561290a816130d6565b9150602083013580151581146127ca57600080fd5b6000806040838503121561293257600080fd5b823561293d816130d6565b946020939093013593505050565b60008060006060848603121561296057600080fd5b833561296b816130d6565b95602085013595506040909401359392505050565b6000806040838503121561299357600080fd5b823567ffffffffffffffff808211156129ab57600080fd5b818501915085601f8301126129bf57600080fd5b813560206129cc82612e6a565b6040516129d98282612f7c565b8381528281019150858301600585901b870184018b10156129f957600080fd5b600096505b84871015612a25578035612a11816130d6565b8352600196909601959183019183016129fe565b5096505086013592505080821115612a3c57600080fd5b50612a49858286016126cb565b9150509250929050565b600060208284031215612a6557600080fd5b8135610888816130eb565b600060208284031215612a8257600080fd5b8151610888816130eb565b600060208284031215612a9f57600080fd5b813567ffffffffffffffff811115612ab657600080fd5b8201601f81018413612ac757600080fd5b6115cf8482356020840161266d565b600060208284031215612ae857600080fd5b5035919050565b60008060408385031215612b0257600080fd5b50508035926020909101359150565b600081518084526020808501945080840160005b83811015612b4157815187529582019590820190600101612b25565b509495945050505050565b60008151808452612b64816020860160208601612f15565b601f01601f19169290920160200192915050565b60008351612b8a818460208801612f15565b835190830190612b9e818360208801612f15565b01949350505050565b6001600160a01b0386811682528516602082015260a060408201819052600090612bd390830186612b11565b8281036060840152612be58186612b11565b90508281036080840152612bf98185612b4c565b98975050505050505050565b6001600160a01b03868116825285166020820152604081018490526060810183905260a060808201819052600090612c3f90830184612b4c565b979650505050505050565b6020815260006108886020830184612b11565b604081526000612c706040830185612b11565b8281036020840152612c828185612b11565b95945050505050565b6020815260006108886020830184612b4c565b60208082526028908201527f455243313135353a204552433131353552656365697665722072656a656374656040820152676420746f6b656e7360c01b606082015260800190565b60208082526025908201527f455243313135353a207472616e7366657220746f20746865207a65726f206164604082015264647265737360d81b606082015260800190565b6020808252602a908201527f455243313135353a20696e73756666696369656e742062616c616e636520666f60408201526939103a3930b739b332b960b11b606082015260800190565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b60208082526028908201527f455243313135353a2069647320616e6420616d6f756e7473206c656e677468206040820152670dad2e6dac2e8c6d60c31b606082015260800190565b60208082526021908201527f455243313135353a206d696e7420746f20746865207a65726f206164647265736040820152607360f81b606082015260800190565b6020808252601e908201527f4e6f7420656e6f75676820746f6b656e73206c656674206f6e2073616c650000604082015260600190565b600067ffffffffffffffff821115612e8457612e8461301a565b5060051b60200190565b60008219821115612ea157612ea1612fd8565b500190565b600060ff821660ff84168060ff03821115612ec357612ec3612fd8565b019392505050565b600082612eda57612eda612fee565b500490565b6000816000190483118215151615612ef957612ef9612fd8565b500290565b600082821015612f1057612f10612fd8565b500390565b60005b83811015612f30578181015183820152602001612f18565b838111156124835750506000910152565b600181811c90821680612f5557607f821691505b60208210811415612f7657634e487b7160e01b600052602260045260246000fd5b50919050565b601f8201601f1916810167ffffffffffffffff81118282101715612fa257612fa261301a565b6040525050565b6000600019821415612fbd57612fbd612fd8565b5060010190565b600082612fd357612fd3612fee565b500690565b634e487b7160e01b600052601160045260246000fd5b634e487b7160e01b600052601260045260246000fd5b634e487b7160e01b600052603260045260246000fd5b634e487b7160e01b600052604160045260246000fd5b600060033d11156130495760046000803e5060005160e01c5b90565b600060443d101561305a5790565b6040516003193d81016004833e81513d67ffffffffffffffff816024840111818411171561308a57505050505090565b82850191508151818111156130a25750505050505090565b843d87010160208285010111156130bc5750505050505090565b6130cb60208286010187612f7c565b509095945050505050565b6001600160a01b03811681146107d857600080fd5b6001600160e01b0319811681146107d857600080fdfea2646970667358221220b7527ccd59302fe3a404f7ebcee49079ef05731ea18969c1dc6244b8dbb7982264736f6c6343000807003368747470733a2f2f6170692e706f726b313938342e696f2f6170692f76616363696e652f746f6b656e2f68747470733a2f2f6170692e706f726b313938342e696f2f636f6e74726163742f76616363696e65

Deployed Bytecode

0x60806040526004361061020e5760003560e01c8063715018a611610118578063c785140c116100a0578063e1082eec1161006f578063e1082eec146105ee578063e8a3d4851461061e578063e985e9c514610633578063f242432a1461067c578063f2fde38b1461069c57600080fd5b8063c785140c1461057e578063d1e6a64f146105b1578063d96a094a146105c6578063de065caa146105d957600080fd5b8063938e3d7b116100e7578063938e3d7b146104ea578063a22cb4651461050a578063a3c6d7821461052a578063ab5e124a1461054a578063bd12fc6a1461056957600080fd5b8063715018a6146104835780638456cb59146104985780638da5cb5b146104ad5780638ff095f9146104d557600080fd5b80633f4ba83a1161019b57806351cff8d91161016a57806351cff8d91461040857806355d58cdf1461041b57806359740a5e1461043b5780635c975abb1461044f5780635db30bb11461046e57600080fd5b80633f4ba83a146103785780634e1273f41461038d5780634e71d92d146103ba57806350e34236146103cf57600080fd5b80631361a3b6116101e25780631361a3b6146102c557806325e90ae9146102e557806327d523ef146103055780632eb2c2d6146103255780633c0b1edf1461034557600080fd5b8062fdd58e1461021357806301ffc9a71461024657806302fe5305146102765780630e89341c14610298575b600080fd5b34801561021f57600080fd5b5061023361022e36600461291f565b6106bc565b6040519081526020015b60405180910390f35b34801561025257600080fd5b50610266610261366004612a53565b610753565b604051901515815260200161023d565b34801561028257600080fd5b50610296610291366004612a8d565b6107a5565b005b3480156102a457600080fd5b506102b86102b3366004612ad6565b6107db565b60405161023d9190612c8b565b3480156102d157600080fd5b506102966102e0366004612ad6565b61088f565b3480156102f157600080fd5b50610296610300366004612aef565b61093d565b34801561031157600080fd5b5061029661032036600461294b565b610a1e565b34801561033157600080fd5b506102966103403660046127d5565b610b27565b34801561035157600080fd5b503360009081526004602052604090205460ff165b60405160ff909116815260200161023d565b34801561038457600080fd5b50610296610bc3565b34801561039957600080fd5b506103ad6103a8366004612980565b610bf7565b60405161023d9190612c4a565b3480156103c657600080fd5b50610296610d21565b3480156103db57600080fd5b506103666103ea366004612762565b6001600160a01b031660009081526004602052604090205460ff1690565b610296610416366004612762565b610da3565b34801561042757600080fd5b50610296610436366004612aef565b610eaf565b34801561044757600080fd5b506064610366565b34801561045b57600080fd5b50600354600160a01b900460ff16610266565b34801561047a57600080fd5b506104b0610233565b34801561048f57600080fd5b50610296610f37565b3480156104a457600080fd5b50610296610f6b565b3480156104b957600080fd5b506003546040516001600160a01b03909116815260200161023d565b3480156104e157600080fd5b50610296610f9d565b3480156104f657600080fd5b50610296610505366004612a8d565b610fcf565b34801561051657600080fd5b506102966105253660046128ec565b611010565b34801561053657600080fd5b50610233610545366004612ad6565b6110e7565b34801561055657600080fd5b50600354600160a81b900460ff16610266565b34801561057557600080fd5b50600754610233565b34801561058a57600080fd5b50610266610599366004612ad6565b6000908152600d602052604090205460ff1660641490565b3480156105bd57600080fd5b5061023361110e565b6102966105d4366004612ad6565b611120565b3480156105e557600080fd5b50610296611233565b3480156105fa57600080fd5b50610366610609366004612ad6565b6000908152600d602052604090205460ff1690565b34801561062a57600080fd5b506102b8611265565b34801561063f57600080fd5b5061026661064e36600461279c565b6001600160a01b03918216600090815260016020908152604080832093909416825291909152205460ff1690565b34801561068857600080fd5b50610296610697366004612883565b6112f7565b3480156106a857600080fd5b506102966106b7366004612762565b61137e565b60006001600160a01b03831661072d5760405162461bcd60e51b815260206004820152602b60248201527f455243313135353a2062616c616e636520717565727920666f7220746865207a60448201526a65726f206164647265737360a81b60648201526084015b60405180910390fd5b506000908152602081815260408083206001600160a01b03949094168352929052205490565b60006001600160e01b03198216636cdb3d1360e11b148061078457506001600160e01b031982166303a24d0760e21b145b8061079f57506301ffc9a760e01b6001600160e01b03198316145b92915050565b6003546001600160a01b031633146107cf5760405162461bcd60e51b815260040161072490612d75565b6107d881611416565b50565b60606107e682611429565b6108325760405162461bcd60e51b815260206004820152601e60248201527f56616363696e65237572693a204e4f4e4558495354454e545f544f4b454e00006044820152606401610724565b600061083d8361143d565b9050600081511161085d5760405180602001604052806000815250610888565b80610867846114d1565b604051602001610878929190612b78565b6040516020818303038152906040525b9392505050565b6003546001600160a01b031633146108b95760405162461bcd60e51b815260040161072490612d75565b6000600682815481106108ce576108ce613004565b9060005260206000200154116108e357600080fd5b600681815481106108f6576108f6613004565b9060005260206000200154600760008282546109129190612efe565b9250508190555060006006828154811061092e5761092e613004565b60009182526020909120015550565b610949338360016115d7565b600c546040516331a9108f60e11b8152600481018390526001600160a01b039091169033908290636352211e9060240160206040518083038186803b15801561099157600080fd5b505afa1580156109a5573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906109c9919061277f565b6001600160a01b0316146109dc57600080fd5b610a198383600b86815481106109f4576109f4613004565b90600052602060002090602091828204019190069054906101000a900460ff16611751565b505050565b6003546001600160a01b03163314610a485760405162461bcd60e51b815260040161072490612d75565b60008111610a8f5760405162461bcd60e51b815260206004820152601460248201527343616e6e6f742067697665203020746f6b656e7360601b6044820152606401610724565b80610a9861110e565b1015610ab65760405162461bcd60e51b815260040161072490612e33565b8060068381548110610aca57610aca613004565b90600052602060002001541015610af35760405162461bcd60e51b815260040161072490612e33565b610afd828261189d565b610a198383836040518060400160405280600681526020016503130303530360d41b8152506118e3565b6001600160a01b038516331480610b435750610b43853361064e565b610baa5760405162461bcd60e51b815260206004820152603260248201527f455243313135353a207472616e736665722063616c6c6572206973206e6f74206044820152711bdddb995c881b9bdc88185c1c1c9bdd995960721b6064820152608401610724565b610bb785858585856119b3565b5050505050565b905090565b6003546001600160a01b03163314610bed5760405162461bcd60e51b815260040161072490612d75565b610bf5611b4f565b565b60608151835114610c5c5760405162461bcd60e51b815260206004820152602960248201527f455243313135353a206163636f756e747320616e6420696473206c656e677468604482015268040dad2e6dac2e8c6d60bb1b6064820152608401610724565b6000835167ffffffffffffffff811115610c7857610c7861301a565b604051908082528060200260200182016040528015610ca1578160200160208202803683370190505b50905060005b8451811015610d1957610cec858281518110610cc557610cc5613004565b6020026020010151858381518110610cdf57610cdf613004565b60200260200101516106bc565b828281518110610cfe57610cfe613004565b6020908102919091010152610d1281612fa9565b9050610ca7565b509392505050565b600354600160a81b900460ff1615610d6d5760405162461bcd60e51b815260206004820152600f60248201526e10db185a5b481a5cc81c185d5cd959608a1b6044820152606401610724565b3360009081526004602052604090205460ff16610d8981611bec565b336000908152600460205260409020805460ff1916905550565b6003546001600160a01b03163314610dcd5760405162461bcd60e51b815260040161072490612d75565b47601960006103e8610ddf8385612edf565b610de99190612ecb565b905060005b600554811015610e5e5760058181548110610e0b57610e0b613004565b60009182526020822001546040516001600160a01b039091169184156108fc02918591818181858888f19350505050158015610e4b573d6000803e3d6000fd5b5080610e5681612fa9565b915050610dee565b50600554610e6c9082612edf565b610e769084612efe565b6040519093506001600160a01b0385169084156108fc029085906000818181858888f19350505050158015610bb7573d6000803e3d6000fd5b6003546001600160a01b03163314610ed95760405162461bcd60e51b815260040161072490612d75565b8060076000828254610eeb9190612e8e565b90915550506007546104b01015610f0157600080fd5b8060068381548110610f1557610f15613004565b906000526020600020016000828254610f2e9190612e8e565b90915550505050565b6003546001600160a01b03163314610f615760405162461bcd60e51b815260040161072490612d75565b610bf56000611cd6565b6003546001600160a01b03163314610f955760405162461bcd60e51b815260040161072490612d75565b610bf5611d28565b6003546001600160a01b03163314610fc75760405162461bcd60e51b815260040161072490612d75565b610bf5611db0565b6003546001600160a01b03163314610ff95760405162461bcd60e51b815260040161072490612d75565b805161100c9060099060208401906125d4565b5050565b336001600160a01b038316141561107b5760405162461bcd60e51b815260206004820152602960248201527f455243313135353a2073657474696e6720617070726f76616c20737461747573604482015268103337b91039b2b63360b91b6064820152608401610724565b3360008181526001602090815260408083206001600160a01b03871680855290835292819020805460ff191686151590811790915590519081529192917f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a35050565b6000600682815481106110fc576110fc613004565b90600052602060002001549050919050565b6000600854600754610bbe9190612efe565b600354600160a01b900460ff161561116d5760405162461bcd60e51b815260206004820152601060248201526f14185d5cd8589b194e881c185d5cd95960821b6044820152606401610724565b600a8111156111ca5760405162461bcd60e51b815260206004820152602360248201527f43616e6e6f74206275792074686174206d616e7920746f6b656e73206174206f6044820152626e636560e81b6064820152608401610724565b6111db8166720ac7a94a4000612edf565b34101561122a5760405162461bcd60e51b815260206004820152601860248201527f496e73756666696369656e742066756e64732073656e742e00000000000000006044820152606401610724565b6107d881611bec565b6003546001600160a01b0316331461125d5760405162461bcd60e51b815260040161072490612d75565b610bf5611e37565b60606009805461127490612f41565b80601f01602080910402602001604051908101604052809291908181526020018280546112a090612f41565b80156112ed5780601f106112c2576101008083540402835291602001916112ed565b820191906000526020600020905b8154815290600101906020018083116112d057829003601f168201915b5050505050905090565b6001600160a01b0385163314806113135750611313853361064e565b6113715760405162461bcd60e51b815260206004820152602960248201527f455243313135353a2063616c6c6572206973206e6f74206f776e6572206e6f7260448201526808185c1c1c9bdd995960ba1b6064820152608401610724565b610bb78585858585611eba565b6003546001600160a01b031633146113a85760405162461bcd60e51b815260040161072490612d75565b6001600160a01b03811661140d5760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401610724565b6107d881611cd6565b805161100c9060029060208401906125d4565b6000808211801561079f5750506003101590565b60606002805461144c90612f41565b80601f016020809104026020016040519081016040528092919081815260200182805461147890612f41565b80156114c55780601f1061149a576101008083540402835291602001916114c5565b820191906000526020600020905b8154815290600101906020018083116114a857829003601f168201915b50505050509050919050565b6060816114f55750506040805180820190915260018152600360fc1b602082015290565b8160005b811561151f578061150981612fa9565b91506115189050600a83612ecb565b91506114f9565b60008167ffffffffffffffff81111561153a5761153a61301a565b6040519080825280601f01601f191660200182016040528015611564576020820181803683370190505b5090505b84156115cf57611579600183612efe565b9150611586600a86612fc4565b611591906030612e8e565b60f81b8183815181106115a6576115a6613004565b60200101906001600160f81b031916908160001a9053506115c8600a86612ecb565b9450611568565b949350505050565b6001600160a01b0383166116395760405162461bcd60e51b815260206004820152602360248201527f455243313135353a206275726e2066726f6d20746865207a65726f206164647260448201526265737360e81b6064820152608401610724565b336116698185600061164a87611fd7565b61165387611fd7565b5050604080516020810190915260009052505050565b6000838152602081815260408083206001600160a01b0388168452909152902054828110156116e65760405162461bcd60e51b8152602060048201526024808201527f455243313135353a206275726e20616d6f756e7420657863656564732062616c604482015263616e636560e01b6064820152608401610724565b6000848152602081815260408083206001600160a01b03898116808652918452828520888703905582518981529384018890529092908616917fc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f62910160405180910390a45050505050565b61176d826000908152600d602052604090205460ff1660641490565b156117c85760405162461bcd60e51b815260206004820152602560248201527f5468697320706f726b2068617320616c7265616479206265636f6d652061206d6044820152641d5d185b9d60da1b6064820152608401610724565b604080514260208083019190915244828401526060808301869052835180840390910181526080909201909252805191012060009061180990606490612fc4565b90508160ff168160ff1610611827576118228385612022565b611846565b611846836000908152600d60205260409020805460ff19166064179055565b6000838152600d602090815260409182902054825187815291820186905260ff168183015290517ff0450b0b02bc939e05e090c0eeafb69cee78c83764ac863a5d762ab74ff5abb99181900360600190a150505050565b80600860008282546118af9190612e8e565b9250508190555080600683815481106118ca576118ca613004565b906000526020600020016000828254610f2e9190612efe565b6001600160a01b0384166119095760405162461bcd60e51b815260040161072490612df2565b336119238160008761191a88611fd7565b610bb788611fd7565b6000848152602081815260408083206001600160a01b038916845290915281208054859290611953908490612e8e565b909155505060408051858152602081018590526001600160a01b0380881692600092918516917fc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f62910160405180910390a4610bb7816000878787876120c4565b81518351146119d45760405162461bcd60e51b815260040161072490612daa565b6001600160a01b0384166119fa5760405162461bcd60e51b815260040161072490612ce6565b3360005b8451811015611ae1576000858281518110611a1b57611a1b613004565b602002602001015190506000858381518110611a3957611a39613004565b602090810291909101810151600084815280835260408082206001600160a01b038e168352909352919091205490915081811015611a895760405162461bcd60e51b815260040161072490612d2b565b6000838152602081815260408083206001600160a01b038e8116855292528083208585039055908b16825281208054849290611ac6908490612e8e565b9250508190555050505080611ada90612fa9565b90506119fe565b50846001600160a01b0316866001600160a01b0316826001600160a01b03167f4a39dc06d4c0dbc64b70af90fd698a233a518aa5d07e595d983b8c0526c8f7fb8787604051611b31929190612c5d565b60405180910390a4611b4781878787878761222f565b505050505050565b600354600160a01b900460ff16611b9f5760405162461bcd60e51b815260206004820152601460248201527314185d5cd8589b194e881b9bdd081c185d5cd95960621b6044820152606401610724565b6003805460ff60a01b191690557f5db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa335b6040516001600160a01b03909116815260200160405180910390a1565b60008111611c335760405162461bcd60e51b815260206004820152601460248201527343616e6e6f74206d696e74203020746f6b656e7360601b6044820152606401610724565b80611c3c61110e565b1015611c5a5760405162461bcd60e51b815260040161072490612e33565b6040805160038082526080820190925260009160208201606080368337505060408051600380825260808201909252929350600092915060208201606080368337019050509050611cac8383836122f9565b610a193383836040518060400160405280600681526020016503130303530360d41b815250612489565b600380546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b600354600160a01b900460ff1615611d755760405162461bcd60e51b815260206004820152601060248201526f14185d5cd8589b194e881c185d5cd95960821b6044820152606401610724565b6003805460ff60a01b1916600160a01b1790557f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a258611bcf3390565b600354600160a81b900460ff1615611dfc5760405162461bcd60e51b815260206004820152600f60248201526e10db185a5b481a5cc81c185d5cd959608a1b6044820152606401610724565b6003805460ff60a81b1916600160a81b1790557fcfe438f248d3757132817fd95e4dd5bede068f8f6db5595c5ecb816b7cca1c7e611bcf3390565b600354600160a81b900460ff16611e865760405162461bcd60e51b815260206004820152601360248201527210db185a5b481a5cc81b9bdd081c185d5cd959606a1b6044820152606401610724565b6003805460ff60a81b191690557f283a148c0482d064fbf794e0d297192b1854c7edf96c8397dbc1ebd950f232b133611bcf565b6001600160a01b038416611ee05760405162461bcd60e51b815260040161072490612ce6565b33611ef081878761191a88611fd7565b6000848152602081815260408083206001600160a01b038a16845290915290205483811015611f315760405162461bcd60e51b815260040161072490612d2b565b6000858152602081815260408083206001600160a01b038b8116855292528083208785039055908816825281208054869290611f6e908490612e8e565b909155505060408051868152602081018690526001600160a01b03808916928a821692918616917fc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f62910160405180910390a4611fce8288888888886120c4565b50505050505050565b6040805160018082528183019092526060916000919060208083019080368337019050509050828160008151811061201157612011613004565b602090810291909101015292915050565b600a818154811061203557612035613004565b600091825260208083208183040154858452600d909152604083208054601f9093166101000a90910460ff90811693919261207291859116612ea6565b82546101009290920a60ff8181021990931691831602179091556000848152600d6020526040902054606491161115905061100c576000828152600d60205260409020805460ff191660641790555050565b6001600160a01b0384163b15611b475760405163f23a6e6160e01b81526001600160a01b0385169063f23a6e61906121089089908990889088908890600401612c05565b602060405180830381600087803b15801561212257600080fd5b505af1925050508015612152575060408051601f3d908101601f1916820190925261214f91810190612a70565b60015b6121ff5761215e613030565b806308c379a01415612198575061217361304c565b8061217e575061219a565b8060405162461bcd60e51b81526004016107249190612c8b565b505b60405162461bcd60e51b815260206004820152603460248201527f455243313135353a207472616e7366657220746f206e6f6e20455243313135356044820152732932b1b2b4bb32b91034b6b83632b6b2b73a32b960611b6064820152608401610724565b6001600160e01b0319811663f23a6e6160e01b14611fce5760405162461bcd60e51b815260040161072490612c9e565b6001600160a01b0384163b15611b475760405163bc197c8160e01b81526001600160a01b0385169063bc197c81906122739089908990889088908890600401612ba7565b602060405180830381600087803b15801561228d57600080fd5b505af19250505080156122bd575060408051601f3d908101601f191682019092526122ba91810190612a70565b60015b6122c95761215e613030565b6001600160e01b0319811663bc197c8160e01b14611fce5760405162461bcd60e51b815260040161072490612c9e565b805182511461230757600080fd5b600382511461231557600080fd5b60015b6003811161238357808361232d600183612efe565b8151811061233d5761233d613004565b6020908102919091010152600082612356600184612efe565b8151811061236657612366613004565b60209081029190910101528061237b81612fa9565b915050612318565b5060005b8381101561248357600061239961110e565b60408051426020808301919091524482840152606080830187905283518084039091018152608090920190925280519101206123d59190612fc4565b9050600060015b6003811161246d57600681815481106123f7576123f7613004565b90600052602060002001548261240d9190612e8e565b91508183101561245b576001856124248284612efe565b8151811061243457612434613004565b602002602001018181516124489190612e8e565b90525061245681600161189d565b61246d565b8061246581612fa9565b9150506123dc565b505050808061247b90612fa9565b915050612387565b50505050565b6001600160a01b0384166124af5760405162461bcd60e51b815260040161072490612df2565b81518351146124d05760405162461bcd60e51b815260040161072490612daa565b3360005b845181101561256c578381815181106124ef576124ef613004565b602002602001015160008087848151811061250c5761250c613004565b602002602001015181526020019081526020016000206000886001600160a01b03166001600160a01b0316815260200190815260200160002060008282546125549190612e8e565b9091555081905061256481612fa9565b9150506124d4565b50846001600160a01b031660006001600160a01b0316826001600160a01b03167f4a39dc06d4c0dbc64b70af90fd698a233a518aa5d07e595d983b8c0526c8f7fb87876040516125bd929190612c5d565b60405180910390a4610bb78160008787878761222f565b8280546125e090612f41565b90600052602060002090601f0160209004810192826126025760008555612648565b82601f1061261b57805160ff1916838001178555612648565b82800160010185558215612648579182015b8281111561264857825182559160200191906001019061262d565b50612654929150612658565b5090565b5b808211156126545760008155600101612659565b600067ffffffffffffffff8311156126875761268761301a565b60405161269e601f8501601f191660200182612f7c565b8091508381528484840111156126b357600080fd5b83836020830137600060208583010152509392505050565b600082601f8301126126dc57600080fd5b813560206126e982612e6a565b6040516126f68282612f7c565b8381528281019150858301600585901b8701840188101561271657600080fd5b60005b8581101561273557813584529284019290840190600101612719565b5090979650505050505050565b600082601f83011261275357600080fd5b6108888383356020850161266d565b60006020828403121561277457600080fd5b8135610888816130d6565b60006020828403121561279157600080fd5b8151610888816130d6565b600080604083850312156127af57600080fd5b82356127ba816130d6565b915060208301356127ca816130d6565b809150509250929050565b600080600080600060a086880312156127ed57600080fd5b85356127f8816130d6565b94506020860135612808816130d6565b9350604086013567ffffffffffffffff8082111561282557600080fd5b61283189838a016126cb565b9450606088013591508082111561284757600080fd5b61285389838a016126cb565b9350608088013591508082111561286957600080fd5b5061287688828901612742565b9150509295509295909350565b600080600080600060a0868803121561289b57600080fd5b85356128a6816130d6565b945060208601356128b6816130d6565b93506040860135925060608601359150608086013567ffffffffffffffff8111156128e057600080fd5b61287688828901612742565b600080604083850312156128ff57600080fd5b823561290a816130d6565b9150602083013580151581146127ca57600080fd5b6000806040838503121561293257600080fd5b823561293d816130d6565b946020939093013593505050565b60008060006060848603121561296057600080fd5b833561296b816130d6565b95602085013595506040909401359392505050565b6000806040838503121561299357600080fd5b823567ffffffffffffffff808211156129ab57600080fd5b818501915085601f8301126129bf57600080fd5b813560206129cc82612e6a565b6040516129d98282612f7c565b8381528281019150858301600585901b870184018b10156129f957600080fd5b600096505b84871015612a25578035612a11816130d6565b8352600196909601959183019183016129fe565b5096505086013592505080821115612a3c57600080fd5b50612a49858286016126cb565b9150509250929050565b600060208284031215612a6557600080fd5b8135610888816130eb565b600060208284031215612a8257600080fd5b8151610888816130eb565b600060208284031215612a9f57600080fd5b813567ffffffffffffffff811115612ab657600080fd5b8201601f81018413612ac757600080fd5b6115cf8482356020840161266d565b600060208284031215612ae857600080fd5b5035919050565b60008060408385031215612b0257600080fd5b50508035926020909101359150565b600081518084526020808501945080840160005b83811015612b4157815187529582019590820190600101612b25565b509495945050505050565b60008151808452612b64816020860160208601612f15565b601f01601f19169290920160200192915050565b60008351612b8a818460208801612f15565b835190830190612b9e818360208801612f15565b01949350505050565b6001600160a01b0386811682528516602082015260a060408201819052600090612bd390830186612b11565b8281036060840152612be58186612b11565b90508281036080840152612bf98185612b4c565b98975050505050505050565b6001600160a01b03868116825285166020820152604081018490526060810183905260a060808201819052600090612c3f90830184612b4c565b979650505050505050565b6020815260006108886020830184612b11565b604081526000612c706040830185612b11565b8281036020840152612c828185612b11565b95945050505050565b6020815260006108886020830184612b4c565b60208082526028908201527f455243313135353a204552433131353552656365697665722072656a656374656040820152676420746f6b656e7360c01b606082015260800190565b60208082526025908201527f455243313135353a207472616e7366657220746f20746865207a65726f206164604082015264647265737360d81b606082015260800190565b6020808252602a908201527f455243313135353a20696e73756666696369656e742062616c616e636520666f60408201526939103a3930b739b332b960b11b606082015260800190565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b60208082526028908201527f455243313135353a2069647320616e6420616d6f756e7473206c656e677468206040820152670dad2e6dac2e8c6d60c31b606082015260800190565b60208082526021908201527f455243313135353a206d696e7420746f20746865207a65726f206164647265736040820152607360f81b606082015260800190565b6020808252601e908201527f4e6f7420656e6f75676820746f6b656e73206c656674206f6e2073616c650000604082015260600190565b600067ffffffffffffffff821115612e8457612e8461301a565b5060051b60200190565b60008219821115612ea157612ea1612fd8565b500190565b600060ff821660ff84168060ff03821115612ec357612ec3612fd8565b019392505050565b600082612eda57612eda612fee565b500490565b6000816000190483118215151615612ef957612ef9612fd8565b500290565b600082821015612f1057612f10612fd8565b500390565b60005b83811015612f30578181015183820152602001612f18565b838111156124835750506000910152565b600181811c90821680612f5557607f821691505b60208210811415612f7657634e487b7160e01b600052602260045260246000fd5b50919050565b601f8201601f1916810167ffffffffffffffff81118282101715612fa257612fa261301a565b6040525050565b6000600019821415612fbd57612fbd612fd8565b5060010190565b600082612fd357612fd3612fee565b500690565b634e487b7160e01b600052601160045260246000fd5b634e487b7160e01b600052601260045260246000fd5b634e487b7160e01b600052603260045260246000fd5b634e487b7160e01b600052604160045260246000fd5b600060033d11156130495760046000803e5060005160e01c5b90565b600060443d101561305a5790565b6040516003193d81016004833e81513d67ffffffffffffffff816024840111818411171561308a57505050505090565b82850191508151818111156130a25750505050505090565b843d87010160208285010111156130bc5750505050505090565b6130cb60208286010187612f7c565b509095945050505050565b6001600160a01b03811681146107d857600080fd5b6001600160e01b0319811681146107d857600080fdfea2646970667358221220b7527ccd59302fe3a404f7ebcee49079ef05731ea18969c1dc6244b8dbb7982264736f6c63430008070033

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

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