ERC-721
NFT
Overview
Max Total Supply
2,048 ONLYBOTS
Holders
569
Market
Volume (24H)
N/A
Min Price (24H)
N/A
Max Price (24H)
N/A
Other Info
Token Contract
Balance
0 ONLYBOTSLoading...
Loading
Loading...
Loading
Loading...
Loading
# | Exchange | Pair | Price | 24H Volume | % Volume |
---|
Contract Name:
OnlyBotsToken
Compiler Version
v0.8.17+commit.8df45f5f
Contract Source Code (Solidity Multiple files format)
// SPDX-License-Identifier: MIT /** ### ## ## #### ## ## ### ## ## ### ## ## ### ### ## ## ## ## #### ## ## #### #### ## ## ## ## ## ## ## ## ## ### ## ## ## ######### ## #### ## ## ## ######### ## ## ## ### ## ## ## ## ## ## ## ## ## #### ## ## ## ## */ pragma solidity ^0.8.15; pragma abicoder v2; import "./ERC721Enumerable.sol"; import "./Ownable.sol"; import "./AccessControlEnumerable.sol"; import "./Pausable.sol"; import "./Strings.sol"; import "./SafeCast.sol"; import "./base64.sol"; import "./UpdatableOperatorFilterer.sol"; import "./OnlyBotsData.sol"; import "./OnlyBotsDeserializerV1.sol"; interface IERC2981 { // ERC165 bytes to add to interface array - set in parent contract // implementing this standard // // bytes4(keccak256("royaltyInfo(uint256,uint256)")) == 0x2a55205a // bytes4 private constant _INTERFACE_ID_ERC2981 = 0x2a55205a; // _registerInterface(_INTERFACE_ID_ERC2981); // @notice Called with the sale price to determine how much royalty // is owed and to whom. // @param _tokenId - the NFT asset queried for royalty information // @param _salePrice - the sale price of the NFT asset specified by _tokenId // @return receiver - address of who should be sent the royalty payment // @return royaltyAmount - the royalty payment amount for _salePrice function royaltyInfo(uint256 _tokenId, uint256 _salePrice) external view returns (address receiver, uint256 royaltyAmount); } contract OnlyBotsToken is UpdatableOperatorFilterer, Ownable, AccessControlEnumerable, Pausable, ERC721Enumerable, IERC2981 { error InvalidMintValue(uint256 required, uint256 given); error InvalidTokenId(uint256 tokenId); error AddressAlreadyMinted(address addr); error InvalidSignature(address authSigner, address recoveredSigner); error AddressNotAuthorized(address addr); error ConsecutiveNotSupported(uint256 givenBatchSize); error InvalidMintAddress(address sender, address to); error InvalidBurnAddress(address sender, address from); error InvalidRNGMax(uint256 max); error InvalidRNGRoll(uint256 random); error InvalidBotId(uint256 botId); error BrokenBotAssignment(uint256 botId, uint256 expectedTokenId, uint256 unexpectedTokenId); error MissingBotAssignment(uint256 tokenId); error BatchHasRemainingSupply(uint256 supply, uint256 batchOffset, uint256 lastBatchSize); error BatchNotAirdropEligible(uint256 batchId); error NoDataContracts(); error InvalidBatchIndex(uint256 given, uint256 currentLength); error UnknownBot(uint128 batchIndedx, uint128 relativeBotId); event Mint(address indexed recipient, uint256 indexed tokenId, uint256 indexed relativeBotId); struct MintStatus { bool authorized; uint128 lastBatchMinted; // uint128 so entire struct is less than one word } struct BotId { uint128 batchIndex; // zero-indexed uint128 relativeBotId; // one-indexed } bytes32 public constant ADMIN_ROLE = keccak256("ADMIN_ROLE"); bytes32 public constant WITHDRAW_ROLE = keccak256("WITHDRAW_ROLE"); uint128 private constant ROYALTY_SCALE = 1000; uint128 private constant ROYALTY_PERCENTAGE = 100; // 10% mapping(address => MintStatus) public statuses; mapping(uint256 => uint256) private randomBotIdHelper; mapping(uint256 => BotId) public tokenIdToBotId; OnlyBotsDeserializer public deserializer; bool capMint; address public authSigner; string public openSeaContractURI; address public royaltyRecipient; DataContract[] public dataContracts; uint256 batchOffset; constructor(OnlyBotsDeserializer _deserializer, bool _capMint) // https://github.com/ProjectOpenSea/operator-filter-registry#deployments UpdatableOperatorFilterer( 0x000000000000AAeB6D7670E522A718067333cd4E, 0x3cc6CddA760b79bAfa08dF41ECFA224f810dCeB6, true ) ERC721("Onlybots", "ONLYBOTS") { _setupRole(DEFAULT_ADMIN_ROLE, owner()); deserializer = _deserializer; capMint = _capMint; batchOffset = 0; } receive() external payable {} fallback() external {} function owner() public view override(Ownable, UpdatableOperatorFilterer) returns (address) { return Ownable.owner(); } function withdraw() public payable onlyRole(WITHDRAW_ROLE) { payable(msg.sender).transfer(address(this).balance); } function appendDataContract( OnlyBotsData _onlyBotsAddress, uint256 _expectedIndex, string calldata _cid ) external onlyRole(ADMIN_ROLE) { if (_expectedIndex != dataContracts.length) { revert InvalidBatchIndex(_expectedIndex, dataContracts.length); } if (dataContracts.length > 0) { uint256 lastBatchSize = dataContracts[dataContracts.length - 1].size; uint256 supply = totalSupply(); if (supply != (batchOffset + lastBatchSize)) { revert BatchHasRemainingSupply(supply, batchOffset, lastBatchSize); } // reset batchOffset batchOffset = supply; } uint256 batchSize = _onlyBotsAddress.getBatchSize(); uint256 price = _onlyBotsAddress.getPrice(); // append new data contract dataContracts.push(DataContract(_onlyBotsAddress, batchSize, price, _cid)); } function setPaused(bool _value) external onlyRole(ADMIN_ROLE) { if (_value) { _pause(); } else { _unpause(); } } function setAuthSigner(address _signer) external onlyRole(ADMIN_ROLE) { authSigner = _signer; } function setRoyaltyRecipient(address _royaltyRecipient) external onlyRole(ADMIN_ROLE) { royaltyRecipient = _royaltyRecipient; } function setDeserializer(OnlyBotsDeserializer _deserializer) external onlyRole(ADMIN_ROLE) { deserializer = _deserializer; } function setDataContractCID(uint256 _index, string calldata _cid) external onlyRole(ADMIN_ROLE) { if (_index >= dataContracts.length) { revert InvalidBatchIndex(_index, dataContracts.length); } dataContracts[_index].cid = _cid; } function setOpenSeaURI(string calldata _uri) external onlyRole(ADMIN_ROLE) { openSeaContractURI = _uri; } /** * @dev See {IERC165-supportsInterface}. */ function supportsInterface(bytes4 _interfaceId) public view virtual override(AccessControlEnumerable, ERC721Enumerable) returns (bool) { return _interfaceId == type(IERC2981).interfaceId || super.supportsInterface(_interfaceId); } function airdrop(address _airdropRecipient) external onlyRole(ADMIN_ROLE) { // airdrops only for the first (0th) batch if (dataContracts.length > 1) { revert BatchNotAirdropEligible(dataContracts.length - 1); } DataContract storage dataContract = dataContracts[0]; uint256 tokenId = totalSupply() + 1; uint256 batchSize = dataContract.size; if (tokenId < 1 || tokenId > batchSize) { revert InvalidTokenId(tokenId); } BotId memory botId = BotId({batchIndex: uint128(0), relativeBotId: SafeCast.toUint128(tokenId)}); _safeMint(_airdropRecipient, tokenId); tokenIdToBotId[tokenId] = botId; emit Mint(_airdropRecipient, tokenId, botId.relativeBotId); } function mint() public payable whenNotPaused { if (dataContracts.length < 1) { revert NoDataContracts(); } uint128 batchIndex = SafeCast.toUint128(dataContracts.length - 1); DataContract storage dataContract = dataContracts[batchIndex]; uint256 batchPrice = dataContract.price; uint256 batchSize = dataContract.size; if (msg.value != batchPrice) { revert InvalidMintValue(batchPrice, msg.value); } uint256 tokenId = totalSupply() + 1; if (tokenId < 1 || tokenId > (batchOffset + batchSize)) { revert InvalidTokenId(tokenId); } _safeMint(msg.sender, tokenId); BotId memory botId = assignBot(tokenId, batchIndex, batchSize); emit Mint(msg.sender, tokenId, botId.relativeBotId); } function authorize( uint8 _v, bytes32 _r, bytes32 _s ) public whenNotPaused { // verify that message passed as argument was signed by our mint auth // wallet and contained our msg.sender in the message bytes32 hash = keccak256( abi.encodePacked( "\x19Ethereum Signed Message:\n32", keccak256(abi.encodePacked("onlybots mint authorization|", msg.sender)) ) ); address recoveredSigner = ecrecover(hash, _v, _r, _s); if (recoveredSigner != authSigner) { revert InvalidSignature(authSigner, recoveredSigner); } MintStatus storage status = statuses[msg.sender]; status.authorized = true; } function authorizeAndMint( uint8 _v, bytes32 _r, bytes32 _s ) external payable whenNotPaused { authorize(_v, _r, _s); mint(); } function tokenURI(uint256 _tokenId) public view override returns (string memory) { _requireMinted(_tokenId); BotId memory botId = tokenIdToBotId[_tokenId]; if (botId.relativeBotId == 0) { revert MissingBotAssignment(_tokenId); } if (botId.batchIndex >= dataContracts.length) { revert InvalidBatchIndex(botId.batchIndex, dataContracts.length); } return string.concat( "ipfs://", dataContracts[botId.batchIndex].cid, "/", Strings.toString(botId.relativeBotId), ".json" ); } function getWalletAuthorization() external view returns (bool) { return statuses[msg.sender].authorized; } function getBotData(uint256 _tokenId) public view returns (string memory) { if (!_exists(_tokenId)) { revert InvalidTokenId(_tokenId); } BotId memory botId = tokenIdToBotId[_tokenId]; if (botId.relativeBotId == 0) { revert MissingBotAssignment(_tokenId); } return deserializer.deserialize(dataContracts[botId.batchIndex], botId.batchIndex, botId.relativeBotId); } function findTokenId(uint128 _batchIndex, uint128 _relativeBotId) public view returns (uint256) { uint256 supply = totalSupply(); uint256 tokenId = 1; // Skip tokens that are not part of this batch for (uint256 currentBatchIndex = 0; currentBatchIndex < _batchIndex; currentBatchIndex++) { tokenId += dataContracts[currentBatchIndex].size; } for (; tokenId <= supply; tokenId++) { if ( tokenIdToBotId[tokenId].batchIndex == _batchIndex && tokenIdToBotId[tokenId].relativeBotId == _relativeBotId ) { return tokenId; } } revert UnknownBot(_batchIndex, _relativeBotId); } function getCurrentBatchInfo() public view returns ( uint256, uint256, uint256 ) { if (dataContracts.length < 1) { revert NoDataContracts(); } uint256 batchIndex = dataContracts.length - 1; DataContract storage dataContract = dataContracts[batchIndex]; return (batchIndex, dataContract.price, dataContract.size - (totalSupply() - batchOffset)); } function assignBot( uint256 _tokenId, uint128 _batchIndex, uint256 _batchSize ) private returns (BotId memory) { uint256 maxMintId = batchOffset + _batchSize; uint256 max = maxMintId - (_tokenId - 1); if (max < 1 || max > maxMintId) { revert InvalidRNGMax(max); } uint256 random = getPseudoRandomOneToN(_tokenId, block.timestamp, msg.sender, max); if (random < 1 || random > max) { revert InvalidRNGRoll(random); } // This pattern emulates a ONE-INDEXED list of length MAX_MINT_ID where each element value is the same is its index (a bot ID from 1 to MAX_MINT_ID). // We randomly roll an element of the list, then "delete" that element by replacing the rolled index by `max` // * Since we "delete" an element every mint, `max` will never be able to roll naturally after this // * If `max` value has been replaced (randomBotIdHelper[max] != 0), use that value instead of `max` when replacing the rolled value // * If we rolled `max`, no need to update since a mapping of randomBotIdHelper[max] would never be accessible again // * If this value has already been replaced (randomBotIdHelper[random] != 0), we still want to replace that value with the new `max` (or its replaced value) to prevent it from being rolled again // * If randomBotIdHelper[max] has a value, set it to 0 after potentially copying it to the new location. After all bots in this batch are minted, randomBotIdHelper will be empty and ready for use with the next batch uint256 relativeBotId = randomBotIdHelper[random] != 0 ? randomBotIdHelper[random] : random; if (random != max) { randomBotIdHelper[random] = randomBotIdHelper[max] != 0 ? randomBotIdHelper[max] : max; } if (randomBotIdHelper[max] != 0) { randomBotIdHelper[max] = 0; } if (relativeBotId < 1 || relativeBotId > _batchSize) { revert InvalidBotId(relativeBotId); } BotId memory botId = BotId({batchIndex: _batchIndex, relativeBotId: SafeCast.toUint128(relativeBotId)}); tokenIdToBotId[_tokenId] = botId; return botId; } function getPseudoRandomOneToN( uint256 _tokenId, uint256 _blockTimestamp, address _sender, uint256 _n ) private pure returns (uint256) { // rand % n => 0..(n - 1) // (rand % n) + 1 => 1..n return (uint256(keccak256(abi.encodePacked(_tokenId, _sender, _blockTimestamp))) % _n) + 1; } /** * @dev Hook that is called before any token transfer. This includes minting * and burning. * * Calling conditions: * * - When `from` and `to` are both non-zero, ``from``'s `tokenId` will be * transferred to `to`. * - When `from` is zero, `tokenId` will be minted for `to`. * - When `to` is zero, ``from``'s `tokenId` will be burned. * - `from` and `to` are never both zero. * * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks]. */ function _beforeTokenTransfer( address from, address to, uint256 tokenId, uint256 batchSize ) internal virtual override whenNotPaused { super._beforeTokenTransfer(from, to, tokenId, batchSize); if (batchSize != 1) { revert ConsecutiveNotSupported(batchSize); } // first batch (dataContracts.length = 1) is for airdrops and shouldn't use // the same checks as subsequent batches if (from == address(0) && dataContracts.length > 1) { if (msg.sender != to) { revert InvalidMintAddress(msg.sender, to); } MintStatus storage status = statuses[to]; if (!status.authorized) { revert AddressNotAuthorized(to); } if (capMint && status.lastBatchMinted == dataContracts.length - 1) { revert AddressAlreadyMinted(to); } status.lastBatchMinted = SafeCast.toUint128(dataContracts.length - 1); } else if (dataContracts.length == 1) { // only admin may airdrop if (!hasRole(ADMIN_ROLE, msg.sender)) { revert AddressNotAuthorized(msg.sender); } } if (to == address(0)) { if (msg.sender != from) { revert InvalidBurnAddress(msg.sender, from); } } } // Operator filtering function setApprovalForAll(address operator, bool approved) public override(ERC721, IERC721) onlyAllowedOperatorApproval(operator) { super.setApprovalForAll(operator, approved); } function approve(address operator, uint256 tokenId) public override(ERC721, IERC721) onlyAllowedOperatorApproval(operator) { super.approve(operator, tokenId); } function transferFrom( address from, address to, uint256 tokenId ) public override(ERC721, IERC721) onlyAllowedOperator(from) { super.transferFrom(from, to, tokenId); } function safeTransferFrom( address from, address to, uint256 tokenId ) public override(ERC721, IERC721) onlyAllowedOperator(from) { super.safeTransferFrom(from, to, tokenId); } function safeTransferFrom( address from, address to, uint256 tokenId, bytes memory data ) public override(ERC721, IERC721) onlyAllowedOperator(from) { super.safeTransferFrom(from, to, tokenId, data); } function royaltyInfo(uint256 _tokenId, uint256 _salePrice) external view override returns (address receiver, uint256 royaltyAmount) { return (royaltyRecipient, percentage(_salePrice, ROYALTY_PERCENTAGE, ROYALTY_SCALE)); } // Calculate base * ratio / scale rounding down. // https://ethereum.stackexchange.com/a/79736 // NOTE: As of solidity 0.8, SafeMath is no longer required function percentage( uint256 base, uint256 ratio, uint128 scale ) internal pure returns (uint256) { uint256 baseDiv = base / scale; uint256 baseMod = base % scale; uint256 ratioDiv = ratio / scale; uint256 ratioMod = ratio % scale; return (baseDiv * ratioDiv * scale) + (baseDiv * ratioMod) + (baseMod * ratioDiv) + ((baseMod * ratioMod) / scale); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.8.0) (access/AccessControl.sol) pragma solidity ^0.8.0; import "./IAccessControl.sol"; import "./Context.sol"; import "./Strings.sol"; import "./ERC165.sol"; /** * @dev Contract module that allows children to implement role-based access * control mechanisms. This is a lightweight version that doesn't allow enumerating role * members except through off-chain means by accessing the contract event logs. Some * applications may benefit from on-chain enumerability, for those cases see * {AccessControlEnumerable}. * * Roles are referred to by their `bytes32` identifier. These should be exposed * in the external API and be unique. The best way to achieve this is by * using `public constant` hash digests: * * ``` * bytes32 public constant MY_ROLE = keccak256("MY_ROLE"); * ``` * * Roles can be used to represent a set of permissions. To restrict access to a * function call, use {hasRole}: * * ``` * function foo() public { * require(hasRole(MY_ROLE, msg.sender)); * ... * } * ``` * * Roles can be granted and revoked dynamically via the {grantRole} and * {revokeRole} functions. Each role has an associated admin role, and only * accounts that have a role's admin role can call {grantRole} and {revokeRole}. * * By default, the admin role for all roles is `DEFAULT_ADMIN_ROLE`, which means * that only accounts with this role will be able to grant or revoke other * roles. More complex role relationships can be created by using * {_setRoleAdmin}. * * WARNING: The `DEFAULT_ADMIN_ROLE` is also its own admin: it has permission to * grant and revoke this role. Extra precautions should be taken to secure * accounts that have been granted it. */ abstract contract AccessControl is Context, IAccessControl, ERC165 { struct RoleData { mapping(address => bool) members; bytes32 adminRole; } mapping(bytes32 => RoleData) private _roles; bytes32 public constant DEFAULT_ADMIN_ROLE = 0x00; /** * @dev Modifier that checks that an account has a specific role. Reverts * with a standardized message including the required role. * * The format of the revert reason is given by the following regular expression: * * /^AccessControl: account (0x[0-9a-f]{40}) is missing role (0x[0-9a-f]{64})$/ * * _Available since v4.1._ */ modifier onlyRole(bytes32 role) { _checkRole(role); _; } /** * @dev See {IERC165-supportsInterface}. */ function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) { return interfaceId == type(IAccessControl).interfaceId || super.supportsInterface(interfaceId); } /** * @dev Returns `true` if `account` has been granted `role`. */ function hasRole(bytes32 role, address account) public view virtual override returns (bool) { return _roles[role].members[account]; } /** * @dev Revert with a standard message if `_msgSender()` is missing `role`. * Overriding this function changes the behavior of the {onlyRole} modifier. * * Format of the revert message is described in {_checkRole}. * * _Available since v4.6._ */ function _checkRole(bytes32 role) internal view virtual { _checkRole(role, _msgSender()); } /** * @dev Revert with a standard message if `account` is missing `role`. * * The format of the revert reason is given by the following regular expression: * * /^AccessControl: account (0x[0-9a-f]{40}) is missing role (0x[0-9a-f]{64})$/ */ function _checkRole(bytes32 role, address account) internal view virtual { if (!hasRole(role, account)) { revert( string( abi.encodePacked( "AccessControl: account ", Strings.toHexString(account), " is missing role ", Strings.toHexString(uint256(role), 32) ) ) ); } } /** * @dev Returns the admin role that controls `role`. See {grantRole} and * {revokeRole}. * * To change a role's admin, use {_setRoleAdmin}. */ function getRoleAdmin(bytes32 role) public view virtual override returns (bytes32) { return _roles[role].adminRole; } /** * @dev Grants `role` to `account`. * * If `account` had not been already granted `role`, emits a {RoleGranted} * event. * * Requirements: * * - the caller must have ``role``'s admin role. * * May emit a {RoleGranted} event. */ function grantRole(bytes32 role, address account) public virtual override onlyRole(getRoleAdmin(role)) { _grantRole(role, account); } /** * @dev Revokes `role` from `account`. * * If `account` had been granted `role`, emits a {RoleRevoked} event. * * Requirements: * * - the caller must have ``role``'s admin role. * * May emit a {RoleRevoked} event. */ function revokeRole(bytes32 role, address account) public virtual override onlyRole(getRoleAdmin(role)) { _revokeRole(role, account); } /** * @dev Revokes `role` from the calling account. * * Roles are often managed via {grantRole} and {revokeRole}: this function's * purpose is to provide a mechanism for accounts to lose their privileges * if they are compromised (such as when a trusted device is misplaced). * * If the calling account had been revoked `role`, emits a {RoleRevoked} * event. * * Requirements: * * - the caller must be `account`. * * May emit a {RoleRevoked} event. */ function renounceRole(bytes32 role, address account) public virtual override { require(account == _msgSender(), "AccessControl: can only renounce roles for self"); _revokeRole(role, account); } /** * @dev Grants `role` to `account`. * * If `account` had not been already granted `role`, emits a {RoleGranted} * event. Note that unlike {grantRole}, this function doesn't perform any * checks on the calling account. * * May emit a {RoleGranted} event. * * [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}. * ==== * * NOTE: This function is deprecated in favor of {_grantRole}. */ 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 { bytes32 previousAdminRole = getRoleAdmin(role); _roles[role].adminRole = adminRole; emit RoleAdminChanged(role, previousAdminRole, adminRole); } /** * @dev Grants `role` to `account`. * * Internal function without access restriction. * * May emit a {RoleGranted} event. */ function _grantRole(bytes32 role, address account) internal virtual { if (!hasRole(role, account)) { _roles[role].members[account] = true; emit RoleGranted(role, account, _msgSender()); } } /** * @dev Revokes `role` from `account`. * * Internal function without access restriction. * * May emit a {RoleRevoked} event. */ function _revokeRole(bytes32 role, address account) internal virtual { if (hasRole(role, account)) { _roles[role].members[account] = false; emit RoleRevoked(role, account, _msgSender()); } } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.5.0) (access/AccessControlEnumerable.sol) pragma solidity ^0.8.0; import "./IAccessControlEnumerable.sol"; import "./AccessControl.sol"; import "./EnumerableSet.sol"; /** * @dev Extension of {AccessControl} that allows enumerating the members of each role. */ abstract contract AccessControlEnumerable is IAccessControlEnumerable, AccessControl { using EnumerableSet for EnumerableSet.AddressSet; mapping(bytes32 => EnumerableSet.AddressSet) private _roleMembers; /** * @dev See {IERC165-supportsInterface}. */ function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) { return interfaceId == type(IAccessControlEnumerable).interfaceId || super.supportsInterface(interfaceId); } /** * @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 virtual override returns (address) { return _roleMembers[role].at(index); } /** * @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 virtual override returns (uint256) { return _roleMembers[role].length(); } /** * @dev Overload {_grantRole} to track enumerable memberships */ function _grantRole(bytes32 role, address account) internal virtual override { super._grantRole(role, account); _roleMembers[role].add(account); } /** * @dev Overload {_revokeRole} to track enumerable memberships */ function _revokeRole(bytes32 role, address account) internal virtual override { super._revokeRole(role, account); _roleMembers[role].remove(account); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.8.0) (utils/Address.sol) pragma solidity ^0.8.1; /** * @dev Collection of functions related to the address type */ library Address { /** * @dev Returns true if `account` is a contract. * * [IMPORTANT] * ==== * It is unsafe to assume that an address for which this function returns * false is an externally-owned account (EOA) and not a contract. * * Among others, `isContract` will return false for the following * types of addresses: * * - an externally-owned account * - a contract in construction * - an address where a contract will be created * - an address where a contract lived, but was destroyed * ==== * * [IMPORTANT] * ==== * You shouldn't rely on `isContract` to protect against flash loan attacks! * * Preventing calls from contracts is highly discouraged. It breaks composability, breaks support for smart wallets * like Gnosis Safe, and does not provide security since it can be circumvented by calling from a contract * constructor. * ==== */ function isContract(address account) internal view returns (bool) { // This method relies on extcodesize/address.code.length, which returns 0 // for contracts in construction, since the code is only stored at the end // of the constructor execution. return account.code.length > 0; } /** * @dev Replacement for Solidity's `transfer`: sends `amount` wei to * `recipient`, forwarding all available gas and reverting on errors. * * https://eips.ethereum.org/EIPS/eip-1884[EIP1884] increases the gas cost * of certain opcodes, possibly making contracts go over the 2300 gas limit * imposed by `transfer`, making them unable to receive funds via * `transfer`. {sendValue} removes this limitation. * * https://diligence.consensys.net/posts/2019/09/stop-using-soliditys-transfer-now/[Learn more]. * * IMPORTANT: because control is transferred to `recipient`, care must be * taken to not create reentrancy vulnerabilities. Consider using * {ReentrancyGuard} or the * https://solidity.readthedocs.io/en/v0.5.11/security-considerations.html#use-the-checks-effects-interactions-pattern[checks-effects-interactions pattern]. */ function sendValue(address payable recipient, uint256 amount) internal { require(address(this).balance >= amount, "Address: insufficient balance"); (bool success, ) = recipient.call{value: amount}(""); require(success, "Address: unable to send value, recipient may have reverted"); } /** * @dev Performs a Solidity function call using a low level `call`. A * plain `call` is an unsafe replacement for a function call: use this * function instead. * * If `target` reverts with a revert reason, it is bubbled up by this * function (like regular Solidity function calls). * * Returns the raw returned data. To convert to the expected return value, * use https://solidity.readthedocs.io/en/latest/units-and-global-variables.html?highlight=abi.decode#abi-encoding-and-decoding-functions[`abi.decode`]. * * Requirements: * * - `target` must be a contract. * - calling `target` with `data` must not revert. * * _Available since v3.1._ */ function functionCall(address target, bytes memory data) internal returns (bytes memory) { return functionCallWithValue(target, data, 0, "Address: low-level call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], but with * `errorMessage` as a fallback revert reason when `target` reverts. * * _Available since v3.1._ */ function functionCall( address target, bytes memory data, string memory errorMessage ) internal returns (bytes memory) { return functionCallWithValue(target, data, 0, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but also transferring `value` wei to `target`. * * Requirements: * * - the calling contract must have an ETH balance of at least `value`. * - the called Solidity function must be `payable`. * * _Available since v3.1._ */ function functionCallWithValue( address target, bytes memory data, uint256 value ) internal returns (bytes memory) { return functionCallWithValue(target, data, value, "Address: low-level call with value failed"); } /** * @dev Same as {xref-Address-functionCallWithValue-address-bytes-uint256-}[`functionCallWithValue`], but * with `errorMessage` as a fallback revert reason when `target` reverts. * * _Available since v3.1._ */ function functionCallWithValue( address target, bytes memory data, uint256 value, string memory errorMessage ) internal returns (bytes memory) { require(address(this).balance >= value, "Address: insufficient balance for call"); (bool success, bytes memory returndata) = target.call{value: value}(data); return verifyCallResultFromTarget(target, success, returndata, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but performing a static call. * * _Available since v3.3._ */ function functionStaticCall(address target, bytes memory data) internal view returns (bytes memory) { return functionStaticCall(target, data, "Address: low-level static call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`], * but performing a static call. * * _Available since v3.3._ */ function functionStaticCall( address target, bytes memory data, string memory errorMessage ) internal view returns (bytes memory) { (bool success, bytes memory returndata) = target.staticcall(data); return verifyCallResultFromTarget(target, success, returndata, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but performing a delegate call. * * _Available since v3.4._ */ function functionDelegateCall(address target, bytes memory data) internal returns (bytes memory) { return functionDelegateCall(target, data, "Address: low-level delegate call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`], * but performing a delegate call. * * _Available since v3.4._ */ function functionDelegateCall( address target, bytes memory data, string memory errorMessage ) internal returns (bytes memory) { (bool success, bytes memory returndata) = target.delegatecall(data); return verifyCallResultFromTarget(target, success, returndata, errorMessage); } /** * @dev Tool to verify that a low level call to smart-contract was successful, and revert (either by bubbling * the revert reason or using the provided one) in case of unsuccessful call or if target was not a contract. * * _Available since v4.8._ */ function verifyCallResultFromTarget( address target, bool success, bytes memory returndata, string memory errorMessage ) internal view returns (bytes memory) { if (success) { if (returndata.length == 0) { // only check isContract if the call was successful and the return data is empty // otherwise we already know that it was a contract require(isContract(target), "Address: call to non-contract"); } return returndata; } else { _revert(returndata, errorMessage); } } /** * @dev Tool to verify that a low level call was successful, and revert if it wasn't, either by bubbling the * revert reason or using the provided one. * * _Available since v4.3._ */ function verifyCallResult( bool success, bytes memory returndata, string memory errorMessage ) internal pure returns (bytes memory) { if (success) { return returndata; } else { _revert(returndata, errorMessage); } } function _revert(bytes memory returndata, string memory errorMessage) private pure { // Look for revert reason and bubble it up if present if (returndata.length > 0) { // The easiest way to bubble the revert reason is using memory via assembly /// @solidity memory-safe-assembly assembly { let returndata_size := mload(returndata) revert(add(32, returndata), returndata_size) } } else { revert(errorMessage); } } }
// SPDX-License-Identifier: MIT pragma solidity >=0.6.0; /// @title Base64 /// @author Brecht Devos - <[email protected]> /// @notice Provides functions for encoding/decoding base64 library Base64 { string internal constant TABLE_ENCODE = 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/'; bytes internal constant TABLE_DECODE = hex"0000000000000000000000000000000000000000000000000000000000000000" hex"00000000000000000000003e0000003f3435363738393a3b3c3d000000000000" hex"00000102030405060708090a0b0c0d0e0f101112131415161718190000000000" hex"001a1b1c1d1e1f202122232425262728292a2b2c2d2e2f303132330000000000"; function encode(bytes memory data) internal pure returns (string memory) { if (data.length == 0) return ''; // load the table into memory string memory table = TABLE_ENCODE; // multiply by 4/3 rounded up uint256 encodedLen = 4 * ((data.length + 2) / 3); // add some extra buffer at the end required for the writing string memory result = new string(encodedLen + 32); assembly { // set the actual output length mstore(result, encodedLen) // prepare the lookup table let tablePtr := add(table, 1) // input ptr let dataPtr := data let endPtr := add(dataPtr, mload(data)) // result ptr, jump over length let resultPtr := add(result, 32) // run over the input, 3 bytes at a time for {} lt(dataPtr, endPtr) {} { // read 3 bytes dataPtr := add(dataPtr, 3) let input := mload(dataPtr) // write 4 characters mstore8(resultPtr, mload(add(tablePtr, and(shr(18, input), 0x3F)))) resultPtr := add(resultPtr, 1) mstore8(resultPtr, mload(add(tablePtr, and(shr(12, input), 0x3F)))) resultPtr := add(resultPtr, 1) mstore8(resultPtr, mload(add(tablePtr, and(shr( 6, input), 0x3F)))) resultPtr := add(resultPtr, 1) mstore8(resultPtr, mload(add(tablePtr, and( input, 0x3F)))) resultPtr := add(resultPtr, 1) } // padding with '=' switch mod(mload(data), 3) case 1 { mstore(sub(resultPtr, 2), shl(240, 0x3d3d)) } case 2 { mstore(sub(resultPtr, 1), shl(248, 0x3d)) } } return result; } function decode(string memory _data) internal pure returns (bytes memory) { bytes memory data = bytes(_data); if (data.length == 0) return new bytes(0); require(data.length % 4 == 0, "invalid base64 decoder input"); // load the table into memory bytes memory table = TABLE_DECODE; // every 4 characters represent 3 bytes uint256 decodedLen = (data.length / 4) * 3; // add some extra buffer at the end required for the writing bytes memory result = new bytes(decodedLen + 32); assembly { // padding with '=' let lastBytes := mload(add(data, mload(data))) if eq(and(lastBytes, 0xFF), 0x3d) { decodedLen := sub(decodedLen, 1) if eq(and(lastBytes, 0xFFFF), 0x3d3d) { decodedLen := sub(decodedLen, 1) } } // set the actual output length mstore(result, decodedLen) // prepare the lookup table let tablePtr := add(table, 1) // input ptr let dataPtr := data let endPtr := add(dataPtr, mload(data)) // result ptr, jump over length let resultPtr := add(result, 32) // run over the input, 4 characters at a time for {} lt(dataPtr, endPtr) {} { // read 4 characters dataPtr := add(dataPtr, 4) let input := mload(dataPtr) // write 3 bytes let output := add( add( shl(18, and(mload(add(tablePtr, and(shr(24, input), 0xFF))), 0xFF)), shl(12, and(mload(add(tablePtr, and(shr(16, input), 0xFF))), 0xFF))), add( shl( 6, and(mload(add(tablePtr, and(shr( 8, input), 0xFF))), 0xFF)), and(mload(add(tablePtr, and( input , 0xFF))), 0xFF) ) ) mstore(resultPtr, shl(232, output)) resultPtr := add(resultPtr, 3) } } return result; } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/Context.sol) pragma solidity ^0.8.0; /** * @dev Provides information about the current execution context, including the * sender of the transaction and its data. While these are generally available * via msg.sender and msg.data, they should not be accessed in such a direct * manner, since when dealing with meta-transactions the account sending and * paying for execution may not be the actual sender (as far as an application * is concerned). * * This contract is only required for intermediate, library-like contracts. */ abstract contract Context { function _msgSender() internal view virtual returns (address) { return msg.sender; } function _msgData() internal view virtual returns (bytes calldata) { return msg.data; } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.8.0) (utils/structs/EnumerableSet.sol) // This file was procedurally generated from scripts/generate/templates/EnumerableSet.js. pragma solidity ^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. * * [WARNING] * ==== * Trying to delete such a structure from storage will likely result in data corruption, rendering the structure * unusable. * See https://github.com/ethereum/solidity/pull/11843[ethereum/solidity#11843] for more info. * * In order to clean an EnumerableSet, you can either remove all elements one by one or create a fresh instance using an * array of EnumerableSet. * ==== */ 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; if (lastIndex != toDeleteIndex) { 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] = valueIndex; // Replace lastValue's index to valueIndex } // 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) { return set._values[index]; } /** * @dev Return the entire set in an array * * WARNING: This operation will copy the entire storage to memory, which can be quite expensive. This is designed * to mostly be used by view accessors that are queried without any gas fees. Developers should keep in mind that * this function has an unbounded cost, and using it as part of a state-changing function may render the function * uncallable if the set grows to a point where copying to memory consumes too much gas to fit in a block. */ function _values(Set storage set) private view returns (bytes32[] memory) { return set._values; } // 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); } /** * @dev Return the entire set in an array * * WARNING: This operation will copy the entire storage to memory, which can be quite expensive. This is designed * to mostly be used by view accessors that are queried without any gas fees. Developers should keep in mind that * this function has an unbounded cost, and using it as part of a state-changing function may render the function * uncallable if the set grows to a point where copying to memory consumes too much gas to fit in a block. */ function values(Bytes32Set storage set) internal view returns (bytes32[] memory) { bytes32[] memory store = _values(set._inner); bytes32[] memory result; /// @solidity memory-safe-assembly assembly { result := store } return result; } // 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)))); } /** * @dev Return the entire set in an array * * WARNING: This operation will copy the entire storage to memory, which can be quite expensive. This is designed * to mostly be used by view accessors that are queried without any gas fees. Developers should keep in mind that * this function has an unbounded cost, and using it as part of a state-changing function may render the function * uncallable if the set grows to a point where copying to memory consumes too much gas to fit in a block. */ function values(AddressSet storage set) internal view returns (address[] memory) { bytes32[] memory store = _values(set._inner); address[] memory result; /// @solidity memory-safe-assembly assembly { result := store } return result; } // 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 in 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)); } /** * @dev Return the entire set in an array * * WARNING: This operation will copy the entire storage to memory, which can be quite expensive. This is designed * to mostly be used by view accessors that are queried without any gas fees. Developers should keep in mind that * this function has an unbounded cost, and using it as part of a state-changing function may render the function * uncallable if the set grows to a point where copying to memory consumes too much gas to fit in a block. */ function values(UintSet storage set) internal view returns (uint256[] memory) { bytes32[] memory store = _values(set._inner); uint256[] memory result; /// @solidity memory-safe-assembly assembly { result := store } return result; } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/introspection/ERC165.sol) pragma solidity ^0.8.0; import "./IERC165.sol"; /** * @dev Implementation of the {IERC165} interface. * * Contracts that want to implement ERC165 should inherit from this contract and override {supportsInterface} to check * for the additional interface id that will be supported. For example: * * ```solidity * function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) { * return interfaceId == type(MyInterface).interfaceId || super.supportsInterface(interfaceId); * } * ``` * * Alternatively, {ERC165Storage} provides an easier to use but more expensive implementation. */ abstract contract ERC165 is IERC165 { /** * @dev See {IERC165-supportsInterface}. */ function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) { return interfaceId == type(IERC165).interfaceId; } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.8.0) (token/ERC721/ERC721.sol) pragma solidity ^0.8.0; import "./IERC721.sol"; import "./IERC721Receiver.sol"; import "./IERC721Metadata.sol"; import "./Address.sol"; import "./Context.sol"; import "./Strings.sol"; import "./ERC165.sol"; /** * @dev Implementation of https://eips.ethereum.org/EIPS/eip-721[ERC721] Non-Fungible Token Standard, including * the Metadata extension, but not including the Enumerable extension, which is available separately as * {ERC721Enumerable}. */ contract ERC721 is Context, ERC165, IERC721, IERC721Metadata { using Address for address; using Strings for uint256; // Token name string private _name; // Token symbol string private _symbol; // Mapping from token ID to owner address mapping(uint256 => address) private _owners; // Mapping owner address to token count mapping(address => uint256) private _balances; // Mapping from token ID to approved address mapping(uint256 => address) private _tokenApprovals; // Mapping from owner to operator approvals mapping(address => mapping(address => bool)) private _operatorApprovals; /** * @dev Initializes the contract by setting a `name` and a `symbol` to the token collection. */ constructor(string memory name_, string memory symbol_) { _name = name_; _symbol = symbol_; } /** * @dev See {IERC165-supportsInterface}. */ function supportsInterface(bytes4 interfaceId) public view virtual override(ERC165, IERC165) returns (bool) { return interfaceId == type(IERC721).interfaceId || interfaceId == type(IERC721Metadata).interfaceId || super.supportsInterface(interfaceId); } /** * @dev See {IERC721-balanceOf}. */ function balanceOf(address owner) public view virtual override returns (uint256) { require(owner != address(0), "ERC721: address zero is not a valid owner"); return _balances[owner]; } /** * @dev See {IERC721-ownerOf}. */ function ownerOf(uint256 tokenId) public view virtual override returns (address) { address owner = _ownerOf(tokenId); require(owner != address(0), "ERC721: invalid token ID"); return owner; } /** * @dev See {IERC721Metadata-name}. */ function name() public view virtual override returns (string memory) { return _name; } /** * @dev See {IERC721Metadata-symbol}. */ function symbol() public view virtual override returns (string memory) { return _symbol; } /** * @dev See {IERC721Metadata-tokenURI}. */ function tokenURI(uint256 tokenId) public view virtual override returns (string memory) { _requireMinted(tokenId); string memory baseURI = _baseURI(); return bytes(baseURI).length > 0 ? string(abi.encodePacked(baseURI, tokenId.toString())) : ""; } /** * @dev Base URI for computing {tokenURI}. If set, the resulting URI for each * token will be the concatenation of the `baseURI` and the `tokenId`. Empty * by default, can be overridden in child contracts. */ function _baseURI() internal view virtual returns (string memory) { return ""; } /** * @dev See {IERC721-approve}. */ function approve(address to, uint256 tokenId) public virtual override { address owner = ERC721.ownerOf(tokenId); require(to != owner, "ERC721: approval to current owner"); require( _msgSender() == owner || isApprovedForAll(owner, _msgSender()), "ERC721: approve caller is not token owner or approved for all" ); _approve(to, tokenId); } /** * @dev See {IERC721-getApproved}. */ function getApproved(uint256 tokenId) public view virtual override returns (address) { _requireMinted(tokenId); return _tokenApprovals[tokenId]; } /** * @dev See {IERC721-setApprovalForAll}. */ function setApprovalForAll(address operator, bool approved) public virtual override { _setApprovalForAll(_msgSender(), operator, approved); } /** * @dev See {IERC721-isApprovedForAll}. */ function isApprovedForAll(address owner, address operator) public view virtual override returns (bool) { return _operatorApprovals[owner][operator]; } /** * @dev See {IERC721-transferFrom}. */ function transferFrom( address from, address to, uint256 tokenId ) public virtual override { //solhint-disable-next-line max-line-length require(_isApprovedOrOwner(_msgSender(), tokenId), "ERC721: caller is not token owner or approved"); _transfer(from, to, tokenId); } /** * @dev See {IERC721-safeTransferFrom}. */ function safeTransferFrom( address from, address to, uint256 tokenId ) public virtual override { safeTransferFrom(from, to, tokenId, ""); } /** * @dev See {IERC721-safeTransferFrom}. */ function safeTransferFrom( address from, address to, uint256 tokenId, bytes memory data ) public virtual override { require(_isApprovedOrOwner(_msgSender(), tokenId), "ERC721: caller is not token owner or approved"); _safeTransfer(from, to, tokenId, data); } /** * @dev Safely transfers `tokenId` token from `from` to `to`, checking first that contract recipients * are aware of the ERC721 protocol to prevent tokens from being forever locked. * * `data` is additional data, it has no specified format and it is sent in call to `to`. * * This internal function is equivalent to {safeTransferFrom}, and can be used to e.g. * implement alternative mechanisms to perform token transfer, such as signature-based. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must exist and be owned by `from`. * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */ function _safeTransfer( address from, address to, uint256 tokenId, bytes memory data ) internal virtual { _transfer(from, to, tokenId); require(_checkOnERC721Received(from, to, tokenId, data), "ERC721: transfer to non ERC721Receiver implementer"); } /** * @dev Returns the owner of the `tokenId`. Does NOT revert if token doesn't exist */ function _ownerOf(uint256 tokenId) internal view virtual returns (address) { return _owners[tokenId]; } /** * @dev Returns whether `tokenId` exists. * * Tokens can be managed by their owner or approved accounts via {approve} or {setApprovalForAll}. * * Tokens start existing when they are minted (`_mint`), * and stop existing when they are burned (`_burn`). */ function _exists(uint256 tokenId) internal view virtual returns (bool) { return _ownerOf(tokenId) != address(0); } /** * @dev Returns whether `spender` is allowed to manage `tokenId`. * * Requirements: * * - `tokenId` must exist. */ function _isApprovedOrOwner(address spender, uint256 tokenId) internal view virtual returns (bool) { address owner = ERC721.ownerOf(tokenId); return (spender == owner || isApprovedForAll(owner, spender) || getApproved(tokenId) == spender); } /** * @dev Safely mints `tokenId` and transfers it to `to`. * * Requirements: * * - `tokenId` must not exist. * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */ function _safeMint(address to, uint256 tokenId) internal virtual { _safeMint(to, tokenId, ""); } /** * @dev Same as {xref-ERC721-_safeMint-address-uint256-}[`_safeMint`], with an additional `data` parameter which is * forwarded in {IERC721Receiver-onERC721Received} to contract recipients. */ function _safeMint( address to, uint256 tokenId, bytes memory data ) internal virtual { _mint(to, tokenId); require( _checkOnERC721Received(address(0), to, tokenId, data), "ERC721: transfer to non ERC721Receiver implementer" ); } /** * @dev Mints `tokenId` and transfers it to `to`. * * WARNING: Usage of this method is discouraged, use {_safeMint} whenever possible * * Requirements: * * - `tokenId` must not exist. * - `to` cannot be the zero address. * * Emits a {Transfer} event. */ function _mint(address to, uint256 tokenId) internal virtual { require(to != address(0), "ERC721: mint to the zero address"); require(!_exists(tokenId), "ERC721: token already minted"); _beforeTokenTransfer(address(0), to, tokenId, 1); // Check that tokenId was not minted by `_beforeTokenTransfer` hook require(!_exists(tokenId), "ERC721: token already minted"); unchecked { // Will not overflow unless all 2**256 token ids are minted to the same owner. // Given that tokens are minted one by one, it is impossible in practice that // this ever happens. Might change if we allow batch minting. // The ERC fails to describe this case. _balances[to] += 1; } _owners[tokenId] = to; emit Transfer(address(0), to, tokenId); _afterTokenTransfer(address(0), to, tokenId, 1); } /** * @dev Destroys `tokenId`. * The approval is cleared when the token is burned. * This is an internal function that does not check if the sender is authorized to operate on the token. * * Requirements: * * - `tokenId` must exist. * * Emits a {Transfer} event. */ function _burn(uint256 tokenId) internal virtual { address owner = ERC721.ownerOf(tokenId); _beforeTokenTransfer(owner, address(0), tokenId, 1); // Update ownership in case tokenId was transferred by `_beforeTokenTransfer` hook owner = ERC721.ownerOf(tokenId); // Clear approvals delete _tokenApprovals[tokenId]; unchecked { // Cannot overflow, as that would require more tokens to be burned/transferred // out than the owner initially received through minting and transferring in. _balances[owner] -= 1; } delete _owners[tokenId]; emit Transfer(owner, address(0), tokenId); _afterTokenTransfer(owner, address(0), tokenId, 1); } /** * @dev Transfers `tokenId` from `from` to `to`. * As opposed to {transferFrom}, this imposes no restrictions on msg.sender. * * Requirements: * * - `to` cannot be the zero address. * - `tokenId` token must be owned by `from`. * * Emits a {Transfer} event. */ function _transfer( address from, address to, uint256 tokenId ) internal virtual { require(ERC721.ownerOf(tokenId) == from, "ERC721: transfer from incorrect owner"); require(to != address(0), "ERC721: transfer to the zero address"); _beforeTokenTransfer(from, to, tokenId, 1); // Check that tokenId was not transferred by `_beforeTokenTransfer` hook require(ERC721.ownerOf(tokenId) == from, "ERC721: transfer from incorrect owner"); // Clear approvals from the previous owner delete _tokenApprovals[tokenId]; unchecked { // `_balances[from]` cannot overflow for the same reason as described in `_burn`: // `from`'s balance is the number of token held, which is at least one before the current // transfer. // `_balances[to]` could overflow in the conditions described in `_mint`. That would require // all 2**256 token ids to be minted, which in practice is impossible. _balances[from] -= 1; _balances[to] += 1; } _owners[tokenId] = to; emit Transfer(from, to, tokenId); _afterTokenTransfer(from, to, tokenId, 1); } /** * @dev Approve `to` to operate on `tokenId` * * Emits an {Approval} event. */ function _approve(address to, uint256 tokenId) internal virtual { _tokenApprovals[tokenId] = to; emit Approval(ERC721.ownerOf(tokenId), to, tokenId); } /** * @dev Approve `operator` to operate on all of `owner` tokens * * Emits an {ApprovalForAll} event. */ function _setApprovalForAll( address owner, address operator, bool approved ) internal virtual { require(owner != operator, "ERC721: approve to caller"); _operatorApprovals[owner][operator] = approved; emit ApprovalForAll(owner, operator, approved); } /** * @dev Reverts if the `tokenId` has not been minted yet. */ function _requireMinted(uint256 tokenId) internal view virtual { require(_exists(tokenId), "ERC721: invalid token ID"); } /** * @dev Internal function to invoke {IERC721Receiver-onERC721Received} on a target address. * The call is not executed if the target address is not a contract. * * @param from address representing the previous owner of the given token ID * @param to target address that will receive the tokens * @param tokenId uint256 ID of the token to be transferred * @param data bytes optional data to send along with the call * @return bool whether the call correctly returned the expected magic value */ function _checkOnERC721Received( address from, address to, uint256 tokenId, bytes memory data ) private returns (bool) { if (to.isContract()) { try IERC721Receiver(to).onERC721Received(_msgSender(), from, tokenId, data) returns (bytes4 retval) { return retval == IERC721Receiver.onERC721Received.selector; } catch (bytes memory reason) { if (reason.length == 0) { revert("ERC721: transfer to non ERC721Receiver implementer"); } else { /// @solidity memory-safe-assembly assembly { revert(add(32, reason), mload(reason)) } } } } else { return true; } } /** * @dev Hook that is called before any token transfer. This includes minting and burning. If {ERC721Consecutive} is * used, the hook may be called as part of a consecutive (batch) mint, as indicated by `batchSize` greater than 1. * * Calling conditions: * * - When `from` and `to` are both non-zero, ``from``'s tokens will be transferred to `to`. * - When `from` is zero, the tokens will be minted for `to`. * - When `to` is zero, ``from``'s tokens will be burned. * - `from` and `to` are never both zero. * - `batchSize` is non-zero. * * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks]. */ function _beforeTokenTransfer( address from, address to, uint256, /* firstTokenId */ uint256 batchSize ) internal virtual { if (batchSize > 1) { if (from != address(0)) { _balances[from] -= batchSize; } if (to != address(0)) { _balances[to] += batchSize; } } } /** * @dev Hook that is called after any token transfer. This includes minting and burning. If {ERC721Consecutive} is * used, the hook may be called as part of a consecutive (batch) mint, as indicated by `batchSize` greater than 1. * * Calling conditions: * * - When `from` and `to` are both non-zero, ``from``'s tokens were transferred to `to`. * - When `from` is zero, the tokens were minted for `to`. * - When `to` is zero, ``from``'s tokens were burned. * - `from` and `to` are never both zero. * - `batchSize` is non-zero. * * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks]. */ function _afterTokenTransfer( address from, address to, uint256 firstTokenId, uint256 batchSize ) internal virtual {} }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.8.0) (token/ERC721/extensions/ERC721Enumerable.sol) pragma solidity ^0.8.0; import "./ERC721.sol"; import "./IERC721Enumerable.sol"; /** * @dev This implements an optional extension of {ERC721} defined in the EIP that adds * enumerability of all the token ids in the contract as well as all token ids owned by each * account. */ abstract contract ERC721Enumerable is ERC721, IERC721Enumerable { // Mapping from owner to list of owned token IDs mapping(address => mapping(uint256 => uint256)) private _ownedTokens; // Mapping from token ID to index of the owner tokens list mapping(uint256 => uint256) private _ownedTokensIndex; // Array with all token ids, used for enumeration uint256[] private _allTokens; // Mapping from token id to position in the allTokens array mapping(uint256 => uint256) private _allTokensIndex; /** * @dev See {IERC165-supportsInterface}. */ function supportsInterface(bytes4 interfaceId) public view virtual override(IERC165, ERC721) returns (bool) { return interfaceId == type(IERC721Enumerable).interfaceId || super.supportsInterface(interfaceId); } /** * @dev See {IERC721Enumerable-tokenOfOwnerByIndex}. */ function tokenOfOwnerByIndex(address owner, uint256 index) public view virtual override returns (uint256) { require(index < ERC721.balanceOf(owner), "ERC721Enumerable: owner index out of bounds"); return _ownedTokens[owner][index]; } /** * @dev See {IERC721Enumerable-totalSupply}. */ function totalSupply() public view virtual override returns (uint256) { return _allTokens.length; } /** * @dev See {IERC721Enumerable-tokenByIndex}. */ function tokenByIndex(uint256 index) public view virtual override returns (uint256) { require(index < ERC721Enumerable.totalSupply(), "ERC721Enumerable: global index out of bounds"); return _allTokens[index]; } /** * @dev See {ERC721-_beforeTokenTransfer}. */ function _beforeTokenTransfer( address from, address to, uint256 firstTokenId, uint256 batchSize ) internal virtual override { super._beforeTokenTransfer(from, to, firstTokenId, batchSize); if (batchSize > 1) { // Will only trigger during construction. Batch transferring (minting) is not available afterwards. revert("ERC721Enumerable: consecutive transfers not supported"); } uint256 tokenId = firstTokenId; if (from == address(0)) { _addTokenToAllTokensEnumeration(tokenId); } else if (from != to) { _removeTokenFromOwnerEnumeration(from, tokenId); } if (to == address(0)) { _removeTokenFromAllTokensEnumeration(tokenId); } else if (to != from) { _addTokenToOwnerEnumeration(to, tokenId); } } /** * @dev Private function to add a token to this extension's ownership-tracking data structures. * @param to address representing the new owner of the given token ID * @param tokenId uint256 ID of the token to be added to the tokens list of the given address */ function _addTokenToOwnerEnumeration(address to, uint256 tokenId) private { uint256 length = ERC721.balanceOf(to); _ownedTokens[to][length] = tokenId; _ownedTokensIndex[tokenId] = length; } /** * @dev Private function to add a token to this extension's token tracking data structures. * @param tokenId uint256 ID of the token to be added to the tokens list */ function _addTokenToAllTokensEnumeration(uint256 tokenId) private { _allTokensIndex[tokenId] = _allTokens.length; _allTokens.push(tokenId); } /** * @dev Private function to remove a token from this extension's ownership-tracking data structures. Note that * while the token is not assigned a new owner, the `_ownedTokensIndex` mapping is _not_ updated: this allows for * gas optimizations e.g. when performing a transfer operation (avoiding double writes). * This has O(1) time complexity, but alters the order of the _ownedTokens array. * @param from address representing the previous owner of the given token ID * @param tokenId uint256 ID of the token to be removed from the tokens list of the given address */ function _removeTokenFromOwnerEnumeration(address from, uint256 tokenId) private { // To prevent a gap in from's tokens array, we store the last token in the index of the token to delete, and // then delete the last slot (swap and pop). uint256 lastTokenIndex = ERC721.balanceOf(from) - 1; uint256 tokenIndex = _ownedTokensIndex[tokenId]; // When the token to delete is the last token, the swap operation is unnecessary if (tokenIndex != lastTokenIndex) { uint256 lastTokenId = _ownedTokens[from][lastTokenIndex]; _ownedTokens[from][tokenIndex] = lastTokenId; // Move the last token to the slot of the to-delete token _ownedTokensIndex[lastTokenId] = tokenIndex; // Update the moved token's index } // This also deletes the contents at the last position of the array delete _ownedTokensIndex[tokenId]; delete _ownedTokens[from][lastTokenIndex]; } /** * @dev Private function to remove a token from this extension's token tracking data structures. * This has O(1) time complexity, but alters the order of the _allTokens array. * @param tokenId uint256 ID of the token to be removed from the tokens list */ function _removeTokenFromAllTokensEnumeration(uint256 tokenId) private { // To prevent a gap in the tokens array, we store the last token in the index of the token to delete, and // then delete the last slot (swap and pop). uint256 lastTokenIndex = _allTokens.length - 1; uint256 tokenIndex = _allTokensIndex[tokenId]; // When the token to delete is the last token, the swap operation is unnecessary. However, since this occurs so // rarely (when the last minted token is burnt) that we still do the swap here to avoid the gas cost of adding // an 'if' statement (like in _removeTokenFromOwnerEnumeration) uint256 lastTokenId = _allTokens[lastTokenIndex]; _allTokens[tokenIndex] = lastTokenId; // Move the last token to the slot of the to-delete token _allTokensIndex[lastTokenId] = tokenIndex; // Update the moved token's index // This also deletes the contents at the last position of the array delete _allTokensIndex[tokenId]; _allTokens.pop(); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (access/IAccessControl.sol) pragma solidity ^0.8.0; /** * @dev External interface of AccessControl declared to support ERC165 detection. */ interface IAccessControl { /** * @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 {AccessControl-_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) external view returns (bool); /** * @dev Returns the admin role that controls `role`. See {grantRole} and * {revokeRole}. * * To change a role's admin, use {AccessControl-_setRoleAdmin}. */ function getRoleAdmin(bytes32 role) external view returns (bytes32); /** * @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) external; /** * @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) external; /** * @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) external; }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (access/IAccessControlEnumerable.sol) pragma solidity ^0.8.0; import "./IAccessControl.sol"; /** * @dev External interface of AccessControlEnumerable declared to support ERC165 detection. */ interface IAccessControlEnumerable is IAccessControl { /** * @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) external view returns (address); /** * @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) external view returns (uint256); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/introspection/IERC165.sol) pragma solidity ^0.8.0; /** * @dev Interface of the ERC165 standard, as defined in the * https://eips.ethereum.org/EIPS/eip-165[EIP]. * * Implementers can declare support of contract interfaces, which can then be * queried by others ({ERC165Checker}). * * For an implementation, see {ERC165}. */ interface IERC165 { /** * @dev Returns true if this contract implements the interface defined by * `interfaceId`. See the corresponding * https://eips.ethereum.org/EIPS/eip-165#how-interfaces-are-identified[EIP section] * to learn more about how these ids are created. * * This function call must use less than 30 000 gas. */ function supportsInterface(bytes4 interfaceId) external view returns (bool); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.8.0) (token/ERC721/IERC721.sol) pragma solidity ^0.8.0; import "./IERC165.sol"; /** * @dev Required interface of an ERC721 compliant contract. */ interface IERC721 is IERC165 { /** * @dev Emitted when `tokenId` token is transferred from `from` to `to`. */ event Transfer(address indexed from, address indexed to, uint256 indexed tokenId); /** * @dev Emitted when `owner` enables `approved` to manage the `tokenId` token. */ event Approval(address indexed owner, address indexed approved, uint256 indexed tokenId); /** * @dev Emitted when `owner` enables or disables (`approved`) `operator` to manage all of its assets. */ event ApprovalForAll(address indexed owner, address indexed operator, bool approved); /** * @dev Returns the number of tokens in ``owner``'s account. */ function balanceOf(address owner) external view returns (uint256 balance); /** * @dev Returns the owner of the `tokenId` token. * * Requirements: * * - `tokenId` must exist. */ function ownerOf(uint256 tokenId) external view returns (address owner); /** * @dev Safely transfers `tokenId` token from `from` to `to`. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must exist and be owned by `from`. * - If the caller is not `from`, it must be approved to move this token by either {approve} or {setApprovalForAll}. * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */ function safeTransferFrom( address from, address to, uint256 tokenId, bytes calldata data ) external; /** * @dev Safely transfers `tokenId` token from `from` to `to`, checking first that contract recipients * are aware of the ERC721 protocol to prevent tokens from being forever locked. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must exist and be owned by `from`. * - If the caller is not `from`, it must have been allowed to move this token by either {approve} or {setApprovalForAll}. * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */ function safeTransferFrom( address from, address to, uint256 tokenId ) external; /** * @dev Transfers `tokenId` token from `from` to `to`. * * WARNING: Note that the caller is responsible to confirm that the recipient is capable of receiving ERC721 * or else they may be permanently lost. Usage of {safeTransferFrom} prevents loss, though the caller must * understand this adds an external call which potentially creates a reentrancy vulnerability. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must be owned by `from`. * - If the caller is not `from`, it must be approved to move this token by either {approve} or {setApprovalForAll}. * * Emits a {Transfer} event. */ function transferFrom( address from, address to, uint256 tokenId ) external; /** * @dev Gives permission to `to` to transfer `tokenId` token to another account. * The approval is cleared when the token is transferred. * * Only a single account can be approved at a time, so approving the zero address clears previous approvals. * * Requirements: * * - The caller must own the token or be an approved operator. * - `tokenId` must exist. * * Emits an {Approval} event. */ function approve(address to, uint256 tokenId) external; /** * @dev Approve or remove `operator` as an operator for the caller. * Operators can call {transferFrom} or {safeTransferFrom} for any token owned by the caller. * * Requirements: * * - The `operator` cannot be the caller. * * Emits an {ApprovalForAll} event. */ function setApprovalForAll(address operator, bool _approved) external; /** * @dev Returns the account approved for `tokenId` token. * * Requirements: * * - `tokenId` must exist. */ function getApproved(uint256 tokenId) external view returns (address operator); /** * @dev Returns if the `operator` is allowed to manage all of the assets of `owner`. * * See {setApprovalForAll} */ function isApprovedForAll(address owner, address operator) external view returns (bool); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.5.0) (token/ERC721/extensions/IERC721Enumerable.sol) pragma solidity ^0.8.0; import "./IERC721.sol"; /** * @title ERC-721 Non-Fungible Token Standard, optional enumeration extension * @dev See https://eips.ethereum.org/EIPS/eip-721 */ interface IERC721Enumerable is IERC721 { /** * @dev Returns the total amount of tokens stored by the contract. */ function totalSupply() external view returns (uint256); /** * @dev Returns a token ID owned by `owner` at a given `index` of its token list. * Use along with {balanceOf} to enumerate all of ``owner``'s tokens. */ function tokenOfOwnerByIndex(address owner, uint256 index) external view returns (uint256); /** * @dev Returns a token ID at a given `index` of all the tokens stored by the contract. * Use along with {totalSupply} to enumerate all tokens. */ function tokenByIndex(uint256 index) external view returns (uint256); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (token/ERC721/extensions/IERC721Metadata.sol) pragma solidity ^0.8.0; import "./IERC721.sol"; /** * @title ERC-721 Non-Fungible Token Standard, optional metadata extension * @dev See https://eips.ethereum.org/EIPS/eip-721 */ interface IERC721Metadata is IERC721 { /** * @dev Returns the token collection name. */ function name() external view returns (string memory); /** * @dev Returns the token collection symbol. */ function symbol() external view returns (string memory); /** * @dev Returns the Uniform Resource Identifier (URI) for `tokenId` token. */ function tokenURI(uint256 tokenId) external view returns (string memory); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.6.0) (token/ERC721/IERC721Receiver.sol) pragma solidity ^0.8.0; /** * @title ERC721 token receiver interface * @dev Interface for any contract that wants to support safeTransfers * from ERC721 asset contracts. */ interface IERC721Receiver { /** * @dev Whenever an {IERC721} `tokenId` token is transferred to this contract via {IERC721-safeTransferFrom} * by `operator` from `from`, this function is called. * * It must return its Solidity selector to confirm the token transfer. * If any other value is returned or the interface is not implemented by the recipient, the transfer will be reverted. * * The selector can be obtained in Solidity with `IERC721Receiver.onERC721Received.selector`. */ function onERC721Received( address operator, address from, uint256 tokenId, bytes calldata data ) external returns (bytes4); }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.13; interface IOperatorFilterRegistry { function isOperatorAllowed(address registrant, address operator) external view returns (bool); function register(address registrant) external; function registerAndSubscribe(address registrant, address subscription) external; function registerAndCopyEntries(address registrant, address registrantToCopy) external; function unregister(address addr) external; function updateOperator(address registrant, address operator, bool filtered) external; function updateOperators(address registrant, address[] calldata operators, bool filtered) external; function updateCodeHash(address registrant, bytes32 codehash, bool filtered) external; function updateCodeHashes(address registrant, bytes32[] calldata codeHashes, bool filtered) external; function subscribe(address registrant, address registrantToSubscribe) external; function unsubscribe(address registrant, bool copyExistingEntries) external; function subscriptionOf(address addr) external returns (address registrant); function subscribers(address registrant) external returns (address[] memory); function subscriberAt(address registrant, uint256 index) external returns (address); function copyEntriesOf(address registrant, address registrantToCopy) external; function isOperatorFiltered(address registrant, address operator) external returns (bool); function isCodeHashOfFiltered(address registrant, address operatorWithCode) external returns (bool); function isCodeHashFiltered(address registrant, bytes32 codeHash) external returns (bool); function filteredOperators(address addr) external returns (address[] memory); function filteredCodeHashes(address addr) external returns (bytes32[] memory); function filteredOperatorAt(address registrant, uint256 index) external returns (address); function filteredCodeHashAt(address registrant, uint256 index) external returns (bytes32); function isRegistered(address addr) external returns (bool); function codeHashOf(address addr) external returns (bytes32); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.8.0) (utils/math/Math.sol) pragma solidity ^0.8.0; /** * @dev Standard math utilities missing in the Solidity language. */ library Math { enum Rounding { Down, // Toward negative infinity Up, // Toward infinity Zero // Toward zero } /** * @dev Returns the largest of two numbers. */ function max(uint256 a, uint256 b) internal pure returns (uint256) { return a > b ? a : b; } /** * @dev Returns the smallest of two numbers. */ function min(uint256 a, uint256 b) internal pure returns (uint256) { return a < b ? a : b; } /** * @dev Returns the average of two numbers. The result is rounded towards * zero. */ function average(uint256 a, uint256 b) internal pure returns (uint256) { // (a + b) / 2 can overflow. return (a & b) + (a ^ b) / 2; } /** * @dev Returns the ceiling of the division of two numbers. * * This differs from standard division with `/` in that it rounds up instead * of rounding down. */ function ceilDiv(uint256 a, uint256 b) internal pure returns (uint256) { // (a + b - 1) / b can overflow on addition, so we distribute. return a == 0 ? 0 : (a - 1) / b + 1; } /** * @notice Calculates floor(x * y / denominator) with full precision. Throws if result overflows a uint256 or denominator == 0 * @dev Original credit to Remco Bloemen under MIT license (https://xn--2-umb.com/21/muldiv) * with further edits by Uniswap Labs also under MIT license. */ function mulDiv( uint256 x, uint256 y, uint256 denominator ) internal pure returns (uint256 result) { unchecked { // 512-bit multiply [prod1 prod0] = x * y. Compute the product mod 2^256 and mod 2^256 - 1, then use // use the Chinese Remainder Theorem to reconstruct the 512 bit result. The result is stored in two 256 // variables such that product = prod1 * 2^256 + prod0. uint256 prod0; // Least significant 256 bits of the product uint256 prod1; // Most significant 256 bits of the product assembly { let mm := mulmod(x, y, not(0)) prod0 := mul(x, y) prod1 := sub(sub(mm, prod0), lt(mm, prod0)) } // Handle non-overflow cases, 256 by 256 division. if (prod1 == 0) { return prod0 / denominator; } // Make sure the result is less than 2^256. Also prevents denominator == 0. require(denominator > prod1); /////////////////////////////////////////////// // 512 by 256 division. /////////////////////////////////////////////// // Make division exact by subtracting the remainder from [prod1 prod0]. uint256 remainder; assembly { // Compute remainder using mulmod. remainder := mulmod(x, y, denominator) // Subtract 256 bit number from 512 bit number. prod1 := sub(prod1, gt(remainder, prod0)) prod0 := sub(prod0, remainder) } // Factor powers of two out of denominator and compute largest power of two divisor of denominator. Always >= 1. // See https://cs.stackexchange.com/q/138556/92363. // Does not overflow because the denominator cannot be zero at this stage in the function. uint256 twos = denominator & (~denominator + 1); assembly { // Divide denominator by twos. denominator := div(denominator, twos) // Divide [prod1 prod0] by twos. prod0 := div(prod0, twos) // Flip twos such that it is 2^256 / twos. If twos is zero, then it becomes one. twos := add(div(sub(0, twos), twos), 1) } // Shift in bits from prod1 into prod0. prod0 |= prod1 * twos; // Invert denominator mod 2^256. Now that denominator is an odd number, it has an inverse modulo 2^256 such // that denominator * inv = 1 mod 2^256. Compute the inverse by starting with a seed that is correct for // four bits. That is, denominator * inv = 1 mod 2^4. uint256 inverse = (3 * denominator) ^ 2; // Use the Newton-Raphson iteration to improve the precision. Thanks to Hensel's lifting lemma, this also works // in modular arithmetic, doubling the correct bits in each step. inverse *= 2 - denominator * inverse; // inverse mod 2^8 inverse *= 2 - denominator * inverse; // inverse mod 2^16 inverse *= 2 - denominator * inverse; // inverse mod 2^32 inverse *= 2 - denominator * inverse; // inverse mod 2^64 inverse *= 2 - denominator * inverse; // inverse mod 2^128 inverse *= 2 - denominator * inverse; // inverse mod 2^256 // Because the division is now exact we can divide by multiplying with the modular inverse of denominator. // This will give us the correct result modulo 2^256. Since the preconditions guarantee that the outcome is // less than 2^256, this is the final result. We don't need to compute the high bits of the result and prod1 // is no longer required. result = prod0 * inverse; return result; } } /** * @notice Calculates x * y / denominator with full precision, following the selected rounding direction. */ function mulDiv( uint256 x, uint256 y, uint256 denominator, Rounding rounding ) internal pure returns (uint256) { uint256 result = mulDiv(x, y, denominator); if (rounding == Rounding.Up && mulmod(x, y, denominator) > 0) { result += 1; } return result; } /** * @dev Returns the square root of a number. If the number is not a perfect square, the value is rounded down. * * Inspired by Henry S. Warren, Jr.'s "Hacker's Delight" (Chapter 11). */ function sqrt(uint256 a) internal pure returns (uint256) { if (a == 0) { return 0; } // For our first guess, we get the biggest power of 2 which is smaller than the square root of the target. // // We know that the "msb" (most significant bit) of our target number `a` is a power of 2 such that we have // `msb(a) <= a < 2*msb(a)`. This value can be written `msb(a)=2**k` with `k=log2(a)`. // // This can be rewritten `2**log2(a) <= a < 2**(log2(a) + 1)` // → `sqrt(2**k) <= sqrt(a) < sqrt(2**(k+1))` // → `2**(k/2) <= sqrt(a) < 2**((k+1)/2) <= 2**(k/2 + 1)` // // Consequently, `2**(log2(a) / 2)` is a good first approximation of `sqrt(a)` with at least 1 correct bit. uint256 result = 1 << (log2(a) >> 1); // At this point `result` is an estimation with one bit of precision. We know the true value is a uint128, // since it is the square root of a uint256. Newton's method converges quadratically (precision doubles at // every iteration). We thus need at most 7 iteration to turn our partial result with one bit of precision // into the expected uint128 result. unchecked { result = (result + a / result) >> 1; result = (result + a / result) >> 1; result = (result + a / result) >> 1; result = (result + a / result) >> 1; result = (result + a / result) >> 1; result = (result + a / result) >> 1; result = (result + a / result) >> 1; return min(result, a / result); } } /** * @notice Calculates sqrt(a), following the selected rounding direction. */ function sqrt(uint256 a, Rounding rounding) internal pure returns (uint256) { unchecked { uint256 result = sqrt(a); return result + (rounding == Rounding.Up && result * result < a ? 1 : 0); } } /** * @dev Return the log in base 2, rounded down, of a positive value. * Returns 0 if given 0. */ function log2(uint256 value) internal pure returns (uint256) { uint256 result = 0; unchecked { if (value >> 128 > 0) { value >>= 128; result += 128; } if (value >> 64 > 0) { value >>= 64; result += 64; } if (value >> 32 > 0) { value >>= 32; result += 32; } if (value >> 16 > 0) { value >>= 16; result += 16; } if (value >> 8 > 0) { value >>= 8; result += 8; } if (value >> 4 > 0) { value >>= 4; result += 4; } if (value >> 2 > 0) { value >>= 2; result += 2; } if (value >> 1 > 0) { result += 1; } } return result; } /** * @dev Return the log in base 2, following the selected rounding direction, of a positive value. * Returns 0 if given 0. */ function log2(uint256 value, Rounding rounding) internal pure returns (uint256) { unchecked { uint256 result = log2(value); return result + (rounding == Rounding.Up && 1 << result < value ? 1 : 0); } } /** * @dev Return the log in base 10, rounded down, of a positive value. * Returns 0 if given 0. */ function log10(uint256 value) internal pure returns (uint256) { uint256 result = 0; unchecked { if (value >= 10**64) { value /= 10**64; result += 64; } if (value >= 10**32) { value /= 10**32; result += 32; } if (value >= 10**16) { value /= 10**16; result += 16; } if (value >= 10**8) { value /= 10**8; result += 8; } if (value >= 10**4) { value /= 10**4; result += 4; } if (value >= 10**2) { value /= 10**2; result += 2; } if (value >= 10**1) { result += 1; } } return result; } /** * @dev Return the log in base 10, following the selected rounding direction, of a positive value. * Returns 0 if given 0. */ function log10(uint256 value, Rounding rounding) internal pure returns (uint256) { unchecked { uint256 result = log10(value); return result + (rounding == Rounding.Up && 10**result < value ? 1 : 0); } } /** * @dev Return the log in base 256, rounded down, of a positive value. * Returns 0 if given 0. * * Adding one to the result gives the number of pairs of hex symbols needed to represent `value` as a hex string. */ function log256(uint256 value) internal pure returns (uint256) { uint256 result = 0; unchecked { if (value >> 128 > 0) { value >>= 128; result += 16; } if (value >> 64 > 0) { value >>= 64; result += 8; } if (value >> 32 > 0) { value >>= 32; result += 4; } if (value >> 16 > 0) { value >>= 16; result += 2; } if (value >> 8 > 0) { result += 1; } } return result; } /** * @dev Return the log in base 10, following the selected rounding direction, of a positive value. * Returns 0 if given 0. */ function log256(uint256 value, Rounding rounding) internal pure returns (uint256) { unchecked { uint256 result = log256(value); return result + (rounding == Rounding.Up && 1 << (result * 8) < value ? 1 : 0); } } }
// SPDX-License-Identifier: MIT /** ### ## ## #### ## ## ### ## ## ### ## ## ### ### ## ## ## ## #### ## ## #### #### ## ## ## ## ## ## ## ## ## ### ## ## ## ######### ## #### ## ## ## ######### ## ## ## ### ## ## ## ## ## ## ## ## ## #### ## ## ## ## */ pragma solidity ^0.8.15; pragma abicoder v2; interface OnlyBotsData { function getBuffer() external pure returns (bytes memory); function getBatchSize() external pure returns (uint256); function getPrice() external pure returns (uint256); } struct DataContract { OnlyBotsData dataContract; uint256 size; uint256 price; string cid; } interface OnlyBotsDeserializer { function deserialize( DataContract memory _contract, uint256 _batchIndex, uint128 _botId ) external pure returns (string memory); }
// SPDX-License-Identifier: MIT /** ### ## ## #### ## ## ### ## ## ### ## ## ### ### ## ## ## ## #### ## ## #### #### ## ## ## ## ## ## ## ## ## ### ## ## ## ######### ## #### ## ## ## ######### ## ## ## ### ## ## ## ## ## ## ## ## ## #### ## ## ## ## */ pragma solidity ^0.8.15; pragma abicoder v2; import "./Strings.sol"; import "./OnlyBotsData.sol"; contract OnlyBotsDeserializerV1 is OnlyBotsDeserializer { error InvalidLength(uint256 length); error InvalidCharacter(uint256 bits); error InvalidDirection(uint256 direction); error InvalidEndOffset(uint256 offset, uint256 expected, uint256 length); uint256 public constant COLOR_COUNT_BITWIDTH = 4; uint256 public constant COLOR_RGB = 8; uint256 public constant BOT_LENGTH = 16; uint256 public constant NAME_COUNT = 5; uint256 public constant NAME_CHAR = 6; uint256 public constant ANCHOR_XZ_SIGN = 1; uint256 public constant ANCHOR_X = 4; uint256 public constant ANCHOR_Y = 3; uint256 public constant ANCHOR_Z = 4; uint256 public constant MATERIAL_COUNT = 2; uint256 public constant MATERIAL_PRESET = 8; uint256 public constant LAYER_VOXEL_LIST_COUNT_BITWIDTH = 4; uint256 public constant LAYER_COUNT = 5; uint256 public constant LAYER_TYPE = 3; uint256 public constant LAYER_MATERIAL = 2; uint256 public constant LAYER_VOXEL_ORIGIN = 4; uint256 public constant LAYER_VOXEL_FORMAT = 1; uint256 public constant LAYER_VOXEL_FIELD_LENGTH = 4; uint256 public constant LAYER_VOXEL_FIELD_FLAG = 1; uint256 public constant LAYER_VOXEL_LIST_FOURBIT = 1; uint256 public constant LAYER_VOXEL_LIST_DIRECTION = 2; uint256 public constant DIRECTION_XYZ = 0; uint256 public constant DIRECTION_YZ = 1; uint256 public constant DIRECTION_XZ = 2; uint256 public constant DIRECTION_XY = 3; struct Color { uint256 r; uint256 g; uint256 b; } struct Material { Color color; uint256 preset; } struct Coordinate3D { uint256 x; uint256 y; uint256 z; } struct Layer { uint256 _type; uint256 material; Coordinate3D[] voxels; } struct Anchor { bool x_sign; uint256 x; uint256 y; bool z_sign; uint256 z; } struct Bot { string name; Anchor anchor; Material[] materials; Layer[] layers; } struct Data { bytes buffer; uint256 offset; // in BITS } // NOTE: _botId is 1-indexed function deserialize( DataContract memory _contract, uint256, /* _batchIndex */ uint128 _botId ) public pure override returns (string memory) { Data memory data = Data(_contract.dataContract.getBuffer(), 0); uint256 colorCountBitwidth = readUint256Bits(data, COLOR_COUNT_BITWIDTH); uint256 colorCount = readUint256Bits(data, colorCountBitwidth) + 1; Color[] memory colors = new Color[](colorCount); for (uint256 i = 0; i < colorCount; i++) { colors[i] = Color( readUint256Bits(data, COLOR_RGB), readUint256Bits(data, COLOR_RGB), readUint256Bits(data, COLOR_RGB) ); } // i = 1 is not a typo for (uint256 i = 1; i < _botId; i++) { uint256 skipLength = readUint256Bits(data, BOT_LENGTH); data.offset += skipLength; } uint256 botLength = readUint256Bits(data, BOT_LENGTH); uint256 endOffset = data.offset + botLength; uint256 nameLength = readUint256Bits(data, NAME_COUNT) + 1; bytes memory name = new bytes(nameLength); for (uint256 i = 0; i < nameLength; i++) { name[i] = mapBitsToAscii(readUint256Bits(data, NAME_CHAR)); } Anchor memory anchor = Anchor( readUint256Bits(data, ANCHOR_XZ_SIGN) == 0 ? false : true, readUint256Bits(data, ANCHOR_X), readUint256Bits(data, ANCHOR_Y), readUint256Bits(data, ANCHOR_XZ_SIGN) == 0 ? false : true, readUint256Bits(data, ANCHOR_Z) ); uint256 materialCount = readUint256Bits(data, MATERIAL_COUNT) + 1; Material[] memory materials = new Material[](materialCount); for (uint256 i = 0; i < materialCount; i++) { uint256 colorIndex = readUint256Bits(data, colorCountBitwidth); materials[i] = Material(colors[colorIndex], readUint256Bits(data, MATERIAL_PRESET)); } uint256 layerListCountBitwidth = readUint256Bits(data, LAYER_VOXEL_LIST_COUNT_BITWIDTH); uint256 layerCount = readUint256Bits(data, LAYER_COUNT) + 1; Layer[] memory layers = new Layer[](layerCount); for (uint256 i = 0; i < layerCount; i++) { layers[i] = deserializeLayer(data, layerListCountBitwidth); } if (data.offset != endOffset) { revert InvalidEndOffset(data.offset, endOffset, botLength); } return serialize(Bot(string(name), anchor, materials, layers)); } function deserializeLayer(Data memory data, uint256 _layerListCountBitwidth) private pure returns (Layer memory) { uint256 layerType = readUint256Bits(data, LAYER_TYPE); uint256 materialIndex = readUint256Bits(data, LAYER_MATERIAL); Coordinate3D memory origin = Coordinate3D( readUint256Bits(data, LAYER_VOXEL_ORIGIN), readUint256Bits(data, LAYER_VOXEL_ORIGIN), readUint256Bits(data, LAYER_VOXEL_ORIGIN) ); uint256 format = readUint256Bits(data, LAYER_VOXEL_FORMAT); if (format > 0) { uint256 coordinateBitSize = readUint256Bits(data, LAYER_VOXEL_LIST_FOURBIT) > 0 ? 4 : 3; uint256 direction = readUint256Bits(data, LAYER_VOXEL_LIST_DIRECTION); uint256 listLength = readUint256Bits(data, _layerListCountBitwidth) + 1; Coordinate3D[] memory voxels = new Coordinate3D[](listLength); if (direction == DIRECTION_XYZ) { for (uint256 j = 0; j < listLength; j++) { voxels[j] = Coordinate3D( origin.x + readUint256Bits(data, coordinateBitSize), origin.y + readUint256Bits(data, coordinateBitSize), origin.z + readUint256Bits(data, coordinateBitSize) ); } } else if (direction == DIRECTION_XY) { for (uint256 j = 0; j < listLength; j++) { voxels[j] = Coordinate3D( origin.x + readUint256Bits(data, coordinateBitSize), origin.y + readUint256Bits(data, coordinateBitSize), origin.z ); } } else if (direction == DIRECTION_XZ) { for (uint256 j = 0; j < listLength; j++) { voxels[j] = Coordinate3D( origin.x + readUint256Bits(data, coordinateBitSize), origin.y, origin.z + readUint256Bits(data, coordinateBitSize) ); } } else if (direction == DIRECTION_YZ) { for (uint256 j = 0; j < listLength; j++) { voxels[j] = Coordinate3D( origin.x, origin.y + readUint256Bits(data, coordinateBitSize), origin.z + readUint256Bits(data, coordinateBitSize) ); } } else { revert InvalidDirection(direction); } return Layer(layerType, materialIndex, voxels); } else { Coordinate3D memory length = Coordinate3D( readUint256Bits(data, LAYER_VOXEL_FIELD_LENGTH) + 1, readUint256Bits(data, LAYER_VOXEL_FIELD_LENGTH) + 1, readUint256Bits(data, LAYER_VOXEL_FIELD_LENGTH) + 1 ); bool[][][] memory field = new bool[][][](length.x); uint256 count = 0; for (uint256 x = 0; x < length.x; x++) { field[x] = new bool[][](length.y); for (uint256 y = 0; y < length.y; y++) { field[x][y] = new bool[](length.z); for (uint256 z = 0; z < length.z; z++) { field[x][y][z] = readUint256Bits(data, LAYER_VOXEL_FIELD_FLAG) > 0; if (field[x][y][z]) { count++; } } } } uint256 insert = 0; Coordinate3D[] memory voxels = new Coordinate3D[](count); for (uint256 x = 0; x < length.x; x++) { for (uint256 y = 0; y < length.y; y++) { for (uint256 z = 0; z < length.z; z++) { if (field[x][y][z]) { voxels[insert++] = Coordinate3D(origin.x + x, origin.y + y, origin.z + z); } } } } return Layer(layerType, materialIndex, voxels); } } function serialize(Bot memory _bot) private pure returns (string memory) { string memory materials = ""; for (uint256 i = 0; i < _bot.materials.length; i++) { Material memory material = _bot.materials[i]; materials = string.concat( materials, '{"color":[', Strings.toString(material.color.r), ",", Strings.toString(material.color.g), ",", Strings.toString(material.color.b), '],"preset":', Strings.toString(material.preset), "}", i < _bot.materials.length - 1 ? "," : "" ); } string memory layers = ""; for (uint256 i = 0; i < _bot.layers.length; i++) { Layer memory layer = _bot.layers[i]; layers = string.concat( layers, '{"type":', Strings.toString(layer._type), ',"material":', Strings.toString(layer.material), ',"voxels":[' ); for (uint256 j = 0; j < layer.voxels.length; j++) { Coordinate3D memory voxel = layer.voxels[j]; layers = string.concat( layers, "[", Strings.toString(voxel.x), ",", Strings.toString(voxel.y), ",", Strings.toString(voxel.z), "]", j < layer.voxels.length - 1 ? "," : "" ); } layers = string.concat(layers, "]}", i < _bot.layers.length - 1 ? "," : ""); } return string.concat( "{", '"name":"', _bot.name, '","anchor":', string.concat( "{", '"x":', _bot.anchor.x_sign ? "" : "-", Strings.toString(_bot.anchor.x), ',"y":', Strings.toString(_bot.anchor.y), ',"z":', _bot.anchor.z_sign ? "" : "-", Strings.toString(_bot.anchor.z), "}" ), ',"materials":[', materials, '],"layers":[', layers, "]}" ); } function readUint256Bits(Data memory _data, uint256 length) private pure returns (uint256) { if (length < 1 || length > 256) { revert InvalidLength(length); } uint256 offsetBytes = _data.offset == 0 ? 0 : _data.offset / 8; uint8 offsetBits = uint8(_data.offset % 8); uint256 totalBits = length + offsetBits; uint256 bytesToRead = (totalBits / 8) + (totalBits % 8 != 0 ? 1 : 0); uint256 rightShift = (bytesToRead * 8) - (length + offsetBits); bytes1 on = 0xFF; uint256 result = 0; for (uint256 i = 0; i < bytesToRead; i++) { bytes1 value = _data.buffer[offsetBytes + i]; if (i == 0) { // If this is the first byte, clear bits before the offset bytes1 mask = on >> offsetBits; value = value & mask; } if (i == (bytesToRead - 1)) { // If this is the last byte, shift value to the end of the byte value = value >> rightShift; } uint256 converted = uint256(uint8(value)); if (i != (bytesToRead - 1)) { converted = converted << (((bytesToRead - 1 - i) * 8) - rightShift); } result += converted; } _data.offset += length; return result; } function mapBitsToAscii(uint256 _bits) private pure returns (bytes1) { // 0 to 58 => 32 to 90 if (_bits >= 0 && _bits <= 58) { return bytes1(uint8(_bits + 32)); } // 59 => 92 if (_bits == 59) { return bytes1(uint8(92)); } // 60 => 94 if (_bits == 60) { return bytes1(uint8(94)); } // 61 => 95 if (_bits == 61) { return bytes1(uint8(95)); } // 62 => 124 if (_bits == 62) { return bytes1(uint8(124)); } // 63 => 126 if (_bits == 63) { return bytes1(uint8(126)); } revert InvalidCharacter(_bits); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.7.0) (access/Ownable.sol) pragma solidity ^0.8.0; import "./Context.sol"; /** * @dev Contract module which provides a basic access control mechanism, where * there is an account (an owner) that can be granted exclusive access to * specific functions. * * By default, the owner account will be the one that deploys the contract. This * can later be changed with {transferOwnership}. * * This module is used through inheritance. It will make available the modifier * `onlyOwner`, which can be applied to your functions to restrict their use to * the owner. */ abstract contract Ownable is Context { address private _owner; event OwnershipTransferred(address indexed previousOwner, address indexed newOwner); /** * @dev Initializes the contract setting the deployer as the initial owner. */ constructor() { _transferOwnership(_msgSender()); } /** * @dev Throws if called by any account other than the owner. */ modifier onlyOwner() { _checkOwner(); _; } /** * @dev Returns the address of the current owner. */ function owner() public view virtual returns (address) { return _owner; } /** * @dev Throws if the sender is not the owner. */ function _checkOwner() internal view virtual { require(owner() == _msgSender(), "Ownable: caller is not the owner"); } /** * @dev Leaves the contract without owner. It will not be possible to call * `onlyOwner` functions anymore. Can only be called by the current owner. * * NOTE: Renouncing ownership will leave the contract without an owner, * thereby removing any functionality that is only available to the owner. */ function renounceOwnership() public virtual onlyOwner { _transferOwnership(address(0)); } /** * @dev Transfers ownership of the contract to a new account (`newOwner`). * Can only be called by the current owner. */ function transferOwnership(address newOwner) public virtual onlyOwner { require(newOwner != address(0), "Ownable: new owner is the zero address"); _transferOwnership(newOwner); } /** * @dev Transfers ownership of the contract to a new account (`newOwner`). * Internal function without access restriction. */ function _transferOwnership(address newOwner) internal virtual { address oldOwner = _owner; _owner = newOwner; emit OwnershipTransferred(oldOwner, newOwner); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.7.0) (security/Pausable.sol) pragma solidity ^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() { _paused = false; } /** * @dev Modifier to make a function callable only when the contract is not paused. * * Requirements: * * - The contract must not be paused. */ modifier whenNotPaused() { _requireNotPaused(); _; } /** * @dev Modifier to make a function callable only when the contract is paused. * * Requirements: * * - The contract must be paused. */ modifier whenPaused() { _requirePaused(); _; } /** * @dev Returns true if the contract is paused, and false otherwise. */ function paused() public view virtual returns (bool) { return _paused; } /** * @dev Throws if the contract is paused. */ function _requireNotPaused() internal view virtual { require(!paused(), "Pausable: paused"); } /** * @dev Throws if the contract is not paused. */ function _requirePaused() internal view virtual { 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()); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.8.0) (utils/math/SafeCast.sol) // This file was procedurally generated from scripts/generate/templates/SafeCast.js. pragma solidity ^0.8.0; /** * @dev Wrappers over Solidity's uintXX/intXX casting operators with added overflow * checks. * * Downcasting from uint256/int256 in Solidity does not revert on overflow. This can * easily result in undesired exploitation or bugs, since developers usually * assume that overflows raise errors. `SafeCast` restores this intuition by * reverting the transaction when such 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. * * Can be combined with {SafeMath} and {SignedSafeMath} to extend it to smaller types, by performing * all math on `uint256` and `int256` and then downcasting. */ library SafeCast { /** * @dev Returns the downcasted uint248 from uint256, reverting on * overflow (when the input is greater than largest uint248). * * Counterpart to Solidity's `uint248` operator. * * Requirements: * * - input must fit into 248 bits * * _Available since v4.7._ */ function toUint248(uint256 value) internal pure returns (uint248) { require(value <= type(uint248).max, "SafeCast: value doesn't fit in 248 bits"); return uint248(value); } /** * @dev Returns the downcasted uint240 from uint256, reverting on * overflow (when the input is greater than largest uint240). * * Counterpart to Solidity's `uint240` operator. * * Requirements: * * - input must fit into 240 bits * * _Available since v4.7._ */ function toUint240(uint256 value) internal pure returns (uint240) { require(value <= type(uint240).max, "SafeCast: value doesn't fit in 240 bits"); return uint240(value); } /** * @dev Returns the downcasted uint232 from uint256, reverting on * overflow (when the input is greater than largest uint232). * * Counterpart to Solidity's `uint232` operator. * * Requirements: * * - input must fit into 232 bits * * _Available since v4.7._ */ function toUint232(uint256 value) internal pure returns (uint232) { require(value <= type(uint232).max, "SafeCast: value doesn't fit in 232 bits"); return uint232(value); } /** * @dev Returns the downcasted uint224 from uint256, reverting on * overflow (when the input is greater than largest uint224). * * Counterpart to Solidity's `uint224` operator. * * Requirements: * * - input must fit into 224 bits * * _Available since v4.2._ */ function toUint224(uint256 value) internal pure returns (uint224) { require(value <= type(uint224).max, "SafeCast: value doesn't fit in 224 bits"); return uint224(value); } /** * @dev Returns the downcasted uint216 from uint256, reverting on * overflow (when the input is greater than largest uint216). * * Counterpart to Solidity's `uint216` operator. * * Requirements: * * - input must fit into 216 bits * * _Available since v4.7._ */ function toUint216(uint256 value) internal pure returns (uint216) { require(value <= type(uint216).max, "SafeCast: value doesn't fit in 216 bits"); return uint216(value); } /** * @dev Returns the downcasted uint208 from uint256, reverting on * overflow (when the input is greater than largest uint208). * * Counterpart to Solidity's `uint208` operator. * * Requirements: * * - input must fit into 208 bits * * _Available since v4.7._ */ function toUint208(uint256 value) internal pure returns (uint208) { require(value <= type(uint208).max, "SafeCast: value doesn't fit in 208 bits"); return uint208(value); } /** * @dev Returns the downcasted uint200 from uint256, reverting on * overflow (when the input is greater than largest uint200). * * Counterpart to Solidity's `uint200` operator. * * Requirements: * * - input must fit into 200 bits * * _Available since v4.7._ */ function toUint200(uint256 value) internal pure returns (uint200) { require(value <= type(uint200).max, "SafeCast: value doesn't fit in 200 bits"); return uint200(value); } /** * @dev Returns the downcasted uint192 from uint256, reverting on * overflow (when the input is greater than largest uint192). * * Counterpart to Solidity's `uint192` operator. * * Requirements: * * - input must fit into 192 bits * * _Available since v4.7._ */ function toUint192(uint256 value) internal pure returns (uint192) { require(value <= type(uint192).max, "SafeCast: value doesn't fit in 192 bits"); return uint192(value); } /** * @dev Returns the downcasted uint184 from uint256, reverting on * overflow (when the input is greater than largest uint184). * * Counterpart to Solidity's `uint184` operator. * * Requirements: * * - input must fit into 184 bits * * _Available since v4.7._ */ function toUint184(uint256 value) internal pure returns (uint184) { require(value <= type(uint184).max, "SafeCast: value doesn't fit in 184 bits"); return uint184(value); } /** * @dev Returns the downcasted uint176 from uint256, reverting on * overflow (when the input is greater than largest uint176). * * Counterpart to Solidity's `uint176` operator. * * Requirements: * * - input must fit into 176 bits * * _Available since v4.7._ */ function toUint176(uint256 value) internal pure returns (uint176) { require(value <= type(uint176).max, "SafeCast: value doesn't fit in 176 bits"); return uint176(value); } /** * @dev Returns the downcasted uint168 from uint256, reverting on * overflow (when the input is greater than largest uint168). * * Counterpart to Solidity's `uint168` operator. * * Requirements: * * - input must fit into 168 bits * * _Available since v4.7._ */ function toUint168(uint256 value) internal pure returns (uint168) { require(value <= type(uint168).max, "SafeCast: value doesn't fit in 168 bits"); return uint168(value); } /** * @dev Returns the downcasted uint160 from uint256, reverting on * overflow (when the input is greater than largest uint160). * * Counterpart to Solidity's `uint160` operator. * * Requirements: * * - input must fit into 160 bits * * _Available since v4.7._ */ function toUint160(uint256 value) internal pure returns (uint160) { require(value <= type(uint160).max, "SafeCast: value doesn't fit in 160 bits"); return uint160(value); } /** * @dev Returns the downcasted uint152 from uint256, reverting on * overflow (when the input is greater than largest uint152). * * Counterpart to Solidity's `uint152` operator. * * Requirements: * * - input must fit into 152 bits * * _Available since v4.7._ */ function toUint152(uint256 value) internal pure returns (uint152) { require(value <= type(uint152).max, "SafeCast: value doesn't fit in 152 bits"); return uint152(value); } /** * @dev Returns the downcasted uint144 from uint256, reverting on * overflow (when the input is greater than largest uint144). * * Counterpart to Solidity's `uint144` operator. * * Requirements: * * - input must fit into 144 bits * * _Available since v4.7._ */ function toUint144(uint256 value) internal pure returns (uint144) { require(value <= type(uint144).max, "SafeCast: value doesn't fit in 144 bits"); return uint144(value); } /** * @dev Returns the downcasted uint136 from uint256, reverting on * overflow (when the input is greater than largest uint136). * * Counterpart to Solidity's `uint136` operator. * * Requirements: * * - input must fit into 136 bits * * _Available since v4.7._ */ function toUint136(uint256 value) internal pure returns (uint136) { require(value <= type(uint136).max, "SafeCast: value doesn't fit in 136 bits"); return uint136(value); } /** * @dev Returns the downcasted uint128 from uint256, reverting on * overflow (when the input is greater than largest uint128). * * Counterpart to Solidity's `uint128` operator. * * Requirements: * * - input must fit into 128 bits * * _Available since v2.5._ */ function toUint128(uint256 value) internal pure returns (uint128) { require(value <= type(uint128).max, "SafeCast: value doesn't fit in 128 bits"); return uint128(value); } /** * @dev Returns the downcasted uint120 from uint256, reverting on * overflow (when the input is greater than largest uint120). * * Counterpart to Solidity's `uint120` operator. * * Requirements: * * - input must fit into 120 bits * * _Available since v4.7._ */ function toUint120(uint256 value) internal pure returns (uint120) { require(value <= type(uint120).max, "SafeCast: value doesn't fit in 120 bits"); return uint120(value); } /** * @dev Returns the downcasted uint112 from uint256, reverting on * overflow (when the input is greater than largest uint112). * * Counterpart to Solidity's `uint112` operator. * * Requirements: * * - input must fit into 112 bits * * _Available since v4.7._ */ function toUint112(uint256 value) internal pure returns (uint112) { require(value <= type(uint112).max, "SafeCast: value doesn't fit in 112 bits"); return uint112(value); } /** * @dev Returns the downcasted uint104 from uint256, reverting on * overflow (when the input is greater than largest uint104). * * Counterpart to Solidity's `uint104` operator. * * Requirements: * * - input must fit into 104 bits * * _Available since v4.7._ */ function toUint104(uint256 value) internal pure returns (uint104) { require(value <= type(uint104).max, "SafeCast: value doesn't fit in 104 bits"); return uint104(value); } /** * @dev Returns the downcasted uint96 from uint256, reverting on * overflow (when the input is greater than largest uint96). * * Counterpart to Solidity's `uint96` operator. * * Requirements: * * - input must fit into 96 bits * * _Available since v4.2._ */ function toUint96(uint256 value) internal pure returns (uint96) { require(value <= type(uint96).max, "SafeCast: value doesn't fit in 96 bits"); return uint96(value); } /** * @dev Returns the downcasted uint88 from uint256, reverting on * overflow (when the input is greater than largest uint88). * * Counterpart to Solidity's `uint88` operator. * * Requirements: * * - input must fit into 88 bits * * _Available since v4.7._ */ function toUint88(uint256 value) internal pure returns (uint88) { require(value <= type(uint88).max, "SafeCast: value doesn't fit in 88 bits"); return uint88(value); } /** * @dev Returns the downcasted uint80 from uint256, reverting on * overflow (when the input is greater than largest uint80). * * Counterpart to Solidity's `uint80` operator. * * Requirements: * * - input must fit into 80 bits * * _Available since v4.7._ */ function toUint80(uint256 value) internal pure returns (uint80) { require(value <= type(uint80).max, "SafeCast: value doesn't fit in 80 bits"); return uint80(value); } /** * @dev Returns the downcasted uint72 from uint256, reverting on * overflow (when the input is greater than largest uint72). * * Counterpart to Solidity's `uint72` operator. * * Requirements: * * - input must fit into 72 bits * * _Available since v4.7._ */ function toUint72(uint256 value) internal pure returns (uint72) { require(value <= type(uint72).max, "SafeCast: value doesn't fit in 72 bits"); return uint72(value); } /** * @dev Returns the downcasted uint64 from uint256, reverting on * overflow (when the input is greater than largest uint64). * * Counterpart to Solidity's `uint64` operator. * * Requirements: * * - input must fit into 64 bits * * _Available since v2.5._ */ function toUint64(uint256 value) internal pure returns (uint64) { require(value <= type(uint64).max, "SafeCast: value doesn't fit in 64 bits"); return uint64(value); } /** * @dev Returns the downcasted uint56 from uint256, reverting on * overflow (when the input is greater than largest uint56). * * Counterpart to Solidity's `uint56` operator. * * Requirements: * * - input must fit into 56 bits * * _Available since v4.7._ */ function toUint56(uint256 value) internal pure returns (uint56) { require(value <= type(uint56).max, "SafeCast: value doesn't fit in 56 bits"); return uint56(value); } /** * @dev Returns the downcasted uint48 from uint256, reverting on * overflow (when the input is greater than largest uint48). * * Counterpart to Solidity's `uint48` operator. * * Requirements: * * - input must fit into 48 bits * * _Available since v4.7._ */ function toUint48(uint256 value) internal pure returns (uint48) { require(value <= type(uint48).max, "SafeCast: value doesn't fit in 48 bits"); return uint48(value); } /** * @dev Returns the downcasted uint40 from uint256, reverting on * overflow (when the input is greater than largest uint40). * * Counterpart to Solidity's `uint40` operator. * * Requirements: * * - input must fit into 40 bits * * _Available since v4.7._ */ function toUint40(uint256 value) internal pure returns (uint40) { require(value <= type(uint40).max, "SafeCast: value doesn't fit in 40 bits"); return uint40(value); } /** * @dev Returns the downcasted uint32 from uint256, reverting on * overflow (when the input is greater than largest uint32). * * Counterpart to Solidity's `uint32` operator. * * Requirements: * * - input must fit into 32 bits * * _Available since v2.5._ */ function toUint32(uint256 value) internal pure returns (uint32) { require(value <= type(uint32).max, "SafeCast: value doesn't fit in 32 bits"); return uint32(value); } /** * @dev Returns the downcasted uint24 from uint256, reverting on * overflow (when the input is greater than largest uint24). * * Counterpart to Solidity's `uint24` operator. * * Requirements: * * - input must fit into 24 bits * * _Available since v4.7._ */ function toUint24(uint256 value) internal pure returns (uint24) { require(value <= type(uint24).max, "SafeCast: value doesn't fit in 24 bits"); return uint24(value); } /** * @dev Returns the downcasted uint16 from uint256, reverting on * overflow (when the input is greater than largest uint16). * * Counterpart to Solidity's `uint16` operator. * * Requirements: * * - input must fit into 16 bits * * _Available since v2.5._ */ function toUint16(uint256 value) internal pure returns (uint16) { require(value <= type(uint16).max, "SafeCast: value doesn't fit in 16 bits"); return uint16(value); } /** * @dev Returns the downcasted uint8 from uint256, reverting on * overflow (when the input is greater than largest uint8). * * Counterpart to Solidity's `uint8` operator. * * Requirements: * * - input must fit into 8 bits * * _Available since v2.5._ */ function toUint8(uint256 value) internal pure returns (uint8) { require(value <= type(uint8).max, "SafeCast: value doesn't fit in 8 bits"); return uint8(value); } /** * @dev Converts a signed int256 into an unsigned uint256. * * Requirements: * * - input must be greater than or equal to 0. * * _Available since v3.0._ */ function toUint256(int256 value) internal pure returns (uint256) { require(value >= 0, "SafeCast: value must be positive"); return uint256(value); } /** * @dev Returns the downcasted int248 from int256, reverting on * overflow (when the input is less than smallest int248 or * greater than largest int248). * * Counterpart to Solidity's `int248` operator. * * Requirements: * * - input must fit into 248 bits * * _Available since v4.7._ */ function toInt248(int256 value) internal pure returns (int248 downcasted) { downcasted = int248(value); require(downcasted == value, "SafeCast: value doesn't fit in 248 bits"); } /** * @dev Returns the downcasted int240 from int256, reverting on * overflow (when the input is less than smallest int240 or * greater than largest int240). * * Counterpart to Solidity's `int240` operator. * * Requirements: * * - input must fit into 240 bits * * _Available since v4.7._ */ function toInt240(int256 value) internal pure returns (int240 downcasted) { downcasted = int240(value); require(downcasted == value, "SafeCast: value doesn't fit in 240 bits"); } /** * @dev Returns the downcasted int232 from int256, reverting on * overflow (when the input is less than smallest int232 or * greater than largest int232). * * Counterpart to Solidity's `int232` operator. * * Requirements: * * - input must fit into 232 bits * * _Available since v4.7._ */ function toInt232(int256 value) internal pure returns (int232 downcasted) { downcasted = int232(value); require(downcasted == value, "SafeCast: value doesn't fit in 232 bits"); } /** * @dev Returns the downcasted int224 from int256, reverting on * overflow (when the input is less than smallest int224 or * greater than largest int224). * * Counterpart to Solidity's `int224` operator. * * Requirements: * * - input must fit into 224 bits * * _Available since v4.7._ */ function toInt224(int256 value) internal pure returns (int224 downcasted) { downcasted = int224(value); require(downcasted == value, "SafeCast: value doesn't fit in 224 bits"); } /** * @dev Returns the downcasted int216 from int256, reverting on * overflow (when the input is less than smallest int216 or * greater than largest int216). * * Counterpart to Solidity's `int216` operator. * * Requirements: * * - input must fit into 216 bits * * _Available since v4.7._ */ function toInt216(int256 value) internal pure returns (int216 downcasted) { downcasted = int216(value); require(downcasted == value, "SafeCast: value doesn't fit in 216 bits"); } /** * @dev Returns the downcasted int208 from int256, reverting on * overflow (when the input is less than smallest int208 or * greater than largest int208). * * Counterpart to Solidity's `int208` operator. * * Requirements: * * - input must fit into 208 bits * * _Available since v4.7._ */ function toInt208(int256 value) internal pure returns (int208 downcasted) { downcasted = int208(value); require(downcasted == value, "SafeCast: value doesn't fit in 208 bits"); } /** * @dev Returns the downcasted int200 from int256, reverting on * overflow (when the input is less than smallest int200 or * greater than largest int200). * * Counterpart to Solidity's `int200` operator. * * Requirements: * * - input must fit into 200 bits * * _Available since v4.7._ */ function toInt200(int256 value) internal pure returns (int200 downcasted) { downcasted = int200(value); require(downcasted == value, "SafeCast: value doesn't fit in 200 bits"); } /** * @dev Returns the downcasted int192 from int256, reverting on * overflow (when the input is less than smallest int192 or * greater than largest int192). * * Counterpart to Solidity's `int192` operator. * * Requirements: * * - input must fit into 192 bits * * _Available since v4.7._ */ function toInt192(int256 value) internal pure returns (int192 downcasted) { downcasted = int192(value); require(downcasted == value, "SafeCast: value doesn't fit in 192 bits"); } /** * @dev Returns the downcasted int184 from int256, reverting on * overflow (when the input is less than smallest int184 or * greater than largest int184). * * Counterpart to Solidity's `int184` operator. * * Requirements: * * - input must fit into 184 bits * * _Available since v4.7._ */ function toInt184(int256 value) internal pure returns (int184 downcasted) { downcasted = int184(value); require(downcasted == value, "SafeCast: value doesn't fit in 184 bits"); } /** * @dev Returns the downcasted int176 from int256, reverting on * overflow (when the input is less than smallest int176 or * greater than largest int176). * * Counterpart to Solidity's `int176` operator. * * Requirements: * * - input must fit into 176 bits * * _Available since v4.7._ */ function toInt176(int256 value) internal pure returns (int176 downcasted) { downcasted = int176(value); require(downcasted == value, "SafeCast: value doesn't fit in 176 bits"); } /** * @dev Returns the downcasted int168 from int256, reverting on * overflow (when the input is less than smallest int168 or * greater than largest int168). * * Counterpart to Solidity's `int168` operator. * * Requirements: * * - input must fit into 168 bits * * _Available since v4.7._ */ function toInt168(int256 value) internal pure returns (int168 downcasted) { downcasted = int168(value); require(downcasted == value, "SafeCast: value doesn't fit in 168 bits"); } /** * @dev Returns the downcasted int160 from int256, reverting on * overflow (when the input is less than smallest int160 or * greater than largest int160). * * Counterpart to Solidity's `int160` operator. * * Requirements: * * - input must fit into 160 bits * * _Available since v4.7._ */ function toInt160(int256 value) internal pure returns (int160 downcasted) { downcasted = int160(value); require(downcasted == value, "SafeCast: value doesn't fit in 160 bits"); } /** * @dev Returns the downcasted int152 from int256, reverting on * overflow (when the input is less than smallest int152 or * greater than largest int152). * * Counterpart to Solidity's `int152` operator. * * Requirements: * * - input must fit into 152 bits * * _Available since v4.7._ */ function toInt152(int256 value) internal pure returns (int152 downcasted) { downcasted = int152(value); require(downcasted == value, "SafeCast: value doesn't fit in 152 bits"); } /** * @dev Returns the downcasted int144 from int256, reverting on * overflow (when the input is less than smallest int144 or * greater than largest int144). * * Counterpart to Solidity's `int144` operator. * * Requirements: * * - input must fit into 144 bits * * _Available since v4.7._ */ function toInt144(int256 value) internal pure returns (int144 downcasted) { downcasted = int144(value); require(downcasted == value, "SafeCast: value doesn't fit in 144 bits"); } /** * @dev Returns the downcasted int136 from int256, reverting on * overflow (when the input is less than smallest int136 or * greater than largest int136). * * Counterpart to Solidity's `int136` operator. * * Requirements: * * - input must fit into 136 bits * * _Available since v4.7._ */ function toInt136(int256 value) internal pure returns (int136 downcasted) { downcasted = int136(value); require(downcasted == value, "SafeCast: value doesn't fit in 136 bits"); } /** * @dev Returns the downcasted int128 from int256, reverting on * overflow (when the input is less than smallest int128 or * greater than largest int128). * * Counterpart to Solidity's `int128` operator. * * Requirements: * * - input must fit into 128 bits * * _Available since v3.1._ */ function toInt128(int256 value) internal pure returns (int128 downcasted) { downcasted = int128(value); require(downcasted == value, "SafeCast: value doesn't fit in 128 bits"); } /** * @dev Returns the downcasted int120 from int256, reverting on * overflow (when the input is less than smallest int120 or * greater than largest int120). * * Counterpart to Solidity's `int120` operator. * * Requirements: * * - input must fit into 120 bits * * _Available since v4.7._ */ function toInt120(int256 value) internal pure returns (int120 downcasted) { downcasted = int120(value); require(downcasted == value, "SafeCast: value doesn't fit in 120 bits"); } /** * @dev Returns the downcasted int112 from int256, reverting on * overflow (when the input is less than smallest int112 or * greater than largest int112). * * Counterpart to Solidity's `int112` operator. * * Requirements: * * - input must fit into 112 bits * * _Available since v4.7._ */ function toInt112(int256 value) internal pure returns (int112 downcasted) { downcasted = int112(value); require(downcasted == value, "SafeCast: value doesn't fit in 112 bits"); } /** * @dev Returns the downcasted int104 from int256, reverting on * overflow (when the input is less than smallest int104 or * greater than largest int104). * * Counterpart to Solidity's `int104` operator. * * Requirements: * * - input must fit into 104 bits * * _Available since v4.7._ */ function toInt104(int256 value) internal pure returns (int104 downcasted) { downcasted = int104(value); require(downcasted == value, "SafeCast: value doesn't fit in 104 bits"); } /** * @dev Returns the downcasted int96 from int256, reverting on * overflow (when the input is less than smallest int96 or * greater than largest int96). * * Counterpart to Solidity's `int96` operator. * * Requirements: * * - input must fit into 96 bits * * _Available since v4.7._ */ function toInt96(int256 value) internal pure returns (int96 downcasted) { downcasted = int96(value); require(downcasted == value, "SafeCast: value doesn't fit in 96 bits"); } /** * @dev Returns the downcasted int88 from int256, reverting on * overflow (when the input is less than smallest int88 or * greater than largest int88). * * Counterpart to Solidity's `int88` operator. * * Requirements: * * - input must fit into 88 bits * * _Available since v4.7._ */ function toInt88(int256 value) internal pure returns (int88 downcasted) { downcasted = int88(value); require(downcasted == value, "SafeCast: value doesn't fit in 88 bits"); } /** * @dev Returns the downcasted int80 from int256, reverting on * overflow (when the input is less than smallest int80 or * greater than largest int80). * * Counterpart to Solidity's `int80` operator. * * Requirements: * * - input must fit into 80 bits * * _Available since v4.7._ */ function toInt80(int256 value) internal pure returns (int80 downcasted) { downcasted = int80(value); require(downcasted == value, "SafeCast: value doesn't fit in 80 bits"); } /** * @dev Returns the downcasted int72 from int256, reverting on * overflow (when the input is less than smallest int72 or * greater than largest int72). * * Counterpart to Solidity's `int72` operator. * * Requirements: * * - input must fit into 72 bits * * _Available since v4.7._ */ function toInt72(int256 value) internal pure returns (int72 downcasted) { downcasted = int72(value); require(downcasted == value, "SafeCast: value doesn't fit in 72 bits"); } /** * @dev Returns the downcasted int64 from int256, reverting on * overflow (when the input is less than smallest int64 or * greater than largest int64). * * Counterpart to Solidity's `int64` operator. * * Requirements: * * - input must fit into 64 bits * * _Available since v3.1._ */ function toInt64(int256 value) internal pure returns (int64 downcasted) { downcasted = int64(value); require(downcasted == value, "SafeCast: value doesn't fit in 64 bits"); } /** * @dev Returns the downcasted int56 from int256, reverting on * overflow (when the input is less than smallest int56 or * greater than largest int56). * * Counterpart to Solidity's `int56` operator. * * Requirements: * * - input must fit into 56 bits * * _Available since v4.7._ */ function toInt56(int256 value) internal pure returns (int56 downcasted) { downcasted = int56(value); require(downcasted == value, "SafeCast: value doesn't fit in 56 bits"); } /** * @dev Returns the downcasted int48 from int256, reverting on * overflow (when the input is less than smallest int48 or * greater than largest int48). * * Counterpart to Solidity's `int48` operator. * * Requirements: * * - input must fit into 48 bits * * _Available since v4.7._ */ function toInt48(int256 value) internal pure returns (int48 downcasted) { downcasted = int48(value); require(downcasted == value, "SafeCast: value doesn't fit in 48 bits"); } /** * @dev Returns the downcasted int40 from int256, reverting on * overflow (when the input is less than smallest int40 or * greater than largest int40). * * Counterpart to Solidity's `int40` operator. * * Requirements: * * - input must fit into 40 bits * * _Available since v4.7._ */ function toInt40(int256 value) internal pure returns (int40 downcasted) { downcasted = int40(value); require(downcasted == value, "SafeCast: value doesn't fit in 40 bits"); } /** * @dev Returns the downcasted int32 from int256, reverting on * overflow (when the input is less than smallest int32 or * greater than largest int32). * * Counterpart to Solidity's `int32` operator. * * Requirements: * * - input must fit into 32 bits * * _Available since v3.1._ */ function toInt32(int256 value) internal pure returns (int32 downcasted) { downcasted = int32(value); require(downcasted == value, "SafeCast: value doesn't fit in 32 bits"); } /** * @dev Returns the downcasted int24 from int256, reverting on * overflow (when the input is less than smallest int24 or * greater than largest int24). * * Counterpart to Solidity's `int24` operator. * * Requirements: * * - input must fit into 24 bits * * _Available since v4.7._ */ function toInt24(int256 value) internal pure returns (int24 downcasted) { downcasted = int24(value); require(downcasted == value, "SafeCast: value doesn't fit in 24 bits"); } /** * @dev Returns the downcasted int16 from int256, reverting on * overflow (when the input is less than smallest int16 or * greater than largest int16). * * Counterpart to Solidity's `int16` operator. * * Requirements: * * - input must fit into 16 bits * * _Available since v3.1._ */ function toInt16(int256 value) internal pure returns (int16 downcasted) { downcasted = int16(value); require(downcasted == value, "SafeCast: value doesn't fit in 16 bits"); } /** * @dev Returns the downcasted int8 from int256, reverting on * overflow (when the input is less than smallest int8 or * greater than largest int8). * * Counterpart to Solidity's `int8` operator. * * Requirements: * * - input must fit into 8 bits * * _Available since v3.1._ */ function toInt8(int256 value) internal pure returns (int8 downcasted) { downcasted = int8(value); require(downcasted == value, "SafeCast: value doesn't fit in 8 bits"); } /** * @dev Converts an unsigned uint256 into a signed int256. * * Requirements: * * - input must be less than or equal to maxInt256. * * _Available since v3.0._ */ function toInt256(uint256 value) internal pure returns (int256) { // Note: Unsafe cast below is okay because `type(int256).max` is guaranteed to be positive require(value <= uint256(type(int256).max), "SafeCast: value doesn't fit in an int256"); return int256(value); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.8.0) (utils/Strings.sol) pragma solidity ^0.8.0; import "./Math.sol"; /** * @dev String operations. */ library Strings { bytes16 private constant _SYMBOLS = "0123456789abcdef"; uint8 private constant _ADDRESS_LENGTH = 20; /** * @dev Converts a `uint256` to its ASCII `string` decimal representation. */ function toString(uint256 value) internal pure returns (string memory) { unchecked { uint256 length = Math.log10(value) + 1; string memory buffer = new string(length); uint256 ptr; /// @solidity memory-safe-assembly assembly { ptr := add(buffer, add(32, length)) } while (true) { ptr--; /// @solidity memory-safe-assembly assembly { mstore8(ptr, byte(mod(value, 10), _SYMBOLS)) } value /= 10; if (value == 0) break; } return buffer; } } /** * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation. */ function toHexString(uint256 value) internal pure returns (string memory) { unchecked { return toHexString(value, Math.log256(value) + 1); } } /** * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation with fixed length. */ function toHexString(uint256 value, uint256 length) internal pure returns (string memory) { bytes memory buffer = new bytes(2 * length + 2); buffer[0] = "0"; buffer[1] = "x"; for (uint256 i = 2 * length + 1; i > 1; --i) { buffer[i] = _SYMBOLS[value & 0xf]; value >>= 4; } require(value == 0, "Strings: hex length insufficient"); return string(buffer); } /** * @dev Converts an `address` with fixed length of 20 bytes to its not checksummed ASCII `string` hexadecimal representation. */ function toHexString(address addr) internal pure returns (string memory) { return toHexString(uint256(uint160(addr)), _ADDRESS_LENGTH); } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.13; import {IOperatorFilterRegistry} from "./IOperatorFilterRegistry.sol"; /** * @title UpdatableOperatorFilterer * @notice Abstract contract whose constructor automatically registers and optionally subscribes to or copies another * registrant's entries in the OperatorFilterRegistry. This contract allows the Owner to update the * OperatorFilterRegistry address via updateOperatorFilterRegistryAddress, including to the zero address, * which will bypass registry checks. * Note that OpenSea will still disable creator fee enforcement if filtered operators begin fulfilling orders * on-chain, eg, if the registry is revoked or bypassed. * @dev This smart contract is meant to be inherited by token contracts so they can use the following: * - `onlyAllowedOperator` modifier for `transferFrom` and `safeTransferFrom` methods. * - `onlyAllowedOperatorApproval` modifier for `approve` and `setApprovalForAll` methods. */ abstract contract UpdatableOperatorFilterer { error OperatorNotAllowed(address operator); error OnlyOwner(); IOperatorFilterRegistry public operatorFilterRegistry; constructor(address _registry, address subscriptionOrRegistrantToCopy, bool subscribe) { IOperatorFilterRegistry registry = IOperatorFilterRegistry(_registry); operatorFilterRegistry = registry; // If an inheriting token contract is deployed to a network without the registry deployed, the modifier // will not revert, but the contract will need to be registered with the registry once it is deployed in // order for the modifier to filter addresses. if (address(registry).code.length > 0) { if (subscribe) { registry.registerAndSubscribe(address(this), subscriptionOrRegistrantToCopy); } else { if (subscriptionOrRegistrantToCopy != address(0)) { registry.registerAndCopyEntries(address(this), subscriptionOrRegistrantToCopy); } else { registry.register(address(this)); } } } } modifier onlyAllowedOperator(address from) virtual { // Allow spending tokens from addresses with balance // Note that this still allows listings and marketplaces with escrow to transfer tokens if transferred // from an EOA. if (from != msg.sender) { _checkFilterOperator(msg.sender); } _; } modifier onlyAllowedOperatorApproval(address operator) virtual { _checkFilterOperator(operator); _; } /** * @notice Update the address that the contract will make OperatorFilter checks against. When set to the zero * address, checks will be bypassed. OnlyOwner. */ function updateOperatorFilterRegistryAddress(address newRegistry) public virtual { if (msg.sender != owner()) { revert OnlyOwner(); } operatorFilterRegistry = IOperatorFilterRegistry(newRegistry); } /** * @dev assume the contract has an owner, but leave specific Ownable implementation up to inheriting contract */ function owner() public view virtual returns (address); function _checkFilterOperator(address operator) internal view virtual { IOperatorFilterRegistry registry = operatorFilterRegistry; // Check registry code length to facilitate testing in environments without a deployed registry. if (address(registry) != address(0) && address(registry).code.length > 0) { if (!registry.isOperatorAllowed(address(this), operator)) { revert OperatorNotAllowed(operator); } } } }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"inputs":[{"internalType":"contract OnlyBotsDeserializer","name":"_deserializer","type":"address"},{"internalType":"bool","name":"_capMint","type":"bool"}],"stateMutability":"nonpayable","type":"constructor"},{"inputs":[{"internalType":"address","name":"addr","type":"address"}],"name":"AddressAlreadyMinted","type":"error"},{"inputs":[{"internalType":"address","name":"addr","type":"address"}],"name":"AddressNotAuthorized","type":"error"},{"inputs":[{"internalType":"uint256","name":"supply","type":"uint256"},{"internalType":"uint256","name":"batchOffset","type":"uint256"},{"internalType":"uint256","name":"lastBatchSize","type":"uint256"}],"name":"BatchHasRemainingSupply","type":"error"},{"inputs":[{"internalType":"uint256","name":"batchId","type":"uint256"}],"name":"BatchNotAirdropEligible","type":"error"},{"inputs":[{"internalType":"uint256","name":"botId","type":"uint256"},{"internalType":"uint256","name":"expectedTokenId","type":"uint256"},{"internalType":"uint256","name":"unexpectedTokenId","type":"uint256"}],"name":"BrokenBotAssignment","type":"error"},{"inputs":[{"internalType":"uint256","name":"givenBatchSize","type":"uint256"}],"name":"ConsecutiveNotSupported","type":"error"},{"inputs":[{"internalType":"uint256","name":"given","type":"uint256"},{"internalType":"uint256","name":"currentLength","type":"uint256"}],"name":"InvalidBatchIndex","type":"error"},{"inputs":[{"internalType":"uint256","name":"botId","type":"uint256"}],"name":"InvalidBotId","type":"error"},{"inputs":[{"internalType":"address","name":"sender","type":"address"},{"internalType":"address","name":"from","type":"address"}],"name":"InvalidBurnAddress","type":"error"},{"inputs":[{"internalType":"address","name":"sender","type":"address"},{"internalType":"address","name":"to","type":"address"}],"name":"InvalidMintAddress","type":"error"},{"inputs":[{"internalType":"uint256","name":"required","type":"uint256"},{"internalType":"uint256","name":"given","type":"uint256"}],"name":"InvalidMintValue","type":"error"},{"inputs":[{"internalType":"uint256","name":"max","type":"uint256"}],"name":"InvalidRNGMax","type":"error"},{"inputs":[{"internalType":"uint256","name":"random","type":"uint256"}],"name":"InvalidRNGRoll","type":"error"},{"inputs":[{"internalType":"address","name":"authSigner","type":"address"},{"internalType":"address","name":"recoveredSigner","type":"address"}],"name":"InvalidSignature","type":"error"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"InvalidTokenId","type":"error"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"MissingBotAssignment","type":"error"},{"inputs":[],"name":"NoDataContracts","type":"error"},{"inputs":[],"name":"OnlyOwner","type":"error"},{"inputs":[{"internalType":"address","name":"operator","type":"address"}],"name":"OperatorNotAllowed","type":"error"},{"inputs":[{"internalType":"uint128","name":"batchIndedx","type":"uint128"},{"internalType":"uint128","name":"relativeBotId","type":"uint128"}],"name":"UnknownBot","type":"error"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"approved","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":false,"internalType":"bool","name":"approved","type":"bool"}],"name":"ApprovalForAll","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"recipient","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"},{"indexed":true,"internalType":"uint256","name":"relativeBotId","type":"uint256"}],"name":"Mint","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"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":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Transfer","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"account","type":"address"}],"name":"Unpaused","type":"event"},{"stateMutability":"nonpayable","type":"fallback"},{"inputs":[],"name":"ADMIN_ROLE","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"DEFAULT_ADMIN_ROLE","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"WITHDRAW_ROLE","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_airdropRecipient","type":"address"}],"name":"airdrop","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"contract OnlyBotsData","name":"_onlyBotsAddress","type":"address"},{"internalType":"uint256","name":"_expectedIndex","type":"uint256"},{"internalType":"string","name":"_cid","type":"string"}],"name":"appendDataContract","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"operator","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"approve","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"authSigner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint8","name":"_v","type":"uint8"},{"internalType":"bytes32","name":"_r","type":"bytes32"},{"internalType":"bytes32","name":"_s","type":"bytes32"}],"name":"authorize","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint8","name":"_v","type":"uint8"},{"internalType":"bytes32","name":"_r","type":"bytes32"},{"internalType":"bytes32","name":"_s","type":"bytes32"}],"name":"authorizeAndMint","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"dataContracts","outputs":[{"internalType":"contract OnlyBotsData","name":"dataContract","type":"address"},{"internalType":"uint256","name":"size","type":"uint256"},{"internalType":"uint256","name":"price","type":"uint256"},{"internalType":"string","name":"cid","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"deserializer","outputs":[{"internalType":"contract OnlyBotsDeserializer","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint128","name":"_batchIndex","type":"uint128"},{"internalType":"uint128","name":"_relativeBotId","type":"uint128"}],"name":"findTokenId","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getApproved","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_tokenId","type":"uint256"}],"name":"getBotData","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getCurrentBatchInfo","outputs":[{"internalType":"uint256","name":"","type":"uint256"},{"internalType":"uint256","name":"","type":"uint256"},{"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":[],"name":"getWalletAuthorization","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"},{"internalType":"address","name":"account","type":"address"}],"name":"grantRole","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"},{"internalType":"address","name":"account","type":"address"}],"name":"hasRole","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"operator","type":"address"}],"name":"isApprovedForAll","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"mint","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"openSeaContractURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"operatorFilterRegistry","outputs":[{"internalType":"contract IOperatorFilterRegistry","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"ownerOf","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"paused","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"},{"internalType":"address","name":"account","type":"address"}],"name":"renounceRole","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"},{"internalType":"address","name":"account","type":"address"}],"name":"revokeRole","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_tokenId","type":"uint256"},{"internalType":"uint256","name":"_salePrice","type":"uint256"}],"name":"royaltyInfo","outputs":[{"internalType":"address","name":"receiver","type":"address"},{"internalType":"uint256","name":"royaltyAmount","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"royaltyRecipient","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","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":"address","name":"_signer","type":"address"}],"name":"setAuthSigner","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_index","type":"uint256"},{"internalType":"string","name":"_cid","type":"string"}],"name":"setDataContractCID","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"contract OnlyBotsDeserializer","name":"_deserializer","type":"address"}],"name":"setDeserializer","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"_uri","type":"string"}],"name":"setOpenSeaURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bool","name":"_value","type":"bool"}],"name":"setPaused","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_royaltyRecipient","type":"address"}],"name":"setRoyaltyRecipient","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"statuses","outputs":[{"internalType":"bool","name":"authorized","type":"bool"},{"internalType":"uint128","name":"lastBatchMinted","type":"uint128"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes4","name":"_interfaceId","type":"bytes4"}],"name":"supportsInterface","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"index","type":"uint256"}],"name":"tokenByIndex","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"tokenIdToBotId","outputs":[{"internalType":"uint128","name":"batchIndex","type":"uint128"},{"internalType":"uint128","name":"relativeBotId","type":"uint128"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"uint256","name":"index","type":"uint256"}],"name":"tokenOfOwnerByIndex","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_tokenId","type":"uint256"}],"name":"tokenURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"transferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newRegistry","type":"address"}],"name":"updateOperatorFilterRegistryAddress","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"withdraw","outputs":[],"stateMutability":"payable","type":"function"},{"stateMutability":"payable","type":"receive"}]
Contract Creation Code
60806040523480156200001157600080fd5b506040516200527a3803806200527a83398101604081905262000034916200044a565b6040805180820182526008808252674f6e6c79626f747360c01b6020808401919091528351808501909452908352674f4e4c59424f545360c01b90830152600080546001600160a01b0319166daaeb6d7670e522a718067333cd4e908117909155909190733cc6cdda760b79bafa08df41ecfa224f810dceb6600182803b15620001ca5781156200012957604051633e9f1edf60e11b81523060048201526001600160a01b038481166024830152821690637d3e3dbe906044015b600060405180830381600087803b1580156200010a57600080fd5b505af11580156200011f573d6000803e3d6000fd5b50505050620001ca565b6001600160a01b038316156200016e5760405163a0af290360e01b81523060048201526001600160a01b03848116602483015282169063a0af290390604401620000ef565b604051632210724360e11b81523060048201526001600160a01b03821690634420e48690602401600060405180830381600087803b158015620001b057600080fd5b505af1158015620001c5573d6000803e3d6000fd5b505050505b50505050620001e8620001e26200026060201b60201c565b62000264565b6004805460ff1916905560056200020083826200053c565b5060066200020f82826200053c565b506200022a91506000905062000224620002b6565b620002d2565b60128054911515600160a01b026001600160a81b03199092166001600160a01b0390931692909217179055600060175562000608565b3390565b600180546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b6000620002cd620002e260201b620021001760201c565b905090565b620002de8282620002f1565b5050565b6001546001600160a01b031690565b6200030882826200033460201b6200210f1760201c565b60008281526003602090815260409091206200032f918390620021b1620003d8821b17901c565b505050565b60008281526002602090815260408083206001600160a01b038516845290915290205460ff16620002de5760008281526002602090815260408083206001600160a01b03851684529091529020805460ff19166001179055620003943390565b6001600160a01b0316816001600160a01b0316837f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d60405160405180910390a45050565b6000620003ef836001600160a01b038416620003f8565b90505b92915050565b60008181526001830160205260408120546200044157508154600181810184556000848152602080822090930184905584548482528286019093526040902091909155620003f2565b506000620003f2565b600080604083850312156200045e57600080fd5b82516001600160a01b03811681146200047657600080fd5b602084015190925080151581146200048d57600080fd5b809150509250929050565b634e487b7160e01b600052604160045260246000fd5b600181811c90821680620004c357607f821691505b602082108103620004e457634e487b7160e01b600052602260045260246000fd5b50919050565b601f8211156200032f57600081815260208120601f850160051c81016020861015620005135750805b601f850160051c820191505b8181101562000534578281556001016200051f565b505050505050565b81516001600160401b0381111562000558576200055862000498565b6200057081620005698454620004ae565b84620004ea565b602080601f831160018114620005a857600084156200058f5750858301515b600019600386901b1c1916600185901b17855562000534565b600085815260208120601f198616915b82811015620005d957888601518255948401946001909101908401620005b8565b5085821015620005f85787850151600019600388901b60f8161c191681555b5050505050600190811b01905550565b614c6280620006186000396000f3fe60806040526004361061036f5760003560e01c806381e90f68116101c6578063c25d0f2a116100f7578063df666d5611610095578063ee1805b41161006f578063ee1805b414610ab0578063f2fde38b14610ae0578063f69c9af414610b00578063f7b2c7b114610b2057610376565b8063df666d5614610a13578063e02023a114610a33578063e985e9c514610a6757610376565b8063ca15c873116100d1578063ca15c8731461099e578063d26264ef146109be578063d547741f146109d3578063d6ad51b9146109f357610376565b8063c25d0f2a1461093e578063c5106a6d1461095e578063c87b56dd1461097e57610376565b8063abb35f9f11610164578063b42348ac1161013e578063b42348ac146108be578063b7c4e22c146108de578063b88d4fde146108fe578063b8d1e5321461091e57610376565b8063abb35f9f1461081f578063af11c1f01461083f578063b0ccc31e1461089e57610376565b806391d14854116101a057806391d148541461078f57806395d89b41146107d5578063a217fddf146107ea578063a22cb465146107ff57610376565b806381e90f681461073a5780638da5cb5b1461075a5780639010d07c1461076f57610376565b80632f745c59116102a05780634f6ccce71161023e57806370a082311161021857806370a08231146106a1578063715018a6146106c157806372674eb6146106d657806375b238fc1461070657610376565b80634f6ccce7146106495780635c975abb146106695780636352211e1461068157610376565b80633ccfd60b1161027a5780633ccfd60b146105e157806341e42f30146105e957806342842e0e146106095780634c00de821461062957610376565b80632f745c591461058e57806331e77210146105ae57806336568abe146105c157610376565b806318160ddd1161030d578063248a9ca3116102e7578063248a9ca3146104da5780632a55205a1461050a5780632d47adeb146105495780632f2ff15d1461056e57610376565b806318160ddd1461047b57806321860a051461049a57806323b872dd146104ba57610376565b8063081812fc11610349578063081812fc146103fb578063095ea7b3146104335780631249c58b1461045357806316c38b3c1461045b57610376565b806301ffc9a7146103845780630532bca1146103b957806306fdde03146103d957610376565b3661037657005b34801561038257600080fd5b005b34801561039057600080fd5b506103a461039f36600461409f565b610b81565b60405190151581526020015b60405180910390f35b3480156103c557600080fd5b506103826103d43660046140d1565b610bc5565b3480156103e557600080fd5b506103ee610c12565b6040516103b0919061413e565b34801561040757600080fd5b5061041b610416366004614151565b610ca4565b6040516001600160a01b0390911681526020016103b0565b34801561043f57600080fd5b5061038261044e36600461416a565b610ccb565b610382610ce4565b34801561046757600080fd5b506103826104763660046141a4565b610e66565b34801561048757600080fd5b50600d545b6040519081526020016103b0565b3480156104a657600080fd5b506103826104b53660046140d1565b610eaa565b3480156104c657600080fd5b506103826104d53660046141c1565b61103d565b3480156104e657600080fd5b5061048c6104f5366004614151565b60009081526002602052604090206001015490565b34801561051657600080fd5b5061052a610525366004614202565b611068565b604080516001600160a01b0390931683526020830191909152016103b0565b34801561055557600080fd5b50336000908152600f602052604090205460ff166103a4565b34801561057a57600080fd5b50610382610589366004614224565b611093565b34801561059a57600080fd5b5061048c6105a936600461416a565b6110b8565b6103826105bc366004614254565b611160565b3480156105cd57600080fd5b506103826105dc366004614224565b61117b565b610382611203565b3480156105f557600080fd5b506103826106043660046140d1565b611259565b34801561061557600080fd5b506103826106243660046141c1565b6112a6565b34801561063557600080fd5b5060155461041b906001600160a01b031681565b34801561065557600080fd5b5061048c610664366004614151565b6112cb565b34801561067557600080fd5b5060045460ff166103a4565b34801561068d57600080fd5b5061041b61069c366004614151565b61136f565b3480156106ad57600080fd5b5061048c6106bc3660046140d1565b6113d4565b3480156106cd57600080fd5b5061038261146e565b3480156106e257600080fd5b506106eb611482565b604080519384526020840192909252908201526060016103b0565b34801561071257600080fd5b5061048c7fa49807205ce4d355092ef5a8a18f56e8913cf4a201fbe287825b095693c2177581565b34801561074657600080fd5b506103826107553660046142d1565b61151f565b34801561076657600080fd5b5061041b6115b3565b34801561077b57600080fd5b5061041b61078a366004614202565b6115cc565b34801561079b57600080fd5b506103a46107aa366004614224565b60009182526002602090815260408084206001600160a01b0393909316845291905290205460ff1690565b3480156107e157600080fd5b506103ee6115eb565b3480156107f657600080fd5b5061048c600081565b34801561080b57600080fd5b5061038261081a36600461431d565b6115fa565b34801561082b57600080fd5b5061048c61083a366004614367565b61160e565b34801561084b57600080fd5b5061087f61085a3660046140d1565b600f6020526000908152604090205460ff81169061010090046001600160801b031682565b6040805192151583526001600160801b039091166020830152016103b0565b3480156108aa57600080fd5b5060005461041b906001600160a01b031681565b3480156108ca57600080fd5b5060135461041b906001600160a01b031681565b3480156108ea57600080fd5b506103826108f936600461439a565b61172d565b34801561090a57600080fd5b5061038261091936600461444b565b611764565b34801561092a57600080fd5b506103826109393660046140d1565b61178a565b34801561094a57600080fd5b506103ee610959366004614151565b6117fe565b34801561096a57600080fd5b506103826109793660046140d1565b61193f565b34801561098a57600080fd5b506103ee610999366004614151565b61198c565b3480156109aa57600080fd5b5061048c6109b9366004614151565b611aa0565b3480156109ca57600080fd5b506103ee611ab7565b3480156109df57600080fd5b506103826109ee366004614224565b611b45565b3480156109ff57600080fd5b5060125461041b906001600160a01b031681565b348015610a1f57600080fd5b50610382610a2e366004614254565b611b6a565b348015610a3f57600080fd5b5061048c7f5d8e12c39142ff96d79d04d15d1ba1269e4fe57bb9d26f43523628b34ba108ec81565b348015610a7357600080fd5b506103a4610a823660046144fa565b6001600160a01b039182166000908152600a6020908152604080832093909416825291909152205460ff1690565b348015610abc57600080fd5b50610ad0610acb366004614151565b611cfb565b6040516103b09493929190614528565b348015610aec57600080fd5b50610382610afb3660046140d1565b611dcd565b348015610b0c57600080fd5b50610382610b1b366004614560565b611e5d565b348015610b2c57600080fd5b50610b61610b3b366004614151565b6011602052600090815260409020546001600160801b0380821691600160801b90041682565b604080516001600160801b039384168152929091166020830152016103b0565b60006001600160e01b031982167f2a55205a000000000000000000000000000000000000000000000000000000001480610bbf5750610bbf826121c6565b92915050565b7fa49807205ce4d355092ef5a8a18f56e8913cf4a201fbe287825b095693c21775610bef81612204565b50601380546001600160a01b0319166001600160a01b0392909216919091179055565b606060058054610c21906145bc565b80601f0160208091040260200160405190810160405280929190818152602001828054610c4d906145bc565b8015610c9a5780601f10610c6f57610100808354040283529160200191610c9a565b820191906000526020600020905b815481529060010190602001808311610c7d57829003601f168201915b5050505050905090565b6000610caf8261220e565b506000908152600960205260409020546001600160a01b031690565b81610cd581612272565b610cdf8383612366565b505050565b610cec612492565b60165460011115610d105760405163989ce19760e01b815260040160405180910390fd5b601654600090610d2b90610d269060019061460c565b6124e5565b905060006016826001600160801b031681548110610d4b57610d4b61461f565b90600052602060002090600402019050600081600201549050600082600101549050813414610db4576040517f49ba1202000000000000000000000000000000000000000000000000000000008152600481018390523460248201526044015b60405180910390fd5b6000610dbf600d5490565b610dca906001614635565b90506001811080610de7575081601754610de49190614635565b81115b15610e085760405163ed15e6cf60e01b815260048101829052602401610dab565b610e123382612568565b6000610e1f828785612582565b60208101516040519192506001600160801b031690839033907f4c209b5fc8ad50758f13e2e1088ba56a560dff690a1c6fef26394f4c03821c4f90600090a4505050505050565b7fa49807205ce4d355092ef5a8a18f56e8913cf4a201fbe287825b095693c21775610e9081612204565b8115610ea257610e9e6127a3565b5050565b610e9e6127fd565b7fa49807205ce4d355092ef5a8a18f56e8913cf4a201fbe287825b095693c21775610ed481612204565b60165460011015610f2357601654610eee9060019061460c565b6040517f91f86dd6000000000000000000000000000000000000000000000000000000008152600401610dab91815260200190565b60006016600081548110610f3957610f3961461f565b906000526020600020906004020190506000610f54600d5490565b610f5f906001614635565b600180840154919250821080610f7457508082115b15610f955760405163ed15e6cf60e01b815260048101839052602401610dab565b6000604051806040016040528060006001600160801b03168152602001610fbb856124e5565b6001600160801b031690529050610fd28684612568565b60008381526011602090815260408083208451928501516001600160801b03908116600160801b81029190941617905551909185916001600160a01b038a16917f4c209b5fc8ad50758f13e2e1088ba56a560dff690a1c6fef26394f4c03821c4f91a4505050505050565b826001600160a01b03811633146110575761105733612272565b611062848484612836565b50505050565b60155460009081906001600160a01b03166110878460646103e86128ad565b915091505b9250929050565b6000828152600260205260409020600101546110ae81612204565b610cdf8383612984565b60006110c3836113d4565b82106111375760405162461bcd60e51b815260206004820152602b60248201527f455243373231456e756d657261626c653a206f776e657220696e646578206f7560448201527f74206f6620626f756e64730000000000000000000000000000000000000000006064820152608401610dab565b506001600160a01b03919091166000908152600b60209081526040808320938352929052205490565b611168612492565b611173838383611b6a565b610cdf610ce4565b6001600160a01b03811633146111f95760405162461bcd60e51b815260206004820152602f60248201527f416363657373436f6e74726f6c3a2063616e206f6e6c792072656e6f756e636560448201527f20726f6c657320666f722073656c6600000000000000000000000000000000006064820152608401610dab565b610e9e82826129a6565b7f5d8e12c39142ff96d79d04d15d1ba1269e4fe57bb9d26f43523628b34ba108ec61122d81612204565b60405133904780156108fc02916000818181858888f19350505050158015610e9e573d6000803e3d6000fd5b7fa49807205ce4d355092ef5a8a18f56e8913cf4a201fbe287825b095693c2177561128381612204565b50601580546001600160a01b0319166001600160a01b0392909216919091179055565b826001600160a01b03811633146112c0576112c033612272565b6110628484846129c8565b60006112d6600d5490565b821061134a5760405162461bcd60e51b815260206004820152602c60248201527f455243373231456e756d657261626c653a20676c6f62616c20696e646578206f60448201527f7574206f6620626f756e647300000000000000000000000000000000000000006064820152608401610dab565b600d828154811061135d5761135d61461f565b90600052602060002001549050919050565b6000818152600760205260408120546001600160a01b031680610bbf5760405162461bcd60e51b815260206004820152601860248201527f4552433732313a20696e76616c696420746f6b656e20494400000000000000006044820152606401610dab565b60006001600160a01b0382166114525760405162461bcd60e51b815260206004820152602960248201527f4552433732313a2061646472657373207a65726f206973206e6f74206120766160448201527f6c6964206f776e657200000000000000000000000000000000000000000000006064820152608401610dab565b506001600160a01b031660009081526008602052604090205490565b6114766129e3565b6114806000612a42565b565b6000806000600160168054905010156114ae5760405163989ce19760e01b815260040160405180910390fd5b6016546000906114c09060019061460c565b90506000601682815481106114d7576114d761461f565b906000526020600020906004020190508181600201546017546114f9600d5490565b611503919061460c565b8360010154611512919061460c565b9450945094505050909192565b7fa49807205ce4d355092ef5a8a18f56e8913cf4a201fbe287825b095693c2177561154981612204565b60165484106115795760165460405163b6d1990b60e01b8152610dab918691600401918252602082015260400190565b82826016868154811061158e5761158e61461f565b906000526020600020906004020160030191826115ac929190614696565b5050505050565b60006115c76001546001600160a01b031690565b905090565b60008281526003602052604081206115e49083612a94565b9392505050565b606060068054610c21906145bc565b8161160481612272565b610cdf8383612aa0565b60008061161a600d5490565b9050600160005b856001600160801b031681101561167657601681815481106116455761164561461f565b906000526020600020906004020160010154826116629190614635565b91508061166e81614756565b915050611621565b505b8181116116e8576000818152601160205260409020546001600160801b0386811691161480156116c857506000818152601160205260409020546001600160801b03858116600160801b90920416145b156116d6579150610bbf9050565b806116e081614756565b915050611678565b6040517f36f4c9c10000000000000000000000000000000000000000000000000000000081526001600160801b03808716600483015285166024820152604401610dab565b7fa49807205ce4d355092ef5a8a18f56e8913cf4a201fbe287825b095693c2177561175781612204565b6014611062838583614696565b836001600160a01b038116331461177e5761177e33612272565b6115ac85858585612aab565b6117926115b3565b6001600160a01b0316336001600160a01b0316146117dc576040517f5fc483c500000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600080546001600160a01b0319166001600160a01b0392909216919091179055565b6000818152600760205260409020546060906001600160a01b03166118395760405163ed15e6cf60e01b815260048101839052602401610dab565b60008281526011602090815260408083208151808301909252546001600160801b038082168352600160801b90910416918101829052910361189157604051630aca634560e31b815260048101849052602401610dab565b6012548151601680546001600160a01b0390931692638cf4db91926001600160801b03169081106118c4576118c461461f565b9060005260206000209060040201836000015184602001516040518463ffffffff1660e01b81526004016118fa9392919061476f565b600060405180830381865afa158015611917573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f191682016040526115e4919081019061484f565b7fa49807205ce4d355092ef5a8a18f56e8913cf4a201fbe287825b095693c2177561196981612204565b50601280546001600160a01b0319166001600160a01b0392909216919091179055565b60606119978261220e565b60008281526011602090815260408083208151808301909252546001600160801b038082168352600160801b9091041691810182905291036119ef57604051630aca634560e31b815260048101849052602401610dab565b60165481516001600160801b031610611a3157805160165460405163b6d1990b60e01b81526001600160801b0390921660048301526024820152604401610dab565b601681600001516001600160801b031681548110611a5157611a5161461f565b9060005260206000209060040201600301611a7882602001516001600160801b0316612b23565b604051602001611a899291906148e2565b604051602081830303815290604052915050919050565b6000818152600360205260408120610bbf90612bc3565b60148054611ac4906145bc565b80601f0160208091040260200160405190810160405280929190818152602001828054611af0906145bc565b8015611b3d5780601f10611b1257610100808354040283529160200191611b3d565b820191906000526020600020905b815481529060010190602001808311611b2057829003601f168201915b505050505081565b600082815260026020526040902060010154611b6081612204565b610cdf83836129a6565b611b72612492565b6040517f6f6e6c79626f7473206d696e7420617574686f72697a6174696f6e7c0000000060208201526bffffffffffffffffffffffff193360601b16603c82015260009060500160408051601f198184030181529082905280516020918201207f19457468657265756d205369676e6564204d6573736167653a0a33320000000091830191909152603c820152605c0160408051601f198184030181528282528051602091820120600080855291840180845281905260ff88169284019290925260608301869052608083018590529092509060019060a0016020604051602081039080840390855afa158015611c6d573d6000803e3d6000fd5b5050604051601f1901516013549092506001600160a01b038084169116149050611cda576013546040517f42d750dc0000000000000000000000000000000000000000000000000000000081526001600160a01b0391821660048201529082166024820152604401610dab565b5050336000908152600f60205260409020805460ff19166001179055505050565b60168181548110611d0b57600080fd5b600091825260209091206004909102018054600182015460028301546003840180546001600160a01b03909416955091939092909190611d4a906145bc565b80601f0160208091040260200160405190810160405280929190818152602001828054611d76906145bc565b8015611dc35780601f10611d9857610100808354040283529160200191611dc3565b820191906000526020600020905b815481529060010190602001808311611da657829003601f168201915b5050505050905084565b611dd56129e3565b6001600160a01b038116611e515760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201527f64647265737300000000000000000000000000000000000000000000000000006064820152608401610dab565b611e5a81612a42565b50565b7fa49807205ce4d355092ef5a8a18f56e8913cf4a201fbe287825b095693c21775611e8781612204565b6016548414611eb75760165460405163b6d1990b60e01b8152610dab918691600401918252602082015260400190565b60165415611f64576016805460009190611ed39060019061460c565b81548110611ee357611ee361461f565b90600052602060002090600402016001015490506000611f02600d5490565b905081601754611f129190614635565b8114611f5f576017546040517fdec8f3bb00000000000000000000000000000000000000000000000000000000815260048101839052602481019190915260448101839052606401610dab565b601755505b6000856001600160a01b031663a25f55d46040518163ffffffff1660e01b8152600401602060405180830381865afa158015611fa4573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611fc891906149e4565b90506000866001600160a01b03166398d5fdca6040518163ffffffff1660e01b8152600401602060405180830381865afa15801561200a573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061202e91906149e4565b905060166040518060800160405280896001600160a01b0316815260200184815260200183815260200187878080601f0160208091040260200160405190810160405280939291908181526020018383808284376000920182905250939094525050835460018082018655948252602091829020845160049092020180546001600160a01b0319166001600160a01b0390921691909117815590830151938101939093555060408101516002830155606081015190919060038201906120f490826149fd565b50505050505050505050565b6001546001600160a01b031690565b60008281526002602090815260408083206001600160a01b038516845290915290205460ff16610e9e5760008281526002602090815260408083206001600160a01b03851684529091529020805460ff1916600117905561216d3390565b6001600160a01b0316816001600160a01b0316837f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d60405160405180910390a45050565b60006115e4836001600160a01b038416612bcd565b60006001600160e01b031982167f780e9d63000000000000000000000000000000000000000000000000000000001480610bbf5750610bbf82612c1c565b611e5a8133612c8e565b6000818152600760205260409020546001600160a01b0316611e5a5760405162461bcd60e51b815260206004820152601860248201527f4552433732313a20696e76616c696420746f6b656e20494400000000000000006044820152606401610dab565b6000546001600160a01b0316801580159061229757506000816001600160a01b03163b115b15610e9e576040517fc61711340000000000000000000000000000000000000000000000000000000081523060048201526001600160a01b03838116602483015282169063c617113490604401602060405180830381865afa158015612301573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906123259190614abd565b610e9e576040517fede71dcc0000000000000000000000000000000000000000000000000000000081526001600160a01b0383166004820152602401610dab565b60006123718261136f565b9050806001600160a01b0316836001600160a01b0316036123fa5760405162461bcd60e51b815260206004820152602160248201527f4552433732313a20617070726f76616c20746f2063757272656e74206f776e6560448201527f72000000000000000000000000000000000000000000000000000000000000006064820152608401610dab565b336001600160a01b038216148061241657506124168133610a82565b6124885760405162461bcd60e51b815260206004820152603d60248201527f4552433732313a20617070726f76652063616c6c6572206973206e6f7420746f60448201527f6b656e206f776e6572206f7220617070726f76656420666f7220616c6c0000006064820152608401610dab565b610cdf8383612d03565b60045460ff16156114805760405162461bcd60e51b815260206004820152601060248201527f5061757361626c653a20706175736564000000000000000000000000000000006044820152606401610dab565b60006001600160801b038211156125645760405162461bcd60e51b815260206004820152602760248201527f53616665436173743a2076616c756520646f65736e27742066697420696e203160448201527f32382062697473000000000000000000000000000000000000000000000000006064820152608401610dab565b5090565b610e9e828260405180602001604052806000815250612d71565b60408051808201909152600080825260208201526000826017546125a69190614635565b905060006125b560018761460c565b6125bf908361460c565b905060018110806125cf57508181115b15612609576040517f706dc25300000000000000000000000000000000000000000000000000000000815260048101829052602401610dab565b600061261787423385612def565b9050600181108061262757508181115b15612661576040517fddbb4ac400000000000000000000000000000000000000000000000000000000815260048101829052602401610dab565b600081815260106020526040812054810361267c578161268c565b6000828152601060205260409020545b90508282146126d05760008381526010602052604081205490036126b057826126c0565b6000838152601060205260409020545b6000838152601060205260409020555b600083815260106020526040902054156126f4576000838152601060205260408120555b600181108061270257508581115b1561273c576040517f7b70ae4300000000000000000000000000000000000000000000000000000000815260048101829052602401610dab565b60006040518060400160405280896001600160801b03168152602001612761846124e5565b6001600160801b0390811690915260008b81526011602090815260409091208351918401518316600160801b0291909216179055955050505050509392505050565b6127ab612492565b6004805460ff191660011790557f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a2586127e03390565b6040516001600160a01b03909116815260200160405180910390a1565b612805612e63565b6004805460ff191690557f5db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa336127e0565b6128403382612eb5565b6128a25760405162461bcd60e51b815260206004820152602d60248201527f4552433732313a2063616c6c6572206973206e6f7420746f6b656e206f776e6560448201526c1c881bdc88185c1c1c9bdd9959609a1b6064820152608401610dab565b610cdf838383612f33565b6000806128c36001600160801b03841686614af0565b905060006128da6001600160801b03851687614b04565b905060006128f16001600160801b03861687614af0565b905060006129086001600160801b03871688614b04565b90506001600160801b03861661291e8285614b18565b6129289190614af0565b6129328385614b18565b61293c8387614b18565b6001600160801b0389166129508689614b18565b61295a9190614b18565b6129649190614635565b61296e9190614635565b6129789190614635565b98975050505050505050565b61298e828261210f565b6000828152600360205260409020610cdf90826121b1565b6129b08282613139565b6000828152600360205260409020610cdf90826131bc565b610cdf83838360405180602001604052806000815250611764565b336129ec6115b3565b6001600160a01b0316146114805760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610dab565b600180546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b60006115e483836131d1565b610e9e3383836131fb565b612ab53383612eb5565b612b175760405162461bcd60e51b815260206004820152602d60248201527f4552433732313a2063616c6c6572206973206e6f7420746f6b656e206f776e6560448201526c1c881bdc88185c1c1c9bdd9959609a1b6064820152608401610dab565b611062848484846132c9565b60606000612b3083613347565b600101905060008167ffffffffffffffff811115612b5057612b506143dc565b6040519080825280601f01601f191660200182016040528015612b7a576020820181803683370190505b5090508181016020015b600019017f3031323334353637383961626364656600000000000000000000000000000000600a86061a8153600a8504945084612b8457509392505050565b6000610bbf825490565b6000818152600183016020526040812054612c1457508154600181810184556000848152602080822090930184905584548482528286019093526040902091909155610bbf565b506000610bbf565b60006001600160e01b031982167f80ac58cd000000000000000000000000000000000000000000000000000000001480612c7f57506001600160e01b031982167f5b5e139f00000000000000000000000000000000000000000000000000000000145b80610bbf5750610bbf82613429565b60008281526002602090815260408083206001600160a01b038516845290915290205460ff16610e9e57612cc181613467565b612ccc836020613479565b604051602001612cdd929190614b2f565b60408051601f198184030181529082905262461bcd60e51b8252610dab9160040161413e565b600081815260096020526040902080546001600160a01b0319166001600160a01b0384169081179091558190612d388261136f565b6001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b612d7b838361365a565b612d8860008484846137f3565b610cdf5760405162461bcd60e51b815260206004820152603260248201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560448201527131b2b4bb32b91034b6b83632b6b2b73a32b960711b6064820152608401610dab565b600081858486604051602001612e2a9392919092835260609190911b6bffffffffffffffffffffffff19166020830152603482015260540190565b6040516020818303038152906040528051906020012060001c612e4d9190614b04565b612e58906001614635565b90505b949350505050565b60045460ff166114805760405162461bcd60e51b815260206004820152601460248201527f5061757361626c653a206e6f74207061757365640000000000000000000000006044820152606401610dab565b600080612ec18361136f565b9050806001600160a01b0316846001600160a01b03161480612f0857506001600160a01b038082166000908152600a602090815260408083209388168352929052205460ff165b80612e5b5750836001600160a01b0316612f2184610ca4565b6001600160a01b031614949350505050565b826001600160a01b0316612f468261136f565b6001600160a01b031614612faa5760405162461bcd60e51b815260206004820152602560248201527f4552433732313a207472616e736665722066726f6d20696e636f72726563742060448201526437bbb732b960d91b6064820152608401610dab565b6001600160a01b0382166130255760405162461bcd60e51b8152602060048201526024808201527f4552433732313a207472616e7366657220746f20746865207a65726f2061646460448201527f72657373000000000000000000000000000000000000000000000000000000006064820152608401610dab565b613032838383600161393c565b826001600160a01b03166130458261136f565b6001600160a01b0316146130a95760405162461bcd60e51b815260206004820152602560248201527f4552433732313a207472616e736665722066726f6d20696e636f72726563742060448201526437bbb732b960d91b6064820152608401610dab565b600081815260096020908152604080832080546001600160a01b03199081169091556001600160a01b0387811680865260088552838620805460001901905590871680865283862080546001019055868652600790945282852080549092168417909155905184937fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91a4505050565b60008281526002602090815260408083206001600160a01b038516845290915290205460ff1615610e9e5760008281526002602090815260408083206001600160a01b0385168085529252808320805460ff1916905551339285917ff6391f5c32d9c69d2a47ea670b442974b53935d1edc7fd64eb21e047a839171b9190a45050565b60006115e4836001600160a01b038416613bd6565b60008260000182815481106131e8576131e861461f565b9060005260206000200154905092915050565b816001600160a01b0316836001600160a01b03160361325c5760405162461bcd60e51b815260206004820152601960248201527f4552433732313a20617070726f766520746f2063616c6c6572000000000000006044820152606401610dab565b6001600160a01b038381166000818152600a6020908152604080832094871680845294825291829020805460ff191686151590811790915591519182527f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a3505050565b6132d4848484612f33565b6132e0848484846137f3565b6110625760405162461bcd60e51b815260206004820152603260248201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560448201527131b2b4bb32b91034b6b83632b6b2b73a32b960711b6064820152608401610dab565b6000807a184f03e93ff9f4daa797ed6e38ed64bf6a1f0100000000000000008310613390577a184f03e93ff9f4daa797ed6e38ed64bf6a1f010000000000000000830492506040015b6d04ee2d6d415b85acef810000000083106133bc576d04ee2d6d415b85acef8100000000830492506020015b662386f26fc1000083106133da57662386f26fc10000830492506010015b6305f5e10083106133f2576305f5e100830492506008015b612710831061340657612710830492506004015b60648310613418576064830492506002015b600a8310610bbf5760010192915050565b60006001600160e01b031982167f5a05180f000000000000000000000000000000000000000000000000000000001480610bbf5750610bbf82613cc9565b6060610bbf6001600160a01b03831660145b60606000613488836002614b18565b613493906002614635565b67ffffffffffffffff8111156134ab576134ab6143dc565b6040519080825280601f01601f1916602001820160405280156134d5576020820181803683370190505b5090507f30000000000000000000000000000000000000000000000000000000000000008160008151811061350c5761350c61461f565b60200101906001600160f81b031916908160001a9053507f7800000000000000000000000000000000000000000000000000000000000000816001815181106135575761355761461f565b60200101906001600160f81b031916908160001a905350600061357b846002614b18565b613586906001614635565b90505b600181111561360b577f303132333435363738396162636465660000000000000000000000000000000085600f16601081106135c7576135c761461f565b1a60f81b8282815181106135dd576135dd61461f565b60200101906001600160f81b031916908160001a90535060049490941c9361360481614bb0565b9050613589565b5083156115e45760405162461bcd60e51b815260206004820181905260248201527f537472696e67733a20686578206c656e67746820696e73756666696369656e746044820152606401610dab565b6001600160a01b0382166136b05760405162461bcd60e51b815260206004820181905260248201527f4552433732313a206d696e7420746f20746865207a65726f20616464726573736044820152606401610dab565b6000818152600760205260409020546001600160a01b0316156137155760405162461bcd60e51b815260206004820152601c60248201527f4552433732313a20746f6b656e20616c7265616479206d696e746564000000006044820152606401610dab565b61372360008383600161393c565b6000818152600760205260409020546001600160a01b0316156137885760405162461bcd60e51b815260206004820152601c60248201527f4552433732313a20746f6b656e20616c7265616479206d696e746564000000006044820152606401610dab565b6001600160a01b038216600081815260086020908152604080832080546001019055848352600790915280822080546001600160a01b0319168417905551839291907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b60006001600160a01b0384163b1561393457604051630a85bd0160e11b81526001600160a01b0385169063150b7a0290613837903390899088908890600401614bc7565b6020604051808303816000875af1925050508015613872575060408051601f3d908101601f1916820190925261386f91810190614bf9565b60015b61391a573d8080156138a0576040519150601f19603f3d011682016040523d82523d6000602084013e6138a5565b606091505b5080516000036139125760405162461bcd60e51b815260206004820152603260248201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560448201527131b2b4bb32b91034b6b83632b6b2b73a32b960711b6064820152608401610dab565b805181602001fd5b6001600160e01b031916630a85bd0160e11b149050612e5b565b506001612e5b565b613944612492565b61395084848484613d30565b8060011461398d576040517f518a5b8000000000000000000000000000000000000000000000000000000000815260048101829052602401610dab565b6001600160a01b0384161580156139a657506016546001105b15613b1b57336001600160a01b038416146139fe576040517f825311df0000000000000000000000000000000000000000000000000000000081523360048201526001600160a01b0384166024820152604401610dab565b6001600160a01b0383166000908152600f60205260409020805460ff16613a42576040516242cc1560e91b81526001600160a01b0385166004820152602401610dab565b60125474010000000000000000000000000000000000000000900460ff168015613a885750601654613a769060019061460c565b815461010090046001600160801b0316145b15613aca576040517f9ef298020000000000000000000000000000000000000000000000000000000081526001600160a01b0385166004820152602401610dab565b601654613add90610d269060019061460c565b81546001600160801b0391909116610100027fffffffffffffffffffffffffffffff00000000000000000000000000000000ff909116179055613b75565b601654600103613b75573360009081527fe5ebfa64fca8d502a8e50c1edffd2c31ef4dad5b396e65d9f397fb028f74abc5602052604090205460ff16613b75576040516242cc1560e91b8152336004820152602401610dab565b6001600160a01b03831661106257336001600160a01b03851614611062576040517f28cc2d240000000000000000000000000000000000000000000000000000000081523360048201526001600160a01b0385166024820152604401610dab565b60008181526001830160205260408120548015613cbf576000613bfa60018361460c565b8554909150600090613c0e9060019061460c565b9050818114613c73576000866000018281548110613c2e57613c2e61461f565b9060005260206000200154905080876000018481548110613c5157613c5161461f565b6000918252602080832090910192909255918252600188019052604090208390555b8554869080613c8457613c84614c16565b600190038181906000526020600020016000905590558560010160008681526020019081526020016000206000905560019350505050610bbf565b6000915050610bbf565b60006001600160e01b031982167f7965db0b000000000000000000000000000000000000000000000000000000001480610bbf57507f01ffc9a7000000000000000000000000000000000000000000000000000000006001600160e01b0319831614610bbf565b613d3c84848484613e71565b6001811115613db35760405162461bcd60e51b815260206004820152603560248201527f455243373231456e756d657261626c653a20636f6e736563757469766520747260448201527f616e7366657273206e6f7420737570706f7274656400000000000000000000006064820152608401610dab565b816001600160a01b038516613e0f57613e0a81600d80546000838152600e60205260408120829055600182018355919091527fd7b6990105719101dabeb77144f2a3385c8033acd3af97e9423a695e81ad1eb50155565b613e32565b836001600160a01b0316856001600160a01b031614613e3257613e328582613ef9565b6001600160a01b038416613e4e57613e4981613f96565b6115ac565b846001600160a01b0316846001600160a01b0316146115ac576115ac8482614045565b6001811115611062576001600160a01b03841615613eb7576001600160a01b03841660009081526008602052604081208054839290613eb190849061460c565b90915550505b6001600160a01b03831615611062576001600160a01b03831660009081526008602052604081208054839290613eee908490614635565b909155505050505050565b60006001613f06846113d4565b613f10919061460c565b6000838152600c6020526040902054909150808214613f63576001600160a01b0384166000908152600b602090815260408083208584528252808320548484528184208190558352600c90915290208190555b506000918252600c602090815260408084208490556001600160a01b039094168352600b81528383209183525290812055565b600d54600090613fa89060019061460c565b6000838152600e6020526040812054600d8054939450909284908110613fd057613fd061461f565b9060005260206000200154905080600d8381548110613ff157613ff161461f565b6000918252602080832090910192909255828152600e9091526040808220849055858252812055600d80548061402957614029614c16565b6001900381819060005260206000200160009055905550505050565b6000614050836113d4565b6001600160a01b039093166000908152600b602090815260408083208684528252808320859055938252600c9052919091209190915550565b6001600160e01b031981168114611e5a57600080fd5b6000602082840312156140b157600080fd5b81356115e481614089565b6001600160a01b0381168114611e5a57600080fd5b6000602082840312156140e357600080fd5b81356115e4816140bc565b60005b838110156141095781810151838201526020016140f1565b50506000910152565b6000815180845261412a8160208601602086016140ee565b601f01601f19169290920160200192915050565b6020815260006115e46020830184614112565b60006020828403121561416357600080fd5b5035919050565b6000806040838503121561417d57600080fd5b8235614188816140bc565b946020939093013593505050565b8015158114611e5a57600080fd5b6000602082840312156141b657600080fd5b81356115e481614196565b6000806000606084860312156141d657600080fd5b83356141e1816140bc565b925060208401356141f1816140bc565b929592945050506040919091013590565b6000806040838503121561421557600080fd5b50508035926020909101359150565b6000806040838503121561423757600080fd5b823591506020830135614249816140bc565b809150509250929050565b60008060006060848603121561426957600080fd5b833560ff8116811461427a57600080fd5b95602085013595506040909401359392505050565b60008083601f8401126142a157600080fd5b50813567ffffffffffffffff8111156142b957600080fd5b60208301915083602082850101111561108c57600080fd5b6000806000604084860312156142e657600080fd5b83359250602084013567ffffffffffffffff81111561430457600080fd5b6143108682870161428f565b9497909650939450505050565b6000806040838503121561433057600080fd5b823561433b816140bc565b9150602083013561424981614196565b80356001600160801b038116811461436257600080fd5b919050565b6000806040838503121561437a57600080fd5b6143838361434b565b91506143916020840161434b565b90509250929050565b600080602083850312156143ad57600080fd5b823567ffffffffffffffff8111156143c457600080fd5b6143d08582860161428f565b90969095509350505050565b634e487b7160e01b600052604160045260246000fd5b604051601f8201601f1916810167ffffffffffffffff8111828210171561441b5761441b6143dc565b604052919050565b600067ffffffffffffffff82111561443d5761443d6143dc565b50601f01601f191660200190565b6000806000806080858703121561446157600080fd5b843561446c816140bc565b9350602085013561447c816140bc565b925060408501359150606085013567ffffffffffffffff81111561449f57600080fd5b8501601f810187136144b057600080fd5b80356144c36144be82614423565b6143f2565b8181528860208385010111156144d857600080fd5b8160208401602083013760006020838301015280935050505092959194509250565b6000806040838503121561450d57600080fd5b8235614518816140bc565b91506020830135614249816140bc565b6001600160a01b03851681528360208201528260408201526080606082015260006145566080830184614112565b9695505050505050565b6000806000806060858703121561457657600080fd5b8435614581816140bc565b935060208501359250604085013567ffffffffffffffff8111156145a457600080fd5b6145b08782880161428f565b95989497509550505050565b600181811c908216806145d057607f821691505b6020821081036145f057634e487b7160e01b600052602260045260246000fd5b50919050565b634e487b7160e01b600052601160045260246000fd5b81810381811115610bbf57610bbf6145f6565b634e487b7160e01b600052603260045260246000fd5b80820180821115610bbf57610bbf6145f6565b601f821115610cdf57600081815260208120601f850160051c8101602086101561466f5750805b601f850160051c820191505b8181101561468e5782815560010161467b565b505050505050565b67ffffffffffffffff8311156146ae576146ae6143dc565b6146c2836146bc83546145bc565b83614648565b6000601f8411600181146146f657600085156146de5750838201355b600019600387901b1c1916600186901b1783556115ac565b600083815260209020601f19861690835b828110156147275786850135825560209485019460019092019101614707565b50868210156147445760001960f88860031b161c19848701351681555b505060018560011b0183555050505050565b600060018201614768576147686145f6565b5060010190565b606081526001600160a01b03845416606082015260006001808601546080840152600286015460a084015260038601608060c0850152600081546147b2816145bc565b8060e0880152610100858316600081146147d357600181146147ed5761481e565b60ff1984168983015282151560051b89018201945061481e565b8560005260208060002060005b858110156148155781548c82018601529089019082016147fa565b8b018401965050505b5050506001600160801b038816602087015250925061483b915050565b6001600160801b0383166040830152612e5b565b60006020828403121561486157600080fd5b815167ffffffffffffffff81111561487857600080fd5b8201601f8101841361488957600080fd5b80516148976144be82614423565b8181528560208385010111156148ac57600080fd5b6148bd8260208301602086016140ee565b95945050505050565b600081516148d88185602086016140ee565b9290920192915050565b7f697066733a2f2f0000000000000000000000000000000000000000000000000081526000600760008554614916816145bc565b6001828116801561492e57600181146149475761497a565b60ff19841688870152821515830288018601945061497a565b8960005260208060002060005b8581101561496f5781548b82018a0152908401908201614954565b505050858389010194505b507f2f0000000000000000000000000000000000000000000000000000000000000084526149aa818501896148c6565b9450505050506149d9817f2e6a736f6e0000000000000000000000000000000000000000000000000000009052565b600501949350505050565b6000602082840312156149f657600080fd5b5051919050565b815167ffffffffffffffff811115614a1757614a176143dc565b614a2b81614a2584546145bc565b84614648565b602080601f831160018114614a605760008415614a485750858301515b600019600386901b1c1916600185901b17855561468e565b600085815260208120601f198616915b82811015614a8f57888601518255948401946001909101908401614a70565b5085821015614aad5787850151600019600388901b60f8161c191681555b5050505050600190811b01905550565b600060208284031215614acf57600080fd5b81516115e481614196565b634e487b7160e01b600052601260045260246000fd5b600082614aff57614aff614ada565b500490565b600082614b1357614b13614ada565b500690565b8082028115828204841417610bbf57610bbf6145f6565b7f416363657373436f6e74726f6c3a206163636f756e7420000000000000000000815260008351614b678160178501602088016140ee565b7f206973206d697373696e6720726f6c65200000000000000000000000000000006017918401918201528351614ba48160288401602088016140ee565b01602801949350505050565b600081614bbf57614bbf6145f6565b506000190190565b60006001600160a01b038087168352808616602084015250836040830152608060608301526145566080830184614112565b600060208284031215614c0b57600080fd5b81516115e481614089565b634e487b7160e01b600052603160045260246000fdfea264697066735822122065ee9691b98491b26413fb899324538d46bc41d0b445c73acf6cfaad25835d5264736f6c63430008110033000000000000000000000000daedecf3fc1505f0aae9103da81904c99d8f7eea0000000000000000000000000000000000000000000000000000000000000001
Deployed Bytecode
0x60806040526004361061036f5760003560e01c806381e90f68116101c6578063c25d0f2a116100f7578063df666d5611610095578063ee1805b41161006f578063ee1805b414610ab0578063f2fde38b14610ae0578063f69c9af414610b00578063f7b2c7b114610b2057610376565b8063df666d5614610a13578063e02023a114610a33578063e985e9c514610a6757610376565b8063ca15c873116100d1578063ca15c8731461099e578063d26264ef146109be578063d547741f146109d3578063d6ad51b9146109f357610376565b8063c25d0f2a1461093e578063c5106a6d1461095e578063c87b56dd1461097e57610376565b8063abb35f9f11610164578063b42348ac1161013e578063b42348ac146108be578063b7c4e22c146108de578063b88d4fde146108fe578063b8d1e5321461091e57610376565b8063abb35f9f1461081f578063af11c1f01461083f578063b0ccc31e1461089e57610376565b806391d14854116101a057806391d148541461078f57806395d89b41146107d5578063a217fddf146107ea578063a22cb465146107ff57610376565b806381e90f681461073a5780638da5cb5b1461075a5780639010d07c1461076f57610376565b80632f745c59116102a05780634f6ccce71161023e57806370a082311161021857806370a08231146106a1578063715018a6146106c157806372674eb6146106d657806375b238fc1461070657610376565b80634f6ccce7146106495780635c975abb146106695780636352211e1461068157610376565b80633ccfd60b1161027a5780633ccfd60b146105e157806341e42f30146105e957806342842e0e146106095780634c00de821461062957610376565b80632f745c591461058e57806331e77210146105ae57806336568abe146105c157610376565b806318160ddd1161030d578063248a9ca3116102e7578063248a9ca3146104da5780632a55205a1461050a5780632d47adeb146105495780632f2ff15d1461056e57610376565b806318160ddd1461047b57806321860a051461049a57806323b872dd146104ba57610376565b8063081812fc11610349578063081812fc146103fb578063095ea7b3146104335780631249c58b1461045357806316c38b3c1461045b57610376565b806301ffc9a7146103845780630532bca1146103b957806306fdde03146103d957610376565b3661037657005b34801561038257600080fd5b005b34801561039057600080fd5b506103a461039f36600461409f565b610b81565b60405190151581526020015b60405180910390f35b3480156103c557600080fd5b506103826103d43660046140d1565b610bc5565b3480156103e557600080fd5b506103ee610c12565b6040516103b0919061413e565b34801561040757600080fd5b5061041b610416366004614151565b610ca4565b6040516001600160a01b0390911681526020016103b0565b34801561043f57600080fd5b5061038261044e36600461416a565b610ccb565b610382610ce4565b34801561046757600080fd5b506103826104763660046141a4565b610e66565b34801561048757600080fd5b50600d545b6040519081526020016103b0565b3480156104a657600080fd5b506103826104b53660046140d1565b610eaa565b3480156104c657600080fd5b506103826104d53660046141c1565b61103d565b3480156104e657600080fd5b5061048c6104f5366004614151565b60009081526002602052604090206001015490565b34801561051657600080fd5b5061052a610525366004614202565b611068565b604080516001600160a01b0390931683526020830191909152016103b0565b34801561055557600080fd5b50336000908152600f602052604090205460ff166103a4565b34801561057a57600080fd5b50610382610589366004614224565b611093565b34801561059a57600080fd5b5061048c6105a936600461416a565b6110b8565b6103826105bc366004614254565b611160565b3480156105cd57600080fd5b506103826105dc366004614224565b61117b565b610382611203565b3480156105f557600080fd5b506103826106043660046140d1565b611259565b34801561061557600080fd5b506103826106243660046141c1565b6112a6565b34801561063557600080fd5b5060155461041b906001600160a01b031681565b34801561065557600080fd5b5061048c610664366004614151565b6112cb565b34801561067557600080fd5b5060045460ff166103a4565b34801561068d57600080fd5b5061041b61069c366004614151565b61136f565b3480156106ad57600080fd5b5061048c6106bc3660046140d1565b6113d4565b3480156106cd57600080fd5b5061038261146e565b3480156106e257600080fd5b506106eb611482565b604080519384526020840192909252908201526060016103b0565b34801561071257600080fd5b5061048c7fa49807205ce4d355092ef5a8a18f56e8913cf4a201fbe287825b095693c2177581565b34801561074657600080fd5b506103826107553660046142d1565b61151f565b34801561076657600080fd5b5061041b6115b3565b34801561077b57600080fd5b5061041b61078a366004614202565b6115cc565b34801561079b57600080fd5b506103a46107aa366004614224565b60009182526002602090815260408084206001600160a01b0393909316845291905290205460ff1690565b3480156107e157600080fd5b506103ee6115eb565b3480156107f657600080fd5b5061048c600081565b34801561080b57600080fd5b5061038261081a36600461431d565b6115fa565b34801561082b57600080fd5b5061048c61083a366004614367565b61160e565b34801561084b57600080fd5b5061087f61085a3660046140d1565b600f6020526000908152604090205460ff81169061010090046001600160801b031682565b6040805192151583526001600160801b039091166020830152016103b0565b3480156108aa57600080fd5b5060005461041b906001600160a01b031681565b3480156108ca57600080fd5b5060135461041b906001600160a01b031681565b3480156108ea57600080fd5b506103826108f936600461439a565b61172d565b34801561090a57600080fd5b5061038261091936600461444b565b611764565b34801561092a57600080fd5b506103826109393660046140d1565b61178a565b34801561094a57600080fd5b506103ee610959366004614151565b6117fe565b34801561096a57600080fd5b506103826109793660046140d1565b61193f565b34801561098a57600080fd5b506103ee610999366004614151565b61198c565b3480156109aa57600080fd5b5061048c6109b9366004614151565b611aa0565b3480156109ca57600080fd5b506103ee611ab7565b3480156109df57600080fd5b506103826109ee366004614224565b611b45565b3480156109ff57600080fd5b5060125461041b906001600160a01b031681565b348015610a1f57600080fd5b50610382610a2e366004614254565b611b6a565b348015610a3f57600080fd5b5061048c7f5d8e12c39142ff96d79d04d15d1ba1269e4fe57bb9d26f43523628b34ba108ec81565b348015610a7357600080fd5b506103a4610a823660046144fa565b6001600160a01b039182166000908152600a6020908152604080832093909416825291909152205460ff1690565b348015610abc57600080fd5b50610ad0610acb366004614151565b611cfb565b6040516103b09493929190614528565b348015610aec57600080fd5b50610382610afb3660046140d1565b611dcd565b348015610b0c57600080fd5b50610382610b1b366004614560565b611e5d565b348015610b2c57600080fd5b50610b61610b3b366004614151565b6011602052600090815260409020546001600160801b0380821691600160801b90041682565b604080516001600160801b039384168152929091166020830152016103b0565b60006001600160e01b031982167f2a55205a000000000000000000000000000000000000000000000000000000001480610bbf5750610bbf826121c6565b92915050565b7fa49807205ce4d355092ef5a8a18f56e8913cf4a201fbe287825b095693c21775610bef81612204565b50601380546001600160a01b0319166001600160a01b0392909216919091179055565b606060058054610c21906145bc565b80601f0160208091040260200160405190810160405280929190818152602001828054610c4d906145bc565b8015610c9a5780601f10610c6f57610100808354040283529160200191610c9a565b820191906000526020600020905b815481529060010190602001808311610c7d57829003601f168201915b5050505050905090565b6000610caf8261220e565b506000908152600960205260409020546001600160a01b031690565b81610cd581612272565b610cdf8383612366565b505050565b610cec612492565b60165460011115610d105760405163989ce19760e01b815260040160405180910390fd5b601654600090610d2b90610d269060019061460c565b6124e5565b905060006016826001600160801b031681548110610d4b57610d4b61461f565b90600052602060002090600402019050600081600201549050600082600101549050813414610db4576040517f49ba1202000000000000000000000000000000000000000000000000000000008152600481018390523460248201526044015b60405180910390fd5b6000610dbf600d5490565b610dca906001614635565b90506001811080610de7575081601754610de49190614635565b81115b15610e085760405163ed15e6cf60e01b815260048101829052602401610dab565b610e123382612568565b6000610e1f828785612582565b60208101516040519192506001600160801b031690839033907f4c209b5fc8ad50758f13e2e1088ba56a560dff690a1c6fef26394f4c03821c4f90600090a4505050505050565b7fa49807205ce4d355092ef5a8a18f56e8913cf4a201fbe287825b095693c21775610e9081612204565b8115610ea257610e9e6127a3565b5050565b610e9e6127fd565b7fa49807205ce4d355092ef5a8a18f56e8913cf4a201fbe287825b095693c21775610ed481612204565b60165460011015610f2357601654610eee9060019061460c565b6040517f91f86dd6000000000000000000000000000000000000000000000000000000008152600401610dab91815260200190565b60006016600081548110610f3957610f3961461f565b906000526020600020906004020190506000610f54600d5490565b610f5f906001614635565b600180840154919250821080610f7457508082115b15610f955760405163ed15e6cf60e01b815260048101839052602401610dab565b6000604051806040016040528060006001600160801b03168152602001610fbb856124e5565b6001600160801b031690529050610fd28684612568565b60008381526011602090815260408083208451928501516001600160801b03908116600160801b81029190941617905551909185916001600160a01b038a16917f4c209b5fc8ad50758f13e2e1088ba56a560dff690a1c6fef26394f4c03821c4f91a4505050505050565b826001600160a01b03811633146110575761105733612272565b611062848484612836565b50505050565b60155460009081906001600160a01b03166110878460646103e86128ad565b915091505b9250929050565b6000828152600260205260409020600101546110ae81612204565b610cdf8383612984565b60006110c3836113d4565b82106111375760405162461bcd60e51b815260206004820152602b60248201527f455243373231456e756d657261626c653a206f776e657220696e646578206f7560448201527f74206f6620626f756e64730000000000000000000000000000000000000000006064820152608401610dab565b506001600160a01b03919091166000908152600b60209081526040808320938352929052205490565b611168612492565b611173838383611b6a565b610cdf610ce4565b6001600160a01b03811633146111f95760405162461bcd60e51b815260206004820152602f60248201527f416363657373436f6e74726f6c3a2063616e206f6e6c792072656e6f756e636560448201527f20726f6c657320666f722073656c6600000000000000000000000000000000006064820152608401610dab565b610e9e82826129a6565b7f5d8e12c39142ff96d79d04d15d1ba1269e4fe57bb9d26f43523628b34ba108ec61122d81612204565b60405133904780156108fc02916000818181858888f19350505050158015610e9e573d6000803e3d6000fd5b7fa49807205ce4d355092ef5a8a18f56e8913cf4a201fbe287825b095693c2177561128381612204565b50601580546001600160a01b0319166001600160a01b0392909216919091179055565b826001600160a01b03811633146112c0576112c033612272565b6110628484846129c8565b60006112d6600d5490565b821061134a5760405162461bcd60e51b815260206004820152602c60248201527f455243373231456e756d657261626c653a20676c6f62616c20696e646578206f60448201527f7574206f6620626f756e647300000000000000000000000000000000000000006064820152608401610dab565b600d828154811061135d5761135d61461f565b90600052602060002001549050919050565b6000818152600760205260408120546001600160a01b031680610bbf5760405162461bcd60e51b815260206004820152601860248201527f4552433732313a20696e76616c696420746f6b656e20494400000000000000006044820152606401610dab565b60006001600160a01b0382166114525760405162461bcd60e51b815260206004820152602960248201527f4552433732313a2061646472657373207a65726f206973206e6f74206120766160448201527f6c6964206f776e657200000000000000000000000000000000000000000000006064820152608401610dab565b506001600160a01b031660009081526008602052604090205490565b6114766129e3565b6114806000612a42565b565b6000806000600160168054905010156114ae5760405163989ce19760e01b815260040160405180910390fd5b6016546000906114c09060019061460c565b90506000601682815481106114d7576114d761461f565b906000526020600020906004020190508181600201546017546114f9600d5490565b611503919061460c565b8360010154611512919061460c565b9450945094505050909192565b7fa49807205ce4d355092ef5a8a18f56e8913cf4a201fbe287825b095693c2177561154981612204565b60165484106115795760165460405163b6d1990b60e01b8152610dab918691600401918252602082015260400190565b82826016868154811061158e5761158e61461f565b906000526020600020906004020160030191826115ac929190614696565b5050505050565b60006115c76001546001600160a01b031690565b905090565b60008281526003602052604081206115e49083612a94565b9392505050565b606060068054610c21906145bc565b8161160481612272565b610cdf8383612aa0565b60008061161a600d5490565b9050600160005b856001600160801b031681101561167657601681815481106116455761164561461f565b906000526020600020906004020160010154826116629190614635565b91508061166e81614756565b915050611621565b505b8181116116e8576000818152601160205260409020546001600160801b0386811691161480156116c857506000818152601160205260409020546001600160801b03858116600160801b90920416145b156116d6579150610bbf9050565b806116e081614756565b915050611678565b6040517f36f4c9c10000000000000000000000000000000000000000000000000000000081526001600160801b03808716600483015285166024820152604401610dab565b7fa49807205ce4d355092ef5a8a18f56e8913cf4a201fbe287825b095693c2177561175781612204565b6014611062838583614696565b836001600160a01b038116331461177e5761177e33612272565b6115ac85858585612aab565b6117926115b3565b6001600160a01b0316336001600160a01b0316146117dc576040517f5fc483c500000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600080546001600160a01b0319166001600160a01b0392909216919091179055565b6000818152600760205260409020546060906001600160a01b03166118395760405163ed15e6cf60e01b815260048101839052602401610dab565b60008281526011602090815260408083208151808301909252546001600160801b038082168352600160801b90910416918101829052910361189157604051630aca634560e31b815260048101849052602401610dab565b6012548151601680546001600160a01b0390931692638cf4db91926001600160801b03169081106118c4576118c461461f565b9060005260206000209060040201836000015184602001516040518463ffffffff1660e01b81526004016118fa9392919061476f565b600060405180830381865afa158015611917573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f191682016040526115e4919081019061484f565b7fa49807205ce4d355092ef5a8a18f56e8913cf4a201fbe287825b095693c2177561196981612204565b50601280546001600160a01b0319166001600160a01b0392909216919091179055565b60606119978261220e565b60008281526011602090815260408083208151808301909252546001600160801b038082168352600160801b9091041691810182905291036119ef57604051630aca634560e31b815260048101849052602401610dab565b60165481516001600160801b031610611a3157805160165460405163b6d1990b60e01b81526001600160801b0390921660048301526024820152604401610dab565b601681600001516001600160801b031681548110611a5157611a5161461f565b9060005260206000209060040201600301611a7882602001516001600160801b0316612b23565b604051602001611a899291906148e2565b604051602081830303815290604052915050919050565b6000818152600360205260408120610bbf90612bc3565b60148054611ac4906145bc565b80601f0160208091040260200160405190810160405280929190818152602001828054611af0906145bc565b8015611b3d5780601f10611b1257610100808354040283529160200191611b3d565b820191906000526020600020905b815481529060010190602001808311611b2057829003601f168201915b505050505081565b600082815260026020526040902060010154611b6081612204565b610cdf83836129a6565b611b72612492565b6040517f6f6e6c79626f7473206d696e7420617574686f72697a6174696f6e7c0000000060208201526bffffffffffffffffffffffff193360601b16603c82015260009060500160408051601f198184030181529082905280516020918201207f19457468657265756d205369676e6564204d6573736167653a0a33320000000091830191909152603c820152605c0160408051601f198184030181528282528051602091820120600080855291840180845281905260ff88169284019290925260608301869052608083018590529092509060019060a0016020604051602081039080840390855afa158015611c6d573d6000803e3d6000fd5b5050604051601f1901516013549092506001600160a01b038084169116149050611cda576013546040517f42d750dc0000000000000000000000000000000000000000000000000000000081526001600160a01b0391821660048201529082166024820152604401610dab565b5050336000908152600f60205260409020805460ff19166001179055505050565b60168181548110611d0b57600080fd5b600091825260209091206004909102018054600182015460028301546003840180546001600160a01b03909416955091939092909190611d4a906145bc565b80601f0160208091040260200160405190810160405280929190818152602001828054611d76906145bc565b8015611dc35780601f10611d9857610100808354040283529160200191611dc3565b820191906000526020600020905b815481529060010190602001808311611da657829003601f168201915b5050505050905084565b611dd56129e3565b6001600160a01b038116611e515760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201527f64647265737300000000000000000000000000000000000000000000000000006064820152608401610dab565b611e5a81612a42565b50565b7fa49807205ce4d355092ef5a8a18f56e8913cf4a201fbe287825b095693c21775611e8781612204565b6016548414611eb75760165460405163b6d1990b60e01b8152610dab918691600401918252602082015260400190565b60165415611f64576016805460009190611ed39060019061460c565b81548110611ee357611ee361461f565b90600052602060002090600402016001015490506000611f02600d5490565b905081601754611f129190614635565b8114611f5f576017546040517fdec8f3bb00000000000000000000000000000000000000000000000000000000815260048101839052602481019190915260448101839052606401610dab565b601755505b6000856001600160a01b031663a25f55d46040518163ffffffff1660e01b8152600401602060405180830381865afa158015611fa4573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611fc891906149e4565b90506000866001600160a01b03166398d5fdca6040518163ffffffff1660e01b8152600401602060405180830381865afa15801561200a573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061202e91906149e4565b905060166040518060800160405280896001600160a01b0316815260200184815260200183815260200187878080601f0160208091040260200160405190810160405280939291908181526020018383808284376000920182905250939094525050835460018082018655948252602091829020845160049092020180546001600160a01b0319166001600160a01b0390921691909117815590830151938101939093555060408101516002830155606081015190919060038201906120f490826149fd565b50505050505050505050565b6001546001600160a01b031690565b60008281526002602090815260408083206001600160a01b038516845290915290205460ff16610e9e5760008281526002602090815260408083206001600160a01b03851684529091529020805460ff1916600117905561216d3390565b6001600160a01b0316816001600160a01b0316837f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d60405160405180910390a45050565b60006115e4836001600160a01b038416612bcd565b60006001600160e01b031982167f780e9d63000000000000000000000000000000000000000000000000000000001480610bbf5750610bbf82612c1c565b611e5a8133612c8e565b6000818152600760205260409020546001600160a01b0316611e5a5760405162461bcd60e51b815260206004820152601860248201527f4552433732313a20696e76616c696420746f6b656e20494400000000000000006044820152606401610dab565b6000546001600160a01b0316801580159061229757506000816001600160a01b03163b115b15610e9e576040517fc61711340000000000000000000000000000000000000000000000000000000081523060048201526001600160a01b03838116602483015282169063c617113490604401602060405180830381865afa158015612301573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906123259190614abd565b610e9e576040517fede71dcc0000000000000000000000000000000000000000000000000000000081526001600160a01b0383166004820152602401610dab565b60006123718261136f565b9050806001600160a01b0316836001600160a01b0316036123fa5760405162461bcd60e51b815260206004820152602160248201527f4552433732313a20617070726f76616c20746f2063757272656e74206f776e6560448201527f72000000000000000000000000000000000000000000000000000000000000006064820152608401610dab565b336001600160a01b038216148061241657506124168133610a82565b6124885760405162461bcd60e51b815260206004820152603d60248201527f4552433732313a20617070726f76652063616c6c6572206973206e6f7420746f60448201527f6b656e206f776e6572206f7220617070726f76656420666f7220616c6c0000006064820152608401610dab565b610cdf8383612d03565b60045460ff16156114805760405162461bcd60e51b815260206004820152601060248201527f5061757361626c653a20706175736564000000000000000000000000000000006044820152606401610dab565b60006001600160801b038211156125645760405162461bcd60e51b815260206004820152602760248201527f53616665436173743a2076616c756520646f65736e27742066697420696e203160448201527f32382062697473000000000000000000000000000000000000000000000000006064820152608401610dab565b5090565b610e9e828260405180602001604052806000815250612d71565b60408051808201909152600080825260208201526000826017546125a69190614635565b905060006125b560018761460c565b6125bf908361460c565b905060018110806125cf57508181115b15612609576040517f706dc25300000000000000000000000000000000000000000000000000000000815260048101829052602401610dab565b600061261787423385612def565b9050600181108061262757508181115b15612661576040517fddbb4ac400000000000000000000000000000000000000000000000000000000815260048101829052602401610dab565b600081815260106020526040812054810361267c578161268c565b6000828152601060205260409020545b90508282146126d05760008381526010602052604081205490036126b057826126c0565b6000838152601060205260409020545b6000838152601060205260409020555b600083815260106020526040902054156126f4576000838152601060205260408120555b600181108061270257508581115b1561273c576040517f7b70ae4300000000000000000000000000000000000000000000000000000000815260048101829052602401610dab565b60006040518060400160405280896001600160801b03168152602001612761846124e5565b6001600160801b0390811690915260008b81526011602090815260409091208351918401518316600160801b0291909216179055955050505050509392505050565b6127ab612492565b6004805460ff191660011790557f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a2586127e03390565b6040516001600160a01b03909116815260200160405180910390a1565b612805612e63565b6004805460ff191690557f5db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa336127e0565b6128403382612eb5565b6128a25760405162461bcd60e51b815260206004820152602d60248201527f4552433732313a2063616c6c6572206973206e6f7420746f6b656e206f776e6560448201526c1c881bdc88185c1c1c9bdd9959609a1b6064820152608401610dab565b610cdf838383612f33565b6000806128c36001600160801b03841686614af0565b905060006128da6001600160801b03851687614b04565b905060006128f16001600160801b03861687614af0565b905060006129086001600160801b03871688614b04565b90506001600160801b03861661291e8285614b18565b6129289190614af0565b6129328385614b18565b61293c8387614b18565b6001600160801b0389166129508689614b18565b61295a9190614b18565b6129649190614635565b61296e9190614635565b6129789190614635565b98975050505050505050565b61298e828261210f565b6000828152600360205260409020610cdf90826121b1565b6129b08282613139565b6000828152600360205260409020610cdf90826131bc565b610cdf83838360405180602001604052806000815250611764565b336129ec6115b3565b6001600160a01b0316146114805760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610dab565b600180546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b60006115e483836131d1565b610e9e3383836131fb565b612ab53383612eb5565b612b175760405162461bcd60e51b815260206004820152602d60248201527f4552433732313a2063616c6c6572206973206e6f7420746f6b656e206f776e6560448201526c1c881bdc88185c1c1c9bdd9959609a1b6064820152608401610dab565b611062848484846132c9565b60606000612b3083613347565b600101905060008167ffffffffffffffff811115612b5057612b506143dc565b6040519080825280601f01601f191660200182016040528015612b7a576020820181803683370190505b5090508181016020015b600019017f3031323334353637383961626364656600000000000000000000000000000000600a86061a8153600a8504945084612b8457509392505050565b6000610bbf825490565b6000818152600183016020526040812054612c1457508154600181810184556000848152602080822090930184905584548482528286019093526040902091909155610bbf565b506000610bbf565b60006001600160e01b031982167f80ac58cd000000000000000000000000000000000000000000000000000000001480612c7f57506001600160e01b031982167f5b5e139f00000000000000000000000000000000000000000000000000000000145b80610bbf5750610bbf82613429565b60008281526002602090815260408083206001600160a01b038516845290915290205460ff16610e9e57612cc181613467565b612ccc836020613479565b604051602001612cdd929190614b2f565b60408051601f198184030181529082905262461bcd60e51b8252610dab9160040161413e565b600081815260096020526040902080546001600160a01b0319166001600160a01b0384169081179091558190612d388261136f565b6001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b612d7b838361365a565b612d8860008484846137f3565b610cdf5760405162461bcd60e51b815260206004820152603260248201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560448201527131b2b4bb32b91034b6b83632b6b2b73a32b960711b6064820152608401610dab565b600081858486604051602001612e2a9392919092835260609190911b6bffffffffffffffffffffffff19166020830152603482015260540190565b6040516020818303038152906040528051906020012060001c612e4d9190614b04565b612e58906001614635565b90505b949350505050565b60045460ff166114805760405162461bcd60e51b815260206004820152601460248201527f5061757361626c653a206e6f74207061757365640000000000000000000000006044820152606401610dab565b600080612ec18361136f565b9050806001600160a01b0316846001600160a01b03161480612f0857506001600160a01b038082166000908152600a602090815260408083209388168352929052205460ff165b80612e5b5750836001600160a01b0316612f2184610ca4565b6001600160a01b031614949350505050565b826001600160a01b0316612f468261136f565b6001600160a01b031614612faa5760405162461bcd60e51b815260206004820152602560248201527f4552433732313a207472616e736665722066726f6d20696e636f72726563742060448201526437bbb732b960d91b6064820152608401610dab565b6001600160a01b0382166130255760405162461bcd60e51b8152602060048201526024808201527f4552433732313a207472616e7366657220746f20746865207a65726f2061646460448201527f72657373000000000000000000000000000000000000000000000000000000006064820152608401610dab565b613032838383600161393c565b826001600160a01b03166130458261136f565b6001600160a01b0316146130a95760405162461bcd60e51b815260206004820152602560248201527f4552433732313a207472616e736665722066726f6d20696e636f72726563742060448201526437bbb732b960d91b6064820152608401610dab565b600081815260096020908152604080832080546001600160a01b03199081169091556001600160a01b0387811680865260088552838620805460001901905590871680865283862080546001019055868652600790945282852080549092168417909155905184937fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91a4505050565b60008281526002602090815260408083206001600160a01b038516845290915290205460ff1615610e9e5760008281526002602090815260408083206001600160a01b0385168085529252808320805460ff1916905551339285917ff6391f5c32d9c69d2a47ea670b442974b53935d1edc7fd64eb21e047a839171b9190a45050565b60006115e4836001600160a01b038416613bd6565b60008260000182815481106131e8576131e861461f565b9060005260206000200154905092915050565b816001600160a01b0316836001600160a01b03160361325c5760405162461bcd60e51b815260206004820152601960248201527f4552433732313a20617070726f766520746f2063616c6c6572000000000000006044820152606401610dab565b6001600160a01b038381166000818152600a6020908152604080832094871680845294825291829020805460ff191686151590811790915591519182527f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a3505050565b6132d4848484612f33565b6132e0848484846137f3565b6110625760405162461bcd60e51b815260206004820152603260248201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560448201527131b2b4bb32b91034b6b83632b6b2b73a32b960711b6064820152608401610dab565b6000807a184f03e93ff9f4daa797ed6e38ed64bf6a1f0100000000000000008310613390577a184f03e93ff9f4daa797ed6e38ed64bf6a1f010000000000000000830492506040015b6d04ee2d6d415b85acef810000000083106133bc576d04ee2d6d415b85acef8100000000830492506020015b662386f26fc1000083106133da57662386f26fc10000830492506010015b6305f5e10083106133f2576305f5e100830492506008015b612710831061340657612710830492506004015b60648310613418576064830492506002015b600a8310610bbf5760010192915050565b60006001600160e01b031982167f5a05180f000000000000000000000000000000000000000000000000000000001480610bbf5750610bbf82613cc9565b6060610bbf6001600160a01b03831660145b60606000613488836002614b18565b613493906002614635565b67ffffffffffffffff8111156134ab576134ab6143dc565b6040519080825280601f01601f1916602001820160405280156134d5576020820181803683370190505b5090507f30000000000000000000000000000000000000000000000000000000000000008160008151811061350c5761350c61461f565b60200101906001600160f81b031916908160001a9053507f7800000000000000000000000000000000000000000000000000000000000000816001815181106135575761355761461f565b60200101906001600160f81b031916908160001a905350600061357b846002614b18565b613586906001614635565b90505b600181111561360b577f303132333435363738396162636465660000000000000000000000000000000085600f16601081106135c7576135c761461f565b1a60f81b8282815181106135dd576135dd61461f565b60200101906001600160f81b031916908160001a90535060049490941c9361360481614bb0565b9050613589565b5083156115e45760405162461bcd60e51b815260206004820181905260248201527f537472696e67733a20686578206c656e67746820696e73756666696369656e746044820152606401610dab565b6001600160a01b0382166136b05760405162461bcd60e51b815260206004820181905260248201527f4552433732313a206d696e7420746f20746865207a65726f20616464726573736044820152606401610dab565b6000818152600760205260409020546001600160a01b0316156137155760405162461bcd60e51b815260206004820152601c60248201527f4552433732313a20746f6b656e20616c7265616479206d696e746564000000006044820152606401610dab565b61372360008383600161393c565b6000818152600760205260409020546001600160a01b0316156137885760405162461bcd60e51b815260206004820152601c60248201527f4552433732313a20746f6b656e20616c7265616479206d696e746564000000006044820152606401610dab565b6001600160a01b038216600081815260086020908152604080832080546001019055848352600790915280822080546001600160a01b0319168417905551839291907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b60006001600160a01b0384163b1561393457604051630a85bd0160e11b81526001600160a01b0385169063150b7a0290613837903390899088908890600401614bc7565b6020604051808303816000875af1925050508015613872575060408051601f3d908101601f1916820190925261386f91810190614bf9565b60015b61391a573d8080156138a0576040519150601f19603f3d011682016040523d82523d6000602084013e6138a5565b606091505b5080516000036139125760405162461bcd60e51b815260206004820152603260248201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560448201527131b2b4bb32b91034b6b83632b6b2b73a32b960711b6064820152608401610dab565b805181602001fd5b6001600160e01b031916630a85bd0160e11b149050612e5b565b506001612e5b565b613944612492565b61395084848484613d30565b8060011461398d576040517f518a5b8000000000000000000000000000000000000000000000000000000000815260048101829052602401610dab565b6001600160a01b0384161580156139a657506016546001105b15613b1b57336001600160a01b038416146139fe576040517f825311df0000000000000000000000000000000000000000000000000000000081523360048201526001600160a01b0384166024820152604401610dab565b6001600160a01b0383166000908152600f60205260409020805460ff16613a42576040516242cc1560e91b81526001600160a01b0385166004820152602401610dab565b60125474010000000000000000000000000000000000000000900460ff168015613a885750601654613a769060019061460c565b815461010090046001600160801b0316145b15613aca576040517f9ef298020000000000000000000000000000000000000000000000000000000081526001600160a01b0385166004820152602401610dab565b601654613add90610d269060019061460c565b81546001600160801b0391909116610100027fffffffffffffffffffffffffffffff00000000000000000000000000000000ff909116179055613b75565b601654600103613b75573360009081527fe5ebfa64fca8d502a8e50c1edffd2c31ef4dad5b396e65d9f397fb028f74abc5602052604090205460ff16613b75576040516242cc1560e91b8152336004820152602401610dab565b6001600160a01b03831661106257336001600160a01b03851614611062576040517f28cc2d240000000000000000000000000000000000000000000000000000000081523360048201526001600160a01b0385166024820152604401610dab565b60008181526001830160205260408120548015613cbf576000613bfa60018361460c565b8554909150600090613c0e9060019061460c565b9050818114613c73576000866000018281548110613c2e57613c2e61461f565b9060005260206000200154905080876000018481548110613c5157613c5161461f565b6000918252602080832090910192909255918252600188019052604090208390555b8554869080613c8457613c84614c16565b600190038181906000526020600020016000905590558560010160008681526020019081526020016000206000905560019350505050610bbf565b6000915050610bbf565b60006001600160e01b031982167f7965db0b000000000000000000000000000000000000000000000000000000001480610bbf57507f01ffc9a7000000000000000000000000000000000000000000000000000000006001600160e01b0319831614610bbf565b613d3c84848484613e71565b6001811115613db35760405162461bcd60e51b815260206004820152603560248201527f455243373231456e756d657261626c653a20636f6e736563757469766520747260448201527f616e7366657273206e6f7420737570706f7274656400000000000000000000006064820152608401610dab565b816001600160a01b038516613e0f57613e0a81600d80546000838152600e60205260408120829055600182018355919091527fd7b6990105719101dabeb77144f2a3385c8033acd3af97e9423a695e81ad1eb50155565b613e32565b836001600160a01b0316856001600160a01b031614613e3257613e328582613ef9565b6001600160a01b038416613e4e57613e4981613f96565b6115ac565b846001600160a01b0316846001600160a01b0316146115ac576115ac8482614045565b6001811115611062576001600160a01b03841615613eb7576001600160a01b03841660009081526008602052604081208054839290613eb190849061460c565b90915550505b6001600160a01b03831615611062576001600160a01b03831660009081526008602052604081208054839290613eee908490614635565b909155505050505050565b60006001613f06846113d4565b613f10919061460c565b6000838152600c6020526040902054909150808214613f63576001600160a01b0384166000908152600b602090815260408083208584528252808320548484528184208190558352600c90915290208190555b506000918252600c602090815260408084208490556001600160a01b039094168352600b81528383209183525290812055565b600d54600090613fa89060019061460c565b6000838152600e6020526040812054600d8054939450909284908110613fd057613fd061461f565b9060005260206000200154905080600d8381548110613ff157613ff161461f565b6000918252602080832090910192909255828152600e9091526040808220849055858252812055600d80548061402957614029614c16565b6001900381819060005260206000200160009055905550505050565b6000614050836113d4565b6001600160a01b039093166000908152600b602090815260408083208684528252808320859055938252600c9052919091209190915550565b6001600160e01b031981168114611e5a57600080fd5b6000602082840312156140b157600080fd5b81356115e481614089565b6001600160a01b0381168114611e5a57600080fd5b6000602082840312156140e357600080fd5b81356115e4816140bc565b60005b838110156141095781810151838201526020016140f1565b50506000910152565b6000815180845261412a8160208601602086016140ee565b601f01601f19169290920160200192915050565b6020815260006115e46020830184614112565b60006020828403121561416357600080fd5b5035919050565b6000806040838503121561417d57600080fd5b8235614188816140bc565b946020939093013593505050565b8015158114611e5a57600080fd5b6000602082840312156141b657600080fd5b81356115e481614196565b6000806000606084860312156141d657600080fd5b83356141e1816140bc565b925060208401356141f1816140bc565b929592945050506040919091013590565b6000806040838503121561421557600080fd5b50508035926020909101359150565b6000806040838503121561423757600080fd5b823591506020830135614249816140bc565b809150509250929050565b60008060006060848603121561426957600080fd5b833560ff8116811461427a57600080fd5b95602085013595506040909401359392505050565b60008083601f8401126142a157600080fd5b50813567ffffffffffffffff8111156142b957600080fd5b60208301915083602082850101111561108c57600080fd5b6000806000604084860312156142e657600080fd5b83359250602084013567ffffffffffffffff81111561430457600080fd5b6143108682870161428f565b9497909650939450505050565b6000806040838503121561433057600080fd5b823561433b816140bc565b9150602083013561424981614196565b80356001600160801b038116811461436257600080fd5b919050565b6000806040838503121561437a57600080fd5b6143838361434b565b91506143916020840161434b565b90509250929050565b600080602083850312156143ad57600080fd5b823567ffffffffffffffff8111156143c457600080fd5b6143d08582860161428f565b90969095509350505050565b634e487b7160e01b600052604160045260246000fd5b604051601f8201601f1916810167ffffffffffffffff8111828210171561441b5761441b6143dc565b604052919050565b600067ffffffffffffffff82111561443d5761443d6143dc565b50601f01601f191660200190565b6000806000806080858703121561446157600080fd5b843561446c816140bc565b9350602085013561447c816140bc565b925060408501359150606085013567ffffffffffffffff81111561449f57600080fd5b8501601f810187136144b057600080fd5b80356144c36144be82614423565b6143f2565b8181528860208385010111156144d857600080fd5b8160208401602083013760006020838301015280935050505092959194509250565b6000806040838503121561450d57600080fd5b8235614518816140bc565b91506020830135614249816140bc565b6001600160a01b03851681528360208201528260408201526080606082015260006145566080830184614112565b9695505050505050565b6000806000806060858703121561457657600080fd5b8435614581816140bc565b935060208501359250604085013567ffffffffffffffff8111156145a457600080fd5b6145b08782880161428f565b95989497509550505050565b600181811c908216806145d057607f821691505b6020821081036145f057634e487b7160e01b600052602260045260246000fd5b50919050565b634e487b7160e01b600052601160045260246000fd5b81810381811115610bbf57610bbf6145f6565b634e487b7160e01b600052603260045260246000fd5b80820180821115610bbf57610bbf6145f6565b601f821115610cdf57600081815260208120601f850160051c8101602086101561466f5750805b601f850160051c820191505b8181101561468e5782815560010161467b565b505050505050565b67ffffffffffffffff8311156146ae576146ae6143dc565b6146c2836146bc83546145bc565b83614648565b6000601f8411600181146146f657600085156146de5750838201355b600019600387901b1c1916600186901b1783556115ac565b600083815260209020601f19861690835b828110156147275786850135825560209485019460019092019101614707565b50868210156147445760001960f88860031b161c19848701351681555b505060018560011b0183555050505050565b600060018201614768576147686145f6565b5060010190565b606081526001600160a01b03845416606082015260006001808601546080840152600286015460a084015260038601608060c0850152600081546147b2816145bc565b8060e0880152610100858316600081146147d357600181146147ed5761481e565b60ff1984168983015282151560051b89018201945061481e565b8560005260208060002060005b858110156148155781548c82018601529089019082016147fa565b8b018401965050505b5050506001600160801b038816602087015250925061483b915050565b6001600160801b0383166040830152612e5b565b60006020828403121561486157600080fd5b815167ffffffffffffffff81111561487857600080fd5b8201601f8101841361488957600080fd5b80516148976144be82614423565b8181528560208385010111156148ac57600080fd5b6148bd8260208301602086016140ee565b95945050505050565b600081516148d88185602086016140ee565b9290920192915050565b7f697066733a2f2f0000000000000000000000000000000000000000000000000081526000600760008554614916816145bc565b6001828116801561492e57600181146149475761497a565b60ff19841688870152821515830288018601945061497a565b8960005260208060002060005b8581101561496f5781548b82018a0152908401908201614954565b505050858389010194505b507f2f0000000000000000000000000000000000000000000000000000000000000084526149aa818501896148c6565b9450505050506149d9817f2e6a736f6e0000000000000000000000000000000000000000000000000000009052565b600501949350505050565b6000602082840312156149f657600080fd5b5051919050565b815167ffffffffffffffff811115614a1757614a176143dc565b614a2b81614a2584546145bc565b84614648565b602080601f831160018114614a605760008415614a485750858301515b600019600386901b1c1916600185901b17855561468e565b600085815260208120601f198616915b82811015614a8f57888601518255948401946001909101908401614a70565b5085821015614aad5787850151600019600388901b60f8161c191681555b5050505050600190811b01905550565b600060208284031215614acf57600080fd5b81516115e481614196565b634e487b7160e01b600052601260045260246000fd5b600082614aff57614aff614ada565b500490565b600082614b1357614b13614ada565b500690565b8082028115828204841417610bbf57610bbf6145f6565b7f416363657373436f6e74726f6c3a206163636f756e7420000000000000000000815260008351614b678160178501602088016140ee565b7f206973206d697373696e6720726f6c65200000000000000000000000000000006017918401918201528351614ba48160288401602088016140ee565b01602801949350505050565b600081614bbf57614bbf6145f6565b506000190190565b60006001600160a01b038087168352808616602084015250836040830152608060608301526145566080830184614112565b600060208284031215614c0b57600080fd5b81516115e481614089565b634e487b7160e01b600052603160045260246000fdfea264697066735822122065ee9691b98491b26413fb899324538d46bc41d0b445c73acf6cfaad25835d5264736f6c63430008110033
Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)
000000000000000000000000daedecf3fc1505f0aae9103da81904c99d8f7eea0000000000000000000000000000000000000000000000000000000000000001
-----Decoded View---------------
Arg [0] : _deserializer (address): 0xdAEdecF3fC1505f0aAE9103dA81904C99D8F7eea
Arg [1] : _capMint (bool): True
-----Encoded View---------------
2 Constructor Arguments found :
Arg [0] : 000000000000000000000000daedecf3fc1505f0aae9103da81904c99d8f7eea
Arg [1] : 0000000000000000000000000000000000000000000000000000000000000001
Deployed Bytecode Sourcemap
1602:16933:19:-:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;6623:286;;;;;;;;;;-1:-1:-1;6623:286:19;;;;;:::i;:::-;;:::i;:::-;;;611:14:26;;604:22;586:41;;574:2;559:18;6623:286:19;;;;;;;;5763:107;;;;;;;;;;-1:-1:-1;5763:107:19;;;;;:::i;:::-;;:::i;2406:98:5:-;;;;;;;;;;;;;:::i;:::-;;;;;;;:::i;3870:167::-;;;;;;;;;;-1:-1:-1;3870:167:5;;;;;:::i;:::-;;:::i;:::-;;;-1:-1:-1;;;;;2176:55:26;;;2158:74;;2146:2;2131:18;3870:167:5;2012:226:26;16760:200:19;;;;;;;;;;-1:-1:-1;16760:200:19;;;;;:::i;:::-;;:::i;7697:831::-;;;:::i;5593:164::-;;;;;;;;;;-1:-1:-1;5593:164:19;;;;;:::i;:::-;;:::i;1629:111:6:-;;;;;;;;;;-1:-1:-1;1716:10:6;:17;1629:111;;;3078:25:26;;;3066:2;3051:18;1629:111:6;2932:177:26;6915:776:19;;;;;;;;;;-1:-1:-1;6915:776:19;;;;;:::i;:::-;;:::i;16966:208::-;;;;;;;;;;-1:-1:-1;16966:208:19;;;;;:::i;:::-;;:::i;4343:129:0:-;;;;;;;;;;-1:-1:-1;4343:129:0;;;;;:::i;:::-;4417:7;4443:12;;;:6;:12;;;;;:22;;;;4343:129;17657:269:19;;;;;;;;;;-1:-1:-1;17657:269:19;;;;;:::i;:::-;;:::i;:::-;;;;-1:-1:-1;;;;;4387:55:26;;;4369:74;;4474:2;4459:18;;4452:34;;;;4342:18;17657:269:19;4195:297:26;10146:118:19;;;;;;;;;;-1:-1:-1;10235:10:19;10203:4;10226:20;;;:8;:20;;;;;:31;;;10146:118;;4768:145:0;;;;;;;;;;-1:-1:-1;4768:145:0;;;;;:::i;:::-;;:::i;1305:253:6:-;;;;;;;;;;-1:-1:-1;1305:253:6;;;;;:::i;:::-;;:::i;9297:175:19:-;;;;;;:::i;:::-;;:::i;5877:214:0:-;;;;;;;;;;-1:-1:-1;5877:214:0;;;;;:::i;:::-;;:::i;4504:127:19:-;;;:::i;5876:139::-;;;;;;;;;;-1:-1:-1;5876:139:19;;;;;:::i;:::-;;:::i;17180:216::-;;;;;;;;;;-1:-1:-1;17180:216:19;;;;;:::i;:::-;;:::i;3683:31::-;;;;;;;;;;-1:-1:-1;3683:31:19;;;;-1:-1:-1;;;;;3683:31:19;;;1812:230:6;;;;;;;;;;-1:-1:-1;1812:230:6;;;;;:::i;:::-;;:::i;1608:84:21:-;;;;;;;;;;-1:-1:-1;1678:7:21;;;;1608:84;;2125:219:5;;;;;;;;;;-1:-1:-1;2125:219:5;;;;;:::i;:::-;;:::i;1864:204::-;;;;;;;;;;-1:-1:-1;1864:204:5;;;;;:::i;:::-;;:::i;1824:101:20:-;;;;;;;;;;;;;:::i;11458:474:19:-;;;;;;;;;;;;;:::i;:::-;;;;5429:25:26;;;5485:2;5470:18;;5463:34;;;;5513:18;;;5506:34;5417:2;5402:18;11458:474:19;5227:319:26;3133:60:19;;;;;;;;;;;;3170:23;3133:60;;6163:270;;;;;;;;;;-1:-1:-1;6163:270:19;;;;;:::i;:::-;;:::i;4367:131::-;;;;;;;;;;;;;:::i;1416:151:1:-;;;;;;;;;;-1:-1:-1;1416:151:1;;;;;:::i;:::-;;:::i;2860:145:0:-;;;;;;;;;;-1:-1:-1;2860:145:0;;;;;:::i;:::-;2946:4;2969:12;;;:6;:12;;;;;;;;-1:-1:-1;;;;;2969:29:0;;;;;;;;;;;;;;;2860:145;2568:102:5;;;;;;;;;;;;;:::i;1992:49:0:-;;;;;;;;;;-1:-1:-1;1992:49:0;2037:4;1992:49;;16535:219:19;;;;;;;;;;-1:-1:-1;16535:219:19;;;;;:::i;:::-;;:::i;10717:735::-;;;;;;;;;;-1:-1:-1;10717:735:19;;;;;:::i;:::-;;:::i;3385:46::-;;;;;;;;;;-1:-1:-1;3385:46:19;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;3385:46:19;;;;;;;7803:14:26;;7796:22;7778:41;;-1:-1:-1;;;;;7855:47:26;;;7850:2;7835:18;;7828:75;7751:18;3385:46:19;7610:299:26;1166:53:24;;;;;;;;;;-1:-1:-1;1166:53:24;;;;-1:-1:-1;;;;;1166:53:24;;;3614:25:19;;;;;;;;;;-1:-1:-1;3614:25:19;;;;-1:-1:-1;;;;;3614:25:19;;;6439:117;;;;;;;;;;-1:-1:-1;6439:117:19;;;;;:::i;:::-;;:::i;17402:249::-;;;;;;;;;;-1:-1:-1;17402:249:19;;;;;:::i;:::-;;:::i;2888:238:24:-;;;;;;;;;;-1:-1:-1;2888:238:24;;;;;:::i;:::-;;:::i;10270:441:19:-;;;;;;;;;;-1:-1:-1;10270:441:19;;;;;:::i;:::-;;:::i;6021:136::-;;;;;;;;;;-1:-1:-1;6021:136:19;;;;;:::i;:::-;;:::i;9478:662::-;;;;;;;;;;-1:-1:-1;9478:662:19;;;;;:::i;:::-;;:::i;1735:140:1:-;;;;;;;;;;-1:-1:-1;1735:140:1;;;;;:::i;:::-;;:::i;3645:32:19:-;;;;;;;;;;;;;:::i;5193:147:0:-;;;;;;;;;;-1:-1:-1;5193:147:0;;;;;:::i;:::-;;:::i;3550:40:19:-;;;;;;;;;;-1:-1:-1;3550:40:19;;;;-1:-1:-1;;;;;3550:40:19;;;8534:757;;;;;;;;;;-1:-1:-1;8534:757:19;;;;;:::i;:::-;;:::i;3199:66::-;;;;;;;;;;;;3239:26;3199:66;;4323:162:5;;;;;;;;;;-1:-1:-1;4323:162:5;;;;;:::i;:::-;-1:-1:-1;;;;;4443:25:5;;;4420:4;4443:25;;;:18;:25;;;;;;;;:35;;;;;;;;;;;;;;;4323:162;3721:35:19;;;;;;;;;;-1:-1:-1;3721:35:19;;;;;:::i;:::-;;:::i;:::-;;;;;;;;;;:::i;2074:198:20:-;;;;;;;;;;-1:-1:-1;2074:198:20;;;;;:::i;:::-;;:::i;4637:950:19:-;;;;;;;;;;-1:-1:-1;4637:950:19;;;;;:::i;:::-;;:::i;3496:47::-;;;;;;;;;;-1:-1:-1;3496:47:19;;;;;:::i;:::-;;;;;;;;;;;;-1:-1:-1;;;;;3496:47:19;;;;-1:-1:-1;;;3496:47:19;;;;;;;;;-1:-1:-1;;;;;12614:15:26;;;12596:34;;12666:15;;;;12661:2;12646:18;;12639:43;12516:18;3496:47:19;12369:319:26;6623:286:19;6792:4;-1:-1:-1;;;;;;6819:42:19;;6835:26;6819:42;;:83;;;6865:37;6889:12;6865:23;:37::i;:::-;6812:90;6623:286;-1:-1:-1;;6623:286:19:o;5763:107::-;3170:23;2470:16:0;2481:4;2470:10;:16::i;:::-;-1:-1:-1;5843:10:19::1;:20:::0;;-1:-1:-1;;;;;;5843:20:19::1;-1:-1:-1::0;;;;;5843:20:19;;;::::1;::::0;;;::::1;::::0;;5763:107::o;2406:98:5:-;2460:13;2492:5;2485:12;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;2406:98;:::o;3870:167::-;3946:7;3965:23;3980:7;3965:14;:23::i;:::-;-1:-1:-1;4006:24:5;;;;:15;:24;;;;;;-1:-1:-1;;;;;4006:24:5;;3870:167::o;16760:200:19:-;16897:8;2644:30:24;2665:8;2644:20;:30::i;:::-;16921:32:19::1;16935:8;16945:7;16921:13;:32::i;:::-;16760:200:::0;;;:::o;7697:831::-;1232:19:21;:17;:19::i;:::-;7756:13:19::1;:20:::0;7779:1:::1;-1:-1:-1::0;7752:79:19::1;;;7803:17;;-1:-1:-1::0;;;7803:17:19::1;;;;;;;;;;;7752:79;7880:13;:20:::0;7840:18:::1;::::0;7861:44:::1;::::0;7880:24:::1;::::0;7903:1:::1;::::0;7880:24:::1;:::i;:::-;7861:18;:44::i;:::-;7840:65;;7915:33;7951:13;7965:10;-1:-1:-1::0;;;;;7951:25:19::1;;;;;;;;;:::i;:::-;;;;;;;;;;;7915:61;;7986:18;8007:12;:18;;;7986:39;;8035:17;8055:12;:17;;;8035:37;;8100:10;8087:9;:23;8083:100;;8133:39;::::0;::::1;::::0;;::::1;::::0;::::1;13820:25:26::0;;;8162:9:19::1;13861:18:26::0;;;13854:34;13793:18;;8133:39:19::1;;;;;;;;8083:100;8193:15;8211:13;1716:10:6::0;:17;;1629:111;8211:13:19::1;:17;::::0;8227:1:::1;8211:17;:::i;:::-;8193:35;;8252:1;8242:7;:11;:50;;;;8282:9;8268:11;;:23;;;;:::i;:::-;8257:7;:35;8242:50;8238:111;;;8315:23;::::0;-1:-1:-1;;;8315:23:19;;::::1;::::0;::::1;3078:25:26::0;;;3051:18;;8315:23:19::1;2932:177:26::0;8238:111:19::1;8358:30;8368:10;8380:7;8358:9;:30::i;:::-;8398:18;8419:41;8429:7;8438:10;8450:9;8419;:41::i;:::-;8501:19;::::0;::::1;::::0;8475:46:::1;::::0;8398:62;;-1:-1:-1;;;;;;8475:46:19::1;::::0;8492:7;;8480:10:::1;::::0;8475:46:::1;::::0;;;::::1;7742:786;;;;;;7697:831::o:0;5593:164::-;3170:23;2470:16:0;2481:4;2470:10;:16::i;:::-;5669:6:19::1;5665:86;;;5691:8;:6;:8::i;:::-;5593:164:::0;;:::o;5665:86::-:1;5730:10;:8;:10::i;6915:776::-:0;3170:23;2470:16:0;2481:4;2470:10;:16::i;:::-;7054:13:19::1;:20:::0;7077:1:::1;-1:-1:-1::0;7050:111:19::1;;;7125:13;:20:::0;:24:::1;::::0;7148:1:::1;::::0;7125:24:::1;:::i;:::-;7101:49;;;;;;;;;3078:25:26::0;;3066:2;3051:18;;2932:177;7050:111:19::1;7171:33;7207:13;7221:1;7207:16;;;;;;;;:::i;:::-;;;;;;;;;;;7171:52;;7233:15;7251:13;1716:10:6::0;:17;;1629:111;7251:13:19::1;:17;::::0;7267:1:::1;7251:17;:::i;:::-;7298;::::0;;::::1;::::0;7233:35;;-1:-1:-1;7330:11:19;::::1;::::0;:34:::1;;;7355:9;7345:7;:19;7330:34;7326:95;;;7387:23;::::0;-1:-1:-1;;;7387:23:19;;::::1;::::0;::::1;3078:25:26::0;;;3051:18;;7387:23:19::1;2932:177:26::0;7326:95:19::1;7431:18;7452:75;;;;;;;;7479:1;-1:-1:-1::0;;;;;7452:75:19::1;;;;;7498:27;7517:7;7498:18;:27::i;:::-;-1:-1:-1::0;;;;;7452:75:19::1;::::0;;7431:96;-1:-1:-1;7538:37:19::1;7548:17:::0;7567:7;7538:9:::1;:37::i;:::-;7585:23;::::0;;;:14:::1;:23;::::0;;;;;;;:31;;;;::::1;::::0;-1:-1:-1;;;;;7585:31:19;;::::1;-1:-1:-1::0;;;7585:31:19;::::1;::::0;;;::::1;;::::0;;7631:53;7585:31;;7600:7;;-1:-1:-1;;;;;7631:53:19;::::1;::::0;::::1;::::0;::::1;6989:702;;;;6915:776:::0;;:::o;16966:208::-;17114:4;-1:-1:-1;;;;;2471:18:24;;2479:10;2471:18;2467:81;;2505:32;2526:10;2505:20;:32::i;:::-;17130:37:19::1;17149:4;17155:2;17159:7;17130:18;:37::i;:::-;16966:208:::0;;;;:::o;17657:269::-;17843:16;;17780;;;;-1:-1:-1;;;;;17843:16:19;17861:57;17872:10;3368:3;3312:4;17861:10;:57::i;:::-;17835:84;;;;17657:269;;;;;;:::o;4768:145:0:-;4417:7;4443:12;;;:6;:12;;;;;:22;;;2470:16;2481:4;2470:10;:16::i;:::-;4881:25:::1;4892:4;4898:7;4881:10;:25::i;1305:253:6:-:0;1402:7;1437:23;1454:5;1437:16;:23::i;:::-;1429:5;:31;1421:87;;;;-1:-1:-1;;;1421:87:6;;14231:2:26;1421:87:6;;;14213:21:26;14270:2;14250:18;;;14243:30;14309:34;14289:18;;;14282:62;14380:13;14360:18;;;14353:41;14411:19;;1421:87:6;14029:407:26;1421:87:6;-1:-1:-1;;;;;;1525:19:6;;;;;;;;:12;:19;;;;;;;;:26;;;;;;;;;1305:253::o;9297:175:19:-;1232:19:21;:17;:19::i;:::-;9428:21:19::1;9438:2;9442;9446;9428:9;:21::i;:::-;9459:6;:4;:6::i;5877:214:0:-:0;-1:-1:-1;;;;;5972:23:0;;719:10:3;5972:23:0;5964:83;;;;-1:-1:-1;;;5964:83:0;;14643:2:26;5964:83:0;;;14625:21:26;14682:2;14662:18;;;14655:30;14721:34;14701:18;;;14694:62;14792:17;14772:18;;;14765:45;14827:19;;5964:83:0;14441:411:26;5964:83:0;6058:26;6070:4;6076:7;6058:11;:26::i;4504:127:19:-;3239:26;2470:16:0;2481:4;2470:10;:16::i;:::-;4573:51:19::1;::::0;4581:10:::1;::::0;4602:21:::1;4573:51:::0;::::1;;;::::0;::::1;::::0;;;4602:21;4581:10;4573:51;::::1;;;;;;;;;;;;;::::0;::::1;;;;5876:139:::0;3170:23;2470:16:0;2481:4;2470:10;:16::i;:::-;-1:-1:-1;5972:16:19::1;:36:::0;;-1:-1:-1;;;;;;5972:36:19::1;-1:-1:-1::0;;;;;5972:36:19;;;::::1;::::0;;;::::1;::::0;;5876:139::o;17180:216::-;17332:4;-1:-1:-1;;;;;2471:18:24;;2479:10;2471:18;2467:81;;2505:32;2526:10;2505:20;:32::i;:::-;17348:41:19::1;17371:4;17377:2;17381:7;17348:22;:41::i;1812:230:6:-:0;1887:7;1922:30;1716:10;:17;;1629:111;1922:30;1914:5;:38;1906:95;;;;-1:-1:-1;;;1906:95:6;;15059:2:26;1906:95:6;;;15041:21:26;15098:2;15078:18;;;15071:30;15137:34;15117:18;;;15110:62;15208:14;15188:18;;;15181:42;15240:19;;1906:95:6;14857:408:26;1906:95:6;2018:10;2029:5;2018:17;;;;;;;;:::i;:::-;;;;;;;;;2011:24;;1812:230;;;:::o;2125:219:5:-;2197:7;6865:16;;;:7;:16;;;;;;-1:-1:-1;;;;;6865:16:5;;2259:56;;;;-1:-1:-1;;;2259:56:5;;15472:2:26;2259:56:5;;;15454:21:26;15511:2;15491:18;;;15484:30;15550:26;15530:18;;;15523:54;15594:18;;2259:56:5;15270:348:26;1864:204:5;1936:7;-1:-1:-1;;;;;1963:19:5;;1955:73;;;;-1:-1:-1;;;1955:73:5;;15825:2:26;1955:73:5;;;15807:21:26;15864:2;15844:18;;;15837:30;15903:34;15883:18;;;15876:62;15974:11;15954:18;;;15947:39;16003:19;;1955:73:5;15623:405:26;1955:73:5;-1:-1:-1;;;;;;2045:16:5;;;;;:9;:16;;;;;;;1864:204::o;1824:101:20:-;1087:13;:11;:13::i;:::-;1888:30:::1;1915:1;1888:18;:30::i;:::-;1824:101::o:0;11458:474:19:-;11547:7;11568;11589;11648:1;11625:13;:20;;;;:24;11621:79;;;11672:17;;-1:-1:-1;;;11672:17:19;;;;;;;;;;;11621:79;11730:13;:20;11709:18;;11730:24;;11753:1;;11730:24;:::i;:::-;11709:45;;11764:33;11800:13;11814:10;11800:25;;;;;;;;:::i;:::-;;;;;;;;;;;11764:61;;11843:10;11855:12;:18;;;11912:11;;11896:13;1716:10:6;:17;;1629:111;11896:13:19;:27;;;;:::i;:::-;11875:12;:17;;;:49;;;;:::i;:::-;11835:90;;;;;;;;11458:474;;;:::o;6163:270::-;3170:23;2470:16:0;2481:4;2470:10;:16::i;:::-;6283:13:19::1;:20:::0;6273:30;::::1;6269:115;;6352:13;:20:::0;6326:47:::1;::::0;-1:-1:-1;;;6326:47:19;;::::1;::::0;6344:6;;6326:47:::1;;13820:25:26::0;;;13876:2;13861:18;;13854:34;13808:2;13793:18;;13646:248;6269:115:19::1;6422:4;;6394:13;6408:6;6394:21;;;;;;;;:::i;:::-;;;;;;;;;;;:25;;:32;;;;;;;:::i;:::-;;6163:270:::0;;;;:::o;4367:131::-;4450:7;4476:15;1266:6:20;;-1:-1:-1;;;;;1266:6:20;;1194:85;4476:15:19;4469:22;;4367:131;:::o;1416:151:1:-;1506:7;1532:18;;;:12;:18;;;;;:28;;1554:5;1532:21;:28::i;:::-;1525:35;1416:151;-1:-1:-1;;;1416:151:1:o;2568:102:5:-;2624:13;2656:7;2649:14;;;;;:::i;16535:219:19:-;16680:8;2644:30:24;2665:8;2644:20;:30::i;:::-;16704:43:19::1;16728:8;16738;16704:23;:43::i;10717:735::-:0;10804:7;10823:14;10840:13;1716:10:6;:17;;1629:111;10840:13:19;10823:30;-1:-1:-1;10881:1:19;10863:15;10948:163;11004:11;-1:-1:-1;;;;;10984:31:19;:17;:31;10948:163;;;11063:13;11077:17;11063:32;;;;;;;;:::i;:::-;;;;;;;;;;;:37;;;11052:48;;;;;:::i;:::-;;-1:-1:-1;11017:19:19;;;;:::i;:::-;;;;10948:163;;;;11121:268;11139:6;11128:7;:17;11121:268;;11193:23;;;;:14;:23;;;;;:34;-1:-1:-1;;;;;11193:49:19;;;:34;;:49;:124;;;;-1:-1:-1;11262:23:19;;;;:14;:23;;;;;:37;-1:-1:-1;;;;;11262:55:19;;;-1:-1:-1;;;11262:37:19;;;;:55;11193:124;11172:207;;;11357:7;-1:-1:-1;11350:14:19;;-1:-1:-1;11350:14:19;11172:207;11147:9;;;;:::i;:::-;;;;11121:268;;;11406:39;;;;;-1:-1:-1;;;;;12614:15:26;;;11406:39:19;;;12596:34:26;12666:15;;12646:18;;;12639:43;12516:18;;11406:39:19;12369:319:26;6439:117:19;3170:23;2470:16:0;2481:4;2470:10;:16::i;:::-;6524:18:19::1;:25;6545:4:::0;;6524:18;:25:::1;:::i;17402:249::-:0;17581:4;-1:-1:-1;;;;;2471:18:24;;2479:10;2471:18;2467:81;;2505:32;2526:10;2505:20;:32::i;:::-;17597:47:19::1;17620:4;17626:2;17630:7;17639:4;17597:22;:47::i;2888:238:24:-:0;2997:7;:5;:7::i;:::-;-1:-1:-1;;;;;2983:21:24;:10;-1:-1:-1;;;;;2983:21:24;;2979:70;;3027:11;;;;;;;;;;;;;;2979:70;3058:22;:61;;-1:-1:-1;;;;;;3058:61:24;-1:-1:-1;;;;;3058:61:24;;;;;;;;;;2888:238::o;10270:441:19:-;7256:4:5;6865:16;;;:7;:16;;;;;;10329:13:19;;-1:-1:-1;;;;;6865:16:5;10354:80:19;;10399:24;;-1:-1:-1;;;10399:24:19;;;;;3078:25:26;;;3051:18;;10399:24:19;2932:177:26;10354:80:19;10444:18;10465:24;;;:14;:24;;;;;;;;10444:45;;;;;;;;;-1:-1:-1;;;;;10444:45:19;;;;;-1:-1:-1;;;10444:45:19;;;;;;;;;;;10503:24;10499:92;;10550:30;;-1:-1:-1;;;10550:30:19;;;;;3078:25:26;;;3051:18;;10550:30:19;2932:177:26;10499:92:19;10608:12;;10647:16;;10633:13;:31;;-1:-1:-1;;;;;10608:12:19;;;;:24;;-1:-1:-1;;;;;10633:31:19;;;;;;;;:::i;:::-;;;;;;;;;;;10666:5;:16;;;10684:5;:19;;;10608:96;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;10608:96:19;;;;;;;;;;;;:::i;6021:136::-;3170:23;2470:16:0;2481:4;2470:10;:16::i;:::-;-1:-1:-1;6122:12:19::1;:28:::0;;-1:-1:-1;;;;;;6122:28:19::1;-1:-1:-1::0;;;;;6122:28:19;;;::::1;::::0;;;::::1;::::0;;6021:136::o;9478:662::-;9544:13;9569:24;9584:8;9569:14;:24::i;:::-;9604:18;9625:24;;;:14;:24;;;;;;;;9604:45;;;;;;;;;-1:-1:-1;;;;;9604:45:19;;;;;-1:-1:-1;;;9604:45:19;;;;;;;;;;;9663:24;9659:92;;9710:30;;-1:-1:-1;;;9710:30:19;;;;;3078:25:26;;;3051:18;;9710:30:19;2932:177:26;9659:92:19;9785:13;:20;9765:16;;-1:-1:-1;;;;;9765:40:19;;9761:135;;9846:16;;9864:13;:20;9828:57;;-1:-1:-1;;;9828:57:19;;-1:-1:-1;;;;;20587:47:26;;;9828:57:19;;;20569:66:26;20651:18;;;20644:34;20542:18;;9828:57:19;20395:289:26;9761:135:19;9983:13;9997:5;:16;;;-1:-1:-1;;;;;9983:31:19;;;;;;;;;:::i;:::-;;;;;;;;;;;:35;;10057:37;10074:5;:19;;;-1:-1:-1;;;;;10057:37:19;:16;:37::i;:::-;9925:208;;;;;;;;;:::i;:::-;;;;;;;;;;;;;9906:227;;;9478:662;;;:::o;1735:140:1:-;1815:7;1841:18;;;:12;:18;;;;;:27;;:25;:27::i;3645:32:19:-;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::o;5193:147:0:-;4417:7;4443:12;;;:6;:12;;;;;:22;;;2470:16;2481:4;2470:10;:16::i;:::-;5307:26:::1;5319:4;5325:7;5307:11;:26::i;8534:757:19:-:0;1232:19:21;:17;:19::i;:::-;8922:60:19::1;::::0;22685:30:26;8922:60:19::1;::::0;::::1;22673:43:26::0;-1:-1:-1;;8971:10:19::1;22754:2:26::0;22750:15;22746:53;22732:12;;;22725:75;8788:12:19::1;::::0;22816::26;;8922:60:19::1;::::0;;-1:-1:-1;;8922:60:19;;::::1;::::0;;;;;;;8912:71;;8922:60:::1;8912:71:::0;;::::1;::::0;23081:66:26;8826:171:19;;::::1;23069:79:26::0;;;;23164:12;;;23157:28;23201:12;;8826:171:19::1;::::0;;-1:-1:-1;;8826:171:19;;::::1;::::0;;;;;;8803:204;;8826:171:::1;8803:204:::0;;::::1;::::0;9017:23:::1;9043:27:::0;;;;;::::1;::::0;;;23451:25:26;;;23524:4;23512:17;;23492:18;;;23485:45;;;;23546:18;;;23539:34;;;23589:18;;;23582:34;;;8803:204:19;;-1:-1:-1;9017:23:19;9043:27:::1;::::0;23423:19:26;;9043:27:19::1;;;;;;;;;;;;;;;;;;;;;::::0;::::1;;;;;-1:-1:-1::0;;9043:27:19::1;::::0;-1:-1:-1;;9043:27:19;;9103:10:::1;::::0;9043:27;;-1:-1:-1;;;;;;9084:29:19;;::::1;9103:10:::0;::::1;9084:29;::::0;-1:-1:-1;9080:112:19::1;;9153:10;::::0;9136:45:::1;::::0;::::1;::::0;;-1:-1:-1;;;;;9153:10:19;;::::1;9136:45;::::0;::::1;23862:34:26::0;23932:15;;;23912:18;;;23905:43;23774:18;;9136:45:19::1;23627:327:26::0;9080:112:19::1;-1:-1:-1::0;;9239:10:19::1;9202:25;9230:20:::0;;;:8:::1;:20;::::0;;;;9260:24;;-1:-1:-1;;9260:24:19::1;9280:4;9260:24;::::0;;-1:-1:-1;;;8534:757:19:o;3721:35::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;3721:35:19;;;;-1:-1:-1;3721:35:19;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::o;2074:198:20:-;1087:13;:11;:13::i;:::-;-1:-1:-1;;;;;2162:22:20;::::1;2154:73;;;::::0;-1:-1:-1;;;2154:73:20;;24161:2:26;2154:73:20::1;::::0;::::1;24143:21:26::0;24200:2;24180:18;;;24173:30;24239:34;24219:18;;;24212:62;24310:8;24290:18;;;24283:36;24336:19;;2154:73:20::1;23959:402:26::0;2154:73:20::1;2237:28;2256:8;2237:18;:28::i;:::-;2074:198:::0;:::o;4637:950:19:-;3170:23;2470:16:0;2481:4;2470:10;:16::i;:::-;4834:13:19::1;:20:::0;4816:38;::::1;4812:131;;4911:13;:20:::0;4877:55:::1;::::0;-1:-1:-1;;;4877:55:19;;::::1;::::0;4895:14;;4877:55:::1;;13820:25:26::0;;;13876:2;13861:18;;13854:34;13808:2;13793:18;;13646:248;4812:131:19::1;4957:13;:20:::0;:24;4953:392:::1;;5021:13;5035:20:::0;;4997:21:::1;::::0;5021:13;5035:24:::1;::::0;5058:1:::1;::::0;5035:24:::1;:::i;:::-;5021:39;;;;;;;;:::i;:::-;;;;;;;;;;;:44;;;4997:68;;5079:14;5096:13;1716:10:6::0;:17;;1629:111;5096:13:19::1;5079:30;;5152:13;5138:11;;:27;;;;:::i;:::-;5127:6;:39;5123:144;;5225:11;::::0;5193:59:::1;::::0;::::1;::::0;;::::1;::::0;::::1;5429:25:26::0;;;5470:18;;;5463:34;;;;5513:18;;;5506:34;;;5402:18;;5193:59:19::1;5227:319:26::0;5123:144:19::1;5314:11;:20:::0;-1:-1:-1;4953:392:19::1;5355:17;5375:16;-1:-1:-1::0;;;;;5375:29:19::1;;:31;;;;;;;;;;;;;;;;;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;5355:51;;5416:13;5432:16;-1:-1:-1::0;;;;;5432:25:19::1;;:27;;;;;;;;;;;;;;;;;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;5416:43;;5506:13;5525:54;;;;;;;;5538:16;-1:-1:-1::0;;;;;5525:54:19::1;;;;;5556:9;5525:54;;;;5567:5;5525:54;;;;5574:4;;5525:54;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;::::0;::::1;::::0;;;-1:-1:-1;5525:54:19;;;;-1:-1:-1;;5506:74:19;;::::1;::::0;;::::1;::::0;;;;;::::1;::::0;;;;;;::::1;::::0;;::::1;;::::0;;-1:-1:-1;;;;;;5506:74:19::1;-1:-1:-1::0;;;;;5506:74:19;;::::1;::::0;;;::::1;::::0;;;;::::1;::::0;;;::::1;::::0;;;;-1:-1:-1;5506:74:19::1;::::0;::::1;::::0;::::1;::::0;::::1;::::0;::::1;::::0;::::1;::::0;;;;::::1;::::0;::::1;::::0;::::1;::::0;;::::1;:::i;:::-;;;;4802:785;;4637:950:::0;;;;;:::o;1194:85:20:-;1266:6;;-1:-1:-1;;;;;1266:6:20;;1194:85::o;7426:233:0:-;2946:4;2969:12;;;:6;:12;;;;;;;;-1:-1:-1;;;;;2969:29:0;;;;;;;;;;;;7504:149;;7547:12;;;;:6;:12;;;;;;;;-1:-1:-1;;;;;7547:29:0;;;;;;;;;:36;;-1:-1:-1;;7547:36:0;7579:4;7547:36;;;7629:12;719:10:3;;640:96;7629:12:0;-1:-1:-1;;;;;7602:40:0;7620:7;-1:-1:-1;;;;;7602:40:0;7614:4;7602:40;;;;;;;;;;7426:233;;:::o;8297:150:7:-;8367:4;8390:50;8395:3;-1:-1:-1;;;;;8415:23:7;;8390:4;:50::i;1004:222:6:-;1106:4;-1:-1:-1;;;;;;1129:50:6;;1144:35;1129:50;;:90;;;1183:36;1207:11;1183:23;:36::i;3299:103:0:-;3365:30;3376:4;719:10:3;3365::0;:30::i;13401:133:5:-;7256:4;6865:16;;;:7;:16;;;;;;-1:-1:-1;;;;;6865:16:5;13474:53;;;;-1:-1:-1;;;13474:53:5;;15472:2:26;13474:53:5;;;15454:21:26;15511:2;15491:18;;;15484:30;15550:26;15530:18;;;15523:54;15594:18;;13474:53:5;15270:348:26;3323:482:24;3403:32;3438:22;-1:-1:-1;;;;;3438:22:24;3579:31;;;;;:68;;;3646:1;3622:8;-1:-1:-1;;;;;3614:29:24;;:33;3579:68;3575:224;;;3668:51;;;;;3703:4;3668:51;;;23862:34:26;-1:-1:-1;;;;;23932:15:26;;;23912:18;;;23905:43;3668:26:24;;;;;23774:18:26;;3668:51:24;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;3663:126;;3746:28;;;;;-1:-1:-1;;;;;2176:55:26;;3746:28:24;;;2158:74:26;2131:18;;3746:28:24;2012:226:26;3403:406:5;3483:13;3499:23;3514:7;3499:14;:23::i;:::-;3483:39;;3546:5;-1:-1:-1;;;;;3540:11:5;:2;-1:-1:-1;;;;;3540:11:5;;3532:57;;;;-1:-1:-1;;;3532:57:5;;26364:2:26;3532:57:5;;;26346:21:26;26403:2;26383:18;;;26376:30;26442:34;26422:18;;;26415:62;26513:3;26493:18;;;26486:31;26534:19;;3532:57:5;26162:397:26;3532:57:5;719:10:3;-1:-1:-1;;;;;3621:21:5;;;;:62;;-1:-1:-1;3646:37:5;3663:5;719:10:3;4323:162:5;:::i;3646:37::-;3600:170;;;;-1:-1:-1;;;3600:170:5;;26766:2:26;3600:170:5;;;26748:21:26;26805:2;26785:18;;;26778:30;26844:34;26824:18;;;26817:62;26915:31;26895:18;;;26888:59;26964:19;;3600:170:5;26564:425:26;3600:170:5;3781:21;3790:2;3794:7;3781:8;:21::i;1760:106:21:-;1678:7;;;;1829:9;1821:38;;;;-1:-1:-1;;;1821:38:21;;27196:2:26;1821:38:21;;;27178:21:26;27235:2;27215:18;;;27208:30;27274:18;27254;;;27247:46;27310:18;;1821:38:21;26994:340:26;9088:192:22;9145:7;-1:-1:-1;;;;;9172:26:22;;;9164:78;;;;-1:-1:-1;;;9164:78:22;;27541:2:26;9164:78:22;;;27523:21:26;27580:2;27560:18;;;27553:30;27619:34;27599:18;;;27592:62;27690:9;27670:18;;;27663:37;27717:19;;9164:78:22;27339:403:26;9164:78:22;-1:-1:-1;9267:5:22;9088:192::o;8066:108:5:-;8141:26;8151:2;8155:7;8141:26;;;;;;;;;;;;:9;:26::i;11938:2254:19:-;-1:-1:-1;;;;;;;;;;;;;;;;;12087:17:19;12121:10;12107:11;;:24;;;;:::i;:::-;12087:44;-1:-1:-1;12141:11:19;12168:12;12179:1;12168:8;:12;:::i;:::-;12155:26;;:9;:26;:::i;:::-;12141:40;;12201:1;12195:3;:7;:26;;;;12212:9;12206:3;:15;12195:26;12191:82;;;12244:18;;;;;;;;3078:25:26;;;3051:18;;12244::19;2932:177:26;12191:82:19;12283:14;12300:65;12322:8;12332:15;12349:10;12361:3;12300:21;:65::i;:::-;12283:82;;12388:1;12379:6;:10;:26;;;;12402:3;12393:6;:12;12379:26;12375:86;;;12428:22;;;;;;;;3078:25:26;;;3051:18;;12428:22:19;2932:177:26;12375:86:19;13562:21;13586:25;;;:17;:25;;;;;;:30;;:67;;13647:6;13586:67;;;13619:25;;;;:17;:25;;;;;;13586:67;13562:91;;13677:3;13667:6;:13;13663:130;;13724:22;;;;:17;:22;;;;;;:27;;:58;;13779:3;13724:58;;;13754:22;;;;:17;:22;;;;;;13724:58;13696:25;;;;:17;:25;;;;;:86;13663:130;13806:22;;;;:17;:22;;;;;;:27;13802:84;;13874:1;13849:22;;;:17;:22;;;;;:26;13802:84;13916:1;13900:13;:17;:47;;;;13937:10;13921:13;:26;13900:47;13896:112;;;13970:27;;;;;;;;3078:25:26;;;3051:18;;13970:27:19;2932:177:26;13896:112:19;14018:18;14039:82;;;;;;;;14058:11;-1:-1:-1;;;;;14039:82:19;;;;;14086:33;14105:13;14086:18;:33::i;:::-;-1:-1:-1;;;;;14039:82:19;;;;;;14131:24;;;;:14;:24;;;;;;;;:32;;;;;;;;-1:-1:-1;;;14131:32:19;;;;;;;;14018:103;-1:-1:-1;;;;;;11938:2254:19;;;;;:::o;2179:115:21:-;1232:19;:17;:19::i;:::-;2238:7:::1;:14:::0;;-1:-1:-1;;2238:14:21::1;2248:4;2238:14;::::0;;2267:20:::1;2274:12;719:10:3::0;;640:96;2274:12:21::1;2267:20;::::0;-1:-1:-1;;;;;2176:55:26;;;2158:74;;2146:2;2131:18;2267:20:21::1;;;;;;;2179:115::o:0;2426:117::-;1479:16;:14;:16::i;:::-;2484:7:::1;:15:::0;;-1:-1:-1;;2484:15:21::1;::::0;;2514:22:::1;719:10:3::0;2523:12:21::1;640:96:3::0;4547:326:5;4736:41;719:10:3;4769:7:5;4736:18;:41::i;:::-;4728:99;;;;-1:-1:-1;;;4728:99:5;;27949:2:26;4728:99:5;;;27931:21:26;27988:2;27968:18;;;27961:30;28027:34;28007:18;;;28000:62;-1:-1:-1;;;28078:18:26;;;28071:43;28131:19;;4728:99:5;27747:409:26;4728:99:5;4838:28;4848:4;4854:2;4858:7;4838:9;:28::i;18099:434:19:-;18216:7;;18253:12;-1:-1:-1;;;;;18253:12:19;;:4;:12;:::i;:::-;18235:30;-1:-1:-1;18275:15:19;18293:12;-1:-1:-1;;;;;18293:12:19;;:4;:12;:::i;:::-;18275:30;-1:-1:-1;18315:16:19;18334:13;-1:-1:-1;;;;;18334:13:19;;:5;:13;:::i;:::-;18315:32;-1:-1:-1;18357:16:19;18376:13;-1:-1:-1;;;;;18376:13:19;;:5;:13;:::i;:::-;18357:32;-1:-1:-1;;;;;;18497:28:19;;18498:18;18357:32;18498:7;:18;:::i;:::-;18497:28;;;;:::i;:::-;18474:18;18484:8;18474:7;:18;:::i;:::-;18451;18461:8;18451:7;:18;:::i;:::-;-1:-1:-1;;;;;18420:26:19;;:18;18430:8;18420:7;:18;:::i;:::-;:26;;;;:::i;:::-;18419:51;;;;:::i;:::-;:74;;;;:::i;:::-;:107;;;;:::i;:::-;18400:126;18099:434;-1:-1:-1;;;;;;;;18099:434:19:o;1963:166:1:-;2050:31;2067:4;2073:7;2050:16;:31::i;:::-;2091:18;;;;:12;:18;;;;;:31;;2114:7;2091:22;:31::i;2218:171::-;2306:32;2324:4;2330:7;2306:17;:32::i;:::-;2348:18;;;;:12;:18;;;;;:34;;2374:7;2348:25;:34::i;4939:179:5:-;5072:39;5089:4;5095:2;5099:7;5072:39;;;;;;;;;;;;:16;:39::i;1352:130:20:-;719:10:3;1415:7:20;:5;:7::i;:::-;-1:-1:-1;;;;;1415:23:20;;1407:68;;;;-1:-1:-1;;;1407:68:20;;28967:2:26;1407:68:20;;;28949:21:26;;;28986:18;;;28979:30;29045:34;29025:18;;;29018:62;29097:18;;1407:68:20;28765:356:26;2426:187:20;2518:6;;;-1:-1:-1;;;;;2534:17:20;;;-1:-1:-1;;;;;;2534:17:20;;;;;;;2566:40;;2518:6;;;2534:17;2518:6;;2566:40;;2499:16;;2566:40;2489:124;2426:187;:::o;9555:156:7:-;9629:7;9679:22;9683:3;9695:5;9679:3;:22::i;4104:153:5:-;4198:52;719:10:3;4231:8:5;4241;4198:18;:52::i;5184:314::-;5352:41;719:10:3;5385:7:5;5352:18;:41::i;:::-;5344:99;;;;-1:-1:-1;;;5344:99:5;;27949:2:26;5344:99:5;;;27931:21:26;27988:2;27968:18;;;27961:30;28027:34;28007:18;;;28000:62;-1:-1:-1;;;28078:18:26;;;28071:43;28131:19;;5344:99:5;27747:409:26;5344:99:5;5453:38;5467:4;5473:2;5477:7;5486:4;5453:13;:38::i;410:696:23:-;466:13;515:14;532:17;543:5;532:10;:17::i;:::-;552:1;532:21;515:38;;567:20;601:6;590:18;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;590:18:23;-1:-1:-1;567:41:23;-1:-1:-1;728:28:23;;;744:2;728:28;783:280;-1:-1:-1;;814:5:23;953:8;948:2;937:14;;932:30;814:5;919:44;1007:2;998:11;;;-1:-1:-1;1027:21:23;783:280;1027:21;-1:-1:-1;1083:6:23;410:696;-1:-1:-1;;;410:696:23:o;9098:115:7:-;9161:7;9187:19;9195:3;4537:18;;4455:107;2206:404;2269:4;4343:19;;;:12;;;:19;;;;;;2285:319;;-1:-1:-1;2327:23:7;;;;;;;;:11;:23;;;;;;;;;;;;;2507:18;;2485:19;;;:12;;;:19;;;;;;:40;;;;2539:11;;2285:319;-1:-1:-1;2588:5:7;2581:12;;1505:300:5;1607:4;-1:-1:-1;;;;;;1642:40:5;;1657:25;1642:40;;:104;;-1:-1:-1;;;;;;;1698:48:5;;1713:33;1698:48;1642:104;:156;;;;1762:36;1786:11;1762:23;:36::i;3683:479:0:-;2946:4;2969:12;;;:6;:12;;;;;;;;-1:-1:-1;;;;;2969:29:0;;;;;;;;;;;;3766:390;;3954:28;3974:7;3954:19;:28::i;:::-;4053:38;4081:4;4088:2;4053:19;:38::i;:::-;3861:252;;;;;;;;;:::i;:::-;;;;-1:-1:-1;;3861:252:0;;;;;;;;;;-1:-1:-1;;;3809:336:0;;;;;;;:::i;12703:171:5:-;12777:24;;;;:15;:24;;;;;:29;;-1:-1:-1;;;;;;12777:29:5;-1:-1:-1;;;;;12777:29:5;;;;;;;;:24;;12830:23;12777:24;12830:14;:23::i;:::-;-1:-1:-1;;;;;12821:46:5;;;;;;;;;;;12703:171;;:::o;8395:309::-;8519:18;8525:2;8529:7;8519:5;:18::i;:::-;8568:53;8599:1;8603:2;8607:7;8616:4;8568:22;:53::i;:::-;8547:150;;;;-1:-1:-1;;;8547:150:5;;30145:2:26;8547:150:5;;;30127:21:26;30184:2;30164:18;;;30157:30;30223:34;30203:18;;;30196:62;-1:-1:-1;;;30274:18:26;;;30267:48;30332:19;;8547:150:5;29943:414:26;14198:347:19;14361:7;14531:2;14491:8;14501:7;14510:15;14474:52;;;;;;;;;30547:19:26;;;30604:2;30600:15;;;;-1:-1:-1;;30596:53:26;30591:2;30582:12;;30575:75;30675:2;30666:12;;30659:28;30712:2;30703:12;;30362:359;14474:52:19;;;;;;;;;;;;;14464:63;;;;;;14456:72;;:77;;;;:::i;:::-;14455:83;;14537:1;14455:83;:::i;:::-;14448:90;;14198:347;;;;;;;:::o;1938:106:21:-;1678:7;;;;1996:41;;;;-1:-1:-1;;;1996:41:21;;30928:2:26;1996:41:21;;;30910:21:26;30967:2;30947:18;;;30940:30;31006:22;30986:18;;;30979:50;31046:18;;1996:41:21;30726:344:26;7475:261:5;7568:4;7584:13;7600:23;7615:7;7600:14;:23::i;:::-;7584:39;;7652:5;-1:-1:-1;;;;;7641:16:5;:7;-1:-1:-1;;;;;7641:16:5;;:52;;;-1:-1:-1;;;;;;4443:25:5;;;4420:4;4443:25;;;:18;:25;;;;;;;;:35;;;;;;;;;;;;7661:32;7641:87;;;;7721:7;-1:-1:-1;;;;;7697:31:5;:20;7709:7;7697:11;:20::i;:::-;-1:-1:-1;;;;;7697:31:5;;7633:96;7475:261;-1:-1:-1;;;;7475:261:5:o;11358:1233::-;11512:4;-1:-1:-1;;;;;11485:31:5;:23;11500:7;11485:14;:23::i;:::-;-1:-1:-1;;;;;11485:31:5;;11477:81;;;;-1:-1:-1;;;11477:81:5;;31277:2:26;11477:81:5;;;31259:21:26;31316:2;31296:18;;;31289:30;31355:34;31335:18;;;31328:62;-1:-1:-1;;;31406:18:26;;;31399:35;31451:19;;11477:81:5;31075:401:26;11477:81:5;-1:-1:-1;;;;;11576:16:5;;11568:65;;;;-1:-1:-1;;;11568:65:5;;31683:2:26;11568:65:5;;;31665:21:26;31722:2;31702:18;;;31695:30;31761:34;31741:18;;;31734:62;31832:6;31812:18;;;31805:34;31856:19;;11568:65:5;31481:400:26;11568:65:5;11644:42;11665:4;11671:2;11675:7;11684:1;11644:20;:42::i;:::-;11813:4;-1:-1:-1;;;;;11786:31:5;:23;11801:7;11786:14;:23::i;:::-;-1:-1:-1;;;;;11786:31:5;;11778:81;;;;-1:-1:-1;;;11778:81:5;;31277:2:26;11778:81:5;;;31259:21:26;31316:2;31296:18;;;31289:30;31355:34;31335:18;;;31328:62;-1:-1:-1;;;31406:18:26;;;31399:35;31451:19;;11778:81:5;31075:401:26;11778:81:5;11928:24;;;;:15;:24;;;;;;;;11921:31;;-1:-1:-1;;;;;;11921:31:5;;;;;;-1:-1:-1;;;;;12396:15:5;;;;;;:9;:15;;;;;:20;;-1:-1:-1;;12396:20:5;;;12430:13;;;;;;;;;:18;;11921:31;12430:18;;;12468:16;;;:7;:16;;;;;;:21;;;;;;;;;;12505:27;;11944:7;;12505:27;;;16760:200:19;;;:::o;7830:234:0:-;2946:4;2969:12;;;:6;:12;;;;;;;;-1:-1:-1;;;;;2969:29:0;;;;;;;;;;;;7909:149;;;7983:5;7951:12;;;:6;:12;;;;;;;;-1:-1:-1;;;;;7951:29:0;;;;;;;;;;:37;;-1:-1:-1;;7951:37:0;;;8007:40;719:10:3;;7951:12:0;;8007:40;;7983:5;8007:40;7830:234;;:::o;8615:156:7:-;8688:4;8711:53;8719:3;-1:-1:-1;;;;;8739:23:7;;8711:7;:53::i;4904:118::-;4971:7;4997:3;:11;;5009:5;4997:18;;;;;;;;:::i;:::-;;;;;;;;;4990:25;;4904:118;;;;:::o;13010:307:5:-;13160:8;-1:-1:-1;;;;;13151:17:5;:5;-1:-1:-1;;;;;13151:17:5;;13143:55;;;;-1:-1:-1;;;13143:55:5;;32088:2:26;13143:55:5;;;32070:21:26;32127:2;32107:18;;;32100:30;32166:27;32146:18;;;32139:55;32211:18;;13143:55:5;31886:349:26;13143:55:5;-1:-1:-1;;;;;13208:25:5;;;;;;;:18;:25;;;;;;;;:35;;;;;;;;;;;;;:46;;-1:-1:-1;;13208:46:5;;;;;;;;;;13269:41;;586::26;;;13269::5;;559:18:26;13269:41:5;;;;;;;13010:307;;;:::o;6359:305::-;6509:28;6519:4;6525:2;6529:7;6509:9;:28::i;:::-;6555:47;6578:4;6584:2;6588:7;6597:4;6555:22;:47::i;:::-;6547:110;;;;-1:-1:-1;;;6547:110:5;;30145:2:26;6547:110:5;;;30127:21:26;30184:2;30164:18;;;30157:30;30223:34;30203:18;;;30196:62;-1:-1:-1;;;30274:18:26;;;30267:48;30332:19;;6547:110:5;29943:414:26;9889:890:16;9942:7;;10026:6;10017:15;;10013:99;;10061:6;10052:15;;;-1:-1:-1;10095:2:16;10085:12;10013:99;10138:6;10129:5;:15;10125:99;;10173:6;10164:15;;;-1:-1:-1;10207:2:16;10197:12;10125:99;10250:6;10241:5;:15;10237:99;;10285:6;10276:15;;;-1:-1:-1;10319:2:16;10309:12;10237:99;10362:5;10353;:14;10349:96;;10396:5;10387:14;;;-1:-1:-1;10429:1:16;10419:11;10349:96;10471:5;10462;:14;10458:96;;10505:5;10496:14;;;-1:-1:-1;10538:1:16;10528:11;10458:96;10580:5;10571;:14;10567:96;;10614:5;10605:14;;;-1:-1:-1;10647:1:16;10637:11;10567:96;10689:5;10680;:14;10676:64;;10724:1;10714:11;10766:6;9889:890;-1:-1:-1;;9889:890:16:o;619:212:1:-;704:4;-1:-1:-1;;;;;;727:57:1;;742:42;727:57;;:97;;;788:36;812:11;788:23;:36::i;2097:149:23:-;2155:13;2187:52;-1:-1:-1;;;;;2199:22:23;;306:2;1508:437;1583:13;1608:19;1640:10;1644:6;1640:1;:10;:::i;:::-;:14;;1653:1;1640:14;:::i;:::-;1630:25;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;1630:25:23;;1608:47;;1665:15;:6;1672:1;1665:9;;;;;;;;:::i;:::-;;;;:15;-1:-1:-1;;;;;1665:15:23;;;;;;;;;1690;:6;1697:1;1690:9;;;;;;;;:::i;:::-;;;;:15;-1:-1:-1;;;;;1690:15:23;;;;;;;;-1:-1:-1;1720:9:23;1732:10;1736:6;1732:1;:10;:::i;:::-;:14;;1745:1;1732:14;:::i;:::-;1720:26;;1715:128;1752:1;1748;:5;1715:128;;;1786:8;1795:5;1803:3;1795:11;1786:21;;;;;;;:::i;:::-;;;;1774:6;1781:1;1774:9;;;;;;;;:::i;:::-;;;;:33;-1:-1:-1;;;;;1774:33:23;;;;;;;;-1:-1:-1;1831:1:23;1821:11;;;;;1755:3;;;:::i;:::-;;;1715:128;;;-1:-1:-1;1860:10:23;;1852:55;;;;-1:-1:-1;;;1852:55:23;;32583:2:26;1852:55:23;;;32565:21:26;;;32602:18;;;32595:30;32661:34;32641:18;;;32634:62;32713:18;;1852:55:23;32381:356:26;9026:920:5;-1:-1:-1;;;;;9105:16:5;;9097:61;;;;-1:-1:-1;;;9097:61:5;;32944:2:26;9097:61:5;;;32926:21:26;;;32963:18;;;32956:30;33022:34;33002:18;;;32995:62;33074:18;;9097:61:5;32742:356:26;9097:61:5;7256:4;6865:16;;;:7;:16;;;;;;-1:-1:-1;;;;;6865:16:5;7279:31;9168:58;;;;-1:-1:-1;;;9168:58:5;;33305:2:26;9168:58:5;;;33287:21:26;33344:2;33324:18;;;33317:30;33383;33363:18;;;33356:58;33431:18;;9168:58:5;33103:352:26;9168:58:5;9237:48;9266:1;9270:2;9274:7;9283:1;9237:20;:48::i;:::-;7256:4;6865:16;;;:7;:16;;;;;;-1:-1:-1;;;;;6865:16:5;7279:31;9372:58;;;;-1:-1:-1;;;9372:58:5;;33305:2:26;9372:58:5;;;33287:21:26;33344:2;33324:18;;;33317:30;33383;33363:18;;;33356:58;33431:18;;9372:58:5;33103:352:26;9372:58:5;-1:-1:-1;;;;;9772:13:5;;;;;;:9;:13;;;;;;;;:18;;9789:1;9772:18;;;9811:16;;;:7;:16;;;;;;:21;;-1:-1:-1;;;;;;9811:21:5;;;;;9848:33;9819:7;;9772:13;;9848:33;;9772:13;;9848:33;5593:164:19;;:::o;14086:831:5:-;14235:4;-1:-1:-1;;;;;14255:13:5;;1465:19:2;:23;14251:660:5;;14290:71;;-1:-1:-1;;;14290:71:5;;-1:-1:-1;;;;;14290:36:5;;;;;:71;;719:10:3;;14341:4:5;;14347:7;;14356:4;;14290:71;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;-1:-1:-1;14290:71:5;;;;;;;;-1:-1:-1;;14290:71:5;;;;;;;;;;;;:::i;:::-;;;14286:573;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;14528:6;:13;14545:1;14528:18;14524:321;;14570:60;;-1:-1:-1;;;14570:60:5;;30145:2:26;14570:60:5;;;30127:21:26;30184:2;30164:18;;;30157:30;30223:34;30203:18;;;30196:62;-1:-1:-1;;;30274:18:26;;;30267:48;30332:19;;14570:60:5;29943:414:26;14524:321:5;14797:6;14791:13;14782:6;14778:2;14774:15;14767:38;14286:573;-1:-1:-1;;;;;;14411:51:5;-1:-1:-1;;;14411:51:5;;-1:-1:-1;14404:58:5;;14251:660;-1:-1:-1;14896:4:5;14889:11;;15101:1402:19;1232:19:21;:17;:19::i;:::-;15281:56:19::1;15308:4;15314:2;15318:7;15327:9;15281:26;:56::i;:::-;15352:9;15365:1;15352:14;15348:86;;15389:34;::::0;::::1;::::0;;::::1;::::0;::::1;3078:25:26::0;;;3051:18;;15389:34:19::1;2932:177:26::0;15348:86:19::1;-1:-1:-1::0;;;;;15581:18:19;::::1;::::0;:46;::::1;;;-1:-1:-1::0;15603:13:19::1;:20:::0;15626:1:::1;-1:-1:-1::0;15581:46:19::1;15577:764;;;15647:10;-1:-1:-1::0;;;;;15647:16:19;::::1;;15643:96;;15690:34;::::0;::::1;::::0;;15709:10:::1;15690:34;::::0;::::1;23862::26::0;-1:-1:-1;;;;;23932:15:26;;23912:18;;;23905:43;23774:18;;15690:34:19::1;23627:327:26::0;15643:96:19::1;-1:-1:-1::0;;;;;15781:12:19;::::1;15753:25;15781:12:::0;;;:8:::1;:12;::::0;;;;15812:17;;::::1;;15807:88;;15856:24;::::0;-1:-1:-1;;;15856:24:19;;-1:-1:-1;;;;;2176:55:26;;15856:24:19::1;::::0;::::1;2158:74:26::0;2131:18;;15856:24:19::1;2012:226:26::0;15807:88:19::1;15912:7;::::0;;;::::1;;;:61:::0;::::1;;;-1:-1:-1::0;15949:13:19::1;:20:::0;:24:::1;::::0;15972:1:::1;::::0;15949:24:::1;:::i;:::-;15923:22:::0;;::::1;::::0;::::1;-1:-1:-1::0;;;;;15923:22:19::1;:50;15912:61;15908:131;;;16000:24;::::0;::::1;::::0;;-1:-1:-1;;;;;2176:55:26;;16000:24:19::1;::::0;::::1;2158:74:26::0;2131:18;;16000:24:19::1;2012:226:26::0;15908:131:19::1;16096:13;:20:::0;16077:44:::1;::::0;16096:24:::1;::::0;16119:1:::1;::::0;16096:24:::1;:::i;16077:44::-;16052:69:::0;;-1:-1:-1;;;;;16052:69:19;;;::::1;;;::::0;;;::::1;;::::0;;15577:764:::1;;;16142:13;:20:::0;16166:1:::1;16142:25:::0;16138:203:::1;;16246:10;2946:4:0::0;2969:29;;;:12;;:29;:12;:29;;;;;16221:110:19::1;;16284:32;::::0;-1:-1:-1;;;16284:32:19;;16305:10:::1;16284:32;::::0;::::1;2158:74:26::0;2131:18;;16284:32:19::1;2012:226:26::0;16221:110:19::1;-1:-1:-1::0;;;;;16355:16:19;::::1;16351:146;;16391:10;-1:-1:-1::0;;;;;16391:18:19;::::1;;16387:100;;16436:36;::::0;::::1;::::0;;16455:10:::1;16436:36;::::0;::::1;23862:34:26::0;-1:-1:-1;;;;;23932:15:26;;23912:18;;;23905:43;23774:18;;16436:36:19::1;23627:327:26::0;2778:1388:7;2844:4;2981:19;;;:12;;;:19;;;;;;3015:15;;3011:1149;;3384:21;3408:14;3421:1;3408:10;:14;:::i;:::-;3456:18;;3384:38;;-1:-1:-1;3436:17:7;;3456:22;;3477:1;;3456:22;:::i;:::-;3436:42;;3510:13;3497:9;:26;3493:398;;3543:17;3563:3;:11;;3575:9;3563:22;;;;;;;;:::i;:::-;;;;;;;;;3543:42;;3714:9;3685:3;:11;;3697:13;3685:26;;;;;;;;:::i;:::-;;;;;;;;;;;;:38;;;;3797:23;;;:12;;;:23;;;;;:36;;;3493:398;3969:17;;:3;;:17;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;4061:3;:12;;:19;4074:5;4061:19;;;;;;;;;;;4054:26;;;4102:4;4095:11;;;;;;;3011:1149;4144:5;4137:12;;;;;2571:202:0;2656:4;-1:-1:-1;;;;;;2679:47:0;;2694:32;2679:47;;:87;;-1:-1:-1;952:25:4;-1:-1:-1;;;;;;937:40:4;;;2730:36:0;829:155:4;2111:890:6;2282:61;2309:4;2315:2;2319:12;2333:9;2282:26;:61::i;:::-;2370:1;2358:9;:13;2354:219;;;2499:63;;-1:-1:-1;;;2499:63:6;;34633:2:26;2499:63:6;;;34615:21:26;34672:2;34652:18;;;34645:30;34711:34;34691:18;;;34684:62;34782:23;34762:18;;;34755:51;34823:19;;2499:63:6;34431:417:26;2354:219:6;2601:12;-1:-1:-1;;;;;2628:18:6;;2624:183;;2662:40;2694:7;3810:10;:17;;3783:24;;;;:15;:24;;;;;:44;;;3837:24;;;;;;;;;;;;3707:161;2662:40;2624:183;;;2731:2;-1:-1:-1;;;;;2723:10:6;:4;-1:-1:-1;;;;;2723:10:6;;2719:88;;2749:47;2782:4;2788:7;2749:32;:47::i;:::-;-1:-1:-1;;;;;2820:16:6;;2816:179;;2852:45;2889:7;2852:36;:45::i;:::-;2816:179;;;2924:4;-1:-1:-1;;;;;2918:10:6;:2;-1:-1:-1;;;;;2918:10:6;;2914:81;;2944:40;2972:2;2976:7;2944:27;:40::i;15633:396:5:-;15817:1;15805:9;:13;15801:222;;;-1:-1:-1;;;;;15838:18:5;;;15834:85;;-1:-1:-1;;;;;15876:15:5;;;;;;:9;:15;;;;;:28;;15895:9;;15876:15;:28;;15895:9;;15876:28;:::i;:::-;;;;-1:-1:-1;;15834:85:5;-1:-1:-1;;;;;15936:16:5;;;15932:81;;-1:-1:-1;;;;;15972:13:5;;;;;;:9;:13;;;;;:26;;15989:9;;15972:13;:26;;15989:9;;15972:26;:::i;:::-;;;;-1:-1:-1;;15633:396:5;;;;:::o;4485:970:6:-;4747:22;4797:1;4772:22;4789:4;4772:16;:22::i;:::-;:26;;;;:::i;:::-;4808:18;4829:26;;;:17;:26;;;;;;4747:51;;-1:-1:-1;4959:28:6;;;4955:323;;-1:-1:-1;;;;;5025:18:6;;5003:19;5025:18;;;:12;:18;;;;;;;;:34;;;;;;;;;5074:30;;;;;;:44;;;5190:30;;:17;:30;;;;;:43;;;4955:323;-1:-1:-1;5371:26:6;;;;:17;:26;;;;;;;;5364:33;;;-1:-1:-1;;;;;5414:18:6;;;;;:12;:18;;;;;:34;;;;;;;5407:41;4485:970::o;5743:1061::-;6017:10;:17;5992:22;;6017:21;;6037:1;;6017:21;:::i;:::-;6048:18;6069:24;;;:15;:24;;;;;;6437:10;:26;;5992:46;;-1:-1:-1;6069:24:6;;5992:46;;6437:26;;;;;;:::i;:::-;;;;;;;;;6415:48;;6499:11;6474:10;6485;6474:22;;;;;;;;:::i;:::-;;;;;;;;;;;;:36;;;;6578:28;;;:15;:28;;;;;;;:41;;;6747:24;;;;;6740:31;6781:10;:16;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;5814:990;;;5743:1061;:::o;3295:217::-;3379:14;3396:20;3413:2;3396:16;:20::i;:::-;-1:-1:-1;;;;;3426:16:6;;;;;;;:12;:16;;;;;;;;:24;;;;;;;;:34;;;3470:26;;;:17;:26;;;;;;:35;;;;-1:-1:-1;3295:217:6:o;14:177:26:-;-1:-1:-1;;;;;;92:5:26;88:78;81:5;78:89;68:117;;181:1;178;171:12;196:245;254:6;307:2;295:9;286:7;282:23;278:32;275:52;;;323:1;320;313:12;275:52;362:9;349:23;381:30;405:5;381:30;:::i;638:154::-;-1:-1:-1;;;;;717:5:26;713:54;706:5;703:65;693:93;;782:1;779;772:12;797:247;856:6;909:2;897:9;888:7;884:23;880:32;877:52;;;925:1;922;915:12;877:52;964:9;951:23;983:31;1008:5;983:31;:::i;1049:250::-;1134:1;1144:113;1158:6;1155:1;1152:13;1144:113;;;1234:11;;;1228:18;1215:11;;;1208:39;1180:2;1173:10;1144:113;;;-1:-1:-1;;1291:1:26;1273:16;;1266:27;1049:250::o;1304:282::-;1357:3;1395:5;1389:12;1422:6;1417:3;1410:19;1438:76;1507:6;1500:4;1495:3;1491:14;1484:4;1477:5;1473:16;1438:76;:::i;:::-;1568:2;1547:15;-1:-1:-1;;1543:29:26;1534:39;;;;1575:4;1530:50;;1304:282;-1:-1:-1;;1304:282:26:o;1591:231::-;1740:2;1729:9;1722:21;1703:4;1760:56;1812:2;1801:9;1797:18;1789:6;1760:56;:::i;1827:180::-;1886:6;1939:2;1927:9;1918:7;1914:23;1910:32;1907:52;;;1955:1;1952;1945:12;1907:52;-1:-1:-1;1978:23:26;;1827:180;-1:-1:-1;1827:180:26:o;2243:315::-;2311:6;2319;2372:2;2360:9;2351:7;2347:23;2343:32;2340:52;;;2388:1;2385;2378:12;2340:52;2427:9;2414:23;2446:31;2471:5;2446:31;:::i;:::-;2496:5;2548:2;2533:18;;;;2520:32;;-1:-1:-1;;;2243:315:26:o;2563:118::-;2649:5;2642:13;2635:21;2628:5;2625:32;2615:60;;2671:1;2668;2661:12;2686:241;2742:6;2795:2;2783:9;2774:7;2770:23;2766:32;2763:52;;;2811:1;2808;2801:12;2763:52;2850:9;2837:23;2869:28;2891:5;2869:28;:::i;3114:456::-;3191:6;3199;3207;3260:2;3248:9;3239:7;3235:23;3231:32;3228:52;;;3276:1;3273;3266:12;3228:52;3315:9;3302:23;3334:31;3359:5;3334:31;:::i;:::-;3384:5;-1:-1:-1;3441:2:26;3426:18;;3413:32;3454:33;3413:32;3454:33;:::i;:::-;3114:456;;3506:7;;-1:-1:-1;;;3560:2:26;3545:18;;;;3532:32;;3114:456::o;3942:248::-;4010:6;4018;4071:2;4059:9;4050:7;4046:23;4042:32;4039:52;;;4087:1;4084;4077:12;4039:52;-1:-1:-1;;4110:23:26;;;4180:2;4165:18;;;4152:32;;-1:-1:-1;3942:248:26:o;4497:315::-;4565:6;4573;4626:2;4614:9;4605:7;4601:23;4597:32;4594:52;;;4642:1;4639;4632:12;4594:52;4678:9;4665:23;4655:33;;4738:2;4727:9;4723:18;4710:32;4751:31;4776:5;4751:31;:::i;:::-;4801:5;4791:15;;;4497:315;;;;;:::o;4817:405::-;4892:6;4900;4908;4961:2;4949:9;4940:7;4936:23;4932:32;4929:52;;;4977:1;4974;4967:12;4929:52;5016:9;5003:23;5066:4;5059:5;5055:16;5048:5;5045:27;5035:55;;5086:1;5083;5076:12;5035:55;5109:5;5161:2;5146:18;;5133:32;;-1:-1:-1;5212:2:26;5197:18;;;5184:32;;4817:405;-1:-1:-1;;;4817:405:26:o;5551:348::-;5603:8;5613:6;5667:3;5660:4;5652:6;5648:17;5644:27;5634:55;;5685:1;5682;5675:12;5634:55;-1:-1:-1;5708:20:26;;5751:18;5740:30;;5737:50;;;5783:1;5780;5773:12;5737:50;5820:4;5812:6;5808:17;5796:29;;5872:3;5865:4;5856:6;5848;5844:19;5840:30;5837:39;5834:59;;;5889:1;5886;5879:12;5904:479;5984:6;5992;6000;6053:2;6041:9;6032:7;6028:23;6024:32;6021:52;;;6069:1;6066;6059:12;6021:52;6105:9;6092:23;6082:33;;6166:2;6155:9;6151:18;6138:32;6193:18;6185:6;6182:30;6179:50;;;6225:1;6222;6215:12;6179:50;6264:59;6315:7;6306:6;6295:9;6291:22;6264:59;:::i;:::-;5904:479;;6342:8;;-1:-1:-1;6238:85:26;;-1:-1:-1;;;;5904:479:26:o;6641:382::-;6706:6;6714;6767:2;6755:9;6746:7;6742:23;6738:32;6735:52;;;6783:1;6780;6773:12;6735:52;6822:9;6809:23;6841:31;6866:5;6841:31;:::i;:::-;6891:5;-1:-1:-1;6948:2:26;6933:18;;6920:32;6961:30;6920:32;6961:30;:::i;7028:188::-;7096:20;;-1:-1:-1;;;;;7145:46:26;;7135:57;;7125:85;;7206:1;7203;7196:12;7125:85;7028:188;;;:::o;7221:260::-;7289:6;7297;7350:2;7338:9;7329:7;7325:23;7321:32;7318:52;;;7366:1;7363;7356:12;7318:52;7389:29;7408:9;7389:29;:::i;:::-;7379:39;;7437:38;7471:2;7460:9;7456:18;7437:38;:::i;:::-;7427:48;;7221:260;;;;;:::o;8177:411::-;8248:6;8256;8309:2;8297:9;8288:7;8284:23;8280:32;8277:52;;;8325:1;8322;8315:12;8277:52;8365:9;8352:23;8398:18;8390:6;8387:30;8384:50;;;8430:1;8427;8420:12;8384:50;8469:59;8520:7;8511:6;8500:9;8496:22;8469:59;:::i;:::-;8547:8;;8443:85;;-1:-1:-1;8177:411:26;-1:-1:-1;;;;8177:411:26:o;8593:184::-;-1:-1:-1;;;8642:1:26;8635:88;8742:4;8739:1;8732:15;8766:4;8763:1;8756:15;8782:275;8853:2;8847:9;8918:2;8899:13;;-1:-1:-1;;8895:27:26;8883:40;;8953:18;8938:34;;8974:22;;;8935:62;8932:88;;;9000:18;;:::i;:::-;9036:2;9029:22;8782:275;;-1:-1:-1;8782:275:26:o;9062:186::-;9110:4;9143:18;9135:6;9132:30;9129:56;;;9165:18;;:::i;:::-;-1:-1:-1;9231:2:26;9210:15;-1:-1:-1;;9206:29:26;9237:4;9202:40;;9062:186::o;9253:1016::-;9348:6;9356;9364;9372;9425:3;9413:9;9404:7;9400:23;9396:33;9393:53;;;9442:1;9439;9432:12;9393:53;9481:9;9468:23;9500:31;9525:5;9500:31;:::i;:::-;9550:5;-1:-1:-1;9607:2:26;9592:18;;9579:32;9620:33;9579:32;9620:33;:::i;:::-;9672:7;-1:-1:-1;9726:2:26;9711:18;;9698:32;;-1:-1:-1;9781:2:26;9766:18;;9753:32;9808:18;9797:30;;9794:50;;;9840:1;9837;9830:12;9794:50;9863:22;;9916:4;9908:13;;9904:27;-1:-1:-1;9894:55:26;;9945:1;9942;9935:12;9894:55;9981:2;9968:16;10006:48;10022:31;10050:2;10022:31;:::i;:::-;10006:48;:::i;:::-;10077:2;10070:5;10063:17;10117:7;10112:2;10107;10103;10099:11;10095:20;10092:33;10089:53;;;10138:1;10135;10128:12;10089:53;10193:2;10188;10184;10180:11;10175:2;10168:5;10164:14;10151:45;10237:1;10232:2;10227;10220:5;10216:14;10212:23;10205:34;10258:5;10248:15;;;;;9253:1016;;;;;;;:::o;10815:388::-;10883:6;10891;10944:2;10932:9;10923:7;10919:23;10915:32;10912:52;;;10960:1;10957;10950:12;10912:52;10999:9;10986:23;11018:31;11043:5;11018:31;:::i;:::-;11068:5;-1:-1:-1;11125:2:26;11110:18;;11097:32;11138:33;11097:32;11138:33;:::i;11208:516::-;-1:-1:-1;;;;;11466:6:26;11462:55;11451:9;11444:74;11554:6;11549:2;11538:9;11534:18;11527:34;11597:6;11592:2;11581:9;11577:18;11570:34;11640:3;11635:2;11624:9;11620:18;11613:31;11425:4;11661:57;11713:3;11702:9;11698:19;11690:6;11661:57;:::i;:::-;11653:65;11208:516;-1:-1:-1;;;;;;11208:516:26:o;11729:635::-;11839:6;11847;11855;11863;11916:2;11904:9;11895:7;11891:23;11887:32;11884:52;;;11932:1;11929;11922:12;11884:52;11971:9;11958:23;11990:31;12015:5;11990:31;:::i;:::-;12040:5;-1:-1:-1;12092:2:26;12077:18;;12064:32;;-1:-1:-1;12147:2:26;12132:18;;12119:32;12174:18;12163:30;;12160:50;;;12206:1;12203;12196:12;12160:50;12245:59;12296:7;12287:6;12276:9;12272:22;12245:59;:::i;:::-;11729:635;;;;-1:-1:-1;12323:8:26;-1:-1:-1;;;;11729:635:26:o;12693:437::-;12772:1;12768:12;;;;12815;;;12836:61;;12890:4;12882:6;12878:17;12868:27;;12836:61;12943:2;12935:6;12932:14;12912:18;12909:38;12906:218;;-1:-1:-1;;;12977:1:26;12970:88;13081:4;13078:1;13071:15;13109:4;13106:1;13099:15;12906:218;;12693:437;;;:::o;13135:184::-;-1:-1:-1;;;13184:1:26;13177:88;13284:4;13281:1;13274:15;13308:4;13305:1;13298:15;13324:128;13391:9;;;13412:11;;;13409:37;;;13426:18;;:::i;13457:184::-;-1:-1:-1;;;13506:1:26;13499:88;13606:4;13603:1;13596:15;13630:4;13627:1;13620:15;13899:125;13964:9;;;13985:10;;;13982:36;;;13998:18;;:::i;16159:545::-;16261:2;16256:3;16253:11;16250:448;;;16297:1;16322:5;16318:2;16311:17;16367:4;16363:2;16353:19;16437:2;16425:10;16421:19;16418:1;16414:27;16408:4;16404:38;16473:4;16461:10;16458:20;16455:47;;;-1:-1:-1;16496:4:26;16455:47;16551:2;16546:3;16542:12;16539:1;16535:20;16529:4;16525:31;16515:41;;16606:82;16624:2;16617:5;16614:13;16606:82;;;16669:17;;;16650:1;16639:13;16606:82;;;16610:3;;;16159:545;;;:::o;16880:1206::-;17004:18;16999:3;16996:27;16993:53;;;17026:18;;:::i;:::-;17055:94;17145:3;17105:38;17137:4;17131:11;17105:38;:::i;:::-;17099:4;17055:94;:::i;:::-;17175:1;17200:2;17195:3;17192:11;17217:1;17212:616;;;;17872:1;17889:3;17886:93;;;-1:-1:-1;17945:19:26;;;17932:33;17886:93;-1:-1:-1;;16837:1:26;16833:11;;;16829:24;16825:29;16815:40;16861:1;16857:11;;;16812:57;17992:78;;17185:895;;17212:616;16106:1;16099:14;;;16143:4;16130:18;;-1:-1:-1;;17248:17:26;;;17349:9;17371:229;17385:7;17382:1;17379:14;17371:229;;;17474:19;;;17461:33;17446:49;;17581:4;17566:20;;;;17534:1;17522:14;;;;17401:12;17371:229;;;17375:3;17628;17619:7;17616:16;17613:159;;;17752:1;17748:6;17742:3;17736;17733:1;17729:11;17725:21;17721:34;17717:39;17704:9;17699:3;17695:19;17682:33;17678:79;17670:6;17663:95;17613:159;;;17815:1;17809:3;17806:1;17802:11;17798:19;17792:4;17785:33;17185:895;;16880:1206;;;:::o;18091:135::-;18130:3;18151:17;;;18148:43;;18171:18;;:::i;:::-;-1:-1:-1;18218:1:26;18207:13;;18091:135::o;18231:1506::-;18473:2;18462:9;18455:21;-1:-1:-1;;;;;18522:6:26;18516:13;18512:62;18507:2;18496:9;18492:18;18485:90;18436:4;18594;18654:2;18646:6;18642:15;18636:22;18629:4;18618:9;18614:20;18607:52;18714:4;18706:6;18702:17;18696:24;18690:3;18679:9;18675:19;18668:53;18762:4;18754:6;18750:17;18804:4;18798:3;18787:9;18783:19;18776:33;18829:1;18862:12;18856:19;18898:36;18924:9;18898:36;:::i;:::-;18971:6;18965:3;18954:9;18950:19;18943:35;18997:3;19031:2;19020:9;19016:18;19048:1;19043:158;;;;19215:1;19210:387;;;;19009:588;;19043:158;-1:-1:-1;;19091:24:26;;19071:18;;;19064:52;19169:14;;19162:22;19159:1;19155:30;19140:46;;19136:55;;;-1:-1:-1;19043:158:26;;19210:387;19241:12;19238:1;19231:23;19277:4;19322:2;19319:1;19309:16;19347:1;19361:180;19375:6;19372:1;19369:13;19361:180;;;19468:14;;19444:17;;;19440:26;;19433:50;19511:16;;;;19390:10;;19361:180;;;19565:17;;19561:26;;;-1:-1:-1;;;19009:588:26;-1:-1:-1;;;;;;;;7552:46:26;;19668:4;19653:20;;7540:59;-1:-1:-1;19614:3:26;-1:-1:-1;19626:48:26;;-1:-1:-1;;7486:119:26;19626:48;-1:-1:-1;;;;;7552:46:26;;19725:4;19710:20;;7540:59;19683:48;7486:119;19742:648;19822:6;19875:2;19863:9;19854:7;19850:23;19846:32;19843:52;;;19891:1;19888;19881:12;19843:52;19924:9;19918:16;19957:18;19949:6;19946:30;19943:50;;;19989:1;19986;19979:12;19943:50;20012:22;;20065:4;20057:13;;20053:27;-1:-1:-1;20043:55:26;;20094:1;20091;20084:12;20043:55;20123:2;20117:9;20148:48;20164:31;20192:2;20164:31;:::i;20148:48::-;20219:2;20212:5;20205:17;20259:7;20254:2;20249;20245;20241:11;20237:20;20234:33;20231:53;;;20280:1;20277;20270:12;20231:53;20293:67;20357:2;20352;20345:5;20341:14;20336:2;20332;20328:11;20293:67;:::i;:::-;20379:5;19742:648;-1:-1:-1;;;;;19742:648:26:o;20762:198::-;20804:3;20842:5;20836:12;20857:65;20915:6;20910:3;20903:4;20896:5;20892:16;20857:65;:::i;:::-;20938:16;;;;;20762:198;-1:-1:-1;;20762:198:26:o;21037:1401::-;21513:9;21508:3;21501:22;21483:3;21542:1;21563;21596:6;21590:13;21626:36;21652:9;21626:36;:::i;:::-;21681:1;21698:18;;;21725:151;;;;21890:1;21885:374;;;;21691:568;;21725:151;-1:-1:-1;;21767:24:26;;21753:12;;;21746:46;21844:14;;21837:22;21825:35;;21816:45;;21812:54;;;-1:-1:-1;21725:151:26;;21885:374;21916:6;21913:1;21906:17;21946:4;21991:2;21988:1;21978:16;22016:1;22030:174;22044:6;22041:1;22038:13;22030:174;;;22131:14;;22113:11;;;22109:20;;22102:44;22174:16;;;;22059:10;;22030:174;;;22034:3;;;22246:2;22237:6;22232:3;22228:16;22224:25;22217:32;;21691:568;-1:-1:-1;20751:3:26;20739:16;;22324:39;22359:2;22354:3;22350:12;22342:6;22324:39;:::i;:::-;22311:52;;;;;;22372:31;22397:5;21022:7;21010:20;;20965:67;22372:31;22430:1;22419:13;;21037:1401;-1:-1:-1;;;;21037:1401:26:o;24366:184::-;24436:6;24489:2;24477:9;24468:7;24464:23;24460:32;24457:52;;;24505:1;24502;24495:12;24457:52;-1:-1:-1;24528:16:26;;24366:184;-1:-1:-1;24366:184:26:o;24555:1352::-;24681:3;24675:10;24708:18;24700:6;24697:30;24694:56;;;24730:18;;:::i;:::-;24759:97;24849:6;24809:38;24841:4;24835:11;24809:38;:::i;:::-;24803:4;24759:97;:::i;:::-;24911:4;;24975:2;24964:14;;24992:1;24987:663;;;;25694:1;25711:6;25708:89;;;-1:-1:-1;25763:19:26;;;25757:26;25708:89;-1:-1:-1;;16837:1:26;16833:11;;;16829:24;16825:29;16815:40;16861:1;16857:11;;;16812:57;25810:81;;24957:944;;24987:663;16106:1;16099:14;;;16143:4;16130:18;;-1:-1:-1;;25023:20:26;;;25141:236;25155:7;25152:1;25149:14;25141:236;;;25244:19;;;25238:26;25223:42;;25336:27;;;;25304:1;25292:14;;;;25171:19;;25141:236;;;25145:3;25405:6;25396:7;25393:19;25390:201;;;25466:19;;;25460:26;-1:-1:-1;;25549:1:26;25545:14;;;25561:3;25541:24;25537:37;25533:42;25518:58;25503:74;;25390:201;-1:-1:-1;;;;;25637:1:26;25621:14;;;25617:22;25604:36;;-1:-1:-1;24555:1352:26:o;25912:245::-;25979:6;26032:2;26020:9;26011:7;26007:23;26003:32;26000:52;;;26048:1;26045;26038:12;26000:52;26080:9;26074:16;26099:28;26121:5;26099:28;:::i;28161:184::-;-1:-1:-1;;;28210:1:26;28203:88;28310:4;28307:1;28300:15;28334:4;28331:1;28324:15;28350:120;28390:1;28416;28406:35;;28421:18;;:::i;:::-;-1:-1:-1;28455:9:26;;28350:120::o;28475:112::-;28507:1;28533;28523:35;;28538:18;;:::i;:::-;-1:-1:-1;28572:9:26;;28475:112::o;28592:168::-;28665:9;;;28696;;28713:15;;;28707:22;;28693:37;28683:71;;28734:18;;:::i;29126:812::-;29537:25;29532:3;29525:38;29507:3;29592:6;29586:13;29608:75;29676:6;29671:2;29666:3;29662:12;29655:4;29647:6;29643:17;29608:75;:::i;:::-;29747:19;29742:2;29702:16;;;29734:11;;;29727:40;29792:13;;29814:76;29792:13;29876:2;29868:11;;29861:4;29849:17;;29814:76;:::i;:::-;29910:17;29929:2;29906:26;;29126:812;-1:-1:-1;;;;29126:812:26:o;32240:136::-;32279:3;32307:5;32297:39;;32316:18;;:::i;:::-;-1:-1:-1;;;32352:18:26;;32240:136::o;33460:523::-;33654:4;-1:-1:-1;;;;;33764:2:26;33756:6;33752:15;33741:9;33734:34;33816:2;33808:6;33804:15;33799:2;33788:9;33784:18;33777:43;;33856:6;33851:2;33840:9;33836:18;33829:34;33899:3;33894:2;33883:9;33879:18;33872:31;33920:57;33972:3;33961:9;33957:19;33949:6;33920:57;:::i;33988:249::-;34057:6;34110:2;34098:9;34089:7;34085:23;34081:32;34078:52;;;34126:1;34123;34116:12;34078:52;34158:9;34152:16;34177:30;34201:5;34177:30;:::i;34242:184::-;-1:-1:-1;;;34291:1:26;34284:88;34391:4;34388:1;34381:15;34415:4;34412:1;34405:15
Swarm Source
ipfs://65ee9691b98491b26413fb899324538d46bc41d0b445c73acf6cfaad25835d52
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.