ETH Price: $3,343.03 (+1.43%)
 

Overview

ETH Balance

0 ETH

Eth Value

$0.00

Multichain Info

No addresses found
Transaction Hash
Method
Block
From
To
Mint128021662021-07-10 21:56:431295 days ago1625954203IN
0xcA64Bea0...DB9C748E0
0.03125 ETH0.0017825111
Mint128020612021-07-10 21:32:541295 days ago1625952774IN
0xcA64Bea0...DB9C748E0
0.03125 ETH0.002149912.00000145
Mint128020452021-07-10 21:28:311295 days ago1625952511IN
0xcA64Bea0...DB9C748E0
0.03125 ETH0.0014926815
Mint128012482021-07-10 18:29:221295 days ago1625941762IN
0xcA64Bea0...DB9C748E0
0.03125 ETH0.0029563216.5
Mint127937222021-07-09 14:35:571296 days ago1625841357IN
0xcA64Bea0...DB9C748E0
0.03125 ETH0.0044792725
Mint127873562021-07-08 14:58:211297 days ago1625756301IN
0xcA64Bea0...DB9C748E0
0.03125 ETH0.0051700631.9
Mint127833022021-07-07 23:37:151298 days ago1625701035IN
0xcA64Bea0...DB9C748E0
0.03125 ETH0.0062705635
Mint127832672021-07-07 23:25:331298 days ago1625700333IN
0xcA64Bea0...DB9C748E0
0.03125 ETH0.006481440
Mint127832162021-07-07 23:14:421298 days ago1625699682IN
0xcA64Bea0...DB9C748E0
0.03125 ETH0.0053483433
Mint127832162021-07-07 23:14:421298 days ago1625699682IN
0xcA64Bea0...DB9C748E0
0.03125 ETH0.0048614130.00000145
Mint127831572021-07-07 23:01:581298 days ago1625698918IN
0xcA64Bea0...DB9C748E0
0.03125 ETH0.0061577838
Mint127830342021-07-07 22:36:181298 days ago1625697378IN
0xcA64Bea0...DB9C748E0
0.03125 ETH0.005024231
Mint127830232021-07-07 22:33:331298 days ago1625697213IN
0xcA64Bea0...DB9C748E0
0.03125 ETH0.0068084938
Mint127828912021-07-07 22:06:151298 days ago1625695575IN
0xcA64Bea0...DB9C748E0
0.03125 ETH0.0048376127
Mint127826102021-07-07 21:03:171298 days ago1625691797IN
0xcA64Bea0...DB9C748E0
0.03125 ETH0.0048621330
Mint127826072021-07-07 21:02:141298 days ago1625691734IN
0xcA64Bea0...DB9C748E0
0.03125 ETH0.0046584426
Mint127702352021-07-05 22:41:451300 days ago1625524905IN
0xcA64Bea0...DB9C748E0
0.03125 ETH0.0028667316
Mint127681192021-07-05 14:49:091300 days ago1625496549IN
0xcA64Bea0...DB9C748E0
0.03125 ETH0.001612539
Mint127630292021-07-04 19:53:241301 days ago1625428404IN
0xcA64Bea0...DB9C748E0
0.03125 ETH0.0017915910
Mint127494412021-07-02 16:58:161303 days ago1625245096IN
0xcA64Bea0...DB9C748E0
0.03125 ETH0.0016205910
Mint127494332021-07-02 16:56:521303 days ago1625245012IN
0xcA64Bea0...DB9C748E0
0.03125 ETH0.0017826411
Mint127494262021-07-02 16:55:281303 days ago1625244928IN
0xcA64Bea0...DB9C748E0
0.03125 ETH0.0017827811
Mint127494172021-07-02 16:53:271303 days ago1625244807IN
0xcA64Bea0...DB9C748E0
0.03125 ETH0.0017827811
Mint127494092021-07-02 16:52:021303 days ago1625244722IN
0xcA64Bea0...DB9C748E0
0.03125 ETH0.0017827811
Mint127489382021-07-02 15:11:191303 days ago1625238679IN
0xcA64Bea0...DB9C748E0
0.03125 ETH0.0053479433
View all transactions

Latest 25 internal transactions (View All)

Advanced mode:
Parent Transaction Hash Block
From
To
128021662021-07-10 21:56:431295 days ago1625954203
0xcA64Bea0...DB9C748E0
0.03125 ETH
128020612021-07-10 21:32:541295 days ago1625952774
0xcA64Bea0...DB9C748E0
0.03125 ETH
128020452021-07-10 21:28:311295 days ago1625952511
0xcA64Bea0...DB9C748E0
0.03125 ETH
128012482021-07-10 18:29:221295 days ago1625941762
0xcA64Bea0...DB9C748E0
0.03125 ETH
127937222021-07-09 14:35:571296 days ago1625841357
0xcA64Bea0...DB9C748E0
0.03125 ETH
127873562021-07-08 14:58:211297 days ago1625756301
0xcA64Bea0...DB9C748E0
0.03125 ETH
127833022021-07-07 23:37:151298 days ago1625701035
0xcA64Bea0...DB9C748E0
0.03125 ETH
127832672021-07-07 23:25:331298 days ago1625700333
0xcA64Bea0...DB9C748E0
0.03125 ETH
127832162021-07-07 23:14:421298 days ago1625699682
0xcA64Bea0...DB9C748E0
0.03125 ETH
127832162021-07-07 23:14:421298 days ago1625699682
0xcA64Bea0...DB9C748E0
0.03125 ETH
127831572021-07-07 23:01:581298 days ago1625698918
0xcA64Bea0...DB9C748E0
0.03125 ETH
127830342021-07-07 22:36:181298 days ago1625697378
0xcA64Bea0...DB9C748E0
0.03125 ETH
127830232021-07-07 22:33:331298 days ago1625697213
0xcA64Bea0...DB9C748E0
0.03125 ETH
127828912021-07-07 22:06:151298 days ago1625695575
0xcA64Bea0...DB9C748E0
0.03125 ETH
127826102021-07-07 21:03:171298 days ago1625691797
0xcA64Bea0...DB9C748E0
0.03125 ETH
127826072021-07-07 21:02:141298 days ago1625691734
0xcA64Bea0...DB9C748E0
0.03125 ETH
127702352021-07-05 22:41:451300 days ago1625524905
0xcA64Bea0...DB9C748E0
0.03125 ETH
127681192021-07-05 14:49:091300 days ago1625496549
0xcA64Bea0...DB9C748E0
0.03125 ETH
127630292021-07-04 19:53:241301 days ago1625428404
0xcA64Bea0...DB9C748E0
0.03125 ETH
127494412021-07-02 16:58:161303 days ago1625245096
0xcA64Bea0...DB9C748E0
0.03125 ETH
127494332021-07-02 16:56:521303 days ago1625245012
0xcA64Bea0...DB9C748E0
0.03125 ETH
127494262021-07-02 16:55:281303 days ago1625244928
0xcA64Bea0...DB9C748E0
0.03125 ETH
127494172021-07-02 16:53:271303 days ago1625244807
0xcA64Bea0...DB9C748E0
0.03125 ETH
127494092021-07-02 16:52:021303 days ago1625244722
0xcA64Bea0...DB9C748E0
0.03125 ETH
127489382021-07-02 15:11:191303 days ago1625238679
0xcA64Bea0...DB9C748E0
0.03125 ETH
View All Internal Transactions
Loading...
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
SagaPersonalMinter

Compiler Version
v0.7.3+commit.9bfce1f6

Optimization Enabled:
No with 200 runs

Other Settings:
default evmVersion
File 1 of 20 : SagaPersonalMinter.sol
pragma solidity ^0.7.0;
pragma experimental ABIEncoderV2;

import "../library/LibSafeMath.sol";
import "../ERC1155Mintable.sol";
import "../mixin/MixinOwnable.sol";
import "../mixin/MixinPausable.sol";
import "../mixin/MixinSignature.sol";
import "../HashRegistry.sol";

contract SagaPersonalMinter is Ownable, MixinPausable, MixinSignature {
  using LibSafeMath for uint256;

  uint256 public tokenType;

  ERC1155Mintable public mintableErc1155;
  HashRegistry public registry;

  // personal pricing params
  uint256 immutable public flatPriceForPersonal;

  // max total minting supply
  uint256 immutable maxMintingSupply;

  address payable public treasury;
  address public verifier;

  struct SignedMint {
    address dst;
    uint256 txHash;
    uint256 salt;
    bytes signature;
  }

  constructor(
    address _registry,
    address _mintableErc1155,
    address _verifier,
    address payable _treasury,
    uint256 _tokenType,
    uint256 _flatPriceForPersonal,
    uint256 _maxMintingSupply
  ) {
    registry = HashRegistry(_registry);
    mintableErc1155 = ERC1155Mintable(_mintableErc1155);
    treasury = _treasury;
    tokenType = _tokenType;
    verifier = _verifier;
    flatPriceForPersonal = _flatPriceForPersonal;
    maxMintingSupply = _maxMintingSupply;
  }

  modifier onlyUnderMaxSupply(uint256 mintingAmount) {
    require(maxIndex() + mintingAmount <= maxMintingSupply, 'max supply minted');
    _;
  }

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

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

  function setTreasury(address payable _treasury) external onlyOwner() {
    treasury = _treasury;
  }

  function setVerifier(address _verifier) external onlyOwner() {
    verifier = _verifier;
  }

  function maxIndex() public view returns (uint256) {
    return mintableErc1155.maxIndex(tokenType);
  }

  function getSignedMintHash(SignedMint memory signedMint) public pure returns(bytes32) {
      return keccak256(abi.encodePacked(signedMint.dst, signedMint.txHash, signedMint.salt)) ;
  }

  function verifyPersonalMint(address signer, SignedMint memory signedMint) public pure returns(bool) {
    bytes32 signedHash = getSignedMintHash(signedMint);
    (bytes32 r, bytes32 s, uint8 v) = splitSignature(signedMint.signature);
    return isSigned(signer, signedHash, v, r, s);
  }

  function mint(SignedMint[] memory signedMints) public payable whenNotPaused() onlyUnderMaxSupply(signedMints.length) {
    // verify signatures
    for (uint256 i = 0; i < signedMints.length; ++i) {
      require(signedMints[i].dst == msg.sender, "mints not sent by dst");
      require(verifyPersonalMint(verifier, signedMints[i]) == true, 'invalid signature');
    }
    // verify and transfer fee
    uint256 price = flatPriceForPersonal * signedMints.length;
    require(price <= msg.value, "insufficient funds to pay for mint");
    treasury.transfer(price);
    msg.sender.transfer(msg.value.safeSub(price));

    //mint tokens
    address[] memory dsts = new address[](signedMints.length);
    uint256[] memory txHashes = new uint256[](signedMints.length);
    for (uint256 i = 0; i < signedMints.length; ++i) {
      dsts[i] = signedMints[i].dst;
      txHashes[i] = signedMints[i].txHash;
    }
    _mint(dsts, txHashes);
  }

  function _mint(address[] memory dsts, uint256[] memory txHashes) internal {
    uint256[] memory tokenIds = new uint256[](dsts.length);
    for (uint256 i = 0; i < dsts.length; ++i) {
      uint256 index = maxIndex() + 1 + i;
      uint256 tokenId  = tokenType | index;
      tokenIds[i] = tokenId;
    }
    mintableErc1155.mintNonFungible(tokenType, dsts);
    registry.writeToRegistry(tokenIds, txHashes);
  }
}

