ETH Price: $3,248.52 (-0.35%)
Gas: 2 Gwei

Contract

0xEDDfCefDf63a50845a05d0765FEdbB8726884D2E
 

Overview

ETH Balance

0 ETH

Eth Value

$0.00

Multichain Info

No addresses found
Transaction Hash
Method
Block
From
To
Claim Dust180392822023-09-01 4:20:59330 days ago1693542059IN
0xEDDfCefD...726884D2E
0 ETH0.0008751113.2530321
Claim Dust177515882023-07-22 22:16:47371 days ago1690064207IN
0xEDDfCefD...726884D2E
0 ETH0.0014487116.95945716
Set Approval For...176388572023-07-07 2:07:35386 days ago1688695655IN
0xEDDfCefD...726884D2E
0 ETH0.0010724123.18082667
Claim Dust176084312023-07-02 19:33:47391 days ago1688326427IN
0xEDDfCefD...726884D2E
0 ETH0.0011578215.90316403
Claim Dust176073492023-07-02 15:56:23391 days ago1688313383IN
0xEDDfCefD...726884D2E
0 ETH0.0018421415.97461998
Claim Dust176014192023-07-01 19:56:47392 days ago1688241407IN
0xEDDfCefD...726884D2E
0 ETH0.0009636816.52004812
Set Approval For...175765142023-06-28 8:04:47395 days ago1687939487IN
0xEDDfCefD...726884D2E
0 ETH0.0011616825.12338461
Safe Transfer Fr...175571962023-06-25 14:49:35398 days ago1687704575IN
0xEDDfCefD...726884D2E
0 ETH0.0006129311.840257
Set Approval For...175315122023-06-22 0:09:59402 days ago1687392599IN
0xEDDfCefD...726884D2E
0 ETH0.0003746814.22534156
Set Approval For...175315112023-06-22 0:09:47402 days ago1687392587IN
0xEDDfCefD...726884D2E
0 ETH0.0006711614.51503865
Claim Dust174682942023-06-13 3:04:59410 days ago1686625499IN
0xEDDfCefD...726884D2E
0 ETH0.001326113.89247279
Set Approval For...174542182023-06-11 3:30:11412 days ago1686454211IN
0xEDDfCefD...726884D2E
0 ETH0.0007902317.09017514
Set Approval For...173830882023-06-01 2:47:11422 days ago1685587631IN
0xEDDfCefD...726884D2E
0 ETH0.0019923543.08819513
Claim Dust173771282023-05-31 6:39:11423 days ago1685515151IN
0xEDDfCefD...726884D2E
0 ETH0.0017622426.68819571
Claim Dust169027052023-03-25 6:30:23490 days ago1679725823IN
0xEDDfCefD...726884D2E
0 ETH0.0026324713.71647555
Claim Dust168746432023-03-21 7:50:35494 days ago1679385035IN
0xEDDfCefD...726884D2E
0 ETH0.0011389214.1478333
Claim Dust168602222023-03-19 7:15:47496 days ago1679210147IN
0xEDDfCefD...726884D2E
0 ETH0.0011039115.1626488
Claim Dust168234792023-03-14 3:20:35501 days ago1678764035IN
0xEDDfCefD...726884D2E
0 ETH0.0023041921.08060143
Claim Dust167808542023-03-08 3:24:59507 days ago1678245899IN
0xEDDfCefD...726884D2E
0 ETH0.0015447624.36466952
Claim Dust167617522023-03-05 10:57:59510 days ago1678013879IN
0xEDDfCefD...726884D2E
0 ETH0.0026288720.71791116
Claim Dust167572832023-03-04 19:54:35511 days ago1677959675IN
0xEDDfCefD...726884D2E
0 ETH0.0026281127.53246717
Claim Dust167262632023-02-28 11:08:23515 days ago1677582503IN
0xEDDfCefD...726884D2E
0 ETH0.0014927420.50327263
Claim Dust166820412023-02-22 5:54:47521 days ago1677045287IN
0xEDDfCefD...726884D2E
0 ETH0.0070773726.9893996
Claim Dust166532162023-02-18 4:41:23525 days ago1676695283IN
0xEDDfCefD...726884D2E
0 ETH0.0015214223.04103863
Claim Dust166256492023-02-14 7:58:35529 days ago1676361515IN
0xEDDfCefD...726884D2E
0 ETH0.0013852116.21619625
View all transactions

View more zero value Internal Transactions in Advanced View mode

Advanced mode:
Loading...
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
PixieDust

Compiler Version
v0.8.17+commit.8df45f5f

Optimization Enabled:
Yes with 200 runs

Other Settings:
default evmVersion
File 1 of 13 : PixieDust.sol
// SPDX-License-Identifier: MIT


/*
・ *゚
  ・ ゚*
     ・。     
   *・。
      *.。 
           。・
              °*.
              。・  
               。・
                。。 
                  ・ ゚*.
                      ďľź*.
                 。。 ・
             。 ・゚
       。°*.
   。*・。
*/

pragma solidity ^0.8.17;


import "@openzeppelin/contracts/access/Ownable.sol";
import "@openzeppelin/contracts/token/ERC1155/ERC1155.sol";
import "@openzeppelin/contracts/token/ERC20/ERC20.sol";

abstract contract PixieJars {
    function walletOfOwner(address) external virtual view returns (uint256[] memory);
    function ownerOf(uint256) external virtual view returns (address);
    function balanceOf(address) external virtual view returns (uint256);
}

abstract contract CompanionJars {
    function stakedBy(uint256) external virtual view returns (address);
    function balanceOf(address) external virtual view returns (uint256);
}

abstract contract WalletOfOwnerHelper {
    function walletOfOwner(address collectionAddress, address owner, uint256 startTokenID, uint256 endTokenID) public virtual view returns (uint256[] memory);
}

contract PixieDust is ERC1155, ERC20, Ownable {

    uint256 public constant JAR_OF_DUST_ID = 1;
    uint256 public constant JAR_OF_DUST_VALUE = 100 * 10**18;
    uint256 public constant INITIAL_CLAIM_PER_PIXIE = 50 * 10**18;

    string public dustTokenURI;
    string internal _contractURI = "";
    uint256[20] public claimedDust;
    mapping(address => bool) public allowedOperator;
    PixieJars pixieJars;
    CompanionJars companionJars;
    WalletOfOwnerHelper walletOfOwnerHelper;

    constructor(string memory mContractURI, string memory _dustURI, address _pixieJars, address _walletOfOwnerHelper) ERC1155("") ERC20("Pixie Dust", "PD") {
        pixieJars = PixieJars(_pixieJars);
        walletOfOwnerHelper = WalletOfOwnerHelper(_walletOfOwnerHelper);
        dustTokenURI = _dustURI;
        _contractURI = mContractURI;
        emit URI(dustTokenURI, JAR_OF_DUST_ID);
    }

    function setPixieJarsContract(address _pixieJars) external onlyOwner {
        pixieJars = PixieJars(_pixieJars);
    }

    function setCompanionJarsContract(address _companionJars) external onlyOwner {
        companionJars = CompanionJars(_companionJars);
    }

    function setWalletOfOwnerHelper(address _walletOfOwnerHelper) external onlyOwner {
        walletOfOwnerHelper = WalletOfOwnerHelper(_walletOfOwnerHelper);
    }

    function setDustTokenURI(string memory _dustURI) external onlyOwner {
        dustTokenURI = _dustURI;
        emit URI(dustTokenURI, JAR_OF_DUST_ID);
    }

    function setContractURI(string calldata newContractURI) external onlyOwner {
        _contractURI = newContractURI;
    }

    function setAllowed(address _operator, bool _allowed) external onlyOwner {
        allowedOperator[_operator] = _allowed;
    }

    function mintDust(address to, uint256 amount) external {
        require(allowedOperator[msg.sender], "NOT ALLOWED");
        _mint(to, amount);
    }

    function burnDust(address from, uint256 amount) external {
        require(allowedOperator[msg.sender], "NOT ALLOWED");
        _burn(from, amount);
    }

    function uri(uint256 id) public view virtual override returns (string memory) {
        require(id == JAR_OF_DUST_ID);
        return dustTokenURI;
    }

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

    function balanceOf(address account, uint256 id) public view virtual override returns (uint256) {
        require(id == JAR_OF_DUST_ID, "INVALID TOKEN");
        uint256 dustBalance = balanceOf(account);
        return dustBalance / JAR_OF_DUST_VALUE;
    }

    function balanceOfBatch(address[] memory accounts, uint256[] memory) public view virtual override returns (uint256[] memory) {
        uint256[] memory batchBalances = new uint256[](accounts.length);
        uint256 dustBalance;
        for(uint256 i = 0;i < accounts.length;i++) {
            dustBalance = balanceOf(accounts[i]);
            batchBalances[i] = dustBalance / JAR_OF_DUST_VALUE;
        }
        return batchBalances;
    }

    function _safeTransferFrom(address from, address to, uint256 id, uint256 amount, bytes memory) internal virtual override {
        require(id == JAR_OF_DUST_ID);

        uint256 dustAmount = amount * JAR_OF_DUST_VALUE;
        _transfer(from, to, dustAmount);
    }

    function _safeBatchTransferFrom(address, address, uint256[] memory, uint256[] memory, bytes memory) internal virtual override {
        revert("NO BATCH TRANSFERS");
    }

    function _afterTokenTransfer(address from, address to, uint256 amount) internal virtual override {
        uint256 fromDustAfter = balanceOf(from);
        uint256 toDustAfter = balanceOf(to);
        uint256 fromJarsAfter = fromDustAfter / JAR_OF_DUST_VALUE;
        uint256 toJarsAfter = toDustAfter / JAR_OF_DUST_VALUE;
        uint256 fromJarsBefore = (fromDustAfter + amount) / JAR_OF_DUST_VALUE;
        uint256 toJarsBefore = 0;
        if(toDustAfter >= amount) {
            toJarsBefore = (toDustAfter - amount) / JAR_OF_DUST_VALUE;
        }
        uint256 toJarDiff = toJarsAfter - toJarsBefore;
        uint256 fromJarDiff = fromJarsBefore - fromJarsAfter;
        if(toJarDiff == fromJarDiff) {
            if(toJarDiff > 0) {
                emit TransferSingle(_msgSender(), from, to, JAR_OF_DUST_ID, toJarDiff);
            }
        } else if(toJarDiff > fromJarDiff) {
            if(fromJarDiff > 0) {
                emit TransferSingle(_msgSender(), from, to, JAR_OF_DUST_ID, fromJarDiff);
            }
            emit TransferSingle(_msgSender(), address(0), to, JAR_OF_DUST_ID, (toJarDiff - fromJarDiff));
        } else {
            if(toJarDiff > 0) {
                emit TransferSingle(_msgSender(), from, to, JAR_OF_DUST_ID, toJarDiff);
            }
            emit TransferSingle(_msgSender(), from, address(0), JAR_OF_DUST_ID, (fromJarDiff - toJarDiff));
        }
    }

    function claimDust(uint256[] calldata pixieTokenId) external {
        require(pixieTokenId.length > 0);
        uint256[] memory claimUpdates = new uint256[](20);
        uint256 totalClaim = 0;
        uint256 a = 0;
        uint256 b = 0;
        for(uint256 i = 0;i < pixieTokenId.length;i++) {
            if(pixieJars.ownerOf(pixieTokenId[i]) == msg.sender || companionJars.stakedBy(pixieTokenId[i]) == msg.sender) {
                a = pixieTokenId[i] / 256;
                b = pixieTokenId[i] % 256;
                if(claimedDust[a] &  2**b == 0 && claimUpdates[a] &  2**b == 0) {
                    totalClaim = totalClaim + INITIAL_CLAIM_PER_PIXIE;
                    claimUpdates[a] = claimUpdates[a] + 2 ** b;
                }
            }
        }
        require(totalClaim > 0);
        for(uint256 i = 0;i < claimUpdates.length;i++) {
            if(claimUpdates[i] > 0) {
                claimedDust[i] = claimedDust[i] | claimUpdates[i];
            }
        }
        _mint(msg.sender, totalClaim);
    }

    function isClaimed(uint256 pixieTokenId) external view returns(bool) {
        uint256 a = pixieTokenId / 256;
        uint256 b = pixieTokenId % 256;
        return claimedDust[a] & 2**b != 0;
    }

    function unclaimedPixiesByOwner(address _owner) external view returns(uint256[] memory) {
        uint256 pixieBalance = pixieJars.balanceOf(_owner);
        uint256 combinedBalance = companionJars.balanceOf(_owner);
        if(pixieBalance == 0 && combinedBalance == 0) { revert("No pixies owned."); }
        uint256[] memory pixieTokenIds = new uint256[](pixieBalance);
        pixieTokenIds = pixieJars.walletOfOwner(_owner);
        uint256 unclaimedCount = 0;
        for(uint256 i = 0;i < pixieTokenIds.length;i++) {
            if(!this.isClaimed(pixieTokenIds[i])) {
                unclaimedCount++;
            }
        }
        uint256[] memory combinedTokenIds = new uint256[](combinedBalance);
        combinedTokenIds = walletOfOwnerHelper.walletOfOwner(address(companionJars), _owner, 1, 5000);
        for(uint256 i = 0;i < combinedTokenIds.length;i++) {
            if(!this.isClaimed(combinedTokenIds[i])) {
                unclaimedCount++;
            }
        }
        if(unclaimedCount == 0) { revert("No unclaimed dust."); }
        uint256[] memory unclaimedTokenIds = new uint256[](unclaimedCount);
        uint256 unclaimedIndex = 0;
        for(uint256 i = 0;i < pixieTokenIds.length;i++) {
            if(!this.isClaimed(pixieTokenIds[i])) {
                unclaimedTokenIds[unclaimedIndex] = pixieTokenIds[i];
                unclaimedIndex++;
                if(unclaimedIndex == unclaimedCount) break;
            }
        }
        for(uint256 i = 0;i < combinedTokenIds.length;i++) {
            if(!this.isClaimed(combinedTokenIds[i])) {
                unclaimedTokenIds[unclaimedIndex] = combinedTokenIds[i];
                unclaimedIndex++;
                if(unclaimedIndex == unclaimedCount) break;
            }
        }

        return unclaimedTokenIds;
    }
}

