Contract 0x7585c2b8bc66c20f94699eb03a264dc995749b76

Contract Overview

Balance:
0 MATIC
Txn Hash Method
Block
From
To
Value [Txn Fee]
0x39368055016356279c97181ffe86f0ae0fae989cc9550cf5fd9877489e92503aSafe Transfer Fr...202104462021-10-15 12:19:173 days 13 hrs ago0x92ae0a2db4c07d094613afec609049104cdbc182 IN  0x7585c2b8bc66c20f94699eb03a264dc995749b760 MATIC0.000140277
0xeb4b52314058e60455a3c8e23ba53d02d934f93d5befe2a62ce3b9f11f94263aGrant Role201500992021-10-14 1:44:515 days 2 mins ago0x92ae0a2db4c07d094613afec609049104cdbc182 IN  0x7585c2b8bc66c20f94699eb03a264dc995749b760 MATIC0.00051654
0x4f4e979761978d2f65457d3e052fe99e632e0bef8fb968120b95dd7297d6af28Grant Role201386012021-10-13 19:07:275 days 6 hrs ago0x92ae0a2db4c07d094613afec609049104cdbc182 IN  0x7585c2b8bc66c20f94699eb03a264dc995749b760 MATIC0.000154962
0x482ef1d0d00f0827627ddd6a952353a278aa4cbcac4a990b6fb743d2d8d0c7f1Grant Role201383602021-10-13 18:59:095 days 6 hrs ago0x92ae0a2db4c07d094613afec609049104cdbc182 IN  0x7585c2b8bc66c20f94699eb03a264dc995749b760 MATIC0.000154962
0x565fd1e68a5ce9499f7d79f373ba21011b2f60b8b1050ec35cdf09e1c7802fccGrant Role201368182021-10-13 18:06:095 days 7 hrs ago0x92ae0a2db4c07d094613afec609049104cdbc182 IN  0x7585c2b8bc66c20f94699eb03a264dc995749b760 MATIC0.000088011
0x885720d79b33de178ce62e4be4d6b2b44f028afa036c6bd27aa8925def0f921eGrant Role201364152021-10-13 17:52:195 days 7 hrs ago0x92ae0a2db4c07d094613afec609049104cdbc182 IN  0x7585c2b8bc66c20f94699eb03a264dc995749b760 MATIC0.000154962
0x0ff48315302779de82e1e1382434e2098c4bae8a69d3de20358e92587a1f8c92Withdraw Batch199755302021-10-09 20:54:579 days 4 hrs ago0x92ae0a2db4c07d094613afec609049104cdbc182 IN  0x7585c2b8bc66c20f94699eb03a264dc995749b760 MATIC0.00084018
0x80f7b4192e6d06e47fa404df91231575471e3dd90cb5b29c5899240fe459e4b7Withdraw Batch198922462021-10-07 20:42:1311 days 5 hrs ago0x92ae0a2db4c07d094613afec609049104cdbc182 IN  0x7585c2b8bc66c20f94699eb03a264dc995749b760 MATIC0.000129018
0x395c02fac9a6e9f847dd1f58f8e1a21f9c19864bbf1fb1694a687e959904774dWithdraw Batch198907332021-10-07 19:50:1111 days 5 hrs ago0x92ae0a2db4c07d094613afec609049104cdbc182 IN  0x7585c2b8bc66c20f94699eb03a264dc995749b760 MATIC0.000129018
0xaaf3c271a3ace1b551931dd0ad9bd5676621f2fadab33e36622a17dd5ea78e95Execute Meta Tra...198816842021-10-07 14:37:0111 days 11 hrs ago0x9b814233894cd227f561b78cc65891aa55c62ad2 IN  0x7585c2b8bc66c20f94699eb03a264dc995749b760 MATIC0.0001087099
0xc4237535f150add1d043eecc0cc62e04c8570d5003ad8ff2aedc6341f58dca4cSet Max Supply198207932021-10-06 3:26:4712 days 22 hrs ago0x92ae0a2db4c07d094613afec609049104cdbc182 IN  0x7585c2b8bc66c20f94699eb03a264dc995749b760 MATIC0.000151119
0xf4ee5df03076ecf9e6830e66ca4b97479e817e945e27a09b1169e1ef443bcfc2Set Royalties198204182021-10-06 3:13:5712 days 22 hrs ago0x92ae0a2db4c07d094613afec609049104cdbc182 IN  0x7585c2b8bc66c20f94699eb03a264dc995749b760 MATIC0.000216921
0x65627c02c374e792faeadc6ec9989b1d90f7140e3f629ca3ace5208f3773f04eGrant Role198203232021-10-06 3:10:3912 days 22 hrs ago0x92ae0a2db4c07d094613afec609049104cdbc182 IN  0x7585c2b8bc66c20f94699eb03a264dc995749b760 MATIC0.000088011
0x59d610aa84ee924fad10d5cc4cbd313e5e2fcb2535f6f5db562ad84523d49462Grant Role197777002021-10-05 2:41:0813 days 23 hrs ago0x92ae0a2db4c07d094613afec609049104cdbc182 IN  0x7585c2b8bc66c20f94699eb03a264dc995749b760 MATIC0.000619848
0x2f8d6246df855be8f2e87dfc20501da852d74977d0c06832747be8c44781ebe7Set Contract URI197368412021-10-04 3:12:2214 days 22 hrs ago0x92ae0a2db4c07d094613afec609049104cdbc182 IN  0x7585c2b8bc66c20f94699eb03a264dc995749b760 MATIC0.00276747
0xab8963ec199c816dbcd5ba77097fb380ad1f19d785b37111c3e935113f3f4f44Set URI197368362021-10-04 3:12:1214 days 22 hrs ago0x92ae0a2db4c07d094613afec609049104cdbc182 IN  0x7585c2b8bc66c20f94699eb03a264dc995749b760 MATIC0.00276645
0x91f81755899879d7c7d5cdc1c02a8c4bcd994a0c137b437bb1d1a188469569520x60806040197346982021-10-04 1:54:2414 days 23 hrs ago0x92ae0a2db4c07d094613afec609049104cdbc182 IN  Contract Creation0 MATIC0.13242867
[ Download CSV Export 
Parent Txn Hash Block From To Value
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
GameForestAssets

Compiler Version
v0.8.7+commit.e28d00a7

Optimization Enabled:
Yes with 200 runs

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

pragma solidity ^0.8.0;

import "./ForestAssetsBridgedWithRoyalties.sol";

/**
 * @title GameForestAssets
 * GameForestAssets - a contract for my semi-fungible tokens.
 */
contract GameForestAssets is ForestAssetsBridgedWithRoyalties {

  constructor(address childChainManager,
      address mintableAssetProxy_, address openSeaProxyRegistryAddress_)
  ForestAssetsBridgedWithRoyalties(
    "The Game Forest",
    "TGF",
    childChainManager,
    mintableAssetProxy_,
    openSeaProxyRegistryAddress_
  ) public {
    
  }

}

File 2 of 26 : RoyaltiesV2Impl.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

import "./AbstractRoyalties.sol";
import "../RoyaltiesV2.sol";

contract RoyaltiesV2Impl is AbstractRoyalties, RoyaltiesV2 {
    function getRaribleV2Royalties(uint256 id) override external view returns (LibPart.Part[] memory) {
        return royalties[id];
    }

    function _onRoyaltiesSet(uint256 _id, LibPart.Part[] memory _royalties) override internal {
        emit RoyaltiesSet(_id, _royalties);
    }
}

File 3 of 26 : AbstractRoyalties.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

import "../LibPart.sol";

abstract contract AbstractRoyalties {
    mapping (uint256 => LibPart.Part[]) public royalties;

    function _saveRoyalties(uint256 _id, LibPart.Part[] memory _royalties) internal {
        for (uint i = 0; i < _royalties.length; i++) {
            require(_royalties[i].account != address(0x0), "Recipient should be present");
            require(_royalties[i].value != 0, "Royalty value should be positive");
            royalties[_id].push(_royalties[i]);
        }
        _onRoyaltiesSet(_id, _royalties);
    }

    function _updateAccount(uint256 _id, address _from, address _to) internal {
        uint length = royalties[_id].length;
        for(uint i = 0; i < length; i++) {
            if (royalties[_id][i].account == _from) {
                royalties[_id][i].account = payable(address(uint160(_to)));
            }
        }
    }

    function _onRoyaltiesSet(uint256 _id, LibPart.Part[] memory _royalties) virtual internal;
}

File 4 of 26 : RoyaltiesV2.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

import "./LibPart.sol";

interface RoyaltiesV2 {
    event RoyaltiesSet(uint256 tokenId, LibPart.Part[] royalties);

    function getRaribleV2Royalties(uint256 id) external view returns (LibPart.Part[] memory);
}

File 5 of 26 : LibRoyaltiesV2.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

library LibRoyaltiesV2 {
    /*
    * bytes4(keccak256('getRoyalties(LibAsset.AssetType)')) == 0x44c74bcc
    */
    bytes4 constant _INTERFACE_ID_ROYALTIES = 0x44c74bcc;
}

File 6 of 26 : LibPart.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

library LibPart {
    bytes32 public constant TYPE_HASH = keccak256("Part(address account,uint96 value)");

    struct Part {
        address payable account;
        uint96 value;
    }

    function hash(Part memory part) internal pure returns (bytes32) {
        return keccak256(abi.encode(TYPE_HASH, part.account, part.value));
    }
}

File 7 of 26 : NativeMetaTransaction.sol
pragma solidity ^0.8.0;

import "@openzeppelin/contracts/utils/math/SafeMath.sol";
import "./EIP712Base.sol";

contract NativeMetaTransaction is EIP712Base {
    using SafeMath for uint256;
    bytes32 private constant META_TRANSACTION_TYPEHASH = keccak256(
        bytes(
            "MetaTransaction(uint256 nonce,address from,bytes functionSignature)"
        )
    );
    event MetaTransactionExecuted(
        address userAddress,
        address payable relayerAddress,
        bytes functionSignature
    );
    mapping(address => uint256) nonces;

    /*
     * Meta transaction structure.
     * No point of including value field here as if user is doing value transfer then he has the funds to pay for gas
     * He should call the desired function directly in that case.
     */
    struct MetaTransaction {
        uint256 nonce;
        address from;
        bytes functionSignature;
    }

    function executeMetaTransaction(
        address userAddress,
        bytes memory functionSignature,
        bytes32 sigR,
        bytes32 sigS,
        uint8 sigV
    ) public payable returns (bytes memory) {
        MetaTransaction memory metaTx = MetaTransaction({
            nonce: nonces[userAddress],
            from: userAddress,
            functionSignature: functionSignature
        });

        require(
            verify(userAddress, metaTx, sigR, sigS, sigV),
            "Signer and signature do not match"
        );

        // increase nonce for user (to avoid re-use)
        nonces[userAddress] = nonces[userAddress].add(1);

        emit MetaTransactionExecuted(
            userAddress,
            payable(msg.sender),
            functionSignature
        );

        // Append userAddress and relayer address at the end to extract it from calling context
        (bool success, bytes memory returnData) = address(this).call(
            abi.encodePacked(functionSignature, userAddress)
        );
        require(success, "Function call not successful");

        return returnData;
    }

    function hashMetaTransaction(MetaTransaction memory metaTx)
        internal
        pure
        returns (bytes32)
    {
        return
            keccak256(
                abi.encode(
                    META_TRANSACTION_TYPEHASH,
                    metaTx.nonce,
                    metaTx.from,
                    keccak256(metaTx.functionSignature)
                )
            );
    }

    function getNonce(address user) public view returns (uint256 nonce) {
        nonce = nonces[user];
    }

    function verify(
        address signer,
        MetaTransaction memory metaTx,
        bytes32 sigR,
        bytes32 sigS,
        uint8 sigV
    ) internal view returns (bool) {
        require(signer != address(0), "NativeMetaTransaction: INVALID_SIGNER");
        return
            signer ==
            ecrecover(
                toTypedMessageHash(hashMetaTransaction(metaTx)),
                sigV,
                sigR,
                sigS
            );
    }
}

File 8 of 26 : Initializable.sol
pragma solidity ^0.8.0;

contract Initializable {
    bool inited = false;

    modifier initializer() {
        require(!inited, "already inited");
        _;
        inited = true;
    }
}

File 9 of 26 : IMintableERC1155.sol
pragma solidity ^0.8.0;

import "@openzeppelin/contracts/token/ERC1155/IERC1155.sol";

interface IMintableERC1155 is IERC1155 {
    /**
     * @notice Creates `amount` tokens of token type `id`, and assigns them to `account`.
     * @dev Should be callable only by MintableERC1155Predicate
     * Make sure minting is done only by this function
     * @param account user address for whom token is being minted
     * @param id token which is being minted
     * @param amount amount of token being minted
     * @param data extra byte data to be accompanied with minted tokens
     */
    function mint(address account, uint256 id, uint256 amount, bytes calldata data) external;

    /**
     * @notice Batched version of singular token minting, where
     * for each token in `ids` respective amount to be minted from `amounts`
     * array, for address `to`.
     * @dev Should be callable only by MintableERC1155Predicate
     * Make sure minting is done only by this function
     * @param to user address for whom token is being minted
     * @param ids tokens which are being minted
     * @param amounts amount of each token being minted
     * @param data extra byte data to be accompanied with minted tokens
     */
    function mintBatch(address to, uint256[] calldata ids, uint256[] calldata amounts, bytes calldata data) external;
}

File 10 of 26 : EIP712Base.sol
pragma solidity ^0.8.0;

import "./Initializable.sol";

contract EIP712Base is Initializable {
    struct EIP712Domain {
        string name;
        string version;
        address verifyingContract;
        bytes32 salt;
    }

    string constant public ERC712_VERSION = "1";

    bytes32 internal constant EIP712_DOMAIN_TYPEHASH = keccak256(
        bytes(
            "EIP712Domain(string name,string version,address verifyingContract,bytes32 salt)"
        )
    );
    bytes32 internal domainSeperator;

    // supposed to be called once while initializing.
    // one of the contractsa that inherits this contract follows proxy pattern
    // so it is not possible to do this in a constructor
    function _initializeEIP712(
        string memory name
    )
        internal
        initializer
    {
        _setDomainSeperator(name);
    }

    function _setDomainSeperator(string memory name) internal {
        domainSeperator = keccak256(
            abi.encode(
                EIP712_DOMAIN_TYPEHASH,
                keccak256(bytes(name)),
                keccak256(bytes(ERC712_VERSION)),
                address(this),
                bytes32(getChainId())
            )
        );
    }

    function getDomainSeperator() public view returns (bytes32) {
        return domainSeperator;
    }

    function getChainId() public view returns (uint256) {
        uint256 id;
        assembly {
            id := chainid()
        }
        return id;
    }

    /**
     * Accept message hash and returns hash message in EIP712 compatible form
     * So that it can be used to recover signer from signature signed using EIP712 formatted data
     * https://eips.ethereum.org/EIPS/eip-712
     * "\\x19" makes the encoding deterministic
     * "\\x01" is the version byte to make it compatible to EIP-191
     */
    function toTypedMessageHash(bytes32 messageHash)
        internal
        view
        returns (bytes32)
    {
        return
            keccak256(
                abi.encodePacked("\x19\x01", getDomainSeperator(), messageHash)
            );
    }
}

File 11 of 26 : ContextMixin.sol
pragma solidity ^0.8.0;

abstract contract ContextMixin {
    function msgSender()
        internal
        view
        returns (address payable sender)
    {
        if (msg.sender == address(this)) {
            bytes memory array = msg.data;
            uint256 index = msg.data.length;
            assembly {
                // Load the 32 bytes word from memory with the address on the lower 20 bytes, and mask those.
                sender := and(
                    mload(add(array, index)),
                    0xffffffffffffffffffffffffffffffffffffffff
                )
            }
        } else {
            sender = payable(msg.sender);
        }
        return sender;
    }
}

File 12 of 26 : AccessControlMixin.sol
pragma solidity ^0.8.0;

import "@openzeppelin/contracts/access/AccessControl.sol";

contract AccessControlMixin is AccessControl {
    string private _revertMsg;
    function _setupContractId(string memory contractId) internal {
        _revertMsg = string(abi.encodePacked(contractId, ": INSUFFICIENT_PERMISSIONS"));
    }

    modifier only(bytes32 role) {
        require(
            hasRole(role, _msgSender()),
            _revertMsg
        );
        _;
    }
}

File 13 of 26 : StringsUtils.sol
pragma solidity ^0.8.0;

library StringsUtils {
  // 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) public 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) public pure returns (string memory) {
        return strConcat(_a, _b, _c, _d, "");
    }

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

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

    function uint2str(uint _i) public 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;
        while (_i != 0) {
            k = k-1;
            uint8 temp = (48 + uint8(_i - _i / 10 * 10));
            bytes1 b1 = bytes1(temp);
            bstr[k] = b1;
            _i /= 10;
        }
        return string(bstr);
    }
}