File 2 of 20 : LibSafeMath.sol
pragma solidity ^0.7.0;

import "./LibRichErrors.sol";
import "./LibSafeMathRichErrors.sol";

library LibSafeMath {

    function safeMul(uint256 a, uint256 b)
        internal
        pure
        returns (uint256)
    {
        if (a == 0) {
            return 0;
        }
        uint256 c = a * b;
        if (c / a != b) {
            LibRichErrors.rrevert(LibSafeMathRichErrors.Uint256BinOpError(
                LibSafeMathRichErrors.BinOpErrorCodes.MULTIPLICATION_OVERFLOW,
                a,
                b
            ));
        }
        return c;
    }

    function safeDiv(uint256 a, uint256 b)
        internal
        pure
        returns (uint256)
    {
        if (b == 0) {
            LibRichErrors.rrevert(LibSafeMathRichErrors.Uint256BinOpError(
                LibSafeMathRichErrors.BinOpErrorCodes.DIVISION_BY_ZERO,
                a,
                b
            ));
        }
        uint256 c = a / b;
        return c;
    }

    function safeSub(uint256 a, uint256 b)
        internal
        pure
        returns (uint256)
    {
        if (b > a) {
            LibRichErrors.rrevert(LibSafeMathRichErrors.Uint256BinOpError(
                LibSafeMathRichErrors.BinOpErrorCodes.SUBTRACTION_UNDERFLOW,
                a,
                b
            ));
        }
        return a - b;
    }

    function safeAdd(uint256 a, uint256 b)
        internal
        pure
        returns (uint256)
    {
        uint256 c = a + b;
        if (c < a) {
            LibRichErrors.rrevert(LibSafeMathRichErrors.Uint256BinOpError(
                LibSafeMathRichErrors.BinOpErrorCodes.ADDITION_OVERFLOW,
                a,
                b
            ));
        }
        return c;
    }

    function max256(uint256 a, uint256 b)
        internal
        pure
        returns (uint256)
    {
        return a >= b ? a : b;
    }

    function min256(uint256 a, uint256 b)
        internal
        pure
        returns (uint256)
    {
        return a < b ? a : b;
    }
}

File 3 of 20 : ERC1155Mintable.sol
pragma solidity ^0.7.0;

import "./library/LibSafeMath.sol";
import "./library/LibAddress.sol";
import "./ERC1155.sol";
import "./interface/IERC1155Mintable.sol";
import "./mixin/MixinOwnable.sol";
import "./mixin/MixinContractURI.sol";
import "./mixin/MixinTokenURI.sol";

/// @dev Mintable form of ERC1155
/// Shows how easy it is to mint new items
contract ERC1155Mintable is
    IERC1155Mintable,
    ERC1155,
    MixinContractURI,
    MixinTokenURI
{
    using LibSafeMath for uint256;
    using LibAddress for address;

    uint256 internal nonce;

    /// mapping from token to max index
    mapping (uint256 => uint256) public maxIndex;

    mapping (uint256 => mapping(address => bool)) internal creatorApproval;

    modifier onlyCreator(uint256 _id) {
        require(creatorApproval[_id][msg.sender], "not an approved creator of id");
        _;
    }

    function setCreatorApproval(uint256 id, address creator, bool status) external onlyCreator(id) {
        creatorApproval[id][creator] = status;
    }

    /// @dev creates a new token
    /// @param isNF is non-fungible token
    /// @return type_ of token (a unique identifier)
    function create(
        bool isNF
    )
        external
        override
        onlyOwner()
        returns (uint256 type_)
    {
        // Store the type in the upper 128 bits
        type_ = (++nonce << 128);

        // Set a flag if this is an NFI.
        if (isNF) {
            type_ = type_ | TYPE_NF_BIT;
        }

        creatorApproval[type_][msg.sender] = true;

        // emit a Transfer event with Create semantic to help with discovery.
        emit TransferSingle(
            msg.sender,
            address(0x0),
            address(0x0),
            type_,
            0
        );

        emit URI(uri(type_), type_);
    }

    /// @dev creates a new token
    /// @param type_ of token
    function createWithType(
        uint256 type_
    )
        external
        onlyOwner()
    {

        creatorApproval[type_][msg.sender] = true;

        // emit a Transfer event with Create semantic to help with discovery.
        emit TransferSingle(
            msg.sender,
            address(0x0),
            address(0x0),
            type_,
            0
        );

        emit URI(uri(type_), type_);
    }

    /// @dev mints fungible tokens
    /// @param id token type
    /// @param to beneficiaries of minted tokens
    /// @param quantities amounts of minted tokens
    function mintFungible(
        uint256 id,
        address[] calldata to,
        uint256[] calldata quantities
    )
        external
        override
        onlyCreator(id)
    {
        // sanity checks
        require(
            isFungible(id),
            "TRIED_TO_MINT_FUNGIBLE_FOR_NON_FUNGIBLE_TOKEN"
        );

        // mint tokens
        for (uint256 i = 0; i < to.length; ++i) {
            // cache to reduce number of loads
            address dst = to[i];
            uint256 quantity = quantities[i];

            // Grant the items to the caller
            balances[id][dst] = quantity.safeAdd(balances[id][dst]);

            // Emit the Transfer/Mint event.
            // the 0x0 source address implies a mint
            // It will also provide the circulating supply info.
            emit TransferSingle(
                msg.sender,
                address(0x0),
                dst,
                id,
                quantity
            );

            // if `to` is a contract then trigger its callback
            if (dst.isContract()) {
                bytes4 callbackReturnValue = IERC1155Receiver(dst).onERC1155Received(
                    msg.sender,
                    msg.sender,
                    id,
                    quantity,
                    ""
                );
                require(
                    callbackReturnValue == ERC1155_RECEIVED,
                    "BAD_RECEIVER_RETURN_VALUE"
                );
            }
        }
    }

    /// @dev mints a non-fungible token
    /// @param type_ token type
    /// @param to beneficiaries of minted tokens
    function mintNonFungible(
        uint256 type_,
        address[] calldata to
    )
        external
        override
        onlyCreator(type_)
    {
        require(
            isNonFungible(type_),
            "TRIED_TO_MINT_NON_FUNGIBLE_FOR_FUNGIBLE_TOKEN"
        );

        // Index are 1-based.
        uint256 index = maxIndex[type_] + 1;

        for (uint256 i = 0; i < to.length; ++i) {
            // cache to reduce number of loads
            address dst = to[i];
            uint256 id  = type_ | index + i;

            nfOwners[id] = dst;

            // You could use base-type id to store NF type balances if you wish.
            balances[type_][dst] = balances[type_][dst].safeAdd(1);

            emit TransferSingle(msg.sender, address(0x0), dst, id, 1);

            // if `to` is a contract then trigger its callback
            if (dst.isContract()) {
                bytes4 callbackReturnValue = IERC1155Receiver(dst).onERC1155Received(
                    msg.sender,
                    msg.sender,
                    id,
                    1,
                    ""
                );
                require(
                    callbackReturnValue == ERC1155_RECEIVED,
                    "BAD_RECEIVER_RETURN_VALUE"
                );
            }
        }

        // record the `maxIndex` of this nft type
        // this allows us to mint more nft's of this type in a subsequent call.
        maxIndex[type_] = to.length.safeAdd(maxIndex[type_]);
    }
}

File 4 of 20 : MixinOwnable.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.7.0;

import "./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 () {
        address msgSender = _msgSender();
        _owner = msgSender;
        emit OwnershipTransferred(address(0), msgSender);
    }

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

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

    /**
     * @dev Leaves the contract without owner. It will not be possible to call
     * `onlyOwner` functions anymore. Can only be called by the current owner.
     *
     * NOTE: Renouncing ownership will leave the contract without an owner,
     * thereby removing any functionality that is only available to the owner.
     */
    function renounceOwnership() public onlyOwner {
        emit OwnershipTransferred(_owner, address(0));
        _owner = 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 onlyOwner {
        require(newOwner != address(0), "Ownable: new owner is the zero address");
        emit OwnershipTransferred(_owner, newOwner);
        _owner = newOwner;
    }
}

File 5 of 20 : MixinPausable.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.7.0;

import "./Context.sol";

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

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

    bool private _paused;

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

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

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

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

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

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

File 6 of 20 : MixinSignature.sol
pragma solidity ^0.7.0;


contract MixinSignature {
  function splitSignature(bytes memory sig)
      public pure returns (bytes32 r, bytes32 s, uint8 v)
  {
      require(sig.length == 65, "invalid signature length");

      assembly {
          r := mload(add(sig, 32))
          s := mload(add(sig, 64))
          v := byte(0, mload(add(sig, 96)))
      }
  }

  function isSigned(address _address, bytes32 messageHash, uint8 v, bytes32 r, bytes32 s) public pure returns (bool) {
      return _isSigned(_address, messageHash, v, r, s) || _isSignedPrefixed(_address, messageHash, v, r, s);
  }

  function _isSigned(address _address, bytes32 messageHash, uint8 v, bytes32 r, bytes32 s)
      internal pure returns (bool)
  {
      return ecrecover(messageHash, v, r, s) == _address;
  }

  function _isSignedPrefixed(address _address, bytes32 messageHash, uint8 v, bytes32 r, bytes32 s)
      internal pure returns (bool)
  {
      bytes memory prefix = "\x19Ethereum Signed Message:\n32";
      return _isSigned(_address, keccak256(abi.encodePacked(prefix, messageHash)), v, r, s);
  }
  
}

File 7 of 20 : HashRegistry.sol
pragma solidity ^0.7.0;

import "./library/LibSafeMath.sol";
import "./ERC1155Mintable.sol";
import "./mixin/MixinOwnable.sol";

contract HashRegistry is Ownable {
  using LibSafeMath for uint256;

  ERC1155Mintable public mintableErc1155;

  mapping(uint256 => uint256) public tokenIdToTxHash;
  mapping(uint256 => uint256) public txHashToTokenId;
  mapping(address => bool) public permissedWriters;

  constructor(
    address _mintableErc1155
  ) {
    permissedWriters[msg.sender] = true;
    mintableErc1155 = ERC1155Mintable(_mintableErc1155);
  }

  event UpdatedRegistry(
      uint256 tokenId,
      uint256 txHash
  );

  modifier onlyIfPermissed(address writer) {
    require(permissedWriters[writer] == true, "writer can't write to registry");
    _;
  }

  function updatePermissedWriterStatus(address _writer, bool status) public onlyIfPermissed(msg.sender) {
    permissedWriters[_writer] = status;
  }

  function writeToRegistry(uint256[] memory tokenIds, uint256[] memory txHashes) public onlyIfPermissed(msg.sender) {
    require(tokenIds.length == txHashes.length, "tokenIds and txHashes size mismatch");
    for (uint256 i = 0; i < tokenIds.length; ++i) {
      uint256 tokenId = tokenIds[i];
      uint256 txHash = txHashes[i];
      require(mintableErc1155.ownerOf(tokenId) != address(0), 'token does not exist');
      require(txHashToTokenId[txHash] == 0, 'txHash already exists');
      require(tokenIdToTxHash[tokenId] == 0, 'tokenId already exists');
      tokenIdToTxHash[tokenId] = txHash;
      txHashToTokenId[txHash] = tokenId;
      emit UpdatedRegistry(tokenId, txHash); 
    }
  }
}

File 8 of 20 : LibRichErrors.sol
pragma solidity ^0.7.0;