File 2 of 13 : ERC20.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.8.0) (token/ERC20/ERC20.sol)

pragma solidity ^0.8.0;

import "./IERC20.sol";
import "./extensions/IERC20Metadata.sol";
import "../../utils/Context.sol";

/**
 * @dev Implementation of the {IERC20} interface.
 *
 * This implementation is agnostic to the way tokens are created. This means
 * that a supply mechanism has to be added in a derived contract using {_mint}.
 * For a generic mechanism see {ERC20PresetMinterPauser}.
 *
 * TIP: For a detailed writeup see our guide
 * https://forum.openzeppelin.com/t/how-to-implement-erc20-supply-mechanisms/226[How
 * to implement supply mechanisms].
 *
 * We have followed general OpenZeppelin Contracts guidelines: functions revert
 * instead returning `false` on failure. This behavior is nonetheless
 * conventional and does not conflict with the expectations of ERC20
 * applications.
 *
 * Additionally, an {Approval} event is emitted on calls to {transferFrom}.
 * This allows applications to reconstruct the allowance for all accounts just
 * by listening to said events. Other implementations of the EIP may not emit
 * these events, as it isn't required by the specification.
 *
 * Finally, the non-standard {decreaseAllowance} and {increaseAllowance}
 * functions have been added to mitigate the well-known issues around setting
 * allowances. See {IERC20-approve}.
 */