File 14 of 26 : ForestAssetsBridgedWithRoyalties.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

import "./pos-portal/NativeMetaTransaction.sol";
import "./pos-portal/ContextMixin.sol";
import "./pos-portal/AccessControlMixin.sol";
import "./pos-portal/IMintableERC1155.sol";
import "./ForestAssetsBase.sol";
import "./rarible/royalties/impl/RoyaltiesV2Impl.sol";
import "./rarible/royalties/LibPart.sol";
import "./rarible/royalties/LibRoyaltiesV2.sol";

interface IChildToken {
    function deposit(address user, bytes calldata depositData) external;
}

contract ForestAssetsBridgedWithRoyalties is ForestAssetsBase,
        IChildToken, NativeMetaTransaction, ContextMixin, RoyaltiesV2Impl,
        AccessControlMixin, IMintableERC1155 {
    
    bytes32 public constant PREDICATE_ROLE = keccak256("PREDICATE_ROLE");

    address public depositer;

    constructor(string memory name_,
            string memory symbol_,
            address childChainManager,
            address mintableAssetProxy_,
            address openSeaProxyRegistryAddress_)
            ForestAssetsBase(name_, symbol_,
                openSeaProxyRegistryAddress_) {
        _setupContractId(name_);
        _setupRole(DEFAULT_ADMIN_ROLE, _msgSender());
        if(mintableAssetProxy_ != address(0))
            _setupRole(PREDICATE_ROLE, mintableAssetProxy_);

        depositer = childChainManager;
        
        _initializeEIP712(name_);
    }

    /*royalities*/
    bytes4 private constant _INTERFACE_ID_ERC2981 = 0x2a55205a;//mintable standard nft royalities. ERC1155 not supported on mintable now, but just in case

    function setRoyalties(uint _tokenId, address payable _royaltiesReceipientAddress, uint96 _percentageBasisPoints) public onlyOwner {
        LibPart.Part[] memory _royalties = new LibPart.Part[](1);
        _royalties[0].value = _percentageBasisPoints;
        _royalties[0].account = _royaltiesReceipientAddress;
        _saveRoyalties(_tokenId, _royalties);
    }

    function saveRoyalties(uint256 id, LibPart.Part[] memory royalties) external onlyOwner {
        _saveRoyalties(id, royalties);
    }

    function updateAccount(uint256 id, address from, address to) external onlyOwner {
        _updateAccount(id, from, to);
    }

    function royaltyInfo(uint256 _tokenId, uint256 _salePrice) external view returns (address receiver, uint256 royaltyAmount) {
        LibPart.Part[] memory _royalties = royalties[_tokenId];
        if(_royalties.length > 0) {
            return (_royalties[0].account, (_salePrice * _royalties[0].value)/10000);
        }
        return (address(0), 0);
    }

    function supportsInterface(bytes4 interfaceId) public view virtual override(AccessControl, ForestAssetsBase, IERC165) returns (bool) {
        return
            interfaceId == LibRoyaltiesV2._INTERFACE_ID_ROYALTIES ||
            interfaceId == _INTERFACE_ID_ERC2981 ||
            super.supportsInterface(interfaceId);
    }

    /*external minting*/
    function mint(
        address account,
        uint256 id,
        uint256 amount,
        bytes calldata data
    ) external override only(PREDICATE_ROLE) {
        _mint(account, id, amount, data);
    }

    function mintBatch(
        address to,
        uint256[] calldata ids,
        uint256[] calldata amounts,
        bytes calldata data
    ) external override only(PREDICATE_ROLE) {
        _mintBatch(to, ids, amounts, data);
    }

    /*For meta transactions support*/
    function _msgSender()
        internal
        override
        view
        returns (address sender)
    {
        return ContextMixin.msgSender();
    }

    /*bridge child token functions*/
    function deposit(address user, bytes calldata depositData)
        external
        override
    {
        require(_msgSender() == depositer &&
            _msgSender() != address(0),
                string(abi.encodePacked(name, ": INSUFFICIENT_PERMISSIONS")));
        (
            uint256[] memory ids,
            uint256[] memory amounts,
            bytes memory data
        ) = abi.decode(depositData, (uint256[], uint256[], bytes));

        require(
            user != address(0),
            "ChildMintableERC1155: INVALID_DEPOSIT_USER"
        );

        _mintBatch(user, ids, amounts, data);
    }

    /**
     * @notice called when user wants to withdraw single token back to root chain
     * @dev Should burn user's tokens. This transaction will be verified when exiting on root chain
     * @param id id to withdraw
     * @param amount amount to withdraw
     */
    function withdrawSingle(uint256 id, uint256 amount) external {
        _burn(_msgSender(), id, amount);
    }

    /**
     * @notice called when user wants to batch withdraw tokens back to root chain
     * @dev Should burn user's tokens. This transaction will be verified when exiting on root chain
     * @param ids ids to withdraw
     * @param amounts amounts to withdraw
     */
    function withdrawBatch(uint256[] calldata ids, uint256[] calldata amounts)
        external
    {
        _burnBatch(_msgSender(), ids, amounts);
    }
}

File 15 of 26 : ForestAssetsBase.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

import "@openzeppelin/contracts/token/ERC1155/IERC1155Receiver.sol";
import "@openzeppelin/contracts/utils/Address.sol";
import "@openzeppelin/contracts/access/Ownable.sol";
import "@openzeppelin/contracts/utils/introspection/ERC165.sol";
import "@openzeppelin/contracts/token/ERC1155/extensions/IERC1155MetadataURI.sol";
import "./StringsUtils.sol";

 //based on ERC1155PresetMinterPauser
 