library LibRichErrors {

    // bytes4(keccak256("Error(string)"))
    bytes4 internal constant STANDARD_ERROR_SELECTOR =
        0x08c379a0;

    // solhint-disable func-name-mixedcase
    /// @dev ABI encode a standard, string revert error payload.
    ///      This is the same payload that would be included by a `revert(string)`
    ///      solidity statement. It has the function signature `Error(string)`.
    /// @param message The error string.
    /// @return The ABI encoded error.
    function StandardError(
        string memory message
    )
        internal
        pure
        returns (bytes memory)
    {
        return abi.encodeWithSelector(
            STANDARD_ERROR_SELECTOR,
            bytes(message)
        );
    }
    // solhint-enable func-name-mixedcase

    /// @dev Reverts an encoded rich revert reason `errorData`.
    /// @param errorData ABI encoded error data.
    function rrevert(bytes memory errorData)
        internal
        pure
    {
        assembly {
            revert(add(errorData, 0x20), mload(errorData))
        }
    }
}

File 9 of 20 : LibSafeMathRichErrors.sol
pragma solidity ^0.7.0;


library LibSafeMathRichErrors {

    // bytes4(keccak256("Uint256BinOpError(uint8,uint256,uint256)"))
    bytes4 internal constant UINT256_BINOP_ERROR_SELECTOR =
        0xe946c1bb;

    // bytes4(keccak256("Uint256DowncastError(uint8,uint256)"))
    bytes4 internal constant UINT256_DOWNCAST_ERROR_SELECTOR =
        0xc996af7b;

    enum BinOpErrorCodes {
        ADDITION_OVERFLOW,
        MULTIPLICATION_OVERFLOW,
        SUBTRACTION_UNDERFLOW,
        DIVISION_BY_ZERO
    }

    enum DowncastErrorCodes {
        VALUE_TOO_LARGE_TO_DOWNCAST_TO_UINT32,
        VALUE_TOO_LARGE_TO_DOWNCAST_TO_UINT64,
        VALUE_TOO_LARGE_TO_DOWNCAST_TO_UINT96
    }

    // solhint-disable func-name-mixedcase
    function Uint256BinOpError(
        BinOpErrorCodes errorCode,
        uint256 a,
        uint256 b
    )
        internal
        pure
        returns (bytes memory)
    {
        return abi.encodeWithSelector(
            UINT256_BINOP_ERROR_SELECTOR,
            errorCode,
            a,
            b
        );
    }

    function Uint256DowncastError(
        DowncastErrorCodes errorCode,
        uint256 a
    )
        internal
        pure
        returns (bytes memory)
    {
        return abi.encodeWithSelector(
            UINT256_DOWNCAST_ERROR_SELECTOR,
            errorCode,
            a
        );
    }
}

File 10 of 20 : LibAddress.sol
pragma solidity ^0.7.0;


/**
 * Utility library of inline functions on addresses
 */
library LibAddress {

    /**
     * Returns whether the target address is a contract
     * @dev This function will return false if invoked during the constructor of a contract,
     * as the code is not actually created until after the constructor finishes.
     * @param account address of the account to check
     * @return whether the target address is a contract
     */
    function isContract(address account) internal view returns (bool) {
        uint256 size;
        // XXX Currently there is no better way to check if there is a contract in an address
        // than to check the size of the code at that address.
        // See https://ethereum.stackexchange.com/a/14016/36603
        // for more details about how this works.
        // TODO Check this again before the Serenity release, because all addresses will be
        // contracts then.
        // solium-disable-next-line security/no-inline-assembly
        assembly { size := extcodesize(account) }
        return size > 0;
    }

}

File 11 of 20 : ERC1155.sol
pragma solidity ^0.7.0;

import "./library/LibSafeMath.sol";
import "./library/LibAddress.sol";
import "./interface/IERC1155.sol";
import "./interface/IERC1155Receiver.sol";
import "./mixin/MixinNonFungibleToken.sol";
import "./mixin/MixinOwnable.sol";
import "./WhitelistExchangesProxy.sol";

contract ERC1155 is
    IERC1155,
    MixinNonFungibleToken,
    Ownable
{
    using LibAddress for address;
    using LibSafeMath for uint256;

    // selectors for receiver callbacks
    bytes4 constant public ERC1155_RECEIVED       = 0xf23a6e61;
    bytes4 constant public ERC1155_BATCH_RECEIVED = 0xbc197c81;

    // id => (owner => balance)
    mapping (uint256 => mapping(address => uint256)) internal balances;

    // owner => (operator => approved)
    mapping (address => mapping(address => bool)) internal operatorApproval;

    address public exchangesRegistry;

    function setExchangesRegistry(address newExchangesRegistry) external onlyOwner() {
        exchangesRegistry = newExchangesRegistry;
    }

    /// @notice Transfers value amount of an _id from the _from address to the _to address specified.
    /// @dev MUST emit TransferSingle event on success.
    /// Caller must be approved to manage the _from account's tokens (see isApprovedForAll).
    /// MUST throw if `_to` is the zero address.
    /// MUST throw if balance of sender for token `_id` is lower than the `_value` sent.
    /// MUST throw on any other error.
    /// When transfer is complete, this function MUST check if `_to` is a smart contract (code size > 0).
    /// If so, it MUST call `onERC1155Received` on `_to` and revert if the return value
    /// is not `bytes4(keccak256("onERC1155Received(address,address,uint256,uint256,bytes)"))`.
    /// @param from    Source address
    /// @param to      Target address
    /// @param id      ID of the token type
    /// @param value   Transfer amount
    /// @param data    Additional data with no specified format, sent in call to `_to`
    function safeTransferFrom(
        address from,
        address to,
        uint256 id,
        uint256 value,
        bytes calldata data
    )
        override
        external
    {
        // sanity checks
        require(
            to != address(0x0),
            "CANNOT_TRANSFER_TO_ADDRESS_ZERO"
        );
        require(
            from == msg.sender || isApprovedForAll(from, msg.sender),
            "INSUFFICIENT_ALLOWANCE"
        );

        // perform transfer
        if (isNonFungible(id)) {
            require(
                    value == 1,
                    "AMOUNT_EQUAL_TO_ONE_REQUIRED"
            );
            require(
                nfOwners[id] == from,
                "NFT_NOT_OWNED_BY_FROM_ADDRESS"
            );
            nfOwners[id] = to;
            // You could keep balance of NF type in base type id like so:
            // uint256 baseType = getNonFungibleBaseType(_id);
            // balances[baseType][_from] = balances[baseType][_from].safeSub(_value);
            // balances[baseType][_to]   = balances[baseType][_to].safeAdd(_value);
        } else {
            balances[id][from] = balances[id][from].safeSub(value);
            balances[id][to] = balances[id][to].safeAdd(value);
        }
        emit TransferSingle(msg.sender, from, to, id, value);

        // if `to` is a contract then trigger its callback
        if (to.isContract()) {
            bytes4 callbackReturnValue = IERC1155Receiver(to).onERC1155Received(
                msg.sender,
                from,
                id,
                value,
                data
            );
            require(
                callbackReturnValue == ERC1155_RECEIVED,
                "BAD_RECEIVER_RETURN_VALUE"
            );
        }
    }

    /// @notice Send multiple types of Tokens from a 3rd party in one transfer (with safety call).
    /// @dev MUST emit TransferBatch event on success.
    /// Caller must be approved to manage the _from account's tokens (see isApprovedForAll).
    /// MUST throw if `_to` is the zero address.
    /// MUST throw if length of `_ids` is not the same as length of `_values`.
    ///  MUST throw if any of the balance of sender for token `_ids` is lower than the respective `_values` sent.
    /// MUST throw on any other error.
    /// When transfer is complete, this function MUST check if `_to` is a smart contract (code size > 0).
    /// If so, it MUST call `onERC1155BatchReceived` on `_to` and revert if the return value
    /// is not `bytes4(keccak256("onERC1155BatchReceived(address,address,uint256[],uint256[],bytes)"))`.
    /// @param from    Source addresses
    /// @param to      Target addresses
    /// @param ids     IDs of each token type
    /// @param values  Transfer amounts per token type
    /// @param data    Additional data with no specified format, sent in call to `_to`
    function safeBatchTransferFrom(
        address from,
        address to,
        uint256[] calldata ids,
        uint256[] calldata values,
        bytes calldata data
    )
        override
        external
    {
        // sanity checks
        require(
            to != address(0x0),
            "CANNOT_TRANSFER_TO_ADDRESS_ZERO"
        );
        require(
            ids.length == values.length,
            "TOKEN_AND_VALUES_LENGTH_MISMATCH"
        );

        // Only supporting a global operator approval allows us to do
        // only 1 check and not to touch storage to handle allowances.
        require(
            from == msg.sender || isApprovedForAll(from, msg.sender),
            "INSUFFICIENT_ALLOWANCE"
        );

        // perform transfers
        for (uint256 i = 0; i < ids.length; ++i) {
            // Cache value to local variable to reduce read costs.
            uint256 id = ids[i];
            uint256 value = values[i];

            if (isNonFungible(id)) {
                require(
                    value == 1,
                    "AMOUNT_EQUAL_TO_ONE_REQUIRED"
                );
                require(
                    nfOwners[id] == from,
                    "NFT_NOT_OWNED_BY_FROM_ADDRESS"
                );
                nfOwners[id] = to;
            } else {
                balances[id][from] = balances[id][from].safeSub(value);
                balances[id][to] = balances[id][to].safeAdd(value);
            }
        }
        emit TransferBatch(msg.sender, from, to, ids, values);

        // if `to` is a contract then trigger its callback
        if (to.isContract()) {
            bytes4 callbackReturnValue = IERC1155Receiver(to).onERC1155BatchReceived(
                msg.sender,
                from,
                ids,
                values,
                data
            );
            require(
                callbackReturnValue == ERC1155_BATCH_RECEIVED,
                "BAD_RECEIVER_RETURN_VALUE"
            );
        }
    }

    /// @notice Enable or disable approval for a third party ("operator") to manage all of the caller's tokens.
    /// @dev MUST emit the ApprovalForAll event on success.
    /// @param operator  Address to add to the set of authorized operators
    /// @param approved  True if the operator is approved, false to revoke approval
    function setApprovalForAll(address operator, bool approved) external override {
        operatorApproval[msg.sender][operator] = approved;
        emit ApprovalForAll(msg.sender, operator, approved);
    }

    /// @notice Queries the approval status of an operator for a given owner.
    /// @param owner     The owner of the Tokens
    /// @param operator  Address of authorized operator
    /// @return           True if the operator is approved, false if not
    function isApprovedForAll(address owner, address operator) public override view returns (bool) {
        bool approved = operatorApproval[owner][operator];
        if (!approved && exchangesRegistry != address(0)) {
            return WhitelistExchangesProxy(exchangesRegistry).isAddressWhitelisted(operator) == true;
        }
        return approved;
    }

    /// @notice Get the balance of an account's Tokens.
    /// @param owner  The address of the token holder
    /// @param id     ID of the Token
    /// @return        The _owner's balance of the Token type requested
    function balanceOf(address owner, uint256 id) external override view returns (uint256) {
        if (isNonFungibleItem(id)) {
            return nfOwners[id] == owner ? 1 : 0;
        }
        return balances[id][owner];
    }

    /// @notice Get the balance of multiple account/token pairs
    /// @param owners The addresses of the token holders
    /// @param ids    ID of the Tokens
    /// @return balances_       The _owner's balance of the Token types requested
    function balanceOfBatch(address[] calldata owners, uint256[] calldata ids) external override view returns (uint256[] memory balances_) {
        // sanity check
        require(
            owners.length == ids.length,
            "OWNERS_AND_IDS_MUST_HAVE_SAME_LENGTH"
        );

        // get balances
        balances_ = new uint256[](owners.length);
        for (uint256 i = 0; i < owners.length; ++i) {
            uint256 id = ids[i];
            if (isNonFungibleItem(id)) {
                balances_[i] = nfOwners[id] == owners[i] ? 1 : 0;
            } else {
                balances_[i] = balances[id][owners[i]];
            }
        }

        return balances_;
    }

    bytes4 constant private INTERFACE_SIGNATURE_ERC165 = 0x01ffc9a7;
    bytes4 constant private INTERFACE_SIGNATURE_ERC1155 = 0xd9b67a26;

    function supportsInterface(bytes4 _interfaceID) external view returns (bool) {
        if (_interfaceID == INTERFACE_SIGNATURE_ERC165 ||
            _interfaceID == INTERFACE_SIGNATURE_ERC1155) {
        return true;
        }
        return false;
    }
}