contract ERC20 is Context, IERC20, IERC20Metadata {
    mapping(address => uint256) private _balances;

    mapping(address => mapping(address => uint256)) private _allowances;

    uint256 private _totalSupply;

    string private _name;
    string private _symbol;

    /**
     * @dev Sets the values for {name} and {symbol}.
     *
     * The default value of {decimals} is 18. To select a different value for
     * {decimals} you should overload it.
     *
     * All two of these values are immutable: they can only be set once during
     * construction.
     */
    constructor(string memory name_, string memory symbol_) {
        _name = name_;
        _symbol = symbol_;
    }

    /**
     * @dev Returns the name of the token.
     */
    function name() public view virtual override returns (string memory) {
        return _name;
    }

    /**
     * @dev Returns the symbol of the token, usually a shorter version of the
     * name.
     */
    function symbol() public view virtual override returns (string memory) {
        return _symbol;
    }

    /**
     * @dev Returns the number of decimals used to get its user representation.
     * For example, if `decimals` equals `2`, a balance of `505` tokens should
     * be displayed to a user as `5.05` (`505 / 10 ** 2`).
     *
     * Tokens usually opt for a value of 18, imitating the relationship between
     * Ether and Wei. This is the value {ERC20} uses, unless this function is
     * overridden;
     *
     * NOTE: This information is only used for _display_ purposes: it in
     * no way affects any of the arithmetic of the contract, including
     * {IERC20-balanceOf} and {IERC20-transfer}.
     */
    function decimals() public view virtual override returns (uint8) {
        return 18;
    }

    /**
     * @dev See {IERC20-totalSupply}.
     */
    function totalSupply() public view virtual override returns (uint256) {
        return _totalSupply;
    }

    /**
     * @dev See {IERC20-balanceOf}.
     */
    function balanceOf(address account) public view virtual override returns (uint256) {
        return _balances[account];
    }

    /**
     * @dev See {IERC20-transfer}.
     *
     * Requirements:
     *
     * - `to` cannot be the zero address.
     * - the caller must have a balance of at least `amount`.
     */
    function transfer(address to, uint256 amount) public virtual override returns (bool) {
        address owner = _msgSender();
        _transfer(owner, to, amount);
        return true;
    }

    /**
     * @dev See {IERC20-allowance}.
     */
    function allowance(address owner, address spender) public view virtual override returns (uint256) {
        return _allowances[owner][spender];
    }

    /**
     * @dev See {IERC20-approve}.
     *
     * NOTE: If `amount` is the maximum `uint256`, the allowance is not updated on
     * `transferFrom`. This is semantically equivalent to an infinite approval.
     *
     * Requirements:
     *
     * - `spender` cannot be the zero address.
     */
    function approve(address spender, uint256 amount) public virtual override returns (bool) {
        address owner = _msgSender();
        _approve(owner, spender, amount);
        return true;
    }

    /**
     * @dev See {IERC20-transferFrom}.
     *
     * Emits an {Approval} event indicating the updated allowance. This is not
     * required by the EIP. See the note at the beginning of {ERC20}.
     *
     * NOTE: Does not update the allowance if the current allowance
     * is the maximum `uint256`.
     *
     * Requirements:
     *
     * - `from` and `to` cannot be the zero address.
     * - `from` must have a balance of at least `amount`.
     * - the caller must have allowance for ``from``'s tokens of at least
     * `amount`.
     */
    function transferFrom(
        address from,
        address to,
        uint256 amount
    ) public virtual override returns (bool) {
        address spender = _msgSender();
        _spendAllowance(from, spender, amount);
        _transfer(from, to, amount);
        return true;
    }

    /**
     * @dev Atomically increases the allowance granted to `spender` by the caller.
     *
     * This is an alternative to {approve} that can be used as a mitigation for
     * problems described in {IERC20-approve}.
     *
     * Emits an {Approval} event indicating the updated allowance.
     *
     * Requirements:
     *
     * - `spender` cannot be the zero address.
     */
    function increaseAllowance(address spender, uint256 addedValue) public virtual returns (bool) {
        address owner = _msgSender();
        _approve(owner, spender, allowance(owner, spender) + addedValue);
        return true;
    }

    /**
     * @dev Atomically decreases the allowance granted to `spender` by the caller.
     *
     * This is an alternative to {approve} that can be used as a mitigation for
     * problems described in {IERC20-approve}.
     *
     * Emits an {Approval} event indicating the updated allowance.
     *
     * Requirements:
     *
     * - `spender` cannot be the zero address.
     * - `spender` must have allowance for the caller of at least
     * `subtractedValue`.
     */
    function decreaseAllowance(address spender, uint256 subtractedValue) public virtual returns (bool) {
        address owner = _msgSender();
        uint256 currentAllowance = allowance(owner, spender);
        require(currentAllowance >= subtractedValue, "ERC20: decreased allowance below zero");
        unchecked {
            _approve(owner, spender, currentAllowance - subtractedValue);
        }

        return true;
    }

    /**
     * @dev Moves `amount` of tokens from `from` to `to`.
     *
     * This internal function is equivalent to {transfer}, and can be used to
     * e.g. implement automatic token fees, slashing mechanisms, etc.
     *
     * Emits a {Transfer} event.
     *
     * Requirements:
     *
     * - `from` cannot be the zero address.
     * - `to` cannot be the zero address.
     * - `from` must have a balance of at least `amount`.
     */
    function _transfer(
        address from,
        address to,
        uint256 amount
    ) internal virtual {
        require(from != address(0), "ERC20: transfer from the zero address");
        require(to != address(0), "ERC20: transfer to the zero address");

        _beforeTokenTransfer(from, to, amount);

        uint256 fromBalance = _balances[from];
        require(fromBalance >= amount, "ERC20: transfer amount exceeds balance");
        unchecked {
            _balances[from] = fromBalance - amount;
            // Overflow not possible: the sum of all balances is capped by totalSupply, and the sum is preserved by
            // decrementing then incrementing.
            _balances[to] += amount;
        }

        emit Transfer(from, to, amount);

        _afterTokenTransfer(from, to, amount);
    }

    /** @dev Creates `amount` tokens and assigns them to `account`, increasing
     * the total supply.
     *
     * Emits a {Transfer} event with `from` set to the zero address.
     *
     * Requirements:
     *
     * - `account` cannot be the zero address.
     */
    function _mint(address account, uint256 amount) internal virtual {
        require(account != address(0), "ERC20: mint to the zero address");

        _beforeTokenTransfer(address(0), account, amount);

        _totalSupply += amount;
        unchecked {
            // Overflow not possible: balance + amount is at most totalSupply + amount, which is checked above.
            _balances[account] += amount;
        }
        emit Transfer(address(0), account, amount);

        _afterTokenTransfer(address(0), account, amount);
    }

    /**
     * @dev Destroys `amount` tokens from `account`, reducing the
     * total supply.
     *
     * Emits a {Transfer} event with `to` set to the zero address.
     *
     * Requirements:
     *
     * - `account` cannot be the zero address.
     * - `account` must have at least `amount` tokens.
     */
    function _burn(address account, uint256 amount) internal virtual {
        require(account != address(0), "ERC20: burn from the zero address");

        _beforeTokenTransfer(account, address(0), amount);

        uint256 accountBalance = _balances[account];
        require(accountBalance >= amount, "ERC20: burn amount exceeds balance");
        unchecked {
            _balances[account] = accountBalance - amount;
            // Overflow not possible: amount <= accountBalance <= totalSupply.
            _totalSupply -= amount;
        }

        emit Transfer(account, address(0), amount);

        _afterTokenTransfer(account, address(0), amount);
    }

    /**
     * @dev Sets `amount` as the allowance of `spender` over the `owner` s tokens.
     *
     * This internal function is equivalent to `approve`, and can be used to
     * e.g. set automatic allowances for certain subsystems, etc.
     *
     * Emits an {Approval} event.
     *
     * Requirements:
     *
     * - `owner` cannot be the zero address.
     * - `spender` cannot be the zero address.
     */
    function _approve(
        address owner,
        address spender,
        uint256 amount
    ) internal virtual {
        require(owner != address(0), "ERC20: approve from the zero address");
        require(spender != address(0), "ERC20: approve to the zero address");

        _allowances[owner][spender] = amount;
        emit Approval(owner, spender, amount);
    }

    /**
     * @dev Updates `owner` s allowance for `spender` based on spent `amount`.
     *
     * Does not update the allowance amount in case of infinite allowance.
     * Revert if not enough allowance is available.
     *
     * Might emit an {Approval} event.
     */
    function _spendAllowance(
        address owner,
        address spender,
        uint256 amount
    ) internal virtual {
        uint256 currentAllowance = allowance(owner, spender);
        if (currentAllowance != type(uint256).max) {
            require(currentAllowance >= amount, "ERC20: insufficient allowance");
            unchecked {
                _approve(owner, spender, currentAllowance - amount);
            }
        }
    }

    /**
     * @dev Hook that is called before any transfer of tokens. This includes
     * minting and burning.
     *
     * Calling conditions:
     *
     * - when `from` and `to` are both non-zero, `amount` of ``from``'s tokens
     * will be transferred to `to`.
     * - when `from` is zero, `amount` tokens will be minted for `to`.
     * - when `to` is zero, `amount` of ``from``'s tokens will be burned.
     * - `from` and `to` are never both zero.
     *
     * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks].
     */
    function _beforeTokenTransfer(
        address from,
        address to,
        uint256 amount
    ) internal virtual {}

    /**
     * @dev Hook that is called after any transfer of tokens. This includes
     * minting and burning.
     *
     * Calling conditions:
     *
     * - when `from` and `to` are both non-zero, `amount` of ``from``'s tokens
     * has been transferred to `to`.
     * - when `from` is zero, `amount` tokens have been minted for `to`.
     * - when `to` is zero, `amount` of ``from``'s tokens have been burned.
     * - `from` and `to` are never both zero.
     *
     * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks].
     */
    function _afterTokenTransfer(
        address from,
        address to,
        uint256 amount
    ) internal virtual {}
}

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

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: address zero is not a valid owner");
        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 {
        _setApprovalForAll(_msgSender(), operator, approved);
    }

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

    /**
     * @dev See {IERC1155-safeTransferFrom}.
     */
    function safeTransferFrom(
        address from,
        address to,
        uint256 id,
        uint256 amount,
        bytes memory data
    ) public virtual override {
        require(
            from == _msgSender() || isApprovedForAll(from, _msgSender()),
            "ERC1155: caller is not token owner or 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: caller is not token owner or 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();
        uint256[] memory ids = _asSingletonArray(id);
        uint256[] memory amounts = _asSingletonArray(amount);

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

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

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

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

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

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

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

        _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 `to`.
     *
     * Emits a {TransferSingle} event.
     *
     * Requirements:
     *
     * - `to` cannot be the zero address.
     * - If `to` refers to a smart contract, it must implement {IERC1155Receiver-onERC1155Received} and return the
     * acceptance magic value.
     */
    function _mint(
        address to,
        uint256 id,
        uint256 amount,
        bytes memory data
    ) internal virtual {
        require(to != address(0), "ERC1155: mint to the zero address");

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

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

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

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

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

    /**
     * @dev xref:ROOT:erc1155.adoc#batch-operations[Batched] version of {_mint}.
     *
     * 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 _mintBatch(
        address to,
        uint256[] memory ids,
        uint256[] memory amounts,
        bytes memory data
    ) internal virtual {
        require(to != address(0), "ERC1155: mint to the zero address");
        require(ids.length == amounts.length, "ERC1155: ids and amounts length mismatch");

        address operator = _msgSender();

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

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

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

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

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

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

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

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

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

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

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

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

        address operator = _msgSender();

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

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

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

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

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

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

    /**
     * @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 `ids` and `amounts` 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 {}

    /**
     * @dev Hook that is called after 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 _afterTokenTransfer(
        address operator,
        address from,
        address to,
        uint256[] memory ids,
        uint256[] memory amounts,
        bytes memory data
    ) internal virtual {}

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

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

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

        return array;
    }
}

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

pragma solidity ^0.8.0;

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

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

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

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

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

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

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

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

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

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

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

pragma solidity ^0.8.0;

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

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

File 6 of 13 : IERC20Metadata.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (token/ERC20/extensions/IERC20Metadata.sol)

pragma solidity ^0.8.0;

import "../IERC20.sol";

/**
 * @dev Interface for the optional metadata functions from the ERC20 standard.
 *
 * _Available since v4.1._
 */
interface IERC20Metadata is IERC20 {
    /**
     * @dev Returns the name of the token.
     */
    function name() external view returns (string memory);

    /**
     * @dev Returns the symbol of the token.
     */
    function symbol() external view returns (string memory);

    /**
     * @dev Returns the decimals places of the token.
     */
    function decimals() external view returns (uint8);
}

File 7 of 13 : IERC20.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.6.0) (token/ERC20/IERC20.sol)

pragma solidity ^0.8.0;

/**
 * @dev Interface of the ERC20 standard as defined in the EIP.
 */
interface IERC20 {
    /**
     * @dev Emitted when `value` tokens are moved from one account (`from`) to
     * another (`to`).
     *
     * Note that `value` may be zero.
     */
    event Transfer(address indexed from, address indexed to, uint256 value);

    /**
     * @dev Emitted when the allowance of a `spender` for an `owner` is set by
     * a call to {approve}. `value` is the new allowance.
     */
    event Approval(address indexed owner, address indexed spender, uint256 value);

    /**
     * @dev Returns the amount of tokens in existence.
     */
    function totalSupply() external view returns (uint256);

    /**
     * @dev Returns the amount of tokens owned by `account`.
     */
    function balanceOf(address account) external view returns (uint256);

    /**
     * @dev Moves `amount` tokens from the caller's account to `to`.
     *
     * Returns a boolean value indicating whether the operation succeeded.
     *
     * Emits a {Transfer} event.
     */
    function transfer(address to, uint256 amount) external returns (bool);

    /**
     * @dev Returns the remaining number of tokens that `spender` will be
     * allowed to spend on behalf of `owner` through {transferFrom}. This is
     * zero by default.
     *
     * This value changes when {approve} or {transferFrom} are called.
     */
    function allowance(address owner, address spender) external view returns (uint256);

    /**
     * @dev Sets `amount` as the allowance of `spender` over the caller's tokens.
     *
     * Returns a boolean value indicating whether the operation succeeded.
     *
     * IMPORTANT: Beware that changing an allowance with this method brings the risk
     * that someone may use both the old and the new allowance by unfortunate
     * transaction ordering. One possible solution to mitigate this race
     * condition is to first reduce the spender's allowance to 0 and set the
     * desired value afterwards:
     * https://github.com/ethereum/EIPs/issues/20#issuecomment-263524729
     *
     * Emits an {Approval} event.
     */
    function approve(address spender, uint256 amount) external returns (bool);

    /**
     * @dev Moves `amount` tokens from `from` to `to` using the
     * allowance mechanism. `amount` is then deducted from the caller's
     * allowance.
     *
     * Returns a boolean value indicating whether the operation succeeded.
     *
     * Emits a {Transfer} event.
     */
    function transferFrom(
        address from,
        address to,
        uint256 amount
    ) external returns (bool);
}

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

pragma solidity ^0.8.0;

import "./IERC165.sol";

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

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

pragma solidity ^0.8.1;

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

        return account.code.length > 0;
    }

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

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

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

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

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

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

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

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

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

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

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

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

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

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

pragma solidity ^0.8.0;

import "../IERC1155.sol";

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

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

pragma solidity ^0.8.0;

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

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

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

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

pragma solidity ^0.8.0;

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

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

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

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

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

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

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

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

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

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

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

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

pragma solidity ^0.8.0;

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

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

Contract Security Audit

Contract ABI

[{"inputs":[{"internalType":"string","name":"mContractURI","type":"string"},{"internalType":"string","name":"_dustURI","type":"string"},{"internalType":"address","name":"_pixieJars","type":"address"},{"internalType":"address","name":"_walletOfOwnerHelper","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"spender","type":"address"},{"indexed":false,"internalType":"uint256","name":"value","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"account","type":"address"},{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":false,"internalType":"bool","name":"approved","type":"bool"}],"name":"ApprovalForAll","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":false,"internalType":"uint256","name":"value","type":"uint256"}],"name":"Transfer","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":false,"internalType":"uint256[]","name":"ids","type":"uint256[]"},{"indexed":false,"internalType":"uint256[]","name":"values","type":"uint256[]"}],"name":"TransferBatch","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":false,"internalType":"uint256","name":"id","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"value","type":"uint256"}],"name":"TransferSingle","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"string","name":"value","type":"string"},{"indexed":true,"internalType":"uint256","name":"id","type":"uint256"}],"name":"URI","type":"event"},{"inputs":[],"name":"INITIAL_CLAIM_PER_PIXIE","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"JAR_OF_DUST_ID","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"JAR_OF_DUST_VALUE","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"spender","type":"address"}],"name":"allowance","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"allowedOperator","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"approve","outputs":[{"internalType":"bool","name":"","type":"bool"}],"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":"account","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address[]","name":"accounts","type":"address[]"},{"internalType":"uint256[]","name":"","type":"uint256[]"}],"name":"balanceOfBatch","outputs":[{"internalType":"uint256[]","name":"","type":"uint256[]"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"burnDust","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256[]","name":"pixieTokenId","type":"uint256[]"}],"name":"claimDust","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"claimedDust","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"contractURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"decimals","outputs":[{"internalType":"uint8","name":"","type":"uint8"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"subtractedValue","type":"uint256"}],"name":"decreaseAllowance","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"dustTokenURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"addedValue","type":"uint256"}],"name":"increaseAllowance","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","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":"pixieTokenId","type":"uint256"}],"name":"isClaimed","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"mintDust","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"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":"_allowed","type":"bool"}],"name":"setAllowed","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"operator","type":"address"},{"internalType":"bool","name":"approved","type":"bool"}],"name":"setApprovalForAll","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_companionJars","type":"address"}],"name":"setCompanionJarsContract","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"newContractURI","type":"string"}],"name":"setContractURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"_dustURI","type":"string"}],"name":"setDustTokenURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_pixieJars","type":"address"}],"name":"setPixieJarsContract","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_walletOfOwnerHelper","type":"address"}],"name":"setWalletOfOwnerHelper","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes4","name":"interfaceId","type":"bytes4"}],"name":"supportsInterface","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"transfer","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"transferFrom","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_owner","type":"address"}],"name":"unclaimedPixiesByOwner","outputs":[{"internalType":"uint256[]","name":"","type":"uint256[]"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"id","type":"uint256"}],"name":"uri","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"}]