contract OwnableDelegateProxy { }

contract ProxyRegistry {
  mapping(address => OwnableDelegateProxy) public proxies;
}

contract ForestAssetsBase is Ownable, ERC165, IERC1155MetadataURI {
    using Address for address;

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

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

    string internal _uri;

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

    function uri(uint256 _id) public view virtual override returns (string memory) {
        require(exists(_id), "FA0.8: NONEXISTENT_TOKEN");
        return StringsUtils.strConcat(
            _uri,
            StringsUtils.uint2str(_id)
        );
    }

    function balanceOf(address account, uint256 id) public view virtual override returns (uint256) {
        require(account != address(0), "ERC1155: balance query for the zero address");
        return _balances[id][account];
    }

    function balanceOfBatch(address[] memory accounts, uint256[] memory ids)
        public
        view
        virtual
        override
        returns (uint256[] memory)
    {
        require(accounts.length == ids.length, "ERC1155: accounts and ids length mismatch");

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

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

        return batchBalances;
    }

    function setApprovalForAll(address operator, bool approved) public virtual override {
        require(_msgSender() != operator, "ERC1155: setting approval status for self");

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

    /**
    * Override isApprovedForAll to whitelist user's OpenSea proxy accounts to enable gas-free listings.
    */
    function isApprovedForAll(
        address _owner,
        address _operator
    ) public view virtual override returns (bool isOperator) {
        if(openSeaProxyRegistryAddress != address(0)) {
            // Whitelist OpenSea proxy contract for easy trading.
            ProxyRegistry proxyRegistry =
                ProxyRegistry(openSeaProxyRegistryAddress);
            if (address(proxyRegistry.proxies(_owner)) == _operator) {
                return true;
            }
        }

        return _operatorApprovals[_owner][_operator];
    }

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

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

    function _safeTransferFrom(
        address from,
        address to,
        uint256 id,
        uint256 amount,
        bytes memory data
    ) internal virtual {
        require(to != address(0), "ERC1155: transfer to the zero address");

        address operator = _msgSender();

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

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

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

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

    function _safeBatchTransferFrom(
        address from,
        address to,
        uint256[] memory ids,
        uint256[] memory amounts,
        bytes memory data
    ) internal virtual {
        require(ids.length == amounts.length, "ERC1155: ids and amounts length mismatch");
        require(to != address(0), "ERC1155: transfer to the zero address");

        address operator = _msgSender();

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

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

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

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

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

    function _mint(
        address account,
        uint256 id,
        uint256 amount,
        bytes memory data
    ) internal virtual {
        require(account != address(0), "ERC1155: mint to the zero address");

        address operator = _msgSender();

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

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

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

        _totalSupply[id] += amount;
        require(id != 0 &&
            (_totalSupply[id] <= maxSupply[id] || maxSupply[id] == 0),
            "FA0.8: max supply exceeded or id0 used");
    }

    /**
     * @dev See {ERC1155-_mintBatch}.
     */
    function _mintBatch(
        address to,
        uint256[] memory ids,
        uint256[] memory amounts,
        bytes memory data
    ) internal virtual {
        require(to != address(0), "ERC1155: mint to the zero address");
        require(ids.length == amounts.length, "ERC1155: ids and amounts length mismatch");

        address operator = _msgSender();

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

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

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

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


        for (uint256 i = 0; i < ids.length; ++i) {
            _totalSupply[ids[i]] += amounts[i];
            require(ids[i] != 0 &&
                (_totalSupply[ids[i]] <= maxSupply[ids[i]] || maxSupply[ids[i]] == 0),
                "FA0.8: max supply exceeded or id0 used");
        }
    }

    function _burn(
        address account,
        uint256 id,
        uint256 amount
    ) internal virtual {
        require(account != address(0), "ERC1155: burn from the zero address");

        address operator = _msgSender();

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

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

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


        _totalSupply[id] -= amount;
    }

    /**
     * @dev See {ERC1155-_burnBatch}.
     */
    function _burnBatch(
        address account,
        uint256[] memory ids,
        uint256[] memory amounts
    ) internal virtual {
        require(account != address(0), "ERC1155: burn from the zero address");
        require(ids.length == amounts.length, "ERC1155: ids and amounts length mismatch");

        address operator = _msgSender();

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

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

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

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


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

    function _beforeTokenTransfer(
        address operator,
        address from,
        address to,
        uint256[] memory ids,
        uint256[] memory amounts,
        bytes memory data
    ) internal virtual {
        for (uint256 i = 0; i < ids.length; ++i) {
            require(!paused(0) && !paused(ids[i]), "token transfer while paused");
        }
    }

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

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

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

        return array;
    }

    event PausedSet(address sender, uint256 id, bool pausestate);
    event MaxSupplySet(address sender, uint256 id, uint256 max);

    mapping(uint256 => bool) private _pausedID;
    
    
    string public name;
    string public symbol;

    string public contractURI;

    address public openSeaProxyRegistryAddress;

    mapping(uint256 => uint256) private _totalSupply;

    mapping(uint256 => uint256) public maxSupply;

    constructor(string memory name_,
            string memory symbol_,
            address openSeaProxyRegistryAddress_) {
        
        name = name_;
        symbol = symbol_;

        setOpenSeaProxyRegistryAddress(openSeaProxyRegistryAddress_);
    }

    function paused(uint256 id) public view virtual returns (bool) {
        //pausing 0 means pausing all ids
        return _pausedID[id];
    }

    function pause(uint256 id, bool pauseState) public virtual onlyOwner {
        require(_pausedID[id] != pauseState, "same pause state");
        _pausedID[id] = pauseState;
        emit PausedSet(_msgSender(), id, pauseState);
    }

    function baseURI() public view virtual returns (string memory) {
        return _uri;
    }

    function setContractURI(string memory uri_) public virtual onlyOwner {
        contractURI = uri_;
    }

    function setURI(string memory uri_) public virtual onlyOwner {
        _uri = uri_;
    }

    function setOpenSeaProxyRegistryAddress(address openSeaProxyRegistryAddress_) public virtual onlyOwner {
        openSeaProxyRegistryAddress = openSeaProxyRegistryAddress_;
    }

    function totalSupply(uint256 id) public view virtual returns (uint256) {
        return _totalSupply[id];
    }

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

    function setMaxSupply(uint256 id_, uint256 maxSupply_) public virtual {
        require(owner() == _msgSender(),
            "FA0.8: must be owner");

        require((maxSupply_ < maxSupply[id_] ||
            (maxSupply[id_] == 0 && maxSupply_ != 0)) &&
            totalSupply(id_) <= maxSupply_,
            "FA0.8: can't increase max supply once set or same max supplied");

        maxSupply[id_] = maxSupply_;

        emit MaxSupplySet(_msgSender(), id_, maxSupply_);
    }

    function isForestAsset() public view virtual returns (bool) {
        return true;
    }
}

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

pragma solidity ^0.8.0;

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

pragma solidity ^0.8.0;

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

File 18 of 26 : ERC165.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

import "./IERC165.sol";

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

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

pragma solidity ^0.8.0;

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

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

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

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

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

File 20 of 26 : Context.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

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

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

File 21 of 26 : Address.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

    function _verifyCallResult(
        bool success,
        bytes memory returndata,
        string memory errorMessage
    ) private pure returns (bytes memory) {
        if (success) {
            return returndata;
        } else {
            // Look for revert reason and bubble it up if present
            if (returndata.length > 0) {
                // The easiest way to bubble the revert reason is using memory via assembly

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

File 22 of 26 : IERC1155MetadataURI.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

import "../IERC1155.sol";

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

File 23 of 26 : IERC1155Receiver.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

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

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

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

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

pragma solidity ^0.8.0;

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

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

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

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

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

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

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

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

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

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

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

File 25 of 26 : Ownable.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

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

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

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

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

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

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

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

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

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

File 26 of 26 : AccessControl.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

import "../utils/Context.sol";
import "../utils/Strings.sol";
import "../utils/introspection/ERC165.sol";

/**
 * @dev External interface of AccessControl declared to support ERC165 detection.
 */
interface IAccessControl {
    function hasRole(bytes32 role, address account) external view returns (bool);

    function getRoleAdmin(bytes32 role) external view returns (bytes32);

    function grantRole(bytes32 role, address account) external;

    function revokeRole(bytes32 role, address account) external;

    function renounceRole(bytes32 role, address account) external;
}

/**
 * @dev Contract module that allows children to implement role-based access
 * control mechanisms. This is a lightweight version that doesn't allow enumerating role
 * members except through off-chain means by accessing the contract event logs. Some
 * applications may benefit from on-chain enumerability, for those cases see
 * {AccessControlEnumerable}.
 *
 * Roles are referred to by their `bytes32` identifier. These should be exposed
 * in the external API and be unique. The best way to achieve this is by
 * using `public constant` hash digests:
 *
 * ```
 * bytes32 public constant MY_ROLE = keccak256("MY_ROLE");
 * ```
 *
 * Roles can be used to represent a set of permissions. To restrict access to a
 * function call, use {hasRole}:
 *
 * ```
 * function foo() public {
 *     require(hasRole(MY_ROLE, msg.sender));
 *     ...
 * }
 * ```
 *
 * Roles can be granted and revoked dynamically via the {grantRole} and
 * {revokeRole} functions. Each role has an associated admin role, and only
 * accounts that have a role's admin role can call {grantRole} and {revokeRole}.
 *
 * By default, the admin role for all roles is `DEFAULT_ADMIN_ROLE`, which means
 * that only accounts with this role will be able to grant or revoke other
 * roles. More complex role relationships can be created by using
 * {_setRoleAdmin}.
 *
 * WARNING: The `DEFAULT_ADMIN_ROLE` is also its own admin: it has permission to
 * grant and revoke this role. Extra precautions should be taken to secure
 * accounts that have been granted it.
 */
abstract contract AccessControl is Context, IAccessControl, ERC165 {
    struct RoleData {
        mapping(address => bool) members;
        bytes32 adminRole;
    }

    mapping(bytes32 => RoleData) private _roles;

    bytes32 public constant DEFAULT_ADMIN_ROLE = 0x00;

    /**
     * @dev Emitted when `newAdminRole` is set as ``role``'s admin role, replacing `previousAdminRole`
     *
     * `DEFAULT_ADMIN_ROLE` is the starting admin for all roles, despite
     * {RoleAdminChanged} not being emitted signaling this.
     *
     * _Available since v3.1._
     */
    event RoleAdminChanged(bytes32 indexed role, bytes32 indexed previousAdminRole, bytes32 indexed newAdminRole);

    /**
     * @dev Emitted when `account` is granted `role`.
     *
     * `sender` is the account that originated the contract call, an admin role
     * bearer except when using {_setupRole}.
     */
    event RoleGranted(bytes32 indexed role, address indexed account, address indexed sender);

    /**
     * @dev Emitted when `account` is revoked `role`.
     *
     * `sender` is the account that originated the contract call:
     *   - if using `revokeRole`, it is the admin role bearer
     *   - if using `renounceRole`, it is the role bearer (i.e. `account`)
     */
    event RoleRevoked(bytes32 indexed role, address indexed account, address indexed sender);

    /**
     * @dev Modifier that checks that an account has a specific role. Reverts
     * with a standardized message including the required role.
     *
     * The format of the revert reason is given by the following regular expression:
     *
     *  /^AccessControl: account (0x[0-9a-f]{20}) is missing role (0x[0-9a-f]{32})$/
     *
     * _Available since v4.1._
     */
    modifier onlyRole(bytes32 role) {
        _checkRole(role, _msgSender());
        _;
    }

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

    /**
     * @dev Returns `true` if `account` has been granted `role`.
     */
    function hasRole(bytes32 role, address account) public view override returns (bool) {
        return _roles[role].members[account];
    }

    /**
     * @dev Revert with a standard message if `account` is missing `role`.
     *
     * The format of the revert reason is given by the following regular expression:
     *
     *  /^AccessControl: account (0x[0-9a-f]{20}) is missing role (0x[0-9a-f]{32})$/
     */
    function _checkRole(bytes32 role, address account) internal view {
        if (!hasRole(role, account)) {
            revert(
                string(
                    abi.encodePacked(
                        "AccessControl: account ",
                        Strings.toHexString(uint160(account), 20),
                        " is missing role ",
                        Strings.toHexString(uint256(role), 32)
                    )
                )
            );
        }
    }

    /**
     * @dev Returns the admin role that controls `role`. See {grantRole} and
     * {revokeRole}.
     *
     * To change a role's admin, use {_setRoleAdmin}.
     */
    function getRoleAdmin(bytes32 role) public view override returns (bytes32) {
        return _roles[role].adminRole;
    }

    /**
     * @dev Grants `role` to `account`.
     *
     * If `account` had not been already granted `role`, emits a {RoleGranted}
     * event.
     *
     * Requirements:
     *
     * - the caller must have ``role``'s admin role.
     */
    function grantRole(bytes32 role, address account) public virtual override onlyRole(getRoleAdmin(role)) {
        _grantRole(role, account);
    }

    /**
     * @dev Revokes `role` from `account`.
     *
     * If `account` had been granted `role`, emits a {RoleRevoked} event.
     *
     * Requirements:
     *
     * - the caller must have ``role``'s admin role.
     */
    function revokeRole(bytes32 role, address account) public virtual override onlyRole(getRoleAdmin(role)) {
        _revokeRole(role, account);
    }

    /**
     * @dev Revokes `role` from the calling account.
     *
     * Roles are often managed via {grantRole} and {revokeRole}: this function's
     * purpose is to provide a mechanism for accounts to lose their privileges
     * if they are compromised (such as when a trusted device is misplaced).
     *
     * If the calling account had been granted `role`, emits a {RoleRevoked}
     * event.
     *
     * Requirements:
     *
     * - the caller must be `account`.
     */
    function renounceRole(bytes32 role, address account) public virtual override {
        require(account == _msgSender(), "AccessControl: can only renounce roles for self");

        _revokeRole(role, account);
    }

    /**
     * @dev Grants `role` to `account`.
     *
     * If `account` had not been already granted `role`, emits a {RoleGranted}
     * event. Note that unlike {grantRole}, this function doesn't perform any
     * checks on the calling account.
     *
     * [WARNING]
     * ====
     * This function should only be called from the constructor when setting
     * up the initial roles for the system.
     *
     * Using this function in any other way is effectively circumventing the admin
     * system imposed by {AccessControl}.
     * ====
     */
    function _setupRole(bytes32 role, address account) internal virtual {
        _grantRole(role, account);
    }

    /**
     * @dev Sets `adminRole` as ``role``'s admin role.
     *
     * Emits a {RoleAdminChanged} event.
     */
    function _setRoleAdmin(bytes32 role, bytes32 adminRole) internal virtual {
        emit RoleAdminChanged(role, getRoleAdmin(role), adminRole);
        _roles[role].adminRole = adminRole;
    }

    function _grantRole(bytes32 role, address account) private {
        if (!hasRole(role, account)) {
            _roles[role].members[account] = true;
            emit RoleGranted(role, account, _msgSender());
        }
    }

    function _revokeRole(bytes32 role, address account) private {
        if (hasRole(role, account)) {
            _roles[role].members[account] = false;
            emit RoleRevoked(role, account, _msgSender());
        }
    }
}

Settings
{
  "remappings": [],
  "optimizer": {
    "enabled": true,
    "runs": 200
  },
  "evmVersion": "london",
  "libraries": {
    "/contracts/StringsUtils.sol": {
      "StringsUtils": "0x6d6Af444C3fE5A3325546c12D0D91840fE3d339F"
    }
  },
  "outputSelection": {
    "*": {
      "*": [
        "evm.bytecode",
        "evm.deployedBytecode",
        "abi"
      ]
    }
  }
}

Contract ABI

[{"inputs":[{"internalType":"address","name":"childChainManager","type":"address"},{"internalType":"address","name":"mintableAssetProxy_","type":"address"},{"internalType":"address","name":"openSeaProxyRegistryAddress_","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"account","type":"address"},{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":false,"internalType":"bool","name":"approved","type":"bool"}],"name":"ApprovalForAll","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"sender","type":"address"},{"indexed":false,"internalType":"uint256","name":"id","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"max","type":"uint256"}],"name":"MaxSupplySet","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"userAddress","type":"address"},{"indexed":false,"internalType":"address payable","name":"relayerAddress","type":"address"},{"indexed":false,"internalType":"bytes","name":"functionSignature","type":"bytes"}],"name":"MetaTransactionExecuted","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"sender","type":"address"},{"indexed":false,"internalType":"uint256","name":"id","type":"uint256"},{"indexed":false,"internalType":"bool","name":"pausestate","type":"bool"}],"name":"PausedSet","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"bytes32","name":"role","type":"bytes32"},{"indexed":true,"internalType":"bytes32","name":"previousAdminRole","type":"bytes32"},{"indexed":true,"internalType":"bytes32","name":"newAdminRole","type":"bytes32"}],"name":"RoleAdminChanged","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"bytes32","name":"role","type":"bytes32"},{"indexed":true,"internalType":"address","name":"account","type":"address"},{"indexed":true,"internalType":"address","name":"sender","type":"address"}],"name":"RoleGranted","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"bytes32","name":"role","type":"bytes32"},{"indexed":true,"internalType":"address","name":"account","type":"address"},{"indexed":true,"internalType":"address","name":"sender","type":"address"}],"name":"RoleRevoked","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"tokenId","type":"uint256"},{"components":[{"internalType":"address payable","name":"account","type":"address"},{"internalType":"uint96","name":"value","type":"uint96"}],"indexed":false,"internalType":"struct LibPart.Part[]","name":"royalties","type":"tuple[]"}],"name":"RoyaltiesSet","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":false,"internalType":"uint256[]","name":"ids","type":"uint256[]"},{"indexed":false,"internalType":"uint256[]","name":"values","type":"uint256[]"}],"name":"TransferBatch","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":false,"internalType":"uint256","name":"id","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"value","type":"uint256"}],"name":"TransferSingle","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"string","name":"value","type":"string"},{"indexed":true,"internalType":"uint256","name":"id","type":"uint256"}],"name":"URI","type":"event"},{"inputs":[],"name":"DEFAULT_ADMIN_ROLE","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"ERC712_VERSION","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"PREDICATE_ROLE","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"},{"internalType":"uint256","name":"id","type":"uint256"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address[]","name":"accounts","type":"address[]"},{"internalType":"uint256[]","name":"ids","type":"uint256[]"}],"name":"balanceOfBatch","outputs":[{"internalType":"uint256[]","name":"","type":"uint256[]"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"baseURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"contractURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"user","type":"address"},{"internalType":"bytes","name":"depositData","type":"bytes"}],"name":"deposit","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"depositer","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"userAddress","type":"address"},{"internalType":"bytes","name":"functionSignature","type":"bytes"},{"internalType":"bytes32","name":"sigR","type":"bytes32"},{"internalType":"bytes32","name":"sigS","type":"bytes32"},{"internalType":"uint8","name":"sigV","type":"uint8"}],"name":"executeMetaTransaction","outputs":[{"internalType":"bytes","name":"","type":"bytes"}],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"uint256","name":"id","type":"uint256"}],"name":"exists","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getChainId","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getDomainSeperator","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"user","type":"address"}],"name":"getNonce","outputs":[{"internalType":"uint256","name":"nonce","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"id","type":"uint256"}],"name":"getRaribleV2Royalties","outputs":[{"components":[{"internalType":"address payable","name":"account","type":"address"},{"internalType":"uint96","name":"value","type":"uint96"}],"internalType":"struct LibPart.Part[]","name":"","type":"tuple[]"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"}],"name":"getRoleAdmin","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"},{"internalType":"address","name":"account","type":"address"}],"name":"grantRole","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"},{"internalType":"address","name":"account","type":"address"}],"name":"hasRole","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_owner","type":"address"},{"internalType":"address","name":"_operator","type":"address"}],"name":"isApprovedForAll","outputs":[{"internalType":"bool","name":"isOperator","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"isForestAsset","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"maxSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"},{"internalType":"uint256","name":"id","type":"uint256"},{"internalType":"uint256","name":"amount","type":"uint256"},{"internalType":"bytes","name":"data","type":"bytes"}],"name":"mint","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256[]","name":"ids","type":"uint256[]"},{"internalType":"uint256[]","name":"amounts","type":"uint256[]"},{"internalType":"bytes","name":"data","type":"bytes"}],"name":"mintBatch","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"openSeaProxyRegistryAddress","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"id","type":"uint256"},{"internalType":"bool","name":"pauseState","type":"bool"}],"name":"pause","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"id","type":"uint256"}],"name":"paused","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"},{"internalType":"address","name":"account","type":"address"}],"name":"renounceRole","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"},{"internalType":"address","name":"account","type":"address"}],"name":"revokeRole","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"},{"internalType":"uint256","name":"","type":"uint256"}],"name":"royalties","outputs":[{"internalType":"address payable","name":"account","type":"address"},{"internalType":"uint96","name":"value","type":"uint96"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_tokenId","type":"uint256"},{"internalType":"uint256","name":"_salePrice","type":"uint256"}],"name":"royaltyInfo","outputs":[{"internalType":"address","name":"receiver","type":"address"},{"internalType":"uint256","name":"royaltyAmount","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256[]","name":"ids","type":"uint256[]"},{"internalType":"uint256[]","name":"amounts","type":"uint256[]"},{"internalType":"bytes","name":"data","type":"bytes"}],"name":"safeBatchTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"id","type":"uint256"},{"internalType":"uint256","name":"amount","type":"uint256"},{"internalType":"bytes","name":"data","type":"bytes"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"id","type":"uint256"},{"components":[{"internalType":"address payable","name":"account","type":"address"},{"internalType":"uint96","name":"value","type":"uint96"}],"internalType":"struct LibPart.Part[]","name":"royalties","type":"tuple[]"}],"name":"saveRoyalties","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"operator","type":"address"},{"internalType":"bool","name":"approved","type":"bool"}],"name":"setApprovalForAll","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"uri_","type":"string"}],"name":"setContractURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"id_","type":"uint256"},{"internalType":"uint256","name":"maxSupply_","type":"uint256"}],"name":"setMaxSupply","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"openSeaProxyRegistryAddress_","type":"address"}],"name":"setOpenSeaProxyRegistryAddress","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_tokenId","type":"uint256"},{"internalType":"address payable","name":"_royaltiesReceipientAddress","type":"address"},{"internalType":"uint96","name":"_percentageBasisPoints","type":"uint96"}],"name":"setRoyalties","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"uri_","type":"string"}],"name":"setURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes4","name":"interfaceId","type":"bytes4"}],"name":"supportsInterface","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"id","type":"uint256"}],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"id","type":"uint256"},{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"}],"name":"updateAccount","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_id","type":"uint256"}],"name":"uri","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256[]","name":"ids","type":"uint256[]"},{"internalType":"uint256[]","name":"amounts","type":"uint256[]"}],"name":"withdrawBatch","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"id","type":"uint256"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"withdrawSingle","outputs":[],"stateMutability":"nonpayable","type":"function"}]