File 12 of 20 : IERC1155Mintable.sol
/*

  Copyright 2019 ZeroEx Intl.

  Licensed under the Apache License, Version 2.0 (the "License");
  you may not use this file except in compliance with the License.
  You may obtain a copy of the License at

    http://www.apache.org/licenses/LICENSE-2.0

  Unless required by applicable law or agreed to in writing, software
  distributed under the License is distributed on an "AS IS" BASIS,
  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  See the License for the specific language governing permissions and
  limitations under the License.

*/

pragma solidity ^0.7.0;

import "./IERC1155.sol";


/// @dev Mintable form of ERC1155
/// Shows how easy it is to mint new items
interface IERC1155Mintable is
    IERC1155
{

    /// @dev creates a new token
    /// @param isNF is non-fungible token
    /// @return type_ of token (a unique identifier)
    function create(
        bool isNF
    )
        external
        returns (uint256 type_);

    /// @dev mints fungible tokens
    /// @param id token type
    /// @param to beneficiaries of minted tokens
    /// @param quantities amounts of minted tokens
    function mintFungible(
        uint256 id,
        address[] calldata to,
        uint256[] calldata quantities
    )
        external;

    /// @dev mints a non-fungible token
    /// @param type_ token type
    /// @param to beneficiaries of minted tokens
    function mintNonFungible(
        uint256 type_,
        address[] calldata to
    )
        external;
}

File 13 of 20 : MixinContractURI.sol
pragma solidity ^0.7.0;

import "./MixinOwnable.sol";