60a060405260006080908152600a906200001a908262000286565b503480156200002857600080fd5b5060405162003256380380620032568339810160408190526200004b916200041e565b6040518060400160405280600a815260200169141a5e1a5948111d5cdd60b21b81525060405180604001604052806002815260200161141160f21b81525060405180602001604052806000815250620000aa816200017960201b60201c565b506006620000b9838262000286565b506007620000c8828262000286565b505050620000e5620000df6200018b60201b60201c565b6200018f565b602080546001600160a01b038085166001600160a01b0319928316179092556022805492841692909116919091179055600962000123848262000286565b50600a62000132858262000286565b5060017f6bb7ff708619ba0610cba295a58592e0451dee2622938c8755667688daf3529b6009604051620001679190620004ad565b60405180910390a25050505062000540565b600262000187828262000286565b5050565b3390565b600880546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b634e487b7160e01b600052604160045260246000fd5b600181811c908216806200020c57607f821691505b6020821081036200022d57634e487b7160e01b600052602260045260246000fd5b50919050565b601f8211156200028157600081815260208120601f850160051c810160208610156200025c5750805b601f850160051c820191505b818110156200027d5782815560010162000268565b5050505b505050565b81516001600160401b03811115620002a257620002a2620001e1565b620002ba81620002b38454620001f7565b8462000233565b602080601f831160018114620002f25760008415620002d95750858301515b600019600386901b1c1916600185901b1785556200027d565b600085815260208120601f198616915b82811015620003235788860151825594840194600190910190840162000302565b5085821015620003425787850151600019600388901b60f8161c191681555b5050505050600190811b01905550565b600082601f8301126200036457600080fd5b81516001600160401b0380821115620003815762000381620001e1565b604051601f8301601f19908116603f01168101908282118183101715620003ac57620003ac620001e1565b81604052838152602092508683858801011115620003c957600080fd5b600091505b83821015620003ed5785820183015181830184015290820190620003ce565b600093810190920192909252949350505050565b80516001600160a01b03811681146200041957600080fd5b919050565b600080600080608085870312156200043557600080fd5b84516001600160401b03808211156200044d57600080fd5b6200045b8883890162000352565b955060208701519150808211156200047257600080fd5b50620004818782880162000352565b935050620004926040860162000401565b9150620004a26060860162000401565b905092959194509250565b6000602080835260008454620004c381620001f7565b80848701526040600180841660008114620004e75760018114620005025762000532565b60ff1985168984015283151560051b89018301955062000532565b896000528660002060005b858110156200052a5781548b82018601529083019088016200050d565b8a0184019650505b509398975050505050505050565b612d0680620005506000396000f3fe608060405234801561001057600080fd5b50600436106102475760003560e01c8063705071511161013b578063a457c2d7116100b8578063eb896ae61161007c578063eb896ae61461051f578063f242432a14610532578063f2fde38b14610545578063f4b954ef14610558578063fc1be7d51461056057600080fd5b8063a457c2d7146104a2578063a9059cbb146104b5578063dd62ed3e146104c8578063e8a3d485146104db578063e985e9c5146104e357600080fd5b80638da5cb5b116100ff5780638da5cb5b14610446578063938e3d7b1461046157806395d89b41146104745780639e34070f1461047c578063a22cb4651461048f57600080fd5b806370507151146103e757806370a08231146103fa578063715018a6146104235780637b7bfa731461042b57806388cb2d051461043357600080fd5b80632eb2c2d6116101c95780634494b3db1161018d5780634494b3db1461037e5780634697f05d146103915780634e1273f4146103a45780635119449d146103c45780635b8be606146103d457600080fd5b80632eb2c2d614610326578063313ce5671461033957806339509351146103485780633cb386a41461035b5780633f264ce91461036b57600080fd5b806315145f191161021057806315145f19146102d0578063167986cc146102e557806318160ddd146102f857806323b872dd146103005780632d18e5bd1461031357600080fd5b8062fdd58e1461024c57806301ffc9a71461027257806306fdde0314610295578063095ea7b3146102aa5780630e89341c146102bd575b600080fd5b61025f61025a36600461212f565b610583565b6040519081526020015b60405180910390f35b61028561028036600461215b565b610600565b6040519015158152602001610269565b61029d610650565b604051610269919061218c565b6102856102b836600461212f565b6106e2565b61029d6102cb3660046121da565b6106fa565b6102e36102de3660046121f3565b61079b565b005b6102e36102f336600461212f565b6107c5565b60055461025f565b61028561030e366004612210565b610820565b6102e361032136600461212f565b610844565b6102e361033436600461239c565b61089b565b60405160128152602001610269565b61028561035636600461212f565b6108e7565b61025f68056bc75e2d6310000081565b6102e36103793660046121f3565b610909565b6102e361038c366004612449565b610933565b6102e361039f36600461249f565b610985565b6103b76103b23660046124d8565b6109b8565b6040516102699190612599565b61025f6802b5e3af16b188000081565b61025f6103e23660046121da565b610a94565b6103b76103f53660046121f3565b610aab565b61025f6104083660046121f3565b6001600160a01b031660009081526003602052604090205490565b6102e3611166565b61029d61117a565b6102e36104413660046125dd565b611208565b6008546040516001600160a01b039091168152602001610269565b6102e361046f366004612651565b611540565b61029d61155a565b61028561048a3660046121da565b611569565b6102e361049d36600461249f565b6115b5565b6102856104b036600461212f565b6115c0565b6102856104c336600461212f565b61163b565b61025f6104d63660046126b0565b611649565b61029d611674565b6102856104f13660046126b0565b6001600160a01b03918216600090815260016020908152604080832093909416825291909152205460ff1690565b6102e361052d3660046121f3565b611683565b6102e36105403660046126de565b6116ad565b6102e36105533660046121f3565b6116f2565b61025f600181565b61028561056e3660046121f3565b601f6020526000908152604090205460ff1681565b6000600182146105ca5760405162461bcd60e51b815260206004820152600d60248201526c24a72b20a624a2102a27a5a2a760991b60448201526064015b60405180910390fd5b6001600160a01b0383166000908152600360205260409020546105f668056bc75e2d6310000082612772565b9150505b92915050565b60006001600160e01b03198216636cdb3d1360e11b148061063157506001600160e01b031982166303a24d0760e21b145b806105fa57506301ffc9a760e01b6001600160e01b03198316146105fa565b60606006805461065f90612786565b80601f016020809104026020016040519081016040528092919081815260200182805461068b90612786565b80156106d85780601f106106ad576101008083540402835291602001916106d8565b820191906000526020600020905b8154815290600101906020018083116106bb57829003601f168201915b5050505050905090565b6000336106f081858561176b565b5060019392505050565b60606001821461070957600080fd5b6009805461071690612786565b80601f016020809104026020016040519081016040528092919081815260200182805461074290612786565b801561078f5780601f106107645761010080835404028352916020019161078f565b820191906000526020600020905b81548152906001019060200180831161077257829003601f168201915b50505050509050919050565b6107a3611890565b602180546001600160a01b0319166001600160a01b0392909216919091179055565b336000908152601f602052604090205460ff166108125760405162461bcd60e51b815260206004820152600b60248201526a1393d50810531313d5d15160aa1b60448201526064016105c1565b61081c82826118ea565b5050565b60003361082e858285611a25565b610839858585611a9f565b506001949350505050565b336000908152601f602052604090205460ff166108915760405162461bcd60e51b815260206004820152600b60248201526a1393d50810531313d5d15160aa1b60448201526064016105c1565b61081c8282611c50565b6001600160a01b0385163314806108b757506108b785336104f1565b6108d35760405162461bcd60e51b81526004016105c1906127c0565b6108e08585858585611d19565b5050505050565b6000336106f08185856108fa8383611649565b610904919061280e565b61176b565b610911611890565b602280546001600160a01b0319166001600160a01b0392909216919091179055565b61093b611890565b60096109478282612867565b5060017f6bb7ff708619ba0610cba295a58592e0451dee2622938c8755667688daf3529b600960405161097a9190612926565b60405180910390a250565b61098d611890565b6001600160a01b03919091166000908152601f60205260409020805460ff1916911515919091179055565b6060600083516001600160401b038111156109d5576109d5612251565b6040519080825280602002602001820160405280156109fe578160200160208202803683370190505b5090506000805b8551811015610a8a57610a46868281518110610a2357610a236129b1565b60200260200101516001600160a01b031660009081526003602052604090205490565b9150610a5b68056bc75e2d6310000083612772565b838281518110610a6d57610a6d6129b1565b602090810291909101015280610a82816129c7565b915050610a05565b5090949350505050565b600b8160148110610aa457600080fd5b0154905081565b6020546040516370a0823160e01b81526001600160a01b0383811660048301526060926000929116906370a0823190602401602060405180830381865afa158015610afa573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610b1e91906129e0565b6021546040516370a0823160e01b81526001600160a01b038681166004830152929350600092909116906370a0823190602401602060405180830381865afa158015610b6e573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610b9291906129e0565b905081158015610ba0575080155b15610be05760405162461bcd60e51b815260206004820152601060248201526f2737903834bc34b2b99037bbb732b21760811b60448201526064016105c1565b6000826001600160401b03811115610bfa57610bfa612251565b604051908082528060200260200182016040528015610c23578160200160208202803683370190505b5060205460405162438b6360e81b81526001600160a01b03888116600483015292935091169063438b630090602401600060405180830381865afa158015610c6f573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f19168201604052610c9791908101906129f9565b90506000805b8251811015610d5257306001600160a01b0316639e34070f848381518110610cc757610cc76129b1565b60200260200101516040518263ffffffff1660e01b8152600401610ced91815260200190565b602060405180830381865afa158015610d0a573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610d2e9190612a89565b610d405781610d3c816129c7565b9250505b80610d4a816129c7565b915050610c9d565b506000836001600160401b03811115610d6d57610d6d612251565b604051908082528060200260200182016040528015610d96578160200160208202803683370190505b5060225460215460405163542f84fb60e11b81526001600160a01b0391821660048201528a82166024820152600160448201526113886064820152929350169063a85f09f690608401600060405180830381865afa158015610dfc573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f19168201604052610e2491908101906129f9565b905060005b8151811015610ede57306001600160a01b0316639e34070f838381518110610e5357610e536129b1565b60200260200101516040518263ffffffff1660e01b8152600401610e7991815260200190565b602060405180830381865afa158015610e96573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610eba9190612a89565b610ecc5782610ec8816129c7565b9350505b80610ed6816129c7565b915050610e29565b5081600003610f245760405162461bcd60e51b81526020600482015260126024820152712737903ab731b630b4b6b2b210323ab9ba1760711b60448201526064016105c1565b6000826001600160401b03811115610f3e57610f3e612251565b604051908082528060200260200182016040528015610f67578160200160208202803683370190505b5090506000805b855181101561106157306001600160a01b0316639e34070f878381518110610f9857610f986129b1565b60200260200101516040518263ffffffff1660e01b8152600401610fbe91815260200190565b602060405180830381865afa158015610fdb573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610fff9190612a89565b61104f57858181518110611015576110156129b1565b602002602001015183838151811061102f5761102f6129b1565b602090810291909101015281611044816129c7565b925050848214611061575b80611059816129c7565b915050610f6e565b5060005b835181101561115857306001600160a01b0316639e34070f85838151811061108f5761108f6129b1565b60200260200101516040518263ffffffff1660e01b81526004016110b591815260200190565b602060405180830381865afa1580156110d2573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906110f69190612a89565b6111465783818151811061110c5761110c6129b1565b6020026020010151838381518110611126576111266129b1565b60209081029190910101528161113b816129c7565b925050848214611158575b80611150816129c7565b915050611065565b509098975050505050505050565b61116e611890565b6111786000611d56565b565b6009805461118790612786565b80601f01602080910402602001604051908101604052809291908181526020018280546111b390612786565b80156112005780601f106111d557610100808354040283529160200191611200565b820191906000526020600020905b8154815290600101906020018083116111e357829003601f168201915b505050505081565b8061121257600080fd5b6040805160148082526102a0820190925260009160208201610280803683370190505090506000806000805b858110156114995760205433906001600160a01b0316636352211e89898581811061126b5761126b6129b1565b905060200201356040518263ffffffff1660e01b815260040161129091815260200190565b602060405180830381865afa1580156112ad573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906112d19190612aa6565b6001600160a01b03161480611377575060215433906001600160a01b0316639ee4af10898985818110611306576113066129b1565b905060200201356040518263ffffffff1660e01b815260040161132b91815260200190565b602060405180830381865afa158015611348573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061136c9190612aa6565b6001600160a01b0316145b1561148757610100878783818110611391576113916129b1565b905060200201356113a29190612772565b92506101008787838181106113b9576113b96129b1565b905060200201356113ca9190612ac3565b91506113d7826002612bbb565b600b84601481106113ea576113ea6129b1565b01541615801561141f5750611400826002612bbb565b858481518110611412576114126129b1565b6020026020010151166000145b15611487576114376802b5e3af16b18800008561280e565b9350611444826002612bbb565b858481518110611456576114566129b1565b6020026020010151611468919061280e565b85848151811061147a5761147a6129b1565b6020026020010181815250505b80611491816129c7565b91505061123e565b50600083116114a757600080fd5b60005b845181101561152d5760008582815181106114c7576114c76129b1565b6020026020010151111561151b578481815181106114e7576114e76129b1565b6020026020010151600b8260148110611502576115026129b1565b015417600b8260148110611518576115186129b1565b01555b80611525816129c7565b9150506114aa565b506115383384611c50565b505050505050565b611548611890565b600a611555828483612bc7565b505050565b60606007805461065f90612786565b60008061157861010084612772565b9050600061158861010085612ac3565b9050611595816002612bbb565b600b83601481106115a8576115a86129b1565b0154161515949350505050565b61081c338383611da8565b600033816115ce8286611649565b90508381101561162e5760405162461bcd60e51b815260206004820152602560248201527f45524332303a2064656372656173656420616c6c6f77616e63652062656c6f77604482015264207a65726f60d81b60648201526084016105c1565b610839828686840361176b565b6000336106f0818585611a9f565b6001600160a01b03918216600090815260046020908152604080832093909416825291909152205490565b6060600a805461065f90612786565b61168b611890565b602080546001600160a01b0319166001600160a01b0392909216919091179055565b6001600160a01b0385163314806116c957506116c985336104f1565b6116e55760405162461bcd60e51b81526004016105c1906127c0565b6108e08585858585611e80565b6116fa611890565b6001600160a01b03811661175f5760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b60648201526084016105c1565b61176881611d56565b50565b6001600160a01b0383166117cd5760405162461bcd60e51b8152602060048201526024808201527f45524332303a20617070726f76652066726f6d20746865207a65726f206164646044820152637265737360e01b60648201526084016105c1565b6001600160a01b03821661182e5760405162461bcd60e51b815260206004820152602260248201527f45524332303a20617070726f766520746f20746865207a65726f206164647265604482015261737360f01b60648201526084016105c1565b6001600160a01b0383811660008181526004602090815260408083209487168084529482529182902085905590518481527f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92591015b60405180910390a3505050565b6008546001600160a01b031633146111785760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064016105c1565b6001600160a01b03821661194a5760405162461bcd60e51b815260206004820152602160248201527f45524332303a206275726e2066726f6d20746865207a65726f206164647265736044820152607360f81b60648201526084016105c1565b6001600160a01b038216600090815260036020526040902054818110156119be5760405162461bcd60e51b815260206004820152602260248201527f45524332303a206275726e20616d6f756e7420657863656564732062616c616e604482015261636560f01b60648201526084016105c1565b6001600160a01b03831660008181526003602090815260408083208686039055600580548790039055518581529192917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef910160405180910390a361155583600084611eaf565b6000611a318484611649565b90506000198114611a995781811015611a8c5760405162461bcd60e51b815260206004820152601d60248201527f45524332303a20696e73756666696369656e7420616c6c6f77616e636500000060448201526064016105c1565b611a99848484840361176b565b50505050565b6001600160a01b038316611b035760405162461bcd60e51b815260206004820152602560248201527f45524332303a207472616e736665722066726f6d20746865207a65726f206164604482015264647265737360d81b60648201526084016105c1565b6001600160a01b038216611b655760405162461bcd60e51b815260206004820152602360248201527f45524332303a207472616e7366657220746f20746865207a65726f206164647260448201526265737360e81b60648201526084016105c1565b6001600160a01b03831660009081526003602052604090205481811015611bdd5760405162461bcd60e51b815260206004820152602660248201527f45524332303a207472616e7366657220616d6f756e7420657863656564732062604482015265616c616e636560d01b60648201526084016105c1565b6001600160a01b0380851660008181526003602052604080822086860390559286168082529083902080548601905591517fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef90611c3d9086815260200190565b60405180910390a3611a99848484611eaf565b6001600160a01b038216611ca65760405162461bcd60e51b815260206004820152601f60248201527f45524332303a206d696e7420746f20746865207a65726f20616464726573730060448201526064016105c1565b8060056000828254611cb8919061280e565b90915550506001600160a01b0382166000818152600360209081526040808320805486019055518481527fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef910160405180910390a361081c60008383611eaf565b60405162461bcd60e51b81526020600482015260126024820152714e4f204241544348205452414e534645525360701b60448201526064016105c1565b600880546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b816001600160a01b0316836001600160a01b031603611e1b5760405162461bcd60e51b815260206004820152602960248201527f455243313135353a2073657474696e6720617070726f76616c20737461747573604482015268103337b91039b2b63360b91b60648201526084016105c1565b6001600160a01b03838116600081815260016020908152604080832094871680845294825291829020805460ff191686151590811790915591519182527f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c319101611883565b60018314611e8d57600080fd5b6000611ea268056bc75e2d6310000084612c86565b9050611538868683611a9f565b6001600160a01b0383811660009081526003602052604080822054928516825281205490611ee668056bc75e2d6310000084612772565b90506000611efd68056bc75e2d6310000084612772565b9050600068056bc75e2d63100000611f15878761280e565b611f1f9190612772565b90506000868510611f4b5768056bc75e2d63100000611f3e8887612c9d565b611f489190612772565b90505b6000611f578285612c9d565b90506000611f658685612c9d565b9050808203611fcf578115611fca57896001600160a01b03168b6001600160a01b0316611f8f3390565b6001600160a01b0316600080516020612cb1833981519152600186604051611fc1929190918252602082015260400190565b60405180910390a45b61210d565b8082111561207057801561203357896001600160a01b03168b6001600160a01b0316611ff83390565b6001600160a01b0316600080516020612cb183398151915260018560405161202a929190918252602082015260400190565b60405180910390a45b6001600160a01b038a16600033600080516020612cb1833981519152600161205b8688612c9d565b60408051928352602083019190915201611fc1565b81156120cc57896001600160a01b03168b6001600160a01b03166120913390565b6001600160a01b0316600080516020612cb18339815191526001866040516120c3929190918252602082015260400190565b60405180910390a45b60006001600160a01b038c1633600080516020612cb183398151915260016120f48787612c9d565b6040805192835260208301919091520160405180910390a45b5050505050505050505050565b6001600160a01b038116811461176857600080fd5b6000806040838503121561214257600080fd5b823561214d8161211a565b946020939093013593505050565b60006020828403121561216d57600080fd5b81356001600160e01b03198116811461218557600080fd5b9392505050565b600060208083528351808285015260005b818110156121b95785810183015185820160400152820161219d565b506000604082860101526040601f19601f8301168501019250505092915050565b6000602082840312156121ec57600080fd5b5035919050565b60006020828403121561220557600080fd5b81356121858161211a565b60008060006060848603121561222557600080fd5b83356122308161211a565b925060208401356122408161211a565b929592945050506040919091013590565b634e487b7160e01b600052604160045260246000fd5b604051601f8201601f191681016001600160401b038111828210171561228f5761228f612251565b604052919050565b60006001600160401b038211156122b0576122b0612251565b5060051b60200190565b600082601f8301126122cb57600080fd5b813560206122e06122db83612297565b612267565b82815260059290921b840181019181810190868411156122ff57600080fd5b8286015b8481101561231a5780358352918301918301612303565b509695505050505050565b60006001600160401b0383111561233e5761233e612251565b612351601f8401601f1916602001612267565b905082815283838301111561236557600080fd5b828260208301376000602084830101529392505050565b600082601f83011261238d57600080fd5b61218583833560208501612325565b600080600080600060a086880312156123b457600080fd5b85356123bf8161211a565b945060208601356123cf8161211a565b935060408601356001600160401b03808211156123eb57600080fd5b6123f789838a016122ba565b9450606088013591508082111561240d57600080fd5b61241989838a016122ba565b9350608088013591508082111561242f57600080fd5b5061243c8882890161237c565b9150509295509295909350565b60006020828403121561245b57600080fd5b81356001600160401b0381111561247157600080fd5b8201601f8101841361248257600080fd5b6105f684823560208401612325565b801515811461176857600080fd5b600080604083850312156124b257600080fd5b82356124bd8161211a565b915060208301356124cd81612491565b809150509250929050565b600080604083850312156124eb57600080fd5b82356001600160401b038082111561250257600080fd5b818501915085601f83011261251657600080fd5b813560206125266122db83612297565b82815260059290921b8401810191818101908984111561254557600080fd5b948201945b8386101561256c57853561255d8161211a565b8252948201949082019061254a565b9650508601359250508082111561258257600080fd5b5061258f858286016122ba565b9150509250929050565b6020808252825182820181905260009190848201906040850190845b818110156125d1578351835292840192918401916001016125b5565b50909695505050505050565b600080602083850312156125f057600080fd5b82356001600160401b038082111561260757600080fd5b818501915085601f83011261261b57600080fd5b81358181111561262a57600080fd5b8660208260051b850101111561263f57600080fd5b60209290920196919550909350505050565b6000806020838503121561266457600080fd5b82356001600160401b038082111561267b57600080fd5b818501915085601f83011261268f57600080fd5b81358181111561269e57600080fd5b86602082850101111561263f57600080fd5b600080604083850312156126c357600080fd5b82356126ce8161211a565b915060208301356124cd8161211a565b600080600080600060a086880312156126f657600080fd5b85356127018161211a565b945060208601356127118161211a565b9350604086013592506060860135915060808601356001600160401b0381111561273a57600080fd5b61243c8882890161237c565b634e487b7160e01b600052601260045260246000fd5b634e487b7160e01b600052601160045260246000fd5b60008261278157612781612746565b500490565b600181811c9082168061279a57607f821691505b6020821081036127ba57634e487b7160e01b600052602260045260246000fd5b50919050565b6020808252602e908201527f455243313135353a2063616c6c6572206973206e6f7420746f6b656e206f776e60408201526d195c881bdc88185c1c1c9bdd995960921b606082015260800190565b808201808211156105fa576105fa61275c565b601f82111561155557600081815260208120601f850160051c810160208610156128485750805b601f850160051c820191505b8181101561153857828155600101612854565b81516001600160401b0381111561288057612880612251565b6128948161288e8454612786565b84612821565b602080601f8311600181146128c957600084156128b15750858301515b600019600386901b1c1916600185901b178555611538565b600085815260208120601f198616915b828110156128f8578886015182559484019460019091019084016128d9565b50858210156129165787850151600019600388901b60f8161c191681555b5050505050600190811b01905550565b600060208083526000845461293a81612786565b8084870152604060018084166000811461295b5760018114612975576129a3565b60ff1985168984015283151560051b8901830195506129a3565b896000528660002060005b8581101561299b5781548b8201860152908301908801612980565b8a0184019650505b509398975050505050505050565b634e487b7160e01b600052603260045260246000fd5b6000600182016129d9576129d961275c565b5060010190565b6000602082840312156129f257600080fd5b5051919050565b60006020808385031215612a0c57600080fd5b82516001600160401b03811115612a2257600080fd5b8301601f81018513612a3357600080fd5b8051612a416122db82612297565b81815260059190911b82018301908381019087831115612a6057600080fd5b928401925b82841015612a7e57835182529284019290840190612a65565b979650505050505050565b600060208284031215612a9b57600080fd5b815161218581612491565b600060208284031215612ab857600080fd5b81516121858161211a565b600082612ad257612ad2612746565b500690565b600181815b80851115612b12578160001904821115612af857612af861275c565b80851615612b0557918102915b93841c9390800290612adc565b509250929050565b600082612b29575060016105fa565b81612b36575060006105fa565b8160018114612b4c5760028114612b5657612b72565b60019150506105fa565b60ff841115612b6757612b6761275c565b50506001821b6105fa565b5060208310610133831016604e8410600b8410161715612b95575081810a6105fa565b612b9f8383612ad7565b8060001904821115612bb357612bb361275c565b029392505050565b60006121858383612b1a565b6001600160401b03831115612bde57612bde612251565b612bf283612bec8354612786565b83612821565b6000601f841160018114612c265760008515612c0e5750838201355b600019600387901b1c1916600186901b1783556108e0565b600083815260209020601f19861690835b82811015612c575786850135825560209485019460019092019101612c37565b5086821015612c745760001960f88860031b161c19848701351681555b505060018560011b0183555050505050565b80820281158282048414176105fa576105fa61275c565b818103818111156105fa576105fa61275c56fec3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f62a26469706673582212206eae48ce1c6de4af889c54a569caac33c966c2573040cfbccf21a47eb47910f764736f6c63430008110033000000000000000000000000000000000000000000000000000000000000008000000000000000000000000000000000000000000000000000000000000000e0000000000000000000000000ea508034fcc8eeff24bf43effe42621008359a2e000000000000000000000000ed335ace9bf98b6805551af4cd8549b4c682e588000000000000000000000000000000000000000000000000000000000000002e68747470733a2f2f70697869656a6172732e6170702f636f6e7472616374732f7069786965647573742e6a736f6e0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000042697066733a2f2f6261666b72656963337565796778626c70706e3378746d727869693535666d696467676366346f7868747070636a71346d3777626f35363478756d000000000000000000000000000000000000000000000000000000000000

