Overview
TokenID
340282366920938463463374607431768217680
Total Transfers
-
Market
Onchain Market Cap
$0.00
Circulating Supply Market Cap
-
Other Info
Token Contract
Loading...
Loading
Loading...
Loading
Loading...
Loading
# | Exchange | Pair | Price | 24H Volume | % Volume |
---|
Contract Name:
Super1155
Compiler Version
v0.7.6+commit.7338295f
Optimization Enabled:
Yes with 0 runs
Other Settings:
default evmVersion
Contract Source Code (Solidity Standard Json-Input format)
// SPDX-License-Identifier: GPL-3.0 pragma solidity 0.7.6; pragma experimental ABIEncoderV2; import "@openzeppelin/contracts/introspection/ERC165.sol"; import "@openzeppelin/contracts/token/ERC1155/IERC1155.sol"; import "@openzeppelin/contracts/token/ERC1155/IERC1155MetadataURI.sol"; import "@openzeppelin/contracts/token/ERC1155/IERC1155Receiver.sol"; import "@openzeppelin/contracts/math/SafeMath.sol"; import "@openzeppelin/contracts/utils/Address.sol"; import "./access/PermitControl.sol"; import "./proxy/StubProxyRegistry.sol"; /** @title An ERC-1155 item creation contract. @author Tim Clancy This contract represents the NFTs within a single collection. It allows for a designated collection owner address to manage the creation of NFTs within this collection. The collection owner grants approval to or removes approval from other addresses governing their ability to mint NFTs from this collection. This contract is forked from the inherited OpenZeppelin dependency, and uses ideas from the original ERC-1155 reference implementation. July 19th, 2021. */ contract Super1155 is PermitControl, ERC165, IERC1155, IERC1155MetadataURI { using Address for address; using SafeMath for uint256; /// The public identifier for the right to set this contract's metadata URI. bytes32 public constant SET_URI = keccak256("SET_URI"); /// The public identifier for the right to set this contract's proxy registry. bytes32 public constant SET_PROXY_REGISTRY = keccak256("SET_PROXY_REGISTRY"); /// The public identifier for the right to configure item groups. bytes32 public constant CONFIGURE_GROUP = keccak256("CONFIGURE_GROUP"); /// The public identifier for the right to mint items. bytes32 public constant MINT = keccak256("MINT"); /// The public identifier for the right to burn items. bytes32 public constant BURN = keccak256("BURN"); /// The public identifier for the right to set item metadata. bytes32 public constant SET_METADATA = keccak256("SET_METADATA"); /// The public identifier for the right to lock the metadata URI. bytes32 public constant LOCK_URI = keccak256("LOCK_URI"); /// The public identifier for the right to lock an item's metadata. bytes32 public constant LOCK_ITEM_URI = keccak256("LOCK_ITEM_URI"); /// The public identifier for the right to disable item creation. bytes32 public constant LOCK_CREATION = keccak256("LOCK_CREATION"); /// @dev Supply the magic number for the required ERC-1155 interface. bytes4 private constant INTERFACE_ERC1155 = 0xd9b67a26; /// @dev Supply the magic number for the required ERC-1155 metadata extension. bytes4 private constant INTERFACE_ERC1155_METADATA_URI = 0x0e89341c; /// @dev A mask for isolating an item's group ID. uint256 private constant GROUP_MASK = uint256(uint128(~0)) << 128; /// The public name of this contract. string public name; /** The ERC-1155 URI for tracking item metadata, supporting {id} substitution. For example: https://token-cdn-domain/{id}.json. See the ERC-1155 spec for more details: https://eips.ethereum.org/EIPS/eip-1155#metadata. */ string public metadataUri; /// A proxy registry address for supporting automatic delegated approval. address public proxyRegistryAddress; /// @dev A mapping from each token ID to per-address balances. mapping (uint256 => mapping(address => uint256)) private balances; /// A mapping from each group ID to per-address balances. mapping (uint256 => mapping(address => uint256)) public groupBalances; /// A mapping from each address to a collection-wide balance. mapping(address => uint256) public totalBalances; /** @dev This is a mapping from each address to per-address operator approvals. Operators are those addresses that have been approved to transfer tokens on behalf of the approver. Transferring tokens includes the right to burn tokens. */ mapping (address => mapping(address => bool)) private operatorApprovals; /** This enumeration lists the various supply types that each item group may use. In general, the administrator of this collection or those permissioned to do so may move from a more-permissive supply type to a less-permissive. For example: an uncapped or flexible supply type may be converted to a capped supply type. A capped supply type may not be uncapped later, however. @param Capped There exists a fixed cap on the size of the item group. The cap is set by `supplyData`. @param Uncapped There is no cap on the size of the item group. The value of `supplyData` cannot be set below the current circulating supply but is otherwise ignored. @param Flexible There is a cap which can be raised or lowered (down to circulating supply) freely. The value of `supplyData` cannot be set below the current circulating supply and determines the cap. */ enum SupplyType { Capped, Uncapped, Flexible } /** This enumeration lists the various item types that each item group may use. In general, these are static once chosen. @param Nonfungible The item group is truly nonfungible where each ID may be used only once. The value of `itemData` is ignored. @param Fungible The item group is truly fungible and collapses into a single ID. The value of `itemData` is ignored. @param Semifungible The item group may be broken up across multiple repeating token IDs. The value of `itemData` is the cap of any single token ID in the item group. */ enum ItemType { Nonfungible, Fungible, Semifungible } /** This enumeration lists the various burn types that each item group may use. These are static once chosen. @param None The items in this group may not be burnt. The value of `burnData` is ignored. @param Burnable The items in this group may be burnt. The value of `burnData` is the maximum that may be burnt. @param Replenishable The items in this group, once burnt, may be reminted by the owner. The value of `burnData` is ignored. */ enum BurnType { None, Burnable, Replenishable } /** This struct is a source of mapping-free input to the `configureGroup` function. It defines the settings for a particular item group. @param name A name for the item group. @param supplyType The supply type for this group of items. @param supplyData An optional integer used by some `supplyType` values. @param itemType The type of item represented by this item group. @param itemData An optional integer used by some `itemType` values. @param burnType The type of burning permitted by this item group. @param burnData An optional integer used by some `burnType` values. */ struct ItemGroupInput { string name; SupplyType supplyType; uint256 supplyData; ItemType itemType; uint256 itemData; BurnType burnType; uint256 burnData; } /** This struct defines the settings for a particular item group and is tracked in storage. @param initialized Whether or not this `ItemGroup` has been initialized. @param name A name for the item group. @param supplyType The supply type for this group of items. @param supplyData An optional integer used by some `supplyType` values. @param itemType The type of item represented by this item group. @param itemData An optional integer used by some `itemType` values. @param burnType The type of burning permitted by this item group. @param burnData An optional integer used by some `burnType` values. @param circulatingSupply The number of individual items within this group in circulation. @param mintCount The number of times items in this group have been minted. @param burnCount The number of times items in this group have been burnt. */ struct ItemGroup { bool initialized; string name; SupplyType supplyType; uint256 supplyData; ItemType itemType; uint256 itemData; BurnType burnType; uint256 burnData; uint256 circulatingSupply; uint256 mintCount; uint256 burnCount; } /// A mapping of data for each item group. mapping (uint256 => ItemGroup) public itemGroups; /// A mapping of circulating supplies for each individual token. mapping (uint256 => uint256) public circulatingSupply; /// A mapping of the number of times each individual token has been minted. mapping (uint256 => uint256) public mintCount; /// A mapping of the number of times each individual token has been burnt. mapping (uint256 => uint256) public burnCount; /** A mapping of token ID to a boolean representing whether the item's metadata has been explicitly frozen via a call to `lockURI(string calldata _uri, uint256 _id)`. Do note that it is possible for an item's mapping here to be false while still having frozen metadata if the item collection as a whole has had its `uriLocked` value set to true. */ mapping (uint256 => bool) public metadataFrozen; /** A public mapping of optional on-chain metadata for each token ID. A token's on-chain metadata is unable to be changed if the item's metadata URI has been permanently fixed or if the collection's metadata URI as a whole has been frozen. */ mapping (uint256 => string) public metadata; /// Whether or not the metadata URI has been locked to future changes. bool public uriLocked; /// Whether or not the item collection has been locked to all further minting. bool public locked; /** An event that gets emitted when the metadata collection URI is changed. @param oldURI The old metadata URI. @param newURI The new metadata URI. */ event ChangeURI(string indexed oldURI, string indexed newURI); /** An event that gets emitted when the proxy registry address is changed. @param oldRegistry The old proxy registry address. @param newRegistry The new proxy registry address. */ event ChangeProxyRegistry(address indexed oldRegistry, address indexed newRegistry); /** An event that gets emitted when an item group is configured. @param manager The caller who configured the item group `_groupId`. @param groupId The groupId being configured. @param newGroup The new group configuration. */ event ItemGroupConfigured(address indexed manager, uint256 groupId, ItemGroupInput indexed newGroup); /** An event that gets emitted when the item collection is locked to further creation. @param locker The caller who locked the collection. */ event CollectionLocked(address indexed locker); /** An event that gets emitted when a token ID has its on-chain metadata changed. @param changer The caller who triggered the metadata change. @param id The ID of the token which had its metadata changed. @param oldMetadata The old metadata of the token. @param newMetadata The new metadata of the token. */ event MetadataChanged(address indexed changer, uint256 indexed id, string oldMetadata, string indexed newMetadata); /** An event that indicates we have set a permanent metadata URI for a token. @param _value The value of the permanent metadata URI. @param _id The token ID associated with the permanent metadata value. */ event PermanentURI(string _value, uint256 indexed _id); /** A modifier which allows only the super-administrative owner or addresses with a specified valid right to perform a call on some specific item. Rights can be applied to the universal circumstance, the item-group-level circumstance, or to the circumstance of the item ID itself. @param _id The item ID on which we check for the validity of the specified `right`. @param _right The right to validate for the calling address. It must be non-expired and exist within the specified `_itemId`. */ modifier hasItemRight(uint256 _id, bytes32 _right) { uint256 groupId = (_id & GROUP_MASK) >> 128; if (_msgSender() == owner()) { _; } else if (hasRightUntil(_msgSender(), UNIVERSAL, _right) > block.timestamp) { _; } else if (hasRightUntil(_msgSender(), bytes32(groupId), _right) > block.timestamp) { _; } else if (hasRightUntil(_msgSender(), bytes32(_id), _right) > block.timestamp) { _; } } /** Construct a new ERC-1155 item collection. @param _owner The address of the administrator governing this collection. @param _name The name to assign to this item collection contract. @param _uri The metadata URI to perform later token ID substitution with. @param _proxyRegistryAddress The address of a proxy registry contract. */ constructor(address _owner, string memory _name, string memory _uri, address _proxyRegistryAddress) public { // Register the ERC-165 interfaces. _registerInterface(INTERFACE_ERC1155); _registerInterface(INTERFACE_ERC1155_METADATA_URI); // Do not perform a redundant ownership transfer if the deployer should // remain as the owner of the collection. if (_owner != owner()) { transferOwnership(_owner); } // Continue initialization. name = _name; metadataUri = _uri; proxyRegistryAddress = _proxyRegistryAddress; } /** Return a version number for this contract's interface. */ function version() external virtual override pure returns (uint256) { return 1; } /** Return the item collection's metadata URI. This implementation returns the same URI for all tokens within the collection and relies on client-side ID substitution per https://eips.ethereum.org/EIPS/eip-1155#metadata. Per said specification, clients calling this function must replace the {id} substring with the actual token ID in hex, not prefixed by 0x, and padded to 64 characters in length. @return The metadata URI string of the item with ID `_itemId`. */ function uri(uint256) external override view returns (string memory) { return metadataUri; } /** Allow the item collection owner or an approved manager to update the metadata URI of this collection. This implementation relies on a single URI for all items within the collection, and as such does not emit the standard URI event. Instead, we emit our own event to reflect changes in the URI. @param _uri The new URI to update to. */ function setURI(string calldata _uri) external virtual hasValidPermit(UNIVERSAL, SET_URI) { require(!uriLocked, "Super1155: the collection URI has been permanently locked"); string memory oldURI = metadataUri; metadataUri = _uri; emit ChangeURI(oldURI, _uri); } /** Allow the item collection owner or an approved manager to update the proxy registry address handling delegated approval. @param _proxyRegistryAddress The address of the new proxy registry to update to. */ function setProxyRegistry(address _proxyRegistryAddress) external virtual hasValidPermit(UNIVERSAL, SET_PROXY_REGISTRY) { address oldRegistry = proxyRegistryAddress; proxyRegistryAddress = _proxyRegistryAddress; emit ChangeProxyRegistry(oldRegistry, _proxyRegistryAddress); } /** Retrieve the balance of a particular token `_id` for a particular address `_owner`. @param _owner The owner to check for this token balance. @param _id The ID of the token to check for a balance. @return The amount of token `_id` owned by `_owner`. */ function balanceOf(address _owner, uint256 _id) public override view virtual returns (uint256) { require(_owner != address(0), "ERC1155: balance query for the zero address"); return balances[_id][_owner]; } /** Retrieve in a single call the balances of some mulitple particular token `_ids` held by corresponding `_owners`. @param _owners The owners to check for token balances. @param _ids The IDs of tokens to check for balances. @return the amount of each token owned by each owner. */ function balanceOfBatch(address[] calldata _owners, uint256[] calldata _ids) external override view virtual returns (uint256[] memory) { require(_owners.length == _ids.length, "ERC1155: accounts and ids length mismatch"); // Populate and return an array of balances. uint256[] memory batchBalances = new uint256[](_owners.length); for (uint256 i = 0; i < _owners.length; ++i) { batchBalances[i] = balanceOf(_owners[i], _ids[i]); } return batchBalances; } /** This function returns true if `_operator` is approved to transfer items owned by `_owner`. This approval check features an override to explicitly whitelist any addresses delegated in the proxy registry. @param _owner The owner of items to check for transfer ability. @param _operator The potential transferrer of `_owner`'s items. @return Whether `_operator` may transfer items owned by `_owner`. */ function isApprovedForAll(address _owner, address _operator) public override view virtual returns (bool) { StubProxyRegistry proxyRegistry = StubProxyRegistry(proxyRegistryAddress); if (address(proxyRegistry.proxies(_owner)) == _operator) { return true; } // We did not find an explicit whitelist in the proxy registry. return operatorApprovals[_owner][_operator]; } /** Enable or disable approval for a third party `_operator` address to manage (transfer or burn) all of the caller's tokens. @param _operator The address to grant management rights over all of the caller's tokens. @param _approved The status of the `_operator`'s approval for the caller. */ function setApprovalForAll(address _operator, bool _approved) external override virtual { require(_msgSender() != _operator, "ERC1155: setting approval status for self"); operatorApprovals[_msgSender()][_operator] = _approved; emit ApprovalForAll(_msgSender(), _operator, _approved); } /** This private helper function converts a number into a single-element array. @param _element The element to convert to an array. @return The array containing the single `_element`. */ function _asSingletonArray(uint256 _element) private pure returns (uint256[] memory) { uint256[] memory array = new uint256[](1); array[0] = _element; return array; } /** An inheritable and configurable pre-transfer hook that can be overridden. It fires before any token transfer, including mints and burns. @param _operator The caller who triggers the token transfer. @param _from The address to transfer tokens from. @param _to The address to transfer tokens to. @param _ids The specific token IDs to transfer. @param _amounts The amounts of the specific `_ids` to transfer. @param _data Additional call data to send with this transfer. */ function _beforeTokenTransfer(address _operator, address _from, address _to, uint256[] memory _ids, uint256[] memory _amounts, bytes memory _data) internal virtual { } /** ERC-1155 dictates that any contract which wishes to receive ERC-1155 tokens must explicitly designate itself as such. This function checks for such designation to prevent undesirable token transfers. @param _operator The caller who triggers the token transfer. @param _from The address to transfer tokens from. @param _to The address to transfer tokens to. @param _id The specific token ID to transfer. @param _amount The amount of the specific `_id` to transfer. @param _data Additional call data to send with this transfer. */ function _doSafeTransferAcceptanceCheck(address _operator, address _from, address _to, uint256 _id, uint256 _amount, bytes calldata _data) private { if (_to.isContract()) { try IERC1155Receiver(_to).onERC1155Received(_operator, _from, _id, _amount, _data) returns (bytes4 response) { if (response != IERC1155Receiver(_to).onERC1155Received.selector) { revert("ERC1155: ERC1155Receiver rejected tokens"); } } catch Error(string memory reason) { revert(reason); } catch { revert("ERC1155: transfer to non ERC1155Receiver implementer"); } } } /** Transfer on behalf of a caller or one of their authorized token managers items from one address to another. @param _from The address to transfer tokens from. @param _to The address to transfer tokens to. @param _id The specific token ID to transfer. @param _amount The amount of the specific `_id` to transfer. @param _data Additional call data to send with this transfer. */ function safeTransferFrom(address _from, address _to, uint256 _id, uint256 _amount, bytes calldata _data) external override virtual { require(_to != address(0), "ERC1155: transfer to the zero address"); require(_from == _msgSender() || isApprovedForAll(_from, _msgSender()), "ERC1155: caller is not owner nor approved"); // Validate transfer safety and send tokens away. address operator = _msgSender(); _beforeTokenTransfer(operator, _from, _to, _asSingletonArray(_id), _asSingletonArray(_amount), _data); // Retrieve the item's group ID. uint256 shiftedGroupId = (_id & GROUP_MASK); uint256 groupId = shiftedGroupId >> 128; // Update all specially-tracked group-specific balances. balances[_id][_from] = balances[_id][_from].sub(_amount, "ERC1155: insufficient balance for transfer"); balances[_id][_to] = balances[_id][_to].add(_amount); groupBalances[groupId][_from] = groupBalances[groupId][_from].sub(_amount); groupBalances[groupId][_to] = groupBalances[groupId][_to].add(_amount); totalBalances[_from] = totalBalances[_from].sub(_amount); totalBalances[_to] = totalBalances[_to].add(_amount); // Emit the transfer event and perform the safety check. emit TransferSingle(operator, _from, _to, _id, _amount); _doSafeTransferAcceptanceCheck(operator, _from, _to, _id, _amount, _data); } /** The batch equivalent of `_doSafeTransferAcceptanceCheck()`. @param _operator The caller who triggers the token transfer. @param _from The address to transfer tokens from. @param _to The address to transfer tokens to. @param _ids The specific token IDs to transfer. @param _amounts The amounts of the specific `_ids` to transfer. @param _data Additional call data to send with this transfer. */ 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(_to).onERC1155BatchReceived.selector) { revert("ERC1155: ERC1155Receiver rejected tokens"); } } catch Error(string memory reason) { revert(reason); } catch { revert("ERC1155: transfer to non ERC1155Receiver implementer"); } } } /** Transfer on behalf of a caller or one of their authorized token managers items from one address to another. @param _from The address to transfer tokens from. @param _to The address to transfer tokens to. @param _ids The specific token IDs to transfer. @param _amounts The amounts of the specific `_ids` to transfer. @param _data Additional call data to send with this transfer. */ function safeBatchTransferFrom(address _from, address _to, uint256[] memory _ids, uint256[] memory _amounts, bytes memory _data) external override virtual { require(_ids.length == _amounts.length, "ERC1155: ids and amounts length mismatch"); require(_to != address(0), "ERC1155: transfer to the zero address"); require(_from == _msgSender() || isApprovedForAll(_from, _msgSender()), "ERC1155: caller is not owner nor approved"); // Validate transfer and perform all batch token sends. _beforeTokenTransfer(_msgSender(), _from, _to, _ids, _amounts, _data); for (uint256 i = 0; i < _ids.length; ++i) { // Retrieve the item's group ID. uint256 groupId = (_ids[i] & GROUP_MASK) >> 128; // Update all specially-tracked group-specific balances. balances[_ids[i]][_from] = balances[_ids[i]][_from].sub(_amounts[i], "ERC1155: insufficient balance for transfer"); balances[_ids[i]][_to] = balances[_ids[i]][_to].add(_amounts[i]); groupBalances[groupId][_from] = groupBalances[groupId][_from] .sub(_amounts[i]); groupBalances[groupId][_to] = groupBalances[groupId][_to] .add(_amounts[i]); totalBalances[_from] = totalBalances[_from].sub(_amounts[i]); totalBalances[_to] = totalBalances[_to].add(_amounts[i]); } // Emit the transfer event and perform the safety check. emit TransferBatch(_msgSender(), _from, _to, _ids, _amounts); _doSafeBatchTransferAcceptanceCheck(_msgSender(), _from, _to, _ids, _amounts, _data); } /** Create a new NFT item group or configure an existing one. NFTs within a group share a group ID in the upper 128-bits of their full item ID. Within a group NFTs can be distinguished for the purposes of serializing issue numbers. @param _groupId The ID of the item group to create or configure. @param _data The `ItemGroup` data input. */ function configureGroup(uint256 _groupId, ItemGroupInput calldata _data) external virtual hasItemRight(_groupId, CONFIGURE_GROUP) { require(_groupId != 0, "Super1155: group ID 0 is invalid"); // If the collection is not locked, we may add a new item group. if (!itemGroups[_groupId].initialized) { require(!locked, "Super1155: the collection is locked so groups cannot be created"); itemGroups[_groupId] = ItemGroup({ initialized: true, name: _data.name, supplyType: _data.supplyType, supplyData: _data.supplyData, itemType: _data.itemType, itemData: _data.itemData, burnType: _data.burnType, burnData: _data.burnData, circulatingSupply: 0, mintCount: 0, burnCount: 0 }); // Edit an existing item group. The name may always be updated. } else { itemGroups[_groupId].name = _data.name; // A capped supply type may not change. // It may also not have its cap increased. if (itemGroups[_groupId].supplyType == SupplyType.Capped) { require(_data.supplyType == SupplyType.Capped, "Super1155: you may not uncap a capped supply type"); require(_data.supplyData <= itemGroups[_groupId].supplyData, "Super1155: you may not increase the supply of a capped type"); // The flexible and uncapped types may freely change. } else { itemGroups[_groupId].supplyType = _data.supplyType; } // Item supply data may not be reduced below the circulating supply. require(_data.supplyData >= itemGroups[_groupId].circulatingSupply, "Super1155: you may not decrease supply below the circulating amount"); itemGroups[_groupId].supplyData = _data.supplyData; // A nonfungible item may not change type. if (itemGroups[_groupId].itemType == ItemType.Nonfungible) { require(_data.itemType == ItemType.Nonfungible, "Super1155: you may not alter nonfungible items"); // A semifungible item may not change type. } else if (itemGroups[_groupId].itemType == ItemType.Semifungible) { require(_data.itemType == ItemType.Semifungible, "Super1155: you may not alter nonfungible items"); // A fungible item may change type if it is unique enough. } else if (itemGroups[_groupId].itemType == ItemType.Fungible) { if (_data.itemType == ItemType.Nonfungible) { require(itemGroups[_groupId].circulatingSupply <= 1, "Super1155: the fungible item is not unique enough to change"); itemGroups[_groupId].itemType = ItemType.Nonfungible; // We may also try for semifungible items with a high-enough cap. } else if (_data.itemType == ItemType.Semifungible) { require(itemGroups[_groupId].circulatingSupply <= _data.itemData, "Super1155: the fungible item is not unique enough to change"); itemGroups[_groupId].itemType = ItemType.Semifungible; itemGroups[_groupId].itemData = _data.itemData; } } } // Emit the configuration event. emit ItemGroupConfigured(_msgSender(), _groupId, _data); } /** This is a private helper function to replace the `hasItemRight` modifier that we use on some functions in order to inline this check during batch minting and burning. @param _id The ID of the item to check for the given `_right` on. @param _right The right that the caller is trying to exercise on `_id`. @return Whether or not the caller has a valid right on this item. */ function _hasItemRight(uint256 _id, bytes32 _right) private view returns (bool) { uint256 groupId = (_id & GROUP_MASK) >> 128; if (_msgSender() == owner()) { return true; } else if (hasRightUntil(_msgSender(), UNIVERSAL, _right) > block.timestamp) { return true; } else if (hasRightUntil(_msgSender(), bytes32(groupId), _right) > block.timestamp) { return true; } else if (hasRightUntil(_msgSender(), bytes32(_id), _right) > block.timestamp) { return true; } else { return false; } } /** This is a private helper function to verify, according to all of our various minting and burning rules, whether it would be valid to mint some `_amount` of a particular item `_id`. @param _id The ID of the item to check for minting validity. @param _amount The amount of the item to try checking mintability for. @return The ID of the item that should have `_amount` minted for it. */ function _mintChecker(uint256 _id, uint256 _amount) private view returns (uint256) { // Retrieve the item's group ID. uint256 shiftedGroupId = (_id & GROUP_MASK); uint256 groupId = shiftedGroupId >> 128; require(itemGroups[groupId].initialized, "Super1155: you cannot mint a non-existent item group"); // If we can replenish burnt items, then only our currently-circulating // supply matters. Otherwise, historic mints are what determine the cap. uint256 currentGroupSupply = itemGroups[groupId].mintCount; uint256 currentItemSupply = mintCount[_id]; if (itemGroups[groupId].burnType == BurnType.Replenishable) { currentGroupSupply = itemGroups[groupId].circulatingSupply; currentItemSupply = circulatingSupply[_id]; } // If we are subject to a cap on group size, ensure we don't exceed it. if (itemGroups[groupId].supplyType != SupplyType.Uncapped) { require(currentGroupSupply.add(_amount) <= itemGroups[groupId].supplyData, "Super1155: you cannot mint a group beyond its cap"); } // Do not violate nonfungibility rules. if (itemGroups[groupId].itemType == ItemType.Nonfungible) { require(currentItemSupply.add(_amount) <= 1, "Super1155: you cannot mint more than a single nonfungible item"); // Do not violate semifungibility rules. } else if (itemGroups[groupId].itemType == ItemType.Semifungible) { require(currentItemSupply.add(_amount) <= itemGroups[groupId].itemData, "Super1155: you cannot mint more than the alloted semifungible items"); } // Fungible items are coerced into the single group ID + index one slot. uint256 mintedItemId = _id; if (itemGroups[groupId].itemType == ItemType.Fungible) { mintedItemId = shiftedGroupId.add(1); } return mintedItemId; } /** Mint a single token into existence and send it to the `_recipient` address. In order to mint an item, its item group must first have been created using the `configureGroup` function. Minting an item must obey both the fungibility and size cap of its group. @param _recipient The address to receive all NFTs within the newly-minted group. @param _id The item ID to mint. @param _amount The amount of the corresponding item ID to mint. @param _data Any associated data to use on items minted in this transaction. */ /* This single-mint function is retained here for posterity but unfortunately had to be disabled in order to let this contract slip in under the limit imposed by Spurious Dragon. function mint(address _recipient, uint256 _id, uint256 _amount, bytes calldata _data) external virtual hasItemRight(_id, MINT) { require(_recipient != address(0), "ERC1155: mint to the zero address"); // Retrieve the group ID from the given item `_id` and check mint validity. uint256 shiftedGroupId = (_id & GROUP_MASK); uint256 groupId = shiftedGroupId >> 128; uint256 mintedItemId = _mintChecker(_id, _amount); // Validate and perform the mint. address operator = _msgSender(); _beforeTokenTransfer(operator, address(0), _recipient, _asSingletonArray(mintedItemId), _asSingletonArray(_amount), _data); // Update storage of special balances and circulating values. balances[mintedItemId][_recipient] = balances[mintedItemId][_recipient] .add(_amount); groupBalances[groupId][_recipient] = groupBalances[groupId][_recipient] .add(_amount); totalBalances[_recipient] = totalBalances[_recipient].add(_amount); mintCount[mintedItemId] = mintCount[mintedItemId].add(_amount); circulatingSupply[mintedItemId] = circulatingSupply[mintedItemId] .add(_amount); itemGroups[groupId].mintCount = itemGroups[groupId].mintCount.add(_amount); itemGroups[groupId].circulatingSupply = itemGroups[groupId].circulatingSupply.add(_amount); // Emit event and handle the safety check. emit TransferSingle(operator, address(0), _recipient, mintedItemId, _amount); _doSafeTransferAcceptanceCheck(operator, address(0), _recipient, mintedItemId, _amount, _data); } */ /** Mint a batch of tokens into existence and send them to the `_recipient` address. In order to mint an item, its item group must first have been created. Minting an item must obey both the fungibility and size cap of its group. @param _recipient The address to receive all NFTs within the newly-minted group. @param _ids The item IDs for the new items to create. @param _amounts The amount of each corresponding item ID to create. @param _data Any associated data to use on items minted in this transaction. */ function mintBatch(address _recipient, uint256[] calldata _ids, uint256[] calldata _amounts, bytes calldata _data) external virtual { require(_recipient != address(0), "ERC1155: mint to the zero address"); require(_ids.length == _amounts.length, "ERC1155: ids and amounts length mismatch"); // Validate and perform the mint. address operator = _msgSender(); _beforeTokenTransfer(operator, address(0), _recipient, _ids, _amounts, _data); // Loop through each of the batched IDs to update storage of special // balances and circulation balances. for (uint256 i = 0; i < _ids.length; i++) { require(_hasItemRight(_ids[i], MINT), "Super1155: you do not have the right to mint that item"); // Retrieve the group ID from the given item `_id` and check mint. uint256 shiftedGroupId = (_ids[i] & GROUP_MASK); uint256 groupId = shiftedGroupId >> 128; uint256 mintedItemId = _mintChecker(_ids[i], _amounts[i]); // Update storage of special balances and circulating values. balances[mintedItemId][_recipient] = balances[mintedItemId][_recipient] .add(_amounts[i]); groupBalances[groupId][_recipient] = groupBalances[groupId][_recipient] .add(_amounts[i]); totalBalances[_recipient] = totalBalances[_recipient].add(_amounts[i]); mintCount[mintedItemId] = mintCount[mintedItemId].add(_amounts[i]); circulatingSupply[mintedItemId] = circulatingSupply[mintedItemId] .add(_amounts[i]); itemGroups[groupId].mintCount = itemGroups[groupId].mintCount .add(_amounts[i]); itemGroups[groupId].circulatingSupply = itemGroups[groupId].circulatingSupply.add(_amounts[i]); } // Emit event and handle the safety check. emit TransferBatch(operator, address(0), _recipient, _ids, _amounts); _doSafeBatchTransferAcceptanceCheck(operator, address(0), _recipient, _ids, _amounts, _data); } /** This is a private helper function to verify, according to all of our various minting and burning rules, whether it would be valid to burn some `_amount` of a particular item `_id`. @param _id The ID of the item to check for burning validity. @param _amount The amount of the item to try checking burning for. @return The ID of the item that should have `_amount` burnt for it. */ function _burnChecker(uint256 _id, uint256 _amount) private view returns (uint256) { // Retrieve the item's group ID. uint256 shiftedGroupId = (_id & GROUP_MASK); uint256 groupId = shiftedGroupId >> 128; require(itemGroups[groupId].initialized, "Super1155: you cannot burn a non-existent item group"); // If we can burn items, then we must verify that we do not exceed the cap. if (itemGroups[groupId].burnType == BurnType.Burnable) { require(itemGroups[groupId].burnCount.add(_amount) <= itemGroups[groupId].burnData, "Super1155: you may not exceed the burn limit on this item group"); } // Fungible items are coerced into the single group ID + index one slot. uint256 burntItemId = _id; if (itemGroups[groupId].itemType == ItemType.Fungible) { burntItemId = shiftedGroupId.add(1); } return burntItemId; } /** This function allows an address to destroy some of its items. @param _burner The address whose item is burning. @param _id The item ID to burn. @param _amount The amount of the corresponding item ID to burn. */ function burn(address _burner, uint256 _id, uint256 _amount) external virtual hasItemRight(_id, BURN) { require(_burner != address(0), "ERC1155: burn from the zero address"); // Retrieve the group ID from the given item `_id` and check burn validity. uint256 shiftedGroupId = (_id & GROUP_MASK); uint256 groupId = shiftedGroupId >> 128; uint256 burntItemId = _burnChecker(_id, _amount); // Validate and perform the burn. address operator = _msgSender(); _beforeTokenTransfer(operator, _burner, address(0), _asSingletonArray(burntItemId), _asSingletonArray(_amount), ""); // Update storage of special balances and circulating values. balances[burntItemId][_burner] = balances[burntItemId][_burner] .sub(_amount, "ERC1155: burn amount exceeds balance"); groupBalances[groupId][_burner] = groupBalances[groupId][_burner] .sub(_amount); totalBalances[_burner] = totalBalances[_burner].sub(_amount); burnCount[burntItemId] = burnCount[burntItemId].add(_amount); circulatingSupply[burntItemId] = circulatingSupply[burntItemId] .sub(_amount); itemGroups[groupId].burnCount = itemGroups[groupId].burnCount.add(_amount); itemGroups[groupId].circulatingSupply = itemGroups[groupId].circulatingSupply.sub(_amount); // Emit the burn event. emit TransferSingle(operator, _burner, address(0), _id, _amount); } /** This function allows an address to destroy multiple different items in a single call. @param _burner The address whose items are burning. @param _ids The item IDs to burn. @param _amounts The amounts of the corresponding item IDs to burn. */ function burnBatch(address _burner, uint256[] memory _ids, uint256[] memory _amounts) external virtual { require(_burner != address(0), "ERC1155: burn from the zero address"); require(_ids.length == _amounts.length, "ERC1155: ids and amounts length mismatch"); // Validate and perform the burn. address operator = _msgSender(); _beforeTokenTransfer(operator, _burner, address(0), _ids, _amounts, ""); // Loop through each of the batched IDs to update storage of special // balances and circulation balances. for (uint i = 0; i < _ids.length; i++) { require(_hasItemRight(_ids[i], BURN), "Super1155: you do not have the right to burn that item"); // Retrieve the group ID from the given item `_id` and check burn. uint256 shiftedGroupId = (_ids[i] & GROUP_MASK); uint256 groupId = shiftedGroupId >> 128; uint256 burntItemId = _burnChecker(_ids[i], _amounts[i]); // Update storage of special balances and circulating values. balances[burntItemId][_burner] = balances[burntItemId][_burner] .sub(_amounts[i], "ERC1155: burn amount exceeds balance"); groupBalances[groupId][_burner] = groupBalances[groupId][_burner] .sub(_amounts[i]); totalBalances[_burner] = totalBalances[_burner].sub(_amounts[i]); burnCount[burntItemId] = burnCount[burntItemId].add(_amounts[i]); circulatingSupply[burntItemId] = circulatingSupply[burntItemId] .sub(_amounts[i]); itemGroups[groupId].burnCount = itemGroups[groupId].burnCount .add(_amounts[i]); itemGroups[groupId].circulatingSupply = itemGroups[groupId].circulatingSupply.sub(_amounts[i]); } // Emit the burn event. emit TransferBatch(operator, _burner, address(0), _ids, _amounts); } /** Set the on-chain metadata attached to a specific token ID so long as the collection as a whole or the token specifically has not had metadata editing frozen. @param _id The ID of the token to set the `_metadata` for. @param _metadata The metadata string to store on-chain. */ function setMetadata(uint256 _id, string memory _metadata) external hasItemRight(_id, SET_METADATA) { require(!uriLocked && !metadataFrozen[_id], "Super1155: you cannot edit this metadata because it is frozen"); string memory oldMetadata = metadata[_id]; metadata[_id] = _metadata; emit MetadataChanged(_msgSender(), _id, oldMetadata, _metadata); } /** Allow the item collection owner or an associated manager to forever lock the metadata URI on the entire collection to future changes. @param _uri The value of the URI to lock for `_id`. */ function lockURI(string calldata _uri) external hasValidPermit(UNIVERSAL, LOCK_URI) { string memory oldURI = metadataUri; metadataUri = _uri; emit ChangeURI(oldURI, _uri); uriLocked = true; emit PermanentURI(_uri, 2 ** 256 - 1); } /** Allow the item collection owner or an associated manager to forever lock the metadata URI on an item to future changes. @param _uri The value of the URI to lock for `_id`. @param _id The token ID to lock a metadata URI value into. */ function lockURI(string calldata _uri, uint256 _id) external hasItemRight(_id, LOCK_ITEM_URI) { metadataFrozen[_id] = true; emit PermanentURI(_uri, _id); } /** Allow the item collection owner or an associated manager to forever lock this contract to further item minting. */ function lock() external virtual hasValidPermit(UNIVERSAL, LOCK_CREATION) { locked = true; emit CollectionLocked(_msgSender()); } }
// SPDX-License-Identifier: MIT pragma solidity >=0.6.0 <0.8.0; import "./IERC165.sol"; /** * @dev Implementation of the {IERC165} interface. * * Contracts may inherit from this and call {_registerInterface} to declare * their support of an interface. */ abstract contract ERC165 is IERC165 { /* * bytes4(keccak256('supportsInterface(bytes4)')) == 0x01ffc9a7 */ bytes4 private constant _INTERFACE_ID_ERC165 = 0x01ffc9a7; /** * @dev Mapping of interface ids to whether or not it's supported. */ mapping(bytes4 => bool) private _supportedInterfaces; constructor () internal { // Derived contracts need only register support for their own interfaces, // we register support for ERC165 itself here _registerInterface(_INTERFACE_ID_ERC165); } /** * @dev See {IERC165-supportsInterface}. * * Time complexity O(1), guaranteed to always use less than 30 000 gas. */ function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) { return _supportedInterfaces[interfaceId]; } /** * @dev Registers the contract as an implementer of the interface defined by * `interfaceId`. Support of the actual ERC165 interface is automatic and * registering its interface id is not required. * * See {IERC165-supportsInterface}. * * Requirements: * * - `interfaceId` cannot be the ERC165 invalid interface (`0xffffffff`). */ function _registerInterface(bytes4 interfaceId) internal virtual { require(interfaceId != 0xffffffff, "ERC165: invalid interface id"); _supportedInterfaces[interfaceId] = true; } }
// SPDX-License-Identifier: MIT pragma solidity >=0.6.2 <0.8.0; import "../../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; }
// SPDX-License-Identifier: MIT pragma solidity >=0.6.2 <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); }
// SPDX-License-Identifier: MIT pragma solidity >=0.6.0 <0.8.0; import "../../introspection/IERC165.sol"; /** * _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); }
// SPDX-License-Identifier: MIT pragma solidity >=0.6.0 <0.8.0; /** * @dev Wrappers over Solidity's arithmetic operations with added overflow * checks. * * Arithmetic operations in Solidity wrap on overflow. This can easily result * in bugs, because programmers usually assume that an overflow raises an * error, which is the standard behavior in high level programming languages. * `SafeMath` restores this intuition by reverting the transaction when an * operation overflows. * * Using this library instead of the unchecked operations eliminates an entire * class of bugs, so it's recommended to use it always. */ 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) { 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) { 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) { // 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) { 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) { 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) { uint256 c = a + b; require(c >= a, "SafeMath: addition overflow"); return c; } /** * @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) { require(b <= a, "SafeMath: subtraction overflow"); 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) { if (a == 0) return 0; uint256 c = a * b; require(c / a == b, "SafeMath: multiplication overflow"); return c; } /** * @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. 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) internal pure returns (uint256) { require(b > 0, "SafeMath: division by zero"); 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) { require(b > 0, "SafeMath: modulo by zero"); 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) { 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. * * CAUTION: This function is deprecated because it requires allocating memory for the error * message unnecessarily. For custom revert reasons use {tryDiv}. * * 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) { 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) { require(b > 0, errorMessage); return a % b; } }
// SPDX-License-Identifier: MIT pragma solidity >=0.6.2 <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; // solhint-disable-next-line no-inline-assembly 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"); // solhint-disable-next-line avoid-low-level-calls, avoid-call-value (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"); // solhint-disable-next-line avoid-low-level-calls (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"); // solhint-disable-next-line avoid-low-level-calls (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"); // solhint-disable-next-line avoid-low-level-calls (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 // solhint-disable-next-line no-inline-assembly assembly { let returndata_size := mload(returndata) revert(add(32, returndata), returndata_size) } } else { revert(errorMessage); } } } }
// SPDX-License-Identifier: GPL-3.0 pragma solidity 0.7.6; pragma experimental ABIEncoderV2; import "@openzeppelin/contracts/access/Ownable.sol"; import "@openzeppelin/contracts/math/SafeMath.sol"; import "@openzeppelin/contracts/utils/Address.sol"; /** @title An advanced permission-management contract. @author Tim Clancy This contract allows for a contract owner to delegate specific rights to external addresses. Additionally, these rights can be gated behind certain sets of circumstances and granted expiration times. This is useful for some more finely-grained access control in contracts. The owner of this contract is always a fully-permissioned super-administrator. */ abstract contract PermitControl is Ownable { using SafeMath for uint256; using Address for address; /// A special reserved constant for representing no rights. bytes32 public constant ZERO_RIGHT = hex"00000000000000000000000000000000"; /// A special constant specifying the unique, universal-rights circumstance. bytes32 public constant UNIVERSAL = hex"FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF"; /* A special constant specifying the unique manager right. This right allows an address to freely-manipulate the `managedRight` mapping. **/ bytes32 public constant MANAGER = hex"FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF"; /** A mapping of per-address permissions to the circumstances, represented as an additional layer of generic bytes32 data, under which the addresses have various permits. A permit in this sense is represented by a per-circumstance mapping which couples some right, represented as a generic bytes32, to an expiration time wherein the right may no longer be exercised. An expiration time of 0 indicates that there is in fact no permit for the specified address to exercise the specified right under the specified circumstance. @dev Universal rights MUST be stored under the 0xFFFFFFFFFFFFFFFFFFFFFFFF... max-integer circumstance. Perpetual rights may be given an expiry time of max-integer. */ mapping (address => mapping (bytes32 => mapping (bytes32 => uint256))) public permissions; /** An additional mapping of managed rights to manager rights. This mapping represents the administrator relationship that various rights have with one another. An address with a manager right may freely set permits for that manager right's managed rights. Each right may be managed by only one other right. */ mapping (bytes32 => bytes32) public managerRight; /** An event emitted when an address has a permit updated. This event captures, through its various parameter combinations, the cases of granting a permit, updating the expiration time of a permit, or revoking a permit. @param updator The address which has updated the permit. @param updatee The address whose permit was updated. @param circumstance The circumstance wherein the permit was updated. @param role The role which was updated. @param expirationTime The time when the permit expires. */ event PermitUpdated(address indexed updator, address indexed updatee, bytes32 circumstance, bytes32 indexed role, uint256 expirationTime); /** An event emitted when a management relationship in `managerRight` is updated. This event captures adding and revoking management permissions via observing the update history of the `managerRight` value. @param manager The address of the manager performing this update. @param managedRight The right which had its manager updated. @param managerRight The new manager right which was updated to. */ event ManagementUpdated(address indexed manager, bytes32 indexed managedRight, bytes32 indexed managerRight); /** A modifier which allows only the super-administrative owner or addresses with a specified valid right to perform a call. @param _circumstance The circumstance under which to check for the validity of the specified `right`. @param _right The right to validate for the calling address. It must be non-expired and exist within the specified `_circumstance`. */ modifier hasValidPermit(bytes32 _circumstance, bytes32 _right) { require(_msgSender() == owner() || hasRightUntil(_msgSender(), _circumstance, _right) > block.timestamp, "PermitControl: sender does not have a valid permit"); _; } /** Return a version number for this contract's interface. */ function version() external virtual pure returns (uint256) { return 1; } /** Determine whether or not an address has some rights under the given circumstance, and if they do have the right, until when. @param _address The address to check for the specified `_right`. @param _circumstance The circumstance to check the specified `_right` for. @param _right The right to check for validity. @return The timestamp in seconds when the `_right` expires. If the timestamp is zero, we can assume that the user never had the right. */ function hasRightUntil(address _address, bytes32 _circumstance, bytes32 _right) public view returns (uint256) { return permissions[_address][_circumstance][_right]; } /** Set the permit to a specific address under some circumstances. A permit may only be set by the super-administrative contract owner or an address holding some delegated management permit. @param _address The address to assign the specified `_right` to. @param _circumstance The circumstance in which the `_right` is valid. @param _right The specific right to assign. @param _expirationTime The time when the `_right` expires for the provided `_circumstance`. */ function setPermit(address _address, bytes32 _circumstance, bytes32 _right, uint256 _expirationTime) external virtual hasValidPermit(UNIVERSAL, managerRight[_right]) { require(_right != ZERO_RIGHT, "PermitControl: you may not grant the zero right"); permissions[_address][_circumstance][_right] = _expirationTime; emit PermitUpdated(_msgSender(), _address, _circumstance, _right, _expirationTime); } /** Set the `_managerRight` whose `UNIVERSAL` holders may freely manage the specified `_managedRight`. @param _managedRight The right which is to have its manager set to `_managerRight`. @param _managerRight The right whose `UNIVERSAL` holders may manage `_managedRight`. */ function setManagerRight(bytes32 _managedRight, bytes32 _managerRight) external virtual hasValidPermit(UNIVERSAL, MANAGER) { require(_managedRight != ZERO_RIGHT, "PermitControl: you may not specify a manager for the zero right"); managerRight[_managedRight] = _managerRight; emit ManagementUpdated(_msgSender(), _managedRight, _managerRight); } }
// SPDX-License-Identifier: GPL-3.0 pragma solidity 0.7.6; pragma experimental ABIEncoderV2; /** @title A proxy registry contract. @author Protinam, Project Wyvern @author Tim Clancy This contract was originally developed by Project Wyvern (https://github.com/ProjectWyvern/) where it currently enjoys great success as a component of the primary exchange contract for OpenSea. It has been modified to support a more modern version of Solidity with associated best practices. The documentation has also been improved to provide more clarity. */ abstract contract StubProxyRegistry { /** This mapping relates an addresses to its own personal `OwnableDelegateProxy` which allow it to proxy functionality to the various callers contained in `authorizedCallers`. */ mapping(address => address) public proxies; }
// SPDX-License-Identifier: MIT pragma solidity >=0.6.0 <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); }
// SPDX-License-Identifier: MIT pragma solidity >=0.6.0 <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 () internal { address msgSender = _msgSender(); _owner = msgSender; emit OwnershipTransferred(address(0), 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 { emit OwnershipTransferred(_owner, address(0)); _owner = address(0); } /** * @dev Transfers ownership of the contract to a new account (`newOwner`). * Can only be called by the current owner. */ function transferOwnership(address newOwner) public virtual onlyOwner { require(newOwner != address(0), "Ownable: new owner is the zero address"); emit OwnershipTransferred(_owner, newOwner); _owner = newOwner; } }
// SPDX-License-Identifier: MIT pragma solidity >=0.6.0 <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 GSN 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 payable) { return msg.sender; } function _msgData() internal view virtual returns (bytes memory) { this; // silence state mutability warning without generating bytecode - see https://github.com/ethereum/solidity/issues/2691 return msg.data; } }
{ "optimizer": { "enabled": true, "runs": 0 }, "outputSelection": { "*": { "*": [ "evm.bytecode", "evm.deployedBytecode", "abi" ] } }, "libraries": {} }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"inputs":[{"internalType":"address","name":"_owner","type":"address"},{"internalType":"string","name":"_name","type":"string"},{"internalType":"string","name":"_uri","type":"string"},{"internalType":"address","name":"_proxyRegistryAddress","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":true,"internalType":"address","name":"oldRegistry","type":"address"},{"indexed":true,"internalType":"address","name":"newRegistry","type":"address"}],"name":"ChangeProxyRegistry","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"string","name":"oldURI","type":"string"},{"indexed":true,"internalType":"string","name":"newURI","type":"string"}],"name":"ChangeURI","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"locker","type":"address"}],"name":"CollectionLocked","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"manager","type":"address"},{"indexed":false,"internalType":"uint256","name":"groupId","type":"uint256"},{"components":[{"internalType":"string","name":"name","type":"string"},{"internalType":"enum Super1155.SupplyType","name":"supplyType","type":"uint8"},{"internalType":"uint256","name":"supplyData","type":"uint256"},{"internalType":"enum Super1155.ItemType","name":"itemType","type":"uint8"},{"internalType":"uint256","name":"itemData","type":"uint256"},{"internalType":"enum Super1155.BurnType","name":"burnType","type":"uint8"},{"internalType":"uint256","name":"burnData","type":"uint256"}],"indexed":true,"internalType":"struct Super1155.ItemGroupInput","name":"newGroup","type":"tuple"}],"name":"ItemGroupConfigured","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"manager","type":"address"},{"indexed":true,"internalType":"bytes32","name":"managedRight","type":"bytes32"},{"indexed":true,"internalType":"bytes32","name":"managerRight","type":"bytes32"}],"name":"ManagementUpdated","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"changer","type":"address"},{"indexed":true,"internalType":"uint256","name":"id","type":"uint256"},{"indexed":false,"internalType":"string","name":"oldMetadata","type":"string"},{"indexed":true,"internalType":"string","name":"newMetadata","type":"string"}],"name":"MetadataChanged","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":"string","name":"_value","type":"string"},{"indexed":true,"internalType":"uint256","name":"_id","type":"uint256"}],"name":"PermanentURI","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"updator","type":"address"},{"indexed":true,"internalType":"address","name":"updatee","type":"address"},{"indexed":false,"internalType":"bytes32","name":"circumstance","type":"bytes32"},{"indexed":true,"internalType":"bytes32","name":"role","type":"bytes32"},{"indexed":false,"internalType":"uint256","name":"expirationTime","type":"uint256"}],"name":"PermitUpdated","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":"BURN","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"CONFIGURE_GROUP","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"LOCK_CREATION","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"LOCK_ITEM_URI","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"LOCK_URI","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"MANAGER","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"MINT","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"SET_METADATA","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"SET_PROXY_REGISTRY","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"SET_URI","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"UNIVERSAL","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"ZERO_RIGHT","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_owner","type":"address"},{"internalType":"uint256","name":"_id","type":"uint256"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address[]","name":"_owners","type":"address[]"},{"internalType":"uint256[]","name":"_ids","type":"uint256[]"}],"name":"balanceOfBatch","outputs":[{"internalType":"uint256[]","name":"","type":"uint256[]"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_burner","type":"address"},{"internalType":"uint256","name":"_id","type":"uint256"},{"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"burn","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_burner","type":"address"},{"internalType":"uint256[]","name":"_ids","type":"uint256[]"},{"internalType":"uint256[]","name":"_amounts","type":"uint256[]"}],"name":"burnBatch","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"burnCount","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"circulatingSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_groupId","type":"uint256"},{"components":[{"internalType":"string","name":"name","type":"string"},{"internalType":"enum Super1155.SupplyType","name":"supplyType","type":"uint8"},{"internalType":"uint256","name":"supplyData","type":"uint256"},{"internalType":"enum Super1155.ItemType","name":"itemType","type":"uint8"},{"internalType":"uint256","name":"itemData","type":"uint256"},{"internalType":"enum Super1155.BurnType","name":"burnType","type":"uint8"},{"internalType":"uint256","name":"burnData","type":"uint256"}],"internalType":"struct Super1155.ItemGroupInput","name":"_data","type":"tuple"}],"name":"configureGroup","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"},{"internalType":"address","name":"","type":"address"}],"name":"groupBalances","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_address","type":"address"},{"internalType":"bytes32","name":"_circumstance","type":"bytes32"},{"internalType":"bytes32","name":"_right","type":"bytes32"}],"name":"hasRightUntil","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_owner","type":"address"},{"internalType":"address","name":"_operator","type":"address"}],"name":"isApprovedForAll","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"itemGroups","outputs":[{"internalType":"bool","name":"initialized","type":"bool"},{"internalType":"string","name":"name","type":"string"},{"internalType":"enum Super1155.SupplyType","name":"supplyType","type":"uint8"},{"internalType":"uint256","name":"supplyData","type":"uint256"},{"internalType":"enum Super1155.ItemType","name":"itemType","type":"uint8"},{"internalType":"uint256","name":"itemData","type":"uint256"},{"internalType":"enum Super1155.BurnType","name":"burnType","type":"uint8"},{"internalType":"uint256","name":"burnData","type":"uint256"},{"internalType":"uint256","name":"circulatingSupply","type":"uint256"},{"internalType":"uint256","name":"mintCount","type":"uint256"},{"internalType":"uint256","name":"burnCount","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"lock","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"_uri","type":"string"},{"internalType":"uint256","name":"_id","type":"uint256"}],"name":"lockURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"_uri","type":"string"}],"name":"lockURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"locked","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"name":"managerRight","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"metadata","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"metadataFrozen","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"metadataUri","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_recipient","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":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"mintCount","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"},{"internalType":"bytes32","name":"","type":"bytes32"},{"internalType":"bytes32","name":"","type":"bytes32"}],"name":"permissions","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"proxyRegistryAddress","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_from","type":"address"},{"internalType":"address","name":"_to","type":"address"},{"internalType":"uint256[]","name":"_ids","type":"uint256[]"},{"internalType":"uint256[]","name":"_amounts","type":"uint256[]"},{"internalType":"bytes","name":"_data","type":"bytes"}],"name":"safeBatchTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_from","type":"address"},{"internalType":"address","name":"_to","type":"address"},{"internalType":"uint256","name":"_id","type":"uint256"},{"internalType":"uint256","name":"_amount","type":"uint256"},{"internalType":"bytes","name":"_data","type":"bytes"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_operator","type":"address"},{"internalType":"bool","name":"_approved","type":"bool"}],"name":"setApprovalForAll","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"_managedRight","type":"bytes32"},{"internalType":"bytes32","name":"_managerRight","type":"bytes32"}],"name":"setManagerRight","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_id","type":"uint256"},{"internalType":"string","name":"_metadata","type":"string"}],"name":"setMetadata","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_address","type":"address"},{"internalType":"bytes32","name":"_circumstance","type":"bytes32"},{"internalType":"bytes32","name":"_right","type":"bytes32"},{"internalType":"uint256","name":"_expirationTime","type":"uint256"}],"name":"setPermit","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_proxyRegistryAddress","type":"address"}],"name":"setProxyRegistry","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":[{"internalType":"address","name":"","type":"address"}],"name":"totalBalances","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":"","type":"uint256"}],"name":"uri","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"uriLocked","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"version","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"pure","type":"function"}]
Contract Creation Code
60806040523480156200001157600080fd5b50604051620061eb380380620061eb833981016040819052620000349162000439565b60006200004062000133565b600080546001600160a01b0319166001600160a01b038316908117825560405192935091600080516020620061cb833981519152908290a3506200008b6301ffc9a760e01b62000137565b6200009d636cdb3d1360e11b62000137565b620000af6303a24d0760e21b62000137565b620000b9620001bc565b6001600160a01b0316846001600160a01b031614620000dd57620000dd84620001cb565b8251620000f2906004906020860190620002d5565b50815162000108906005906020850190620002d5565b50600680546001600160a01b0319166001600160a01b039290921691909117905550620004c6915050565b3390565b6001600160e01b0319808216141562000197576040805162461bcd60e51b815260206004820152601c60248201527f4552433136353a20696e76616c696420696e7465726661636520696400000000604482015290519081900360640190fd5b6001600160e01b0319166000908152600360205260409020805460ff19166001179055565b6000546001600160a01b031690565b620001d562000133565b6001600160a01b0316620001e8620001bc565b6001600160a01b03161462000244576040805162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015290519081900360640190fd5b6001600160a01b0381166200028b5760405162461bcd60e51b8152600401808060200182810382526026815260200180620061a56026913960400191505060405180910390fd5b600080546040516001600160a01b0380851693921691600080516020620061cb83398151915291a3600080546001600160a01b0319166001600160a01b0392909216919091179055565b828054600181600116156101000203166002900490600052602060002090601f0160209004810192826200030d576000855562000358565b82601f106200032857805160ff191683800117855562000358565b8280016001018555821562000358579182015b82811115620003585782518255916020019190600101906200033b565b50620003669291506200036a565b5090565b5b808211156200036657600081556001016200036b565b80516001600160a01b03811681146200039957600080fd5b919050565b600082601f830112620003af578081fd5b81516001600160401b0380821115620003c457fe5b6040516020601f8401601f1916820181018381118382101715620003e457fe5b6040528382528584018101871015620003fb578485fd5b8492505b838310156200041e5785830181015182840182015291820191620003ff565b838311156200042f57848185840101525b5095945050505050565b600080600080608085870312156200044f578384fd5b6200045a8562000381565b60208601519094506001600160401b038082111562000477578485fd5b62000485888389016200039e565b945060408701519150808211156200049b578384fd5b50620004aa878288016200039e565b925050620004bb6060860162000381565b905092959194509250565b615ccf80620004d66000396000f3fe608060405234801561001057600080fd5b506004361061025b5760003560e01c8062fdd58e1461026057806301ffc9a71461028957806302fe5305146102a957806306fdde03146102be5780630c0694e1146102d35780630e89341c146102e6578063122b0817146102f957806317f5ebb4146103015780631b2df850146103015780631f7fdffa1461030957806320c5ab6a1461031c5780632319b64814610324578063249db23414610337578063267b144f1461033f5780632eb2c2d6146103525780633e36f4c714610365578063483ba44e1461036d5780634e1273f414610380578063504c9a5f146103a057806354fd4d50146103b3578063558e1561146103bb578063593aa283146103ce5780636502cde7146103e157806366a0e54d146103e95780636b20c454146103fc578063715018a61461040f5780637178008f1461041757806377a4d5591461041f5780638c2a4c4f146104275780638da5cb5b1461045157806392ff6aea14610466578063a22cb46514610479578063a625776e1461048c578063adfdeef914610494578063aee9c872146104a7578063af0c22a0146104ba578063c0a2526c146104c2578063c58f55db146104ca578063c5b16c59146104d2578063cc2af308146104e5578063cd7c0326146104f8578063cf30901214610500578063cf64d4c214610508578063de6cd0db1461051b578063e3684e391461052e578063e985e9c514610541578063f242432a14610554578063f2fde38b14610567578063f5298aca1461057a578063f83d08ba1461058d578063f9f82b2d14610595578063fa1100f41461059d575b600080fd5b61027361026e3660046148e4565b6105b0565b6040516102809190614ea2565b60405180910390f35b61029c6102973660046149b0565b61060c565b6040516102809190614e15565b6102bc6102b7366004614a04565b61062f565b005b6102c66107b4565b6040516102809190614ed5565b6102bc6102e1366004614b07565b610842565b6102c66102f4366004614977565b611407565b61027361149f565b6102736114b1565b6102bc61031736600461472b565b6114bd565b61029c6119f1565b610273610332366004614977565b6119fa565b610273611a0c565b6102bc61034d366004614a43565b611a1e565b6102bc6103603660046145f6565b611b9b565b610273612013565b61027361037b366004614876565b612025565b61039361038e36600461490f565b612048565b6040516102809190614ddd565b61029c6103ae366004614977565b61211e565b610273612133565b6102736103c9366004614a8c565b612139565b6102bc6103dc366004614ab0565b612156565b6102736124e3565b6102736103f7366004614876565b6124f5565b6102bc61040a3660046147d3565b612528565b6102bc61292f565b6102736129c9565b6102c66129db565b61043a610435366004614977565b612a36565b6040516102809b9a99989796959493929190614e20565b610459612b27565b6040516102809190614d09565b610273610474366004614977565b612b36565b6102bc610487366004614845565b612b48565b610273612c16565b6102bc6104a2366004614586565b612c1b565b6102736104b5366004614586565b612cda565b610273612cec565b610273612cfe565b610273612d10565b6102736104e0366004614977565b612d22565b6102bc6104f336600461498f565b612d34565b610459612e04565b61029c612e13565b6102bc6105163660046148aa565b612e21565b6102bc610529366004614a04565b612f1c565b6102c661053c366004614977565b6130b0565b61029c61054f3660046145be565b613118565b6102bc6105623660046146b2565b6131ea565b6102bc610575366004614586565b6134b7565b6102bc610588366004614876565b6135a7565b6102bc613af9565b610273613bb4565b6102736105ab366004614977565b613bc6565b60006001600160a01b0383166105e15760405162461bcd60e51b81526004016105d890615032565b60405180910390fd5b5060008181526007602090815260408083206001600160a01b03861684529091529020545b92915050565b6001600160e01b0319811660009081526003602052604090205460ff165b919050565b6001600160801b0319600080516020615b9a83398151915261064f612b27565b6001600160a01b0316610660613bd8565b6001600160a01b0316148061068557504261068361067c613bd8565b84846124f5565b115b6106a15760405162461bcd60e51b81526004016105d8906150fb565b60115460ff16156106c45760405162461bcd60e51b81526004016105d8906152c0565b60058054604080516020601f60026000196101006001881615020190951694909404938401819004810282018101909252828152600093909290918301828280156107505780601f1061072557610100808354040283529160200191610750565b820191906000526020600020905b81548152906001019060200180831161073357829003601f168201915b5050505050905084846005919061076892919061430b565b508484604051610779929190614c3c565b60405180910390208160405161078f9190614c4c565b60405190819003812090600080516020615bba83398151915290600090a35050505050565b6004805460408051602060026001851615610100026000190190941693909304601f8101849004840282018401909252818152929183018282801561083a5780601f1061080f5761010080835404028352916020019161083a565b820191906000526020600020905b81548152906001019060200180831161081d57829003601f168201915b505050505081565b81600080516020615b7a833981519152608082901c61085f612b27565b6001600160a01b0316610870613bd8565b6001600160a01b03161415610dfb578461089c5760405162461bcd60e51b81526004016105d89061507d565b6000858152600b602052604090205460ff16610ab357601154610100900460ff16156108da5760405162461bcd60e51b81526004016105d890614fd5565b60408051610160810190915260018152602081016108f8868061583f565b8080601f01602080910402602001604051908101604052809392919081815260200183838082843760009201919091525050509082525060209081019061094590604088019088016149e8565b600281111561095057fe5b815260408087013560208301520161096e60808701606088016149e8565b600281111561097957fe5b81526080860135602082015260400161099860c0870160a088016149e8565b60028111156109a357fe5b815260c086013560208083019190915260006040808401829052606084018290526080909301819052888152600b8252919091208251815460ff191690151517815582820151805191926109ff92600185019290910190614397565b5060408201518160020160006101000a81548160ff02191690836002811115610a2457fe5b021790555060608201516003820155608082015160048201805460ff19166001836002811115610a5057fe5b021790555060a0820151600582015560c082015160068201805460ff19166001836002811115610a7c57fe5b021790555060e082015160078201556101008201516008820155610120820151600982015561014090910151600a90910155610daa565b610abd848061583f565b6000878152600b60205260409020610ada9260019091019161430b565b506000858152600b6020526040812060029081015460ff1690811115610afc57fe5b1415610b77576000610b1460408601602087016149e8565b6002811115610b1f57fe5b14610b3c5760405162461bcd60e51b81526004016105d89061514d565b6000858152600b60205260409081902060030154908501351115610b725760405162461bcd60e51b81526004016105d8906153d1565b610bb9565b610b8760408501602086016149e8565b6000868152600b6020526040902060029081018054909160ff19909116906001908490811115610bb357fe5b02179055505b6000858152600b60205260409081902060080154908501351015610bef5760405162461bcd60e51b81526004016105d890615779565b6000858152600b60205260408082209086013560038201556004015460ff166002811115610c1957fe5b1415610c5f5760005b610c3260808601606087016149e8565b6002811115610c3d57fe5b14610c5a5760405162461bcd60e51b81526004016105d89061550b565b610daa565b60026000868152600b602052604090206004015460ff166002811115610c8157fe5b1415610c8e576002610c22565b60016000868152600b602052604090206004015460ff166002811115610cb057fe5b1415610daa576000610cc860808601606087016149e8565b6002811115610cd357fe5b1415610d29576000858152600b602052604090206008015460011015610d0b5760405162461bcd60e51b81526004016105d890615376565b6000858152600b60205260409020600401805460ff19169055610daa565b6002610d3b60808601606087016149e8565b6002811115610d4657fe5b1415610daa576000858152600b602052604090206008015460808501351015610d815760405162461bcd60e51b81526004016105d890615376565b6000858152600b6020526040902060048101805460ff1916600217905560808501356005909101555b83604051610db89190614c68565b6040518091039020610dc8613bd8565b6001600160a01b0316600080516020615ab083398151915287604051610dee9190614ea2565b60405180910390a3611400565b42610e16610e07613bd8565b6001600160801b0319856124f5565b1115610e39578461089c5760405162461bcd60e51b81526004016105d89061507d565b42610e4c610e45613bd8565b83856124f5565b1115610e6f578461089c5760405162461bcd60e51b81526004016105d89061507d565b42610e82610e7b613bd8565b85856124f5565b11156114005784610ea55760405162461bcd60e51b81526004016105d89061507d565b6000858152600b602052604090205460ff166110bc57601154610100900460ff1615610ee35760405162461bcd60e51b81526004016105d890614fd5565b6040805161016081019091526001815260208101610f01868061583f565b8080601f016020809104026020016040519081016040528093929190818152602001838380828437600092019190915250505090825250602090810190610f4e90604088019088016149e8565b6002811115610f5957fe5b8152604080870135602083015201610f7760808701606088016149e8565b6002811115610f8257fe5b815260808601356020820152604001610fa160c0870160a088016149e8565b6002811115610fac57fe5b815260c086013560208083019190915260006040808401829052606084018290526080909301819052888152600b8252919091208251815460ff1916901515178155828201518051919261100892600185019290910190614397565b5060408201518160020160006101000a81548160ff0219169083600281111561102d57fe5b021790555060608201516003820155608082015160048201805460ff1916600183600281111561105957fe5b021790555060a0820151600582015560c082015160068201805460ff1916600183600281111561108557fe5b021790555060e082015160078201556101008201516008820155610120820151600982015561014090910151600a909101556113b3565b6110c6848061583f565b6000878152600b602052604090206110e39260019091019161430b565b506000858152600b6020526040812060029081015460ff169081111561110557fe5b141561118057600061111d60408601602087016149e8565b600281111561112857fe5b146111455760405162461bcd60e51b81526004016105d89061514d565b6000858152600b6020526040908190206003015490850135111561117b5760405162461bcd60e51b81526004016105d8906153d1565b6111c2565b61119060408501602086016149e8565b6000868152600b6020526040902060029081018054909160ff199091169060019084908111156111bc57fe5b02179055505b6000858152600b602052604090819020600801549085013510156111f85760405162461bcd60e51b81526004016105d890615779565b6000858152600b60205260408082209086013560038201556004015460ff16600281111561122257fe5b14156112685760005b61123b60808601606087016149e8565b600281111561124657fe5b146112635760405162461bcd60e51b81526004016105d89061550b565b6113b3565b60026000868152600b602052604090206004015460ff16600281111561128a57fe5b141561129757600261122b565b60016000868152600b602052604090206004015460ff1660028111156112b957fe5b14156113b35760006112d160808601606087016149e8565b60028111156112dc57fe5b1415611332576000858152600b6020526040902060080154600110156113145760405162461bcd60e51b81526004016105d890615376565b6000858152600b60205260409020600401805460ff191690556113b3565b600261134460808601606087016149e8565b600281111561134f57fe5b14156113b3576000858152600b60205260409020600801546080850135101561138a5760405162461bcd60e51b81526004016105d890615376565b6000858152600b6020526040902060048101805460ff1916600217905560808501356005909101555b836040516113c19190614c68565b60405180910390206113d1613bd8565b6001600160a01b0316600080516020615ab0833981519152876040516113f79190614ea2565b60405180910390a35b5050505050565b60058054604080516020601f60026000196101006001881615020190951694909404938401819004810282018101909252828152606093909290918301828280156114935780601f1061146857610100808354040283529160200191611493565b820191906000526020600020905b81548152906001019060200180831161147657829003601f168201915b50505050509050919050565b600080516020615c1a83398151915281565b6001600160801b031981565b6001600160a01b0387166114e35760405162461bcd60e51b81526004016105d890615738565b8483146115025760405162461bcd60e51b81526004016105d89061569c565b600061150c613bd8565b90506115b38160008a8a8a8080602002602001604051908101604052809392919081815260200183836020028082843760009201919091525050604080516020808e0282810182019093528d82529093508d92508c91829185019084908082843760009201919091525050604080516020601f8d018190048102820181019092528b815292508b91508a9081908401838280828437600092019190915250611b9392505050565b60005b868110156118f7576115e88888838181106115cd57fe5b90506020020135600080516020615a06833981519152613bdc565b6116045760405162461bcd60e51b81526004016105d8906154c7565b60006001600160801b031989898481811061161b57fe5b905060200201351690506000608082901c9050600061165e8b8b8681811061163f57fe5b905060200201358a8a8781811061165257fe5b90506020020135613c90565b90506116bb89898681811061166f57fe5b905060200201356007600084815260200190815260200160002060008f6001600160a01b03166001600160a01b0316815260200190815260200160002054613e9990919063ffffffff16565b6007600083815260200190815260200160002060008e6001600160a01b03166001600160a01b031681526020019081526020016000208190555061175089898681811061170457fe5b905060200201356008600085815260200190815260200160002060008f6001600160a01b03166001600160a01b0316815260200190815260200160002054613e9990919063ffffffff16565b6008600084815260200190815260200160002060008e6001600160a01b03166001600160a01b03168152602001908152602001600020819055506117d489898681811061179957fe5b90506020020135600960008f6001600160a01b03166001600160a01b0316815260200190815260200160002054613e9990919063ffffffff16565b6001600160a01b038d1660009081526009602052604090205561181a8989868181106117fc57fe5b6000858152600d602090815260409091205493910201359050613e99565b6000828152600d602052604090205561185689898681811061183857fe5b6000858152600c602090815260409091205493910201359050613e99565b6000828152600c602052604090205561189589898681811061187457fe5b6000868152600b602090815260409091206009015493910201359050613e99565b6000838152600b60205260409020600901556118d78989868181106118b657fe5b6000868152600b602090815260409091206008015493910201359050613e99565b6000928352600b60205260409092206008019190915550506001016115b6565b50876001600160a01b031660006001600160a01b0316826001600160a01b03166000805160206159c68339815191528a8a8a8a60405161193a9493929190614db6565b60405180910390a46119e78160008a8a8a8080602002602001604051908101604052809392919081815260200183836020028082843760009201919091525050604080516020808e0282810182019093528d82529093508d92508c91829185019084908082843760009201919091525050604080516020601f8d018190048102820181019092528b815292508b91508a9081908401838280828437600092019190915250613ef892505050565b5050505050505050565b60115460ff1681565b600e6020526000908152604090205481565b600080516020615a9083398151915281565b80600080516020615a90833981519152608082901c611a3b612b27565b6001600160a01b0316611a4c613bd8565b6001600160a01b03161415611aa3576000848152600f602052604090819020805460ff19166001179055518490600080516020615bfa83398151915290611a969089908990614eb9565b60405180910390a2611b93565b42611aaf610e07613bd8565b1115611af0576000848152600f602052604090819020805460ff19166001179055518490600080516020615bfa83398151915290611a969089908990614eb9565b42611afc610e45613bd8565b1115611b3d576000848152600f602052604090819020805460ff19166001179055518490600080516020615bfa83398151915290611a969089908990614eb9565b42611b49610e7b613bd8565b1115611b93576000848152600f602052604090819020805460ff19166001179055518490600080516020615bfa83398151915290611b8a9089908990614eb9565b60405180910390a25b505050505050565b8151835114611bbc5760405162461bcd60e51b81526004016105d89061569c565b6001600160a01b038416611be25760405162461bcd60e51b81526004016105d8906151e9565b611bea613bd8565b6001600160a01b0316856001600160a01b03161480611c105750611c108561054f613bd8565b611c2c5760405162461bcd60e51b81526004016105d8906150b2565b611c41611c37613bd8565b8686868686611b93565b60005b8351811015611fb15760006080806000196001600160801b0316901b868481518110611c6c57fe5b602002602001015116901c9050611d02848381518110611c8857fe5b60200260200101516040518060600160405280602a8152602001615b10602a913960076000898781518110611cb957fe5b6020026020010151815260200190815260200160002060008b6001600160a01b03166001600160a01b031681526020019081526020016000205461400f9092919063ffffffff16565b60076000878581518110611d1257fe5b602002602001015181526020019081526020016000206000896001600160a01b03166001600160a01b0316815260200190815260200160002081905550611dbe848381518110611d5e57fe5b602002602001015160076000888681518110611d7657fe5b602002602001015181526020019081526020016000206000896001600160a01b03166001600160a01b0316815260200190815260200160002054613e9990919063ffffffff16565b60076000878581518110611dce57fe5b602002602001015181526020019081526020016000206000886001600160a01b03166001600160a01b0316815260200190815260200160002081905550611e4e848381518110611e1a57fe5b60209081029190910181015160008481526008835260408082206001600160a01b038d1683529093529190912054906140a6565b60008281526008602090815260408083206001600160a01b038c1684529091529020558351611eb790859084908110611e8357fe5b60209081029190910181015160008481526008835260408082206001600160a01b038c168352909352919091205490613e99565b60008281526008602090815260408083206001600160a01b038b1684529091529020558351611f2890859084908110611eec57fe5b6020026020010151600960008a6001600160a01b03166001600160a01b03168152602001908152602001600020546140a690919063ffffffff16565b6001600160a01b0388166000908152600960205260409020558351611f8f90859084908110611f5357fe5b602002602001015160096000896001600160a01b03166001600160a01b0316815260200190815260200160002054613e9990919063ffffffff16565b6001600160a01b03871660009081526009602052604090205550600101611c44565b50836001600160a01b0316856001600160a01b0316611fce613bd8565b6001600160a01b03166000805160206159c68339815191528686604051611ff6929190614df0565b60405180910390a4611400612009613bd8565b8686868686613ef8565b600080516020615a0683398151915281565b600160209081526000938452604080852082529284528284209052825290205481565b60608382146120695760405162461bcd60e51b81526004016105d8906155a2565b6000846001600160401b038111801561208157600080fd5b506040519080825280602002602001820160405280156120ab578160200160208202803683370190505b50905060005b85811015612114576120f58787838181106120c857fe5b90506020020160208101906120dd9190614586565b8686848181106120e957fe5b905060200201356105b0565b82828151811061210157fe5b60209081029190910101526001016120b1565b5095945050505050565b600f6020526000908152604090205460ff1681565b60015b90565b600860209081526000928352604080842090915290825290205481565b81600080516020615c7a833981519152608082901c612173612b27565b6001600160a01b0316612184613bd8565b6001600160a01b031614156122e25760115460ff161580156121b557506000858152600f602052604090205460ff16155b6121d15760405162461bcd60e51b81526004016105d8906157e2565b60008581526010602090815260408083208054825160026001831615610100026000190190921691909104601f8101859004850282018501909352828152929091908301828280156122645780601f1061223957610100808354040283529160200191612264565b820191906000526020600020905b81548152906001019060200180831161224757829003601f168201915b5050506000898152601060209081526040909120895194955061228e949093509089019150614397565b508460405161229d9190614c4c565b6040518091039020866122ae613bd8565b6001600160a01b0316600080516020615c5a833981519152846040516122d49190614ed5565b60405180910390a450611400565b426122ee610e07613bd8565b11156123315760115460ff161580156121b557506000858152600f602052604090205460ff16156121d15760405162461bcd60e51b81526004016105d8906157e2565b4261233d610e45613bd8565b11156123805760115460ff161580156121b557506000858152600f602052604090205460ff16156121d15760405162461bcd60e51b81526004016105d8906157e2565b4261238c610e7b613bd8565b11156114005760115460ff161580156123b457506000858152600f602052604090205460ff16155b6123d05760405162461bcd60e51b81526004016105d8906157e2565b60008581526010602090815260408083208054825160026001831615610100026000190190921691909104601f8101859004850282018501909352828152929091908301828280156124635780601f1061243857610100808354040283529160200191612463565b820191906000526020600020905b81548152906001019060200180831161244657829003601f168201915b5050506000898152601060209081526040909120895194955061248d949093509089019150614397565b508460405161249c9190614c4c565b6040518091039020866124ad613bd8565b6001600160a01b0316600080516020615c5a833981519152846040516124d39190614ed5565b60405180910390a4505050505050565b600080516020615b9a83398151915281565b6001600160a01b038316600090815260016020908152604080832085845282528083208484529091529020549392505050565b6001600160a01b03831661254e5760405162461bcd60e51b81526004016105d89061522e565b805182511461256f5760405162461bcd60e51b81526004016105d89061569c565b6000612579613bd8565b905061259981856000868660405180602001604052806000815250611b93565b60005b83518110156128e2576125d08482815181106125b457fe5b6020026020010151600080516020615c3a833981519152613bdc565b6125ec5760405162461bcd60e51b81526004016105d89061542c565b83516000906001600160801b03199086908490811061260757fe5b60200260200101511690506000608082901c9050600061264d87858151811061262c57fe5b602002602001015187868151811061264057fe5b6020026020010151614103565b90506126a986858151811061265e57fe5b6020026020010151604051806060016040528060248152602001615a4c6024913960008481526007602090815260408083206001600160a01b038f168452909152902054919061400f565b60008281526007602090815260408083206001600160a01b038d1684529091529020558551612712908790869081106126de57fe5b60209081029190910181015160008581526008835260408082206001600160a01b038e1683529093529190912054906140a6565b60008381526008602090815260408083206001600160a01b038d16845290915290205585516127839087908690811061274757fe5b6020026020010151600960008b6001600160a01b03166001600160a01b03168152602001908152602001600020546140a690919063ffffffff16565b6001600160a01b03891660009081526009602052604090205585516127d8908790869081106127ae57fe5b6020026020010151600e600084815260200190815260200160002054613e9990919063ffffffff16565b6000828152600e60205260409020558551612823908790869081106127f957fe5b6020026020010151600c6000848152602001908152602001600020546140a690919063ffffffff16565b6000828152600c602052604090205585516128719087908690811061284457fe5b6020026020010151600b6000858152602001908152602001600020600a0154613e9990919063ffffffff16565b6000838152600b60205260409020600a015585516128c29087908690811061289557fe5b6020026020010151600b6000858152602001908152602001600020600801546140a690919063ffffffff16565b6000928352600b602052604090922060080191909155505060010161259c565b5060006001600160a01b0316846001600160a01b0316826001600160a01b03166000805160206159c68339815191528686604051612921929190614df0565b60405180910390a450505050565b612937613bd8565b6001600160a01b0316612948612b27565b6001600160a01b031614612991576040805162461bcd60e51b81526020600482018190526024820152600080516020615b3a833981519152604482015290519081900360640190fd5b600080546040516001600160a01b0390911690600080516020615b5a833981519152908390a3600080546001600160a01b0319169055565b600080516020615b7a83398151915281565b6005805460408051602060026001851615610100026000190190941693909304601f8101849004840282018401909252818152929183018282801561083a5780601f1061080f5761010080835404028352916020019161083a565b600b602090815260009182526040918290208054600180830180548651600261010094831615949094026000190190911692909204601f810186900486028301860190965285825260ff909216949293909290830182828015612ada5780601f10612aaf57610100808354040283529160200191612ada565b820191906000526020600020905b815481529060010190602001808311612abd57829003601f168201915b50505050600283015460038401546004850154600586015460068701546007880154600889015460098a0154600a909a0154989960ff97881699969850948716969395939092169390928b565b6000546001600160a01b031690565b600c6020526000908152604090205481565b816001600160a01b0316612b5a613bd8565b6001600160a01b03161415612b815760405162461bcd60e51b81526004016105d890615559565b80600a6000612b8e613bd8565b6001600160a01b03908116825260208083019390935260409182016000908120918716808252919093529120805460ff191692151592909217909155612bd2613bd8565b6001600160a01b03167f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c3183604051612c0a9190614e15565b60405180910390a35050565b600081565b6001600160801b0319600080516020615c1a833981519152612c3b612b27565b6001600160a01b0316612c4c613bd8565b6001600160a01b03161480612c6a575042612c6861067c613bd8565b115b612c865760405162461bcd60e51b81526004016105d8906150fb565b600680546001600160a01b038581166001600160a01b0319831681179093556040519116919082907f86fc6e0a974f7dc41d8919929be676b3fef83f31983d7699d063d5c515ec37f190600090a350505050565b60096020526000908152604090205481565b600080516020615c7a83398151915281565b600080516020615c3a83398151915281565b600080516020615a7083398151915281565b60026020526000908152604090205481565b6001600160801b031980612d46612b27565b6001600160a01b0316612d57613bd8565b6001600160a01b03161480612d75575042612d7361067c613bd8565b115b612d915760405162461bcd60e51b81526004016105d8906150fb565b83612dae5760405162461bcd60e51b81526004016105d890615319565b60008481526002602052604090208390558284612dc9613bd8565b6001600160a01b03167fad26b90be8a18bd2262e914f6fd4919c42f9dd6a0d07a15fa728ec603a836a8860405160405180910390a450505050565b6006546001600160a01b031681565b601154610100900460ff1681565b6000828152600260205260409020546001600160801b031990612e42612b27565b6001600160a01b0316612e53613bd8565b6001600160a01b03161480612e71575042612e6f61067c613bd8565b115b612e8d5760405162461bcd60e51b81526004016105d8906150fb565b83612eaa5760405162461bcd60e51b81526004016105d890615271565b6001600160a01b0386166000818152600160209081526040808320898452825280832088845290915290208490558490612ee2613bd8565b6001600160a01b03167f71b8ef6d2e182fa6ca30442059cc10398330b3e0561fd4ecc7232b62a8678cb688876040516124d3929190614eab565b6001600160801b0319600080516020615af0833981519152612f3c612b27565b6001600160a01b0316612f4d613bd8565b6001600160a01b03161480612f6b575042612f6961067c613bd8565b115b612f875760405162461bcd60e51b81526004016105d8906150fb565b60058054604080516020601f60026000196101006001881615020190951694909404938401819004810282018101909252828152600093909290918301828280156130135780601f10612fe857610100808354040283529160200191613013565b820191906000526020600020905b815481529060010190602001808311612ff657829003601f168201915b5050505050905084846005919061302b92919061430b565b50848460405161303c929190614c3c565b6040518091039020816040516130529190614c4c565b60405190819003812090600080516020615bba83398151915290600090a36011805460ff1916600117905560405160001990600080516020615bfa833981519152906130a19088908890614eb9565b60405180910390a25050505050565b60106020908152600091825260409182902080548351601f60026000196101006001861615020190931692909204918201849004840281018401909452808452909183018282801561083a5780601f1061080f5761010080835404028352916020019161083a565b60065460405163c455279160e01b81526000916001600160a01b039081169190841690829063c455279190613151908890600401614d09565b60206040518083038186803b15801561316957600080fd5b505afa15801561317d573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906131a191906145a2565b6001600160a01b031614156131ba576001915050610606565b50506001600160a01b039182166000908152600a6020908152604080832093909416825291909152205460ff1690565b6001600160a01b0385166132105760405162461bcd60e51b81526004016105d8906151e9565b613218613bd8565b6001600160a01b0316866001600160a01b0316148061323e575061323e8661054f613bd8565b61325a5760405162461bcd60e51b81526004016105d8906150b2565b6000613264613bd8565b90506132ba818888613275896141ed565b61327e896141ed565b88888080601f016020809104026020016040519081016040528093929190818152602001838380828437600092019190915250611b9392505050565b6040805160608101909152602a8082526001600160801b0319871691608088901c91613330918891615b106020830139600760008b815260200190815260200160002060008d6001600160a01b03166001600160a01b031681526020019081526020016000205461400f9092919063ffffffff16565b60008881526007602090815260408083206001600160a01b038e811685529252808320939093558a16815220546133679087613e99565b60008881526007602090815260408083206001600160a01b03808e1685529083528184209490945584835260088252808320938d16835292905220546133ad90876140a6565b60008281526008602090815260408083206001600160a01b038e811685529252808320939093558a16815220546133e49087613e99565b60008281526008602090815260408083206001600160a01b03808e16855290835281842094909455928c16825260099052205461342190876140a6565b6001600160a01b03808b1660009081526009602052604080822093909355908a16815220546134509087613e99565b6001600160a01b03808a16600081815260096020526040908190209390935591518b8216918616906000805160206159e683398151915290613495908c908c90614eab565b60405180910390a46134ac838a8a8a8a8a8a614232565b505050505050505050565b6134bf613bd8565b6001600160a01b03166134d0612b27565b6001600160a01b031614613519576040805162461bcd60e51b81526020600482018190526024820152600080516020615b3a833981519152604482015290519081900360640190fd5b6001600160a01b03811661355e5760405162461bcd60e51b8152600401808060200182810382526026815260200180615a266026913960400191505060405180910390fd5b600080546040516001600160a01b0380851693921691600080516020615b5a83398151915291a3600080546001600160a01b0319166001600160a01b0392909216919091179055565b81600080516020615c3a833981519152608082901c6135c4612b27565b6001600160a01b03166135d5613bd8565b6001600160a01b0316141561383b576001600160a01b03861661360a5760405162461bcd60e51b81526004016105d89061522e565b6001600160801b03198516608086901c60006136268888614103565b90506000613632613bd8565b9050613662818b6000613644866141ed565b61364d8d6141ed565b60405180602001604052806000815250611b93565b6136c588604051806060016040528060248152602001615a4c602491396007600086815260200190815260200160002060008e6001600160a01b03166001600160a01b031681526020019081526020016000205461400f9092919063ffffffff16565b60008381526007602090815260408083206001600160a01b038f168085529083528184209490945586835260088252808320938352929052205461370990896140a6565b60008481526008602090815260408083206001600160a01b038f16845282528083209390935560099052205461373f90896140a6565b6001600160a01b038b16600090815260096020908152604080832093909355848252600e905220546137719089613e99565b6000838152600e6020908152604080832093909355600c9052205461379690896140a6565b6000838152600c6020908152604080832093909355858252600b905220600a01546137c19089613e99565b6000848152600b60205260409020600a810191909155600801546137e590896140a6565b6000848152600b60205260408082206008019290925590516001600160a01b038c811691908416906000805160206159e68339815191529061382a908e908e90614eab565b60405180910390a450505050611b93565b42613847610e07613bd8565b1115613873576001600160a01b03861661360a5760405162461bcd60e51b81526004016105d89061522e565b4261387f610e45613bd8565b11156138ab576001600160a01b03861661360a5760405162461bcd60e51b81526004016105d89061522e565b426138b7610e7b613bd8565b1115611b93576001600160a01b0386166138e35760405162461bcd60e51b81526004016105d89061522e565b6001600160801b03198516608086901c60006138ff8888614103565b9050600061390b613bd8565b905061391d818b6000613644866141ed565b61398088604051806060016040528060248152602001615a4c602491396007600086815260200190815260200160002060008e6001600160a01b03166001600160a01b031681526020019081526020016000205461400f9092919063ffffffff16565b60008381526007602090815260408083206001600160a01b038f16808552908352818420949094558683526008825280832093835292905220546139c490896140a6565b60008481526008602090815260408083206001600160a01b038f1684528252808320939093556009905220546139fa90896140a6565b6001600160a01b038b16600090815260096020908152604080832093909355848252600e90522054613a2c9089613e99565b6000838152600e6020908152604080832093909355600c90522054613a5190896140a6565b6000838152600c6020908152604080832093909355858252600b905220600a0154613a7c9089613e99565b6000848152600b60205260409020600a81019190915560080154613aa090896140a6565b6000848152600b60205260408082206008019290925590516001600160a01b038c811691908416906000805160206159e683398151915290613ae5908e908e90614eab565b60405180910390a450505050505050505050565b6001600160801b0319600080516020615a70833981519152613b19612b27565b6001600160a01b0316613b2a613bd8565b6001600160a01b03161480613b48575042613b4661067c613bd8565b115b613b645760405162461bcd60e51b81526004016105d8906150fb565b6011805461ff001916610100179055613b7b613bd8565b6001600160a01b03167f48eefaf06cba524834d3f6d1525ccd42511dfbe9fb29a2fb665b324adb5210aa60405160405180910390a25050565b600080516020615af083398151915281565b600d6020526000908152604090205481565b3390565b6000608083901c613beb612b27565b6001600160a01b0316613bfc613bd8565b6001600160a01b03161415613c15576001915050610606565b42613c30613c21613bd8565b6001600160801b0319866124f5565b1115613c40576001915050610606565b42613c53613c4c613bd8565b83866124f5565b1115613c63576001915050610606565b42613c76613c6f613bd8565b86866124f5565b1115613c86576001915050610606565b6000915050610606565b608082901c6000818152600b602052604081205490916001600160801b031985169160ff16613cd15760405162461bcd60e51b81526004016105d8906156e4565b6000818152600b6020908152604080832060090154888452600d9092529091205460026000848152600b602052604090206006015460ff166002811115613d1457fe5b1415613d3e5750506000818152600b6020908152604080832060080154888452600c909252909120545b60016000848152600b6020526040902060029081015460ff1690811115613d6157fe5b14613da0576000838152600b6020526040902060030154613d828388613e99565b1115613da05760405162461bcd60e51b81526004016105d890614f84565b6000838152600b602052604081206004015460ff166002811115613dc057fe5b1415613df5576001613dd28288613e99565b1115613df05760405162461bcd60e51b81526004016105d89061519e565b613e57565b60026000848152600b602052604090206004015460ff166002811115613e1757fe5b1415613e57576000838152600b6020526040902060050154613e398288613e99565b1115613e575760405162461bcd60e51b81526004016105d890615470565b8660016000858152600b602052604090206004015460ff166002811115613e7a57fe5b1415613e8e57613e8b856001613e99565b90505b979650505050505050565b600082820183811015613ef1576040805162461bcd60e51b815260206004820152601b60248201527a536166654d6174683a206164646974696f6e206f766572666c6f7760281b604482015290519081900360640190fd5b9392505050565b613f0a846001600160a01b0316614305565b15611b935760405163bc197c8160e01b81526001600160a01b0385169063bc197c8190613f439089908990889088908890600401614d1d565b602060405180830381600087803b158015613f5d57600080fd5b505af1925050508015613f8d575060408051601f3d908101601f19168201909252613f8a918101906149cc565b60015b613fd657613f996158dc565b80613fa45750613fbe565b8060405162461bcd60e51b81526004016105d89190614ed5565b60405162461bcd60e51b81526004016105d890614ee8565b6001600160e01b0319811663bc197c8160e01b146140065760405162461bcd60e51b81526004016105d890614f3c565b50505050505050565b6000818484111561409e5760405162461bcd60e51b81526004018080602001828103825283818151815260200191508051906020019080838360005b8381101561406357818101518382015260200161404b565b50505050905090810190601f1680156140905780820380516001836020036101000a031916815260200191505b509250505060405180910390fd5b505050900390565b6000828211156140fd576040805162461bcd60e51b815260206004820152601e60248201527f536166654d6174683a207375627472616374696f6e206f766572666c6f770000604482015290519081900360640190fd5b50900390565b608082901c6000818152600b602052604081205490916001600160801b031985169160ff166141445760405162461bcd60e51b81526004016105d890615648565b60016000828152600b602052604090206006015460ff16600281111561416657fe5b14156141ad576000818152600b602052604090206007810154600a9091015461418f9086613e99565b11156141ad5760405162461bcd60e51b81526004016105d8906155eb565b8460016000838152600b602052604090206004015460ff1660028111156141d057fe5b14156141e4576141e1836001613e99565b90505b95945050505050565b6040805160018082528183019092526060916000919060208083019080368337019050509050828160008151811061422157fe5b602090810291909101015292915050565b614244856001600160a01b0316614305565b156140065760405163f23a6e6160e01b81526001600160a01b0386169063f23a6e619061427f908a908a908990899089908990600401614d7b565b602060405180830381600087803b15801561429957600080fd5b505af19250505080156142c9575060408051601f3d908101601f191682019092526142c6918101906149cc565b60015b6142d557613f996158dc565b6001600160e01b0319811663f23a6e6160e01b146119e75760405162461bcd60e51b81526004016105d890614f3c565b3b151590565b828054600181600116156101000203166002900490600052602060002090601f0160209004810192826143415760008555614387565b82601f1061435a5782800160ff19823516178555614387565b82800160010185558215614387579182015b8281111561438757823582559160200191906001019061436c565b50614393929150614413565b5090565b828054600181600116156101000203166002900490600052602060002090601f0160209004810192826143cd5760008555614387565b82601f106143e657805160ff1916838001178555614387565b82800160010185558215614387579182015b828111156143875782518255916020019190600101906143f8565b5b808211156143935760008155600101614414565b60006001600160401b0383111561443b57fe5b61444e601f8401601f1916602001615883565b905082815283838301111561446257600080fd5b828260208301376000602084830101529392505050565b60008083601f84011261448a578182fd5b5081356001600160401b038111156144a0578182fd5b60208301915083602080830285010111156144ba57600080fd5b9250929050565b600082601f8301126144d1578081fd5b813560206001600160401b038211156144e657fe5b8082026144f4828201615883565b83815282810190868401838801850189101561450e578687fd5b8693505b85841015614530578035835260019390930192918401918401614512565b50979650505050505050565b60008083601f84011261454d578182fd5b5081356001600160401b03811115614563578182fd5b6020830191508360208285010111156144ba57600080fd5b803561062a816159b8565b600060208284031215614597578081fd5b8135613ef18161598d565b6000602082840312156145b3578081fd5b8151613ef18161598d565b600080604083850312156145d0578081fd5b82356145db8161598d565b915060208301356145eb8161598d565b809150509250929050565b600080600080600060a0868803121561460d578081fd5b85356146188161598d565b945060208601356146288161598d565b935060408601356001600160401b0380821115614643578283fd5b61464f89838a016144c1565b94506060880135915080821115614664578283fd5b61467089838a016144c1565b93506080880135915080821115614685578283fd5b508601601f81018813614696578182fd5b6146a588823560208401614428565b9150509295509295909350565b60008060008060008060a087890312156146ca578081fd5b86356146d58161598d565b955060208701356146e58161598d565b9450604087013593506060870135925060808701356001600160401b0381111561470d578182fd5b61471989828a0161453c565b979a9699509497509295939492505050565b60008060008060008060006080888a031215614745578485fd5b87356147508161598d565b965060208801356001600160401b038082111561476b578687fd5b6147778b838c01614479565b909850965060408a013591508082111561478f578283fd5b61479b8b838c01614479565b909650945060608a01359150808211156147b3578283fd5b506147c08a828b0161453c565b989b979a50959850939692959293505050565b6000806000606084860312156147e7578081fd5b83356147f28161598d565b925060208401356001600160401b038082111561480d578283fd5b614819878388016144c1565b9350604086013591508082111561482e578283fd5b5061483b868287016144c1565b9150509250925092565b60008060408385031215614857578182fd5b82356148628161598d565b9150602083013580151581146145eb578182fd5b60008060006060848603121561488a578081fd5b83356148958161598d565b95602085013595506040909401359392505050565b600080600080608085870312156148bf578182fd5b84356148ca8161598d565b966020860135965060408601359560600135945092505050565b600080604083850312156148f6578182fd5b82356149018161598d565b946020939093013593505050565b60008060008060408587031215614924578182fd5b84356001600160401b038082111561493a578384fd5b61494688838901614479565b9096509450602087013591508082111561495e578384fd5b5061496b87828801614479565b95989497509550505050565b600060208284031215614988578081fd5b5035919050565b600080604083850312156149a1578182fd5b50508035926020909101359150565b6000602082840312156149c1578081fd5b8135613ef1816159a2565b6000602082840312156149dd578081fd5b8151613ef1816159a2565b6000602082840312156149f9578081fd5b8135613ef1816159b8565b60008060208385031215614a16578182fd5b82356001600160401b03811115614a2b578283fd5b614a378582860161453c565b90969095509350505050565b600080600060408486031215614a57578081fd5b83356001600160401b03811115614a6c578182fd5b614a788682870161453c565b909790965060209590950135949350505050565b60008060408385031215614a9e578182fd5b8235915060208301356145eb8161598d565b60008060408385031215614ac2578182fd5b8235915060208301356001600160401b03811115614ade578182fd5b8301601f81018513614aee578182fd5b614afd85823560208401614428565b9150509250929050565b60008060408385031215614b19578182fd5b8235915060208301356001600160401b03811115614b35578182fd5b830160e081860312156145eb578182fd5b6000614b5182615980565b50815260200190565b815260200190565b81835260006001600160fb1b03831115614b7a578081fd5b6020830280836020870137939093016020019283525090919050565b6000815180845260208085019450808401835b83811015614bc557815187529582019590820190600101614ba9565b509495945050505050565b60008284528282602086013780602084860101526020601f19601f85011685010190509392505050565b60008151808452614c128160208601602086016158a6565b601f01601f19169290920160200192915050565b6000828285378383015250601f01601f19160190565b6000828483379101908152919050565b60008251614c5e8184602087016158a6565b9190910192915050565b60008235601e19843603018112614c7d578182fd5b830180356001600160401b03811115614c94578283fd5b803603851315614ca2578283fd5b6141e4614cff614cf3614ce9614cdd614cd3614cc28a8860208b01614c26565b614cce60208d0161457b565b614b46565b60408b0135614b5a565b614cce60608b0161457b565b6080890135614b5a565b614cce60a0890161457b565b60c0870135614b5a565b6001600160a01b0391909116815260200190565b6001600160a01b0386811682528516602082015260a060408201819052600090614d4990830186614b96565b8281036060840152614d5b8186614b96565b90508281036080840152614d6f8185614bfa565b98975050505050505050565b6001600160a01b03878116825286166020820152604081018590526060810184905260a060808201819052600090614d6f9083018486614bd0565b600060408252614dca604083018688614b62565b8281036020840152613e8e818587614b62565b600060208252613ef16020830184614b96565b600060408252614e036040830185614b96565b82810360208401526141e48185614b96565b901515815260200190565b60006101608d15158352806020840152614e3c8184018e614bfa565b915050614e488b615980565b8a6040830152896060830152614e5d89615980565b8860808301528760a0830152614e7287615980565b60c082019690965260e0810194909452610100840192909252610120830152610140909101529695505050505050565b90815260200190565b918252602082015260400190565b600060208252614ecd602083018486614bd0565b949350505050565b600060208252613ef16020830184614bfa565b60208082526034908201527f455243313135353a207472616e7366657220746f206e6f6e20455243313135356040820152732932b1b2b4bb32b91034b6b83632b6b2b73a32b960611b606082015260800190565b60208082526028908201527f455243313135353a204552433131353552656365697665722072656a656374656040820152676420746f6b656e7360c01b606082015260800190565b60208082526031908201527f5375706572313135353a20796f752063616e6e6f74206d696e7420612067726f60408201527007570206265796f6e64206974732063617607c1b606082015260800190565b6020808252603f908201527f5375706572313135353a2074686520636f6c6c656374696f6e206973206c6f6360408201527f6b656420736f2067726f7570732063616e6e6f74206265206372656174656400606082015260800190565b6020808252602b908201527f455243313135353a2062616c616e636520717565727920666f7220746865207a60408201526a65726f206164647265737360a81b606082015260800190565b6020808252818101527f5375706572313135353a2067726f7570204944203020697320696e76616c6964604082015260600190565b60208082526029908201527f455243313135353a2063616c6c6572206973206e6f74206f776e6572206e6f7260408201526808185c1c1c9bdd995960ba1b606082015260800190565b60208082526032908201527f5065726d6974436f6e74726f6c3a2073656e64657220646f6573206e6f742068604082015271185d994818481d985b1a59081c195c9b5a5d60721b606082015260800190565b60208082526031908201527f5375706572313135353a20796f75206d6179206e6f7420756e63617020612063604082015270617070656420737570706c79207479706560781b606082015260800190565b6020808252603e90820152600080516020615ad083398151915260408201527f7468616e20612073696e676c65206e6f6e66756e6769626c65206974656d0000606082015260800190565b60208082526025908201527f455243313135353a207472616e7366657220746f20746865207a65726f206164604082015264647265737360d81b606082015260800190565b60208082526023908201527f455243313135353a206275726e2066726f6d20746865207a65726f206164647260408201526265737360e81b606082015260800190565b6020808252602f908201527f5065726d6974436f6e74726f6c3a20796f75206d6179206e6f74206772616e7460408201526e081d1a19481e995c9bc81c9a59da1d608a1b606082015260800190565b60208082526039908201527f5375706572313135353a2074686520636f6c6c656374696f6e205552492068616040820152781cc81899595b881c195c9b585b995b9d1b1e481b1bd8dad959603a1b606082015260800190565b6020808252603f908201527f5065726d6974436f6e74726f6c3a20796f75206d6179206e6f7420737065636960408201527f66792061206d616e6167657220666f7220746865207a65726f20726967687400606082015260800190565b6020808252603b908201527f5375706572313135353a207468652066756e6769626c65206974656d2069732060408201527a6e6f7420756e6971756520656e6f75676820746f206368616e676560281b606082015260800190565b6020808252603b908201527f5375706572313135353a20796f75206d6179206e6f7420696e6372656173652060408201527a74686520737570706c79206f66206120636170706564207479706560281b606082015260800190565b6020808252603690820152600080516020615bda8339815191526040820152756967687420746f206275726e2074686174206974656d60501b606082015260800190565b6020808252604390820152600080516020615ad083398151915260408201527f7468616e2074686520616c6c6f7465642073656d6966756e6769626c65206974606082015262656d7360e81b608082015260a00190565b6020808252603690820152600080516020615bda8339815191526040820152756967687420746f206d696e742074686174206974656d60501b606082015260800190565b6020808252602e908201527f5375706572313135353a20796f75206d6179206e6f7420616c746572206e6f6e60408201526d66756e6769626c65206974656d7360901b606082015260800190565b60208082526029908201527f455243313135353a2073657474696e6720617070726f76616c20737461747573604082015268103337b91039b2b63360b91b606082015260800190565b60208082526029908201527f455243313135353a206163636f756e747320616e6420696473206c656e677468604082015268040dad2e6dac2e8c6d60bb1b606082015260800190565b6020808252603f908201527f5375706572313135353a20796f75206d6179206e6f742065786365656420746860408201527f65206275726e206c696d6974206f6e2074686973206974656d2067726f757000606082015260800190565b60208082526034908201527f5375706572313135353a20796f752063616e6e6f74206275726e2061206e6f6e60408201527302d6578697374656e74206974656d2067726f75760641b606082015260800190565b60208082526028908201527f455243313135353a2069647320616e6420616d6f756e7473206c656e677468206040820152670dad2e6dac2e8c6d60c31b606082015260800190565b60208082526034908201527f5375706572313135353a20796f752063616e6e6f74206d696e742061206e6f6e60408201527302d6578697374656e74206974656d2067726f75760641b606082015260800190565b60208082526021908201527f455243313135353a206d696e7420746f20746865207a65726f206164647265736040820152607360f81b606082015260800190565b60208082526043908201527f5375706572313135353a20796f75206d6179206e6f742064656372656173652060408201527f737570706c792062656c6f77207468652063697263756c6174696e6720616d6f6060820152621d5b9d60ea1b608082015260a00190565b6020808252603d908201527f5375706572313135353a20796f752063616e6e6f74206564697420746869732060408201527f6d6574616461746120626563617573652069742069732066726f7a656e000000606082015260800190565b6000808335601e19843603018112615855578283fd5b8301803591506001600160401b0382111561586e578283fd5b6020019150368190038213156144ba57600080fd5b6040518181016001600160401b038111828210171561589e57fe5b604052919050565b60005b838110156158c15781810151838201526020016158a9565b838111156158d0576000848401525b50505050565b60e01c90565b600060443d10156158ec57612136565b600481823e6308c379a061590082516158d6565b1461590a57612136565b6040513d600319016004823e80513d6001600160401b0380831160248401831017156159395750505050612136565b828401925082519150808211156159535750505050612136565b503d8301602082840101111561596b57505050612136565b601f01601f1916810160200160405291505090565b6003811061598a57fe5b50565b6001600160a01b038116811461598a57600080fd5b6001600160e01b03198116811461598a57600080fd5b6003811061598a57600080fdfe4a39dc06d4c0dbc64b70af90fd698a233a518aa5d07e595d983b8c0526c8f7fbc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f62fdf81848136595c31bb5f76217767372bc4bf906663038eb38381131ea27ecba4f776e61626c653a206e6577206f776e657220697320746865207a65726f2061646472657373455243313135353a206275726e20616d6f756e7420657863656564732062616c616e6365c44198f822082633041989a5350456fe6f345c39095c3ab58d93e8c1746b457cc0dcea4ab243cec6cd1c15c252315928cfd1c09c7171111f751c83ecb1453b2f068262d6d506a990d3dcbae3ad56170a594d4de2caef7e9bcd55a75a0f4cbb715375706572313135353a20796f752063616e6e6f74206d696e74206d6f7265208b0421734f7acd679e559d6e2a9b55a743772942c49e512079bbf622d0d77991455243313135353a20696e73756666696369656e742062616c616e636520666f72207472616e736665724f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65728be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e03c07d937e99dce2eb02a49980bd3f83d7b407c435d29715324a7fa6aef462ee0cc04b671ccaa234fc9d17a57caae3184712621f217ae6df57a6b846664e574d75b17ab475512f2a6f23f05a3d8c95160a0f7fd98f6cac01ed5387920ba1a999e5375706572313135353a20796f7520646f206e6f742068617665207468652072a109ba539900bf1b633f956d63c96fc89b814c7287f7aa50a9216d0b55657207bc2728a99328017f9274b8f60f70953a70e1527c2c96ca4f56a4dfd01e859ba204c6a47ae7910ef8b295215a97e8495a9eaf57b7b05bfd8bf951edb3fd4a16a33b12522f3e05c9c8c5449e0089dbd13a1ec5b8226aa41c44e8fd60e45c9915ee1654c0b1bc79e5efd11874cb452467bf7311917990e2cd132e1a40ba3ae596e1a26469706673582212204119c7d1db24993a8ca0afb02f9ef13150e6a4b6c7d85ced2c2d1751f672219064736f6c634300070600334f776e61626c653a206e6577206f776e657220697320746865207a65726f20616464726573738be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e00000000000000000000000004237c8ae1b27581e86c809093c6e39c664b9beef000000000000000000000000000000000000000000000000000000000000008000000000000000000000000000000000000000000000000000000000000000c0000000000000000000000000a5409ec958c83c3f309868babaca7c86dcb077c1000000000000000000000000000000000000000000000000000000000000000b417374726f204672656e73000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000004468747470733a2f2f617374726f6672656e732d6d657461646174612e73332e616d617a6f6e6177732e636f6d2f5269636b7374726f4672656e732f7b69647d2e6a736f6e00000000000000000000000000000000000000000000000000000000
Deployed Bytecode
0x608060405234801561001057600080fd5b506004361061025b5760003560e01c8062fdd58e1461026057806301ffc9a71461028957806302fe5305146102a957806306fdde03146102be5780630c0694e1146102d35780630e89341c146102e6578063122b0817146102f957806317f5ebb4146103015780631b2df850146103015780631f7fdffa1461030957806320c5ab6a1461031c5780632319b64814610324578063249db23414610337578063267b144f1461033f5780632eb2c2d6146103525780633e36f4c714610365578063483ba44e1461036d5780634e1273f414610380578063504c9a5f146103a057806354fd4d50146103b3578063558e1561146103bb578063593aa283146103ce5780636502cde7146103e157806366a0e54d146103e95780636b20c454146103fc578063715018a61461040f5780637178008f1461041757806377a4d5591461041f5780638c2a4c4f146104275780638da5cb5b1461045157806392ff6aea14610466578063a22cb46514610479578063a625776e1461048c578063adfdeef914610494578063aee9c872146104a7578063af0c22a0146104ba578063c0a2526c146104c2578063c58f55db146104ca578063c5b16c59146104d2578063cc2af308146104e5578063cd7c0326146104f8578063cf30901214610500578063cf64d4c214610508578063de6cd0db1461051b578063e3684e391461052e578063e985e9c514610541578063f242432a14610554578063f2fde38b14610567578063f5298aca1461057a578063f83d08ba1461058d578063f9f82b2d14610595578063fa1100f41461059d575b600080fd5b61027361026e3660046148e4565b6105b0565b6040516102809190614ea2565b60405180910390f35b61029c6102973660046149b0565b61060c565b6040516102809190614e15565b6102bc6102b7366004614a04565b61062f565b005b6102c66107b4565b6040516102809190614ed5565b6102bc6102e1366004614b07565b610842565b6102c66102f4366004614977565b611407565b61027361149f565b6102736114b1565b6102bc61031736600461472b565b6114bd565b61029c6119f1565b610273610332366004614977565b6119fa565b610273611a0c565b6102bc61034d366004614a43565b611a1e565b6102bc6103603660046145f6565b611b9b565b610273612013565b61027361037b366004614876565b612025565b61039361038e36600461490f565b612048565b6040516102809190614ddd565b61029c6103ae366004614977565b61211e565b610273612133565b6102736103c9366004614a8c565b612139565b6102bc6103dc366004614ab0565b612156565b6102736124e3565b6102736103f7366004614876565b6124f5565b6102bc61040a3660046147d3565b612528565b6102bc61292f565b6102736129c9565b6102c66129db565b61043a610435366004614977565b612a36565b6040516102809b9a99989796959493929190614e20565b610459612b27565b6040516102809190614d09565b610273610474366004614977565b612b36565b6102bc610487366004614845565b612b48565b610273612c16565b6102bc6104a2366004614586565b612c1b565b6102736104b5366004614586565b612cda565b610273612cec565b610273612cfe565b610273612d10565b6102736104e0366004614977565b612d22565b6102bc6104f336600461498f565b612d34565b610459612e04565b61029c612e13565b6102bc6105163660046148aa565b612e21565b6102bc610529366004614a04565b612f1c565b6102c661053c366004614977565b6130b0565b61029c61054f3660046145be565b613118565b6102bc6105623660046146b2565b6131ea565b6102bc610575366004614586565b6134b7565b6102bc610588366004614876565b6135a7565b6102bc613af9565b610273613bb4565b6102736105ab366004614977565b613bc6565b60006001600160a01b0383166105e15760405162461bcd60e51b81526004016105d890615032565b60405180910390fd5b5060008181526007602090815260408083206001600160a01b03861684529091529020545b92915050565b6001600160e01b0319811660009081526003602052604090205460ff165b919050565b6001600160801b0319600080516020615b9a83398151915261064f612b27565b6001600160a01b0316610660613bd8565b6001600160a01b0316148061068557504261068361067c613bd8565b84846124f5565b115b6106a15760405162461bcd60e51b81526004016105d8906150fb565b60115460ff16156106c45760405162461bcd60e51b81526004016105d8906152c0565b60058054604080516020601f60026000196101006001881615020190951694909404938401819004810282018101909252828152600093909290918301828280156107505780601f1061072557610100808354040283529160200191610750565b820191906000526020600020905b81548152906001019060200180831161073357829003601f168201915b5050505050905084846005919061076892919061430b565b508484604051610779929190614c3c565b60405180910390208160405161078f9190614c4c565b60405190819003812090600080516020615bba83398151915290600090a35050505050565b6004805460408051602060026001851615610100026000190190941693909304601f8101849004840282018401909252818152929183018282801561083a5780601f1061080f5761010080835404028352916020019161083a565b820191906000526020600020905b81548152906001019060200180831161081d57829003601f168201915b505050505081565b81600080516020615b7a833981519152608082901c61085f612b27565b6001600160a01b0316610870613bd8565b6001600160a01b03161415610dfb578461089c5760405162461bcd60e51b81526004016105d89061507d565b6000858152600b602052604090205460ff16610ab357601154610100900460ff16156108da5760405162461bcd60e51b81526004016105d890614fd5565b60408051610160810190915260018152602081016108f8868061583f565b8080601f01602080910402602001604051908101604052809392919081815260200183838082843760009201919091525050509082525060209081019061094590604088019088016149e8565b600281111561095057fe5b815260408087013560208301520161096e60808701606088016149e8565b600281111561097957fe5b81526080860135602082015260400161099860c0870160a088016149e8565b60028111156109a357fe5b815260c086013560208083019190915260006040808401829052606084018290526080909301819052888152600b8252919091208251815460ff191690151517815582820151805191926109ff92600185019290910190614397565b5060408201518160020160006101000a81548160ff02191690836002811115610a2457fe5b021790555060608201516003820155608082015160048201805460ff19166001836002811115610a5057fe5b021790555060a0820151600582015560c082015160068201805460ff19166001836002811115610a7c57fe5b021790555060e082015160078201556101008201516008820155610120820151600982015561014090910151600a90910155610daa565b610abd848061583f565b6000878152600b60205260409020610ada9260019091019161430b565b506000858152600b6020526040812060029081015460ff1690811115610afc57fe5b1415610b77576000610b1460408601602087016149e8565b6002811115610b1f57fe5b14610b3c5760405162461bcd60e51b81526004016105d89061514d565b6000858152600b60205260409081902060030154908501351115610b725760405162461bcd60e51b81526004016105d8906153d1565b610bb9565b610b8760408501602086016149e8565b6000868152600b6020526040902060029081018054909160ff19909116906001908490811115610bb357fe5b02179055505b6000858152600b60205260409081902060080154908501351015610bef5760405162461bcd60e51b81526004016105d890615779565b6000858152600b60205260408082209086013560038201556004015460ff166002811115610c1957fe5b1415610c5f5760005b610c3260808601606087016149e8565b6002811115610c3d57fe5b14610c5a5760405162461bcd60e51b81526004016105d89061550b565b610daa565b60026000868152600b602052604090206004015460ff166002811115610c8157fe5b1415610c8e576002610c22565b60016000868152600b602052604090206004015460ff166002811115610cb057fe5b1415610daa576000610cc860808601606087016149e8565b6002811115610cd357fe5b1415610d29576000858152600b602052604090206008015460011015610d0b5760405162461bcd60e51b81526004016105d890615376565b6000858152600b60205260409020600401805460ff19169055610daa565b6002610d3b60808601606087016149e8565b6002811115610d4657fe5b1415610daa576000858152600b602052604090206008015460808501351015610d815760405162461bcd60e51b81526004016105d890615376565b6000858152600b6020526040902060048101805460ff1916600217905560808501356005909101555b83604051610db89190614c68565b6040518091039020610dc8613bd8565b6001600160a01b0316600080516020615ab083398151915287604051610dee9190614ea2565b60405180910390a3611400565b42610e16610e07613bd8565b6001600160801b0319856124f5565b1115610e39578461089c5760405162461bcd60e51b81526004016105d89061507d565b42610e4c610e45613bd8565b83856124f5565b1115610e6f578461089c5760405162461bcd60e51b81526004016105d89061507d565b42610e82610e7b613bd8565b85856124f5565b11156114005784610ea55760405162461bcd60e51b81526004016105d89061507d565b6000858152600b602052604090205460ff166110bc57601154610100900460ff1615610ee35760405162461bcd60e51b81526004016105d890614fd5565b6040805161016081019091526001815260208101610f01868061583f565b8080601f016020809104026020016040519081016040528093929190818152602001838380828437600092019190915250505090825250602090810190610f4e90604088019088016149e8565b6002811115610f5957fe5b8152604080870135602083015201610f7760808701606088016149e8565b6002811115610f8257fe5b815260808601356020820152604001610fa160c0870160a088016149e8565b6002811115610fac57fe5b815260c086013560208083019190915260006040808401829052606084018290526080909301819052888152600b8252919091208251815460ff1916901515178155828201518051919261100892600185019290910190614397565b5060408201518160020160006101000a81548160ff0219169083600281111561102d57fe5b021790555060608201516003820155608082015160048201805460ff1916600183600281111561105957fe5b021790555060a0820151600582015560c082015160068201805460ff1916600183600281111561108557fe5b021790555060e082015160078201556101008201516008820155610120820151600982015561014090910151600a909101556113b3565b6110c6848061583f565b6000878152600b602052604090206110e39260019091019161430b565b506000858152600b6020526040812060029081015460ff169081111561110557fe5b141561118057600061111d60408601602087016149e8565b600281111561112857fe5b146111455760405162461bcd60e51b81526004016105d89061514d565b6000858152600b6020526040908190206003015490850135111561117b5760405162461bcd60e51b81526004016105d8906153d1565b6111c2565b61119060408501602086016149e8565b6000868152600b6020526040902060029081018054909160ff199091169060019084908111156111bc57fe5b02179055505b6000858152600b602052604090819020600801549085013510156111f85760405162461bcd60e51b81526004016105d890615779565b6000858152600b60205260408082209086013560038201556004015460ff16600281111561122257fe5b14156112685760005b61123b60808601606087016149e8565b600281111561124657fe5b146112635760405162461bcd60e51b81526004016105d89061550b565b6113b3565b60026000868152600b602052604090206004015460ff16600281111561128a57fe5b141561129757600261122b565b60016000868152600b602052604090206004015460ff1660028111156112b957fe5b14156113b35760006112d160808601606087016149e8565b60028111156112dc57fe5b1415611332576000858152600b6020526040902060080154600110156113145760405162461bcd60e51b81526004016105d890615376565b6000858152600b60205260409020600401805460ff191690556113b3565b600261134460808601606087016149e8565b600281111561134f57fe5b14156113b3576000858152600b60205260409020600801546080850135101561138a5760405162461bcd60e51b81526004016105d890615376565b6000858152600b6020526040902060048101805460ff1916600217905560808501356005909101555b836040516113c19190614c68565b60405180910390206113d1613bd8565b6001600160a01b0316600080516020615ab0833981519152876040516113f79190614ea2565b60405180910390a35b5050505050565b60058054604080516020601f60026000196101006001881615020190951694909404938401819004810282018101909252828152606093909290918301828280156114935780601f1061146857610100808354040283529160200191611493565b820191906000526020600020905b81548152906001019060200180831161147657829003601f168201915b50505050509050919050565b600080516020615c1a83398151915281565b6001600160801b031981565b6001600160a01b0387166114e35760405162461bcd60e51b81526004016105d890615738565b8483146115025760405162461bcd60e51b81526004016105d89061569c565b600061150c613bd8565b90506115b38160008a8a8a8080602002602001604051908101604052809392919081815260200183836020028082843760009201919091525050604080516020808e0282810182019093528d82529093508d92508c91829185019084908082843760009201919091525050604080516020601f8d018190048102820181019092528b815292508b91508a9081908401838280828437600092019190915250611b9392505050565b60005b868110156118f7576115e88888838181106115cd57fe5b90506020020135600080516020615a06833981519152613bdc565b6116045760405162461bcd60e51b81526004016105d8906154c7565b60006001600160801b031989898481811061161b57fe5b905060200201351690506000608082901c9050600061165e8b8b8681811061163f57fe5b905060200201358a8a8781811061165257fe5b90506020020135613c90565b90506116bb89898681811061166f57fe5b905060200201356007600084815260200190815260200160002060008f6001600160a01b03166001600160a01b0316815260200190815260200160002054613e9990919063ffffffff16565b6007600083815260200190815260200160002060008e6001600160a01b03166001600160a01b031681526020019081526020016000208190555061175089898681811061170457fe5b905060200201356008600085815260200190815260200160002060008f6001600160a01b03166001600160a01b0316815260200190815260200160002054613e9990919063ffffffff16565b6008600084815260200190815260200160002060008e6001600160a01b03166001600160a01b03168152602001908152602001600020819055506117d489898681811061179957fe5b90506020020135600960008f6001600160a01b03166001600160a01b0316815260200190815260200160002054613e9990919063ffffffff16565b6001600160a01b038d1660009081526009602052604090205561181a8989868181106117fc57fe5b6000858152600d602090815260409091205493910201359050613e99565b6000828152600d602052604090205561185689898681811061183857fe5b6000858152600c602090815260409091205493910201359050613e99565b6000828152600c602052604090205561189589898681811061187457fe5b6000868152600b602090815260409091206009015493910201359050613e99565b6000838152600b60205260409020600901556118d78989868181106118b657fe5b6000868152600b602090815260409091206008015493910201359050613e99565b6000928352600b60205260409092206008019190915550506001016115b6565b50876001600160a01b031660006001600160a01b0316826001600160a01b03166000805160206159c68339815191528a8a8a8a60405161193a9493929190614db6565b60405180910390a46119e78160008a8a8a8080602002602001604051908101604052809392919081815260200183836020028082843760009201919091525050604080516020808e0282810182019093528d82529093508d92508c91829185019084908082843760009201919091525050604080516020601f8d018190048102820181019092528b815292508b91508a9081908401838280828437600092019190915250613ef892505050565b5050505050505050565b60115460ff1681565b600e6020526000908152604090205481565b600080516020615a9083398151915281565b80600080516020615a90833981519152608082901c611a3b612b27565b6001600160a01b0316611a4c613bd8565b6001600160a01b03161415611aa3576000848152600f602052604090819020805460ff19166001179055518490600080516020615bfa83398151915290611a969089908990614eb9565b60405180910390a2611b93565b42611aaf610e07613bd8565b1115611af0576000848152600f602052604090819020805460ff19166001179055518490600080516020615bfa83398151915290611a969089908990614eb9565b42611afc610e45613bd8565b1115611b3d576000848152600f602052604090819020805460ff19166001179055518490600080516020615bfa83398151915290611a969089908990614eb9565b42611b49610e7b613bd8565b1115611b93576000848152600f602052604090819020805460ff19166001179055518490600080516020615bfa83398151915290611b8a9089908990614eb9565b60405180910390a25b505050505050565b8151835114611bbc5760405162461bcd60e51b81526004016105d89061569c565b6001600160a01b038416611be25760405162461bcd60e51b81526004016105d8906151e9565b611bea613bd8565b6001600160a01b0316856001600160a01b03161480611c105750611c108561054f613bd8565b611c2c5760405162461bcd60e51b81526004016105d8906150b2565b611c41611c37613bd8565b8686868686611b93565b60005b8351811015611fb15760006080806000196001600160801b0316901b868481518110611c6c57fe5b602002602001015116901c9050611d02848381518110611c8857fe5b60200260200101516040518060600160405280602a8152602001615b10602a913960076000898781518110611cb957fe5b6020026020010151815260200190815260200160002060008b6001600160a01b03166001600160a01b031681526020019081526020016000205461400f9092919063ffffffff16565b60076000878581518110611d1257fe5b602002602001015181526020019081526020016000206000896001600160a01b03166001600160a01b0316815260200190815260200160002081905550611dbe848381518110611d5e57fe5b602002602001015160076000888681518110611d7657fe5b602002602001015181526020019081526020016000206000896001600160a01b03166001600160a01b0316815260200190815260200160002054613e9990919063ffffffff16565b60076000878581518110611dce57fe5b602002602001015181526020019081526020016000206000886001600160a01b03166001600160a01b0316815260200190815260200160002081905550611e4e848381518110611e1a57fe5b60209081029190910181015160008481526008835260408082206001600160a01b038d1683529093529190912054906140a6565b60008281526008602090815260408083206001600160a01b038c1684529091529020558351611eb790859084908110611e8357fe5b60209081029190910181015160008481526008835260408082206001600160a01b038c168352909352919091205490613e99565b60008281526008602090815260408083206001600160a01b038b1684529091529020558351611f2890859084908110611eec57fe5b6020026020010151600960008a6001600160a01b03166001600160a01b03168152602001908152602001600020546140a690919063ffffffff16565b6001600160a01b0388166000908152600960205260409020558351611f8f90859084908110611f5357fe5b602002602001015160096000896001600160a01b03166001600160a01b0316815260200190815260200160002054613e9990919063ffffffff16565b6001600160a01b03871660009081526009602052604090205550600101611c44565b50836001600160a01b0316856001600160a01b0316611fce613bd8565b6001600160a01b03166000805160206159c68339815191528686604051611ff6929190614df0565b60405180910390a4611400612009613bd8565b8686868686613ef8565b600080516020615a0683398151915281565b600160209081526000938452604080852082529284528284209052825290205481565b60608382146120695760405162461bcd60e51b81526004016105d8906155a2565b6000846001600160401b038111801561208157600080fd5b506040519080825280602002602001820160405280156120ab578160200160208202803683370190505b50905060005b85811015612114576120f58787838181106120c857fe5b90506020020160208101906120dd9190614586565b8686848181106120e957fe5b905060200201356105b0565b82828151811061210157fe5b60209081029190910101526001016120b1565b5095945050505050565b600f6020526000908152604090205460ff1681565b60015b90565b600860209081526000928352604080842090915290825290205481565b81600080516020615c7a833981519152608082901c612173612b27565b6001600160a01b0316612184613bd8565b6001600160a01b031614156122e25760115460ff161580156121b557506000858152600f602052604090205460ff16155b6121d15760405162461bcd60e51b81526004016105d8906157e2565b60008581526010602090815260408083208054825160026001831615610100026000190190921691909104601f8101859004850282018501909352828152929091908301828280156122645780601f1061223957610100808354040283529160200191612264565b820191906000526020600020905b81548152906001019060200180831161224757829003601f168201915b5050506000898152601060209081526040909120895194955061228e949093509089019150614397565b508460405161229d9190614c4c565b6040518091039020866122ae613bd8565b6001600160a01b0316600080516020615c5a833981519152846040516122d49190614ed5565b60405180910390a450611400565b426122ee610e07613bd8565b11156123315760115460ff161580156121b557506000858152600f602052604090205460ff16156121d15760405162461bcd60e51b81526004016105d8906157e2565b4261233d610e45613bd8565b11156123805760115460ff161580156121b557506000858152600f602052604090205460ff16156121d15760405162461bcd60e51b81526004016105d8906157e2565b4261238c610e7b613bd8565b11156114005760115460ff161580156123b457506000858152600f602052604090205460ff16155b6123d05760405162461bcd60e51b81526004016105d8906157e2565b60008581526010602090815260408083208054825160026001831615610100026000190190921691909104601f8101859004850282018501909352828152929091908301828280156124635780601f1061243857610100808354040283529160200191612463565b820191906000526020600020905b81548152906001019060200180831161244657829003601f168201915b5050506000898152601060209081526040909120895194955061248d949093509089019150614397565b508460405161249c9190614c4c565b6040518091039020866124ad613bd8565b6001600160a01b0316600080516020615c5a833981519152846040516124d39190614ed5565b60405180910390a4505050505050565b600080516020615b9a83398151915281565b6001600160a01b038316600090815260016020908152604080832085845282528083208484529091529020549392505050565b6001600160a01b03831661254e5760405162461bcd60e51b81526004016105d89061522e565b805182511461256f5760405162461bcd60e51b81526004016105d89061569c565b6000612579613bd8565b905061259981856000868660405180602001604052806000815250611b93565b60005b83518110156128e2576125d08482815181106125b457fe5b6020026020010151600080516020615c3a833981519152613bdc565b6125ec5760405162461bcd60e51b81526004016105d89061542c565b83516000906001600160801b03199086908490811061260757fe5b60200260200101511690506000608082901c9050600061264d87858151811061262c57fe5b602002602001015187868151811061264057fe5b6020026020010151614103565b90506126a986858151811061265e57fe5b6020026020010151604051806060016040528060248152602001615a4c6024913960008481526007602090815260408083206001600160a01b038f168452909152902054919061400f565b60008281526007602090815260408083206001600160a01b038d1684529091529020558551612712908790869081106126de57fe5b60209081029190910181015160008581526008835260408082206001600160a01b038e1683529093529190912054906140a6565b60008381526008602090815260408083206001600160a01b038d16845290915290205585516127839087908690811061274757fe5b6020026020010151600960008b6001600160a01b03166001600160a01b03168152602001908152602001600020546140a690919063ffffffff16565b6001600160a01b03891660009081526009602052604090205585516127d8908790869081106127ae57fe5b6020026020010151600e600084815260200190815260200160002054613e9990919063ffffffff16565b6000828152600e60205260409020558551612823908790869081106127f957fe5b6020026020010151600c6000848152602001908152602001600020546140a690919063ffffffff16565b6000828152600c602052604090205585516128719087908690811061284457fe5b6020026020010151600b6000858152602001908152602001600020600a0154613e9990919063ffffffff16565b6000838152600b60205260409020600a015585516128c29087908690811061289557fe5b6020026020010151600b6000858152602001908152602001600020600801546140a690919063ffffffff16565b6000928352600b602052604090922060080191909155505060010161259c565b5060006001600160a01b0316846001600160a01b0316826001600160a01b03166000805160206159c68339815191528686604051612921929190614df0565b60405180910390a450505050565b612937613bd8565b6001600160a01b0316612948612b27565b6001600160a01b031614612991576040805162461bcd60e51b81526020600482018190526024820152600080516020615b3a833981519152604482015290519081900360640190fd5b600080546040516001600160a01b0390911690600080516020615b5a833981519152908390a3600080546001600160a01b0319169055565b600080516020615b7a83398151915281565b6005805460408051602060026001851615610100026000190190941693909304601f8101849004840282018401909252818152929183018282801561083a5780601f1061080f5761010080835404028352916020019161083a565b600b602090815260009182526040918290208054600180830180548651600261010094831615949094026000190190911692909204601f810186900486028301860190965285825260ff909216949293909290830182828015612ada5780601f10612aaf57610100808354040283529160200191612ada565b820191906000526020600020905b815481529060010190602001808311612abd57829003601f168201915b50505050600283015460038401546004850154600586015460068701546007880154600889015460098a0154600a909a0154989960ff97881699969850948716969395939092169390928b565b6000546001600160a01b031690565b600c6020526000908152604090205481565b816001600160a01b0316612b5a613bd8565b6001600160a01b03161415612b815760405162461bcd60e51b81526004016105d890615559565b80600a6000612b8e613bd8565b6001600160a01b03908116825260208083019390935260409182016000908120918716808252919093529120805460ff191692151592909217909155612bd2613bd8565b6001600160a01b03167f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c3183604051612c0a9190614e15565b60405180910390a35050565b600081565b6001600160801b0319600080516020615c1a833981519152612c3b612b27565b6001600160a01b0316612c4c613bd8565b6001600160a01b03161480612c6a575042612c6861067c613bd8565b115b612c865760405162461bcd60e51b81526004016105d8906150fb565b600680546001600160a01b038581166001600160a01b0319831681179093556040519116919082907f86fc6e0a974f7dc41d8919929be676b3fef83f31983d7699d063d5c515ec37f190600090a350505050565b60096020526000908152604090205481565b600080516020615c7a83398151915281565b600080516020615c3a83398151915281565b600080516020615a7083398151915281565b60026020526000908152604090205481565b6001600160801b031980612d46612b27565b6001600160a01b0316612d57613bd8565b6001600160a01b03161480612d75575042612d7361067c613bd8565b115b612d915760405162461bcd60e51b81526004016105d8906150fb565b83612dae5760405162461bcd60e51b81526004016105d890615319565b60008481526002602052604090208390558284612dc9613bd8565b6001600160a01b03167fad26b90be8a18bd2262e914f6fd4919c42f9dd6a0d07a15fa728ec603a836a8860405160405180910390a450505050565b6006546001600160a01b031681565b601154610100900460ff1681565b6000828152600260205260409020546001600160801b031990612e42612b27565b6001600160a01b0316612e53613bd8565b6001600160a01b03161480612e71575042612e6f61067c613bd8565b115b612e8d5760405162461bcd60e51b81526004016105d8906150fb565b83612eaa5760405162461bcd60e51b81526004016105d890615271565b6001600160a01b0386166000818152600160209081526040808320898452825280832088845290915290208490558490612ee2613bd8565b6001600160a01b03167f71b8ef6d2e182fa6ca30442059cc10398330b3e0561fd4ecc7232b62a8678cb688876040516124d3929190614eab565b6001600160801b0319600080516020615af0833981519152612f3c612b27565b6001600160a01b0316612f4d613bd8565b6001600160a01b03161480612f6b575042612f6961067c613bd8565b115b612f875760405162461bcd60e51b81526004016105d8906150fb565b60058054604080516020601f60026000196101006001881615020190951694909404938401819004810282018101909252828152600093909290918301828280156130135780601f10612fe857610100808354040283529160200191613013565b820191906000526020600020905b815481529060010190602001808311612ff657829003601f168201915b5050505050905084846005919061302b92919061430b565b50848460405161303c929190614c3c565b6040518091039020816040516130529190614c4c565b60405190819003812090600080516020615bba83398151915290600090a36011805460ff1916600117905560405160001990600080516020615bfa833981519152906130a19088908890614eb9565b60405180910390a25050505050565b60106020908152600091825260409182902080548351601f60026000196101006001861615020190931692909204918201849004840281018401909452808452909183018282801561083a5780601f1061080f5761010080835404028352916020019161083a565b60065460405163c455279160e01b81526000916001600160a01b039081169190841690829063c455279190613151908890600401614d09565b60206040518083038186803b15801561316957600080fd5b505afa15801561317d573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906131a191906145a2565b6001600160a01b031614156131ba576001915050610606565b50506001600160a01b039182166000908152600a6020908152604080832093909416825291909152205460ff1690565b6001600160a01b0385166132105760405162461bcd60e51b81526004016105d8906151e9565b613218613bd8565b6001600160a01b0316866001600160a01b0316148061323e575061323e8661054f613bd8565b61325a5760405162461bcd60e51b81526004016105d8906150b2565b6000613264613bd8565b90506132ba818888613275896141ed565b61327e896141ed565b88888080601f016020809104026020016040519081016040528093929190818152602001838380828437600092019190915250611b9392505050565b6040805160608101909152602a8082526001600160801b0319871691608088901c91613330918891615b106020830139600760008b815260200190815260200160002060008d6001600160a01b03166001600160a01b031681526020019081526020016000205461400f9092919063ffffffff16565b60008881526007602090815260408083206001600160a01b038e811685529252808320939093558a16815220546133679087613e99565b60008881526007602090815260408083206001600160a01b03808e1685529083528184209490945584835260088252808320938d16835292905220546133ad90876140a6565b60008281526008602090815260408083206001600160a01b038e811685529252808320939093558a16815220546133e49087613e99565b60008281526008602090815260408083206001600160a01b03808e16855290835281842094909455928c16825260099052205461342190876140a6565b6001600160a01b03808b1660009081526009602052604080822093909355908a16815220546134509087613e99565b6001600160a01b03808a16600081815260096020526040908190209390935591518b8216918616906000805160206159e683398151915290613495908c908c90614eab565b60405180910390a46134ac838a8a8a8a8a8a614232565b505050505050505050565b6134bf613bd8565b6001600160a01b03166134d0612b27565b6001600160a01b031614613519576040805162461bcd60e51b81526020600482018190526024820152600080516020615b3a833981519152604482015290519081900360640190fd5b6001600160a01b03811661355e5760405162461bcd60e51b8152600401808060200182810382526026815260200180615a266026913960400191505060405180910390fd5b600080546040516001600160a01b0380851693921691600080516020615b5a83398151915291a3600080546001600160a01b0319166001600160a01b0392909216919091179055565b81600080516020615c3a833981519152608082901c6135c4612b27565b6001600160a01b03166135d5613bd8565b6001600160a01b0316141561383b576001600160a01b03861661360a5760405162461bcd60e51b81526004016105d89061522e565b6001600160801b03198516608086901c60006136268888614103565b90506000613632613bd8565b9050613662818b6000613644866141ed565b61364d8d6141ed565b60405180602001604052806000815250611b93565b6136c588604051806060016040528060248152602001615a4c602491396007600086815260200190815260200160002060008e6001600160a01b03166001600160a01b031681526020019081526020016000205461400f9092919063ffffffff16565b60008381526007602090815260408083206001600160a01b038f168085529083528184209490945586835260088252808320938352929052205461370990896140a6565b60008481526008602090815260408083206001600160a01b038f16845282528083209390935560099052205461373f90896140a6565b6001600160a01b038b16600090815260096020908152604080832093909355848252600e905220546137719089613e99565b6000838152600e6020908152604080832093909355600c9052205461379690896140a6565b6000838152600c6020908152604080832093909355858252600b905220600a01546137c19089613e99565b6000848152600b60205260409020600a810191909155600801546137e590896140a6565b6000848152600b60205260408082206008019290925590516001600160a01b038c811691908416906000805160206159e68339815191529061382a908e908e90614eab565b60405180910390a450505050611b93565b42613847610e07613bd8565b1115613873576001600160a01b03861661360a5760405162461bcd60e51b81526004016105d89061522e565b4261387f610e45613bd8565b11156138ab576001600160a01b03861661360a5760405162461bcd60e51b81526004016105d89061522e565b426138b7610e7b613bd8565b1115611b93576001600160a01b0386166138e35760405162461bcd60e51b81526004016105d89061522e565b6001600160801b03198516608086901c60006138ff8888614103565b9050600061390b613bd8565b905061391d818b6000613644866141ed565b61398088604051806060016040528060248152602001615a4c602491396007600086815260200190815260200160002060008e6001600160a01b03166001600160a01b031681526020019081526020016000205461400f9092919063ffffffff16565b60008381526007602090815260408083206001600160a01b038f16808552908352818420949094558683526008825280832093835292905220546139c490896140a6565b60008481526008602090815260408083206001600160a01b038f1684528252808320939093556009905220546139fa90896140a6565b6001600160a01b038b16600090815260096020908152604080832093909355848252600e90522054613a2c9089613e99565b6000838152600e6020908152604080832093909355600c90522054613a5190896140a6565b6000838152600c6020908152604080832093909355858252600b905220600a0154613a7c9089613e99565b6000848152600b60205260409020600a81019190915560080154613aa090896140a6565b6000848152600b60205260408082206008019290925590516001600160a01b038c811691908416906000805160206159e683398151915290613ae5908e908e90614eab565b60405180910390a450505050505050505050565b6001600160801b0319600080516020615a70833981519152613b19612b27565b6001600160a01b0316613b2a613bd8565b6001600160a01b03161480613b48575042613b4661067c613bd8565b115b613b645760405162461bcd60e51b81526004016105d8906150fb565b6011805461ff001916610100179055613b7b613bd8565b6001600160a01b03167f48eefaf06cba524834d3f6d1525ccd42511dfbe9fb29a2fb665b324adb5210aa60405160405180910390a25050565b600080516020615af083398151915281565b600d6020526000908152604090205481565b3390565b6000608083901c613beb612b27565b6001600160a01b0316613bfc613bd8565b6001600160a01b03161415613c15576001915050610606565b42613c30613c21613bd8565b6001600160801b0319866124f5565b1115613c40576001915050610606565b42613c53613c4c613bd8565b83866124f5565b1115613c63576001915050610606565b42613c76613c6f613bd8565b86866124f5565b1115613c86576001915050610606565b6000915050610606565b608082901c6000818152600b602052604081205490916001600160801b031985169160ff16613cd15760405162461bcd60e51b81526004016105d8906156e4565b6000818152600b6020908152604080832060090154888452600d9092529091205460026000848152600b602052604090206006015460ff166002811115613d1457fe5b1415613d3e5750506000818152600b6020908152604080832060080154888452600c909252909120545b60016000848152600b6020526040902060029081015460ff1690811115613d6157fe5b14613da0576000838152600b6020526040902060030154613d828388613e99565b1115613da05760405162461bcd60e51b81526004016105d890614f84565b6000838152600b602052604081206004015460ff166002811115613dc057fe5b1415613df5576001613dd28288613e99565b1115613df05760405162461bcd60e51b81526004016105d89061519e565b613e57565b60026000848152600b602052604090206004015460ff166002811115613e1757fe5b1415613e57576000838152600b6020526040902060050154613e398288613e99565b1115613e575760405162461bcd60e51b81526004016105d890615470565b8660016000858152600b602052604090206004015460ff166002811115613e7a57fe5b1415613e8e57613e8b856001613e99565b90505b979650505050505050565b600082820183811015613ef1576040805162461bcd60e51b815260206004820152601b60248201527a536166654d6174683a206164646974696f6e206f766572666c6f7760281b604482015290519081900360640190fd5b9392505050565b613f0a846001600160a01b0316614305565b15611b935760405163bc197c8160e01b81526001600160a01b0385169063bc197c8190613f439089908990889088908890600401614d1d565b602060405180830381600087803b158015613f5d57600080fd5b505af1925050508015613f8d575060408051601f3d908101601f19168201909252613f8a918101906149cc565b60015b613fd657613f996158dc565b80613fa45750613fbe565b8060405162461bcd60e51b81526004016105d89190614ed5565b60405162461bcd60e51b81526004016105d890614ee8565b6001600160e01b0319811663bc197c8160e01b146140065760405162461bcd60e51b81526004016105d890614f3c565b50505050505050565b6000818484111561409e5760405162461bcd60e51b81526004018080602001828103825283818151815260200191508051906020019080838360005b8381101561406357818101518382015260200161404b565b50505050905090810190601f1680156140905780820380516001836020036101000a031916815260200191505b509250505060405180910390fd5b505050900390565b6000828211156140fd576040805162461bcd60e51b815260206004820152601e60248201527f536166654d6174683a207375627472616374696f6e206f766572666c6f770000604482015290519081900360640190fd5b50900390565b608082901c6000818152600b602052604081205490916001600160801b031985169160ff166141445760405162461bcd60e51b81526004016105d890615648565b60016000828152600b602052604090206006015460ff16600281111561416657fe5b14156141ad576000818152600b602052604090206007810154600a9091015461418f9086613e99565b11156141ad5760405162461bcd60e51b81526004016105d8906155eb565b8460016000838152600b602052604090206004015460ff1660028111156141d057fe5b14156141e4576141e1836001613e99565b90505b95945050505050565b6040805160018082528183019092526060916000919060208083019080368337019050509050828160008151811061422157fe5b602090810291909101015292915050565b614244856001600160a01b0316614305565b156140065760405163f23a6e6160e01b81526001600160a01b0386169063f23a6e619061427f908a908a908990899089908990600401614d7b565b602060405180830381600087803b15801561429957600080fd5b505af19250505080156142c9575060408051601f3d908101601f191682019092526142c6918101906149cc565b60015b6142d557613f996158dc565b6001600160e01b0319811663f23a6e6160e01b146119e75760405162461bcd60e51b81526004016105d890614f3c565b3b151590565b828054600181600116156101000203166002900490600052602060002090601f0160209004810192826143415760008555614387565b82601f1061435a5782800160ff19823516178555614387565b82800160010185558215614387579182015b8281111561438757823582559160200191906001019061436c565b50614393929150614413565b5090565b828054600181600116156101000203166002900490600052602060002090601f0160209004810192826143cd5760008555614387565b82601f106143e657805160ff1916838001178555614387565b82800160010185558215614387579182015b828111156143875782518255916020019190600101906143f8565b5b808211156143935760008155600101614414565b60006001600160401b0383111561443b57fe5b61444e601f8401601f1916602001615883565b905082815283838301111561446257600080fd5b828260208301376000602084830101529392505050565b60008083601f84011261448a578182fd5b5081356001600160401b038111156144a0578182fd5b60208301915083602080830285010111156144ba57600080fd5b9250929050565b600082601f8301126144d1578081fd5b813560206001600160401b038211156144e657fe5b8082026144f4828201615883565b83815282810190868401838801850189101561450e578687fd5b8693505b85841015614530578035835260019390930192918401918401614512565b50979650505050505050565b60008083601f84011261454d578182fd5b5081356001600160401b03811115614563578182fd5b6020830191508360208285010111156144ba57600080fd5b803561062a816159b8565b600060208284031215614597578081fd5b8135613ef18161598d565b6000602082840312156145b3578081fd5b8151613ef18161598d565b600080604083850312156145d0578081fd5b82356145db8161598d565b915060208301356145eb8161598d565b809150509250929050565b600080600080600060a0868803121561460d578081fd5b85356146188161598d565b945060208601356146288161598d565b935060408601356001600160401b0380821115614643578283fd5b61464f89838a016144c1565b94506060880135915080821115614664578283fd5b61467089838a016144c1565b93506080880135915080821115614685578283fd5b508601601f81018813614696578182fd5b6146a588823560208401614428565b9150509295509295909350565b60008060008060008060a087890312156146ca578081fd5b86356146d58161598d565b955060208701356146e58161598d565b9450604087013593506060870135925060808701356001600160401b0381111561470d578182fd5b61471989828a0161453c565b979a9699509497509295939492505050565b60008060008060008060006080888a031215614745578485fd5b87356147508161598d565b965060208801356001600160401b038082111561476b578687fd5b6147778b838c01614479565b909850965060408a013591508082111561478f578283fd5b61479b8b838c01614479565b909650945060608a01359150808211156147b3578283fd5b506147c08a828b0161453c565b989b979a50959850939692959293505050565b6000806000606084860312156147e7578081fd5b83356147f28161598d565b925060208401356001600160401b038082111561480d578283fd5b614819878388016144c1565b9350604086013591508082111561482e578283fd5b5061483b868287016144c1565b9150509250925092565b60008060408385031215614857578182fd5b82356148628161598d565b9150602083013580151581146145eb578182fd5b60008060006060848603121561488a578081fd5b83356148958161598d565b95602085013595506040909401359392505050565b600080600080608085870312156148bf578182fd5b84356148ca8161598d565b966020860135965060408601359560600135945092505050565b600080604083850312156148f6578182fd5b82356149018161598d565b946020939093013593505050565b60008060008060408587031215614924578182fd5b84356001600160401b038082111561493a578384fd5b61494688838901614479565b9096509450602087013591508082111561495e578384fd5b5061496b87828801614479565b95989497509550505050565b600060208284031215614988578081fd5b5035919050565b600080604083850312156149a1578182fd5b50508035926020909101359150565b6000602082840312156149c1578081fd5b8135613ef1816159a2565b6000602082840312156149dd578081fd5b8151613ef1816159a2565b6000602082840312156149f9578081fd5b8135613ef1816159b8565b60008060208385031215614a16578182fd5b82356001600160401b03811115614a2b578283fd5b614a378582860161453c565b90969095509350505050565b600080600060408486031215614a57578081fd5b83356001600160401b03811115614a6c578182fd5b614a788682870161453c565b909790965060209590950135949350505050565b60008060408385031215614a9e578182fd5b8235915060208301356145eb8161598d565b60008060408385031215614ac2578182fd5b8235915060208301356001600160401b03811115614ade578182fd5b8301601f81018513614aee578182fd5b614afd85823560208401614428565b9150509250929050565b60008060408385031215614b19578182fd5b8235915060208301356001600160401b03811115614b35578182fd5b830160e081860312156145eb578182fd5b6000614b5182615980565b50815260200190565b815260200190565b81835260006001600160fb1b03831115614b7a578081fd5b6020830280836020870137939093016020019283525090919050565b6000815180845260208085019450808401835b83811015614bc557815187529582019590820190600101614ba9565b509495945050505050565b60008284528282602086013780602084860101526020601f19601f85011685010190509392505050565b60008151808452614c128160208601602086016158a6565b601f01601f19169290920160200192915050565b6000828285378383015250601f01601f19160190565b6000828483379101908152919050565b60008251614c5e8184602087016158a6565b9190910192915050565b60008235601e19843603018112614c7d578182fd5b830180356001600160401b03811115614c94578283fd5b803603851315614ca2578283fd5b6141e4614cff614cf3614ce9614cdd614cd3614cc28a8860208b01614c26565b614cce60208d0161457b565b614b46565b60408b0135614b5a565b614cce60608b0161457b565b6080890135614b5a565b614cce60a0890161457b565b60c0870135614b5a565b6001600160a01b0391909116815260200190565b6001600160a01b0386811682528516602082015260a060408201819052600090614d4990830186614b96565b8281036060840152614d5b8186614b96565b90508281036080840152614d6f8185614bfa565b98975050505050505050565b6001600160a01b03878116825286166020820152604081018590526060810184905260a060808201819052600090614d6f9083018486614bd0565b600060408252614dca604083018688614b62565b8281036020840152613e8e818587614b62565b600060208252613ef16020830184614b96565b600060408252614e036040830185614b96565b82810360208401526141e48185614b96565b901515815260200190565b60006101608d15158352806020840152614e3c8184018e614bfa565b915050614e488b615980565b8a6040830152896060830152614e5d89615980565b8860808301528760a0830152614e7287615980565b60c082019690965260e0810194909452610100840192909252610120830152610140909101529695505050505050565b90815260200190565b918252602082015260400190565b600060208252614ecd602083018486614bd0565b949350505050565b600060208252613ef16020830184614bfa565b60208082526034908201527f455243313135353a207472616e7366657220746f206e6f6e20455243313135356040820152732932b1b2b4bb32b91034b6b83632b6b2b73a32b960611b606082015260800190565b60208082526028908201527f455243313135353a204552433131353552656365697665722072656a656374656040820152676420746f6b656e7360c01b606082015260800190565b60208082526031908201527f5375706572313135353a20796f752063616e6e6f74206d696e7420612067726f60408201527007570206265796f6e64206974732063617607c1b606082015260800190565b6020808252603f908201527f5375706572313135353a2074686520636f6c6c656374696f6e206973206c6f6360408201527f6b656420736f2067726f7570732063616e6e6f74206265206372656174656400606082015260800190565b6020808252602b908201527f455243313135353a2062616c616e636520717565727920666f7220746865207a60408201526a65726f206164647265737360a81b606082015260800190565b6020808252818101527f5375706572313135353a2067726f7570204944203020697320696e76616c6964604082015260600190565b60208082526029908201527f455243313135353a2063616c6c6572206973206e6f74206f776e6572206e6f7260408201526808185c1c1c9bdd995960ba1b606082015260800190565b60208082526032908201527f5065726d6974436f6e74726f6c3a2073656e64657220646f6573206e6f742068604082015271185d994818481d985b1a59081c195c9b5a5d60721b606082015260800190565b60208082526031908201527f5375706572313135353a20796f75206d6179206e6f7420756e63617020612063604082015270617070656420737570706c79207479706560781b606082015260800190565b6020808252603e90820152600080516020615ad083398151915260408201527f7468616e20612073696e676c65206e6f6e66756e6769626c65206974656d0000606082015260800190565b60208082526025908201527f455243313135353a207472616e7366657220746f20746865207a65726f206164604082015264647265737360d81b606082015260800190565b60208082526023908201527f455243313135353a206275726e2066726f6d20746865207a65726f206164647260408201526265737360e81b606082015260800190565b6020808252602f908201527f5065726d6974436f6e74726f6c3a20796f75206d6179206e6f74206772616e7460408201526e081d1a19481e995c9bc81c9a59da1d608a1b606082015260800190565b60208082526039908201527f5375706572313135353a2074686520636f6c6c656374696f6e205552492068616040820152781cc81899595b881c195c9b585b995b9d1b1e481b1bd8dad959603a1b606082015260800190565b6020808252603f908201527f5065726d6974436f6e74726f6c3a20796f75206d6179206e6f7420737065636960408201527f66792061206d616e6167657220666f7220746865207a65726f20726967687400606082015260800190565b6020808252603b908201527f5375706572313135353a207468652066756e6769626c65206974656d2069732060408201527a6e6f7420756e6971756520656e6f75676820746f206368616e676560281b606082015260800190565b6020808252603b908201527f5375706572313135353a20796f75206d6179206e6f7420696e6372656173652060408201527a74686520737570706c79206f66206120636170706564207479706560281b606082015260800190565b6020808252603690820152600080516020615bda8339815191526040820152756967687420746f206275726e2074686174206974656d60501b606082015260800190565b6020808252604390820152600080516020615ad083398151915260408201527f7468616e2074686520616c6c6f7465642073656d6966756e6769626c65206974606082015262656d7360e81b608082015260a00190565b6020808252603690820152600080516020615bda8339815191526040820152756967687420746f206d696e742074686174206974656d60501b606082015260800190565b6020808252602e908201527f5375706572313135353a20796f75206d6179206e6f7420616c746572206e6f6e60408201526d66756e6769626c65206974656d7360901b606082015260800190565b60208082526029908201527f455243313135353a2073657474696e6720617070726f76616c20737461747573604082015268103337b91039b2b63360b91b606082015260800190565b60208082526029908201527f455243313135353a206163636f756e747320616e6420696473206c656e677468604082015268040dad2e6dac2e8c6d60bb1b606082015260800190565b6020808252603f908201527f5375706572313135353a20796f75206d6179206e6f742065786365656420746860408201527f65206275726e206c696d6974206f6e2074686973206974656d2067726f757000606082015260800190565b60208082526034908201527f5375706572313135353a20796f752063616e6e6f74206275726e2061206e6f6e60408201527302d6578697374656e74206974656d2067726f75760641b606082015260800190565b60208082526028908201527f455243313135353a2069647320616e6420616d6f756e7473206c656e677468206040820152670dad2e6dac2e8c6d60c31b606082015260800190565b60208082526034908201527f5375706572313135353a20796f752063616e6e6f74206d696e742061206e6f6e60408201527302d6578697374656e74206974656d2067726f75760641b606082015260800190565b60208082526021908201527f455243313135353a206d696e7420746f20746865207a65726f206164647265736040820152607360f81b606082015260800190565b60208082526043908201527f5375706572313135353a20796f75206d6179206e6f742064656372656173652060408201527f737570706c792062656c6f77207468652063697263756c6174696e6720616d6f6060820152621d5b9d60ea1b608082015260a00190565b6020808252603d908201527f5375706572313135353a20796f752063616e6e6f74206564697420746869732060408201527f6d6574616461746120626563617573652069742069732066726f7a656e000000606082015260800190565b6000808335601e19843603018112615855578283fd5b8301803591506001600160401b0382111561586e578283fd5b6020019150368190038213156144ba57600080fd5b6040518181016001600160401b038111828210171561589e57fe5b604052919050565b60005b838110156158c15781810151838201526020016158a9565b838111156158d0576000848401525b50505050565b60e01c90565b600060443d10156158ec57612136565b600481823e6308c379a061590082516158d6565b1461590a57612136565b6040513d600319016004823e80513d6001600160401b0380831160248401831017156159395750505050612136565b828401925082519150808211156159535750505050612136565b503d8301602082840101111561596b57505050612136565b601f01601f1916810160200160405291505090565b6003811061598a57fe5b50565b6001600160a01b038116811461598a57600080fd5b6001600160e01b03198116811461598a57600080fd5b6003811061598a57600080fdfe4a39dc06d4c0dbc64b70af90fd698a233a518aa5d07e595d983b8c0526c8f7fbc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f62fdf81848136595c31bb5f76217767372bc4bf906663038eb38381131ea27ecba4f776e61626c653a206e6577206f776e657220697320746865207a65726f2061646472657373455243313135353a206275726e20616d6f756e7420657863656564732062616c616e6365c44198f822082633041989a5350456fe6f345c39095c3ab58d93e8c1746b457cc0dcea4ab243cec6cd1c15c252315928cfd1c09c7171111f751c83ecb1453b2f068262d6d506a990d3dcbae3ad56170a594d4de2caef7e9bcd55a75a0f4cbb715375706572313135353a20796f752063616e6e6f74206d696e74206d6f7265208b0421734f7acd679e559d6e2a9b55a743772942c49e512079bbf622d0d77991455243313135353a20696e73756666696369656e742062616c616e636520666f72207472616e736665724f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65728be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e03c07d937e99dce2eb02a49980bd3f83d7b407c435d29715324a7fa6aef462ee0cc04b671ccaa234fc9d17a57caae3184712621f217ae6df57a6b846664e574d75b17ab475512f2a6f23f05a3d8c95160a0f7fd98f6cac01ed5387920ba1a999e5375706572313135353a20796f7520646f206e6f742068617665207468652072a109ba539900bf1b633f956d63c96fc89b814c7287f7aa50a9216d0b55657207bc2728a99328017f9274b8f60f70953a70e1527c2c96ca4f56a4dfd01e859ba204c6a47ae7910ef8b295215a97e8495a9eaf57b7b05bfd8bf951edb3fd4a16a33b12522f3e05c9c8c5449e0089dbd13a1ec5b8226aa41c44e8fd60e45c9915ee1654c0b1bc79e5efd11874cb452467bf7311917990e2cd132e1a40ba3ae596e1a26469706673582212204119c7d1db24993a8ca0afb02f9ef13150e6a4b6c7d85ced2c2d1751f672219064736f6c63430007060033
Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)
0000000000000000000000004237c8ae1b27581e86c809093c6e39c664b9beef000000000000000000000000000000000000000000000000000000000000008000000000000000000000000000000000000000000000000000000000000000c0000000000000000000000000a5409ec958c83c3f309868babaca7c86dcb077c1000000000000000000000000000000000000000000000000000000000000000b417374726f204672656e73000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000004468747470733a2f2f617374726f6672656e732d6d657461646174612e73332e616d617a6f6e6177732e636f6d2f5269636b7374726f4672656e732f7b69647d2e6a736f6e00000000000000000000000000000000000000000000000000000000
-----Decoded View---------------
Arg [0] : _owner (address): 0x4237c8Ae1B27581e86c809093C6E39C664B9BEEF
Arg [1] : _name (string): Astro Frens
Arg [2] : _uri (string): https://astrofrens-metadata.s3.amazonaws.com/RickstroFrens/{id}.json
Arg [3] : _proxyRegistryAddress (address): 0xa5409ec958C83C3f309868babACA7c86DCB077c1
-----Encoded View---------------
10 Constructor Arguments found :
Arg [0] : 0000000000000000000000004237c8ae1b27581e86c809093c6e39c664b9beef
Arg [1] : 0000000000000000000000000000000000000000000000000000000000000080
Arg [2] : 00000000000000000000000000000000000000000000000000000000000000c0
Arg [3] : 000000000000000000000000a5409ec958c83c3f309868babaca7c86dcb077c1
Arg [4] : 000000000000000000000000000000000000000000000000000000000000000b
Arg [5] : 417374726f204672656e73000000000000000000000000000000000000000000
Arg [6] : 0000000000000000000000000000000000000000000000000000000000000044
Arg [7] : 68747470733a2f2f617374726f6672656e732d6d657461646174612e73332e61
Arg [8] : 6d617a6f6e6177732e636f6d2f5269636b7374726f4672656e732f7b69647d2e
Arg [9] : 6a736f6e00000000000000000000000000000000000000000000000000000000
Loading...
Loading
Loading...
Loading
[ Download: CSV Export ]
A token is a representation of an on-chain or off-chain asset. The token page shows information such as price, total supply, holders, transfers and social links. Learn more about this page in our Knowledge Base.