ERC-1155
Overview
Max Total Supply
0
Holders
176
Market
Volume (24H)
N/A
Min Price (24H)
N/A
Max Price (24H)
N/A
Other Info
Token Contract
Loading...
Loading
Loading...
Loading
Loading...
Loading
# | Exchange | Pair | Price | 24H Volume | % Volume |
---|
This contract may be a proxy contract. Click on More Options and select Is this a proxy? to confirm and enable the "Read as Proxy" & "Write as Proxy" tabs.
Contract Name:
WOWSERC1155
Compiler Version
v0.7.4+commit.3f05b770
Contract Source Code (Solidity Standard Json-Input format)
/* * Copyright (C) 2020-2021 The Wolfpack * This file is part of wolves.finance - https://github.com/wolvesofwallstreet/wolves.finance * * SPDX-License-Identifier: Apache-2.0 * See the file LICENSES/README.md for more information. */ pragma solidity >=0.7.0 <0.8.0; import '@openzeppelin/contracts/presets/ERC1155PresetMinterPauser.sol'; import '@openzeppelin/contracts/proxy/Clones.sol'; import './interfaces/IWOWSCryptofolio.sol'; import './interfaces/IWOWSERC1155.sol'; bytes16 constant HEX = '0123456789ABCDEF'; /** * TODO's: * implement transfer and burn helpers for cryptofolio items */ contract WOWSERC1155 is IWOWSERC1155, ERC1155PresetMinterPauser { // Used to restict calls to TRADEFLOOR but also to collect all TRADEFLOORS bytes32 public constant TRADEFLOOR_ROLE = keccak256('TRADEFLOOR_ROLE'); // Used to restict calls to TRADEFLOOR but also to collect all TRADEFLOORS bytes32 public constant OPERATOR_ROLE = keccak256('OPERATOR_ROLE'); // Cap per card for each level mapping(uint8 => uint16) private _wowsLevelCap; // How many cards have been minted mapping(uint16 => uint16) private _wowsCardsMinted; // Card state of custom NFT's struct CustomCard { string uri; uint8 level; } mapping(uint256 => CustomCard) private _customCards; uint256 private _customCardCount; struct ListKey { uint256 index; } // Per-token data struct TokenInfo { bool minted; // Make sure we only mint 1 uint64 timestamp; ListKey listKey; // Next tokenId in the owner linkedList } mapping(uint256 => TokenInfo) private _tokenInfos; // Mapping tokenId -> generated address mapping(uint256 => address) private _tokenIdToAddress; // Mapping generated address -> tokenId mapping(address => uint256) private _addressToTokenId; // Mapping owner -> first owned token // // Note that we work 1 based here because of initialization // e.g. firstId == 1 links to tokenId 0; struct Owned { uint256 count; ListKey listKey; // First tokenId in linked list } mapping(address => Owned) private _owned; // Our master cryptofolio used for clones address private _cryptofolio; // URI used for custom tokenIds without specific URI string private _customDefaultUri; ////////////////////////////////////////////////////////////////////////////// // Constructor ////////////////////////////////////////////////////////////////////////////// /** * @dev URI is for WOWS predefined NFT's * * The other token URI's must be set separately. */ constructor( address _owner, address __cryptofolio, string memory _uri ) ERC1155PresetMinterPauser(_uri) { // Grant _owner initial admin role _setupRole(DEFAULT_ADMIN_ROLE, _owner); // Setup wows card definition _wowsLevelCap[0] = 20; _wowsLevelCap[1] = 20; _wowsLevelCap[4] = 20; _wowsLevelCap[5] = 20; // Our clone blueprint cryptofolio. _cryptofolio = __cryptofolio; } ////////////////////////////////////////////////////////////////////////////// // Implementation of {IWOWSERC1155} ////////////////////////////////////////////////////////////////////////////// /** * @dev See {IWOWSERC1155-isTradeFloor}. */ function isTradeFloor(address account) external view override returns (bool) { return hasRole(TRADEFLOOR_ROLE, account); } /** * @dev See {IWOWSERC1155-addressToTokenId}. */ function addressToTokenId(address tokenAddress) external view override returns (uint256) { uint256 tokenId = _addressToTokenId[tokenAddress]; return _tokenIdToAddress[tokenId] == tokenAddress ? tokenId : uint256(-1); } /** * @dev See {IWOWSERC1155-tokenIdToAddress}. */ function tokenIdToAddress(uint256 tokenId) external view override returns (address) { return _tokenIdToAddress[tokenId]; } /** * @dev See {IWOWSERC1155-getNextMintableTokenId}. */ function getNextMintableTokenId(uint8 level, uint8 cardId) external view override returns (bool, uint256) { uint16 levelCard = ((uint16(level) << 8) | cardId); uint256 tokenId = uint32(levelCard) << 16; uint256 tokenIdEnd = tokenId + _wowsLevelCap[level]; for (; tokenId < tokenIdEnd; ++tokenId) if (!_tokenInfos[tokenId].minted) return (true, tokenId); return (false, uint256(-1)); } /** * @dev See {IWOWSERC1155-getNextMintableCustomToken}. */ function getNextMintableCustomToken() external view override returns (uint256) { require(_customCardCount + 0x100000000 > _customCardCount, 'math overflow'); return _customCardCount + 0x100000000; } /** * @dev See {IWOWSERC1155-setURI}. */ function setURI(uint256 tokenId, string memory _uri) public override { require( hasRole((tokenId == 0) ? DEFAULT_ADMIN_ROLE : MINTER_ROLE, _msgSender()), 'Access denied' ); require(tokenId == 0 || tokenId > 0xFFFFFFFF, 'invalid tokenId'); if (tokenId == 0) _setURI(_uri); else _customCards[tokenId].uri = _uri; } /** * @dev See {IWOWSERC1155-setCustomDefaultURI}. */ function setCustomDefaultURI(string memory _uri) public override { require(hasRole(DEFAULT_ADMIN_ROLE, _msgSender()), 'Only admin'); _customDefaultUri = _uri; } /** * @dev See {IWOWSERC1155-setCustomCardLevel}. */ function setCustomCardLevel(uint256 tokenId, uint8 cardLevel) public override { require(hasRole(MINTER_ROLE, _msgSender()), 'Only minter'); require(tokenId > 0xFFFFFFFF, 'Only for custom cards'); _customCards[tokenId].level = cardLevel; } ////////////////////////////////////////////////////////////////////////////// // Implementation of {IERC1155} via {ERC1155PresetMinterPauser} ////////////////////////////////////////////////////////////////////////////// /** * @dev See {IERC1155-setApprovalForAll}. */ function setApprovalForAll(address operator, bool approved) public virtual override { // Prevent auctions like OpenSea from selling this token. Selling by third // parties is only allowed for cryptofolios which are locked in one of our // TradeFloor contracts. require(hasRole(OPERATOR_ROLE, operator), 'Only Operators'); super.setApprovalForAll(operator, approved); } ////////////////////////////////////////////////////////////////////////////// // Implementation of {IERC1155MetadataURI} via {ERC1155PresetMinterPauser} ////////////////////////////////////////////////////////////////////////////// /** * @dev See {IERC1155MetadataURI-uri}. * * For custom tokens the URI is thought to be a full URL without * placeholders. For our WOWS token a tokenid placeholder is expected, and * the id is of the metadata is tokenId >> 16 because 16Bit tken share the * same metadata / image. */ function uri(uint256 tokenId) public view virtual override(ERC1155) returns (string memory) { if (tokenId > 0xFFFFFFFF) // Custom token return bytes(_customCards[tokenId].uri).length == 0 ? _customDefaultUri : _customCards[tokenId].uri; // WOWS token return string( abi.encodePacked( super.uri(0), HEX[(tokenId >> 28) & 0xF], HEX[(tokenId >> 24) & 0xF], HEX[(tokenId >> 20) & 0xF], HEX[(tokenId >> 16) & 0xF], '.json' ) ); } ////////////////////////////////////////////////////////////////////////////// // Implementation of {ERC1155PresetMinterPauser} ////////////////////////////////////////////////////////////////////////////// /** * @dev See {ERC1155-_beforeTokenTransfer}. */ function _beforeTokenTransfer( address operator, address from, address to, uint256[] memory tokenIds, uint256[] memory amounts, bytes memory data ) internal virtual override(ERC1155PresetMinterPauser) { super._beforeTokenTransfer(operator, from, to, tokenIds, amounts, data); require(tokenIds.length == amounts.length, 'Length mismatch'); for (uint256 i = 0; i < tokenIds.length; ++i) { // We have only NFT's in this contract require(amounts[i] == 1, 'Amount != 1'); uint256 tokenId = tokenIds[i]; address tokenAddress = _tokenIdToAddress[tokenId]; TokenInfo storage tokenInfo = _tokenInfos[tokenId]; if (from == address(0)) { // Minting require(!tokenInfo.minted, 'Already minted'); tokenInfo.minted = true; // solhint-disable-next-line not-rely-on-time tokenInfo.timestamp = uint64(block.timestamp); // Create a new WOWSCryptofolio by cloning masterTokenReciver // The clone itself is a minimal delegate proxy. if (tokenAddress == address(0)) { tokenAddress = Clones.clone(_cryptofolio); _tokenIdToAddress[tokenId] = tokenAddress; IWOWSCryptofolio(tokenAddress).initialize(); } _addressToTokenId[tokenAddress] = tokenId; // Increment the minted count for this card if (tokenId <= 0xFFFFFFFF) _wowsCardsMinted[uint16(tokenId >> 16)] += 1; else ++_customCardCount; } else if (to == address(0)) { // Burning // Make sure underlying assets gets burned IWOWSCryptofolio(tokenAddress).burn(); // Make token mintable again tokenInfo.minted = false; // Decrement the minted count for this card if (tokenId <= 0xFFFFFFFF) _wowsCardsMinted[uint16(tokenId >> 16)] -= 1; } // Signal ownership change in Cryptofolio IWOWSCryptofolio(tokenAddress).setOwner(to); // Reflect ownership change in our linked list _relinkOwner(from, to, tokenId); } } ////////////////////////////////////////////////////////////////////////////// // Getters ////////////////////////////////////////////////////////////////////////////// /** * @dev Return information about a wows card * * @param level The level of the card * @param cardId The id of the card * * @return cap Max mintable cards * @return minted Already minted cards */ function getCardData(uint8 level, uint8 cardId) external view returns (uint16 cap, uint16 minted) { return ( _wowsLevelCap[level], _wowsCardsMinted[uint16(level << 8) | cardId] ); } /** * @dev Return information about a wows card * * @param levels The levels of the card to query * @param cardIds A list of card ids to query * * @return capMintedPair Array of 16 Bit, cap,minted,... */ function getCardDataBatch(uint8[] memory levels, uint8[] memory cardIds) external view returns (uint16[] memory capMintedPair) { require(levels.length == cardIds.length, 'Length mismatch'); uint16[] memory result = new uint16[](cardIds.length * 2); for (uint256 i = 0; i < cardIds.length; ++i) { result[i * 2] = _wowsLevelCap[levels[i]]; result[i * 2 + 1] = _wowsCardsMinted[ (uint16(levels[i]) << 8) | cardIds[i] ]; } return result; } /** * @dev Return the level and the mint timestamp of tokenId * * @param tokenId The tokenId to query * * @return mintTimestamp The timestamp token was minted * @return level The level token belongs to */ function getTokenData(uint256 tokenId) external view returns (uint64 mintTimestamp, uint8 level) { uint8 _level = (tokenId > 0xFFFFFFFF) ? _customCards[tokenId].level : uint8(tokenId >> 24); return (_tokenInfos[tokenId].timestamp, _level); } /** * @dev Return list of tokenIds owned by `account` */ function getTokenIds(address account) external view returns (uint256[] memory) { Owned storage list = _owned[account]; uint256[] memory result = new uint256[](list.count); ListKey storage key = list.listKey; for (uint256 i = 0; i < list.count; ++i) { result[i] = key.index; key = _tokenInfos[key.index].listKey; } return result; } ////////////////////////////////////////////////////////////////////////////// // State modifiers ////////////////////////////////////////////////////////////////////////////// /** * @dev Set the cap of a specific WOWS level * * Note that this function can be used to add a new card. */ function setWowsLevelCaps(uint8[] memory levels, uint16[] memory newCaps) public { require(hasRole(DEFAULT_ADMIN_ROLE, _msgSender()), 'Only admin'); require(levels.length == newCaps.length, "Lengths don't match"); for (uint256 i = 0; i < levels.length; ++i) { require(_wowsLevelCap[levels[i]] < newCaps[i], 'Decrement forbidden'); _wowsLevelCap[levels[i]] = newCaps[i]; } } ////////////////////////////////////////////////////////////////////////////// // Internal functionality ////////////////////////////////////////////////////////////////////////////// /** * @dev Ownership change -> update linked list owner -> tokenId * * linkKeys are 1 based where tokenIds are 0-based. */ function _relinkOwner( address from, address to, uint256 tokenId ) internal { TokenInfo storage tokenInfo = _tokenInfos[tokenId]; // Remove tokenId from List if (from != address(0)) { Owned storage fromList = _owned[from]; require(fromList.count > 0, 'Count mismatch'); ListKey storage key = fromList.listKey; uint256 count = fromList.count; // Search the token which links to tokenId for (; count > 0 && key.index != tokenId; --count) key = _tokenInfos[key.index].listKey; require(key.index == tokenId, 'Key mismatch'); // Unlink prev -> tokenId key.index = tokenInfo.listKey.index; // Unlink tokenId -> next tokenInfo.listKey.index = 0; // Decrement count fromList.count--; } if (to != address(0)) { Owned storage toList = _owned[to]; tokenInfo.listKey.index = toList.listKey.index; toList.listKey.index = tokenId; toList.count++; } } }
// SPDX-License-Identifier: MIT pragma solidity >=0.6.0 <0.8.0; import "../utils/EnumerableSet.sol"; import "../utils/Address.sol"; import "../utils/Context.sol"; /** * @dev Contract module that allows children to implement role-based access * control mechanisms. * * Roles are referred to by their `bytes32` identifier. These should be exposed * in the external API and be unique. The best way to achieve this is by * using `public constant` hash digests: * * ``` * bytes32 public constant MY_ROLE = keccak256("MY_ROLE"); * ``` * * Roles can be used to represent a set of permissions. To restrict access to a * function call, use {hasRole}: * * ``` * function foo() public { * require(hasRole(MY_ROLE, msg.sender)); * ... * } * ``` * * Roles can be granted and revoked dynamically via the {grantRole} and * {revokeRole} functions. Each role has an associated admin role, and only * accounts that have a role's admin role can call {grantRole} and {revokeRole}. * * By default, the admin role for all roles is `DEFAULT_ADMIN_ROLE`, which means * that only accounts with this role will be able to grant or revoke other * roles. More complex role relationships can be created by using * {_setRoleAdmin}. * * WARNING: The `DEFAULT_ADMIN_ROLE` is also its own admin: it has permission to * grant and revoke this role. Extra precautions should be taken to secure * accounts that have been granted it. */ abstract contract AccessControl is Context { using EnumerableSet for EnumerableSet.AddressSet; using Address for address; struct RoleData { EnumerableSet.AddressSet members; bytes32 adminRole; } mapping (bytes32 => RoleData) private _roles; bytes32 public constant DEFAULT_ADMIN_ROLE = 0x00; /** * @dev Emitted when `newAdminRole` is set as ``role``'s admin role, replacing `previousAdminRole` * * `DEFAULT_ADMIN_ROLE` is the starting admin for all roles, despite * {RoleAdminChanged} not being emitted signaling this. * * _Available since v3.1._ */ event RoleAdminChanged(bytes32 indexed role, bytes32 indexed previousAdminRole, bytes32 indexed newAdminRole); /** * @dev Emitted when `account` is granted `role`. * * `sender` is the account that originated the contract call, an admin role * bearer except when using {_setupRole}. */ event RoleGranted(bytes32 indexed role, address indexed account, address indexed sender); /** * @dev Emitted when `account` is revoked `role`. * * `sender` is the account that originated the contract call: * - if using `revokeRole`, it is the admin role bearer * - if using `renounceRole`, it is the role bearer (i.e. `account`) */ event RoleRevoked(bytes32 indexed role, address indexed account, address indexed sender); /** * @dev Returns `true` if `account` has been granted `role`. */ function hasRole(bytes32 role, address account) public view returns (bool) { return _roles[role].members.contains(account); } /** * @dev Returns the number of accounts that have `role`. Can be used * together with {getRoleMember} to enumerate all bearers of a role. */ function getRoleMemberCount(bytes32 role) public view returns (uint256) { return _roles[role].members.length(); } /** * @dev Returns one of the accounts that have `role`. `index` must be a * value between 0 and {getRoleMemberCount}, non-inclusive. * * Role bearers are not sorted in any particular way, and their ordering may * change at any point. * * WARNING: When using {getRoleMember} and {getRoleMemberCount}, make sure * you perform all queries on the same block. See the following * https://forum.openzeppelin.com/t/iterating-over-elements-on-enumerableset-in-openzeppelin-contracts/2296[forum post] * for more information. */ function getRoleMember(bytes32 role, uint256 index) public view returns (address) { return _roles[role].members.at(index); } /** * @dev Returns the admin role that controls `role`. See {grantRole} and * {revokeRole}. * * To change a role's admin, use {_setRoleAdmin}. */ function getRoleAdmin(bytes32 role) public view returns (bytes32) { return _roles[role].adminRole; } /** * @dev Grants `role` to `account`. * * If `account` had not been already granted `role`, emits a {RoleGranted} * event. * * Requirements: * * - the caller must have ``role``'s admin role. */ function grantRole(bytes32 role, address account) public virtual { require(hasRole(_roles[role].adminRole, _msgSender()), "AccessControl: sender must be an admin to grant"); _grantRole(role, account); } /** * @dev Revokes `role` from `account`. * * If `account` had been granted `role`, emits a {RoleRevoked} event. * * Requirements: * * - the caller must have ``role``'s admin role. */ function revokeRole(bytes32 role, address account) public virtual { require(hasRole(_roles[role].adminRole, _msgSender()), "AccessControl: sender must be an admin to revoke"); _revokeRole(role, account); } /** * @dev Revokes `role` from the calling account. * * Roles are often managed via {grantRole} and {revokeRole}: this function's * purpose is to provide a mechanism for accounts to lose their privileges * if they are compromised (such as when a trusted device is misplaced). * * If the calling account had been granted `role`, emits a {RoleRevoked} * event. * * Requirements: * * - the caller must be `account`. */ function renounceRole(bytes32 role, address account) public virtual { require(account == _msgSender(), "AccessControl: can only renounce roles for self"); _revokeRole(role, account); } /** * @dev Grants `role` to `account`. * * If `account` had not been already granted `role`, emits a {RoleGranted} * event. Note that unlike {grantRole}, this function doesn't perform any * checks on the calling account. * * [WARNING] * ==== * This function should only be called from the constructor when setting * up the initial roles for the system. * * Using this function in any other way is effectively circumventing the admin * system imposed by {AccessControl}. * ==== */ function _setupRole(bytes32 role, address account) internal virtual { _grantRole(role, account); } /** * @dev Sets `adminRole` as ``role``'s admin role. * * Emits a {RoleAdminChanged} event. */ function _setRoleAdmin(bytes32 role, bytes32 adminRole) internal virtual { emit RoleAdminChanged(role, _roles[role].adminRole, adminRole); _roles[role].adminRole = adminRole; } function _grantRole(bytes32 role, address account) private { if (_roles[role].members.add(account)) { emit RoleGranted(role, account, _msgSender()); } } function _revokeRole(bytes32 role, address account) private { if (_roles[role].members.remove(account)) { emit RoleRevoked(role, account, _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.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; /** * @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.0 <0.8.0; import "../access/AccessControl.sol"; import "../utils/Context.sol"; import "../token/ERC1155/ERC1155.sol"; import "../token/ERC1155/ERC1155Burnable.sol"; import "../token/ERC1155/ERC1155Pausable.sol"; /** * @dev {ERC1155} token, including: * * - ability for holders to burn (destroy) their tokens * - a minter role that allows for token minting (creation) * - a pauser role that allows to stop all token transfers * * This contract uses {AccessControl} to lock permissioned functions using the * different roles - head to its documentation for details. * * The account that deploys the contract will be granted the minter and pauser * roles, as well as the default admin role, which will let it grant both minter * and pauser roles to other accounts. */ contract ERC1155PresetMinterPauser is Context, AccessControl, ERC1155Burnable, ERC1155Pausable { bytes32 public constant MINTER_ROLE = keccak256("MINTER_ROLE"); bytes32 public constant PAUSER_ROLE = keccak256("PAUSER_ROLE"); constructor(string memory uri) public ERC1155(uri) { } /** * @dev Creates `amount` new tokens for `to`, of token type `id`. * * See {ERC1155-_mint}. * * Requirements: * * - the caller must have the `MINTER_ROLE`. */ function mint(address to, uint256 id, uint256 amount, bytes memory data) public virtual { require(hasRole(MINTER_ROLE, _msgSender()), "ERC1155PresetMinterPauser: must have minter role to mint"); _mint(to, id, amount, data); } /** * @dev xref:ROOT:erc1155.adoc#batch-operations[Batched] variant of {mint}. */ function mintBatch(address to, uint256[] memory ids, uint256[] memory amounts, bytes memory data) public virtual { require(hasRole(MINTER_ROLE, _msgSender()), "ERC1155PresetMinterPauser: must have minter role to mint"); _mintBatch(to, ids, amounts, data); } /** * @dev Pauses all token transfers. * * See {ERC1155Pausable} and {Pausable-_pause}. * * Requirements: * * - the caller must have the `PAUSER_ROLE`. */ function pause() public virtual { require(hasRole(PAUSER_ROLE, _msgSender()), "ERC1155PresetMinterPauser: must have pauser role to pause"); _pause(); } /** * @dev Unpauses all token transfers. * * See {ERC1155Pausable} and {Pausable-_unpause}. * * Requirements: * * - the caller must have the `PAUSER_ROLE`. */ function unpause() public virtual { require(hasRole(PAUSER_ROLE, _msgSender()), "ERC1155PresetMinterPauser: must have pauser role to unpause"); _unpause(); } function _beforeTokenTransfer( address operator, address from, address to, uint256[] memory ids, uint256[] memory amounts, bytes memory data ) internal virtual override(ERC1155, ERC1155Pausable) { super._beforeTokenTransfer(operator, from, to, ids, amounts, data); } }
// SPDX-License-Identifier: MIT pragma solidity >=0.6.0 <0.8.0; /** * @dev https://eips.ethereum.org/EIPS/eip-1167[EIP 1167] is a standard for * deploying minimal proxy contracts, also known as "clones". * * > To simply and cheaply clone contract functionality in an immutable way, this standard specifies * > a minimal bytecode implementation that delegates all calls to a known, fixed address. * * The library includes functions to deploy a proxy using either `create` (traditional deployment) or `create2` * (salted deterministic deployment). It also includes functions to predict the addresses of clones deployed using the * deterministic method. * * _Available since v3.4._ */ library Clones { /** * @dev Deploys and returns the address of a clone that mimics the behaviour of `master`. * * This function uses the create opcode, which should never revert. */ function clone(address master) internal returns (address instance) { // solhint-disable-next-line no-inline-assembly assembly { let ptr := mload(0x40) mstore(ptr, 0x3d602d80600a3d3981f3363d3d373d3d3d363d73000000000000000000000000) mstore(add(ptr, 0x14), shl(0x60, master)) mstore(add(ptr, 0x28), 0x5af43d82803e903d91602b57fd5bf30000000000000000000000000000000000) instance := create(0, ptr, 0x37) } require(instance != address(0), "ERC1167: create failed"); } /** * @dev Deploys and returns the address of a clone that mimics the behaviour of `master`. * * This function uses the create2 opcode and a `salt` to deterministically deploy * the clone. Using the same `master` and `salt` multiple time will revert, since * the clones cannot be deployed twice at the same address. */ function cloneDeterministic(address master, bytes32 salt) internal returns (address instance) { // solhint-disable-next-line no-inline-assembly assembly { let ptr := mload(0x40) mstore(ptr, 0x3d602d80600a3d3981f3363d3d373d3d3d363d73000000000000000000000000) mstore(add(ptr, 0x14), shl(0x60, master)) mstore(add(ptr, 0x28), 0x5af43d82803e903d91602b57fd5bf30000000000000000000000000000000000) instance := create2(0, ptr, 0x37, salt) } require(instance != address(0), "ERC1167: create2 failed"); } /** * @dev Computes the address of a clone deployed using {Clones-cloneDeterministic}. */ function predictDeterministicAddress(address master, bytes32 salt, address deployer) internal pure returns (address predicted) { // solhint-disable-next-line no-inline-assembly assembly { let ptr := mload(0x40) mstore(ptr, 0x3d602d80600a3d3981f3363d3d373d3d3d363d73000000000000000000000000) mstore(add(ptr, 0x14), shl(0x60, master)) mstore(add(ptr, 0x28), 0x5af43d82803e903d91602b57fd5bf3ff00000000000000000000000000000000) mstore(add(ptr, 0x38), shl(0x60, deployer)) mstore(add(ptr, 0x4c), salt) mstore(add(ptr, 0x6c), keccak256(ptr, 0x37)) predicted := keccak256(add(ptr, 0x37), 0x55) } } /** * @dev Computes the address of a clone deployed using {Clones-cloneDeterministic}. */ function predictDeterministicAddress(address master, bytes32 salt) internal view returns (address predicted) { return predictDeterministicAddress(master, salt, address(this)); } }
// SPDX-License-Identifier: MIT pragma solidity >=0.6.0 <0.8.0; import "./IERC1155.sol"; import "./IERC1155MetadataURI.sol"; import "./IERC1155Receiver.sol"; import "../../utils/Context.sol"; import "../../introspection/ERC165.sol"; import "../../math/SafeMath.sol"; import "../../utils/Address.sol"; /** * * @dev Implementation of the basic standard multi-token. * See https://eips.ethereum.org/EIPS/eip-1155 * Originally based on code by Enjin: https://github.com/enjin/erc-1155 * * _Available since v3.1._ */ contract ERC1155 is Context, ERC165, IERC1155, IERC1155MetadataURI { using SafeMath for uint256; using Address for address; // Mapping from token ID to account balances mapping (uint256 => mapping(address => uint256)) private _balances; // Mapping from account to operator approvals mapping (address => mapping(address => bool)) private _operatorApprovals; // Used as the URI for all token types by relying on ID substitution, e.g. https://token-cdn-domain/{id}.json string private _uri; /* * bytes4(keccak256('balanceOf(address,uint256)')) == 0x00fdd58e * bytes4(keccak256('balanceOfBatch(address[],uint256[])')) == 0x4e1273f4 * bytes4(keccak256('setApprovalForAll(address,bool)')) == 0xa22cb465 * bytes4(keccak256('isApprovedForAll(address,address)')) == 0xe985e9c5 * bytes4(keccak256('safeTransferFrom(address,address,uint256,uint256,bytes)')) == 0xf242432a * bytes4(keccak256('safeBatchTransferFrom(address,address,uint256[],uint256[],bytes)')) == 0x2eb2c2d6 * * => 0x00fdd58e ^ 0x4e1273f4 ^ 0xa22cb465 ^ * 0xe985e9c5 ^ 0xf242432a ^ 0x2eb2c2d6 == 0xd9b67a26 */ bytes4 private constant _INTERFACE_ID_ERC1155 = 0xd9b67a26; /* * bytes4(keccak256('uri(uint256)')) == 0x0e89341c */ bytes4 private constant _INTERFACE_ID_ERC1155_METADATA_URI = 0x0e89341c; /** * @dev See {_setURI}. */ constructor (string memory uri_) public { _setURI(uri_); // register the supported interfaces to conform to ERC1155 via ERC165 _registerInterface(_INTERFACE_ID_ERC1155); // register the supported interfaces to conform to ERC1155MetadataURI via ERC165 _registerInterface(_INTERFACE_ID_ERC1155_METADATA_URI); } /** * @dev See {IERC1155MetadataURI-uri}. * * This implementation returns the same URI for *all* token types. It relies * on the token type ID substitution mechanism * https://eips.ethereum.org/EIPS/eip-1155#metadata[defined in the EIP]. * * Clients calling this function must replace the `\{id\}` substring with the * actual token type ID. */ function uri(uint256) public view virtual override returns (string memory) { return _uri; } /** * @dev See {IERC1155-balanceOf}. * * Requirements: * * - `account` cannot be the zero address. */ function balanceOf(address account, uint256 id) public view virtual override returns (uint256) { require(account != address(0), "ERC1155: balance query for the zero address"); return _balances[id][account]; } /** * @dev See {IERC1155-balanceOfBatch}. * * Requirements: * * - `accounts` and `ids` must have the same length. */ function balanceOfBatch( address[] memory accounts, uint256[] memory ids ) public view virtual override returns (uint256[] memory) { require(accounts.length == ids.length, "ERC1155: accounts and ids length mismatch"); uint256[] memory batchBalances = new uint256[](accounts.length); for (uint256 i = 0; i < accounts.length; ++i) { batchBalances[i] = balanceOf(accounts[i], ids[i]); } return batchBalances; } /** * @dev See {IERC1155-setApprovalForAll}. */ function setApprovalForAll(address operator, bool approved) public virtual override { require(_msgSender() != operator, "ERC1155: setting approval status for self"); _operatorApprovals[_msgSender()][operator] = approved; emit ApprovalForAll(_msgSender(), operator, approved); } /** * @dev See {IERC1155-isApprovedForAll}. */ function isApprovedForAll(address account, address operator) public view virtual override returns (bool) { return _operatorApprovals[account][operator]; } /** * @dev See {IERC1155-safeTransferFrom}. */ function safeTransferFrom( address from, address to, uint256 id, uint256 amount, bytes memory data ) public virtual override { require(to != address(0), "ERC1155: transfer to the zero address"); require( from == _msgSender() || isApprovedForAll(from, _msgSender()), "ERC1155: caller is not owner nor approved" ); address operator = _msgSender(); _beforeTokenTransfer(operator, from, to, _asSingletonArray(id), _asSingletonArray(amount), data); _balances[id][from] = _balances[id][from].sub(amount, "ERC1155: insufficient balance for transfer"); _balances[id][to] = _balances[id][to].add(amount); emit TransferSingle(operator, from, to, id, amount); _doSafeTransferAcceptanceCheck(operator, from, to, id, amount, data); } /** * @dev See {IERC1155-safeBatchTransferFrom}. */ function safeBatchTransferFrom( address from, address to, uint256[] memory ids, uint256[] memory amounts, bytes memory data ) public virtual override { require(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: transfer caller is not owner nor approved" ); address operator = _msgSender(); _beforeTokenTransfer(operator, from, to, ids, amounts, data); for (uint256 i = 0; i < ids.length; ++i) { uint256 id = ids[i]; uint256 amount = amounts[i]; _balances[id][from] = _balances[id][from].sub( amount, "ERC1155: insufficient balance for transfer" ); _balances[id][to] = _balances[id][to].add(amount); } emit TransferBatch(operator, from, to, ids, amounts); _doSafeBatchTransferAcceptanceCheck(operator, from, to, ids, amounts, data); } /** * @dev Sets a new URI for all token types, by relying on the token type ID * substitution mechanism * https://eips.ethereum.org/EIPS/eip-1155#metadata[defined in the EIP]. * * By this mechanism, any occurrence of the `\{id\}` substring in either the * URI or any of the amounts in the JSON file at said URI will be replaced by * clients with the token type ID. * * For example, the `https://token-cdn-domain/\{id\}.json` URI would be * interpreted by clients as * `https://token-cdn-domain/000000000000000000000000000000000000000000000000000000000004cce0.json` * for token type ID 0x4cce0. * * See {uri}. * * Because these URIs cannot be meaningfully represented by the {URI} event, * this function emits no events. */ function _setURI(string memory newuri) internal virtual { _uri = newuri; } /** * @dev Creates `amount` tokens of token type `id`, and assigns them to `account`. * * Emits a {TransferSingle} event. * * Requirements: * * - `account` cannot be the zero address. * - If `account` refers to a smart contract, it must implement {IERC1155Receiver-onERC1155Received} and return the * acceptance magic value. */ function _mint(address account, uint256 id, uint256 amount, bytes memory data) internal virtual { require(account != address(0), "ERC1155: mint to the zero address"); address operator = _msgSender(); _beforeTokenTransfer(operator, address(0), account, _asSingletonArray(id), _asSingletonArray(amount), data); _balances[id][account] = _balances[id][account].add(amount); emit TransferSingle(operator, address(0), account, id, amount); _doSafeTransferAcceptanceCheck(operator, address(0), account, id, amount, data); } /** * @dev xref:ROOT:erc1155.adoc#batch-operations[Batched] version of {_mint}. * * Requirements: * * - `ids` and `amounts` must have the same length. * - If `to` refers to a smart contract, it must implement {IERC1155Receiver-onERC1155BatchReceived} and return the * acceptance magic value. */ function _mintBatch(address to, uint256[] memory ids, uint256[] memory amounts, bytes memory data) internal virtual { require(to != address(0), "ERC1155: mint to the zero address"); require(ids.length == amounts.length, "ERC1155: ids and amounts length mismatch"); address operator = _msgSender(); _beforeTokenTransfer(operator, address(0), to, ids, amounts, data); for (uint i = 0; i < ids.length; i++) { _balances[ids[i]][to] = amounts[i].add(_balances[ids[i]][to]); } emit TransferBatch(operator, address(0), to, ids, amounts); _doSafeBatchTransferAcceptanceCheck(operator, address(0), to, ids, amounts, data); } /** * @dev Destroys `amount` tokens of token type `id` from `account` * * Requirements: * * - `account` cannot be the zero address. * - `account` must have at least `amount` tokens of token type `id`. */ function _burn(address account, uint256 id, uint256 amount) internal virtual { require(account != address(0), "ERC1155: burn from the zero address"); address operator = _msgSender(); _beforeTokenTransfer(operator, account, address(0), _asSingletonArray(id), _asSingletonArray(amount), ""); _balances[id][account] = _balances[id][account].sub( amount, "ERC1155: burn amount exceeds balance" ); emit TransferSingle(operator, account, address(0), id, amount); } /** * @dev xref:ROOT:erc1155.adoc#batch-operations[Batched] version of {_burn}. * * Requirements: * * - `ids` and `amounts` must have the same length. */ function _burnBatch(address account, uint256[] memory ids, uint256[] memory amounts) internal virtual { require(account != address(0), "ERC1155: burn from the zero address"); require(ids.length == amounts.length, "ERC1155: ids and amounts length mismatch"); address operator = _msgSender(); _beforeTokenTransfer(operator, account, address(0), ids, amounts, ""); for (uint i = 0; i < ids.length; i++) { _balances[ids[i]][account] = _balances[ids[i]][account].sub( amounts[i], "ERC1155: burn amount exceeds balance" ); } emit TransferBatch(operator, account, address(0), ids, amounts); } /** * @dev Hook that is called before any token transfer. This includes minting * and burning, as well as batched variants. * * The same hook is called on both single and batched variants. For single * transfers, the length of the `id` and `amount` arrays will be 1. * * Calling conditions (for each `id` and `amount` pair): * * - When `from` and `to` are both non-zero, `amount` of ``from``'s tokens * of token type `id` will be transferred to `to`. * - When `from` is zero, `amount` tokens of token type `id` will be minted * for `to`. * - when `to` is zero, `amount` of ``from``'s tokens of token type `id` * will be burned. * - `from` and `to` are never both zero. * - `ids` and `amounts` have the same, non-zero length. * * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks]. */ function _beforeTokenTransfer( address operator, address from, address to, uint256[] memory ids, uint256[] memory amounts, bytes memory data ) internal virtual { } function _doSafeTransferAcceptanceCheck( address operator, address from, address to, uint256 id, uint256 amount, bytes memory data ) private { if (to.isContract()) { try IERC1155Receiver(to).onERC1155Received(operator, from, id, amount, data) returns (bytes4 response) { if (response != IERC1155Receiver(to).onERC1155Received.selector) { revert("ERC1155: ERC1155Receiver rejected tokens"); } } catch Error(string memory reason) { revert(reason); } catch { revert("ERC1155: transfer to non ERC1155Receiver implementer"); } } } function _doSafeBatchTransferAcceptanceCheck( address operator, address from, address to, uint256[] memory ids, uint256[] memory amounts, bytes memory data ) private { if (to.isContract()) { try IERC1155Receiver(to).onERC1155BatchReceived(operator, from, ids, amounts, data) returns (bytes4 response) { if (response != IERC1155Receiver(to).onERC1155BatchReceived.selector) { revert("ERC1155: ERC1155Receiver rejected tokens"); } } catch Error(string memory reason) { revert(reason); } catch { revert("ERC1155: transfer to non ERC1155Receiver implementer"); } } } function _asSingletonArray(uint256 element) private pure returns (uint256[] memory) { uint256[] memory array = new uint256[](1); array[0] = element; return array; } }
// SPDX-License-Identifier: MIT pragma solidity >=0.6.0 <0.8.0; import "./ERC1155.sol"; /** * @dev Extension of {ERC1155} that allows token holders to destroy both their * own tokens and those that they have been approved to use. * * _Available since v3.1._ */ abstract contract ERC1155Burnable is ERC1155 { function burn(address account, uint256 id, uint256 value) public virtual { require( account == _msgSender() || isApprovedForAll(account, _msgSender()), "ERC1155: caller is not owner nor approved" ); _burn(account, id, value); } function burnBatch(address account, uint256[] memory ids, uint256[] memory values) public virtual { require( account == _msgSender() || isApprovedForAll(account, _msgSender()), "ERC1155: caller is not owner nor approved" ); _burnBatch(account, ids, values); } }
// SPDX-License-Identifier: MIT pragma solidity >=0.6.0 <0.8.0; import "./ERC1155.sol"; import "../../utils/Pausable.sol"; /** * @dev ERC1155 token with pausable token transfers, minting and burning. * * Useful for scenarios such as preventing trades until the end of an evaluation * period, or having an emergency switch for freezing all token transfers in the * event of a large bug. * * _Available since v3.1._ */ abstract contract ERC1155Pausable is ERC1155, Pausable { /** * @dev See {ERC1155-_beforeTokenTransfer}. * * Requirements: * * - the contract must not be paused. */ function _beforeTokenTransfer( address operator, address from, address to, uint256[] memory ids, uint256[] memory amounts, bytes memory data ) internal virtual override { super._beforeTokenTransfer(operator, from, to, ids, amounts, data); require(!paused(), "ERC1155Pausable: token transfer while paused"); } }
// 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.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: 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; } }
// SPDX-License-Identifier: MIT pragma solidity >=0.6.0 <0.8.0; /** * @dev Library for managing * https://en.wikipedia.org/wiki/Set_(abstract_data_type)[sets] of primitive * types. * * Sets have the following properties: * * - Elements are added, removed, and checked for existence in constant time * (O(1)). * - Elements are enumerated in O(n). No guarantees are made on the ordering. * * ``` * contract Example { * // Add the library methods * using EnumerableSet for EnumerableSet.AddressSet; * * // Declare a set state variable * EnumerableSet.AddressSet private mySet; * } * ``` * * As of v3.3.0, sets of type `bytes32` (`Bytes32Set`), `address` (`AddressSet`) * and `uint256` (`UintSet`) are supported. */ library EnumerableSet { // To implement this library for multiple types with as little code // repetition as possible, we write it in terms of a generic Set type with // bytes32 values. // The Set implementation uses private functions, and user-facing // implementations (such as AddressSet) are just wrappers around the // underlying Set. // This means that we can only create new EnumerableSets for types that fit // in bytes32. struct Set { // Storage of set values bytes32[] _values; // Position of the value in the `values` array, plus 1 because index 0 // means a value is not in the set. mapping (bytes32 => uint256) _indexes; } /** * @dev Add a value to a set. O(1). * * Returns true if the value was added to the set, that is if it was not * already present. */ function _add(Set storage set, bytes32 value) private returns (bool) { if (!_contains(set, value)) { set._values.push(value); // The value is stored at length-1, but we add 1 to all indexes // and use 0 as a sentinel value set._indexes[value] = set._values.length; return true; } else { return false; } } /** * @dev Removes a value from a set. O(1). * * Returns true if the value was removed from the set, that is if it was * present. */ function _remove(Set storage set, bytes32 value) private returns (bool) { // We read and store the value's index to prevent multiple reads from the same storage slot uint256 valueIndex = set._indexes[value]; if (valueIndex != 0) { // Equivalent to contains(set, value) // To delete an element from the _values array in O(1), we swap the element to delete with the last one in // the array, and then remove the last element (sometimes called as 'swap and pop'). // This modifies the order of the array, as noted in {at}. uint256 toDeleteIndex = valueIndex - 1; uint256 lastIndex = set._values.length - 1; // When the value to delete is the last one, the swap operation is unnecessary. However, since this occurs // so rarely, we still do the swap anyway to avoid the gas cost of adding an 'if' statement. bytes32 lastvalue = set._values[lastIndex]; // Move the last value to the index where the value to delete is set._values[toDeleteIndex] = lastvalue; // Update the index for the moved value set._indexes[lastvalue] = toDeleteIndex + 1; // All indexes are 1-based // Delete the slot where the moved value was stored set._values.pop(); // Delete the index for the deleted slot delete set._indexes[value]; return true; } else { return false; } } /** * @dev Returns true if the value is in the set. O(1). */ function _contains(Set storage set, bytes32 value) private view returns (bool) { return set._indexes[value] != 0; } /** * @dev Returns the number of values on the set. O(1). */ function _length(Set storage set) private view returns (uint256) { return set._values.length; } /** * @dev Returns the value stored at position `index` in the set. O(1). * * Note that there are no guarantees on the ordering of values inside the * array, and it may change when more values are added or removed. * * Requirements: * * - `index` must be strictly less than {length}. */ function _at(Set storage set, uint256 index) private view returns (bytes32) { require(set._values.length > index, "EnumerableSet: index out of bounds"); return set._values[index]; } // Bytes32Set struct Bytes32Set { Set _inner; } /** * @dev Add a value to a set. O(1). * * Returns true if the value was added to the set, that is if it was not * already present. */ function add(Bytes32Set storage set, bytes32 value) internal returns (bool) { return _add(set._inner, value); } /** * @dev Removes a value from a set. O(1). * * Returns true if the value was removed from the set, that is if it was * present. */ function remove(Bytes32Set storage set, bytes32 value) internal returns (bool) { return _remove(set._inner, value); } /** * @dev Returns true if the value is in the set. O(1). */ function contains(Bytes32Set storage set, bytes32 value) internal view returns (bool) { return _contains(set._inner, value); } /** * @dev Returns the number of values in the set. O(1). */ function length(Bytes32Set storage set) internal view returns (uint256) { return _length(set._inner); } /** * @dev Returns the value stored at position `index` in the set. O(1). * * Note that there are no guarantees on the ordering of values inside the * array, and it may change when more values are added or removed. * * Requirements: * * - `index` must be strictly less than {length}. */ function at(Bytes32Set storage set, uint256 index) internal view returns (bytes32) { return _at(set._inner, index); } // AddressSet struct AddressSet { Set _inner; } /** * @dev Add a value to a set. O(1). * * Returns true if the value was added to the set, that is if it was not * already present. */ function add(AddressSet storage set, address value) internal returns (bool) { return _add(set._inner, bytes32(uint256(uint160(value)))); } /** * @dev Removes a value from a set. O(1). * * Returns true if the value was removed from the set, that is if it was * present. */ function remove(AddressSet storage set, address value) internal returns (bool) { return _remove(set._inner, bytes32(uint256(uint160(value)))); } /** * @dev Returns true if the value is in the set. O(1). */ function contains(AddressSet storage set, address value) internal view returns (bool) { return _contains(set._inner, bytes32(uint256(uint160(value)))); } /** * @dev Returns the number of values in the set. O(1). */ function length(AddressSet storage set) internal view returns (uint256) { return _length(set._inner); } /** * @dev Returns the value stored at position `index` in the set. O(1). * * Note that there are no guarantees on the ordering of values inside the * array, and it may change when more values are added or removed. * * Requirements: * * - `index` must be strictly less than {length}. */ function at(AddressSet storage set, uint256 index) internal view returns (address) { return address(uint160(uint256(_at(set._inner, index)))); } // UintSet struct UintSet { Set _inner; } /** * @dev Add a value to a set. O(1). * * Returns true if the value was added to the set, that is if it was not * already present. */ function add(UintSet storage set, uint256 value) internal returns (bool) { return _add(set._inner, bytes32(value)); } /** * @dev Removes a value from a set. O(1). * * Returns true if the value was removed from the set, that is if it was * present. */ function remove(UintSet storage set, uint256 value) internal returns (bool) { return _remove(set._inner, bytes32(value)); } /** * @dev Returns true if the value is in the set. O(1). */ function contains(UintSet storage set, uint256 value) internal view returns (bool) { return _contains(set._inner, bytes32(value)); } /** * @dev Returns the number of values on the set. O(1). */ function length(UintSet storage set) internal view returns (uint256) { return _length(set._inner); } /** * @dev Returns the value stored at position `index` in the set. O(1). * * Note that there are no guarantees on the ordering of values inside the * array, and it may change when more values are added or removed. * * Requirements: * * - `index` must be strictly less than {length}. */ function at(UintSet storage set, uint256 index) internal view returns (uint256) { return uint256(_at(set._inner, index)); } }
// SPDX-License-Identifier: MIT pragma solidity >=0.6.0 <0.8.0; import "./Context.sol"; /** * @dev Contract module which allows children to implement an emergency stop * mechanism that can be triggered by an authorized account. * * This module is used through inheritance. It will make available the * modifiers `whenNotPaused` and `whenPaused`, which can be applied to * the functions of your contract. Note that they will not be pausable by * simply including this module, only once the modifiers are put in place. */ abstract contract Pausable is Context { /** * @dev Emitted when the pause is triggered by `account`. */ event Paused(address account); /** * @dev Emitted when the pause is lifted by `account`. */ event Unpaused(address account); bool private _paused; /** * @dev Initializes the contract in unpaused state. */ constructor () internal { _paused = false; } /** * @dev Returns true if the contract is paused, and false otherwise. */ function paused() public view virtual returns (bool) { return _paused; } /** * @dev Modifier to make a function callable only when the contract is not paused. * * Requirements: * * - The contract must not be paused. */ modifier whenNotPaused() { require(!paused(), "Pausable: paused"); _; } /** * @dev Modifier to make a function callable only when the contract is paused. * * Requirements: * * - The contract must be paused. */ modifier whenPaused() { require(paused(), "Pausable: not paused"); _; } /** * @dev Triggers stopped state. * * Requirements: * * - The contract must not be paused. */ function _pause() internal virtual whenNotPaused { _paused = true; emit Paused(_msgSender()); } /** * @dev Returns to normal state. * * Requirements: * * - The contract must be paused. */ function _unpause() internal virtual whenPaused { _paused = false; emit Unpaused(_msgSender()); } }
/* * Copyright (C) 2021 The Wolfpack * This file is part of wolves.finance - https://github.com/wolvesofwallstreet/wolves.finance * * SPDX-License-Identifier: Apache-2.0 * See the file LICENSES/README.md for more information. */ pragma solidity >=0.7.0 <0.8.0; /** * @notice Cryptofolio interface * * TODO: Describe cryptofolios */ interface IWOWSCryptofolio { ////////////////////////////////////////////////////////////////////////////// // Initialization ////////////////////////////////////////////////////////////////////////////// /** * @dev Initialize the deployed contract after creation * * This is a one time call which sets _deployer to msg.sender. * Subsequent calls reverts. */ function initialize() external; ////////////////////////////////////////////////////////////////////////////// // Getters ////////////////////////////////////////////////////////////////////////////// /** * @dev Return array of cryptofolio token IDs * * The token IDs belong to the contract tradefloor. * * @param tradefloor The tradefloor items belong to * * @return tokenIds The token IDs in scope of operator * @return idsLength The number of valid token IDs */ function getCryptofolio(address tradefloor) external view returns (uint256[] memory tokenIds, uint256 idsLength); ////////////////////////////////////////////////////////////////////////////// // State modifiers ////////////////////////////////////////////////////////////////////////////// /** * @dev Set the owner of the underlying NFT * * This function is called if ownership of the parent NFT has changed. * * The new owner gets allowance to transfer cryptofolio items. The new owner * is allowed to transfer / burn cryptofolio items. Make sure that allowance * is removed from previous owner. * * @param owner The new owner of the underlying NFT */ function setOwner(address owner) external; /** * @dev Allow owner (of parent NFT) to approve external operators to transfer * our cryptofolio items * * The NFT owner is allowed to approve operator to handle cryptofolios. * * @param operator The operator * @param allow True to approve for all NFTs, false to revoke approval */ function setApprovalForAll(address operator, bool allow) external; /** * @dev Burn all cryptofolio items * * In case an underlying NFT is burned, we also burn the cryptofolio. */ function burn() external; }
/* * Copyright (C) 2021 The Wolfpack * This file is part of wolves.finance - https://github.com/wolvesofwallstreet/wolves.finance * * SPDX-License-Identifier: Apache-2.0 * See the file LICENSES/README.md for more information. */ pragma solidity >=0.7.0 <0.8.0; /** * @notice Cryptofolio interface * * TODO: Describe cryptofolios */ interface IWOWSERC1155 { ////////////////////////////////////////////////////////////////////////////// // Getters ////////////////////////////////////////////////////////////////////////////// /** * @dev Check if the specified address is a known tradefloor * * @param account The address to check * * @return True if the address is a known tradefloor, false otherwise */ function isTradeFloor(address account) external view returns (bool); /** * @dev Get the token ID of a given address * * A cross check is required because token ID 0 is valid. * * @param tokenAddress The address to convert to a token ID * * @return The token ID on success, or uint256(-1) if `tokenAddress` does not * belong to a token ID */ function addressToTokenId(address tokenAddress) external view returns (uint256); /** * @dev Get the address for a given token ID * * @param tokenId The token ID to convert * * @return The address, or address(0) in case the token ID does not belong * to an NFT */ function tokenIdToAddress(uint256 tokenId) external view returns (address); /** * @dev Get the next mintable token ID for the specified card * * @param level The level of the card * @param cardId The token ID of the card * * @return bool True if a free token ID was found, false otherwise * @return uint256 The first free token ID if one was found, or invalid otherwise */ function getNextMintableTokenId(uint8 level, uint8 cardId) external view returns (bool, uint256); /** * @dev Return the next mintable custom token ID */ function getNextMintableCustomToken() external view returns (uint256); ////////////////////////////////////////////////////////////////////////////// // State modifiers ////////////////////////////////////////////////////////////////////////////// /** * @dev Set the URI for either predefined cards or custom cards * * For changing the default URI for predefined cards, token ID 0 must be * passed. Custom token ID's (> 32-bit range) get their own URI per token ID. * * @param tokenId The token ID whose URI is being set. Use `tokenId` == 0 to * set the default URI. `tokenId` >= 0xFFFFFFFF is for custom URIs. * @param _uri The URI, also allowing for the ERC-1155 {id} mechanism. */ function setURI(uint256 tokenId, string memory _uri) external; /** * @dev Set the URI which is returned for custom cards without specific URI * * @param _uri The URI, also allowing for the ERC-1155 {id} mechanism. */ function setCustomDefaultURI(string memory _uri) external; /** * @dev Each custom card has its own level. Level will be used when * calculating rewards and raiding power. * * @param tokenId The ID of the token whose level is being set * @param cardLevel The new level of the specified token */ function setCustomCardLevel(uint256 tokenId, uint8 cardLevel) external; }
{ "evmVersion": "berlin", "libraries": {}, "metadata": { "bytecodeHash": "ipfs", "useLiteralContent": true }, "optimizer": { "enabled": true, "runs": 1000000 }, "remappings": [], "outputSelection": { "*": { "*": [ "evm.bytecode", "evm.deployedBytecode", "abi" ] } } }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"inputs":[{"internalType":"address","name":"_owner","type":"address"},{"internalType":"address","name":"__cryptofolio","type":"address"},{"internalType":"string","name":"_uri","type":"string"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"account","type":"address"},{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":false,"internalType":"bool","name":"approved","type":"bool"}],"name":"ApprovalForAll","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"account","type":"address"}],"name":"Paused","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"bytes32","name":"role","type":"bytes32"},{"indexed":true,"internalType":"bytes32","name":"previousAdminRole","type":"bytes32"},{"indexed":true,"internalType":"bytes32","name":"newAdminRole","type":"bytes32"}],"name":"RoleAdminChanged","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"bytes32","name":"role","type":"bytes32"},{"indexed":true,"internalType":"address","name":"account","type":"address"},{"indexed":true,"internalType":"address","name":"sender","type":"address"}],"name":"RoleGranted","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"bytes32","name":"role","type":"bytes32"},{"indexed":true,"internalType":"address","name":"account","type":"address"},{"indexed":true,"internalType":"address","name":"sender","type":"address"}],"name":"RoleRevoked","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":false,"internalType":"uint256[]","name":"ids","type":"uint256[]"},{"indexed":false,"internalType":"uint256[]","name":"values","type":"uint256[]"}],"name":"TransferBatch","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":false,"internalType":"uint256","name":"id","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"value","type":"uint256"}],"name":"TransferSingle","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"string","name":"value","type":"string"},{"indexed":true,"internalType":"uint256","name":"id","type":"uint256"}],"name":"URI","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"account","type":"address"}],"name":"Unpaused","type":"event"},{"inputs":[],"name":"DEFAULT_ADMIN_ROLE","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"MINTER_ROLE","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"OPERATOR_ROLE","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"PAUSER_ROLE","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"TRADEFLOOR_ROLE","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"tokenAddress","type":"address"}],"name":"addressToTokenId","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"},{"internalType":"uint256","name":"id","type":"uint256"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address[]","name":"accounts","type":"address[]"},{"internalType":"uint256[]","name":"ids","type":"uint256[]"}],"name":"balanceOfBatch","outputs":[{"internalType":"uint256[]","name":"","type":"uint256[]"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"},{"internalType":"uint256","name":"id","type":"uint256"},{"internalType":"uint256","name":"value","type":"uint256"}],"name":"burn","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"},{"internalType":"uint256[]","name":"ids","type":"uint256[]"},{"internalType":"uint256[]","name":"values","type":"uint256[]"}],"name":"burnBatch","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint8","name":"level","type":"uint8"},{"internalType":"uint8","name":"cardId","type":"uint8"}],"name":"getCardData","outputs":[{"internalType":"uint16","name":"cap","type":"uint16"},{"internalType":"uint16","name":"minted","type":"uint16"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint8[]","name":"levels","type":"uint8[]"},{"internalType":"uint8[]","name":"cardIds","type":"uint8[]"}],"name":"getCardDataBatch","outputs":[{"internalType":"uint16[]","name":"capMintedPair","type":"uint16[]"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getNextMintableCustomToken","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint8","name":"level","type":"uint8"},{"internalType":"uint8","name":"cardId","type":"uint8"}],"name":"getNextMintableTokenId","outputs":[{"internalType":"bool","name":"","type":"bool"},{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"}],"name":"getRoleAdmin","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"},{"internalType":"uint256","name":"index","type":"uint256"}],"name":"getRoleMember","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"}],"name":"getRoleMemberCount","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getTokenData","outputs":[{"internalType":"uint64","name":"mintTimestamp","type":"uint64"},{"internalType":"uint8","name":"level","type":"uint8"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"getTokenIds","outputs":[{"internalType":"uint256[]","name":"","type":"uint256[]"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"},{"internalType":"address","name":"account","type":"address"}],"name":"grantRole","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"},{"internalType":"address","name":"account","type":"address"}],"name":"hasRole","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"},{"internalType":"address","name":"operator","type":"address"}],"name":"isApprovedForAll","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"isTradeFloor","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"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":"mint","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256[]","name":"ids","type":"uint256[]"},{"internalType":"uint256[]","name":"amounts","type":"uint256[]"},{"internalType":"bytes","name":"data","type":"bytes"}],"name":"mintBatch","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"pause","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"paused","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"},{"internalType":"address","name":"account","type":"address"}],"name":"renounceRole","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"},{"internalType":"address","name":"account","type":"address"}],"name":"revokeRole","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"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":"uint256","name":"tokenId","type":"uint256"},{"internalType":"uint8","name":"cardLevel","type":"uint8"}],"name":"setCustomCardLevel","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"_uri","type":"string"}],"name":"setCustomDefaultURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"string","name":"_uri","type":"string"}],"name":"setURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint8[]","name":"levels","type":"uint8[]"},{"internalType":"uint16[]","name":"newCaps","type":"uint16[]"}],"name":"setWowsLevelCaps","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":"uint256","name":"tokenId","type":"uint256"}],"name":"tokenIdToAddress","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"unpause","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"uri","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"}]
Contract Creation Code
60806040523480156200001157600080fd5b506040516200593138038062005931833981810160405260608110156200003757600080fd5b815160208301516040808501805191519395929483019291846401000000008211156200006357600080fd5b9083019060208201858111156200007957600080fd5b82516401000000008111828201881017156200009457600080fd5b82525081516020918201929091019080838360005b83811015620000c3578181015183820152602001620000a9565b50505050905090810190601f168015620000f15780820380516001836020036101000a031916815260200191505b50604052508291508190506200010e6301ffc9a760e01b62000236565b6200011981620002be565b6200012b636cdb3d1360e11b62000236565b6200013d6303a24d0760e21b62000236565b50506005805460ff1916905562000156600084620002d7565b5060066020527f54cdd369e4e8a8515e52ca72ec816c2101831ad1f18bf44102ed171459c9b4f88054601461ffff1991821681179092557f3e5fec24aa4dc4e5aee2e025e51e1392c72a2500577559fae9665c6d52bd6a3180548216831790557fc5069e24aaadb2addc3e52e868fcf3f4f8acf5a87e24300992fd4540c2a87eed805482168317905560056000527fbfd358e93f18da3ed276c3afdbdba00b8f0b6008a03476a6a86bd6320ee6938b80549091169091179055600e80546001600160a01b0319166001600160a01b0392909216919091179055506200048d565b6001600160e01b0319808216141562000296576040805162461bcd60e51b815260206004820152601c60248201527f4552433136353a20696e76616c696420696e7465726661636520696400000000604482015290519081900360640190fd5b6001600160e01b0319166000908152600160208190526040909120805460ff19169091179055565b8051620002d3906004906020840190620003e1565b5050565b620002d38282600082815260208181526040909120620003029183906200301362000356821b17901c565b15620002d3576200031262000376565b6001600160a01b0316816001600160a01b0316837f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d60405160405180910390a45050565b60006200036d836001600160a01b0384166200037a565b90505b92915050565b3390565b6000620003888383620003c9565b620003c05750815460018181018455600084815260208082209093018490558454848252828601909352604090209190915562000370565b50600062000370565b60009081526001919091016020526040902054151590565b828054600181600116156101000203166002900490600052602060002090601f01602090048101928262000419576000855562000464565b82601f106200043457805160ff191683800117855562000464565b8280016001018555821562000464579182015b828111156200046457825182559160200191906001019062000447565b506200047292915062000476565b5090565b5b8082111562000472576000815560010162000477565b615494806200049d6000396000f3fe608060405234801561001057600080fd5b50600436106102c75760003560e01c80636b20c4541161017b578063ca15c873116100d8578063e71df84a1161008c578063f242432a11610071578063f242432a14611297578063f5298aca1461136f578063f5b541a6146113ae576102c7565b8063e71df84a14611229578063e985e9c51461125c576102c7565b8063d5391393116100bd578063d5391393146111e0578063d547741f146111e8578063e63ab1e914611221576102c7565b8063ca15c87314611190578063d004b036146111ad576102c7565b806391d148541161012f578063a22cb46511610114578063a22cb4651461110a578063b09afec114611145578063b730556714611188576102c7565b806391d14854146110c9578063a217fddf14611102576102c7565b80638456cb59116101605780638456cb5914610ff1578063862440e214610ff95780639010d07c146110a6576102c7565b80636b20c45414610dde578063731133e914610f22576102c7565b80632eb2c2d6116102295780634e1273f4116101dd5780635e7468f7116101c25780635e7468f714610cb85780636511bf2e14610d055780636aa6d05a14610d38576102c7565b80634e1273f414610b895780635c975abb14610cb0576102c7565b806336568abe1161020e57806336568abe14610b405780633f4ba83a14610b795780634d7fc43a14610b81576102c7565b80632eb2c2d6146109335780632f2ff15d14610b07576102c7565b80630e89341c116102805780631f7fdffa116102655780631f7fdffa14610725578063248a9ca3146108f05780632e9aab401461090d576102c7565b80630e89341c1461051c57806311c1130c146105ae576102c7565b806308bb76a5116102b157806308bb76a51461036a57806308ec563d146103b05780630c881b21146103f3576102c7565b8062fdd58e146102cc57806301ffc9a714610317575b600080fd5b610305600480360360408110156102e257600080fd5b5073ffffffffffffffffffffffffffffffffffffffff81351690602001356113b6565b60408051918252519081900360200190f35b6103566004803603602081101561032d57600080fd5b50357fffffffff000000000000000000000000000000000000000000000000000000001661145c565b604080519115158252519081900360200190f35b6103876004803603602081101561038057600080fd5b5035611497565b6040805173ffffffffffffffffffffffffffffffffffffffff9092168252519081900360200190f35b6103d8600480360360408110156103c657600080fd5b5060ff813581169160200135166114bf565b60408051921515835260208301919091528051918290030190f35b61051a6004803603604081101561040957600080fd5b81019060208101813564010000000081111561042457600080fd5b82018360208201111561043657600080fd5b8035906020019184602083028401116401000000008311171561045857600080fd5b91908080602002602001604051908101604052809392919081815260200183836020028082843760009201919091525092959493602081019350359150506401000000008111156104a857600080fd5b8201836020820111156104ba57600080fd5b803590602001918460208302840111640100000000831117156104dc57600080fd5b919080806020026020016040519081016040528093929190818152602001838360200280828437600092019190915250929550611561945050505050565b005b6105396004803603602081101561053257600080fd5b503561178f565b6040805160208082528351818301528351919283929083019185019080838360005b8381101561057357818101518382015260200161055b565b50505050905090810190601f1680156105a05780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b6106d5600480360360408110156105c457600080fd5b8101906020810181356401000000008111156105df57600080fd5b8201836020820111156105f157600080fd5b8035906020019184602083028401116401000000008311171561061357600080fd5b919080806020026020016040519081016040528093929190818152602001838360200280828437600092019190915250929594936020810193503591505064010000000081111561066357600080fd5b82018360208201111561067557600080fd5b8035906020019184602083028401116401000000008311171561069757600080fd5b919080806020026020016040519081016040528093929190818152602001838360200280828437600092019190915250929550611aba945050505050565b60408051602080825283518183015283519192839290830191858101910280838360005b838110156107115781810151838201526020016106f9565b505050509050019250505060405180910390f35b61051a6004803603608081101561073b57600080fd5b73ffffffffffffffffffffffffffffffffffffffff823516919081019060408101602082013564010000000081111561077357600080fd5b82018360208201111561078557600080fd5b803590602001918460208302840111640100000000831117156107a757600080fd5b91908080602002602001604051908101604052809392919081815260200183836020028082843760009201919091525092959493602081019350359150506401000000008111156107f757600080fd5b82018360208201111561080957600080fd5b8035906020019184602083028401116401000000008311171561082b57600080fd5b919080806020026020016040519081016040528093929190818152602001838360200280828437600092019190915250929594936020810193503591505064010000000081111561087b57600080fd5b82018360208201111561088d57600080fd5b803590602001918460018302840111640100000000831117156108af57600080fd5b91908080601f016020809104026020016040519081016040528093929190818152602001838380828437600092019190915250929550611c77945050505050565b6103056004803603602081101561090657600080fd5b5035611d0a565b61051a6004803603604081101561092357600080fd5b508035906020013560ff16611d1f565b61051a600480360360a081101561094957600080fd5b73ffffffffffffffffffffffffffffffffffffffff823581169260208101359091169181019060608101604082013564010000000081111561098a57600080fd5b82018360208201111561099c57600080fd5b803590602001918460208302840111640100000000831117156109be57600080fd5b9190808060200260200160405190810160405280939291908181526020018383602002808284376000920191909152509295949360208101935035915050640100000000811115610a0e57600080fd5b820183602082011115610a2057600080fd5b80359060200191846020830284011164010000000083111715610a4257600080fd5b9190808060200260200160405190810160405280939291908181526020018383602002808284376000920191909152509295949360208101935035915050640100000000811115610a9257600080fd5b820183602082011115610aa457600080fd5b80359060200191846001830284011164010000000083111715610ac657600080fd5b91908080601f016020809104026020016040519081016040528093929190818152602001838380828437600092019190915250929550611e6b945050505050565b61051a60048036036040811015610b1d57600080fd5b508035906020013573ffffffffffffffffffffffffffffffffffffffff1661223e565b61051a60048036036040811015610b5657600080fd5b508035906020013573ffffffffffffffffffffffffffffffffffffffff166122bf565b61051a612354565b6103056123df565b6106d560048036036040811015610b9f57600080fd5b810190602081018135640100000000811115610bba57600080fd5b820183602082011115610bcc57600080fd5b80359060200191846020830284011164010000000083111715610bee57600080fd5b9190808060200260200160405190810160405280939291908181526020018383602002808284376000920191909152509295949360208101935035915050640100000000811115610c3e57600080fd5b820183602082011115610c5057600080fd5b80359060200191846020830284011164010000000083111715610c7257600080fd5b919080806020026020016040519081016040528093929190818152602001838360200280828437600092019190915250929550612469945050505050565b610356612567565b610ce060048036036040811015610cce57600080fd5b5060ff81358116916020013516612570565b604051808361ffff1681526020018261ffff1681526020019250505060405180910390f35b61030560048036036020811015610d1b57600080fd5b503573ffffffffffffffffffffffffffffffffffffffff166125a2565b61051a60048036036020811015610d4e57600080fd5b810190602081018135640100000000811115610d6957600080fd5b820183602082011115610d7b57600080fd5b80359060200191846001830284011164010000000083111715610d9d57600080fd5b91908080601f016020809104026020016040519081016040528093929190818152602001838380828437600092019190915250929550612611945050505050565b61051a60048036036060811015610df457600080fd5b73ffffffffffffffffffffffffffffffffffffffff8235169190810190604081016020820135640100000000811115610e2c57600080fd5b820183602082011115610e3e57600080fd5b80359060200191846020830284011164010000000083111715610e6057600080fd5b9190808060200260200160405190810160405280939291908181526020018383602002808284376000920191909152509295949360208101935035915050640100000000811115610eb057600080fd5b820183602082011115610ec257600080fd5b80359060200191846020830284011164010000000083111715610ee457600080fd5b91908080602002602001604051908101604052809392919081815260200183836020028082843760009201919091525092955061269c945050505050565b61051a60048036036080811015610f3857600080fd5b73ffffffffffffffffffffffffffffffffffffffff8235169160208101359160408201359190810190608081016060820135640100000000811115610f7c57600080fd5b820183602082011115610f8e57600080fd5b80359060200191846001830284011164010000000083111715610fb057600080fd5b91908080601f016020809104026020016040519081016040528093929190818152602001838380828437600092019190915250929550612744945050505050565b61051a6127d1565b61051a6004803603604081101561100f57600080fd5b8135919081019060408101602082013564010000000081111561103157600080fd5b82018360208201111561104357600080fd5b8035906020019184600183028401116401000000008311171561106557600080fd5b91908080601f01602080910402602001604051908101604052809392919081815260200183838082843760009201919091525092955061285a945050505050565b610387600480360360408110156110bc57600080fd5b50803590602001356129ac565b610356600480360360408110156110df57600080fd5b508035906020013573ffffffffffffffffffffffffffffffffffffffff166129c4565b6103056129dc565b61051a6004803603604081101561112057600080fd5b5073ffffffffffffffffffffffffffffffffffffffff813516906020013515156129e1565b6111626004803603602081101561115b57600080fd5b5035612a80565b6040805167ffffffffffffffff909316835260ff90911660208301528051918290030190f35b610305612ad6565b610305600480360360208110156111a657600080fd5b5035612afa565b6106d5600480360360208110156111c357600080fd5b503573ffffffffffffffffffffffffffffffffffffffff16612b11565b610305612bd8565b61051a600480360360408110156111fe57600080fd5b508035906020013573ffffffffffffffffffffffffffffffffffffffff16612bfc565b610305612c6f565b6103566004803603602081101561123f57600080fd5b503573ffffffffffffffffffffffffffffffffffffffff16612c93565b6103566004803603604081101561127257600080fd5b5073ffffffffffffffffffffffffffffffffffffffff81358116916020013516612cbf565b61051a600480360360a08110156112ad57600080fd5b73ffffffffffffffffffffffffffffffffffffffff823581169260208101359091169160408201359160608101359181019060a0810160808201356401000000008111156112fa57600080fd5b82018360208201111561130c57600080fd5b8035906020019184600183028401116401000000008311171561132e57600080fd5b91908080601f016020809104026020016040519081016040528093929190818152602001838380828437600092019190915250929550612cfa945050505050565b61051a6004803603606081101561138557600080fd5b5073ffffffffffffffffffffffffffffffffffffffff8135169060208101359060400135612f47565b610305612fef565b600073ffffffffffffffffffffffffffffffffffffffff8316611424576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252602b815260200180615171602b913960400191505060405180910390fd5b50600081815260026020908152604080832073ffffffffffffffffffffffffffffffffffffffff861684529091529020545b92915050565b7fffffffff00000000000000000000000000000000000000000000000000000000811660009081526001602052604090205460ff165b919050565b6000908152600b602052604090205473ffffffffffffffffffffffffffffffffffffffff1690565b60ff82811660009081526006602052604081205490918291908416600886901b61ff00161790601082901b63ffff0000169061ffff1681015b8082101561152f576000828152600a602052604090205460ff16611524575060019350915061155a9050565b8160010191506114f8565b60007fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff945094505050505b9250929050565b611573600061156e613035565b6129c4565b6115de57604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152600a60248201527f4f6e6c792061646d696e00000000000000000000000000000000000000000000604482015290519081900360640190fd5b805182511461164e57604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601360248201527f4c656e6774687320646f6e2774206d6174636800000000000000000000000000604482015290519081900360640190fd5b60005b825181101561178a5781818151811061166657fe5b602002602001015161ffff166006600085848151811061168257fe5b60209081029190910181015160ff1682528101919091526040016000205461ffff161061171057604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601360248201527f44656372656d656e7420666f7262696464656e00000000000000000000000000604482015290519081900360640190fd5b81818151811061171c57fe5b60200260200101516006600085848151811061173457fe5b60209081029190910181015160ff16825281019190915260400160002080547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff00001661ffff92909216919091179055600101611651565b505050565b606063ffffffff8211156118a65760008281526008602052604090205460027fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff6101006001841615020190911604156117f55760008281526008602052604090206117f8565b600f5b805460408051602060026001851615610100027fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0190941693909304601f8101849004840282018401909252818152929183018282801561189a5780601f1061186f5761010080835404028352916020019161189a565b820191906000526020600020905b81548152906001019060200180831161187d57829003601f168201915b50505050509050611492565b6118b06000613039565b7f3031323334353637383941424344454600000000000000000000000000000000601c84901c600f16601081106118e357fe5b1a60f81b7f3031323334353637383941424344454600000000000000000000000000000000601885901c600f166010811061191a57fe5b1a60f81b7f3031323334353637383941424344454600000000000000000000000000000000601486901c600f166010811061195157fe5b1a60f81b7f3031323334353637383941424344454600000000000000000000000000000000601087901c600f166010811061198857fe5b1a60f81b6040516020018086805190602001908083835b602083106119dc57805182527fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0909201916020918201910161199f565b5181516020939093036101000a7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff01801990911692169190911790527fff00000000000000000000000000000000000000000000000000000000000000978816920191825250938516600185015250908316600283015290911660038201527f2e6a736f6e0000000000000000000000000000000000000000000000000000006004820152604080518083037fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe9018152600990920190529392505050565b60608151835114611b2c57604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152600f60248201527f4c656e677468206d69736d617463680000000000000000000000000000000000604482015290519081900360640190fd5b6060825160020267ffffffffffffffff81118015611b4957600080fd5b50604051908082528060200260200182016040528015611b73578160200160208202803683370190505b50905060005b8351811015611c6f5760066000868381518110611b9257fe5b602002602001015160ff1660ff16815260200190815260200160002060009054906101000a900461ffff16828260020281518110611bcc57fe5b602002602001019061ffff16908161ffff168152505060076000858381518110611bf257fe5b602002602001015160ff166008888581518110611c0b57fe5b602002602001015160ff1661ffff16901b1761ffff1661ffff16815260200190815260200160002060009054906101000a900461ffff16828260020260010181518110611c5457fe5b61ffff90921660209283029190910190910152600101611b79565b509392505050565b611ca37f9f2df0fed2c77648de5860a4cc508cd0818c85b8b8a1ab4ceeef8d981c8956a661156e613035565b611cf8576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260388152602001806152bf6038913960400191505060405180910390fd5b611d04848484846130ef565b50505050565b60009081526020819052604090206002015490565b611d4b7f9f2df0fed2c77648de5860a4cc508cd0818c85b8b8a1ab4ceeef8d981c8956a661156e613035565b611db657604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152600b60248201527f4f6e6c79206d696e746572000000000000000000000000000000000000000000604482015290519081900360640190fd5b63ffffffff8211611e2857604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601560248201527f4f6e6c7920666f7220637573746f6d2063617264730000000000000000000000604482015290519081900360640190fd5b60009182526008602052604090912060010180547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff001660ff909216919091179055565b8151835114611ec5576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260288152602001806153e76028913960400191505060405180910390fd5b73ffffffffffffffffffffffffffffffffffffffff8416611f31576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260258152602001806152456025913960400191505060405180910390fd5b611f39613035565b73ffffffffffffffffffffffffffffffffffffffff168573ffffffffffffffffffffffffffffffffffffffff161480611f7e5750611f7e85611f79613035565b612cbf565b611fd3576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252603281526020018061526a6032913960400191505060405180910390fd5b6000611fdd613035565b9050611fed8187878787876133d3565b60005b845181101561212757600085828151811061200757fe5b60200260200101519050600085838151811061201f57fe5b602002602001015190506120a6816040518060600160405280602a81526020016152f7602a91396002600086815260200190815260200160002060008d73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020546139449092919063ffffffff16565b600083815260026020908152604080832073ffffffffffffffffffffffffffffffffffffffff8e811685529252808320939093558a16815220546120ea90826139f5565b600092835260026020908152604080852073ffffffffffffffffffffffffffffffffffffffff8c1686529091529092209190915550600101611ff0565b508473ffffffffffffffffffffffffffffffffffffffff168673ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff167f4a39dc06d4c0dbc64b70af90fd698a233a518aa5d07e595d983b8c0526c8f7fb8787604051808060200180602001838103835285818151815260200191508051906020019060200280838360005b838110156121d45781810151838201526020016121bc565b50505050905001838103825284818151815260200191508051906020019060200280838360005b838110156122135781810151838201526020016121fb565b5050505090500194505050505060405180910390a4612236818787878787613a69565b505050505050565b60008281526020819052604090206002015461225c9061156e613035565b6122b1576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252602f815260200180615142602f913960400191505060405180910390fd5b6122bb8282613d92565b5050565b6122c7613035565b73ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff161461234a576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252602f815260200180615430602f913960400191505060405180910390fd5b6122bb8282613e15565b6123807f65d7a28e3265b37a6474929f336521b332c1681b933f6cb9f3376673440d862a61156e613035565b6123d5576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252603b815260200180615321603b913960400191505060405180910390fd5b6123dd613e98565b565b6000600954600954640100000000011161245a57604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152600d60248201527f6d617468206f766572666c6f7700000000000000000000000000000000000000604482015290519081900360640190fd5b50600954640100000000015b90565b606081518351146124c5576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260298152602001806153be6029913960400191505060405180910390fd5b6060835167ffffffffffffffff811180156124df57600080fd5b50604051908082528060200260200182016040528015612509578160200160208202803683370190505b50905060005b8451811015611c6f5761254885828151811061252757fe5b602002602001015185838151811061253b57fe5b60200260200101516113b6565b82828151811061255457fe5b602090810291909101015260010161250f565b60055460ff1690565b60ff91821660009081526006602090815260408083205493909416825260079052919091205461ffff91821692911690565b73ffffffffffffffffffffffffffffffffffffffff8082166000818152600c6020908152604080832054808452600b90925282205491939092911614612608577fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff61260a565b805b9392505050565b61261e600061156e613035565b61268957604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152600a60248201527f4f6e6c792061646d696e00000000000000000000000000000000000000000000604482015290519081900360640190fd5b80516122bb90600f906020840190614f3b565b6126a4613035565b73ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff1614806126e457506126e483611f79613035565b612739576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260298152602001806151ec6029913960400191505060405180910390fd5b61178a838383613f86565b6127707f9f2df0fed2c77648de5860a4cc508cd0818c85b8b8a1ab4ceeef8d981c8956a661156e613035565b6127c5576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260388152602001806152bf6038913960400191505060405180910390fd5b611d0484848484614283565b6127fd7f65d7a28e3265b37a6474929f336521b332c1681b933f6cb9f3376673440d862a61156e613035565b612852576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252603981526020018061535c6039913960400191505060405180910390fd5b6123dd6143c5565b6128948215612889577f9f2df0fed2c77648de5860a4cc508cd0818c85b8b8a1ab4ceeef8d981c8956a661288c565b60005b61156e613035565b6128ff57604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152600d60248201527f4163636573732064656e69656400000000000000000000000000000000000000604482015290519081900360640190fd5b81158061290f575063ffffffff82115b61297a57604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152600f60248201527f696e76616c696420746f6b656e49640000000000000000000000000000000000604482015290519081900360640190fd5b8161298d576129888161448d565b6122bb565b6000828152600860209081526040909120825161178a92840190614f3b565b600082815260208190526040812061260a90836144a0565b600082815260208190526040812061260a90836144ac565b600081565b612a0b7f97667070c54ef182b0f5858b034beac1b6f3089aa2d3188bb1e8929f4fa9b929836129c4565b612a7657604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152600e60248201527f4f6e6c79204f70657261746f7273000000000000000000000000000000000000604482015290519081900360640190fd5b6122bb82826144ce565b600080600063ffffffff8411612a9a57601884901c612ab0565b60008481526008602052604090206001015460ff165b6000948552600a602052604090942054610100900467ffffffffffffffff169492505050565b7f763d6fbfe7825d033842d15eee205b023d9a3f6f850ddaacbd6944ae1dbce7d981565b600081815260208190526040812061145690614629565b73ffffffffffffffffffffffffffffffffffffffff81166000908152600d60205260409020805460609190829067ffffffffffffffff81118015612b5457600080fd5b50604051908082528060200260200182016040528015612b7e578160200160208202803683370190505b5090506001820160005b8354811015612bce578160000154838281518110612ba257fe5b60209081029190910181019190915291546000908152600a909252604090912060019081019101612b88565b5090949350505050565b7f9f2df0fed2c77648de5860a4cc508cd0818c85b8b8a1ab4ceeef8d981c8956a681565b600082815260208190526040902060020154612c1a9061156e613035565b61234a576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260308152602001806152156030913960400191505060405180910390fd5b7f65d7a28e3265b37a6474929f336521b332c1681b933f6cb9f3376673440d862a81565b60006114567f763d6fbfe7825d033842d15eee205b023d9a3f6f850ddaacbd6944ae1dbce7d9836129c4565b73ffffffffffffffffffffffffffffffffffffffff918216600090815260036020908152604080832093909416825291909152205460ff1690565b73ffffffffffffffffffffffffffffffffffffffff8416612d66576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260258152602001806152456025913960400191505060405180910390fd5b612d6e613035565b73ffffffffffffffffffffffffffffffffffffffff168573ffffffffffffffffffffffffffffffffffffffff161480612dae5750612dae85611f79613035565b612e03576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260298152602001806151ec6029913960400191505060405180910390fd5b6000612e0d613035565b9050612e2d818787612e1e88614634565b612e2788614634565b876133d3565b612e81836040518060600160405280602a81526020016152f7602a9139600087815260026020908152604080832073ffffffffffffffffffffffffffffffffffffffff8d1684529091529020549190613944565b600085815260026020908152604080832073ffffffffffffffffffffffffffffffffffffffff8b81168552925280832093909355871681522054612ec590846139f5565b600085815260026020908152604080832073ffffffffffffffffffffffffffffffffffffffff808b168086529184529382902094909455805188815291820187905280518a8416938616927fc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f6292908290030190a4612236818787878787614678565b612f4f613035565b73ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff161480612f8f5750612f8f83611f79613035565b612fe4576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260298152602001806151ec6029913960400191505060405180910390fd5b61178a838383614868565b7f97667070c54ef182b0f5858b034beac1b6f3089aa2d3188bb1e8929f4fa9b92981565b600061260a8373ffffffffffffffffffffffffffffffffffffffff84166149dc565b3390565b60048054604080516020601f60027fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff6101006001881615020190951694909404938401819004810282018101909252828152606093909290918301828280156130e35780601f106130b8576101008083540402835291602001916130e3565b820191906000526020600020905b8154815290600101906020018083116130c657829003601f168201915b50505050509050919050565b73ffffffffffffffffffffffffffffffffffffffff841661315b576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252602181526020018061540f6021913960400191505060405180910390fd5b81518351146131b5576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260288152602001806153e76028913960400191505060405180910390fd5b60006131bf613035565b90506131d0816000878787876133d3565b60005b84518110156132bb57613265600260008784815181106131ef57fe5b6020026020010151815260200190815260200160002060008873ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000205485838151811061324f57fe5b60200260200101516139f590919063ffffffff16565b6002600087848151811061327557fe5b6020908102919091018101518252818101929092526040908101600090812073ffffffffffffffffffffffffffffffffffffffff8b1682529092529020556001016131d3565b508473ffffffffffffffffffffffffffffffffffffffff16600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff167f4a39dc06d4c0dbc64b70af90fd698a233a518aa5d07e595d983b8c0526c8f7fb8787604051808060200180602001838103835285818151815260200191508051906020019060200280838360005b83811015613369578181015183820152602001613351565b50505050905001838103825284818151815260200191508051906020019060200280838360005b838110156133a8578181015183820152602001613390565b5050505090500194505050505060405180910390a46133cc81600087878787613a69565b5050505050565b6133e1868686868686614a26565b815183511461345157604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152600f60248201527f4c656e677468206d69736d617463680000000000000000000000000000000000604482015290519081900360640190fd5b60005b835181101561393b5782818151811061346957fe5b60200260200101516001146134df57604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152600b60248201527f416d6f756e7420213d2031000000000000000000000000000000000000000000604482015290519081900360640190fd5b60008482815181106134ed57fe5b6020908102919091018101516000818152600b8352604080822054600a909452902090925073ffffffffffffffffffffffffffffffffffffffff91821691891661378857805460ff16156135a257604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152600e60248201527f416c7265616479206d696e746564000000000000000000000000000000000000604482015290519081900360640190fd5b805460017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff00909116177fffffffffffffffffffffffffffffffffffffffffffffff0000000000000000ff166101004267ffffffffffffffff160217815573ffffffffffffffffffffffffffffffffffffffff82166136f457600e5461363c9073ffffffffffffffffffffffffffffffffffffffff16614a34565b6000848152600b602052604080822080547fffffffffffffffffffffffff00000000000000000000000000000000000000001673ffffffffffffffffffffffffffffffffffffffff851690811790915581517f8129fc1c000000000000000000000000000000000000000000000000000000008152915193955092638129fc1c9260048084019391929182900301818387803b1580156136db57600080fd5b505af11580156136ef573d6000803e3d6000fd5b505050505b73ffffffffffffffffffffffffffffffffffffffff82166000908152600c6020526040902083905563ffffffff83116137795761ffff601084901c8116600090815260076020526040902080548083166001019092167fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0000909216919091179055613783565b6009805460010190555b6138a1565b73ffffffffffffffffffffffffffffffffffffffff88166138a1578173ffffffffffffffffffffffffffffffffffffffff166344df8e706040518163ffffffff1660e01b8152600401600060405180830381600087803b1580156137eb57600080fd5b505af11580156137ff573d6000803e3d6000fd5b505082547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff00168355505063ffffffff83116138a15761ffff601084901c8116600090815260076020526040902080547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff818416019092167fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff00009092169190911790555b8173ffffffffffffffffffffffffffffffffffffffff166313af4035896040518263ffffffff1660e01b8152600401808273ffffffffffffffffffffffffffffffffffffffff168152602001915050600060405180830381600087803b15801561390a57600080fd5b505af115801561391e573d6000803e3d6000fd5b5050505061392d898985614b16565b505050806001019050613454565b50505050505050565b600081848411156139ed576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825283818151815260200191508051906020019080838360005b838110156139b257818101518382015260200161399a565b50505050905090810190601f1680156139df5780820380516001836020036101000a031916815260200191505b509250505060405180910390fd5b505050900390565b60008282018381101561260a57604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601b60248201527f536166654d6174683a206164646974696f6e206f766572666c6f770000000000604482015290519081900360640190fd5b613a888473ffffffffffffffffffffffffffffffffffffffff16614d29565b15612236578373ffffffffffffffffffffffffffffffffffffffff1663bc197c8187878686866040518663ffffffff1660e01b8152600401808673ffffffffffffffffffffffffffffffffffffffff1681526020018573ffffffffffffffffffffffffffffffffffffffff168152602001806020018060200180602001848103845287818151815260200191508051906020019060200280838360005b83811015613b3d578181015183820152602001613b25565b50505050905001848103835286818151815260200191508051906020019060200280838360005b83811015613b7c578181015183820152602001613b64565b50505050905001848103825285818151815260200191508051906020019080838360005b83811015613bb8578181015183820152602001613ba0565b50505050905090810190601f168015613be55780820380516001836020036101000a031916815260200191505b5098505050505050505050602060405180830381600087803b158015613c0a57600080fd5b505af1925050508015613c2f57506040513d6020811015613c2a57600080fd5b505160015b613cf857613c3b614fe2565b80613c465750613ca7565b6040517f08c379a00000000000000000000000000000000000000000000000000000000081526020600482018181528351602484015283518493919283926044019190850190808383600083156139b257818101518382015260200161399a565b6040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260348152602001806150c46034913960400191505060405180910390fd5b7fffffffff0000000000000000000000000000000000000000000000000000000081167fbc197c81000000000000000000000000000000000000000000000000000000001461393b576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252602881526020018061511a6028913960400191505060405180910390fd5b6000828152602081905260409020613daa9082613013565b156122bb57613db7613035565b73ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16837f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d60405160405180910390a45050565b6000828152602081905260409020613e2d9082614d2f565b156122bb57613e3a613035565b73ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16837ff6391f5c32d9c69d2a47ea670b442974b53935d1edc7fd64eb21e047a839171b60405160405180910390a45050565b613ea0612567565b613f0b57604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601460248201527f5061757361626c653a206e6f7420706175736564000000000000000000000000604482015290519081900360640190fd5b600580547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff001690557f5db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa613f5c613035565b6040805173ffffffffffffffffffffffffffffffffffffffff9092168252519081900360200190a1565b73ffffffffffffffffffffffffffffffffffffffff8316613ff2576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252602381526020018061529c6023913960400191505060405180910390fd5b805182511461404c576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260288152602001806153e76028913960400191505060405180910390fd5b6000614056613035565b9050614076818560008686604051806020016040528060008152506133d3565b60005b835181101561417b5761412583828151811061409157fe5b602002602001015160405180606001604052806024815260200161519c60249139600260008886815181106140c257fe5b6020026020010151815260200190815260200160002060008973ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020546139449092919063ffffffff16565b6002600086848151811061413557fe5b6020908102919091018101518252818101929092526040908101600090812073ffffffffffffffffffffffffffffffffffffffff8a168252909252902055600101614079565b50600073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff167f4a39dc06d4c0dbc64b70af90fd698a233a518aa5d07e595d983b8c0526c8f7fb8686604051808060200180602001838103835285818151815260200191508051906020019060200280838360005b83811015614229578181015183820152602001614211565b50505050905001838103825284818151815260200191508051906020019060200280838360005b83811015614268578181015183820152602001614250565b5050505090500194505050505060405180910390a450505050565b73ffffffffffffffffffffffffffffffffffffffff84166142ef576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252602181526020018061540f6021913960400191505060405180910390fd5b60006142f9613035565b905061430b81600087612e1e88614634565b600084815260026020908152604080832073ffffffffffffffffffffffffffffffffffffffff8916845290915290205461434590846139f5565b600085815260026020908152604080832073ffffffffffffffffffffffffffffffffffffffff808b16808652918452828520959095558151898152928301889052815190948616927fc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f6292908290030190a46133cc81600087878787614678565b6143cd612567565b1561443957604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601060248201527f5061757361626c653a2070617573656400000000000000000000000000000000604482015290519081900360640190fd5b600580547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff001660011790557f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a258613f5c613035565b80516122bb906004906020840190614f3b565b600061260a8383614d51565b600061260a8373ffffffffffffffffffffffffffffffffffffffff8416614dcf565b8173ffffffffffffffffffffffffffffffffffffffff166144ed613035565b73ffffffffffffffffffffffffffffffffffffffff16141561455a576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260298152602001806153956029913960400191505060405180910390fd5b8060036000614567613035565b73ffffffffffffffffffffffffffffffffffffffff90811682526020808301939093526040918201600090812091871680825291909352912080547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0016921515929092179091556145d6613035565b73ffffffffffffffffffffffffffffffffffffffff167f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c318360405180821515815260200191505060405180910390a35050565b600061145682614de7565b60408051600180825281830190925260609182919060208083019080368337019050509050828160008151811061466757fe5b602090810291909101015292915050565b6146978473ffffffffffffffffffffffffffffffffffffffff16614d29565b15612236578373ffffffffffffffffffffffffffffffffffffffff1663f23a6e6187878686866040518663ffffffff1660e01b8152600401808673ffffffffffffffffffffffffffffffffffffffff1681526020018573ffffffffffffffffffffffffffffffffffffffff16815260200184815260200183815260200180602001828103825283818151815260200191508051906020019080838360005b8381101561474d578181015183820152602001614735565b50505050905090810190601f16801561477a5780820380516001836020036101000a031916815260200191505b509650505050505050602060405180830381600087803b15801561479d57600080fd5b505af19250505080156147c257506040513d60208110156147bd57600080fd5b505160015b6147ce57613c3b614fe2565b7fffffffff0000000000000000000000000000000000000000000000000000000081167ff23a6e61000000000000000000000000000000000000000000000000000000001461393b576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252602881526020018061511a6028913960400191505060405180910390fd5b73ffffffffffffffffffffffffffffffffffffffff83166148d4576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252602381526020018061529c6023913960400191505060405180910390fd5b60006148de613035565b905061490e818560006148f087614634565b6148f987614634565b604051806020016040528060008152506133d3565b6149628260405180606001604052806024815260200161519c60249139600086815260026020908152604080832073ffffffffffffffffffffffffffffffffffffffff8b1684529091529020549190613944565b600084815260026020908152604080832073ffffffffffffffffffffffffffffffffffffffff808a16808652918452828520959095558151888152928301879052815193949093908616927fc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f6292908290030190a450505050565b60006149e88383614dcf565b614a1e57508154600181810184556000848152602080822090930184905584548482528286019093526040902091909155611456565b506000611456565b612236868686868686614deb565b60006040517f3d602d80600a3d3981f3363d3d373d3d3d363d7300000000000000000000000081528260601b60148201527f5af43d82803e903d91602b57fd5bf3000000000000000000000000000000000060288201526037816000f091505073ffffffffffffffffffffffffffffffffffffffff811661149257604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601660248201527f455243313136373a20637265617465206661696c656400000000000000000000604482015290519081900360640190fd5b6000818152600a6020526040902073ffffffffffffffffffffffffffffffffffffffff841615614ccf5773ffffffffffffffffffffffffffffffffffffffff84166000908152600d602052604090208054614bd257604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152600e60248201527f436f756e74206d69736d61746368000000000000000000000000000000000000604482015290519081900360640190fd5b805460018201905b600081118015614beb575081548514155b15614c2b5790546000908152600a60205260409020600101907fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff01614bda565b81548514614c9a57604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152600c60248201527f4b6579206d69736d617463680000000000000000000000000000000000000000604482015290519081900360640190fd5b506001830180549091556000905580547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0190555b73ffffffffffffffffffffffffffffffffffffffff831615611d045773ffffffffffffffffffffffffffffffffffffffff83166000908152600d602052604090206001808201805484830155849055815401905550505050565b3b151590565b600061260a8373ffffffffffffffffffffffffffffffffffffffff8416614e57565b81546000908210614dad576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260228152602001806150f86022913960400191505060405180910390fd5b826000018281548110614dbc57fe5b9060005260206000200154905092915050565b60009081526001919091016020526040902054151590565b5490565b614df9868686868686612236565b614e01612567565b15612236576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252602c8152602001806151c0602c913960400191505060405180910390fd5b60008181526001830160205260408120548015614f315783547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff8083019190810190600090879083908110614ea857fe5b9060005260206000200154905080876000018481548110614ec557fe5b600091825260208083209091019290925582815260018981019092526040902090840190558654879080614ef557fe5b60019003818190600052602060002001600090559055866001016000878152602001908152602001600020600090556001945050505050611456565b6000915050611456565b828054600181600116156101000203166002900490600052602060002090601f016020900481019282614f715760008555614fb7565b82601f10614f8a57805160ff1916838001178555614fb7565b82800160010185558215614fb7579182015b82811115614fb7578251825591602001919060010190614f9c565b50614fc3929150614fc7565b5090565b5b80821115614fc35760008155600101614fc8565b60e01c90565b600060443d1015614ff257612466565b600481823e6308c379a06150068251614fdc565b1461501057612466565b6040517ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffc3d016004823e80513d67ffffffffffffffff816024840111818411171561505e5750505050612466565b828401925082519150808211156150785750505050612466565b503d8301602082840101111561509057505050612466565b601f017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe01681016020016040529150509056fe455243313135353a207472616e7366657220746f206e6f6e2045524331313535526563656976657220696d706c656d656e746572456e756d657261626c655365743a20696e646578206f7574206f6620626f756e6473455243313135353a204552433131353552656365697665722072656a656374656420746f6b656e73416363657373436f6e74726f6c3a2073656e646572206d75737420626520616e2061646d696e20746f206772616e74455243313135353a2062616c616e636520717565727920666f7220746865207a65726f2061646472657373455243313135353a206275726e20616d6f756e7420657863656564732062616c616e6365455243313135355061757361626c653a20746f6b656e207472616e73666572207768696c6520706175736564455243313135353a2063616c6c6572206973206e6f74206f776e6572206e6f7220617070726f766564416363657373436f6e74726f6c3a2073656e646572206d75737420626520616e2061646d696e20746f207265766f6b65455243313135353a207472616e7366657220746f20746865207a65726f2061646472657373455243313135353a207472616e736665722063616c6c6572206973206e6f74206f776e6572206e6f7220617070726f766564455243313135353a206275726e2066726f6d20746865207a65726f2061646472657373455243313135355072657365744d696e7465725061757365723a206d7573742068617665206d696e74657220726f6c6520746f206d696e74455243313135353a20696e73756666696369656e742062616c616e636520666f72207472616e73666572455243313135355072657365744d696e7465725061757365723a206d75737420686176652070617573657220726f6c6520746f20756e7061757365455243313135355072657365744d696e7465725061757365723a206d75737420686176652070617573657220726f6c6520746f207061757365455243313135353a2073657474696e6720617070726f76616c2073746174757320666f722073656c66455243313135353a206163636f756e747320616e6420696473206c656e677468206d69736d61746368455243313135353a2069647320616e6420616d6f756e7473206c656e677468206d69736d61746368455243313135353a206d696e7420746f20746865207a65726f2061646472657373416363657373436f6e74726f6c3a2063616e206f6e6c792072656e6f756e636520726f6c657320666f722073656c66a2646970667358221220c9951e6cc200e55a27bcfb94a00c74b345a581e28580ea0ba2e62210927da55964736f6c63430007040033000000000000000000000000c65e799100a42d97e5ad26ecb949fa880d8bc99d000000000000000000000000d7bf1e4037ad6b041a4ccf6d720176a08f867db10000000000000000000000000000000000000000000000000000000000000060000000000000000000000000000000000000000000000000000000000000005568747470733a2f2f7261772e67697468756275736572636f6e74656e742e636f6d2f776f6c7665736f6677616c6c7374726565742f776f6c7665732e6173736574732e6c6f772f6d61696e2f6d657461646174612f0000000000000000000000
Deployed Bytecode
0x608060405234801561001057600080fd5b50600436106102c75760003560e01c80636b20c4541161017b578063ca15c873116100d8578063e71df84a1161008c578063f242432a11610071578063f242432a14611297578063f5298aca1461136f578063f5b541a6146113ae576102c7565b8063e71df84a14611229578063e985e9c51461125c576102c7565b8063d5391393116100bd578063d5391393146111e0578063d547741f146111e8578063e63ab1e914611221576102c7565b8063ca15c87314611190578063d004b036146111ad576102c7565b806391d148541161012f578063a22cb46511610114578063a22cb4651461110a578063b09afec114611145578063b730556714611188576102c7565b806391d14854146110c9578063a217fddf14611102576102c7565b80638456cb59116101605780638456cb5914610ff1578063862440e214610ff95780639010d07c146110a6576102c7565b80636b20c45414610dde578063731133e914610f22576102c7565b80632eb2c2d6116102295780634e1273f4116101dd5780635e7468f7116101c25780635e7468f714610cb85780636511bf2e14610d055780636aa6d05a14610d38576102c7565b80634e1273f414610b895780635c975abb14610cb0576102c7565b806336568abe1161020e57806336568abe14610b405780633f4ba83a14610b795780634d7fc43a14610b81576102c7565b80632eb2c2d6146109335780632f2ff15d14610b07576102c7565b80630e89341c116102805780631f7fdffa116102655780631f7fdffa14610725578063248a9ca3146108f05780632e9aab401461090d576102c7565b80630e89341c1461051c57806311c1130c146105ae576102c7565b806308bb76a5116102b157806308bb76a51461036a57806308ec563d146103b05780630c881b21146103f3576102c7565b8062fdd58e146102cc57806301ffc9a714610317575b600080fd5b610305600480360360408110156102e257600080fd5b5073ffffffffffffffffffffffffffffffffffffffff81351690602001356113b6565b60408051918252519081900360200190f35b6103566004803603602081101561032d57600080fd5b50357fffffffff000000000000000000000000000000000000000000000000000000001661145c565b604080519115158252519081900360200190f35b6103876004803603602081101561038057600080fd5b5035611497565b6040805173ffffffffffffffffffffffffffffffffffffffff9092168252519081900360200190f35b6103d8600480360360408110156103c657600080fd5b5060ff813581169160200135166114bf565b60408051921515835260208301919091528051918290030190f35b61051a6004803603604081101561040957600080fd5b81019060208101813564010000000081111561042457600080fd5b82018360208201111561043657600080fd5b8035906020019184602083028401116401000000008311171561045857600080fd5b91908080602002602001604051908101604052809392919081815260200183836020028082843760009201919091525092959493602081019350359150506401000000008111156104a857600080fd5b8201836020820111156104ba57600080fd5b803590602001918460208302840111640100000000831117156104dc57600080fd5b919080806020026020016040519081016040528093929190818152602001838360200280828437600092019190915250929550611561945050505050565b005b6105396004803603602081101561053257600080fd5b503561178f565b6040805160208082528351818301528351919283929083019185019080838360005b8381101561057357818101518382015260200161055b565b50505050905090810190601f1680156105a05780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b6106d5600480360360408110156105c457600080fd5b8101906020810181356401000000008111156105df57600080fd5b8201836020820111156105f157600080fd5b8035906020019184602083028401116401000000008311171561061357600080fd5b919080806020026020016040519081016040528093929190818152602001838360200280828437600092019190915250929594936020810193503591505064010000000081111561066357600080fd5b82018360208201111561067557600080fd5b8035906020019184602083028401116401000000008311171561069757600080fd5b919080806020026020016040519081016040528093929190818152602001838360200280828437600092019190915250929550611aba945050505050565b60408051602080825283518183015283519192839290830191858101910280838360005b838110156107115781810151838201526020016106f9565b505050509050019250505060405180910390f35b61051a6004803603608081101561073b57600080fd5b73ffffffffffffffffffffffffffffffffffffffff823516919081019060408101602082013564010000000081111561077357600080fd5b82018360208201111561078557600080fd5b803590602001918460208302840111640100000000831117156107a757600080fd5b91908080602002602001604051908101604052809392919081815260200183836020028082843760009201919091525092959493602081019350359150506401000000008111156107f757600080fd5b82018360208201111561080957600080fd5b8035906020019184602083028401116401000000008311171561082b57600080fd5b919080806020026020016040519081016040528093929190818152602001838360200280828437600092019190915250929594936020810193503591505064010000000081111561087b57600080fd5b82018360208201111561088d57600080fd5b803590602001918460018302840111640100000000831117156108af57600080fd5b91908080601f016020809104026020016040519081016040528093929190818152602001838380828437600092019190915250929550611c77945050505050565b6103056004803603602081101561090657600080fd5b5035611d0a565b61051a6004803603604081101561092357600080fd5b508035906020013560ff16611d1f565b61051a600480360360a081101561094957600080fd5b73ffffffffffffffffffffffffffffffffffffffff823581169260208101359091169181019060608101604082013564010000000081111561098a57600080fd5b82018360208201111561099c57600080fd5b803590602001918460208302840111640100000000831117156109be57600080fd5b9190808060200260200160405190810160405280939291908181526020018383602002808284376000920191909152509295949360208101935035915050640100000000811115610a0e57600080fd5b820183602082011115610a2057600080fd5b80359060200191846020830284011164010000000083111715610a4257600080fd5b9190808060200260200160405190810160405280939291908181526020018383602002808284376000920191909152509295949360208101935035915050640100000000811115610a9257600080fd5b820183602082011115610aa457600080fd5b80359060200191846001830284011164010000000083111715610ac657600080fd5b91908080601f016020809104026020016040519081016040528093929190818152602001838380828437600092019190915250929550611e6b945050505050565b61051a60048036036040811015610b1d57600080fd5b508035906020013573ffffffffffffffffffffffffffffffffffffffff1661223e565b61051a60048036036040811015610b5657600080fd5b508035906020013573ffffffffffffffffffffffffffffffffffffffff166122bf565b61051a612354565b6103056123df565b6106d560048036036040811015610b9f57600080fd5b810190602081018135640100000000811115610bba57600080fd5b820183602082011115610bcc57600080fd5b80359060200191846020830284011164010000000083111715610bee57600080fd5b9190808060200260200160405190810160405280939291908181526020018383602002808284376000920191909152509295949360208101935035915050640100000000811115610c3e57600080fd5b820183602082011115610c5057600080fd5b80359060200191846020830284011164010000000083111715610c7257600080fd5b919080806020026020016040519081016040528093929190818152602001838360200280828437600092019190915250929550612469945050505050565b610356612567565b610ce060048036036040811015610cce57600080fd5b5060ff81358116916020013516612570565b604051808361ffff1681526020018261ffff1681526020019250505060405180910390f35b61030560048036036020811015610d1b57600080fd5b503573ffffffffffffffffffffffffffffffffffffffff166125a2565b61051a60048036036020811015610d4e57600080fd5b810190602081018135640100000000811115610d6957600080fd5b820183602082011115610d7b57600080fd5b80359060200191846001830284011164010000000083111715610d9d57600080fd5b91908080601f016020809104026020016040519081016040528093929190818152602001838380828437600092019190915250929550612611945050505050565b61051a60048036036060811015610df457600080fd5b73ffffffffffffffffffffffffffffffffffffffff8235169190810190604081016020820135640100000000811115610e2c57600080fd5b820183602082011115610e3e57600080fd5b80359060200191846020830284011164010000000083111715610e6057600080fd5b9190808060200260200160405190810160405280939291908181526020018383602002808284376000920191909152509295949360208101935035915050640100000000811115610eb057600080fd5b820183602082011115610ec257600080fd5b80359060200191846020830284011164010000000083111715610ee457600080fd5b91908080602002602001604051908101604052809392919081815260200183836020028082843760009201919091525092955061269c945050505050565b61051a60048036036080811015610f3857600080fd5b73ffffffffffffffffffffffffffffffffffffffff8235169160208101359160408201359190810190608081016060820135640100000000811115610f7c57600080fd5b820183602082011115610f8e57600080fd5b80359060200191846001830284011164010000000083111715610fb057600080fd5b91908080601f016020809104026020016040519081016040528093929190818152602001838380828437600092019190915250929550612744945050505050565b61051a6127d1565b61051a6004803603604081101561100f57600080fd5b8135919081019060408101602082013564010000000081111561103157600080fd5b82018360208201111561104357600080fd5b8035906020019184600183028401116401000000008311171561106557600080fd5b91908080601f01602080910402602001604051908101604052809392919081815260200183838082843760009201919091525092955061285a945050505050565b610387600480360360408110156110bc57600080fd5b50803590602001356129ac565b610356600480360360408110156110df57600080fd5b508035906020013573ffffffffffffffffffffffffffffffffffffffff166129c4565b6103056129dc565b61051a6004803603604081101561112057600080fd5b5073ffffffffffffffffffffffffffffffffffffffff813516906020013515156129e1565b6111626004803603602081101561115b57600080fd5b5035612a80565b6040805167ffffffffffffffff909316835260ff90911660208301528051918290030190f35b610305612ad6565b610305600480360360208110156111a657600080fd5b5035612afa565b6106d5600480360360208110156111c357600080fd5b503573ffffffffffffffffffffffffffffffffffffffff16612b11565b610305612bd8565b61051a600480360360408110156111fe57600080fd5b508035906020013573ffffffffffffffffffffffffffffffffffffffff16612bfc565b610305612c6f565b6103566004803603602081101561123f57600080fd5b503573ffffffffffffffffffffffffffffffffffffffff16612c93565b6103566004803603604081101561127257600080fd5b5073ffffffffffffffffffffffffffffffffffffffff81358116916020013516612cbf565b61051a600480360360a08110156112ad57600080fd5b73ffffffffffffffffffffffffffffffffffffffff823581169260208101359091169160408201359160608101359181019060a0810160808201356401000000008111156112fa57600080fd5b82018360208201111561130c57600080fd5b8035906020019184600183028401116401000000008311171561132e57600080fd5b91908080601f016020809104026020016040519081016040528093929190818152602001838380828437600092019190915250929550612cfa945050505050565b61051a6004803603606081101561138557600080fd5b5073ffffffffffffffffffffffffffffffffffffffff8135169060208101359060400135612f47565b610305612fef565b600073ffffffffffffffffffffffffffffffffffffffff8316611424576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252602b815260200180615171602b913960400191505060405180910390fd5b50600081815260026020908152604080832073ffffffffffffffffffffffffffffffffffffffff861684529091529020545b92915050565b7fffffffff00000000000000000000000000000000000000000000000000000000811660009081526001602052604090205460ff165b919050565b6000908152600b602052604090205473ffffffffffffffffffffffffffffffffffffffff1690565b60ff82811660009081526006602052604081205490918291908416600886901b61ff00161790601082901b63ffff0000169061ffff1681015b8082101561152f576000828152600a602052604090205460ff16611524575060019350915061155a9050565b8160010191506114f8565b60007fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff945094505050505b9250929050565b611573600061156e613035565b6129c4565b6115de57604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152600a60248201527f4f6e6c792061646d696e00000000000000000000000000000000000000000000604482015290519081900360640190fd5b805182511461164e57604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601360248201527f4c656e6774687320646f6e2774206d6174636800000000000000000000000000604482015290519081900360640190fd5b60005b825181101561178a5781818151811061166657fe5b602002602001015161ffff166006600085848151811061168257fe5b60209081029190910181015160ff1682528101919091526040016000205461ffff161061171057604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601360248201527f44656372656d656e7420666f7262696464656e00000000000000000000000000604482015290519081900360640190fd5b81818151811061171c57fe5b60200260200101516006600085848151811061173457fe5b60209081029190910181015160ff16825281019190915260400160002080547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff00001661ffff92909216919091179055600101611651565b505050565b606063ffffffff8211156118a65760008281526008602052604090205460027fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff6101006001841615020190911604156117f55760008281526008602052604090206117f8565b600f5b805460408051602060026001851615610100027fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0190941693909304601f8101849004840282018401909252818152929183018282801561189a5780601f1061186f5761010080835404028352916020019161189a565b820191906000526020600020905b81548152906001019060200180831161187d57829003601f168201915b50505050509050611492565b6118b06000613039565b7f3031323334353637383941424344454600000000000000000000000000000000601c84901c600f16601081106118e357fe5b1a60f81b7f3031323334353637383941424344454600000000000000000000000000000000601885901c600f166010811061191a57fe5b1a60f81b7f3031323334353637383941424344454600000000000000000000000000000000601486901c600f166010811061195157fe5b1a60f81b7f3031323334353637383941424344454600000000000000000000000000000000601087901c600f166010811061198857fe5b1a60f81b6040516020018086805190602001908083835b602083106119dc57805182527fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0909201916020918201910161199f565b5181516020939093036101000a7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff01801990911692169190911790527fff00000000000000000000000000000000000000000000000000000000000000978816920191825250938516600185015250908316600283015290911660038201527f2e6a736f6e0000000000000000000000000000000000000000000000000000006004820152604080518083037fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe9018152600990920190529392505050565b60608151835114611b2c57604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152600f60248201527f4c656e677468206d69736d617463680000000000000000000000000000000000604482015290519081900360640190fd5b6060825160020267ffffffffffffffff81118015611b4957600080fd5b50604051908082528060200260200182016040528015611b73578160200160208202803683370190505b50905060005b8351811015611c6f5760066000868381518110611b9257fe5b602002602001015160ff1660ff16815260200190815260200160002060009054906101000a900461ffff16828260020281518110611bcc57fe5b602002602001019061ffff16908161ffff168152505060076000858381518110611bf257fe5b602002602001015160ff166008888581518110611c0b57fe5b602002602001015160ff1661ffff16901b1761ffff1661ffff16815260200190815260200160002060009054906101000a900461ffff16828260020260010181518110611c5457fe5b61ffff90921660209283029190910190910152600101611b79565b509392505050565b611ca37f9f2df0fed2c77648de5860a4cc508cd0818c85b8b8a1ab4ceeef8d981c8956a661156e613035565b611cf8576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260388152602001806152bf6038913960400191505060405180910390fd5b611d04848484846130ef565b50505050565b60009081526020819052604090206002015490565b611d4b7f9f2df0fed2c77648de5860a4cc508cd0818c85b8b8a1ab4ceeef8d981c8956a661156e613035565b611db657604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152600b60248201527f4f6e6c79206d696e746572000000000000000000000000000000000000000000604482015290519081900360640190fd5b63ffffffff8211611e2857604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601560248201527f4f6e6c7920666f7220637573746f6d2063617264730000000000000000000000604482015290519081900360640190fd5b60009182526008602052604090912060010180547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff001660ff909216919091179055565b8151835114611ec5576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260288152602001806153e76028913960400191505060405180910390fd5b73ffffffffffffffffffffffffffffffffffffffff8416611f31576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260258152602001806152456025913960400191505060405180910390fd5b611f39613035565b73ffffffffffffffffffffffffffffffffffffffff168573ffffffffffffffffffffffffffffffffffffffff161480611f7e5750611f7e85611f79613035565b612cbf565b611fd3576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252603281526020018061526a6032913960400191505060405180910390fd5b6000611fdd613035565b9050611fed8187878787876133d3565b60005b845181101561212757600085828151811061200757fe5b60200260200101519050600085838151811061201f57fe5b602002602001015190506120a6816040518060600160405280602a81526020016152f7602a91396002600086815260200190815260200160002060008d73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020546139449092919063ffffffff16565b600083815260026020908152604080832073ffffffffffffffffffffffffffffffffffffffff8e811685529252808320939093558a16815220546120ea90826139f5565b600092835260026020908152604080852073ffffffffffffffffffffffffffffffffffffffff8c1686529091529092209190915550600101611ff0565b508473ffffffffffffffffffffffffffffffffffffffff168673ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff167f4a39dc06d4c0dbc64b70af90fd698a233a518aa5d07e595d983b8c0526c8f7fb8787604051808060200180602001838103835285818151815260200191508051906020019060200280838360005b838110156121d45781810151838201526020016121bc565b50505050905001838103825284818151815260200191508051906020019060200280838360005b838110156122135781810151838201526020016121fb565b5050505090500194505050505060405180910390a4612236818787878787613a69565b505050505050565b60008281526020819052604090206002015461225c9061156e613035565b6122b1576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252602f815260200180615142602f913960400191505060405180910390fd5b6122bb8282613d92565b5050565b6122c7613035565b73ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff161461234a576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252602f815260200180615430602f913960400191505060405180910390fd5b6122bb8282613e15565b6123807f65d7a28e3265b37a6474929f336521b332c1681b933f6cb9f3376673440d862a61156e613035565b6123d5576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252603b815260200180615321603b913960400191505060405180910390fd5b6123dd613e98565b565b6000600954600954640100000000011161245a57604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152600d60248201527f6d617468206f766572666c6f7700000000000000000000000000000000000000604482015290519081900360640190fd5b50600954640100000000015b90565b606081518351146124c5576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260298152602001806153be6029913960400191505060405180910390fd5b6060835167ffffffffffffffff811180156124df57600080fd5b50604051908082528060200260200182016040528015612509578160200160208202803683370190505b50905060005b8451811015611c6f5761254885828151811061252757fe5b602002602001015185838151811061253b57fe5b60200260200101516113b6565b82828151811061255457fe5b602090810291909101015260010161250f565b60055460ff1690565b60ff91821660009081526006602090815260408083205493909416825260079052919091205461ffff91821692911690565b73ffffffffffffffffffffffffffffffffffffffff8082166000818152600c6020908152604080832054808452600b90925282205491939092911614612608577fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff61260a565b805b9392505050565b61261e600061156e613035565b61268957604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152600a60248201527f4f6e6c792061646d696e00000000000000000000000000000000000000000000604482015290519081900360640190fd5b80516122bb90600f906020840190614f3b565b6126a4613035565b73ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff1614806126e457506126e483611f79613035565b612739576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260298152602001806151ec6029913960400191505060405180910390fd5b61178a838383613f86565b6127707f9f2df0fed2c77648de5860a4cc508cd0818c85b8b8a1ab4ceeef8d981c8956a661156e613035565b6127c5576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260388152602001806152bf6038913960400191505060405180910390fd5b611d0484848484614283565b6127fd7f65d7a28e3265b37a6474929f336521b332c1681b933f6cb9f3376673440d862a61156e613035565b612852576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252603981526020018061535c6039913960400191505060405180910390fd5b6123dd6143c5565b6128948215612889577f9f2df0fed2c77648de5860a4cc508cd0818c85b8b8a1ab4ceeef8d981c8956a661288c565b60005b61156e613035565b6128ff57604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152600d60248201527f4163636573732064656e69656400000000000000000000000000000000000000604482015290519081900360640190fd5b81158061290f575063ffffffff82115b61297a57604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152600f60248201527f696e76616c696420746f6b656e49640000000000000000000000000000000000604482015290519081900360640190fd5b8161298d576129888161448d565b6122bb565b6000828152600860209081526040909120825161178a92840190614f3b565b600082815260208190526040812061260a90836144a0565b600082815260208190526040812061260a90836144ac565b600081565b612a0b7f97667070c54ef182b0f5858b034beac1b6f3089aa2d3188bb1e8929f4fa9b929836129c4565b612a7657604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152600e60248201527f4f6e6c79204f70657261746f7273000000000000000000000000000000000000604482015290519081900360640190fd5b6122bb82826144ce565b600080600063ffffffff8411612a9a57601884901c612ab0565b60008481526008602052604090206001015460ff165b6000948552600a602052604090942054610100900467ffffffffffffffff169492505050565b7f763d6fbfe7825d033842d15eee205b023d9a3f6f850ddaacbd6944ae1dbce7d981565b600081815260208190526040812061145690614629565b73ffffffffffffffffffffffffffffffffffffffff81166000908152600d60205260409020805460609190829067ffffffffffffffff81118015612b5457600080fd5b50604051908082528060200260200182016040528015612b7e578160200160208202803683370190505b5090506001820160005b8354811015612bce578160000154838281518110612ba257fe5b60209081029190910181019190915291546000908152600a909252604090912060019081019101612b88565b5090949350505050565b7f9f2df0fed2c77648de5860a4cc508cd0818c85b8b8a1ab4ceeef8d981c8956a681565b600082815260208190526040902060020154612c1a9061156e613035565b61234a576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260308152602001806152156030913960400191505060405180910390fd5b7f65d7a28e3265b37a6474929f336521b332c1681b933f6cb9f3376673440d862a81565b60006114567f763d6fbfe7825d033842d15eee205b023d9a3f6f850ddaacbd6944ae1dbce7d9836129c4565b73ffffffffffffffffffffffffffffffffffffffff918216600090815260036020908152604080832093909416825291909152205460ff1690565b73ffffffffffffffffffffffffffffffffffffffff8416612d66576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260258152602001806152456025913960400191505060405180910390fd5b612d6e613035565b73ffffffffffffffffffffffffffffffffffffffff168573ffffffffffffffffffffffffffffffffffffffff161480612dae5750612dae85611f79613035565b612e03576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260298152602001806151ec6029913960400191505060405180910390fd5b6000612e0d613035565b9050612e2d818787612e1e88614634565b612e2788614634565b876133d3565b612e81836040518060600160405280602a81526020016152f7602a9139600087815260026020908152604080832073ffffffffffffffffffffffffffffffffffffffff8d1684529091529020549190613944565b600085815260026020908152604080832073ffffffffffffffffffffffffffffffffffffffff8b81168552925280832093909355871681522054612ec590846139f5565b600085815260026020908152604080832073ffffffffffffffffffffffffffffffffffffffff808b168086529184529382902094909455805188815291820187905280518a8416938616927fc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f6292908290030190a4612236818787878787614678565b612f4f613035565b73ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff161480612f8f5750612f8f83611f79613035565b612fe4576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260298152602001806151ec6029913960400191505060405180910390fd5b61178a838383614868565b7f97667070c54ef182b0f5858b034beac1b6f3089aa2d3188bb1e8929f4fa9b92981565b600061260a8373ffffffffffffffffffffffffffffffffffffffff84166149dc565b3390565b60048054604080516020601f60027fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff6101006001881615020190951694909404938401819004810282018101909252828152606093909290918301828280156130e35780601f106130b8576101008083540402835291602001916130e3565b820191906000526020600020905b8154815290600101906020018083116130c657829003601f168201915b50505050509050919050565b73ffffffffffffffffffffffffffffffffffffffff841661315b576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252602181526020018061540f6021913960400191505060405180910390fd5b81518351146131b5576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260288152602001806153e76028913960400191505060405180910390fd5b60006131bf613035565b90506131d0816000878787876133d3565b60005b84518110156132bb57613265600260008784815181106131ef57fe5b6020026020010151815260200190815260200160002060008873ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000205485838151811061324f57fe5b60200260200101516139f590919063ffffffff16565b6002600087848151811061327557fe5b6020908102919091018101518252818101929092526040908101600090812073ffffffffffffffffffffffffffffffffffffffff8b1682529092529020556001016131d3565b508473ffffffffffffffffffffffffffffffffffffffff16600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff167f4a39dc06d4c0dbc64b70af90fd698a233a518aa5d07e595d983b8c0526c8f7fb8787604051808060200180602001838103835285818151815260200191508051906020019060200280838360005b83811015613369578181015183820152602001613351565b50505050905001838103825284818151815260200191508051906020019060200280838360005b838110156133a8578181015183820152602001613390565b5050505090500194505050505060405180910390a46133cc81600087878787613a69565b5050505050565b6133e1868686868686614a26565b815183511461345157604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152600f60248201527f4c656e677468206d69736d617463680000000000000000000000000000000000604482015290519081900360640190fd5b60005b835181101561393b5782818151811061346957fe5b60200260200101516001146134df57604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152600b60248201527f416d6f756e7420213d2031000000000000000000000000000000000000000000604482015290519081900360640190fd5b60008482815181106134ed57fe5b6020908102919091018101516000818152600b8352604080822054600a909452902090925073ffffffffffffffffffffffffffffffffffffffff91821691891661378857805460ff16156135a257604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152600e60248201527f416c7265616479206d696e746564000000000000000000000000000000000000604482015290519081900360640190fd5b805460017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff00909116177fffffffffffffffffffffffffffffffffffffffffffffff0000000000000000ff166101004267ffffffffffffffff160217815573ffffffffffffffffffffffffffffffffffffffff82166136f457600e5461363c9073ffffffffffffffffffffffffffffffffffffffff16614a34565b6000848152600b602052604080822080547fffffffffffffffffffffffff00000000000000000000000000000000000000001673ffffffffffffffffffffffffffffffffffffffff851690811790915581517f8129fc1c000000000000000000000000000000000000000000000000000000008152915193955092638129fc1c9260048084019391929182900301818387803b1580156136db57600080fd5b505af11580156136ef573d6000803e3d6000fd5b505050505b73ffffffffffffffffffffffffffffffffffffffff82166000908152600c6020526040902083905563ffffffff83116137795761ffff601084901c8116600090815260076020526040902080548083166001019092167fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0000909216919091179055613783565b6009805460010190555b6138a1565b73ffffffffffffffffffffffffffffffffffffffff88166138a1578173ffffffffffffffffffffffffffffffffffffffff166344df8e706040518163ffffffff1660e01b8152600401600060405180830381600087803b1580156137eb57600080fd5b505af11580156137ff573d6000803e3d6000fd5b505082547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff00168355505063ffffffff83116138a15761ffff601084901c8116600090815260076020526040902080547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff818416019092167fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff00009092169190911790555b8173ffffffffffffffffffffffffffffffffffffffff166313af4035896040518263ffffffff1660e01b8152600401808273ffffffffffffffffffffffffffffffffffffffff168152602001915050600060405180830381600087803b15801561390a57600080fd5b505af115801561391e573d6000803e3d6000fd5b5050505061392d898985614b16565b505050806001019050613454565b50505050505050565b600081848411156139ed576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825283818151815260200191508051906020019080838360005b838110156139b257818101518382015260200161399a565b50505050905090810190601f1680156139df5780820380516001836020036101000a031916815260200191505b509250505060405180910390fd5b505050900390565b60008282018381101561260a57604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601b60248201527f536166654d6174683a206164646974696f6e206f766572666c6f770000000000604482015290519081900360640190fd5b613a888473ffffffffffffffffffffffffffffffffffffffff16614d29565b15612236578373ffffffffffffffffffffffffffffffffffffffff1663bc197c8187878686866040518663ffffffff1660e01b8152600401808673ffffffffffffffffffffffffffffffffffffffff1681526020018573ffffffffffffffffffffffffffffffffffffffff168152602001806020018060200180602001848103845287818151815260200191508051906020019060200280838360005b83811015613b3d578181015183820152602001613b25565b50505050905001848103835286818151815260200191508051906020019060200280838360005b83811015613b7c578181015183820152602001613b64565b50505050905001848103825285818151815260200191508051906020019080838360005b83811015613bb8578181015183820152602001613ba0565b50505050905090810190601f168015613be55780820380516001836020036101000a031916815260200191505b5098505050505050505050602060405180830381600087803b158015613c0a57600080fd5b505af1925050508015613c2f57506040513d6020811015613c2a57600080fd5b505160015b613cf857613c3b614fe2565b80613c465750613ca7565b6040517f08c379a00000000000000000000000000000000000000000000000000000000081526020600482018181528351602484015283518493919283926044019190850190808383600083156139b257818101518382015260200161399a565b6040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260348152602001806150c46034913960400191505060405180910390fd5b7fffffffff0000000000000000000000000000000000000000000000000000000081167fbc197c81000000000000000000000000000000000000000000000000000000001461393b576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252602881526020018061511a6028913960400191505060405180910390fd5b6000828152602081905260409020613daa9082613013565b156122bb57613db7613035565b73ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16837f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d60405160405180910390a45050565b6000828152602081905260409020613e2d9082614d2f565b156122bb57613e3a613035565b73ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16837ff6391f5c32d9c69d2a47ea670b442974b53935d1edc7fd64eb21e047a839171b60405160405180910390a45050565b613ea0612567565b613f0b57604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601460248201527f5061757361626c653a206e6f7420706175736564000000000000000000000000604482015290519081900360640190fd5b600580547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff001690557f5db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa613f5c613035565b6040805173ffffffffffffffffffffffffffffffffffffffff9092168252519081900360200190a1565b73ffffffffffffffffffffffffffffffffffffffff8316613ff2576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252602381526020018061529c6023913960400191505060405180910390fd5b805182511461404c576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260288152602001806153e76028913960400191505060405180910390fd5b6000614056613035565b9050614076818560008686604051806020016040528060008152506133d3565b60005b835181101561417b5761412583828151811061409157fe5b602002602001015160405180606001604052806024815260200161519c60249139600260008886815181106140c257fe5b6020026020010151815260200190815260200160002060008973ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020546139449092919063ffffffff16565b6002600086848151811061413557fe5b6020908102919091018101518252818101929092526040908101600090812073ffffffffffffffffffffffffffffffffffffffff8a168252909252902055600101614079565b50600073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff167f4a39dc06d4c0dbc64b70af90fd698a233a518aa5d07e595d983b8c0526c8f7fb8686604051808060200180602001838103835285818151815260200191508051906020019060200280838360005b83811015614229578181015183820152602001614211565b50505050905001838103825284818151815260200191508051906020019060200280838360005b83811015614268578181015183820152602001614250565b5050505090500194505050505060405180910390a450505050565b73ffffffffffffffffffffffffffffffffffffffff84166142ef576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252602181526020018061540f6021913960400191505060405180910390fd5b60006142f9613035565b905061430b81600087612e1e88614634565b600084815260026020908152604080832073ffffffffffffffffffffffffffffffffffffffff8916845290915290205461434590846139f5565b600085815260026020908152604080832073ffffffffffffffffffffffffffffffffffffffff808b16808652918452828520959095558151898152928301889052815190948616927fc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f6292908290030190a46133cc81600087878787614678565b6143cd612567565b1561443957604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601060248201527f5061757361626c653a2070617573656400000000000000000000000000000000604482015290519081900360640190fd5b600580547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff001660011790557f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a258613f5c613035565b80516122bb906004906020840190614f3b565b600061260a8383614d51565b600061260a8373ffffffffffffffffffffffffffffffffffffffff8416614dcf565b8173ffffffffffffffffffffffffffffffffffffffff166144ed613035565b73ffffffffffffffffffffffffffffffffffffffff16141561455a576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260298152602001806153956029913960400191505060405180910390fd5b8060036000614567613035565b73ffffffffffffffffffffffffffffffffffffffff90811682526020808301939093526040918201600090812091871680825291909352912080547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0016921515929092179091556145d6613035565b73ffffffffffffffffffffffffffffffffffffffff167f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c318360405180821515815260200191505060405180910390a35050565b600061145682614de7565b60408051600180825281830190925260609182919060208083019080368337019050509050828160008151811061466757fe5b602090810291909101015292915050565b6146978473ffffffffffffffffffffffffffffffffffffffff16614d29565b15612236578373ffffffffffffffffffffffffffffffffffffffff1663f23a6e6187878686866040518663ffffffff1660e01b8152600401808673ffffffffffffffffffffffffffffffffffffffff1681526020018573ffffffffffffffffffffffffffffffffffffffff16815260200184815260200183815260200180602001828103825283818151815260200191508051906020019080838360005b8381101561474d578181015183820152602001614735565b50505050905090810190601f16801561477a5780820380516001836020036101000a031916815260200191505b509650505050505050602060405180830381600087803b15801561479d57600080fd5b505af19250505080156147c257506040513d60208110156147bd57600080fd5b505160015b6147ce57613c3b614fe2565b7fffffffff0000000000000000000000000000000000000000000000000000000081167ff23a6e61000000000000000000000000000000000000000000000000000000001461393b576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252602881526020018061511a6028913960400191505060405180910390fd5b73ffffffffffffffffffffffffffffffffffffffff83166148d4576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252602381526020018061529c6023913960400191505060405180910390fd5b60006148de613035565b905061490e818560006148f087614634565b6148f987614634565b604051806020016040528060008152506133d3565b6149628260405180606001604052806024815260200161519c60249139600086815260026020908152604080832073ffffffffffffffffffffffffffffffffffffffff8b1684529091529020549190613944565b600084815260026020908152604080832073ffffffffffffffffffffffffffffffffffffffff808a16808652918452828520959095558151888152928301879052815193949093908616927fc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f6292908290030190a450505050565b60006149e88383614dcf565b614a1e57508154600181810184556000848152602080822090930184905584548482528286019093526040902091909155611456565b506000611456565b612236868686868686614deb565b60006040517f3d602d80600a3d3981f3363d3d373d3d3d363d7300000000000000000000000081528260601b60148201527f5af43d82803e903d91602b57fd5bf3000000000000000000000000000000000060288201526037816000f091505073ffffffffffffffffffffffffffffffffffffffff811661149257604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601660248201527f455243313136373a20637265617465206661696c656400000000000000000000604482015290519081900360640190fd5b6000818152600a6020526040902073ffffffffffffffffffffffffffffffffffffffff841615614ccf5773ffffffffffffffffffffffffffffffffffffffff84166000908152600d602052604090208054614bd257604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152600e60248201527f436f756e74206d69736d61746368000000000000000000000000000000000000604482015290519081900360640190fd5b805460018201905b600081118015614beb575081548514155b15614c2b5790546000908152600a60205260409020600101907fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff01614bda565b81548514614c9a57604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152600c60248201527f4b6579206d69736d617463680000000000000000000000000000000000000000604482015290519081900360640190fd5b506001830180549091556000905580547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0190555b73ffffffffffffffffffffffffffffffffffffffff831615611d045773ffffffffffffffffffffffffffffffffffffffff83166000908152600d602052604090206001808201805484830155849055815401905550505050565b3b151590565b600061260a8373ffffffffffffffffffffffffffffffffffffffff8416614e57565b81546000908210614dad576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260228152602001806150f86022913960400191505060405180910390fd5b826000018281548110614dbc57fe5b9060005260206000200154905092915050565b60009081526001919091016020526040902054151590565b5490565b614df9868686868686612236565b614e01612567565b15612236576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252602c8152602001806151c0602c913960400191505060405180910390fd5b60008181526001830160205260408120548015614f315783547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff8083019190810190600090879083908110614ea857fe5b9060005260206000200154905080876000018481548110614ec557fe5b600091825260208083209091019290925582815260018981019092526040902090840190558654879080614ef557fe5b60019003818190600052602060002001600090559055866001016000878152602001908152602001600020600090556001945050505050611456565b6000915050611456565b828054600181600116156101000203166002900490600052602060002090601f016020900481019282614f715760008555614fb7565b82601f10614f8a57805160ff1916838001178555614fb7565b82800160010185558215614fb7579182015b82811115614fb7578251825591602001919060010190614f9c565b50614fc3929150614fc7565b5090565b5b80821115614fc35760008155600101614fc8565b60e01c90565b600060443d1015614ff257612466565b600481823e6308c379a06150068251614fdc565b1461501057612466565b6040517ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffc3d016004823e80513d67ffffffffffffffff816024840111818411171561505e5750505050612466565b828401925082519150808211156150785750505050612466565b503d8301602082840101111561509057505050612466565b601f017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe01681016020016040529150509056fe455243313135353a207472616e7366657220746f206e6f6e2045524331313535526563656976657220696d706c656d656e746572456e756d657261626c655365743a20696e646578206f7574206f6620626f756e6473455243313135353a204552433131353552656365697665722072656a656374656420746f6b656e73416363657373436f6e74726f6c3a2073656e646572206d75737420626520616e2061646d696e20746f206772616e74455243313135353a2062616c616e636520717565727920666f7220746865207a65726f2061646472657373455243313135353a206275726e20616d6f756e7420657863656564732062616c616e6365455243313135355061757361626c653a20746f6b656e207472616e73666572207768696c6520706175736564455243313135353a2063616c6c6572206973206e6f74206f776e6572206e6f7220617070726f766564416363657373436f6e74726f6c3a2073656e646572206d75737420626520616e2061646d696e20746f207265766f6b65455243313135353a207472616e7366657220746f20746865207a65726f2061646472657373455243313135353a207472616e736665722063616c6c6572206973206e6f74206f776e6572206e6f7220617070726f766564455243313135353a206275726e2066726f6d20746865207a65726f2061646472657373455243313135355072657365744d696e7465725061757365723a206d7573742068617665206d696e74657220726f6c6520746f206d696e74455243313135353a20696e73756666696369656e742062616c616e636520666f72207472616e73666572455243313135355072657365744d696e7465725061757365723a206d75737420686176652070617573657220726f6c6520746f20756e7061757365455243313135355072657365744d696e7465725061757365723a206d75737420686176652070617573657220726f6c6520746f207061757365455243313135353a2073657474696e6720617070726f76616c2073746174757320666f722073656c66455243313135353a206163636f756e747320616e6420696473206c656e677468206d69736d61746368455243313135353a2069647320616e6420616d6f756e7473206c656e677468206d69736d61746368455243313135353a206d696e7420746f20746865207a65726f2061646472657373416363657373436f6e74726f6c3a2063616e206f6e6c792072656e6f756e636520726f6c657320666f722073656c66a2646970667358221220c9951e6cc200e55a27bcfb94a00c74b345a581e28580ea0ba2e62210927da55964736f6c63430007040033
Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)
000000000000000000000000c65e799100a42d97e5ad26ecb949fa880d8bc99d000000000000000000000000d7bf1e4037ad6b041a4ccf6d720176a08f867db10000000000000000000000000000000000000000000000000000000000000060000000000000000000000000000000000000000000000000000000000000005568747470733a2f2f7261772e67697468756275736572636f6e74656e742e636f6d2f776f6c7665736f6677616c6c7374726565742f776f6c7665732e6173736574732e6c6f772f6d61696e2f6d657461646174612f0000000000000000000000
-----Decoded View---------------
Arg [0] : _owner (address): 0xC65e799100A42D97e5aD26ecB949fA880D8bc99d
Arg [1] : __cryptofolio (address): 0xd7BF1E4037Ad6b041A4CcF6D720176a08F867db1
Arg [2] : _uri (string): https://raw.githubusercontent.com/wolvesofwallstreet/wolves.assets.low/main/metadata/
-----Encoded View---------------
7 Constructor Arguments found :
Arg [0] : 000000000000000000000000c65e799100a42d97e5ad26ecb949fa880d8bc99d
Arg [1] : 000000000000000000000000d7bf1e4037ad6b041a4ccf6d720176a08f867db1
Arg [2] : 0000000000000000000000000000000000000000000000000000000000000060
Arg [3] : 0000000000000000000000000000000000000000000000000000000000000055
Arg [4] : 68747470733a2f2f7261772e67697468756275736572636f6e74656e742e636f
Arg [5] : 6d2f776f6c7665736f6677616c6c7374726565742f776f6c7665732e61737365
Arg [6] : 74732e6c6f772f6d61696e2f6d657461646174612f0000000000000000000000
Loading...
Loading
Loading...
Loading
[ Download: CSV Export ]
[ Download: CSV Export ]
A token is a representation of an on-chain or off-chain asset. The token page shows information such as price, total supply, holders, transfers and social links. Learn more about this page in our Knowledge Base.