Deployed Bytecode

0x608060405234801561001057600080fd5b50600436106102475760003560e01c8063705071511161013b578063a457c2d7116100b8578063eb896ae61161007c578063eb896ae61461051f578063f242432a14610532578063f2fde38b14610545578063f4b954ef14610558578063fc1be7d51461056057600080fd5b8063a457c2d7146104a2578063a9059cbb146104b5578063dd62ed3e146104c8578063e8a3d485146104db578063e985e9c5146104e357600080fd5b80638da5cb5b116100ff5780638da5cb5b14610446578063938e3d7b1461046157806395d89b41146104745780639e34070f1461047c578063a22cb4651461048f57600080fd5b806370507151146103e757806370a08231146103fa578063715018a6146104235780637b7bfa731461042b57806388cb2d051461043357600080fd5b80632eb2c2d6116101c95780634494b3db1161018d5780634494b3db1461037e5780634697f05d146103915780634e1273f4146103a45780635119449d146103c45780635b8be606146103d457600080fd5b80632eb2c2d614610326578063313ce5671461033957806339509351146103485780633cb386a41461035b5780633f264ce91461036b57600080fd5b806315145f191161021057806315145f19146102d0578063167986cc146102e557806318160ddd146102f857806323b872dd146103005780632d18e5bd1461031357600080fd5b8062fdd58e1461024c57806301ffc9a71461027257806306fdde0314610295578063095ea7b3146102aa5780630e89341c146102bd575b600080fd5b61025f61025a36600461212f565b610583565b6040519081526020015b60405180910390f35b61028561028036600461215b565b610600565b6040519015158152602001610269565b61029d610650565b604051610269919061218c565b6102856102b836600461212f565b6106e2565b61029d6102cb3660046121da565b6106fa565b6102e36102de3660046121f3565b61079b565b005b6102e36102f336600461212f565b6107c5565b60055461025f565b61028561030e366004612210565b610820565b6102e361032136600461212f565b610844565b6102e361033436600461239c565b61089b565b60405160128152602001610269565b61028561035636600461212f565b6108e7565b61025f68056bc75e2d6310000081565b6102e36103793660046121f3565b610909565b6102e361038c366004612449565b610933565b6102e361039f36600461249f565b610985565b6103b76103b23660046124d8565b6109b8565b6040516102699190612599565b61025f6802b5e3af16b188000081565b61025f6103e23660046121da565b610a94565b6103b76103f53660046121f3565b610aab565b61025f6104083660046121f3565b6001600160a01b031660009081526003602052604090205490565b6102e3611166565b61029d61117a565b6102e36104413660046125dd565b611208565b6008546040516001600160a01b039091168152602001610269565b6102e361046f366004612651565b611540565b61029d61155a565b61028561048a3660046121da565b611569565b6102e361049d36600461249f565b6115b5565b6102856104b036600461212f565b6115c0565b6102856104c336600461212f565b61163b565b61025f6104d63660046126b0565b611649565b61029d611674565b6102856104f13660046126b0565b6001600160a01b03918216600090815260016020908152604080832093909416825291909152205460ff1690565b6102e361052d3660046121f3565b611683565b6102e36105403660046126de565b6116ad565b6102e36105533660046121f3565b6116f2565b61025f600181565b61028561056e3660046121f3565b601f6020526000908152604090205460ff1681565b6000600182146105ca5760405162461bcd60e51b815260206004820152600d60248201526c24a72b20a624a2102a27a5a2a760991b60448201526064015b60405180910390fd5b6001600160a01b0383166000908152600360205260409020546105f668056bc75e2d6310000082612772565b9150505b92915050565b60006001600160e01b03198216636cdb3d1360e11b148061063157506001600160e01b031982166303a24d0760e21b145b806105fa57506301ffc9a760e01b6001600160e01b03198316146105fa565b60606006805461065f90612786565b80601f016020809104026020016040519081016040528092919081815260200182805461068b90612786565b80156106d85780601f106106ad576101008083540402835291602001916106d8565b820191906000526020600020905b8154815290600101906020018083116106bb57829003601f168201915b5050505050905090565b6000336106f081858561176b565b5060019392505050565b60606001821461070957600080fd5b6009805461071690612786565b80601f016020809104026020016040519081016040528092919081815260200182805461074290612786565b801561078f5780601f106107645761010080835404028352916020019161078f565b820191906000526020600020905b81548152906001019060200180831161077257829003601f168201915b50505050509050919050565b6107a3611890565b602180546001600160a01b0319166001600160a01b0392909216919091179055565b336000908152601f602052604090205460ff166108125760405162461bcd60e51b815260206004820152600b60248201526a1393d50810531313d5d15160aa1b60448201526064016105c1565b61081c82826118ea565b5050565b60003361082e858285611a25565b610839858585611a9f565b506001949350505050565b336000908152601f602052604090205460ff166108915760405162461bcd60e51b815260206004820152600b60248201526a1393d50810531313d5d15160aa1b60448201526064016105c1565b61081c8282611c50565b6001600160a01b0385163314806108b757506108b785336104f1565b6108d35760405162461bcd60e51b81526004016105c1906127c0565b6108e08585858585611d19565b5050505050565b6000336106f08185856108fa8383611649565b610904919061280e565b61176b565b610911611890565b602280546001600160a01b0319166001600160a01b0392909216919091179055565b61093b611890565b60096109478282612867565b5060017f6bb7ff708619ba0610cba295a58592e0451dee2622938c8755667688daf3529b600960405161097a9190612926565b60405180910390a250565b61098d611890565b6001600160a01b03919091166000908152601f60205260409020805460ff1916911515919091179055565b6060600083516001600160401b038111156109d5576109d5612251565b6040519080825280602002602001820160405280156109fe578160200160208202803683370190505b5090506000805b8551811015610a8a57610a46868281518110610a2357610a236129b1565b60200260200101516001600160a01b031660009081526003602052604090205490565b9150610a5b68056bc75e2d6310000083612772565b838281518110610a6d57610a6d6129b1565b602090810291909101015280610a82816129c7565b915050610a05565b5090949350505050565b600b8160148110610aa457600080fd5b0154905081565b6020546040516370a0823160e01b81526001600160a01b0383811660048301526060926000929116906370a0823190602401602060405180830381865afa158015610afa573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610b1e91906129e0565b6021546040516370a0823160e01b81526001600160a01b038681166004830152929350600092909116906370a0823190602401602060405180830381865afa158015610b6e573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610b9291906129e0565b905081158015610ba0575080155b15610be05760405162461bcd60e51b815260206004820152601060248201526f2737903834bc34b2b99037bbb732b21760811b60448201526064016105c1565b6000826001600160401b03811115610bfa57610bfa612251565b604051908082528060200260200182016040528015610c23578160200160208202803683370190505b5060205460405162438b6360e81b81526001600160a01b03888116600483015292935091169063438b630090602401600060405180830381865afa158015610c6f573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f19168201604052610c9791908101906129f9565b90506000805b8251811015610d5257306001600160a01b0316639e34070f848381518110610cc757610cc76129b1565b60200260200101516040518263ffffffff1660e01b8152600401610ced91815260200190565b602060405180830381865afa158015610d0a573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610d2e9190612a89565b610d405781610d3c816129c7565b9250505b80610d4a816129c7565b915050610c9d565b506000836001600160401b03811115610d6d57610d6d612251565b604051908082528060200260200182016040528015610d96578160200160208202803683370190505b5060225460215460405163542f84fb60e11b81526001600160a01b0391821660048201528a82166024820152600160448201526113886064820152929350169063a85f09f690608401600060405180830381865afa158015610dfc573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f19168201604052610e2491908101906129f9565b905060005b8151811015610ede57306001600160a01b0316639e34070f838381518110610e5357610e536129b1565b60200260200101516040518263ffffffff1660e01b8152600401610e7991815260200190565b602060405180830381865afa158015610e96573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610eba9190612a89565b610ecc5782610ec8816129c7565b9350505b80610ed6816129c7565b915050610e29565b5081600003610f245760405162461bcd60e51b81526020600482015260126024820152712737903ab731b630b4b6b2b210323ab9ba1760711b60448201526064016105c1565b6000826001600160401b03811115610f3e57610f3e612251565b604051908082528060200260200182016040528015610f67578160200160208202803683370190505b5090506000805b855181101561106157306001600160a01b0316639e34070f878381518110610f9857610f986129b1565b60200260200101516040518263ffffffff1660e01b8152600401610fbe91815260200190565b602060405180830381865afa158015610fdb573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610fff9190612a89565b61104f57858181518110611015576110156129b1565b602002602001015183838151811061102f5761102f6129b1565b602090810291909101015281611044816129c7565b925050848214611061575b80611059816129c7565b915050610f6e565b5060005b835181101561115857306001600160a01b0316639e34070f85838151811061108f5761108f6129b1565b60200260200101516040518263ffffffff1660e01b81526004016110b591815260200190565b602060405180830381865afa1580156110d2573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906110f69190612a89565b6111465783818151811061110c5761110c6129b1565b6020026020010151838381518110611126576111266129b1565b60209081029190910101528161113b816129c7565b925050848214611158575b80611150816129c7565b915050611065565b509098975050505050505050565b61116e611890565b6111786000611d56565b565b6009805461118790612786565b80601f01602080910402602001604051908101604052809291908181526020018280546111b390612786565b80156112005780601f106111d557610100808354040283529160200191611200565b820191906000526020600020905b8154815290600101906020018083116111e357829003601f168201915b505050505081565b8061121257600080fd5b6040805160148082526102a0820190925260009160208201610280803683370190505090506000806000805b858110156114995760205433906001600160a01b0316636352211e89898581811061126b5761126b6129b1565b905060200201356040518263ffffffff1660e01b815260040161129091815260200190565b602060405180830381865afa1580156112ad573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906112d19190612aa6565b6001600160a01b03161480611377575060215433906001600160a01b0316639ee4af10898985818110611306576113066129b1565b905060200201356040518263ffffffff1660e01b815260040161132b91815260200190565b602060405180830381865afa158015611348573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061136c9190612aa6565b6001600160a01b0316145b1561148757610100878783818110611391576113916129b1565b905060200201356113a29190612772565b92506101008787838181106113b9576113b96129b1565b905060200201356113ca9190612ac3565b91506113d7826002612bbb565b600b84601481106113ea576113ea6129b1565b01541615801561141f5750611400826002612bbb565b858481518110611412576114126129b1565b6020026020010151166000145b15611487576114376802b5e3af16b18800008561280e565b9350611444826002612bbb565b858481518110611456576114566129b1565b6020026020010151611468919061280e565b85848151811061147a5761147a6129b1565b6020026020010181815250505b80611491816129c7565b91505061123e565b50600083116114a757600080fd5b60005b845181101561152d5760008582815181106114c7576114c76129b1565b6020026020010151111561151b578481815181106114e7576114e76129b1565b6020026020010151600b8260148110611502576115026129b1565b015417600b8260148110611518576115186129b1565b01555b80611525816129c7565b9150506114aa565b506115383384611c50565b505050505050565b611548611890565b600a611555828483612bc7565b505050565b60606007805461065f90612786565b60008061157861010084612772565b9050600061158861010085612ac3565b9050611595816002612bbb565b600b83601481106115a8576115a86129b1565b0154161515949350505050565b61081c338383611da8565b600033816115ce8286611649565b90508381101561162e5760405162461bcd60e51b815260206004820152602560248201527f45524332303a2064656372656173656420616c6c6f77616e63652062656c6f77604482015264207a65726f60d81b60648201526084016105c1565b610839828686840361176b565b6000336106f0818585611a9f565b6001600160a01b03918216600090815260046020908152604080832093909416825291909152205490565b6060600a805461065f90612786565b61168b611890565b602080546001600160a01b0319166001600160a01b0392909216919091179055565b6001600160a01b0385163314806116c957506116c985336104f1565b6116e55760405162461bcd60e51b81526004016105c1906127c0565b6108e08585858585611e80565b6116fa611890565b6001600160a01b03811661175f5760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b60648201526084016105c1565b61176881611d56565b50565b6001600160a01b0383166117cd5760405162461bcd60e51b8152602060048201526024808201527f45524332303a20617070726f76652066726f6d20746865207a65726f206164646044820152637265737360e01b60648201526084016105c1565b6001600160a01b03821661182e5760405162461bcd60e51b815260206004820152602260248201527f45524332303a20617070726f766520746f20746865207a65726f206164647265604482015261737360f01b60648201526084016105c1565b6001600160a01b0383811660008181526004602090815260408083209487168084529482529182902085905590518481527f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92591015b60405180910390a3505050565b6008546001600160a01b031633146111785760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064016105c1565b6001600160a01b03821661194a5760405162461bcd60e51b815260206004820152602160248201527f45524332303a206275726e2066726f6d20746865207a65726f206164647265736044820152607360f81b60648201526084016105c1565b6001600160a01b038216600090815260036020526040902054818110156119be5760405162461bcd60e51b815260206004820152602260248201527f45524332303a206275726e20616d6f756e7420657863656564732062616c616e604482015261636560f01b60648201526084016105c1565b6001600160a01b03831660008181526003602090815260408083208686039055600580548790039055518581529192917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef910160405180910390a361155583600084611eaf565b6000611a318484611649565b90506000198114611a995781811015611a8c5760405162461bcd60e51b815260206004820152601d60248201527f45524332303a20696e73756666696369656e7420616c6c6f77616e636500000060448201526064016105c1565b611a99848484840361176b565b50505050565b6001600160a01b038316611b035760405162461bcd60e51b815260206004820152602560248201527f45524332303a207472616e736665722066726f6d20746865207a65726f206164604482015264647265737360d81b60648201526084016105c1565b6001600160a01b038216611b655760405162461bcd60e51b815260206004820152602360248201527f45524332303a207472616e7366657220746f20746865207a65726f206164647260448201526265737360e81b60648201526084016105c1565b6001600160a01b03831660009081526003602052604090205481811015611bdd5760405162461bcd60e51b815260206004820152602660248201527f45524332303a207472616e7366657220616d6f756e7420657863656564732062604482015265616c616e636560d01b60648201526084016105c1565b6001600160a01b0380851660008181526003602052604080822086860390559286168082529083902080548601905591517fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef90611c3d9086815260200190565b60405180910390a3611a99848484611eaf565b6001600160a01b038216611ca65760405162461bcd60e51b815260206004820152601f60248201527f45524332303a206d696e7420746f20746865207a65726f20616464726573730060448201526064016105c1565b8060056000828254611cb8919061280e565b90915550506001600160a01b0382166000818152600360209081526040808320805486019055518481527fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef910160405180910390a361081c60008383611eaf565b60405162461bcd60e51b81526020600482015260126024820152714e4f204241544348205452414e534645525360701b60448201526064016105c1565b600880546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b816001600160a01b0316836001600160a01b031603611e1b5760405162461bcd60e51b815260206004820152602960248201527f455243313135353a2073657474696e6720617070726f76616c20737461747573604482015268103337b91039b2b63360b91b60648201526084016105c1565b6001600160a01b03838116600081815260016020908152604080832094871680845294825291829020805460ff191686151590811790915591519182527f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c319101611883565b60018314611e8d57600080fd5b6000611ea268056bc75e2d6310000084612c86565b9050611538868683611a9f565b6001600160a01b0383811660009081526003602052604080822054928516825281205490611ee668056bc75e2d6310000084612772565b90506000611efd68056bc75e2d6310000084612772565b9050600068056bc75e2d63100000611f15878761280e565b611f1f9190612772565b90506000868510611f4b5768056bc75e2d63100000611f3e8887612c9d565b611f489190612772565b90505b6000611f578285612c9d565b90506000611f658685612c9d565b9050808203611fcf578115611fca57896001600160a01b03168b6001600160a01b0316611f8f3390565b6001600160a01b0316600080516020612cb1833981519152600186604051611fc1929190918252602082015260400190565b60405180910390a45b61210d565b8082111561207057801561203357896001600160a01b03168b6001600160a01b0316611ff83390565b6001600160a01b0316600080516020612cb183398151915260018560405161202a929190918252602082015260400190565b60405180910390a45b6001600160a01b038a16600033600080516020612cb1833981519152600161205b8688612c9d565b60408051928352602083019190915201611fc1565b81156120cc57896001600160a01b03168b6001600160a01b03166120913390565b6001600160a01b0316600080516020612cb18339815191526001866040516120c3929190918252602082015260400190565b60405180910390a45b60006001600160a01b038c1633600080516020612cb183398151915260016120f48787612c9d565b6040805192835260208301919091520160405180910390a45b5050505050505050505050565b6001600160a01b038116811461176857600080fd5b6000806040838503121561214257600080fd5b823561214d8161211a565b946020939093013593505050565b60006020828403121561216d57600080fd5b81356001600160e01b03198116811461218557600080fd5b9392505050565b600060208083528351808285015260005b818110156121b95785810183015185820160400152820161219d565b506000604082860101526040601f19601f8301168501019250505092915050565b6000602082840312156121ec57600080fd5b5035919050565b60006020828403121561220557600080fd5b81356121858161211a565b60008060006060848603121561222557600080fd5b83356122308161211a565b925060208401356122408161211a565b929592945050506040919091013590565b634e487b7160e01b600052604160045260246000fd5b604051601f8201601f191681016001600160401b038111828210171561228f5761228f612251565b604052919050565b60006001600160401b038211156122b0576122b0612251565b5060051b60200190565b600082601f8301126122cb57600080fd5b813560206122e06122db83612297565b612267565b82815260059290921b840181019181810190868411156122ff57600080fd5b8286015b8481101561231a5780358352918301918301612303565b509695505050505050565b60006001600160401b0383111561233e5761233e612251565b612351601f8401601f1916602001612267565b905082815283838301111561236557600080fd5b828260208301376000602084830101529392505050565b600082601f83011261238d57600080fd5b61218583833560208501612325565b600080600080600060a086880312156123b457600080fd5b85356123bf8161211a565b945060208601356123cf8161211a565b935060408601356001600160401b03808211156123eb57600080fd5b6123f789838a016122ba565b9450606088013591508082111561240d57600080fd5b61241989838a016122ba565b9350608088013591508082111561242f57600080fd5b5061243c8882890161237c565b9150509295509295909350565b60006020828403121561245b57600080fd5b81356001600160401b0381111561247157600080fd5b8201601f8101841361248257600080fd5b6105f684823560208401612325565b801515811461176857600080fd5b600080604083850312156124b257600080fd5b82356124bd8161211a565b915060208301356124cd81612491565b809150509250929050565b600080604083850312156124eb57600080fd5b82356001600160401b038082111561250257600080fd5b818501915085601f83011261251657600080fd5b813560206125266122db83612297565b82815260059290921b8401810191818101908984111561254557600080fd5b948201945b8386101561256c57853561255d8161211a565b8252948201949082019061254a565b9650508601359250508082111561258257600080fd5b5061258f858286016122ba565b9150509250929050565b6020808252825182820181905260009190848201906040850190845b818110156125d1578351835292840192918401916001016125b5565b50909695505050505050565b600080602083850312156125f057600080fd5b82356001600160401b038082111561260757600080fd5b818501915085601f83011261261b57600080fd5b81358181111561262a57600080fd5b8660208260051b850101111561263f57600080fd5b60209290920196919550909350505050565b6000806020838503121561266457600080fd5b82356001600160401b038082111561267b57600080fd5b818501915085601f83011261268f57600080fd5b81358181111561269e57600080fd5b86602082850101111561263f57600080fd5b600080604083850312156126c357600080fd5b82356126ce8161211a565b915060208301356124cd8161211a565b600080600080600060a086880312156126f657600080fd5b85356127018161211a565b945060208601356127118161211a565b9350604086013592506060860135915060808601356001600160401b0381111561273a57600080fd5b61243c8882890161237c565b634e487b7160e01b600052601260045260246000fd5b634e487b7160e01b600052601160045260246000fd5b60008261278157612781612746565b500490565b600181811c9082168061279a57607f821691505b6020821081036127ba57634e487b7160e01b600052602260045260246000fd5b50919050565b6020808252602e908201527f455243313135353a2063616c6c6572206973206e6f7420746f6b656e206f776e60408201526d195c881bdc88185c1c1c9bdd995960921b606082015260800190565b808201808211156105fa576105fa61275c565b601f82111561155557600081815260208120601f850160051c810160208610156128485750805b601f850160051c820191505b8181101561153857828155600101612854565b81516001600160401b0381111561288057612880612251565b6128948161288e8454612786565b84612821565b602080601f8311600181146128c957600084156128b15750858301515b600019600386901b1c1916600185901b178555611538565b600085815260208120601f198616915b828110156128f8578886015182559484019460019091019084016128d9565b50858210156129165787850151600019600388901b60f8161c191681555b5050505050600190811b01905550565b600060208083526000845461293a81612786565b8084870152604060018084166000811461295b5760018114612975576129a3565b60ff1985168984015283151560051b8901830195506129a3565b896000528660002060005b8581101561299b5781548b8201860152908301908801612980565b8a0184019650505b509398975050505050505050565b634e487b7160e01b600052603260045260246000fd5b6000600182016129d9576129d961275c565b5060010190565b6000602082840312156129f257600080fd5b5051919050565b60006020808385031215612a0c57600080fd5b82516001600160401b03811115612a2257600080fd5b8301601f81018513612a3357600080fd5b8051612a416122db82612297565b81815260059190911b82018301908381019087831115612a6057600080fd5b928401925b82841015612a7e57835182529284019290840190612a65565b979650505050505050565b600060208284031215612a9b57600080fd5b815161218581612491565b600060208284031215612ab857600080fd5b81516121858161211a565b600082612ad257612ad2612746565b500690565b600181815b80851115612b12578160001904821115612af857612af861275c565b80851615612b0557918102915b93841c9390800290612adc565b509250929050565b600082612b29575060016105fa565b81612b36575060006105fa565b8160018114612b4c5760028114612b5657612b72565b60019150506105fa565b60ff841115612b6757612b6761275c565b50506001821b6105fa565b5060208310610133831016604e8410600b8410161715612b95575081810a6105fa565b612b9f8383612ad7565b8060001904821115612bb357612bb361275c565b029392505050565b60006121858383612b1a565b6001600160401b03831115612bde57612bde612251565b612bf283612bec8354612786565b83612821565b6000601f841160018114612c265760008515612c0e5750838201355b600019600387901b1c1916600186901b1783556108e0565b600083815260209020601f19861690835b82811015612c575786850135825560209485019460019092019101612c37565b5086821015612c745760001960f88860031b161c19848701351681555b505060018560011b0183555050505050565b80820281158282048414176105fa576105fa61275c565b818103818111156105fa576105fa61275c56fec3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f62a26469706673582212206eae48ce1c6de4af889c54a569caac33c966c2573040cfbccf21a47eb47910f764736f6c63430008110033

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