contract MixinContractURI is Ownable {
    string public contractURI;

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

File 14 of 20 : MixinTokenURI.sol
pragma solidity ^0.7.0;

import "./MixinOwnable.sol";
import "../library/LibString.sol";

contract MixinTokenURI is Ownable {
    using LibString for string;

    string public baseMetadataURI = "";

    function setBaseMetadataURI(string memory newBaseMetadataURI) public onlyOwner() {
        baseMetadataURI = newBaseMetadataURI;
    }

    function uri(uint256 _id) public view returns (string memory) {
        return LibString.strConcat(
        baseMetadataURI,
        LibString.uint2hexstr(_id)
        );
    }
}

File 15 of 20 : IERC1155.sol
/*

  Copyright 2019 ZeroEx Intl.

  Licensed under the Apache License, Version 2.0 (the "License");
  you may not use this file except in compliance with the License.
  You may obtain a copy of the License at

    http://www.apache.org/licenses/LICENSE-2.0

  Unless required by applicable law or agreed to in writing, software
  distributed under the License is distributed on an "AS IS" BASIS,
  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  See the License for the specific language governing permissions and
  limitations under the License.

*/

pragma solidity ^0.7.0;

/// @title ERC-1155 Multi Token Standard
/// @dev See https://github.com/ethereum/EIPs/blob/master/EIPS/eip-1155.md
/// Note: The ERC-165 identifier for this interface is 0xd9b67a26.
interface IERC1155 {

    /// @dev Either TransferSingle or TransferBatch MUST emit when tokens are transferred,
    ///      including zero value transfers as well as minting or burning.
    /// Operator will always be msg.sender.
    /// Either event from address `0x0` signifies a minting operation.
    /// An event to address `0x0` signifies a burning or melting operation.
    /// The total value transferred from address 0x0 minus the total value transferred to 0x0 may
    /// be used by clients and exchanges to be added to the "circulating supply" for a given token ID.
    /// To define a token ID with no initial balance, the contract SHOULD emit the TransferSingle event
    /// from `0x0` to `0x0`, with the token creator as `_operator`.
    event TransferSingle(
        address indexed _operator,
        address indexed _from,
        address indexed _to,
        uint256 _id,
        uint256 _value
    );

    /// @dev Either TransferSingle or TransferBatch MUST emit when tokens are transferred,
    ///      including zero value transfers as well as minting or burning.
    ///Operator will always be msg.sender.
    /// Either event from address `0x0` signifies a minting operation.
    /// An event to address `0x0` signifies a burning or melting operation.
    /// The total value transferred from address 0x0 minus the total value transferred to 0x0 may
    /// be used by clients and exchanges to be added to the "circulating supply" for a given token ID.
    /// To define multiple token IDs with no initial balance, this SHOULD emit the TransferBatch event
    /// from `0x0` to `0x0`, with the token creator as `_operator`.
    event TransferBatch(
        address indexed _operator,
        address indexed _from,
        address indexed _to,
        uint256[] _ids,
        uint256[] _values
    );

    /// @dev MUST emit when an approval is updated.
    event ApprovalForAll(
        address indexed _owner,
        address indexed _operator,
        bool _approved
    );

    /// @dev MUST emit when the URI is updated for a token ID.
    /// URIs are defined in RFC 3986.
    /// The URI MUST point a JSON file that conforms to the "ERC-1155 Metadata JSON Schema".
    event URI(
        string _value,
        uint256 indexed _id
    );

    /// @notice Transfers value amount of an _id from the _from address to the _to address specified.
    /// @dev MUST emit TransferSingle event on success.
    /// Caller must be approved to manage the _from account's tokens (see isApprovedForAll).
    /// MUST throw if `_to` is the zero address.
    /// MUST throw if balance of sender for token `_id` is lower than the `_value` sent.
    /// MUST throw on any other error.
    /// When transfer is complete, this function MUST check if `_to` is a smart contract (code size > 0).
    /// If so, it MUST call `onERC1155Received` on `_to` and revert if the return value
    /// is not `bytes4(keccak256("onERC1155Received(address,address,uint256,uint256,bytes)"))`.
    /// @param from    Source address
    /// @param to      Target address
    /// @param id      ID of the token type
    /// @param value   Transfer amount
    /// @param data    Additional data with no specified format, sent in call to `_to`
    function safeTransferFrom(
        address from,
        address to,
        uint256 id,
        uint256 value,
        bytes calldata data
    )
        external;

    /// @notice Send multiple types of Tokens from a 3rd party in one transfer (with safety call).
    /// @dev MUST emit TransferBatch event on success.
    /// Caller must be approved to manage the _from account's tokens (see isApprovedForAll).
    /// MUST throw if `_to` is the zero address.
    /// MUST throw if length of `_ids` is not the same as length of `_values`.
    ///  MUST throw if any of the balance of sender for token `_ids` is lower than the respective `_values` sent.
    /// MUST throw on any other error.
    /// When transfer is complete, this function MUST check if `_to` is a smart contract (code size > 0).
    /// If so, it MUST call `onERC1155BatchReceived` on `_to` and revert if the return value
    /// is not `bytes4(keccak256("onERC1155BatchReceived(address,address,uint256[],uint256[],bytes)"))`.
    /// @param from    Source addresses
    /// @param to      Target addresses
    /// @param ids     IDs of each token type
    /// @param values  Transfer amounts per token type
    /// @param data    Additional data with no specified format, sent in call to `_to`
    function safeBatchTransferFrom(
        address from,
        address to,
        uint256[] calldata ids,
        uint256[] calldata values,
        bytes calldata data
    )
        external;

    /// @notice Enable or disable approval for a third party ("operator") to manage all of the caller's tokens.
    /// @dev MUST emit the ApprovalForAll event on success.
    /// @param operator  Address to add to the set of authorized operators
    /// @param approved  True if the operator is approved, false to revoke approval
    function setApprovalForAll(address operator, bool approved) external;

    /// @notice Queries the approval status of an operator for a given owner.
    /// @param owner     The owner of the Tokens
    /// @param operator  Address of authorized operator
    /// @return           True if the operator is approved, false if not
    function isApprovedForAll(address owner, address operator) external view returns (bool);

    /// @notice Get the balance of an account's Tokens.
    /// @param owner  The address of the token holder
    /// @param id     ID of the Token
    /// @return        The _owner's balance of the Token type requested
    function balanceOf(address owner, uint256 id) external view returns (uint256);

    /// @notice Get the balance of multiple account/token pairs
    /// @param owners The addresses of the token holders
    /// @param ids    ID of the Tokens
    /// @return balances_ The _owner's balance of the Token types requested
    function balanceOfBatch(
        address[] calldata owners,
        uint256[] calldata ids
    )
        external
        view
        returns (uint256[] memory balances_);
}

File 16 of 20 : IERC1155Receiver.sol
/*

  Copyright 2019 ZeroEx Intl.

  Licensed under the Apache License, Version 2.0 (the "License");
  you may not use this file except in compliance with the License.
  You may obtain a copy of the License at

    http://www.apache.org/licenses/LICENSE-2.0

  Unless required by applicable law or agreed to in writing, software
  distributed under the License is distributed on an "AS IS" BASIS,
  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  See the License for the specific language governing permissions and
  limitations under the License.

*/

pragma solidity ^0.7.0;


interface IERC1155Receiver {

    /// @notice Handle the receipt of a single ERC1155 token type
    /// @dev The smart contract calls this function on the recipient
    /// after a `safeTransferFrom`. This function MAY throw to revert and reject the
    /// transfer. Return of other than the magic value MUST result in the
    ///transaction being reverted
    /// Note: the contract address is always the message sender
    /// @param operator  The address which called `safeTransferFrom` function
    /// @param from      The address which previously owned the token
    /// @param id        An array containing the ids of the token being transferred
    /// @param value     An array containing the amount of tokens being transferred
    /// @param data      Additional data with no specified format
    /// @return          `bytes4(keccak256("onERC1155Received(address,address,uint256,uint256,bytes)"))`
    function onERC1155Received(
        address operator,
        address from,
        uint256 id,
        uint256 value,
        bytes calldata data
    )
        external
        returns(bytes4);

    /// @notice Handle the receipt of multiple ERC1155 token types
    /// @dev The smart contract calls this function on the recipient
    /// after a `safeTransferFrom`. This function MAY throw to revert and reject the
    /// transfer. Return of other than the magic value MUST result in the
    /// transaction being reverted
    /// Note: the contract address is always the message sender
    /// @param operator  The address which called `safeTransferFrom` function
    /// @param from      The address which previously owned the token
    /// @param ids       An array containing ids of each token being transferred
    /// @param values    An array containing amounts of each token being transferred
    /// @param data      Additional data with no specified format
    /// @return           `bytes4(keccak256("onERC1155Received(address,address,uint256,uint256,bytes)"))`
    function onERC1155BatchReceived(
        address operator,
        address from,
        uint256[] calldata ids,
        uint256[] calldata values,
        bytes calldata data
    )
        external
        returns(bytes4);
}

File 17 of 20 : MixinNonFungibleToken.sol
pragma solidity ^0.7.0;


contract MixinNonFungibleToken {
    uint256 constant internal TYPE_MASK = uint256(uint128(~0)) << 128;

    uint256 constant internal NF_INDEX_MASK = uint128(~0);

    uint256 constant internal TYPE_NF_BIT = 1 << 255;

    mapping (uint256 => address) internal nfOwners;

    /// @dev Returns true if token is non-fungible
    function isNonFungible(uint256 id) public pure returns(bool) {
        return id & TYPE_NF_BIT == TYPE_NF_BIT;
    }

    /// @dev Returns true if token is fungible
    function isFungible(uint256 id) public pure returns(bool) {
        return id & TYPE_NF_BIT == 0;
    }

    /// @dev Returns index of non-fungible token
    function getNonFungibleIndex(uint256 id) public pure returns(uint256) {
        return id & NF_INDEX_MASK;
    }

    /// @dev Returns base type of non-fungible token
    function getNonFungibleBaseType(uint256 id) public pure returns(uint256) {
        return id & TYPE_MASK;
    }

    /// @dev Returns true if input is base-type of a non-fungible token
    function isNonFungibleBaseType(uint256 id) public pure returns(bool) {
        // A base type has the NF bit but does not have an index.
        return (id & TYPE_NF_BIT == TYPE_NF_BIT) && (id & NF_INDEX_MASK == 0);
    }

    /// @dev Returns true if input is a non-fungible token
    function isNonFungibleItem(uint256 id) public pure returns(bool) {
        // A base type has the NF bit but does has an index.
        return (id & TYPE_NF_BIT == TYPE_NF_BIT) && (id & NF_INDEX_MASK != 0);
    }

    /// @dev returns owner of a non-fungible token
    function ownerOf(uint256 id) public view returns (address) {
        return nfOwners[id];
    }
}

File 18 of 20 : WhitelistExchangesProxy.sol
pragma solidity ^0.7.0;

import "./mixin/MixinOwnable.sol";

contract WhitelistExchangesProxy is Ownable {
    mapping(address => bool) internal proxies;

    bool public paused = true;
    
    function setPaused(bool newPaused) external onlyOwner() {
        paused = newPaused;
    }

    function updateProxyAddress(address proxy, bool status) external onlyOwner() {
        proxies[proxy] = status;
    }

    function isAddressWhitelisted(address proxy) external view returns (bool) {
        if (paused) {
            return false;
        } else {
            return proxies[proxy];
        }
    }
}

File 19 of 20 : Context.sol
pragma solidity ^0.7.0;

contract Context {
    function _msgSender() internal view returns (address payable) {
        return msg.sender;
    }

    function _msgData() internal view returns (bytes memory) {
        this; // silence state mutability warning without generating bytecode - see https://github.com/ethereum/solidity/issues/2691
        return msg.data;
    }
}

File 20 of 20 : LibString.sol
pragma solidity ^0.7.0;

library LibString {
  // via https://github.com/oraclize/ethereum-api/blob/master/oraclizeAPI_0.5.sol
  function strConcat(string memory _a, string memory _b, string memory _c, string memory _d, string memory _e) internal pure returns (string memory) {
      bytes memory _ba = bytes(_a);
      bytes memory _bb = bytes(_b);
      bytes memory _bc = bytes(_c);
      bytes memory _bd = bytes(_d);
      bytes memory _be = bytes(_e);
      string memory abcde = new string(_ba.length + _bb.length + _bc.length + _bd.length + _be.length);
      bytes memory babcde = bytes(abcde);
      uint k = 0;
      for (uint i = 0; i < _ba.length; i++) babcde[k++] = _ba[i];
      for (uint i = 0; i < _bb.length; i++) babcde[k++] = _bb[i];
      for (uint i = 0; i < _bc.length; i++) babcde[k++] = _bc[i];
      for (uint i = 0; i < _bd.length; i++) babcde[k++] = _bd[i];
      for (uint i = 0; i < _be.length; i++) babcde[k++] = _be[i];
      return string(babcde);
    }

    function strConcat(string memory _a, string memory _b, string memory _c, string memory _d) internal pure returns (string memory) {
        return strConcat(_a, _b, _c, _d, "");
    }

    function strConcat(string memory _a, string memory _b, string memory _c) internal pure returns (string memory) {
        return strConcat(_a, _b, _c, "", "");
    }

    function strConcat(string memory _a, string memory _b) internal pure returns (string memory) {
        return strConcat(_a, _b, "", "", "");
    }

    function uint2str(uint _i) internal pure returns (string memory _uintAsString) {
        if (_i == 0) {
            return "0";
        }
        uint j = _i;
        uint len;
        while (j != 0) {
            len++;
            j /= 10;
        }
        bytes memory bstr = new bytes(len);
        uint k = len - 1;
        while (_i != 0) {
            bstr[k--] = byte(uint8(48 + _i % 10));
            _i /= 10;
        }
        return string(bstr);
    }

    function uint2hexstr(uint i) internal pure returns (string memory) {
        if (i == 0) {
            return "0";
        }
        uint j = i;
        uint len;
        while (j != 0) {
            len++;
            j = j >> 4;
        }
        uint mask = 15;
        bytes memory bstr = new bytes(len);
        uint k = len - 1;
        while (i != 0){
            uint curr = (i & mask);
            bstr[k--] = curr > 9 ? byte(uint8(55 + curr)) : byte(uint8(48 + curr));
            i = i >> 4;
        }
        return string(bstr);
    }
}

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

Contract Security Audit

Contract ABI

[{"inputs":[{"internalType":"address","name":"_registry","type":"address"},{"internalType":"address","name":"_mintableErc1155","type":"address"},{"internalType":"address","name":"_verifier","type":"address"},{"internalType":"address payable","name":"_treasury","type":"address"},{"internalType":"uint256","name":"_tokenType","type":"uint256"},{"internalType":"uint256","name":"_flatPriceForPersonal","type":"uint256"},{"internalType":"uint256","name":"_maxMintingSupply","type":"uint256"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"account","type":"address"}],"name":"Paused","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"account","type":"address"}],"name":"Unpaused","type":"event"},{"inputs":[],"name":"flatPriceForPersonal","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"components":[{"internalType":"address","name":"dst","type":"address"},{"internalType":"uint256","name":"txHash","type":"uint256"},{"internalType":"uint256","name":"salt","type":"uint256"},{"internalType":"bytes","name":"signature","type":"bytes"}],"internalType":"struct SagaPersonalMinter.SignedMint","name":"signedMint","type":"tuple"}],"name":"getSignedMintHash","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"pure","type":"function"},{"inputs":[{"internalType":"address","name":"_address","type":"address"},{"internalType":"bytes32","name":"messageHash","type":"bytes32"},{"internalType":"uint8","name":"v","type":"uint8"},{"internalType":"bytes32","name":"r","type":"bytes32"},{"internalType":"bytes32","name":"s","type":"bytes32"}],"name":"isSigned","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"pure","type":"function"},{"inputs":[],"name":"maxIndex","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"components":[{"internalType":"address","name":"dst","type":"address"},{"internalType":"uint256","name":"txHash","type":"uint256"},{"internalType":"uint256","name":"salt","type":"uint256"},{"internalType":"bytes","name":"signature","type":"bytes"}],"internalType":"struct SagaPersonalMinter.SignedMint[]","name":"signedMints","type":"tuple[]"}],"name":"mint","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"mintableErc1155","outputs":[{"internalType":"contract ERC1155Mintable","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"pause","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"paused","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"registry","outputs":[{"internalType":"contract HashRegistry","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address payable","name":"_treasury","type":"address"}],"name":"setTreasury","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_verifier","type":"address"}],"name":"setVerifier","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes","name":"sig","type":"bytes"}],"name":"splitSignature","outputs":[{"internalType":"bytes32","name":"r","type":"bytes32"},{"internalType":"bytes32","name":"s","type":"bytes32"},{"internalType":"uint8","name":"v","type":"uint8"}],"stateMutability":"pure","type":"function"},{"inputs":[],"name":"tokenType","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"treasury","outputs":[{"internalType":"address payable","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"unpause","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"verifier","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"signer","type":"address"},{"components":[{"internalType":"address","name":"dst","type":"address"},{"internalType":"uint256","name":"txHash","type":"uint256"},{"internalType":"uint256","name":"salt","type":"uint256"},{"internalType":"bytes","name":"signature","type":"bytes"}],"internalType":"struct SagaPersonalMinter.SignedMint","name":"signedMint","type":"tuple"}],"name":"verifyPersonalMint","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"pure","type":"function"}]

60c06040523480156200001157600080fd5b50604051620029c4380380620029c4833981810160405281019062000037919062000276565b6000620000496200022960201b60201c565b9050806000806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508073ffffffffffffffffffffffffffffffffffffffff16600073ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35060008060146101000a81548160ff02191690831515021790555086600360006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555085600260006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555083600460006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508260018190555084600560006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555081608081815250508060a0818152505050505050505050620003c3565b600033905090565b600081519050620002428162000375565b92915050565b60008151905062000259816200038f565b92915050565b6000815190506200027081620003a9565b92915050565b600080600080600080600060e0888a0312156200029257600080fd5b6000620002a28a828b0162000231565b9750506020620002b58a828b0162000231565b9650506040620002c88a828b0162000231565b9550506060620002db8a828b0162000248565b9450506080620002ee8a828b016200025f565b93505060a0620003018a828b016200025f565b92505060c0620003148a828b016200025f565b91505092959891949750929550565b600062000330826200034b565b9050919050565b600062000344826200034b565b9050919050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000819050919050565b620003808162000323565b81146200038c57600080fd5b50565b6200039a8162000337565b8114620003a657600080fd5b50565b620003b4816200036b565b8114620003c057600080fd5b50565b60805160a0516125d8620003ec600039806107825250806109145280610e9f52506125d86000f3fe60806040526004361061011f5760003560e01c8063715018a6116100a0578063a7bb580311610064578063a7bb580314610380578063af7aa1f5146103bf578063dd8fad65146103ea578063f0f4426014610427578063f2fde38b146104505761011f565b8063715018a6146102bf5780637b103999146102d65780638456cb59146103015780638677ebe8146103185780638da5cb5b146103555761011f565b806350c8a3fd116100e757806350c8a3fd146101e75780635437988d1461022457806356500c941461024d5780635c975abb1461026957806361d027b3146102945761011f565b80632269f9fb146101245780632b7ac3f31461014f5780632ca869bf1461017a57806330fa738c146101a55780633f4ba83a146101d0575b600080fd5b34801561013057600080fd5b50610139610479565b6040516101469190612080565b60405180910390f35b34801561015b57600080fd5b5061016461049f565b6040516101719190611f46565b60405180910390f35b34801561018657600080fd5b5061018f6104c5565b60405161019c919061220d565b60405180910390f35b3480156101b157600080fd5b506101ba610579565b6040516101c7919061220d565b60405180910390f35b3480156101dc57600080fd5b506101e561057f565b005b3480156101f357600080fd5b5061020e600480360381019061020991906118ff565b61061e565b60405161021b9190611fce565b60405180910390f35b34801561023057600080fd5b5061024b60048036038101906102469190611836565b61065d565b005b61026760048036038101906102629190611953565b610736565b005b34801561027557600080fd5b5061027e610b8a565b60405161028b9190611fce565b60405180910390f35b3480156102a057600080fd5b506102a9610ba0565b6040516102b69190611f7c565b60405180910390f35b3480156102cb57600080fd5b506102d4610bc6565b005b3480156102e257600080fd5b506102eb610d19565b6040516102f8919061209b565b60405180910390f35b34801561030d57600080fd5b50610316610d3f565b005b34801561032457600080fd5b5061033f600480360381019061033a9190611888565b610dde565b60405161034c9190611fce565b60405180910390f35b34801561036157600080fd5b5061036a610e0c565b6040516103779190611f46565b60405180910390f35b34801561038c57600080fd5b506103a760048036038101906103a29190611994565b610e35565b6040516103b693929190612004565b60405180910390f35b3480156103cb57600080fd5b506103d4610e9d565b6040516103e1919061220d565b60405180910390f35b3480156103f657600080fd5b50610411600480360381019061040c91906119d5565b610ec1565b60405161041e9190611fe9565b60405180910390f35b34801561043357600080fd5b5061044e6004803603810190610449919061185f565b610f01565b005b34801561045c57600080fd5b5061047760048036038101906104729190611836565b610fda565b005b600260009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b600560009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b6000600260009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166308d7d4696001546040518263ffffffff1660e01b8152600401610524919061220d565b60206040518083038186803b15801561053c57600080fd5b505afa158015610550573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906105749190611a16565b905090565b60015481565b61058761119c565b73ffffffffffffffffffffffffffffffffffffffff1660008054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1614610614576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161060b906121cd565b60405180910390fd5b61061c6111a4565b565b60008061062a83610ec1565b9050600080600061063e8660600151610e35565b9250925092506106518785838686610dde565b94505050505092915050565b61066561119c565b73ffffffffffffffffffffffffffffffffffffffff1660008054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16146106f2576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016106e9906121cd565b60405180910390fd5b80600560006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b61073e610b8a565b1561077e576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016107759061218d565b60405180910390fd5b80517f0000000000000000000000000000000000000000000000000000000000000000816107aa6104c5565b0111156107ec576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016107e3906121ad565b60405180910390fd5b60005b825181101561090d573373ffffffffffffffffffffffffffffffffffffffff1683828151811061081b57fe5b60200260200101516000015173ffffffffffffffffffffffffffffffffffffffff161461087d576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610874906120ed565b60405180910390fd5b600115156108c0600560009054906101000a900473ffffffffffffffffffffffffffffffffffffffff168584815181106108b357fe5b602002602001015161061e565b151514610902576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016108f99061212d565b60405180910390fd5b8060010190506107ef565b50600082517f000000000000000000000000000000000000000000000000000000000000000002905034811115610979576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016109709061216d565b60405180910390fd5b600460009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166108fc829081150290604051600060405180830381858888f193505050501580156109e1573d6000803e3d6000fd5b503373ffffffffffffffffffffffffffffffffffffffff166108fc610a0f833461124590919063ffffffff16565b9081150290604051600060405180830381858888f19350505050158015610a3a573d6000803e3d6000fd5b506060835167ffffffffffffffff81118015610a5557600080fd5b50604051908082528060200260200182016040528015610a845781602001602082028036833780820191505090505b5090506060845167ffffffffffffffff81118015610aa157600080fd5b50604051908082528060200260200182016040528015610ad05781602001602082028036833780820191505090505b50905060005b8551811015610b7857858181518110610aeb57fe5b602002602001015160000151838281518110610b0357fe5b602002602001019073ffffffffffffffffffffffffffffffffffffffff16908173ffffffffffffffffffffffffffffffffffffffff1681525050858181518110610b4957fe5b602002602001015160200151828281518110610b6157fe5b602002602001018181525050806001019050610ad6565b50610b83828261126f565b5050505050565b60008060149054906101000a900460ff16905090565b600460009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b610bce61119c565b73ffffffffffffffffffffffffffffffffffffffff1660008054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1614610c5b576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610c52906121cd565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff1660008054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a360008060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550565b600360009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b610d4761119c565b73ffffffffffffffffffffffffffffffffffffffff1660008054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1614610dd4576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610dcb906121cd565b60405180910390fd5b610ddc61142d565b565b6000610ded86868686866114d0565b80610e015750610e00868686868661155a565b5b905095945050505050565b60008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b60008060006041845114610e7e576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610e75906121ed565b60405180910390fd5b6020840151925060408401519150606084015160001a90509193909250565b7f000000000000000000000000000000000000000000000000000000000000000081565b6000816000015182602001518360400151604051602001610ee493929190611ee1565b604051602081830303815290604052805190602001209050919050565b610f0961119c565b73ffffffffffffffffffffffffffffffffffffffff1660008054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1614610f96576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610f8d906121cd565b60405180910390fd5b80600460006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b610fe261119c565b73ffffffffffffffffffffffffffffffffffffffff1660008054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff161461106f576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611066906121cd565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1614156110df576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016110d69061214d565b60405180910390fd5b8073ffffffffffffffffffffffffffffffffffffffff1660008054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a3806000806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b600033905090565b6111ac610b8a565b6111eb576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016111e29061210d565b60405180910390fd5b60008060146101000a81548160ff0219169083151502179055507f5db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa61122e61119c565b60405161123b9190611f61565b60405180910390a1565b6000828211156112645761126361125e600285856115d7565b61165c565b5b818303905092915050565b6060825167ffffffffffffffff8111801561128957600080fd5b506040519080825280602002602001820160405280156112b85781602001602082028036833780820191505090505b50905060005b83518110156113075760008160016112d46104c5565b01019050600081600154179050808484815181106112ee57fe5b60200260200101818152505050508060010190506112be565b50600260009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663f9419088600154856040518363ffffffff1660e01b8152600401611367929190612228565b600060405180830381600087803b15801561138157600080fd5b505af1158015611395573d6000803e3d6000fd5b50505050600360009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16633b5efd0382846040518363ffffffff1660e01b81526004016113f6929190611f97565b600060405180830381600087803b15801561141057600080fd5b505af1158015611424573d6000803e3d6000fd5b50505050505050565b611435610b8a565b15611475576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161146c9061218d565b60405180910390fd5b6001600060146101000a81548160ff0219169083151502179055507f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a2586114b961119c565b6040516114c69190611f61565b60405180910390a1565b60008573ffffffffffffffffffffffffffffffffffffffff166001868686866040516000815260200160405260405161150c949392919061203b565b6020604051602081039080840390855afa15801561152e573d6000803e3d6000fd5b5050506020604051035173ffffffffffffffffffffffffffffffffffffffff1614905095945050505050565b600060606040518060400160405280601c81526020017f19457468657265756d205369676e6564204d6573736167653a0a33320000000081525090506115cb8782886040516020016115ad929190611f1e565b604051602081830303815290604052805190602001208787876114d0565b91505095945050505050565b606063e946c1bb60e01b8484846040516024016115f6939291906120b6565b604051602081830303815290604052907bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19166020820180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff838183161783525050505090509392505050565b805160208201fd5b6000813590506116738161252f565b92915050565b60008135905061168881612546565b92915050565b600082601f83011261169f57600080fd5b81356116b26116ad82612289565b612258565b9150818183526020840193506020810190508360005b838110156116f857813586016116de888261176b565b8452602084019350602083019250506001810190506116c8565b5050505092915050565b6000813590506117118161255d565b92915050565b600082601f83011261172857600080fd5b813561173b611736826122b5565b612258565b9150808252602083016020830185838301111561175757600080fd5b611762838284612492565b50505092915050565b60006080828403121561177d57600080fd5b6117876080612258565b9050600061179784828501611664565b60008301525060206117ab848285016117f7565b60208301525060406117bf848285016117f7565b604083015250606082013567ffffffffffffffff8111156117df57600080fd5b6117eb84828501611717565b60608301525092915050565b60008135905061180681612574565b92915050565b60008151905061181b81612574565b92915050565b6000813590506118308161258b565b92915050565b60006020828403121561184857600080fd5b600061185684828501611664565b91505092915050565b60006020828403121561187157600080fd5b600061187f84828501611679565b91505092915050565b600080600080600060a086880312156118a057600080fd5b60006118ae88828901611664565b95505060206118bf88828901611702565b94505060406118d088828901611821565b93505060606118e188828901611702565b92505060806118f288828901611702565b9150509295509295909350565b6000806040838503121561191257600080fd5b600061192085828601611664565b925050602083013567ffffffffffffffff81111561193d57600080fd5b6119498582860161176b565b9150509250929050565b60006020828403121561196557600080fd5b600082013567ffffffffffffffff81111561197f57600080fd5b61198b8482850161168e565b91505092915050565b6000602082840312156119a657600080fd5b600082013567ffffffffffffffff8111156119c057600080fd5b6119cc84828501611717565b91505092915050565b6000602082840312156119e757600080fd5b600082013567ffffffffffffffff811115611a0157600080fd5b611a0d8482850161176b565b91505092915050565b600060208284031215611a2857600080fd5b6000611a368482850161180c565b91505092915050565b6000611a4b8383611a8d565b60208301905092915050565b6000611a638383611e9d565b60208301905092915050565b611a7881612402565b82525050565b611a8781612390565b82525050565b611a968161237e565b82525050565b611aa58161237e565b82525050565b611abc611ab78261237e565b6124d4565b82525050565b6000611acd82612305565b611ad78185612340565b9350611ae2836122e5565b8060005b83811015611b13578151611afa8882611a3f565b9750611b0583612326565b925050600181019050611ae6565b5085935050505092915050565b6000611b2b82612310565b611b358185612351565b9350611b40836122f5565b8060005b83811015611b71578151611b588882611a57565b9750611b6383612333565b925050600181019050611b44565b5085935050505092915050565b611b87816123a2565b82525050565b611b96816123ae565b82525050565b611bad611ba8826123ae565b6124e6565b82525050565b6000611bbe8261231b565b611bc88185612362565b9350611bd88185602086016124a1565b80840191505092915050565b611bed81612414565b82525050565b611bfc81612438565b82525050565b611c0b8161245c565b82525050565b6000611c1e60158361236d565b91507f6d696e7473206e6f742073656e742062792064737400000000000000000000006000830152602082019050919050565b6000611c5e60148361236d565b91507f5061757361626c653a206e6f74207061757365640000000000000000000000006000830152602082019050919050565b6000611c9e60118361236d565b91507f696e76616c6964207369676e61747572650000000000000000000000000000006000830152602082019050919050565b6000611cde60268361236d565b91507f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160008301527f64647265737300000000000000000000000000000000000000000000000000006020830152604082019050919050565b6000611d4460228361236d565b91507f696e73756666696369656e742066756e647320746f2070617920666f72206d6960008301527f6e740000000000000000000000000000000000000000000000000000000000006020830152604082019050919050565b6000611daa60108361236d565b91507f5061757361626c653a20706175736564000000000000000000000000000000006000830152602082019050919050565b6000611dea60118361236d565b91507f6d617820737570706c79206d696e7465640000000000000000000000000000006000830152602082019050919050565b6000611e2a60208361236d565b91507f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726000830152602082019050919050565b6000611e6a60188361236d565b91507f696e76616c6964207369676e6174757265206c656e67746800000000000000006000830152602082019050919050565b611ea6816123eb565b82525050565b611eb5816123eb565b82525050565b611ecc611ec7826123eb565b612502565b82525050565b611edb816123f5565b82525050565b6000611eed8286611aab565b601482019150611efd8285611ebb565b602082019150611f0d8284611ebb565b602082019150819050949350505050565b6000611f2a8285611bb3565b9150611f368284611b9c565b6020820191508190509392505050565b6000602082019050611f5b6000830184611a9c565b92915050565b6000602082019050611f766000830184611a6f565b92915050565b6000602082019050611f916000830184611a7e565b92915050565b60006040820190508181036000830152611fb18185611b20565b90508181036020830152611fc58184611b20565b90509392505050565b6000602082019050611fe36000830184611b7e565b92915050565b6000602082019050611ffe6000830184611b8d565b92915050565b60006060820190506120196000830186611b8d565b6120266020830185611b8d565b6120336040830184611ed2565b949350505050565b60006080820190506120506000830187611b8d565b61205d6020830186611ed2565b61206a6040830185611b8d565b6120776060830184611b8d565b95945050505050565b60006020820190506120956000830184611be4565b92915050565b60006020820190506120b06000830184611bf3565b92915050565b60006060820190506120cb6000830186611c02565b6120d86020830185611eac565b6120e56040830184611eac565b949350505050565b6000602082019050818103600083015261210681611c11565b9050919050565b6000602082019050818103600083015261212681611c51565b9050919050565b6000602082019050818103600083015261214681611c91565b9050919050565b6000602082019050818103600083015261216681611cd1565b9050919050565b6000602082019050818103600083015261218681611d37565b9050919050565b600060208201905081810360008301526121a681611d9d565b9050919050565b600060208201905081810360008301526121c681611ddd565b9050919050565b600060208201905081810360008301526121e681611e1d565b9050919050565b6000602082019050818103600083015261220681611e5d565b9050919050565b60006020820190506122226000830184611eac565b92915050565b600060408201905061223d6000830185611eac565b818103602083015261224f8184611ac2565b90509392505050565b6000604051905081810181811067ffffffffffffffff8211171561227f5761227e61250c565b5b8060405250919050565b600067ffffffffffffffff8211156122a4576122a361250c565b5b602082029050602081019050919050565b600067ffffffffffffffff8211156122d0576122cf61250c565b5b601f19601f8301169050602081019050919050565b6000819050602082019050919050565b6000819050602082019050919050565b600081519050919050565b600081519050919050565b600081519050919050565b6000602082019050919050565b6000602082019050919050565b600082825260208201905092915050565b600082825260208201905092915050565b600081905092915050565b600082825260208201905092915050565b6000612389826123cb565b9050919050565b600061239b826123cb565b9050919050565b60008115159050919050565b6000819050919050565b60008190506123c68261251b565b919050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000819050919050565b600060ff82169050919050565b600061240d8261246e565b9050919050565b600061241f82612426565b9050919050565b6000612431826123cb565b9050919050565b60006124438261244a565b9050919050565b6000612455826123cb565b9050919050565b6000612467826123b8565b9050919050565b600061247982612480565b9050919050565b600061248b826123cb565b9050919050565b82818337600083830152505050565b60005b838110156124bf5780820151818401526020810190506124a4565b838111156124ce576000848401525b50505050565b60006124df826124f0565b9050919050565b6000819050919050565b60006124fb8261250e565b9050919050565b6000819050919050565bfe5b60008160601b9050919050565b6004811061252c5761252b61250c565b5b50565b6125388161237e565b811461254357600080fd5b50565b61254f81612390565b811461255a57600080fd5b50565b612566816123ae565b811461257157600080fd5b50565b61257d816123eb565b811461258857600080fd5b50565b612594816123f5565b811461259f57600080fd5b5056fea2646970667358221220bad14ebe9722e52d9cbb4ae5a92de2bb3d54e9a0b4ac076436b901288ec37bb164736f6c6343000703003300000000000000000000000029ca58d4a0857ae3f0608a546cde5f254a3f867a000000000000000000000000e18a32192ed95b0fe9d70d19e5025f103475d7ba000000000000000000000000f3087c9c2bdabb111b8865ae5efd38511eed75560000000000000000000000007c849375786fae5e4984f50eea47360d75660a318000000000000000000000000000000300000000000000000000000000000000000000000000000000000000000000000000000000000000006f05b59d3b20000000000000000000000000000000000000000000000000000000000000001f49

Deployed Bytecode

0x60806040526004361061011f5760003560e01c8063715018a6116100a0578063a7bb580311610064578063a7bb580314610380578063af7aa1f5146103bf578063dd8fad65146103ea578063f0f4426014610427578063f2fde38b146104505761011f565b8063715018a6146102bf5780637b103999146102d65780638456cb59146103015780638677ebe8146103185780638da5cb5b146103555761011f565b806350c8a3fd116100e757806350c8a3fd146101e75780635437988d1461022457806356500c941461024d5780635c975abb1461026957806361d027b3146102945761011f565b80632269f9fb146101245780632b7ac3f31461014f5780632ca869bf1461017a57806330fa738c146101a55780633f4ba83a146101d0575b600080fd5b34801561013057600080fd5b50610139610479565b6040516101469190612080565b60405180910390f35b34801561015b57600080fd5b5061016461049f565b6040516101719190611f46565b60405180910390f35b34801561018657600080fd5b5061018f6104c5565b60405161019c919061220d565b60405180910390f35b3480156101b157600080fd5b506101ba610579565b6040516101c7919061220d565b60405180910390f35b3480156101dc57600080fd5b506101e561057f565b005b3480156101f357600080fd5b5061020e600480360381019061020991906118ff565b61061e565b60405161021b9190611fce565b60405180910390f35b34801561023057600080fd5b5061024b60048036038101906102469190611836565b61065d565b005b61026760048036038101906102629190611953565b610736565b005b34801561027557600080fd5b5061027e610b8a565b60405161028b9190611fce565b60405180910390f35b3480156102a057600080fd5b506102a9610ba0565b6040516102b69190611f7c565b60405180910390f35b3480156102cb57600080fd5b506102d4610bc6565b005b3480156102e257600080fd5b506102eb610d19565b6040516102f8919061209b565b60405180910390f35b34801561030d57600080fd5b50610316610d3f565b005b34801561032457600080fd5b5061033f600480360381019061033a9190611888565b610dde565b60405161034c9190611fce565b60405180910390f35b34801561036157600080fd5b5061036a610e0c565b6040516103779190611f46565b60405180910390f35b34801561038c57600080fd5b506103a760048036038101906103a29190611994565b610e35565b6040516103b693929190612004565b60405180910390f35b3480156103cb57600080fd5b506103d4610e9d565b6040516103e1919061220d565b60405180910390f35b3480156103f657600080fd5b50610411600480360381019061040c91906119d5565b610ec1565b60405161041e9190611fe9565b60405180910390f35b34801561043357600080fd5b5061044e6004803603810190610449919061185f565b610f01565b005b34801561045c57600080fd5b5061047760048036038101906104729190611836565b610fda565b005b600260009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b600560009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b6000600260009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166308d7d4696001546040518263ffffffff1660e01b8152600401610524919061220d565b60206040518083038186803b15801561053c57600080fd5b505afa158015610550573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906105749190611a16565b905090565b60015481565b61058761119c565b73ffffffffffffffffffffffffffffffffffffffff1660008054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1614610614576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161060b906121cd565b60405180910390fd5b61061c6111a4565b565b60008061062a83610ec1565b9050600080600061063e8660600151610e35565b9250925092506106518785838686610dde565b94505050505092915050565b61066561119c565b73ffffffffffffffffffffffffffffffffffffffff1660008054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16146106f2576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016106e9906121cd565b60405180910390fd5b80600560006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b61073e610b8a565b1561077e576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016107759061218d565b60405180910390fd5b80517f0000000000000000000000000000000000000000000000000000000000001f49816107aa6104c5565b0111156107ec576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016107e3906121ad565b60405180910390fd5b60005b825181101561090d573373ffffffffffffffffffffffffffffffffffffffff1683828151811061081b57fe5b60200260200101516000015173ffffffffffffffffffffffffffffffffffffffff161461087d576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610874906120ed565b60405180910390fd5b600115156108c0600560009054906101000a900473ffffffffffffffffffffffffffffffffffffffff168584815181106108b357fe5b602002602001015161061e565b151514610902576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016108f99061212d565b60405180910390fd5b8060010190506107ef565b50600082517f000000000000000000000000000000000000000000000000006f05b59d3b200002905034811115610979576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016109709061216d565b60405180910390fd5b600460009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166108fc829081150290604051600060405180830381858888f193505050501580156109e1573d6000803e3d6000fd5b503373ffffffffffffffffffffffffffffffffffffffff166108fc610a0f833461124590919063ffffffff16565b9081150290604051600060405180830381858888f19350505050158015610a3a573d6000803e3d6000fd5b506060835167ffffffffffffffff81118015610a5557600080fd5b50604051908082528060200260200182016040528015610a845781602001602082028036833780820191505090505b5090506060845167ffffffffffffffff81118015610aa157600080fd5b50604051908082528060200260200182016040528015610ad05781602001602082028036833780820191505090505b50905060005b8551811015610b7857858181518110610aeb57fe5b602002602001015160000151838281518110610b0357fe5b602002602001019073ffffffffffffffffffffffffffffffffffffffff16908173ffffffffffffffffffffffffffffffffffffffff1681525050858181518110610b4957fe5b602002602001015160200151828281518110610b6157fe5b602002602001018181525050806001019050610ad6565b50610b83828261126f565b5050505050565b60008060149054906101000a900460ff16905090565b600460009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b610bce61119c565b73ffffffffffffffffffffffffffffffffffffffff1660008054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1614610c5b576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610c52906121cd565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff1660008054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a360008060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550565b600360009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b610d4761119c565b73ffffffffffffffffffffffffffffffffffffffff1660008054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1614610dd4576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610dcb906121cd565b60405180910390fd5b610ddc61142d565b565b6000610ded86868686866114d0565b80610e015750610e00868686868661155a565b5b905095945050505050565b60008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b60008060006041845114610e7e576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610e75906121ed565b60405180910390fd5b6020840151925060408401519150606084015160001a90509193909250565b7f000000000000000000000000000000000000000000000000006f05b59d3b200081565b6000816000015182602001518360400151604051602001610ee493929190611ee1565b604051602081830303815290604052805190602001209050919050565b610f0961119c565b73ffffffffffffffffffffffffffffffffffffffff1660008054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1614610f96576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610f8d906121cd565b60405180910390fd5b80600460006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b610fe261119c565b73ffffffffffffffffffffffffffffffffffffffff1660008054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff161461106f576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611066906121cd565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1614156110df576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016110d69061214d565b60405180910390fd5b8073ffffffffffffffffffffffffffffffffffffffff1660008054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a3806000806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b600033905090565b6111ac610b8a565b6111eb576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016111e29061210d565b60405180910390fd5b60008060146101000a81548160ff0219169083151502179055507f5db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa61122e61119c565b60405161123b9190611f61565b60405180910390a1565b6000828211156112645761126361125e600285856115d7565b61165c565b5b818303905092915050565b6060825167ffffffffffffffff8111801561128957600080fd5b506040519080825280602002602001820160405280156112b85781602001602082028036833780820191505090505b50905060005b83518110156113075760008160016112d46104c5565b01019050600081600154179050808484815181106112ee57fe5b60200260200101818152505050508060010190506112be565b50600260009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663f9419088600154856040518363ffffffff1660e01b8152600401611367929190612228565b600060405180830381600087803b15801561138157600080fd5b505af1158015611395573d6000803e3d6000fd5b50505050600360009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16633b5efd0382846040518363ffffffff1660e01b81526004016113f6929190611f97565b600060405180830381600087803b15801561141057600080fd5b505af1158015611424573d6000803e3d6000fd5b50505050505050565b611435610b8a565b15611475576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161146c9061218d565b60405180910390fd5b6001600060146101000a81548160ff0219169083151502179055507f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a2586114b961119c565b6040516114c69190611f61565b60405180910390a1565b60008573ffffffffffffffffffffffffffffffffffffffff166001868686866040516000815260200160405260405161150c949392919061203b565b6020604051602081039080840390855afa15801561152e573d6000803e3d6000fd5b5050506020604051035173ffffffffffffffffffffffffffffffffffffffff1614905095945050505050565b600060606040518060400160405280601c81526020017f19457468657265756d205369676e6564204d6573736167653a0a33320000000081525090506115cb8782886040516020016115ad929190611f1e565b604051602081830303815290604052805190602001208787876114d0565b91505095945050505050565b606063e946c1bb60e01b8484846040516024016115f6939291906120b6565b604051602081830303815290604052907bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19166020820180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff838183161783525050505090509392505050565b805160208201fd5b6000813590506116738161252f565b92915050565b60008135905061168881612546565b92915050565b600082601f83011261169f57600080fd5b81356116b26116ad82612289565b612258565b9150818183526020840193506020810190508360005b838110156116f857813586016116de888261176b565b8452602084019350602083019250506001810190506116c8565b5050505092915050565b6000813590506117118161255d565b92915050565b600082601f83011261172857600080fd5b813561173b611736826122b5565b612258565b9150808252602083016020830185838301111561175757600080fd5b611762838284612492565b50505092915050565b60006080828403121561177d57600080fd5b6117876080612258565b9050600061179784828501611664565b60008301525060206117ab848285016117f7565b60208301525060406117bf848285016117f7565b604083015250606082013567ffffffffffffffff8111156117df57600080fd5b6117eb84828501611717565b60608301525092915050565b60008135905061180681612574565b92915050565b60008151905061181b81612574565b92915050565b6000813590506118308161258b565b92915050565b60006020828403121561184857600080fd5b600061185684828501611664565b91505092915050565b60006020828403121561187157600080fd5b600061187f84828501611679565b91505092915050565b600080600080600060a086880312156118a057600080fd5b60006118ae88828901611664565b95505060206118bf88828901611702565b94505060406118d088828901611821565b93505060606118e188828901611702565b92505060806118f288828901611702565b9150509295509295909350565b6000806040838503121561191257600080fd5b600061192085828601611664565b925050602083013567ffffffffffffffff81111561193d57600080fd5b6119498582860161176b565b9150509250929050565b60006020828403121561196557600080fd5b600082013567ffffffffffffffff81111561197f57600080fd5b61198b8482850161168e565b91505092915050565b6000602082840312156119a657600080fd5b600082013567ffffffffffffffff8111156119c057600080fd5b6119cc84828501611717565b91505092915050565b6000602082840312156119e757600080fd5b600082013567ffffffffffffffff811115611a0157600080fd5b611a0d8482850161176b565b91505092915050565b600060208284031215611a2857600080fd5b6000611a368482850161180c565b91505092915050565b6000611a4b8383611a8d565b60208301905092915050565b6000611a638383611e9d565b60208301905092915050565b611a7881612402565b82525050565b611a8781612390565b82525050565b611a968161237e565b82525050565b611aa58161237e565b82525050565b611abc611ab78261237e565b6124d4565b82525050565b6000611acd82612305565b611ad78185612340565b9350611ae2836122e5565b8060005b83811015611b13578151611afa8882611a3f565b9750611b0583612326565b925050600181019050611ae6565b5085935050505092915050565b6000611b2b82612310565b611b358185612351565b9350611b40836122f5565b8060005b83811015611b71578151611b588882611a57565b9750611b6383612333565b925050600181019050611b44565b5085935050505092915050565b611b87816123a2565b82525050565b611b96816123ae565b82525050565b611bad611ba8826123ae565b6124e6565b82525050565b6000611bbe8261231b565b611bc88185612362565b9350611bd88185602086016124a1565b80840191505092915050565b611bed81612414565b82525050565b611bfc81612438565b82525050565b611c0b8161245c565b82525050565b6000611c1e60158361236d565b91507f6d696e7473206e6f742073656e742062792064737400000000000000000000006000830152602082019050919050565b6000611c5e60148361236d565b91507f5061757361626c653a206e6f74207061757365640000000000000000000000006000830152602082019050919050565b6000611c9e60118361236d565b91507f696e76616c6964207369676e61747572650000000000000000000000000000006000830152602082019050919050565b6000611cde60268361236d565b91507f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160008301527f64647265737300000000000000000000000000000000000000000000000000006020830152604082019050919050565b6000611d4460228361236d565b91507f696e73756666696369656e742066756e647320746f2070617920666f72206d6960008301527f6e740000000000000000000000000000000000000000000000000000000000006020830152604082019050919050565b6000611daa60108361236d565b91507f5061757361626c653a20706175736564000000000000000000000000000000006000830152602082019050919050565b6000611dea60118361236d565b91507f6d617820737570706c79206d696e7465640000000000000000000000000000006000830152602082019050919050565b6000611e2a60208361236d565b91507f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726000830152602082019050919050565b6000611e6a60188361236d565b91507f696e76616c6964207369676e6174757265206c656e67746800000000000000006000830152602082019050919050565b611ea6816123eb565b82525050565b611eb5816123eb565b82525050565b611ecc611ec7826123eb565b612502565b82525050565b611edb816123f5565b82525050565b6000611eed8286611aab565b601482019150611efd8285611ebb565b602082019150611f0d8284611ebb565b602082019150819050949350505050565b6000611f2a8285611bb3565b9150611f368284611b9c565b6020820191508190509392505050565b6000602082019050611f5b6000830184611a9c565b92915050565b6000602082019050611f766000830184611a6f565b92915050565b6000602082019050611f916000830184611a7e565b92915050565b60006040820190508181036000830152611fb18185611b20565b90508181036020830152611fc58184611b20565b90509392505050565b6000602082019050611fe36000830184611b7e565b92915050565b6000602082019050611ffe6000830184611b8d565b92915050565b60006060820190506120196000830186611b8d565b6120266020830185611b8d565b6120336040830184611ed2565b949350505050565b60006080820190506120506000830187611b8d565b61205d6020830186611ed2565b61206a6040830185611b8d565b6120776060830184611b8d565b95945050505050565b60006020820190506120956000830184611be4565b92915050565b60006020820190506120b06000830184611bf3565b92915050565b60006060820190506120cb6000830186611c02565b6120d86020830185611eac565b6120e56040830184611eac565b949350505050565b6000602082019050818103600083015261210681611c11565b9050919050565b6000602082019050818103600083015261212681611c51565b9050919050565b6000602082019050818103600083015261214681611c91565b9050919050565b6000602082019050818103600083015261216681611cd1565b9050919050565b6000602082019050818103600083015261218681611d37565b9050919050565b600060208201905081810360008301526121a681611d9d565b9050919050565b600060208201905081810360008301526121c681611ddd565b9050919050565b600060208201905081810360008301526121e681611e1d565b9050919050565b6000602082019050818103600083015261220681611e5d565b9050919050565b60006020820190506122226000830184611eac565b92915050565b600060408201905061223d6000830185611eac565b818103602083015261224f8184611ac2565b90509392505050565b6000604051905081810181811067ffffffffffffffff8211171561227f5761227e61250c565b5b8060405250919050565b600067ffffffffffffffff8211156122a4576122a361250c565b5b602082029050602081019050919050565b600067ffffffffffffffff8211156122d0576122cf61250c565b5b601f19601f8301169050602081019050919050565b6000819050602082019050919050565b6000819050602082019050919050565b600081519050919050565b600081519050919050565b600081519050919050565b6000602082019050919050565b6000602082019050919050565b600082825260208201905092915050565b600082825260208201905092915050565b600081905092915050565b600082825260208201905092915050565b6000612389826123cb565b9050919050565b600061239b826123cb565b9050919050565b60008115159050919050565b6000819050919050565b60008190506123c68261251b565b919050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000819050919050565b600060ff82169050919050565b600061240d8261246e565b9050919050565b600061241f82612426565b9050919050565b6000612431826123cb565b9050919050565b60006124438261244a565b9050919050565b6000612455826123cb565b9050919050565b6000612467826123b8565b9050919050565b600061247982612480565b9050919050565b600061248b826123cb565b9050919050565b82818337600083830152505050565b60005b838110156124bf5780820151818401526020810190506124a4565b838111156124ce576000848401525b50505050565b60006124df826124f0565b9050919050565b6000819050919050565b60006124fb8261250e565b9050919050565b6000819050919050565bfe5b60008160601b9050919050565b6004811061252c5761252b61250c565b5b50565b6125388161237e565b811461254357600080fd5b50565b61254f81612390565b811461255a57600080fd5b50565b612566816123ae565b811461257157600080fd5b50565b61257d816123eb565b811461258857600080fd5b50565b612594816123f5565b811461259f57600080fd5b5056fea2646970667358221220bad14ebe9722e52d9cbb4ae5a92de2bb3d54e9a0b4ac076436b901288ec37bb164736f6c63430007030033

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

00000000000000000000000029ca58d4a0857ae3f0608a546cde5f254a3f867a000000000000000000000000e18a32192ed95b0fe9d70d19e5025f103475d7ba000000000000000000000000f3087c9c2bdabb111b8865ae5efd38511eed75560000000000000000000000007c849375786fae5e4984f50eea47360d75660a318000000000000000000000000000000300000000000000000000000000000000000000000000000000000000000000000000000000000000006f05b59d3b20000000000000000000000000000000000000000000000000000000000000001f49

-----Decoded View---------------
Arg [0] : _registry (address): 0x29ca58d4a0857Ae3F0608a546cdE5f254A3F867a
Arg [1] : _mintableErc1155 (address): 0xE18a32192ED95b0FE9D70D19e5025f103475d7BA
Arg [2] : _verifier (address): 0xF3087c9c2BDaBB111B8865ae5EfD38511eEd7556
Arg [3] : _treasury (address): 0x7C849375786faE5e4984F50eea47360D75660a31
Arg [4] : _tokenType (uint256): 57896044618658097711785492504343953927655839433583097410118915826251869454336
Arg [5] : _flatPriceForPersonal (uint256): 31250000000000000
Arg [6] : _maxMintingSupply (uint256): 8009

-----Encoded View---------------
7 Constructor Arguments found :
Arg [0] : 00000000000000000000000029ca58d4a0857ae3f0608a546cde5f254a3f867a
Arg [1] : 000000000000000000000000e18a32192ed95b0fe9d70d19e5025f103475d7ba
Arg [2] : 000000000000000000000000f3087c9c2bdabb111b8865ae5efd38511eed7556
Arg [3] : 0000000000000000000000007c849375786fae5e4984f50eea47360d75660a31
Arg [4] : 8000000000000000000000000000000300000000000000000000000000000000
Arg [5] : 000000000000000000000000000000000000000000000000006f05b59d3b2000
Arg [6] : 0000000000000000000000000000000000000000000000000000000000001f49


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  ]
[ 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.