6080604052600b805460ff191690553480156200001b57600080fd5b5060405162005118380380620051188339810160408190526200003e9162000597565b6040518060400160405280600f81526020016e151a194811d85b5948119bdc995cdd608a1b815250604051806040016040528060038152602001622a23a360e91b815250848484848482620000a26200009c6200017360201b60201c565b6200018f565b8251620000b7906005906020860190620004d4565b508151620000cd906006906020850190620004d4565b50620000d981620001df565b505050620000ed856200028360201b60201c565b620001036000620000fd62000173565b620002c0565b6001600160a01b038216156200013f576200013f7f12ff340d0cd9c652c747ca35727e68c547d0f0bfa7758d2e77f75acef481b4f283620002c0565b601180546001600160a01b0319166001600160a01b0385161790556200016585620002cc565b505050505050505062000681565b60006200018a6200032d60201b6200201f1760201c565b905090565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b620001e962000173565b6001600160a01b0316620002056000546001600160a01b031690565b6001600160a01b031614620002615760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064015b60405180910390fd5b600880546001600160a01b0319166001600160a01b0392909216919091179055565b80604051602001620002969190620005e1565b60405160208183030381529060405260109080519060200190620002bc929190620004d4565b5050565b620002bc82826200038c565b600b5460ff1615620003125760405162461bcd60e51b815260206004820152600e60248201526d185b1c9958591e481a5b9a5d195960921b604482015260640162000258565b6200031d8162000432565b50600b805460ff19166001179055565b6000333014156200038657600080368080601f0160208091040260200160405190810160405280939291908181526020018383808284376000920191909152505050503601516001600160a01b03169150620003899050565b50335b90565b6000828152600f602090815260408083206001600160a01b038516845290915290205460ff16620002bc576000828152600f602090815260408083206001600160a01b03851684529091529020805460ff19166001179055620003ee62000173565b6001600160a01b0316816001600160a01b0316837f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d60405160405180910390a45050565b6040518060800160405280604f8152602001620050c9604f9139805160209182012082519282019290922060408051808201825260018152603160f81b90840152805180840194909452838101919091527fc89efdaa54c0f20c7adf612882df0950f5a951637e0307cdcb4c672f298b8bc660608401523060808401524660a0808501919091528151808503909101815260c090930190528151910120600c55565b828054620004e29062000644565b90600052602060002090601f01602090048101928262000506576000855562000551565b82601f106200052157805160ff191683800117855562000551565b8280016001018555821562000551579182015b828111156200055157825182559160200191906001019062000534565b506200055f92915062000563565b5090565b5b808211156200055f576000815560010162000564565b80516001600160a01b03811681146200059257600080fd5b919050565b600080600060608486031215620005ad57600080fd5b620005b8846200057a565b9250620005c8602085016200057a565b9150620005d8604085016200057a565b90509250925092565b6000825160005b81811015620006045760208186018101518583015201620005e8565b8181111562000614576000828501525b507f3a20494e53554646494349454e545f5045524d495353494f4e53000000000000920191825250601a01919050565b600181811c908216806200065957607f821691505b602082108114156200067b57634e487b7160e01b600052602260045260246000fd5b50919050565b614a3880620006916000396000f3fe6080604052600436106102c75760003560e01c80635c5fb52111610175578063a217fddf116100dc578063d547741f11610095578063e8a3d4851161006f578063e8a3d4851461094c578063e985e9c514610961578063f242432a14610981578063f2fde38b146109a157600080fd5b8063d547741f146108d8578063e07f2319146108f8578063e72db5fd1461091857600080fd5b8063a217fddf14610809578063a22cb4651461081e578063b7f47d321461083e578063bd85b0391461085e578063cad96cca1461088b578063cf2c52cb146108b857600080fd5b80638da5cb5b1161012e5780638da5cb5b1461075657806391d148541461077457806393578b0414610794578063938e3d7b146107b457806395d89b41146107d4578063a0f0c7b5146107e957600080fd5b80635c5fb521146106785780636c0360eb14610698578063715018a6146106ad578063731133e9146106c2578063869f7594146106e25780638924af741461070f57600080fd5b806320379ee5116102345780632eb2c2d6116101ed57806336568abe116101c757806336568abe146105dc57806337da577c146105fc5780634e1273f41461061c5780634f558e791461064957600080fd5b80632eb2c2d6146105895780632f2ff15d146105a95780633408e470146105c957600080fd5b806320379ee5146104775780632262f53f1461048c578063248a9ca3146104ac5780632a55205a146104dc5780632c1ba8391461051b5780632d0335ab1461055357600080fd5b80630c53c51c116102865780630c53c51c146103c35780630e89341c146103d65780630f7e5970146103f6578063143094db1461042357806319640a65146104435780631f7fdffa1461045757600080fd5b8062dde10e146102cc578062fdd58e1461031157806301ffc9a71461033f57806302fe53051461035f57806306fdde031461038157806308abf026146103a3575b600080fd5b3480156102d857600080fd5b506102fc6102e7366004613d98565b60009081526004602052604090205460ff1690565b60405190151581526020015b60405180910390f35b34801561031d57600080fd5b5061033161032c366004613b3f565b6109c1565b604051908152602001610308565b34801561034b57600080fd5b506102fc61035a366004613dd6565b610a5d565b34801561036b57600080fd5b5061037f61037a366004613e2d565b610a9d565b005b34801561038d57600080fd5b50610396610afd565b6040516103089190614444565b3480156103af57600080fd5b5061037f6103be366004613822565b610b8b565b6103966103d1366004613ac2565b610bf6565b3480156103e257600080fd5b506103966103f1366004613d98565b610de0565b34801561040257600080fd5b50610396604051806040016040528060018152602001603160f81b81525081565b34801561042f57600080fd5b5061037f61043e366004613efe565b610f58565b34801561044f57600080fd5b5060016102fc565b34801561046357600080fd5b5061037f61047236600461398d565b611055565b34801561048357600080fd5b50600c54610331565b34801561049857600080fd5b5061037f6104a7366004614081565b61114f565b3480156104b857600080fd5b506103316104c7366004613d98565b6000908152600f602052604090206001015490565b3480156104e857600080fd5b506104fc6104f7366004614081565b611161565b604080516001600160a01b039093168352602083019190915201610308565b34801561052757600080fd5b5060115461053b906001600160a01b031681565b6040516001600160a01b039091168152602001610308565b34801561055f57600080fd5b5061033161056e366004613822565b6001600160a01b03166000908152600d602052604090205490565b34801561059557600080fd5b5061037f6105a4366004613878565b611267565b3480156105b557600080fd5b5061037f6105c4366004613db1565b611310565b3480156105d557600080fd5b5046610331565b3480156105e857600080fd5b5061037f6105f7366004613db1565b611342565b34801561060857600080fd5b5061037f610617366004614081565b6113cc565b34801561062857600080fd5b5061063c610637366004613bd4565b611561565b604051610308919061440c565b34801561065557600080fd5b506102fc610664366004613d98565b600090815260096020526040902054151590565b34801561068457600080fd5b5061037f610693366004613ca6565b61168a565b3480156106a457600080fd5b506103966116ff565b3480156106b957600080fd5b5061037f611791565b3480156106ce57600080fd5b5061037f6106dd366004613b6b565b6117e6565b3480156106ee57600080fd5b506103316106fd366004613d98565b600a6020526000908152604090205481565b34801561071b57600080fd5b5061072f61072a366004614081565b61187e565b604080516001600160a01b0390931683526001600160601b03909116602083015201610308565b34801561076257600080fd5b506000546001600160a01b031661053b565b34801561078057600080fd5b506102fc61078f366004613db1565b6118c7565b3480156107a057600080fd5b5061037f6107af36600461405e565b6118f2565b3480156107c057600080fd5b5061037f6107cf366004613e2d565b6119fd565b3480156107e057600080fd5b50610396611a59565b3480156107f557600080fd5b5061037f610804366004613f7e565b611a66565b34801561081557600080fd5b50610331600081565b34801561082a57600080fd5b5061037f610839366004613a39565b611ab9565b34801561084a57600080fd5b5060085461053b906001600160a01b031681565b34801561086a57600080fd5b50610331610879366004613d98565b60009081526009602052604090205490565b34801561089757600080fd5b506108ab6108a6366004613d98565b611bcd565b60405161030891906143f9565b3480156108c457600080fd5b5061037f6108d3366004613a6e565b611c5c565b3480156108e457600080fd5b5061037f6108f3366004613db1565b611d63565b34801561090457600080fd5b5061037f610913366004613f3c565b611d8b565b34801561092457600080fd5b506103317f12ff340d0cd9c652c747ca35727e68c547d0f0bfa7758d2e77f75acef481b4f281565b34801561095857600080fd5b50610396611ddf565b34801561096d57600080fd5b506102fc61097c36600461383f565b611dec565b34801561098d57600080fd5b5061037f61099c366004613925565b611ecc565b3480156109ad57600080fd5b5061037f6109bc366004613822565b611f65565b60006001600160a01b038316610a325760405162461bcd60e51b815260206004820152602b60248201527f455243313135353a2062616c616e636520717565727920666f7220746865207a60448201526a65726f206164647265737360a81b60648201526084015b60405180910390fd5b5060008181526001602090815260408083206001600160a01b03861684529091529020545b92915050565b60006001600160e01b03198216631131d2f360e21b1480610a8e57506001600160e01b0319821663152a902d60e11b145b80610a575750610a578261207c565b610aa56120a1565b6001600160a01b0316610ac06000546001600160a01b031690565b6001600160a01b031614610ae65760405162461bcd60e51b8152600401610a2990614633565b8051610af99060039060208401906135fb565b5050565b60058054610b0a90614807565b80601f0160208091040260200160405190810160405280929190818152602001828054610b3690614807565b8015610b835780601f10610b5857610100808354040283529160200191610b83565b820191906000526020600020905b815481529060010190602001808311610b6657829003601f168201915b505050505081565b610b936120a1565b6001600160a01b0316610bae6000546001600160a01b031690565b6001600160a01b031614610bd45760405162461bcd60e51b8152600401610a2990614633565b600880546001600160a01b0319166001600160a01b0392909216919091179055565b60408051606081810183526001600160a01b0388166000818152600d602090815290859020548452830152918101869052610c3487828787876120b0565b610c8a5760405162461bcd60e51b815260206004820152602160248201527f5369676e657220616e64207369676e617475726520646f206e6f74206d6174636044820152600d60fb1b6064820152608401610a29565b6001600160a01b0387166000908152600d6020526040902054610cae9060016121a0565b6001600160a01b0388166000908152600d60205260409081902091909155517f5845892132946850460bff5a0083f71031bc5bf9aadcd40f1de79423eac9b10b90610cfe90899033908a9061432d565b60405180910390a1600080306001600160a01b0316888a604051602001610d269291906141ea565b60408051601f1981840301815290829052610d40916141ce565b6000604051808303816000865af19150503d8060008114610d7d576040519150601f19603f3d011682016040523d82523d6000602084013e610d82565b606091505b509150915081610dd45760405162461bcd60e51b815260206004820152601c60248201527f46756e6374696f6e2063616c6c206e6f74207375636365737366756c000000006044820152606401610a29565b98975050505050505050565b600081815260096020526040902054606090610e3e5760405162461bcd60e51b815260206004820152601860248201527f4641302e383a204e4f4e4558495354454e545f544f4b454e00000000000000006044820152606401610a29565b736d6af444c3fe5a3325546c12d0d91840fe3d339f63ff74927b6003736d6af444c3fe5a3325546c12d0d91840fe3d339f63f76f950e866040518263ffffffff1660e01b8152600401610e9391815260200190565b60006040518083038186803b158015610eab57600080fd5b505af4158015610ebf573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f19168201604052610ee79190810190613e7d565b6040518363ffffffff1660e01b8152600401610f0492919061446a565b60006040518083038186803b158015610f1c57600080fd5b505af4158015610f30573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f19168201604052610a579190810190613e7d565b610f606120a1565b6001600160a01b0316610f7b6000546001600160a01b031690565b6001600160a01b031614610fa15760405162461bcd60e51b8152600401610a2990614633565b604080516001808252818301909252600091816020015b6040805180820190915260008082526020820152815260200190600190039081610fb85790505090508181600081518110610ff557610ff56148c4565b6020026020010151602001906001600160601b031690816001600160601b031681525050828160008151811061102d5761102d6148c4565b60209081029190910101516001600160a01b03909116905261104f84826121b3565b50505050565b7f12ff340d0cd9c652c747ca35727e68c547d0f0bfa7758d2e77f75acef481b4f26110828161078f6120a1565b6010906110a25760405162461bcd60e51b8152600401610a299190614457565b506111458888888080602002602001604051908101604052809392919081815260200183836020028082843760009201919091525050604080516020808c0282810182019093528b82529093508b92508a91829185019084908082843760009201919091525050604080516020601f8b01819004810282018101909252898152925089915088908190840183828082843760009201919091525061233792505050565b5050505050505050565b610af961115a6120a1565b83836125e9565b6000828152600e60209081526040808320805482518185028101850190935280835284938493929190849084015b828210156111de57600084815260209081902060408051808201909152908401546001600160a01b0381168252600160a01b90046001600160601b03168183015282526001909201910161118f565b5050505090506000815111156112575780600081518110611201576112016148c4565b60200260200101516000015161271082600081518110611223576112236148c4565b6020026020010151602001516001600160601b031686611243919061478e565b61124d919061476c565b9250925050611260565b60008092509250505b9250929050565b61126f6120a1565b6001600160a01b0316856001600160a01b0316148061129557506112958561097c6120a1565b6112fc5760405162461bcd60e51b815260206004820152603260248201527f455243313135353a207472616e736665722063616c6c6572206973206e6f74206044820152711bdddb995c881b9bdc88185c1c1c9bdd995960721b6064820152608401610a29565b611309858585858561271c565b5050505050565b6000828152600f60205260409020600101546113338161132e6120a1565b6128cc565b61133d8383612930565b505050565b61134a6120a1565b6001600160a01b0316816001600160a01b0316146113c25760405162461bcd60e51b815260206004820152602f60248201527f416363657373436f6e74726f6c3a2063616e206f6e6c792072656e6f756e636560448201526e103937b632b9903337b91039b2b63360891b6064820152608401610a29565b610af982826129b7565b6113d46120a1565b6001600160a01b03166113ef6000546001600160a01b031690565b6001600160a01b03161461143c5760405162461bcd60e51b8152602060048201526014602482015273232098171c1d1036bab9ba1031329037bbb732b960611b6044820152606401610a29565b6000828152600a602052604090205481108061146e57506000828152600a602052604090205415801561146e57508015155b801561148857506000828152600960205260409020548110155b6114fa5760405162461bcd60e51b815260206004820152603e60248201527f4641302e383a2063616e277420696e637265617365206d617820737570706c7960448201527f206f6e636520736574206f722073616d65206d617820737570706c69656400006064820152608401610a29565b6000828152600a602052604090208190557fccc3b7560f9d81f26c619129ba9fa74ded9a6edb555a04655baaeca673e0a8096115346120a1565b604080516001600160a01b0390921682526020820185905281018390526060015b60405180910390a15050565b606081518351146115c65760405162461bcd60e51b815260206004820152602960248201527f455243313135353a206163636f756e747320616e6420696473206c656e677468604482015268040dad2e6dac2e8c6d60bb1b6064820152608401610a29565b600083516001600160401b038111156115e1576115e16148da565b60405190808252806020026020018201604052801561160a578160200160208202803683370190505b50905060005b84518110156116825761165585828151811061162e5761162e6148c4565b6020026020010151858381518110611648576116486148c4565b60200260200101516109c1565b828281518110611667576116676148c4565b602090810291909101015261167b81614893565b9050611610565b509392505050565b61104f6116956120a1565b85858080602002602001604051908101604052809392919081815260200183836020028082843760009201919091525050604080516020808902828101820190935288825290935088925087918291850190849080828437600092019190915250612a3c92505050565b60606003805461170e90614807565b80601f016020809104026020016040519081016040528092919081815260200182805461173a90614807565b80156117875780601f1061175c57610100808354040283529160200191611787565b820191906000526020600020905b81548152906001019060200180831161176a57829003601f168201915b5050505050905090565b6117996120a1565b6001600160a01b03166117b46000546001600160a01b031690565b6001600160a01b0316146117da5760405162461bcd60e51b8152600401610a2990614633565b6117e46000612c45565b565b7f12ff340d0cd9c652c747ca35727e68c547d0f0bfa7758d2e77f75acef481b4f26118138161078f6120a1565b6010906118335760405162461bcd60e51b8152600401610a299190614457565b5061187686868686868080601f016020809104026020016040519081016040528093929190818152602001838380828437600092019190915250612c9592505050565b505050505050565b600e602052816000526040600020818154811061189a57600080fd5b6000918252602090912001546001600160a01b0381169250600160a01b90046001600160601b0316905082565b6000918252600f602090815260408084206001600160a01b0393909316845291905290205460ff1690565b6118fa6120a1565b6001600160a01b03166119156000546001600160a01b031690565b6001600160a01b03161461193b5760405162461bcd60e51b8152600401610a2990614633565b60008281526004602052604090205460ff16151581151514156119935760405162461bcd60e51b815260206004820152601060248201526f73616d6520706175736520737461746560801b6044820152606401610a29565b6000828152600460205260409020805460ff19168215151790557f1628cf5a1785ad8a68e68d066ccc0e4f0fe28486c443ff9a656b5cba515cdc286119d66120a1565b604080516001600160a01b0390921682526020820185905283151590820152606001611555565b611a056120a1565b6001600160a01b0316611a206000546001600160a01b031690565b6001600160a01b031614611a465760405162461bcd60e51b8152600401610a2990614633565b8051610af99060079060208401906135fb565b60068054610b0a90614807565b611a6e6120a1565b6001600160a01b0316611a896000546001600160a01b031690565b6001600160a01b031614611aaf5760405162461bcd60e51b8152600401610a2990614633565b610af982826121b3565b816001600160a01b0316611acb6120a1565b6001600160a01b03161415611b345760405162461bcd60e51b815260206004820152602960248201527f455243313135353a2073657474696e6720617070726f76616c20737461747573604482015268103337b91039b2b63360b91b6064820152608401610a29565b8060026000611b416120a1565b6001600160a01b03908116825260208083019390935260409182016000908120918716808252919093529120805460ff191692151592909217909155611b856120a1565b6001600160a01b03167f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c3183604051611bc1911515815260200190565b60405180910390a35050565b6060600e6000838152602001908152602001600020805480602002602001604051908101604052809291908181526020016000905b82821015611c5157600084815260209081902060408051808201909152908401546001600160a01b0381168252600160a01b90046001600160601b031681830152825260019092019101611c02565b505050509050919050565b6011546001600160a01b0316611c706120a1565b6001600160a01b0316148015611c9757506000611c8b6120a1565b6001600160a01b031614155b6005604051602001611ca99190614221565b60405160208183030381529060405290611cd65760405162461bcd60e51b8152600401610a299190614444565b5060008080611ce784860186613d11565b919450925090506001600160a01b038616611d575760405162461bcd60e51b815260206004820152602a60248201527f4368696c644d696e7461626c65455243313135353a20494e56414c49445f44456044820152692827a9a4aa2faaa9a2a960b11b6064820152608401610a29565b61187686848484612337565b6000828152600f6020526040902060010154611d818161132e6120a1565b61133d83836129b7565b611d936120a1565b6001600160a01b0316611dae6000546001600160a01b031690565b6001600160a01b031614611dd45760405162461bcd60e51b8152600401610a2990614633565b61133d838383612df5565b60078054610b0a90614807565b6008546000906001600160a01b031615611e9d5760085460405163c455279160e01b81526001600160a01b03858116600483015291821691841690829063c45527919060240160206040518083038186803b158015611e4a57600080fd5b505afa158015611e5e573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611e829190613e10565b6001600160a01b03161415611e9b576001915050610a57565b505b506001600160a01b03918216600090815260026020908152604080832093909416825291909152205460ff1690565b611ed46120a1565b6001600160a01b0316856001600160a01b03161480611efa5750611efa8561097c6120a1565b611f585760405162461bcd60e51b815260206004820152602960248201527f455243313135353a2063616c6c6572206973206e6f74206f776e6572206e6f7260448201526808185c1c1c9bdd995960ba1b6064820152608401610a29565b6113098585858585612eb4565b611f6d6120a1565b6001600160a01b0316611f886000546001600160a01b031690565b6001600160a01b031614611fae5760405162461bcd60e51b8152600401610a2990614633565b6001600160a01b0381166120135760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401610a29565b61201c81612c45565b50565b60003330141561207657600080368080601f0160208091040260200160405190810160405280939291908181526020018383808284376000920191909152505050503601516001600160a01b031691506120799050565b50335b90565b60006001600160e01b03198216637965db0b60e01b1480610a575750610a5782612fe0565b60006120ab61201f565b905090565b60006001600160a01b0386166121165760405162461bcd60e51b815260206004820152602560248201527f4e61746976654d6574615472616e73616374696f6e3a20494e56414c49445f5360448201526424a3a722a960d91b6064820152608401610a29565b600161212961212487613030565b6130ad565b6040805160008152602081018083529290925260ff851690820152606081018690526080810185905260a0016020604051602081039080840390855afa158015612177573d6000803e3d6000fd5b505050602060405103516001600160a01b0316866001600160a01b031614905095945050505050565b60006121ac8284614754565b9392505050565b60005b815181101561232c5760006001600160a01b03168282815181106121dc576121dc6148c4565b6020026020010151600001516001600160a01b0316141561223f5760405162461bcd60e51b815260206004820152601b60248201527f526563697069656e742073686f756c642062652070726573656e7400000000006044820152606401610a29565b818181518110612251576122516148c4565b6020026020010151602001516001600160601b0316600014156122b65760405162461bcd60e51b815260206004820181905260248201527f526f79616c74792076616c75652073686f756c6420626520706f7369746976656044820152606401610a29565b6000838152600e6020526040902082518390839081106122d8576122d86148c4565b6020908102919091018101518254600181018455600093845292829020815191909201516001600160601b0316600160a01b026001600160a01b03909116179101558061232481614893565b9150506121b6565b50610af982826130dd565b6001600160a01b03841661235d5760405162461bcd60e51b8152600401610a29906146b0565b815183511461237e5760405162461bcd60e51b8152600401610a2990614668565b60006123886120a1565b90506123998160008787878761310e565b60005b8451811015612435578381815181106123b7576123b76148c4565b6020026020010151600160008784815181106123d5576123d56148c4565b602002602001015181526020019081526020016000206000886001600160a01b03166001600160a01b03168152602001908152602001600020600082825461241d9190614754565b9091555081905061242d81614893565b91505061239c565b50846001600160a01b031660006001600160a01b0316826001600160a01b03167f4a39dc06d4c0dbc64b70af90fd698a233a518aa5d07e595d983b8c0526c8f7fb878760405161248692919061441f565b60405180910390a461249d816000878787876131e0565b60005b8451811015611876578381815181106124bb576124bb6148c4565b6020026020010151600960008784815181106124d9576124d96148c4565b6020026020010151815260200190815260200160002060008282546124fe9190614754565b92505081905550848181518110612517576125176148c4565b60200260200101516000141580156125bd5750600a6000868381518110612540576125406148c4565b60200260200101518152602001908152602001600020546009600087848151811061256d5761256d6148c4565b60200260200101518152602001908152602001600020541115806125bd5750600a60008683815181106125a2576125a26148c4565b60200260200101518152602001908152602001600020546000145b6125d95760405162461bcd60e51b8152600401610a299061448f565b6125e281614893565b90506124a0565b6001600160a01b03831661260f5760405162461bcd60e51b8152600401610a29906145a6565b60006126196120a1565b90506126498185600061262b8761334b565b6126348761334b565b6040518060200160405280600081525061310e565b60008381526001602090815260408083206001600160a01b03881684529091529020548281101561268c5760405162461bcd60e51b8152600401610a299061451d565b60008481526001602090815260408083206001600160a01b03898116808652918452828520888703905582518981529384018890529092908616917fc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f62910160405180910390a4600084815260096020526040812080548592906127109084906147ad565b90915550505050505050565b815183511461273d5760405162461bcd60e51b8152600401610a2990614668565b6001600160a01b0384166127635760405162461bcd60e51b8152600401610a2990614561565b600061276d6120a1565b905061277d81878787878761310e565b60005b845181101561286657600085828151811061279d5761279d6148c4565b6020026020010151905060008583815181106127bb576127bb6148c4565b60209081029190910181015160008481526001835260408082206001600160a01b038e16835290935291909120549091508181101561280c5760405162461bcd60e51b8152600401610a29906145e9565b60008381526001602090815260408083206001600160a01b038e8116855292528083208585039055908b1682528120805484929061284b908490614754565b925050819055505050508061285f90614893565b9050612780565b50846001600160a01b0316866001600160a01b0316826001600160a01b03167f4a39dc06d4c0dbc64b70af90fd698a233a518aa5d07e595d983b8c0526c8f7fb87876040516128b692919061441f565b60405180910390a46118768187878787876131e0565b6128d682826118c7565b610af9576128ee816001600160a01b03166014613396565b6128f9836020613396565b60405160200161290a9291906142b8565b60408051601f198184030181529082905262461bcd60e51b8252610a2991600401614444565b61293a82826118c7565b610af9576000828152600f602090815260408083206001600160a01b03851684529091529020805460ff191660011790556129736120a1565b6001600160a01b0316816001600160a01b0316837f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d60405160405180910390a45050565b6129c182826118c7565b15610af9576000828152600f602090815260408083206001600160a01b03851684529091529020805460ff191690556129f86120a1565b6001600160a01b0316816001600160a01b0316837ff6391f5c32d9c69d2a47ea670b442974b53935d1edc7fd64eb21e047a839171b60405160405180910390a45050565b6001600160a01b038316612a625760405162461bcd60e51b8152600401610a29906145a6565b8051825114612a835760405162461bcd60e51b8152600401610a2990614668565b6000612a8d6120a1565b9050612aad8185600086866040518060200160405280600081525061310e565b60005b8351811015612b75576000848281518110612acd57612acd6148c4565b602002602001015190506000848381518110612aeb57612aeb6148c4565b60209081029190910181015160008481526001835260408082206001600160a01b038c168352909352919091205490915081811015612b3c5760405162461bcd60e51b8152600401610a299061451d565b60009283526001602090815260408085206001600160a01b038b1686529091529092209103905580612b6d81614893565b915050612ab0565b5060006001600160a01b0316846001600160a01b0316826001600160a01b03167f4a39dc06d4c0dbc64b70af90fd698a233a518aa5d07e595d983b8c0526c8f7fb8686604051612bc692919061441f565b60405180910390a460005b835181101561130957828181518110612bec57612bec6148c4565b602002602001015160096000868481518110612c0a57612c0a6148c4565b602002602001015181526020019081526020016000206000828254612c2f91906147ad565b90915550612c3e905081614893565b9050612bd1565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b6001600160a01b038416612cbb5760405162461bcd60e51b8152600401610a29906146b0565b6000612cc56120a1565b9050612ce681600087612cd78861334b565b612ce08861334b565b8761310e565b60008481526001602090815260408083206001600160a01b038916845290915281208054859290612d18908490614754565b909155505060408051858152602081018590526001600160a01b0380881692600092918516917fc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f62910160405180910390a4612d7881600087878787613531565b60008481526009602052604081208054859290612d96908490614754565b90915550508315801590612dd957506000848152600a6020908152604080832054600990925290912054111580612dd957506000848152600a6020526040902054155b6113095760405162461bcd60e51b8152600401610a299061448f565b6000838152600e6020526040812054905b81811015611309576000858152600e6020526040902080546001600160a01b038616919083908110612e3a57612e3a6148c4565b6000918252602090912001546001600160a01b03161415612ea2576000858152600e60205260409020805484919083908110612e7857612e786148c4565b600091825260209091200180546001600160a01b0319166001600160a01b03929092169190911790555b80612eac81614893565b915050612e06565b6001600160a01b038416612eda5760405162461bcd60e51b8152600401610a2990614561565b6000612ee46120a1565b9050612ef5818787612cd78861334b565b60008481526001602090815260408083206001600160a01b038a16845290915290205483811015612f385760405162461bcd60e51b8152600401610a29906145e9565b60008581526001602090815260408083206001600160a01b038b8116855292528083208785039055908816825281208054869290612f77908490614754565b909155505060408051868152602081018690526001600160a01b03808916928a821692918616917fc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f62910160405180910390a4612fd7828888888888613531565b50505050505050565b60006001600160e01b03198216636cdb3d1360e11b148061301157506001600160e01b031982166303a24d0760e21b145b80610a5757506301ffc9a760e01b6001600160e01b0319831614610a57565b60006040518060800160405280604381526020016149c06043913980516020918201208351848301516040808701518051908601209051613090950193845260208401929092526001600160a01b03166040830152606082015260800190565b604051602081830303815290604052805190602001209050919050565b60006130b8600c5490565b60405161190160f01b6020820152602281019190915260428101839052606201613090565b7f3fa96d7b6bcbfe71ef171666d84db3cf52fa2d1c8afdb1cc8e486177f208b7df82826040516115559291906146f1565b60005b8351811015612fd7576000805260046020527f17ef568e3e12ab5b9c7254a8d58478811de00f9e6eb34345acd53bf8fd09d3ec5460ff161580156131845750613182848281518110613165576131656148c4565b602002602001015160009081526004602052604090205460ff1690565b155b6131d05760405162461bcd60e51b815260206004820152601b60248201527f746f6b656e207472616e73666572207768696c652070617573656400000000006044820152606401610a29565b6131d981614893565b9050613111565b6001600160a01b0384163b156118765760405163bc197c8160e01b81526001600160a01b0385169063bc197c81906132249089908990889088908890600401614362565b602060405180830381600087803b15801561323e57600080fd5b505af192505050801561326e575060408051601f3d908101601f1916820190925261326b91810190613df3565b60015b61331b5761327a6148f0565b806308c379a014156132b4575061328f61490b565b8061329a57506132b6565b8060405162461bcd60e51b8152600401610a299190614444565b505b60405162461bcd60e51b815260206004820152603460248201527f455243313135353a207472616e7366657220746f206e6f6e20455243313135356044820152732932b1b2b4bb32b91034b6b83632b6b2b73a32b960611b6064820152608401610a29565b6001600160e01b0319811663bc197c8160e01b14612fd75760405162461bcd60e51b8152600401610a29906144d5565b60408051600180825281830190925260609160009190602080830190803683370190505090508281600081518110613385576133856148c4565b602090810291909101015292915050565b606060006133a583600261478e565b6133b0906002614754565b6001600160401b038111156133c7576133c76148da565b6040519080825280601f01601f1916602001820160405280156133f1576020820181803683370190505b509050600360fc1b8160008151811061340c5761340c6148c4565b60200101906001600160f81b031916908160001a905350600f60fb1b8160018151811061343b5761343b6148c4565b60200101906001600160f81b031916908160001a905350600061345f84600261478e565b61346a906001614754565b90505b60018111156134e2576f181899199a1a9b1b9c1cb0b131b232b360811b85600f166010811061349e5761349e6148c4565b1a60f81b8282815181106134b4576134b46148c4565b60200101906001600160f81b031916908160001a90535060049490941c936134db816147f0565b905061346d565b5083156121ac5760405162461bcd60e51b815260206004820181905260248201527f537472696e67733a20686578206c656e67746820696e73756666696369656e746044820152606401610a29565b6001600160a01b0384163b156118765760405163f23a6e6160e01b81526001600160a01b0385169063f23a6e619061357590899089908890889088906004016143b4565b602060405180830381600087803b15801561358f57600080fd5b505af19250505080156135bf575060408051601f3d908101601f191682019092526135bc91810190613df3565b60015b6135cb5761327a6148f0565b6001600160e01b0319811663f23a6e6160e01b14612fd75760405162461bcd60e51b8152600401610a29906144d5565b82805461360790614807565b90600052602060002090601f016020900481019282613629576000855561366f565b82601f1061364257805160ff191683800117855561366f565b8280016001018555821561366f579182015b8281111561366f578251825591602001919060010190613654565b5061367b92915061367f565b5090565b5b8082111561367b5760008155600101613680565b600061369f8361472d565b6040516136ac8282614867565b8092508481528585850111156136c157600080fd5b8484602083013760006020868301015250509392505050565b60008083601f8401126136ec57600080fd5b5081356001600160401b0381111561370357600080fd5b6020830191508360208260051b850101111561126057600080fd5b600082601f83011261372f57600080fd5b8135602061373c8261470a565b6040516137498282614867565b8381528281019150858301600585901b8701840188101561376957600080fd5b60005b858110156137885781358452928401929084019060010161376c565b5090979650505050505050565b803580151581146137a557600080fd5b919050565b60008083601f8401126137bc57600080fd5b5081356001600160401b038111156137d357600080fd5b60208301915083602082850101111561126057600080fd5b600082601f8301126137fc57600080fd5b6121ac83833560208501613694565b80356001600160601b03811681146137a557600080fd5b60006020828403121561383457600080fd5b81356121ac81614994565b6000806040838503121561385257600080fd5b823561385d81614994565b9150602083013561386d81614994565b809150509250929050565b600080600080600060a0868803121561389057600080fd5b853561389b81614994565b945060208601356138ab81614994565b935060408601356001600160401b03808211156138c757600080fd5b6138d389838a0161371e565b945060608801359150808211156138e957600080fd5b6138f589838a0161371e565b9350608088013591508082111561390b57600080fd5b50613918888289016137eb565b9150509295509295909350565b600080600080600060a0868803121561393d57600080fd5b853561394881614994565b9450602086013561395881614994565b9350604086013592506060860135915060808601356001600160401b0381111561398157600080fd5b613918888289016137eb565b60008060008060008060006080888a0312156139a857600080fd5b87356139b381614994565b965060208801356001600160401b03808211156139cf57600080fd5b6139db8b838c016136da565b909850965060408a01359150808211156139f457600080fd5b613a008b838c016136da565b909650945060608a0135915080821115613a1957600080fd5b50613a268a828b016137aa565b989b979a50959850939692959293505050565b60008060408385031215613a4c57600080fd5b8235613a5781614994565b9150613a6560208401613795565b90509250929050565b600080600060408486031215613a8357600080fd5b8335613a8e81614994565b925060208401356001600160401b03811115613aa957600080fd5b613ab5868287016137aa565b9497909650939450505050565b600080600080600060a08688031215613ada57600080fd5b8535613ae581614994565b945060208601356001600160401b03811115613b0057600080fd5b613b0c888289016137eb565b9450506040860135925060608601359150608086013560ff81168114613b3157600080fd5b809150509295509295909350565b60008060408385031215613b5257600080fd5b8235613b5d81614994565b946020939093013593505050565b600080600080600060808688031215613b8357600080fd5b8535613b8e81614994565b9450602086013593506040860135925060608601356001600160401b03811115613bb757600080fd5b613bc3888289016137aa565b969995985093965092949392505050565b60008060408385031215613be757600080fd5b82356001600160401b0380821115613bfe57600080fd5b818501915085601f830112613c1257600080fd5b81356020613c1f8261470a565b604051613c2c8282614867565b8381528281019150858301600585901b870184018b1015613c4c57600080fd5b600096505b84871015613c78578035613c6481614994565b835260019690960195918301918301613c51565b5096505086013592505080821115613c8f57600080fd5b50613c9c8582860161371e565b9150509250929050565b60008060008060408587031215613cbc57600080fd5b84356001600160401b0380821115613cd357600080fd5b613cdf888389016136da565b90965094506020870135915080821115613cf857600080fd5b50613d05878288016136da565b95989497509550505050565b600080600060608486031215613d2657600080fd5b83356001600160401b0380821115613d3d57600080fd5b613d498783880161371e565b94506020860135915080821115613d5f57600080fd5b613d6b8783880161371e565b93506040860135915080821115613d8157600080fd5b50613d8e868287016137eb565b9150509250925092565b600060208284031215613daa57600080fd5b5035919050565b60008060408385031215613dc457600080fd5b82359150602083013561386d81614994565b600060208284031215613de857600080fd5b81356121ac816149a9565b600060208284031215613e0557600080fd5b81516121ac816149a9565b600060208284031215613e2257600080fd5b81516121ac81614994565b600060208284031215613e3f57600080fd5b81356001600160401b03811115613e5557600080fd5b8201601f81018413613e6657600080fd5b613e7584823560208401613694565b949350505050565b600060208284031215613e8f57600080fd5b81516001600160401b03811115613ea557600080fd5b8201601f81018413613eb657600080fd5b8051613ec18161472d565b604051613ece8282614867565b828152866020848601011115613ee357600080fd5b613ef48360208301602087016147c4565b9695505050505050565b600080600060608486031215613f1357600080fd5b833592506020840135613f2581614994565b9150613f336040850161380b565b90509250925092565b600080600060608486031215613f5157600080fd5b833592506020840135613f6381614994565b91506040840135613f7381614994565b809150509250925092565b6000806040808486031215613f9257600080fd5b833592506020808501356001600160401b03811115613fb057600080fd5b8501601f81018713613fc157600080fd5b8035613fcc8161470a565b8451613fd88282614867565b8281528481019150838501600684901b850186018b1015613ff857600080fd5b60009450845b8481101561404d5787828d031215614014578586fd5b875161401f81614842565b823561402a81614994565b815261403783890161380b565b8189015284529286019290870190600101613ffe565b50979a909950975050505050505050565b6000806040838503121561407157600080fd5b82359150613a6560208401613795565b6000806040838503121561409457600080fd5b50508035926020909101359150565b600081518084526020808501945080840160005b838110156140f057815180516001600160a01b031688528301516001600160601b031683880152604090960195908201906001016140b7565b509495945050505050565b600081518084526020808501945080840160005b838110156140f05781518752958201959082019060010161410f565b600081518084526141438160208601602086016147c4565b601f01601f19169290920160200192915050565b6000815461416481614807565b8085526020600183811680156141815760018114614195576141c3565b60ff198516888401526040880195506141c3565b866000528260002060005b858110156141bb5781548a82018601529083019084016141a0565b890184019650505b505050505092915050565b600082516141e08184602087016147c4565b9190910192915050565b600083516141fc8184602088016147c4565b60609390931b6bffffffffffffffffffffffff19169190920190815260140192915050565b600080835461422f81614807565b60018281168015614247576001811461425857614287565b60ff19841687528287019450614287565b8760005260208060002060005b8581101561427e5781548a820152908401908201614265565b50505082870194505b50507f3a20494e53554646494349454e545f5045524d495353494f4e5300000000000083525050601a019392505050565b7f416363657373436f6e74726f6c3a206163636f756e74200000000000000000008152600083516142f08160178501602088016147c4565b7001034b99036b4b9b9b4b733903937b6329607d1b60179184019182015283516143218160288401602088016147c4565b01602801949350505050565b6001600160a01b038481168252831660208201526060604082018190526000906143599083018461412b565b95945050505050565b6001600160a01b0386811682528516602082015260a06040820181905260009061438e908301866140fb565b82810360608401526143a081866140fb565b90508281036080840152610dd4818561412b565b6001600160a01b03868116825285166020820152604081018490526060810183905260a0608082018190526000906143ee9083018461412b565b979650505050505050565b6020815260006121ac60208301846140a3565b6020815260006121ac60208301846140fb565b60408152600061443260408301856140fb565b828103602084015261435981856140fb565b6020815260006121ac602083018461412b565b6020815260006121ac6020830184614157565b60408152600061447d6040830185614157565b8281036020840152614359818561412b565b60208082526026908201527f4641302e383a206d617820737570706c79206578636565646564206f722069646040820152650c081d5cd95960d21b606082015260800190565b60208082526028908201527f455243313135353a204552433131353552656365697665722072656a656374656040820152676420746f6b656e7360c01b606082015260800190565b60208082526024908201527f455243313135353a206275726e20616d6f756e7420657863656564732062616c604082015263616e636560e01b606082015260800190565b60208082526025908201527f455243313135353a207472616e7366657220746f20746865207a65726f206164604082015264647265737360d81b606082015260800190565b60208082526023908201527f455243313135353a206275726e2066726f6d20746865207a65726f206164647260408201526265737360e81b606082015260800190565b6020808252602a908201527f455243313135353a20696e73756666696369656e742062616c616e636520666f60408201526939103a3930b739b332b960b11b606082015260800190565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b60208082526028908201527f455243313135353a2069647320616e6420616d6f756e7473206c656e677468206040820152670dad2e6dac2e8c6d60c31b606082015260800190565b60208082526021908201527f455243313135353a206d696e7420746f20746865207a65726f206164647265736040820152607360f81b606082015260800190565b828152604060208201526000613e7560408301846140a3565b60006001600160401b03821115614723576147236148da565b5060051b60200190565b60006001600160401b03821115614746576147466148da565b50601f01601f191660200190565b60008219821115614767576147676148ae565b500190565b60008261478957634e487b7160e01b600052601260045260246000fd5b500490565b60008160001904831182151516156147a8576147a86148ae565b500290565b6000828210156147bf576147bf6148ae565b500390565b60005b838110156147df5781810151838201526020016147c7565b8381111561104f5750506000910152565b6000816147ff576147ff6148ae565b506000190190565b600181811c9082168061481b57607f821691505b6020821081141561483c57634e487b7160e01b600052602260045260246000fd5b50919050565b604081018181106001600160401b0382111715614861576148616148da565b60405250565b601f8201601f191681016001600160401b038111828210171561488c5761488c6148da565b6040525050565b60006000198214156148a7576148a76148ae565b5060010190565b634e487b7160e01b600052601160045260246000fd5b634e487b7160e01b600052603260045260246000fd5b634e487b7160e01b600052604160045260246000fd5b600060033d11156120795760046000803e5060005160e01c90565b600060443d10156149195790565b6040516003193d81016004833e81513d6001600160401b03816024840111818411171561494857505050505090565b82850191508151818111156149605750505050505090565b843d870101602082850101111561497a5750505050505090565b61498960208286010187614867565b509095945050505050565b6001600160a01b038116811461201c57600080fd5b6001600160e01b03198116811461201c57600080fdfe4d6574615472616e73616374696f6e2875696e74323536206e6f6e63652c616464726573732066726f6d2c62797465732066756e6374696f6e5369676e617475726529a264697066735822122058ca488aa6e850c334003c5b69d3a7d9bc58321d9a8bb2350d5c59617a06c09064736f6c63430008070033454950373132446f6d61696e28737472696e67206e616d652c737472696e672076657273696f6e2c6164647265737320766572696679696e67436f6e74726163742c627974657333322073616c7429000000000000000000000000b5505a6d998549090530911180f38ac5130101c600000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000

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

000000000000000000000000b5505a6d998549090530911180f38ac5130101c600000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000

-----Decoded View---------------
Arg [0] : childChainManager (address): 0xb5505a6d998549090530911180f38ac5130101c6
Arg [1] : mintableAssetProxy_ (address): 0x0000000000000000000000000000000000000000
Arg [2] : openSeaProxyRegistryAddress_ (address): 0x0000000000000000000000000000000000000000

-----Encoded View---------------
3 Constructor Arguments found :
Arg [0] : 000000000000000000000000b5505a6d998549090530911180f38ac5130101c6
Arg [1] : 0000000000000000000000000000000000000000000000000000000000000000
Arg [2] : 0000000000000000000000000000000000000000000000000000000000000000


Block Transaction Gas Used Reward
Age Block Fee Address BC Fee Address Voting Power Jailed Incoming
Block Uncle Number Difficulty Gas Used Reward
Loading