000000000000000000000000000000000000000000000000000000000000008000000000000000000000000000000000000000000000000000000000000000e0000000000000000000000000ea508034fcc8eeff24bf43effe42621008359a2e000000000000000000000000ed335ace9bf98b6805551af4cd8549b4c682e588000000000000000000000000000000000000000000000000000000000000002e68747470733a2f2f70697869656a6172732e6170702f636f6e7472616374732f7069786965647573742e6a736f6e0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000042697066733a2f2f6261666b72656963337565796778626c70706e3378746d727869693535666d696467676366346f7868747070636a71346d3777626f35363478756d000000000000000000000000000000000000000000000000000000000000

-----Decoded View---------------
Arg [0] : mContractURI (string): https://pixiejars.app/contracts/pixiedust.json
Arg [1] : _dustURI (string): ipfs://bafkreic3ueygxblppn3xtmrxii55fmidggcf4oxhtppcjq4m7wbo564xum
Arg [2] : _pixieJars (address): 0xeA508034fCC8eefF24bF43effe42621008359A2E
Arg [3] : _walletOfOwnerHelper (address): 0xed335ACe9bf98B6805551Af4Cd8549b4c682E588

-----Encoded View---------------
11 Constructor Arguments found :
Arg [0] : 0000000000000000000000000000000000000000000000000000000000000080
Arg [1] : 00000000000000000000000000000000000000000000000000000000000000e0
Arg [2] : 000000000000000000000000ea508034fcc8eeff24bf43effe42621008359a2e
Arg [3] : 000000000000000000000000ed335ace9bf98b6805551af4cd8549b4c682e588
Arg [4] : 000000000000000000000000000000000000000000000000000000000000002e
Arg [5] : 68747470733a2f2f70697869656a6172732e6170702f636f6e7472616374732f
Arg [6] : 7069786965647573742e6a736f6e000000000000000000000000000000000000
Arg [7] : 0000000000000000000000000000000000000000000000000000000000000042
Arg [8] : 697066733a2f2f6261666b72656963337565796778626c70706e3378746d7278
Arg [9] : 69693535666d696467676366346f7868747070636a71346d3777626f35363478
Arg [10] : 756d000000000000000000000000000000000000000000000000000000000000


Block Transaction Difficulty Gas Used Reward
View All Blocks Produced

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

Validator Index Block Amount
View All Withdrawals

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

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