Overview
ETH Balance
0 ETH
Eth Value
$0.00More Info
Private Name Tags
ContractCreator
TokenTracker
Latest 25 from a total of 420 transactions
Transaction Hash |
Method
|
Block
|
From
|
To
|
|||||
---|---|---|---|---|---|---|---|---|---|
Safe Transfer Fr... | 20688320 | 28 days ago | IN | 0 ETH | 0.00010492 | ||||
Safe Transfer Fr... | 20091401 | 111 days ago | IN | 0 ETH | 0.00140712 | ||||
Close Room Raffl... | 19947201 | 131 days ago | IN | 0 ETH | 0.0033164 | ||||
Close Room Raffl... | 19945230 | 131 days ago | IN | 0 ETH | 0.00263657 | ||||
Enter Room Raffl... | 19926344 | 134 days ago | IN | 0 ETH | 0.00658323 | ||||
Enter Room Raffl... | 19897118 | 138 days ago | IN | 0 ETH | 0.00177745 | ||||
Create Room Raff... | 19891777 | 139 days ago | IN | 0 ETH | 0.0016086 | ||||
Create Room Raff... | 19891769 | 139 days ago | IN | 0 ETH | 0.00171513 | ||||
Create Room Desi... | 19891749 | 139 days ago | IN | 0 ETH | 0.00409384 | ||||
Create Room Desi... | 19891712 | 139 days ago | IN | 0 ETH | 0.00245714 | ||||
Close Room Raffl... | 19867420 | 142 days ago | IN | 0 ETH | 0.00076427 | ||||
Set Approval For... | 19782590 | 154 days ago | IN | 0 ETH | 0.00064443 | ||||
Safe Transfer Fr... | 19766573 | 156 days ago | IN | 0 ETH | 0.00051723 | ||||
Safe Transfer Fr... | 19533606 | 189 days ago | IN | 0 ETH | 0.00270113 | ||||
Set Approval For... | 19164930 | 241 days ago | IN | 0 ETH | 0.00059946 | ||||
Set Approval For... | 19148949 | 243 days ago | IN | 0 ETH | 0.0010192 | ||||
Set Approval For... | 19130279 | 246 days ago | IN | 0 ETH | 0.00104273 | ||||
Close Room Raffl... | 18907800 | 277 days ago | IN | 0 ETH | 0.00616136 | ||||
Close Room Raffl... | 18907659 | 277 days ago | IN | 0 ETH | 0.00575122 | ||||
Close Room Raffl... | 18907618 | 277 days ago | IN | 0 ETH | 0.00491169 | ||||
Close Room Raffl... | 18907587 | 277 days ago | IN | 0 ETH | 0.00498082 | ||||
Close Room Raffl... | 18907586 | 277 days ago | IN | 0 ETH | 0.00476192 | ||||
Close Room Raffl... | 18907583 | 277 days ago | IN | 0 ETH | 0.00516959 | ||||
Close Room Raffl... | 18903721 | 278 days ago | IN | 0 ETH | 0.00687704 | ||||
Enter Room Raffl... | 18898660 | 278 days ago | IN | 0 ETH | 0.00534795 |
View more zero value Internal Transactions in Advanced View mode
Advanced mode:
Loading...
Loading
Contract Name:
ROOMs
Compiler Version
v0.8.9+commit.e5eed63a
Optimization Enabled:
Yes with 200 runs
Other Settings:
default evmVersion
Contract Source Code (Solidity Standard Json-Input format)
// SPDX-License-Identifier: MIT pragma solidity ^0.8.9; import {IERC721} from "@openzeppelin/contracts/token/ERC721/IERC721.sol"; import "@openzeppelin/contracts/token/ERC721/ERC721.sol"; import "@openzeppelin/contracts/token/ERC721/extensions/ERC721URIStorage.sol"; import "@openzeppelin/contracts/token/ERC721/extensions/ERC721Royalty.sol"; import "@openzeppelin/contracts/access/AccessControl.sol"; import "@openzeppelin/contracts/utils/Counters.sol"; interface IFloorToken is IERC721 { function sizes(uint256 _tokenId) external view returns (uint16 size); } /// @custom:security-contact [email protected] contract ROOMs is ERC721, ERC721URIStorage, ERC721Royalty, AccessControl { using Counters for Counters.Counter; string private _contractURIHash = "QmR2Mz8Bpztv8SHpzjnFrS4e6UutFn52C7G9FktMBfxXen"; bytes32 public constant MINTER_ROLE = keccak256("MINTER_ROLE"); bytes32 public constant DESIGNER_ROLE = keccak256("DESIGNER_ROLE"); Counters.Counter private _roomIdCounter; Counters.Counter private _raffleIdCounter; IFloorToken public FloorContract; struct ROOM { uint256 id; string title; string description; string architect; address architect_address; string image; string model; string series; uint16 slots; address creator; string metadataURI; bool cc0; } mapping(uint256 => ROOM) public roomById; mapping(uint256 => uint256) public tokenToRoom; struct Raffle { uint256 id; uint256 room; uint256[] allowedFloors; uint256 timeStart; uint256 timeEnd; Floor winner; Floor[] participants; } mapping(uint256 => bool) public designHasRaffle; struct Floor { uint256 id; address owner; } mapping(uint256 => Raffle) public raffleById; event NewDesign(ROOM room); event NewRaffle(Raffle raffle); event NewRaffleEntry(Raffle raffle, Floor floor); event RaffleClosed(Raffle raffle); event DesignUpdated(ROOM room); // goerli floor token: 0x22b512cC7916f8ed1033bb61a56c5a27078b963D constructor(address _floorToken) ERC721("MOCA ROOMs", "ROOM") { FloorContract = IFloorToken(_floorToken); _grantRole(DEFAULT_ADMIN_ROLE, msg.sender); _grantRole(MINTER_ROLE, msg.sender); _grantRole(DESIGNER_ROLE, msg.sender); } function contractURI() public view returns (string memory) { return string(abi.encodePacked('ipfs://', _contractURIHash)); } function setContractURIHash(string memory newContractURIHash) external onlyRole(DEFAULT_ADMIN_ROLE) { _contractURIHash = newContractURIHash; } function updateDesign(uint256 _roomId, ROOM memory design) public onlyRole(DESIGNER_ROLE) { ROOM storage room = roomById[_roomId]; require(room.creator == msg.sender, "You're not the creator of this ROOM Design."); room.title = design.title; room.description = design.description; room.architect = design.architect; room.architect_address = design.architect_address; room.image = design.image; room.model = design.model; room.series = design.series; room.slots = design.slots; room.metadataURI = design.metadataURI; room.cc0 = design.cc0; emit DesignUpdated(room); } function closeRoomRaffle(uint256 raffleId) public { Raffle storage raffle = raffleById[raffleId]; require(raffle.winner.owner == address(0), "The winner has already been determined."); if (raffle.participants.length > 0) { uint256 winner_index; if (raffle.participants.length > 1) { winner_index = random(0, raffle.participants.length - 1); } else { winner_index = 0; } raffle.winner = raffle.participants[winner_index]; for (uint256 i = 0; i < raffle.participants.length; i++) { // check winner and send back FLOORs if (raffle.participants[i].id == raffle.winner.id) continue; FloorContract.transferFrom(address(this), raffle.participants[i].owner, raffle.participants[i].id); } ROOM memory room = roomById[raffle.room]; safeMint(raffle.winner.owner, raffle.winner.id, room.metadataURI, raffle.room); _setTokenRoyalty(raffle.winner.id, room.architect_address, 10000); FloorContract.transferFrom(address(this), address(0x000000000000000000000000000000000000dEaD), raffle.winner.id); } else { ROOM memory room = roomById[raffle.room]; delete designHasRaffle[room.id]; } emit RaffleClosed(raffle); } function enterRoomRaffle(uint256 raffleId, uint256 floorId) public { Raffle storage raffle = raffleById[raffleId]; ROOM memory room = roomById[raffle.room]; require(FloorContract.sizes(floorId) == room.slots, "Size of Floor does not match size of Room."); require(block.timestamp >= raffle.timeStart, "Raffle not started."); require(block.timestamp < raffle.timeEnd, "Raffle ended."); require(raffle.winner.owner == address(0), "Raffle closed."); bool allowed = false; if (raffle.allowedFloors.length > 0) { for (uint256 i = 0; i < raffle.allowedFloors.length; i++) { if (raffle.allowedFloors[i] == floorId) { allowed = true; break; } } } else { allowed = true; } require(allowed == true, "You're not allowed to join this raffle."); FloorContract.transferFrom(msg.sender, address(this), floorId); Floor memory floor; floor.id = floorId; floor.owner = msg.sender; raffle.participants.push(floor); emit NewRaffleEntry(raffle, floor); } function createRoomRaffle(uint256 roomId, uint256[] memory allowedFloors, uint256 timeStart, uint256 timeEnd) public onlyRole(DESIGNER_ROLE) { ROOM memory room = roomById[roomId]; require(designHasRaffle[roomId] == false, "Raffle already started."); require(room.creator == msg.sender, "Only the creator can start a raffle for this room."); uint256 raffleId = _raffleIdCounter.current(); _raffleIdCounter.increment(); Raffle storage raffle = raffleById[raffleId]; raffle.id = raffleId; raffle.room = roomId; raffle.allowedFloors = allowedFloors; raffle.timeStart = timeStart; raffle.timeEnd = timeEnd; designHasRaffle[roomId] = true; emit NewRaffle(raffle); } function createRoomDesign(ROOM memory design) public onlyRole(DESIGNER_ROLE) { uint256 roomId = _roomIdCounter.current(); _roomIdCounter.increment(); ROOM storage room = roomById[roomId]; room.id = roomId; room.title = design.title; room.description = design.description; room.architect = design.architect; room.architect_address = design.architect_address; room.image = design.image; room.model = design.model; room.series = design.series; room.slots = design.slots; room.creator = msg.sender; room.metadataURI = design.metadataURI; room.cc0 = design.cc0; emit NewDesign(room); } function removeDesigner(address designer) public onlyRole(DEFAULT_ADMIN_ROLE) { _revokeRole(DESIGNER_ROLE, designer); } function addDesigner(address designer) public onlyRole(DEFAULT_ADMIN_ROLE) { _grantRole(DESIGNER_ROLE, designer); } function safeMint(address to, uint256 tokenId, string memory uri, uint256 roomId) private { _safeMint(to, tokenId); _setTokenURI(tokenId, uri); tokenToRoom[tokenId] = roomId; } function getRoomByTokenId(uint256 _tokenId) public view returns (ROOM memory room) { uint256 roomId = tokenToRoom[_tokenId]; return roomById[roomId]; } // The following functions are overrides required by Solidity. function _burn(uint256 tokenId) internal override(ERC721, ERC721URIStorage, ERC721Royalty) { super._burn(tokenId); } function tokenURI(uint256 tokenId) public view override(ERC721, ERC721URIStorage) returns (string memory) { return super.tokenURI(tokenId); } function supportsInterface(bytes4 interfaceId) public view override(ERC721, AccessControl, ERC721Royalty) returns (bool) { return super.supportsInterface(interfaceId); } function random(uint256 min, uint256 max) public view returns (uint256) { return uint256(keccak256(abi.encodePacked(block.difficulty, block.timestamp, blockhash(block.number - 1)))) % (max - min + 1) + min; } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.7.0) (access/AccessControl.sol) pragma solidity ^0.8.0; import "./IAccessControl.sol"; import "../utils/Context.sol"; import "../utils/Strings.sol"; import "../utils/introspection/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(uint160(account), 20), " is missing role ", Strings.toHexString(uint256(role), 32) ) ) ); } } /** * @dev Returns the admin role that controls `role`. See {grantRole} and * {revokeRole}. * * To change a role's admin, use {_setRoleAdmin}. */ function getRoleAdmin(bytes32 role) public view 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 v4.4.1 (utils/Counters.sol) pragma solidity ^0.8.0; /** * @title Counters * @author Matt Condon (@shrugs) * @dev Provides counters that can only be incremented, decremented or reset. This can be used e.g. to track the number * of elements in a mapping, issuing ERC721 ids, or counting request ids. * * Include with `using Counters for Counters.Counter;` */ library Counters { struct Counter { // This variable should never be directly accessed by users of the library: interactions must be restricted to // the library's function. As of Solidity v0.5.2, this cannot be enforced, though there is a proposal to add // this feature: see https://github.com/ethereum/solidity/issues/4637 uint256 _value; // default: 0 } function current(Counter storage counter) internal view returns (uint256) { return counter._value; } function increment(Counter storage counter) internal { unchecked { counter._value += 1; } } function decrement(Counter storage counter) internal { uint256 value = counter._value; require(value > 0, "Counter: decrement overflow"); unchecked { counter._value = value - 1; } } function reset(Counter storage counter) internal { counter._value = 0; } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.7.0) (token/ERC721/IERC721.sol) pragma solidity ^0.8.0; import "../../utils/introspection/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: Usage of this method is discouraged, use {safeTransferFrom} whenever possible. * * 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.7.0) (token/ERC721/ERC721.sol) pragma solidity ^0.8.0; import "./IERC721.sol"; import "./IERC721Receiver.sol"; import "./extensions/IERC721Metadata.sol"; import "../../utils/Address.sol"; import "../../utils/Context.sol"; import "../../utils/Strings.sol"; import "../../utils/introspection/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 = _owners[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 nor 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 nor 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 nor 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 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 _owners[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); _balances[to] += 1; _owners[tokenId] = to; emit Transfer(address(0), to, tokenId); _afterTokenTransfer(address(0), to, tokenId); } /** * @dev Destroys `tokenId`. * The approval is cleared when the token is burned. * * Requirements: * * - `tokenId` must exist. * * Emits a {Transfer} event. */ function _burn(uint256 tokenId) internal virtual { address owner = ERC721.ownerOf(tokenId); _beforeTokenTransfer(owner, address(0), tokenId); // Clear approvals _approve(address(0), tokenId); _balances[owner] -= 1; delete _owners[tokenId]; emit Transfer(owner, address(0), tokenId); _afterTokenTransfer(owner, address(0), tokenId); } /** * @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); // Clear approvals from the previous owner _approve(address(0), tokenId); _balances[from] -= 1; _balances[to] += 1; _owners[tokenId] = to; emit Transfer(from, to, tokenId); _afterTokenTransfer(from, to, tokenId); } /** * @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. * * 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 ) internal virtual {} /** * @dev Hook that is called after any transfer of tokens. This includes * minting and burning. * * Calling conditions: * * - when `from` and `to` are both non-zero. * - `from` and `to` are never both zero. * * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks]. */ function _afterTokenTransfer( address from, address to, uint256 tokenId ) internal virtual {} }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.7.0) (token/ERC721/extensions/ERC721URIStorage.sol) pragma solidity ^0.8.0; import "../ERC721.sol"; /** * @dev ERC721 token with storage based token URI management. */ abstract contract ERC721URIStorage is ERC721 { using Strings for uint256; // Optional mapping for token URIs mapping(uint256 => string) private _tokenURIs; /** * @dev See {IERC721Metadata-tokenURI}. */ function tokenURI(uint256 tokenId) public view virtual override returns (string memory) { _requireMinted(tokenId); string memory _tokenURI = _tokenURIs[tokenId]; string memory base = _baseURI(); // If there is no base URI, return the token URI. if (bytes(base).length == 0) { return _tokenURI; } // If both are set, concatenate the baseURI and tokenURI (via abi.encodePacked). if (bytes(_tokenURI).length > 0) { return string(abi.encodePacked(base, _tokenURI)); } return super.tokenURI(tokenId); } /** * @dev Sets `_tokenURI` as the tokenURI of `tokenId`. * * Requirements: * * - `tokenId` must exist. */ function _setTokenURI(uint256 tokenId, string memory _tokenURI) internal virtual { require(_exists(tokenId), "ERC721URIStorage: URI set of nonexistent token"); _tokenURIs[tokenId] = _tokenURI; } /** * @dev See {ERC721-_burn}. This override additionally checks to see if a * token-specific URI was set for the token, and if so, it deletes the token URI from * the storage mapping. */ function _burn(uint256 tokenId) internal virtual override { super._burn(tokenId); if (bytes(_tokenURIs[tokenId]).length != 0) { delete _tokenURIs[tokenId]; } } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.5.0) (token/ERC721/extensions/ERC721Royalty.sol) pragma solidity ^0.8.0; import "../ERC721.sol"; import "../../common/ERC2981.sol"; import "../../../utils/introspection/ERC165.sol"; /** * @dev Extension of ERC721 with the ERC2981 NFT Royalty Standard, a standardized way to retrieve royalty payment * information. * * Royalty information can be specified globally for all token ids via {_setDefaultRoyalty}, and/or individually for * specific token ids via {_setTokenRoyalty}. The latter takes precedence over the first. * * IMPORTANT: ERC-2981 only specifies a way to signal royalty information and does not enforce its payment. See * https://eips.ethereum.org/EIPS/eip-2981#optional-royalty-payments[Rationale] in the EIP. Marketplaces are expected to * voluntarily pay royalties together with sales, but note that this standard is not yet widely supported. * * _Available since v4.5._ */ abstract contract ERC721Royalty is ERC2981, ERC721 { /** * @dev See {IERC165-supportsInterface}. */ function supportsInterface(bytes4 interfaceId) public view virtual override(ERC721, ERC2981) returns (bool) { return super.supportsInterface(interfaceId); } /** * @dev See {ERC721-_burn}. This override additionally clears the royalty information for the token. */ function _burn(uint256 tokenId) internal virtual override { super._burn(tokenId); _resetTokenRoyalty(tokenId); } }
// 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.7.0) (utils/Strings.sol) pragma solidity ^0.8.0; /** * @dev String operations. */ library Strings { bytes16 private constant _HEX_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) { // Inspired by OraclizeAPI's implementation - MIT licence // https://github.com/oraclize/ethereum-api/blob/b42146b063c7d6ee1358846c198246239e9360e8/oraclizeAPI_0.4.25.sol if (value == 0) { return "0"; } uint256 temp = value; uint256 digits; while (temp != 0) { digits++; temp /= 10; } bytes memory buffer = new bytes(digits); while (value != 0) { digits -= 1; buffer[digits] = bytes1(uint8(48 + uint256(value % 10))); value /= 10; } return string(buffer); } /** * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation. */ function toHexString(uint256 value) internal pure returns (string memory) { if (value == 0) { return "0x00"; } uint256 temp = value; uint256 length = 0; while (temp != 0) { length++; temp >>= 8; } return toHexString(value, length); } /** * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation with fixed length. */ function toHexString(uint256 value, uint256 length) internal pure returns (string memory) { bytes memory buffer = new bytes(2 * length + 2); buffer[0] = "0"; buffer[1] = "x"; for (uint256 i = 2 * length + 1; i > 1; --i) { buffer[i] = _HEX_SYMBOLS[value & 0xf]; value >>= 4; } require(value == 0, "Strings: hex length insufficient"); return string(buffer); } /** * @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 // 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 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 (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.7.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 functionCall(target, data, "Address: low-level call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], but with * `errorMessage` as a fallback revert reason when `target` reverts. * * _Available since v3.1._ */ function functionCall( address target, bytes memory data, string memory errorMessage ) internal returns (bytes memory) { return functionCallWithValue(target, data, 0, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but also transferring `value` wei to `target`. * * Requirements: * * - the calling contract must have an ETH balance of at least `value`. * - the called Solidity function must be `payable`. * * _Available since v3.1._ */ function functionCallWithValue( address target, bytes memory data, uint256 value ) internal returns (bytes memory) { return functionCallWithValue(target, data, value, "Address: low-level call with value failed"); } /** * @dev Same as {xref-Address-functionCallWithValue-address-bytes-uint256-}[`functionCallWithValue`], but * with `errorMessage` as a fallback revert reason when `target` reverts. * * _Available since v3.1._ */ function functionCallWithValue( address target, bytes memory data, uint256 value, string memory errorMessage ) internal returns (bytes memory) { require(address(this).balance >= value, "Address: insufficient balance for call"); require(isContract(target), "Address: call to non-contract"); (bool success, bytes memory returndata) = target.call{value: value}(data); return verifyCallResult(success, returndata, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but performing a static call. * * _Available since v3.3._ */ function functionStaticCall(address target, bytes memory data) internal view returns (bytes memory) { return functionStaticCall(target, data, "Address: low-level static call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`], * but performing a static call. * * _Available since v3.3._ */ function functionStaticCall( address target, bytes memory data, string memory errorMessage ) internal view returns (bytes memory) { require(isContract(target), "Address: static call to non-contract"); (bool success, bytes memory returndata) = target.staticcall(data); return verifyCallResult(success, returndata, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but performing a delegate call. * * _Available since v3.4._ */ function functionDelegateCall(address target, bytes memory data) internal returns (bytes memory) { return functionDelegateCall(target, data, "Address: low-level delegate call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`], * but performing a delegate call. * * _Available since v3.4._ */ function functionDelegateCall( address target, bytes memory data, string memory errorMessage ) internal returns (bytes memory) { require(isContract(target), "Address: delegate call to non-contract"); (bool success, bytes memory returndata) = target.delegatecall(data); return verifyCallResult(success, returndata, errorMessage); } /** * @dev Tool to verifies that a low level call was successful, and revert if it wasn't, either by bubbling the * revert reason 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 { // 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 // 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 // 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.7.0) (token/common/ERC2981.sol) pragma solidity ^0.8.0; import "../../interfaces/IERC2981.sol"; import "../../utils/introspection/ERC165.sol"; /** * @dev Implementation of the NFT Royalty Standard, a standardized way to retrieve royalty payment information. * * Royalty information can be specified globally for all token ids via {_setDefaultRoyalty}, and/or individually for * specific token ids via {_setTokenRoyalty}. The latter takes precedence over the first. * * Royalty is specified as a fraction of sale price. {_feeDenominator} is overridable but defaults to 10000, meaning the * fee is specified in basis points by default. * * IMPORTANT: ERC-2981 only specifies a way to signal royalty information and does not enforce its payment. See * https://eips.ethereum.org/EIPS/eip-2981#optional-royalty-payments[Rationale] in the EIP. Marketplaces are expected to * voluntarily pay royalties together with sales, but note that this standard is not yet widely supported. * * _Available since v4.5._ */ abstract contract ERC2981 is IERC2981, ERC165 { struct RoyaltyInfo { address receiver; uint96 royaltyFraction; } RoyaltyInfo private _defaultRoyaltyInfo; mapping(uint256 => RoyaltyInfo) private _tokenRoyaltyInfo; /** * @dev See {IERC165-supportsInterface}. */ function supportsInterface(bytes4 interfaceId) public view virtual override(IERC165, ERC165) returns (bool) { return interfaceId == type(IERC2981).interfaceId || super.supportsInterface(interfaceId); } /** * @inheritdoc IERC2981 */ function royaltyInfo(uint256 _tokenId, uint256 _salePrice) public view virtual override returns (address, uint256) { RoyaltyInfo memory royalty = _tokenRoyaltyInfo[_tokenId]; if (royalty.receiver == address(0)) { royalty = _defaultRoyaltyInfo; } uint256 royaltyAmount = (_salePrice * royalty.royaltyFraction) / _feeDenominator(); return (royalty.receiver, royaltyAmount); } /** * @dev The denominator with which to interpret the fee set in {_setTokenRoyalty} and {_setDefaultRoyalty} as a * fraction of the sale price. Defaults to 10000 so fees are expressed in basis points, but may be customized by an * override. */ function _feeDenominator() internal pure virtual returns (uint96) { return 10000; } /** * @dev Sets the royalty information that all ids in this contract will default to. * * Requirements: * * - `receiver` cannot be the zero address. * - `feeNumerator` cannot be greater than the fee denominator. */ function _setDefaultRoyalty(address receiver, uint96 feeNumerator) internal virtual { require(feeNumerator <= _feeDenominator(), "ERC2981: royalty fee will exceed salePrice"); require(receiver != address(0), "ERC2981: invalid receiver"); _defaultRoyaltyInfo = RoyaltyInfo(receiver, feeNumerator); } /** * @dev Removes default royalty information. */ function _deleteDefaultRoyalty() internal virtual { delete _defaultRoyaltyInfo; } /** * @dev Sets the royalty information for a specific token id, overriding the global default. * * Requirements: * * - `receiver` cannot be the zero address. * - `feeNumerator` cannot be greater than the fee denominator. */ function _setTokenRoyalty( uint256 tokenId, address receiver, uint96 feeNumerator ) internal virtual { require(feeNumerator <= _feeDenominator(), "ERC2981: royalty fee will exceed salePrice"); require(receiver != address(0), "ERC2981: Invalid parameters"); _tokenRoyaltyInfo[tokenId] = RoyaltyInfo(receiver, feeNumerator); } /** * @dev Resets royalty information for the token id back to the global default. */ function _resetTokenRoyalty(uint256 tokenId) internal virtual { delete _tokenRoyaltyInfo[tokenId]; } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.6.0) (interfaces/IERC2981.sol) pragma solidity ^0.8.0; import "../utils/introspection/IERC165.sol"; /** * @dev Interface for the NFT Royalty Standard. * * A standardized way to retrieve royalty payment information for non-fungible tokens (NFTs) to enable universal * support for royalty payments across all NFT marketplaces and ecosystem participants. * * _Available since v4.5._ */ interface IERC2981 is IERC165 { /** * @dev Returns how much royalty is owed and to whom, based on a sale price that may be denominated in any unit of * exchange. The royalty amount is denominated and should be paid in that same unit of exchange. */ function royaltyInfo(uint256 tokenId, uint256 salePrice) external view returns (address receiver, uint256 royaltyAmount); }
{ "optimizer": { "enabled": true, "runs": 200 }, "outputSelection": { "*": { "*": [ "evm.bytecode", "evm.deployedBytecode", "devdoc", "userdoc", "metadata", "abi" ] } }, "libraries": {} }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"inputs":[{"internalType":"address","name":"_floorToken","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"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":[{"components":[{"internalType":"uint256","name":"id","type":"uint256"},{"internalType":"string","name":"title","type":"string"},{"internalType":"string","name":"description","type":"string"},{"internalType":"string","name":"architect","type":"string"},{"internalType":"address","name":"architect_address","type":"address"},{"internalType":"string","name":"image","type":"string"},{"internalType":"string","name":"model","type":"string"},{"internalType":"string","name":"series","type":"string"},{"internalType":"uint16","name":"slots","type":"uint16"},{"internalType":"address","name":"creator","type":"address"},{"internalType":"string","name":"metadataURI","type":"string"},{"internalType":"bool","name":"cc0","type":"bool"}],"indexed":false,"internalType":"struct ROOMs.ROOM","name":"room","type":"tuple"}],"name":"DesignUpdated","type":"event"},{"anonymous":false,"inputs":[{"components":[{"internalType":"uint256","name":"id","type":"uint256"},{"internalType":"string","name":"title","type":"string"},{"internalType":"string","name":"description","type":"string"},{"internalType":"string","name":"architect","type":"string"},{"internalType":"address","name":"architect_address","type":"address"},{"internalType":"string","name":"image","type":"string"},{"internalType":"string","name":"model","type":"string"},{"internalType":"string","name":"series","type":"string"},{"internalType":"uint16","name":"slots","type":"uint16"},{"internalType":"address","name":"creator","type":"address"},{"internalType":"string","name":"metadataURI","type":"string"},{"internalType":"bool","name":"cc0","type":"bool"}],"indexed":false,"internalType":"struct ROOMs.ROOM","name":"room","type":"tuple"}],"name":"NewDesign","type":"event"},{"anonymous":false,"inputs":[{"components":[{"internalType":"uint256","name":"id","type":"uint256"},{"internalType":"uint256","name":"room","type":"uint256"},{"internalType":"uint256[]","name":"allowedFloors","type":"uint256[]"},{"internalType":"uint256","name":"timeStart","type":"uint256"},{"internalType":"uint256","name":"timeEnd","type":"uint256"},{"components":[{"internalType":"uint256","name":"id","type":"uint256"},{"internalType":"address","name":"owner","type":"address"}],"internalType":"struct ROOMs.Floor","name":"winner","type":"tuple"},{"components":[{"internalType":"uint256","name":"id","type":"uint256"},{"internalType":"address","name":"owner","type":"address"}],"internalType":"struct ROOMs.Floor[]","name":"participants","type":"tuple[]"}],"indexed":false,"internalType":"struct ROOMs.Raffle","name":"raffle","type":"tuple"}],"name":"NewRaffle","type":"event"},{"anonymous":false,"inputs":[{"components":[{"internalType":"uint256","name":"id","type":"uint256"},{"internalType":"uint256","name":"room","type":"uint256"},{"internalType":"uint256[]","name":"allowedFloors","type":"uint256[]"},{"internalType":"uint256","name":"timeStart","type":"uint256"},{"internalType":"uint256","name":"timeEnd","type":"uint256"},{"components":[{"internalType":"uint256","name":"id","type":"uint256"},{"internalType":"address","name":"owner","type":"address"}],"internalType":"struct ROOMs.Floor","name":"winner","type":"tuple"},{"components":[{"internalType":"uint256","name":"id","type":"uint256"},{"internalType":"address","name":"owner","type":"address"}],"internalType":"struct ROOMs.Floor[]","name":"participants","type":"tuple[]"}],"indexed":false,"internalType":"struct ROOMs.Raffle","name":"raffle","type":"tuple"},{"components":[{"internalType":"uint256","name":"id","type":"uint256"},{"internalType":"address","name":"owner","type":"address"}],"indexed":false,"internalType":"struct ROOMs.Floor","name":"floor","type":"tuple"}],"name":"NewRaffleEntry","type":"event"},{"anonymous":false,"inputs":[{"components":[{"internalType":"uint256","name":"id","type":"uint256"},{"internalType":"uint256","name":"room","type":"uint256"},{"internalType":"uint256[]","name":"allowedFloors","type":"uint256[]"},{"internalType":"uint256","name":"timeStart","type":"uint256"},{"internalType":"uint256","name":"timeEnd","type":"uint256"},{"components":[{"internalType":"uint256","name":"id","type":"uint256"},{"internalType":"address","name":"owner","type":"address"}],"internalType":"struct ROOMs.Floor","name":"winner","type":"tuple"},{"components":[{"internalType":"uint256","name":"id","type":"uint256"},{"internalType":"address","name":"owner","type":"address"}],"internalType":"struct ROOMs.Floor[]","name":"participants","type":"tuple[]"}],"indexed":false,"internalType":"struct ROOMs.Raffle","name":"raffle","type":"tuple"}],"name":"RaffleClosed","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"},{"inputs":[],"name":"DEFAULT_ADMIN_ROLE","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"DESIGNER_ROLE","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"FloorContract","outputs":[{"internalType":"contract IFloorToken","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"MINTER_ROLE","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"designer","type":"address"}],"name":"addDesigner","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"approve","outputs":[],"stateMutability":"nonpayable","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":"raffleId","type":"uint256"}],"name":"closeRoomRaffle","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"contractURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"components":[{"internalType":"uint256","name":"id","type":"uint256"},{"internalType":"string","name":"title","type":"string"},{"internalType":"string","name":"description","type":"string"},{"internalType":"string","name":"architect","type":"string"},{"internalType":"address","name":"architect_address","type":"address"},{"internalType":"string","name":"image","type":"string"},{"internalType":"string","name":"model","type":"string"},{"internalType":"string","name":"series","type":"string"},{"internalType":"uint16","name":"slots","type":"uint16"},{"internalType":"address","name":"creator","type":"address"},{"internalType":"string","name":"metadataURI","type":"string"},{"internalType":"bool","name":"cc0","type":"bool"}],"internalType":"struct ROOMs.ROOM","name":"design","type":"tuple"}],"name":"createRoomDesign","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"roomId","type":"uint256"},{"internalType":"uint256[]","name":"allowedFloors","type":"uint256[]"},{"internalType":"uint256","name":"timeStart","type":"uint256"},{"internalType":"uint256","name":"timeEnd","type":"uint256"}],"name":"createRoomRaffle","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"designHasRaffle","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"raffleId","type":"uint256"},{"internalType":"uint256","name":"floorId","type":"uint256"}],"name":"enterRoomRaffle","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getApproved","outputs":[{"internalType":"address","name":"","type":"address"}],"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":"uint256","name":"_tokenId","type":"uint256"}],"name":"getRoomByTokenId","outputs":[{"components":[{"internalType":"uint256","name":"id","type":"uint256"},{"internalType":"string","name":"title","type":"string"},{"internalType":"string","name":"description","type":"string"},{"internalType":"string","name":"architect","type":"string"},{"internalType":"address","name":"architect_address","type":"address"},{"internalType":"string","name":"image","type":"string"},{"internalType":"string","name":"model","type":"string"},{"internalType":"string","name":"series","type":"string"},{"internalType":"uint16","name":"slots","type":"uint16"},{"internalType":"address","name":"creator","type":"address"},{"internalType":"string","name":"metadataURI","type":"string"},{"internalType":"bool","name":"cc0","type":"bool"}],"internalType":"struct ROOMs.ROOM","name":"room","type":"tuple"}],"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":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"ownerOf","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"raffleById","outputs":[{"internalType":"uint256","name":"id","type":"uint256"},{"internalType":"uint256","name":"room","type":"uint256"},{"internalType":"uint256","name":"timeStart","type":"uint256"},{"internalType":"uint256","name":"timeEnd","type":"uint256"},{"components":[{"internalType":"uint256","name":"id","type":"uint256"},{"internalType":"address","name":"owner","type":"address"}],"internalType":"struct ROOMs.Floor","name":"winner","type":"tuple"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"min","type":"uint256"},{"internalType":"uint256","name":"max","type":"uint256"}],"name":"random","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"designer","type":"address"}],"name":"removeDesigner","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"},{"internalType":"address","name":"account","type":"address"}],"name":"renounceRole","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"},{"internalType":"address","name":"account","type":"address"}],"name":"revokeRole","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"roomById","outputs":[{"internalType":"uint256","name":"id","type":"uint256"},{"internalType":"string","name":"title","type":"string"},{"internalType":"string","name":"description","type":"string"},{"internalType":"string","name":"architect","type":"string"},{"internalType":"address","name":"architect_address","type":"address"},{"internalType":"string","name":"image","type":"string"},{"internalType":"string","name":"model","type":"string"},{"internalType":"string","name":"series","type":"string"},{"internalType":"uint16","name":"slots","type":"uint16"},{"internalType":"address","name":"creator","type":"address"},{"internalType":"string","name":"metadataURI","type":"string"},{"internalType":"bool","name":"cc0","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_tokenId","type":"uint256"},{"internalType":"uint256","name":"_salePrice","type":"uint256"}],"name":"royaltyInfo","outputs":[{"internalType":"address","name":"","type":"address"},{"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":"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":"string","name":"newContractURIHash","type":"string"}],"name":"setContractURIHash","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes4","name":"interfaceId","type":"bytes4"}],"name":"supportsInterface","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"tokenToRoom","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":[{"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":"uint256","name":"_roomId","type":"uint256"},{"components":[{"internalType":"uint256","name":"id","type":"uint256"},{"internalType":"string","name":"title","type":"string"},{"internalType":"string","name":"description","type":"string"},{"internalType":"string","name":"architect","type":"string"},{"internalType":"address","name":"architect_address","type":"address"},{"internalType":"string","name":"image","type":"string"},{"internalType":"string","name":"model","type":"string"},{"internalType":"string","name":"series","type":"string"},{"internalType":"uint16","name":"slots","type":"uint16"},{"internalType":"address","name":"creator","type":"address"},{"internalType":"string","name":"metadataURI","type":"string"},{"internalType":"bool","name":"cc0","type":"bool"}],"internalType":"struct ROOMs.ROOM","name":"design","type":"tuple"}],"name":"updateDesign","outputs":[],"stateMutability":"nonpayable","type":"function"}]
Contract Creation Code
60e0604052602e6080818152906200558360a03980516200002991600a91602090910190620001ed565b503480156200003757600080fd5b50604051620055b1380380620055b18339810160408190526200005a9162000293565b604080518082018252600a8152694d4f434120524f4f4d7360b01b602080830191825283518085019094526004845263524f4f4d60e01b908401528151919291620000a891600291620001ed565b508051620000be906003906020840190620001ed565b5050600d80546001600160a01b0319166001600160a01b03841617905550620000e960003362000148565b620001157f9f2df0fed2c77648de5860a4cc508cd0818c85b8b8a1ab4ceeef8d981c8956a63362000148565b620001417f22c69ab406805e70d07fb1a6502af760601d3b977beadb295a9d76d5852e16a33362000148565b5062000302565b60008281526009602090815260408083206001600160a01b038516845290915290205460ff16620001e95760008281526009602090815260408083206001600160a01b03851684529091529020805460ff19166001179055620001a83390565b6001600160a01b0316816001600160a01b0316837f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d60405160405180910390a45b5050565b828054620001fb90620002c5565b90600052602060002090601f0160209004810192826200021f57600085556200026a565b82601f106200023a57805160ff19168380011785556200026a565b828001600101855582156200026a579182015b828111156200026a5782518255916020019190600101906200024d565b50620002789291506200027c565b5090565b5b808211156200027857600081556001016200027d565b600060208284031215620002a657600080fd5b81516001600160a01b0381168114620002be57600080fd5b9392505050565b600181811c90821680620002da57607f821691505b60208210811415620002fc57634e487b7160e01b600052602260045260246000fd5b50919050565b61527180620003126000396000f3fe608060405234801561001057600080fd5b50600436106102325760003560e01c806386dfa68f11610130578063b88d4fde116100b8578063d53913931161007c578063d5391393146105a1578063d547741f146105c8578063df064ad8146105db578063e8a3d485146105f0578063e985e9c5146105f857600080fd5b8063b88d4fde14610542578063baedc1c414610555578063c87b56dd14610568578063caacbdf61461057b578063cec6a91e1461058e57600080fd5b806395d89b41116100ff57806395d89b41146104f9578063a217fddf14610501578063a22cb46514610509578063a55d82691461051c578063a9dd12251461052f57600080fd5b806386dfa68f146104435780638c90f169146104635780638cd10e50146104d357806391d14854146104e657600080fd5b806336568abe116101be5780635d6b1c3f116101825780635d6b1c3f146103d75780636352211e146103ea5780636de2c58a146103fd57806370a0823114610410578063833c057a1461042357600080fd5b806336568abe1461035057806342842e0e14610363578063517ee57d14610376578063534b1d071461039957806359c02286146103c457600080fd5b80631b5ea45a116102055780631b5ea45a146102b457806323b872dd146102c7578063248a9ca3146102da5780632a55205a1461030b5780632f2ff15d1461033d57600080fd5b806301ffc9a71461023757806306fdde031461025f578063081812fc14610274578063095ea7b31461029f575b600080fd5b61024a610245366004614309565b610634565b60405190151581526020015b60405180910390f35b610267610645565b604051610256919061437e565b610287610282366004614391565b6106d7565b6040516001600160a01b039091168152602001610256565b6102b26102ad3660046143c6565b6106fe565b005b6102b26102c23660046143f0565b610819565b6102b26102d536600461440b565b610840565b6102fd6102e8366004614391565b60009081526009602052604090206001015490565b604051908152602001610256565b61031e610319366004614447565b610871565b604080516001600160a01b039093168352602083019190915201610256565b6102b261034b366004614469565b61091d565b6102b261035e366004614469565b610942565b6102b261037136600461440b565b6109bc565b61024a610384366004614391565b60106020526000908152604090205460ff1681565b6103ac6103a7366004614391565b6109d7565b6040516102569c9b9a99989796959493929190614495565b600d54610287906001600160a01b031681565b6102b26103e53660046145e6565b610e0c565b6102876103f8366004614391565b61142c565b6102b261040b366004614391565b61148c565b6102fd61041e3660046143f0565b6120d5565b610436610431366004614391565b61215b565b60405161025691906146a6565b6102fd610451366004614391565b600f6020526000908152604090205481565b6104c2610471366004614391565b60116020908152600091825260409182902080546001820154600383015460048401548651808801909752600585015487526006909401546001600160a01b03169486019490945290939092919085565b6040516102569594939291906147f4565b6102b26104e1366004614447565b61265d565b61024a6104f4366004614469565b612e87565b610267612eb2565b6102fd600081565b6102b2610517366004614844565b612ec1565b6102b261052a3660046143f0565b612ecc565b6102fd61053d366004614447565b612eef565b6102b26105503660046148c6565b612f63565b6102b2610563366004614962565b612f9b565b610267610576366004614391565b612fb9565b6102b2610589366004614b32565b612fc4565b6102b261059c366004614b67565b613177565b6102fd7f9f2df0fed2c77648de5860a4cc508cd0818c85b8b8a1ab4ceeef8d981c8956a681565b6102b26105d6366004614469565b613361565b6102fd60008051602061521c83398151915281565b610267613386565b61024a610606366004614bae565b6001600160a01b03918216600090815260076020908152604080832093909416825291909152205460ff1690565b600061063f826133ae565b92915050565b60606002805461065490614bd8565b80601f016020809104026020016040519081016040528092919081815260200182805461068090614bd8565b80156106cd5780601f106106a2576101008083540402835291602001916106cd565b820191906000526020600020905b8154815290600101906020018083116106b057829003601f168201915b5050505050905090565b60006106e2826133d3565b506000908152600660205260409020546001600160a01b031690565b60006107098261142c565b9050806001600160a01b0316836001600160a01b0316141561077c5760405162461bcd60e51b815260206004820152602160248201527f4552433732313a20617070726f76616c20746f2063757272656e74206f776e656044820152603960f91b60648201526084015b60405180910390fd5b336001600160a01b038216148061079857506107988133610606565b61080a5760405162461bcd60e51b815260206004820152603e60248201527f4552433732313a20617070726f76652063616c6c6572206973206e6f7420746f60448201527f6b656e206f776e6572206e6f7220617070726f76656420666f7220616c6c00006064820152608401610773565b6108148383613435565b505050565b6000610824816134a3565b61083c60008051602061521c833981519152836134ad565b5050565b61084a3382613533565b6108665760405162461bcd60e51b815260040161077390614c13565b6108148383836135b2565b60008281526001602090815260408083208151808301909252546001600160a01b038116808352600160a01b9091046001600160601b03169282019290925282916108e65750604080518082019091526000546001600160a01b0381168252600160a01b90046001600160601b031660208201525b602081015160009061271090610905906001600160601b031687614c77565b61090f9190614cac565b915196919550909350505050565b600082815260096020526040902060010154610938816134a3565b61081483836134ad565b6001600160a01b03811633146109b25760405162461bcd60e51b815260206004820152602f60248201527f416363657373436f6e74726f6c3a2063616e206f6e6c792072656e6f756e636560448201526e103937b632b9903337b91039b2b63360891b6064820152608401610773565b61083c828261374e565b61081483838360405180602001604052806000815250612f63565b600e60205260009081526040902080546001820180549192916109f990614bd8565b80601f0160208091040260200160405190810160405280929190818152602001828054610a2590614bd8565b8015610a725780601f10610a4757610100808354040283529160200191610a72565b820191906000526020600020905b815481529060010190602001808311610a5557829003601f168201915b505050505090806002018054610a8790614bd8565b80601f0160208091040260200160405190810160405280929190818152602001828054610ab390614bd8565b8015610b005780601f10610ad557610100808354040283529160200191610b00565b820191906000526020600020905b815481529060010190602001808311610ae357829003601f168201915b505050505090806003018054610b1590614bd8565b80601f0160208091040260200160405190810160405280929190818152602001828054610b4190614bd8565b8015610b8e5780601f10610b6357610100808354040283529160200191610b8e565b820191906000526020600020905b815481529060010190602001808311610b7157829003601f168201915b505050600484015460058501805494956001600160a01b03909216949193509150610bb890614bd8565b80601f0160208091040260200160405190810160405280929190818152602001828054610be490614bd8565b8015610c315780601f10610c0657610100808354040283529160200191610c31565b820191906000526020600020905b815481529060010190602001808311610c1457829003601f168201915b505050505090806006018054610c4690614bd8565b80601f0160208091040260200160405190810160405280929190818152602001828054610c7290614bd8565b8015610cbf5780601f10610c9457610100808354040283529160200191610cbf565b820191906000526020600020905b815481529060010190602001808311610ca257829003601f168201915b505050505090806007018054610cd490614bd8565b80601f0160208091040260200160405190810160405280929190818152602001828054610d0090614bd8565b8015610d4d5780601f10610d2257610100808354040283529160200191610d4d565b820191906000526020600020905b815481529060010190602001808311610d3057829003601f168201915b505050506008830154600984018054939461ffff831694620100009093046001600160a01b0316935091610d8090614bd8565b80601f0160208091040260200160405190810160405280929190818152602001828054610dac90614bd8565b8015610df95780601f10610dce57610100808354040283529160200191610df9565b820191906000526020600020905b815481529060010190602001808311610ddc57829003601f168201915b505050600a909301549192505060ff168c565b60008051602061521c833981519152610e24816134a3565b6000600e60008781526020019081526020016000206040518061018001604052908160008201548152602001600182018054610e5f90614bd8565b80601f0160208091040260200160405190810160405280929190818152602001828054610e8b90614bd8565b8015610ed85780601f10610ead57610100808354040283529160200191610ed8565b820191906000526020600020905b815481529060010190602001808311610ebb57829003601f168201915b50505050508152602001600282018054610ef190614bd8565b80601f0160208091040260200160405190810160405280929190818152602001828054610f1d90614bd8565b8015610f6a5780601f10610f3f57610100808354040283529160200191610f6a565b820191906000526020600020905b815481529060010190602001808311610f4d57829003601f168201915b50505050508152602001600382018054610f8390614bd8565b80601f0160208091040260200160405190810160405280929190818152602001828054610faf90614bd8565b8015610ffc5780601f10610fd157610100808354040283529160200191610ffc565b820191906000526020600020905b815481529060010190602001808311610fdf57829003601f168201915b505050918352505060048201546001600160a01b0316602082015260058201805460409092019161102c90614bd8565b80601f016020809104026020016040519081016040528092919081815260200182805461105890614bd8565b80156110a55780601f1061107a576101008083540402835291602001916110a5565b820191906000526020600020905b81548152906001019060200180831161108857829003601f168201915b505050505081526020016006820180546110be90614bd8565b80601f01602080910402602001604051908101604052809291908181526020018280546110ea90614bd8565b80156111375780601f1061110c57610100808354040283529160200191611137565b820191906000526020600020905b81548152906001019060200180831161111a57829003601f168201915b5050505050815260200160078201805461115090614bd8565b80601f016020809104026020016040519081016040528092919081815260200182805461117c90614bd8565b80156111c95780601f1061119e576101008083540402835291602001916111c9565b820191906000526020600020905b8154815290600101906020018083116111ac57829003601f168201915b5050509183525050600882015461ffff811660208301526201000090046001600160a01b0316604082015260098201805460609092019161120990614bd8565b80601f016020809104026020016040519081016040528092919081815260200182805461123590614bd8565b80156112825780601f1061125757610100808354040283529160200191611282565b820191906000526020600020905b81548152906001019060200180831161126557829003601f168201915b5050509183525050600a919091015460ff90811615156020928301526000898152601090925260409091205491925016156112ff5760405162461bcd60e51b815260206004820152601760248201527f526166666c6520616c726561647920737461727465642e0000000000000000006044820152606401610773565b6101208101516001600160a01b031633146113775760405162461bcd60e51b815260206004820152603260248201527f4f6e6c79207468652063726561746f722063616e207374617274206120726166604482015271333632903337b9103a3434b9903937b7b69760711b6064820152608401610773565b6000611382600c5490565b9050611392600c80546001019055565b600081815260116020908152604090912082815560018101899055875190916113c29160028401918a0190614220565b50600381018690556004810185905560008881526010602052604090819020805460ff19166001179055517fa166010963eeaa7aaf01572088e4eb15cd8cba364946ee3e39e9040e11b917d59061141a908390614dc0565b60405180910390a15050505050505050565b6000818152600460205260408120546001600160a01b03168061063f5760405162461bcd60e51b8152602060048201526018602482015277115490cdcc8c4e881a5b9d985b1a59081d1bdad95b88125160421b6044820152606401610773565b600081815260116020526040902060068101546001600160a01b0316156115055760405162461bcd60e51b815260206004820152602760248201527f5468652077696e6e65722068617320616c7265616479206265656e20646574656044820152663936b4b732b21760c91b6064820152608401610773565b600781015415611c045760078101546000906001101561153e5760078201546115379060009061053d90600190614dd3565b9050611542565b5060005b81600701818154811061155757611557614dea565b60009182526020822060029091020180546005850155600101546006840180546001600160a01b0319166001600160a01b039092169190911790555b60078301548110156116c9576005830154600784018054839081106115ba576115ba614dea565b90600052602060002090600202016000015414156115d7576116b7565b600d546007840180546001600160a01b03909216916323b872dd9130918590811061160457611604614dea565b906000526020600020906002020160010160009054906101000a90046001600160a01b031686600701858154811061163e5761163e614dea565b60009182526020909120600290910201546040516001600160e01b031960e086901b1681526001600160a01b0393841660048201529290911660248301526044820152606401600060405180830381600087803b15801561169e57600080fd5b505af11580156116b2573d6000803e3d6000fd5b505050505b806116c181614e00565b915050611593565b506000600e600084600101548152602001908152602001600020604051806101800160405290816000820154815260200160018201805461170990614bd8565b80601f016020809104026020016040519081016040528092919081815260200182805461173590614bd8565b80156117825780601f1061175757610100808354040283529160200191611782565b820191906000526020600020905b81548152906001019060200180831161176557829003601f168201915b5050505050815260200160028201805461179b90614bd8565b80601f01602080910402602001604051908101604052809291908181526020018280546117c790614bd8565b80156118145780601f106117e957610100808354040283529160200191611814565b820191906000526020600020905b8154815290600101906020018083116117f757829003601f168201915b5050505050815260200160038201805461182d90614bd8565b80601f016020809104026020016040519081016040528092919081815260200182805461185990614bd8565b80156118a65780601f1061187b576101008083540402835291602001916118a6565b820191906000526020600020905b81548152906001019060200180831161188957829003601f168201915b505050918352505060048201546001600160a01b031660208201526005820180546040909201916118d690614bd8565b80601f016020809104026020016040519081016040528092919081815260200182805461190290614bd8565b801561194f5780601f106119245761010080835404028352916020019161194f565b820191906000526020600020905b81548152906001019060200180831161193257829003601f168201915b5050505050815260200160068201805461196890614bd8565b80601f016020809104026020016040519081016040528092919081815260200182805461199490614bd8565b80156119e15780601f106119b6576101008083540402835291602001916119e1565b820191906000526020600020905b8154815290600101906020018083116119c457829003601f168201915b505050505081526020016007820180546119fa90614bd8565b80601f0160208091040260200160405190810160405280929190818152602001828054611a2690614bd8565b8015611a735780601f10611a4857610100808354040283529160200191611a73565b820191906000526020600020905b815481529060010190602001808311611a5657829003601f168201915b5050509183525050600882015461ffff811660208301526201000090046001600160a01b03166040820152600982018054606090920191611ab390614bd8565b80601f0160208091040260200160405190810160405280929190818152602001828054611adf90614bd8565b8015611b2c5780601f10611b0157610100808354040283529160200191611b2c565b820191906000526020600020905b815481529060010190602001808311611b0f57829003601f168201915b5050509183525050600a919091015460ff161515602090910152600684015460058501546101408301516001870154939450611b73936001600160a01b03909316926137b5565b611b8b836005016000015482608001516127106137e0565b600d5460058401546040516323b872dd60e01b815230600482015261dead602482015260448101919091526001600160a01b03909116906323b872dd90606401600060405180830381600087803b158015611be557600080fd5b505af1158015611bf9573d6000803e3d6000fd5b50505050505061209a565b6000600e6000836001015481526020019081526020016000206040518061018001604052908160008201548152602001600182018054611c4390614bd8565b80601f0160208091040260200160405190810160405280929190818152602001828054611c6f90614bd8565b8015611cbc5780601f10611c9157610100808354040283529160200191611cbc565b820191906000526020600020905b815481529060010190602001808311611c9f57829003601f168201915b50505050508152602001600282018054611cd590614bd8565b80601f0160208091040260200160405190810160405280929190818152602001828054611d0190614bd8565b8015611d4e5780601f10611d2357610100808354040283529160200191611d4e565b820191906000526020600020905b815481529060010190602001808311611d3157829003601f168201915b50505050508152602001600382018054611d6790614bd8565b80601f0160208091040260200160405190810160405280929190818152602001828054611d9390614bd8565b8015611de05780601f10611db557610100808354040283529160200191611de0565b820191906000526020600020905b815481529060010190602001808311611dc357829003601f168201915b505050918352505060048201546001600160a01b03166020820152600582018054604090920191611e1090614bd8565b80601f0160208091040260200160405190810160405280929190818152602001828054611e3c90614bd8565b8015611e895780601f10611e5e57610100808354040283529160200191611e89565b820191906000526020600020905b815481529060010190602001808311611e6c57829003601f168201915b50505050508152602001600682018054611ea290614bd8565b80601f0160208091040260200160405190810160405280929190818152602001828054611ece90614bd8565b8015611f1b5780601f10611ef057610100808354040283529160200191611f1b565b820191906000526020600020905b815481529060010190602001808311611efe57829003601f168201915b50505050508152602001600782018054611f3490614bd8565b80601f0160208091040260200160405190810160405280929190818152602001828054611f6090614bd8565b8015611fad5780601f10611f8257610100808354040283529160200191611fad565b820191906000526020600020905b815481529060010190602001808311611f9057829003601f168201915b5050509183525050600882015461ffff811660208301526201000090046001600160a01b03166040820152600982018054606090920191611fed90614bd8565b80601f016020809104026020016040519081016040528092919081815260200182805461201990614bd8565b80156120665780601f1061203b57610100808354040283529160200191612066565b820191906000526020600020905b81548152906001019060200180831161204957829003601f168201915b5050509183525050600a919091015460ff16151560209182015290516000908152601090915260409020805460ff19169055505b7f3d2d37fd153c8ee13ed8a868a7bdd3bac96b4879a258fa98759209fc17ec3dc6816040516120c99190614dc0565b60405180910390a15050565b60006001600160a01b03821661213f5760405162461bcd60e51b815260206004820152602960248201527f4552433732313a2061646472657373207a65726f206973206e6f7420612076616044820152683634b21037bbb732b960b91b6064820152608401610773565b506001600160a01b031660009081526005602052604090205490565b6121d76040518061018001604052806000815260200160608152602001606081526020016060815260200160006001600160a01b03168152602001606081526020016060815260200160608152602001600061ffff16815260200160006001600160a01b03168152602001606081526020016000151581525090565b6000828152600f6020908152604080832054808452600e8352928190208151610180810190925280548252600181018054929391929184019161221990614bd8565b80601f016020809104026020016040519081016040528092919081815260200182805461224590614bd8565b80156122925780601f1061226757610100808354040283529160200191612292565b820191906000526020600020905b81548152906001019060200180831161227557829003601f168201915b505050505081526020016002820180546122ab90614bd8565b80601f01602080910402602001604051908101604052809291908181526020018280546122d790614bd8565b80156123245780601f106122f957610100808354040283529160200191612324565b820191906000526020600020905b81548152906001019060200180831161230757829003601f168201915b5050505050815260200160038201805461233d90614bd8565b80601f016020809104026020016040519081016040528092919081815260200182805461236990614bd8565b80156123b65780601f1061238b576101008083540402835291602001916123b6565b820191906000526020600020905b81548152906001019060200180831161239957829003601f168201915b505050918352505060048201546001600160a01b031660208201526005820180546040909201916123e690614bd8565b80601f016020809104026020016040519081016040528092919081815260200182805461241290614bd8565b801561245f5780601f106124345761010080835404028352916020019161245f565b820191906000526020600020905b81548152906001019060200180831161244257829003601f168201915b5050505050815260200160068201805461247890614bd8565b80601f01602080910402602001604051908101604052809291908181526020018280546124a490614bd8565b80156124f15780601f106124c6576101008083540402835291602001916124f1565b820191906000526020600020905b8154815290600101906020018083116124d457829003601f168201915b5050505050815260200160078201805461250a90614bd8565b80601f016020809104026020016040519081016040528092919081815260200182805461253690614bd8565b80156125835780601f1061255857610100808354040283529160200191612583565b820191906000526020600020905b81548152906001019060200180831161256657829003601f168201915b5050509183525050600882015461ffff811660208301526201000090046001600160a01b031660408201526009820180546060909201916125c390614bd8565b80601f01602080910402602001604051908101604052809291908181526020018280546125ef90614bd8565b801561263c5780601f106126115761010080835404028352916020019161263c565b820191906000526020600020905b81548152906001019060200180831161261f57829003601f168201915b5050509183525050600a919091015460ff1615156020909101529392505050565b60008281526011602090815260408083206001808201548552600e8452828520835161018081019094528054845290810180549295949192918401916126a290614bd8565b80601f01602080910402602001604051908101604052809291908181526020018280546126ce90614bd8565b801561271b5780601f106126f05761010080835404028352916020019161271b565b820191906000526020600020905b8154815290600101906020018083116126fe57829003601f168201915b5050505050815260200160028201805461273490614bd8565b80601f016020809104026020016040519081016040528092919081815260200182805461276090614bd8565b80156127ad5780601f10612782576101008083540402835291602001916127ad565b820191906000526020600020905b81548152906001019060200180831161279057829003601f168201915b505050505081526020016003820180546127c690614bd8565b80601f01602080910402602001604051908101604052809291908181526020018280546127f290614bd8565b801561283f5780601f106128145761010080835404028352916020019161283f565b820191906000526020600020905b81548152906001019060200180831161282257829003601f168201915b505050918352505060048201546001600160a01b0316602082015260058201805460409092019161286f90614bd8565b80601f016020809104026020016040519081016040528092919081815260200182805461289b90614bd8565b80156128e85780601f106128bd576101008083540402835291602001916128e8565b820191906000526020600020905b8154815290600101906020018083116128cb57829003601f168201915b5050505050815260200160068201805461290190614bd8565b80601f016020809104026020016040519081016040528092919081815260200182805461292d90614bd8565b801561297a5780601f1061294f5761010080835404028352916020019161297a565b820191906000526020600020905b81548152906001019060200180831161295d57829003601f168201915b5050505050815260200160078201805461299390614bd8565b80601f01602080910402602001604051908101604052809291908181526020018280546129bf90614bd8565b8015612a0c5780601f106129e157610100808354040283529160200191612a0c565b820191906000526020600020905b8154815290600101906020018083116129ef57829003601f168201915b5050509183525050600882015461ffff811660208301526201000090046001600160a01b03166040820152600982018054606090920191612a4c90614bd8565b80601f0160208091040260200160405190810160405280929190818152602001828054612a7890614bd8565b8015612ac55780601f10612a9a57610100808354040283529160200191612ac5565b820191906000526020600020905b815481529060010190602001808311612aa857829003601f168201915b5050509183525050600a919091015460ff161515602090910152610100810151600d54604051636cd4d86360e11b81526004810187905292935061ffff909116916001600160a01b039091169063d9a9b0c69060240160206040518083038186803b158015612b3357600080fd5b505afa158015612b47573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612b6b9190614e1b565b61ffff1614612bcf5760405162461bcd60e51b815260206004820152602a60248201527f53697a65206f6620466c6f6f7220646f6573206e6f74206d617463682073697a604482015269329037b3102937b7b69760b11b6064820152608401610773565b8160030154421015612c195760405162461bcd60e51b81526020600482015260136024820152722930b3333632903737ba1039ba30b93a32b21760691b6044820152606401610773565b81600401544210612c5c5760405162461bcd60e51b815260206004820152600d60248201526c2930b33336329032b73232b21760991b6044820152606401610773565b60068201546001600160a01b031615612ca85760405162461bcd60e51b815260206004820152600e60248201526d2930b33336329031b637b9b2b21760911b6044820152606401610773565b600282015460009015612d0c5760005b6002840154811015612d065784846002018281548110612cda57612cda614dea565b90600052602060002001541415612cf45760019150612d06565b80612cfe81614e00565b915050612cb8565b50612d10565b5060015b600181151514612d725760405162461bcd60e51b815260206004820152602760248201527f596f75277265206e6f7420616c6c6f77656420746f206a6f696e2074686973206044820152663930b33336329760c91b6064820152608401610773565b600d546040516323b872dd60e01b8152336004820152306024820152604481018690526001600160a01b03909116906323b872dd90606401600060405180830381600087803b158015612dc457600080fd5b505af1158015612dd8573d6000803e3d6000fd5b505060408051808201909152600080825260208201529150612df79050565b8481523360208083019182526007860180546001808201835560009283529290912084516002909202019081559151910180546001600160a01b0319166001600160a01b039092169190911790556040517f3148642240156f8cee097c743093d9f15591e7ce143dc95bf184c49561fd5d5d90612e779086908490614e38565b60405180910390a1505050505050565b60009182526009602090815260408084206001600160a01b0393909316845291905290205460ff1690565b60606003805461065490614bd8565b61083c3383836138ee565b6000612ed7816134a3565b61083c60008051602061521c8339815191528361374e565b600082612efc8184614dd3565b612f07906001614e6d565b4442612f14600143614dd3565b6040805160208101949094528301919091524060608201526080016040516020818303038152906040528051906020012060001c612f529190614e85565b612f5c9190614e6d565b9392505050565b612f6d3383613533565b612f895760405162461bcd60e51b815260040161077390614c13565b612f95848484846139bd565b50505050565b6000612fa6816134a3565b815161081490600a90602085019061426b565b606061063f826139f0565b60008051602061521c833981519152612fdc816134a3565b6000612fe7600b5490565b9050612ff7600b80546001019055565b6000818152600e6020908152604090912082815584820151805191926130259260018501929091019061426b565b506040840151805161304191600284019160209091019061426b565b506060840151805161305d91600384019160209091019061426b565b5060808401516004820180546001600160a01b0319166001600160a01b0390921691909117905560a0840151805161309f91600584019160209091019061426b565b5060c084015180516130bb91600684019160209091019061426b565b5060e084015180516130d791600784019160209091019061426b565b5061010084015160088201805461ffff9092166001600160b01b031990921691909117336201000002179055610140840151805161311f91600984019160209091019061426b565b50610160840151600a8201805460ff19169115159190911790556040517f6150efc64b99396a254605aa723ebb4d8fba90f0bec269ffeb756c94af46410e90613169908390614f10565b60405180910390a150505050565b60008051602061521c83398151915261318f816134a3565b6000838152600e6020526040902060088101546201000090046001600160a01b031633146132135760405162461bcd60e51b815260206004820152602b60248201527f596f75277265206e6f74207468652063726561746f72206f662074686973205260448201526a27a7a6902232b9b4b3b71760a91b6064820152608401610773565b602080840151805161322b926001850192019061426b565b506040830151805161324791600284019160209091019061426b565b506060830151805161326391600384019160209091019061426b565b5060808301516004820180546001600160a01b0319166001600160a01b0390921691909117905560a083015180516132a591600584019160209091019061426b565b5060c083015180516132c191600684019160209091019061426b565b5060e083015180516132dd91600784019160209091019061426b565b5061010083015160088201805461ffff191661ffff909216919091179055610140830151805161331791600984019160209091019061426b565b50610160830151600a8201805460ff19169115159190911790556040517f882f764710b2635db7ff421919f034d89bef2f93ba8f25aa6ea6234d8884c31590613169908390614f10565b60008281526009602052604090206001015461337c816134a3565b610814838361374e565b6060600a60405160200161339a9190615033565b604051602081830303815290604052905090565b60006001600160e01b03198216637965db0b60e01b148061063f575061063f82613af9565b6000818152600460205260409020546001600160a01b03166134325760405162461bcd60e51b8152602060048201526018602482015277115490cdcc8c4e881a5b9d985b1a59081d1bdad95b88125160421b6044820152606401610773565b50565b600081815260066020526040902080546001600160a01b0319166001600160a01b038416908117909155819061346a8261142c565b6001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b6134328133613b04565b6134b78282612e87565b61083c5760008281526009602090815260408083206001600160a01b03851684529091529020805460ff191660011790556134ef3390565b6001600160a01b0316816001600160a01b0316837f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d60405160405180910390a45050565b60008061353f8361142c565b9050806001600160a01b0316846001600160a01b0316148061358657506001600160a01b0380821660009081526007602090815260408083209388168352929052205460ff165b806135aa5750836001600160a01b031661359f846106d7565b6001600160a01b0316145b949350505050565b826001600160a01b03166135c58261142c565b6001600160a01b0316146136295760405162461bcd60e51b815260206004820152602560248201527f4552433732313a207472616e736665722066726f6d20696e636f72726563742060448201526437bbb732b960d91b6064820152608401610773565b6001600160a01b03821661368b5760405162461bcd60e51b8152602060048201526024808201527f4552433732313a207472616e7366657220746f20746865207a65726f206164646044820152637265737360e01b6064820152608401610773565b613696600082613435565b6001600160a01b03831660009081526005602052604081208054600192906136bf908490614dd3565b90915550506001600160a01b03821660009081526005602052604081208054600192906136ed908490614e6d565b909155505060008181526004602052604080822080546001600160a01b0319166001600160a01b0386811691821790925591518493918716917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91a4505050565b6137588282612e87565b1561083c5760008281526009602090815260408083206001600160a01b0385168085529252808320805460ff1916905551339285917ff6391f5c32d9c69d2a47ea670b442974b53935d1edc7fd64eb21e047a839171b9190a45050565b6137bf8484613b68565b6137c98383613b82565b6000928352600f6020526040909220919091555050565b6127106001600160601b038216111561384e5760405162461bcd60e51b815260206004820152602a60248201527f455243323938313a20726f79616c7479206665652077696c6c206578636565646044820152692073616c65507269636560b01b6064820152608401610773565b6001600160a01b0382166138a45760405162461bcd60e51b815260206004820152601b60248201527f455243323938313a20496e76616c696420706172616d657465727300000000006044820152606401610773565b6040805180820182526001600160a01b0393841681526001600160601b0392831660208083019182526000968752600190529190942093519051909116600160a01b029116179055565b816001600160a01b0316836001600160a01b031614156139505760405162461bcd60e51b815260206004820152601960248201527f4552433732313a20617070726f766520746f2063616c6c6572000000000000006044820152606401610773565b6001600160a01b03838116600081815260076020908152604080832094871680845294825291829020805460ff191686151590811790915591519182527f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a3505050565b6139c88484846135b2565b6139d484848484613c1c565b612f955760405162461bcd60e51b8152600401610773906150be565b60606139fb826133d3565b60008281526008602052604081208054613a1490614bd8565b80601f0160208091040260200160405190810160405280929190818152602001828054613a4090614bd8565b8015613a8d5780601f10613a6257610100808354040283529160200191613a8d565b820191906000526020600020905b815481529060010190602001808311613a7057829003601f168201915b505050505090506000613aab60408051602081019091526000815290565b9050805160001415613abe575092915050565b815115613af0578082604051602001613ad8929190615110565b60405160208183030381529060405292505050919050565b6135aa84613d29565b600061063f82613d9c565b613b0e8282612e87565b61083c57613b26816001600160a01b03166014613ddc565b613b31836020613ddc565b604051602001613b4292919061513f565b60408051601f198184030181529082905262461bcd60e51b82526107739160040161437e565b61083c828260405180602001604052806000815250613f78565b6000828152600460205260409020546001600160a01b0316613bfd5760405162461bcd60e51b815260206004820152602e60248201527f45524337323155524953746f726167653a2055524920736574206f66206e6f6e60448201526d32bc34b9ba32b73a103a37b5b2b760911b6064820152608401610773565b600082815260086020908152604090912082516108149284019061426b565b60006001600160a01b0384163b15613d1e57604051630a85bd0160e11b81526001600160a01b0385169063150b7a0290613c609033908990889088906004016151b4565b602060405180830381600087803b158015613c7a57600080fd5b505af1925050508015613caa575060408051601f3d908101601f19168201909252613ca7918101906151e7565b60015b613d04573d808015613cd8576040519150601f19603f3d011682016040523d82523d6000602084013e613cdd565b606091505b508051613cfc5760405162461bcd60e51b8152600401610773906150be565b805181602001fd5b6001600160e01b031916630a85bd0160e11b1490506135aa565b506001949350505050565b6060613d34826133d3565b6000613d4b60408051602081019091526000815290565b90506000815111613d6b5760405180602001604052806000815250612f5c565b80613d7584613fab565b604051602001613d86929190615110565b6040516020818303038152906040529392505050565b60006001600160e01b031982166380ac58cd60e01b1480613dcd57506001600160e01b03198216635b5e139f60e01b145b8061063f575061063f826140a9565b60606000613deb836002614c77565b613df6906002614e6d565b67ffffffffffffffff811115613e0e57613e0e614575565b6040519080825280601f01601f191660200182016040528015613e38576020820181803683370190505b509050600360fc1b81600081518110613e5357613e53614dea565b60200101906001600160f81b031916908160001a905350600f60fb1b81600181518110613e8257613e82614dea565b60200101906001600160f81b031916908160001a9053506000613ea6846002614c77565b613eb1906001614e6d565b90505b6001811115613f29576f181899199a1a9b1b9c1cb0b131b232b360811b85600f1660108110613ee557613ee5614dea565b1a60f81b828281518110613efb57613efb614dea565b60200101906001600160f81b031916908160001a90535060049490941c93613f2281615204565b9050613eb4565b508315612f5c5760405162461bcd60e51b815260206004820181905260248201527f537472696e67733a20686578206c656e67746820696e73756666696369656e746044820152606401610773565b613f8283836140de565b613f8f6000848484613c1c565b6108145760405162461bcd60e51b8152600401610773906150be565b606081613fcf5750506040805180820190915260018152600360fc1b602082015290565b8160005b8115613ff95780613fe381614e00565b9150613ff29050600a83614cac565b9150613fd3565b60008167ffffffffffffffff81111561401457614014614575565b6040519080825280601f01601f19166020018201604052801561403e576020820181803683370190505b5090505b84156135aa57614053600183614dd3565b9150614060600a86614e85565b61406b906030614e6d565b60f81b81838151811061408057614080614dea565b60200101906001600160f81b031916908160001a9053506140a2600a86614cac565b9450614042565b60006001600160e01b0319821663152a902d60e11b148061063f57506301ffc9a760e01b6001600160e01b031983161461063f565b6001600160a01b0382166141345760405162461bcd60e51b815260206004820181905260248201527f4552433732313a206d696e7420746f20746865207a65726f20616464726573736044820152606401610773565b6000818152600460205260409020546001600160a01b0316156141995760405162461bcd60e51b815260206004820152601c60248201527f4552433732313a20746f6b656e20616c7265616479206d696e746564000000006044820152606401610773565b6001600160a01b03821660009081526005602052604081208054600192906141c2908490614e6d565b909155505060008181526004602052604080822080546001600160a01b0319166001600160a01b03861690811790915590518392907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b82805482825590600052602060002090810192821561425b579160200282015b8281111561425b578251825591602001919060010190614240565b506142679291506142de565b5090565b82805461427790614bd8565b90600052602060002090601f016020900481019282614299576000855561425b565b82601f106142b257805160ff191683800117855561425b565b8280016001018555821561425b579182018281111561425b578251825591602001919060010190614240565b5b8082111561426757600081556001016142df565b6001600160e01b03198116811461343257600080fd5b60006020828403121561431b57600080fd5b8135612f5c816142f3565b60005b83811015614341578181015183820152602001614329565b83811115612f955750506000910152565b6000815180845261436a816020860160208601614326565b601f01601f19169290920160200192915050565b602081526000612f5c6020830184614352565b6000602082840312156143a357600080fd5b5035919050565b80356001600160a01b03811681146143c157600080fd5b919050565b600080604083850312156143d957600080fd5b6143e2836143aa565b946020939093013593505050565b60006020828403121561440257600080fd5b612f5c826143aa565b60008060006060848603121561442057600080fd5b614429846143aa565b9250614437602085016143aa565b9150604084013590509250925092565b6000806040838503121561445a57600080fd5b50508035926020909101359150565b6000806040838503121561447c57600080fd5b8235915061448c602084016143aa565b90509250929050565b60006101808e83528060208401526144af8184018f614352565b905082810360408401526144c3818e614352565b905082810360608401526144d7818d614352565b6001600160a01b038c166080850152905082810360a08401526144fa818b614352565b905082810360c084015261450e818a614352565b905082810360e08401526145228189614352565b61ffff881661010085015290506001600160a01b0386166101208401528281036101408401526145528186614352565b91505061456461016083018415159052565b9d9c50505050505050505050505050565b634e487b7160e01b600052604160045260246000fd5b604051610180810167ffffffffffffffff811182821017156145af576145af614575565b60405290565b604051601f8201601f1916810167ffffffffffffffff811182821017156145de576145de614575565b604052919050565b600080600080608085870312156145fc57600080fd5b8435935060208086013567ffffffffffffffff8082111561461c57600080fd5b818801915088601f83011261463057600080fd5b81358181111561464257614642614575565b8060051b91506146538483016145b5565b818152918301840191848101908b84111561466d57600080fd5b938501935b8385101561468b57843582529385019390850190614672565b989b989a505050506040870135966060013595945050505050565b6020815281516020820152600060208301516101808060408501526146cf6101a0850183614352565b91506040850151601f19808685030160608701526146ed8483614352565b9350606087015191508086850301608087015261470a8483614352565b93506080870151915061472860a08701836001600160a01b03169052565b60a08701519150808685030160c08701526147438483614352565b935060c08701519150808685030160e08701526147608483614352565b935060e0870151915061010081878603018188015261477f8584614352565b94508088015192505061012061479a8188018461ffff169052565b87015191506101406147b6878201846001600160a01b03169052565b808801519250506101608187860301818801526147d38584614352565b945080880151925050506147ea8286018215159052565b5090949350505050565b85815260208082018690526040820185905260608201849052825160808301528201516001600160a01b031660a082015260c081015b9695505050505050565b803580151581146143c157600080fd5b6000806040838503121561485757600080fd5b614860836143aa565b915061448c60208401614834565b600067ffffffffffffffff83111561488857614888614575565b61489b601f8401601f19166020016145b5565b90508281528383830111156148af57600080fd5b828260208301376000602084830101529392505050565b600080600080608085870312156148dc57600080fd5b6148e5856143aa565b93506148f3602086016143aa565b925060408501359150606085013567ffffffffffffffff81111561491657600080fd5b8501601f8101871361492757600080fd5b6149368782356020840161486e565b91505092959194509250565b600082601f83011261495357600080fd5b612f5c8383356020850161486e565b60006020828403121561497457600080fd5b813567ffffffffffffffff81111561498b57600080fd5b6135aa84828501614942565b61ffff8116811461343257600080fd5b80356143c181614997565b600061018082840312156149c557600080fd5b6149cd61458b565b905081358152602082013567ffffffffffffffff808211156149ee57600080fd5b6149fa85838601614942565b60208401526040840135915080821115614a1357600080fd5b614a1f85838601614942565b60408401526060840135915080821115614a3857600080fd5b614a4485838601614942565b6060840152614a55608085016143aa565b608084015260a0840135915080821115614a6e57600080fd5b614a7a85838601614942565b60a084015260c0840135915080821115614a9357600080fd5b614a9f85838601614942565b60c084015260e0840135915080821115614ab857600080fd5b614ac485838601614942565b60e08401526101009150614ad98285016149a7565b828401526101209150614aed8285016143aa565b8284015261014091508184013581811115614b0757600080fd5b614b1386828701614942565b83850152505050610160614b28818401614834565b9082015292915050565b600060208284031215614b4457600080fd5b813567ffffffffffffffff811115614b5b57600080fd5b6135aa848285016149b2565b60008060408385031215614b7a57600080fd5b82359150602083013567ffffffffffffffff811115614b9857600080fd5b614ba4858286016149b2565b9150509250929050565b60008060408385031215614bc157600080fd5b614bca836143aa565b915061448c602084016143aa565b600181811c90821680614bec57607f821691505b60208210811415614c0d57634e487b7160e01b600052602260045260246000fd5b50919050565b6020808252602e908201527f4552433732313a2063616c6c6572206973206e6f7420746f6b656e206f776e6560408201526d1c881b9bdc88185c1c1c9bdd995960921b606082015260800190565b634e487b7160e01b600052601160045260246000fd5b6000816000190483118215151615614c9157614c91614c61565b500290565b634e487b7160e01b600052601260045260246000fd5b600082614cbb57614cbb614c96565b500490565b6000815480845260208401935082600052602060002060005b82811015614d0b57815486526001808301546001600160a01b0316602088015260409096019560029092019101614cd9565b5093949350505050565b6000610100808401835485526001808501546020818189015260028701915084604089015283945081548085526101208901955082600052816000209450600092505b80831015614d755784548652948101949383019391830191614d58565b50505050600384015460608601525060048301546080850152600583015460a085015260068301546001600160a01b031660c085015283810360e08501526135aa8160078501614cc0565b602081526000612f5c6020830184614d15565b600082821015614de557614de5614c61565b500390565b634e487b7160e01b600052603260045260246000fd5b6000600019821415614e1457614e14614c61565b5060010190565b600060208284031215614e2d57600080fd5b8151612f5c81614997565b606081526000614e4b6060830185614d15565b9050612f5c6020830184805182526020908101516001600160a01b0316910152565b60008219821115614e8057614e80614c61565b500190565b600082614e9457614e94614c96565b500690565b60008154614ea681614bd8565b808552602060018381168015614ec35760018114614ed757614f05565b60ff19851688840152604088019550614f05565b866000528260002060005b85811015614efd5781548a8201860152908301908401614ee2565b890184019650505b505050505092915050565b60208152815460208201526000610180806040840152614f376101a0840160018601614e99565b601f1980858303016060860152614f518260028801614e99565b915080858303016080860152614f6a8260038801614e99565b9150614f8060048701546001600160a01b031690565b6001600160a01b031660a0860152848203810160c0860152614fa58260058801614e99565b9150808583030160e0860152614fbe8260068801614e99565b91508085830301610100860152614fd88260078801614e99565b600887015461ffff811661012088015260101c6001600160a01b03166101408701528581039190910161016086015290506150168160098701614e99565b9050615026600a86015460ff1690565b1515919093015250919050565b66697066733a2f2f60c81b8152600060076000845461505181614bd8565b60018281168015615069576001811461507e576150b1565b60ff19841688870152828801860194506150b1565b8860005260208060002060005b858110156150a65781548b82018a015290840190820161508b565b505050858389010194505b5092979650505050505050565b60208082526032908201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560408201527131b2b4bb32b91034b6b83632b6b2b73a32b960711b606082015260800190565b60008351615122818460208801614326565b835190830190615136818360208801614326565b01949350505050565b7f416363657373436f6e74726f6c3a206163636f756e7420000000000000000000815260008351615177816017850160208801614326565b7001034b99036b4b9b9b4b733903937b6329607d1b60179184019182015283516151a8816028840160208801614326565b01602801949350505050565b6001600160a01b038581168252841660208201526040810183905260806060820181905260009061482a90830184614352565b6000602082840312156151f957600080fd5b8151612f5c816142f3565b60008161521357615213614c61565b50600019019056fe22c69ab406805e70d07fb1a6502af760601d3b977beadb295a9d76d5852e16a3a2646970667358221220326bbb9b8deacb8df5c7352f3c977337483c63fc62672805ba381eeaf75ada5a64736f6c63430008090033516d52324d7a3842707a7476385348707a6a6e467253346536557574466e353243374739466b744d42667858656e0000000000000000000000001b8ab0b410f54ae0a24320e6188e3ec20a6c609a
Deployed Bytecode
0x608060405234801561001057600080fd5b50600436106102325760003560e01c806386dfa68f11610130578063b88d4fde116100b8578063d53913931161007c578063d5391393146105a1578063d547741f146105c8578063df064ad8146105db578063e8a3d485146105f0578063e985e9c5146105f857600080fd5b8063b88d4fde14610542578063baedc1c414610555578063c87b56dd14610568578063caacbdf61461057b578063cec6a91e1461058e57600080fd5b806395d89b41116100ff57806395d89b41146104f9578063a217fddf14610501578063a22cb46514610509578063a55d82691461051c578063a9dd12251461052f57600080fd5b806386dfa68f146104435780638c90f169146104635780638cd10e50146104d357806391d14854146104e657600080fd5b806336568abe116101be5780635d6b1c3f116101825780635d6b1c3f146103d75780636352211e146103ea5780636de2c58a146103fd57806370a0823114610410578063833c057a1461042357600080fd5b806336568abe1461035057806342842e0e14610363578063517ee57d14610376578063534b1d071461039957806359c02286146103c457600080fd5b80631b5ea45a116102055780631b5ea45a146102b457806323b872dd146102c7578063248a9ca3146102da5780632a55205a1461030b5780632f2ff15d1461033d57600080fd5b806301ffc9a71461023757806306fdde031461025f578063081812fc14610274578063095ea7b31461029f575b600080fd5b61024a610245366004614309565b610634565b60405190151581526020015b60405180910390f35b610267610645565b604051610256919061437e565b610287610282366004614391565b6106d7565b6040516001600160a01b039091168152602001610256565b6102b26102ad3660046143c6565b6106fe565b005b6102b26102c23660046143f0565b610819565b6102b26102d536600461440b565b610840565b6102fd6102e8366004614391565b60009081526009602052604090206001015490565b604051908152602001610256565b61031e610319366004614447565b610871565b604080516001600160a01b039093168352602083019190915201610256565b6102b261034b366004614469565b61091d565b6102b261035e366004614469565b610942565b6102b261037136600461440b565b6109bc565b61024a610384366004614391565b60106020526000908152604090205460ff1681565b6103ac6103a7366004614391565b6109d7565b6040516102569c9b9a99989796959493929190614495565b600d54610287906001600160a01b031681565b6102b26103e53660046145e6565b610e0c565b6102876103f8366004614391565b61142c565b6102b261040b366004614391565b61148c565b6102fd61041e3660046143f0565b6120d5565b610436610431366004614391565b61215b565b60405161025691906146a6565b6102fd610451366004614391565b600f6020526000908152604090205481565b6104c2610471366004614391565b60116020908152600091825260409182902080546001820154600383015460048401548651808801909752600585015487526006909401546001600160a01b03169486019490945290939092919085565b6040516102569594939291906147f4565b6102b26104e1366004614447565b61265d565b61024a6104f4366004614469565b612e87565b610267612eb2565b6102fd600081565b6102b2610517366004614844565b612ec1565b6102b261052a3660046143f0565b612ecc565b6102fd61053d366004614447565b612eef565b6102b26105503660046148c6565b612f63565b6102b2610563366004614962565b612f9b565b610267610576366004614391565b612fb9565b6102b2610589366004614b32565b612fc4565b6102b261059c366004614b67565b613177565b6102fd7f9f2df0fed2c77648de5860a4cc508cd0818c85b8b8a1ab4ceeef8d981c8956a681565b6102b26105d6366004614469565b613361565b6102fd60008051602061521c83398151915281565b610267613386565b61024a610606366004614bae565b6001600160a01b03918216600090815260076020908152604080832093909416825291909152205460ff1690565b600061063f826133ae565b92915050565b60606002805461065490614bd8565b80601f016020809104026020016040519081016040528092919081815260200182805461068090614bd8565b80156106cd5780601f106106a2576101008083540402835291602001916106cd565b820191906000526020600020905b8154815290600101906020018083116106b057829003601f168201915b5050505050905090565b60006106e2826133d3565b506000908152600660205260409020546001600160a01b031690565b60006107098261142c565b9050806001600160a01b0316836001600160a01b0316141561077c5760405162461bcd60e51b815260206004820152602160248201527f4552433732313a20617070726f76616c20746f2063757272656e74206f776e656044820152603960f91b60648201526084015b60405180910390fd5b336001600160a01b038216148061079857506107988133610606565b61080a5760405162461bcd60e51b815260206004820152603e60248201527f4552433732313a20617070726f76652063616c6c6572206973206e6f7420746f60448201527f6b656e206f776e6572206e6f7220617070726f76656420666f7220616c6c00006064820152608401610773565b6108148383613435565b505050565b6000610824816134a3565b61083c60008051602061521c833981519152836134ad565b5050565b61084a3382613533565b6108665760405162461bcd60e51b815260040161077390614c13565b6108148383836135b2565b60008281526001602090815260408083208151808301909252546001600160a01b038116808352600160a01b9091046001600160601b03169282019290925282916108e65750604080518082019091526000546001600160a01b0381168252600160a01b90046001600160601b031660208201525b602081015160009061271090610905906001600160601b031687614c77565b61090f9190614cac565b915196919550909350505050565b600082815260096020526040902060010154610938816134a3565b61081483836134ad565b6001600160a01b03811633146109b25760405162461bcd60e51b815260206004820152602f60248201527f416363657373436f6e74726f6c3a2063616e206f6e6c792072656e6f756e636560448201526e103937b632b9903337b91039b2b63360891b6064820152608401610773565b61083c828261374e565b61081483838360405180602001604052806000815250612f63565b600e60205260009081526040902080546001820180549192916109f990614bd8565b80601f0160208091040260200160405190810160405280929190818152602001828054610a2590614bd8565b8015610a725780601f10610a4757610100808354040283529160200191610a72565b820191906000526020600020905b815481529060010190602001808311610a5557829003601f168201915b505050505090806002018054610a8790614bd8565b80601f0160208091040260200160405190810160405280929190818152602001828054610ab390614bd8565b8015610b005780601f10610ad557610100808354040283529160200191610b00565b820191906000526020600020905b815481529060010190602001808311610ae357829003601f168201915b505050505090806003018054610b1590614bd8565b80601f0160208091040260200160405190810160405280929190818152602001828054610b4190614bd8565b8015610b8e5780601f10610b6357610100808354040283529160200191610b8e565b820191906000526020600020905b815481529060010190602001808311610b7157829003601f168201915b505050600484015460058501805494956001600160a01b03909216949193509150610bb890614bd8565b80601f0160208091040260200160405190810160405280929190818152602001828054610be490614bd8565b8015610c315780601f10610c0657610100808354040283529160200191610c31565b820191906000526020600020905b815481529060010190602001808311610c1457829003601f168201915b505050505090806006018054610c4690614bd8565b80601f0160208091040260200160405190810160405280929190818152602001828054610c7290614bd8565b8015610cbf5780601f10610c9457610100808354040283529160200191610cbf565b820191906000526020600020905b815481529060010190602001808311610ca257829003601f168201915b505050505090806007018054610cd490614bd8565b80601f0160208091040260200160405190810160405280929190818152602001828054610d0090614bd8565b8015610d4d5780601f10610d2257610100808354040283529160200191610d4d565b820191906000526020600020905b815481529060010190602001808311610d3057829003601f168201915b505050506008830154600984018054939461ffff831694620100009093046001600160a01b0316935091610d8090614bd8565b80601f0160208091040260200160405190810160405280929190818152602001828054610dac90614bd8565b8015610df95780601f10610dce57610100808354040283529160200191610df9565b820191906000526020600020905b815481529060010190602001808311610ddc57829003601f168201915b505050600a909301549192505060ff168c565b60008051602061521c833981519152610e24816134a3565b6000600e60008781526020019081526020016000206040518061018001604052908160008201548152602001600182018054610e5f90614bd8565b80601f0160208091040260200160405190810160405280929190818152602001828054610e8b90614bd8565b8015610ed85780601f10610ead57610100808354040283529160200191610ed8565b820191906000526020600020905b815481529060010190602001808311610ebb57829003601f168201915b50505050508152602001600282018054610ef190614bd8565b80601f0160208091040260200160405190810160405280929190818152602001828054610f1d90614bd8565b8015610f6a5780601f10610f3f57610100808354040283529160200191610f6a565b820191906000526020600020905b815481529060010190602001808311610f4d57829003601f168201915b50505050508152602001600382018054610f8390614bd8565b80601f0160208091040260200160405190810160405280929190818152602001828054610faf90614bd8565b8015610ffc5780601f10610fd157610100808354040283529160200191610ffc565b820191906000526020600020905b815481529060010190602001808311610fdf57829003601f168201915b505050918352505060048201546001600160a01b0316602082015260058201805460409092019161102c90614bd8565b80601f016020809104026020016040519081016040528092919081815260200182805461105890614bd8565b80156110a55780601f1061107a576101008083540402835291602001916110a5565b820191906000526020600020905b81548152906001019060200180831161108857829003601f168201915b505050505081526020016006820180546110be90614bd8565b80601f01602080910402602001604051908101604052809291908181526020018280546110ea90614bd8565b80156111375780601f1061110c57610100808354040283529160200191611137565b820191906000526020600020905b81548152906001019060200180831161111a57829003601f168201915b5050505050815260200160078201805461115090614bd8565b80601f016020809104026020016040519081016040528092919081815260200182805461117c90614bd8565b80156111c95780601f1061119e576101008083540402835291602001916111c9565b820191906000526020600020905b8154815290600101906020018083116111ac57829003601f168201915b5050509183525050600882015461ffff811660208301526201000090046001600160a01b0316604082015260098201805460609092019161120990614bd8565b80601f016020809104026020016040519081016040528092919081815260200182805461123590614bd8565b80156112825780601f1061125757610100808354040283529160200191611282565b820191906000526020600020905b81548152906001019060200180831161126557829003601f168201915b5050509183525050600a919091015460ff90811615156020928301526000898152601090925260409091205491925016156112ff5760405162461bcd60e51b815260206004820152601760248201527f526166666c6520616c726561647920737461727465642e0000000000000000006044820152606401610773565b6101208101516001600160a01b031633146113775760405162461bcd60e51b815260206004820152603260248201527f4f6e6c79207468652063726561746f722063616e207374617274206120726166604482015271333632903337b9103a3434b9903937b7b69760711b6064820152608401610773565b6000611382600c5490565b9050611392600c80546001019055565b600081815260116020908152604090912082815560018101899055875190916113c29160028401918a0190614220565b50600381018690556004810185905560008881526010602052604090819020805460ff19166001179055517fa166010963eeaa7aaf01572088e4eb15cd8cba364946ee3e39e9040e11b917d59061141a908390614dc0565b60405180910390a15050505050505050565b6000818152600460205260408120546001600160a01b03168061063f5760405162461bcd60e51b8152602060048201526018602482015277115490cdcc8c4e881a5b9d985b1a59081d1bdad95b88125160421b6044820152606401610773565b600081815260116020526040902060068101546001600160a01b0316156115055760405162461bcd60e51b815260206004820152602760248201527f5468652077696e6e65722068617320616c7265616479206265656e20646574656044820152663936b4b732b21760c91b6064820152608401610773565b600781015415611c045760078101546000906001101561153e5760078201546115379060009061053d90600190614dd3565b9050611542565b5060005b81600701818154811061155757611557614dea565b60009182526020822060029091020180546005850155600101546006840180546001600160a01b0319166001600160a01b039092169190911790555b60078301548110156116c9576005830154600784018054839081106115ba576115ba614dea565b90600052602060002090600202016000015414156115d7576116b7565b600d546007840180546001600160a01b03909216916323b872dd9130918590811061160457611604614dea565b906000526020600020906002020160010160009054906101000a90046001600160a01b031686600701858154811061163e5761163e614dea565b60009182526020909120600290910201546040516001600160e01b031960e086901b1681526001600160a01b0393841660048201529290911660248301526044820152606401600060405180830381600087803b15801561169e57600080fd5b505af11580156116b2573d6000803e3d6000fd5b505050505b806116c181614e00565b915050611593565b506000600e600084600101548152602001908152602001600020604051806101800160405290816000820154815260200160018201805461170990614bd8565b80601f016020809104026020016040519081016040528092919081815260200182805461173590614bd8565b80156117825780601f1061175757610100808354040283529160200191611782565b820191906000526020600020905b81548152906001019060200180831161176557829003601f168201915b5050505050815260200160028201805461179b90614bd8565b80601f01602080910402602001604051908101604052809291908181526020018280546117c790614bd8565b80156118145780601f106117e957610100808354040283529160200191611814565b820191906000526020600020905b8154815290600101906020018083116117f757829003601f168201915b5050505050815260200160038201805461182d90614bd8565b80601f016020809104026020016040519081016040528092919081815260200182805461185990614bd8565b80156118a65780601f1061187b576101008083540402835291602001916118a6565b820191906000526020600020905b81548152906001019060200180831161188957829003601f168201915b505050918352505060048201546001600160a01b031660208201526005820180546040909201916118d690614bd8565b80601f016020809104026020016040519081016040528092919081815260200182805461190290614bd8565b801561194f5780601f106119245761010080835404028352916020019161194f565b820191906000526020600020905b81548152906001019060200180831161193257829003601f168201915b5050505050815260200160068201805461196890614bd8565b80601f016020809104026020016040519081016040528092919081815260200182805461199490614bd8565b80156119e15780601f106119b6576101008083540402835291602001916119e1565b820191906000526020600020905b8154815290600101906020018083116119c457829003601f168201915b505050505081526020016007820180546119fa90614bd8565b80601f0160208091040260200160405190810160405280929190818152602001828054611a2690614bd8565b8015611a735780601f10611a4857610100808354040283529160200191611a73565b820191906000526020600020905b815481529060010190602001808311611a5657829003601f168201915b5050509183525050600882015461ffff811660208301526201000090046001600160a01b03166040820152600982018054606090920191611ab390614bd8565b80601f0160208091040260200160405190810160405280929190818152602001828054611adf90614bd8565b8015611b2c5780601f10611b0157610100808354040283529160200191611b2c565b820191906000526020600020905b815481529060010190602001808311611b0f57829003601f168201915b5050509183525050600a919091015460ff161515602090910152600684015460058501546101408301516001870154939450611b73936001600160a01b03909316926137b5565b611b8b836005016000015482608001516127106137e0565b600d5460058401546040516323b872dd60e01b815230600482015261dead602482015260448101919091526001600160a01b03909116906323b872dd90606401600060405180830381600087803b158015611be557600080fd5b505af1158015611bf9573d6000803e3d6000fd5b50505050505061209a565b6000600e6000836001015481526020019081526020016000206040518061018001604052908160008201548152602001600182018054611c4390614bd8565b80601f0160208091040260200160405190810160405280929190818152602001828054611c6f90614bd8565b8015611cbc5780601f10611c9157610100808354040283529160200191611cbc565b820191906000526020600020905b815481529060010190602001808311611c9f57829003601f168201915b50505050508152602001600282018054611cd590614bd8565b80601f0160208091040260200160405190810160405280929190818152602001828054611d0190614bd8565b8015611d4e5780601f10611d2357610100808354040283529160200191611d4e565b820191906000526020600020905b815481529060010190602001808311611d3157829003601f168201915b50505050508152602001600382018054611d6790614bd8565b80601f0160208091040260200160405190810160405280929190818152602001828054611d9390614bd8565b8015611de05780601f10611db557610100808354040283529160200191611de0565b820191906000526020600020905b815481529060010190602001808311611dc357829003601f168201915b505050918352505060048201546001600160a01b03166020820152600582018054604090920191611e1090614bd8565b80601f0160208091040260200160405190810160405280929190818152602001828054611e3c90614bd8565b8015611e895780601f10611e5e57610100808354040283529160200191611e89565b820191906000526020600020905b815481529060010190602001808311611e6c57829003601f168201915b50505050508152602001600682018054611ea290614bd8565b80601f0160208091040260200160405190810160405280929190818152602001828054611ece90614bd8565b8015611f1b5780601f10611ef057610100808354040283529160200191611f1b565b820191906000526020600020905b815481529060010190602001808311611efe57829003601f168201915b50505050508152602001600782018054611f3490614bd8565b80601f0160208091040260200160405190810160405280929190818152602001828054611f6090614bd8565b8015611fad5780601f10611f8257610100808354040283529160200191611fad565b820191906000526020600020905b815481529060010190602001808311611f9057829003601f168201915b5050509183525050600882015461ffff811660208301526201000090046001600160a01b03166040820152600982018054606090920191611fed90614bd8565b80601f016020809104026020016040519081016040528092919081815260200182805461201990614bd8565b80156120665780601f1061203b57610100808354040283529160200191612066565b820191906000526020600020905b81548152906001019060200180831161204957829003601f168201915b5050509183525050600a919091015460ff16151560209182015290516000908152601090915260409020805460ff19169055505b7f3d2d37fd153c8ee13ed8a868a7bdd3bac96b4879a258fa98759209fc17ec3dc6816040516120c99190614dc0565b60405180910390a15050565b60006001600160a01b03821661213f5760405162461bcd60e51b815260206004820152602960248201527f4552433732313a2061646472657373207a65726f206973206e6f7420612076616044820152683634b21037bbb732b960b91b6064820152608401610773565b506001600160a01b031660009081526005602052604090205490565b6121d76040518061018001604052806000815260200160608152602001606081526020016060815260200160006001600160a01b03168152602001606081526020016060815260200160608152602001600061ffff16815260200160006001600160a01b03168152602001606081526020016000151581525090565b6000828152600f6020908152604080832054808452600e8352928190208151610180810190925280548252600181018054929391929184019161221990614bd8565b80601f016020809104026020016040519081016040528092919081815260200182805461224590614bd8565b80156122925780601f1061226757610100808354040283529160200191612292565b820191906000526020600020905b81548152906001019060200180831161227557829003601f168201915b505050505081526020016002820180546122ab90614bd8565b80601f01602080910402602001604051908101604052809291908181526020018280546122d790614bd8565b80156123245780601f106122f957610100808354040283529160200191612324565b820191906000526020600020905b81548152906001019060200180831161230757829003601f168201915b5050505050815260200160038201805461233d90614bd8565b80601f016020809104026020016040519081016040528092919081815260200182805461236990614bd8565b80156123b65780601f1061238b576101008083540402835291602001916123b6565b820191906000526020600020905b81548152906001019060200180831161239957829003601f168201915b505050918352505060048201546001600160a01b031660208201526005820180546040909201916123e690614bd8565b80601f016020809104026020016040519081016040528092919081815260200182805461241290614bd8565b801561245f5780601f106124345761010080835404028352916020019161245f565b820191906000526020600020905b81548152906001019060200180831161244257829003601f168201915b5050505050815260200160068201805461247890614bd8565b80601f01602080910402602001604051908101604052809291908181526020018280546124a490614bd8565b80156124f15780601f106124c6576101008083540402835291602001916124f1565b820191906000526020600020905b8154815290600101906020018083116124d457829003601f168201915b5050505050815260200160078201805461250a90614bd8565b80601f016020809104026020016040519081016040528092919081815260200182805461253690614bd8565b80156125835780601f1061255857610100808354040283529160200191612583565b820191906000526020600020905b81548152906001019060200180831161256657829003601f168201915b5050509183525050600882015461ffff811660208301526201000090046001600160a01b031660408201526009820180546060909201916125c390614bd8565b80601f01602080910402602001604051908101604052809291908181526020018280546125ef90614bd8565b801561263c5780601f106126115761010080835404028352916020019161263c565b820191906000526020600020905b81548152906001019060200180831161261f57829003601f168201915b5050509183525050600a919091015460ff1615156020909101529392505050565b60008281526011602090815260408083206001808201548552600e8452828520835161018081019094528054845290810180549295949192918401916126a290614bd8565b80601f01602080910402602001604051908101604052809291908181526020018280546126ce90614bd8565b801561271b5780601f106126f05761010080835404028352916020019161271b565b820191906000526020600020905b8154815290600101906020018083116126fe57829003601f168201915b5050505050815260200160028201805461273490614bd8565b80601f016020809104026020016040519081016040528092919081815260200182805461276090614bd8565b80156127ad5780601f10612782576101008083540402835291602001916127ad565b820191906000526020600020905b81548152906001019060200180831161279057829003601f168201915b505050505081526020016003820180546127c690614bd8565b80601f01602080910402602001604051908101604052809291908181526020018280546127f290614bd8565b801561283f5780601f106128145761010080835404028352916020019161283f565b820191906000526020600020905b81548152906001019060200180831161282257829003601f168201915b505050918352505060048201546001600160a01b0316602082015260058201805460409092019161286f90614bd8565b80601f016020809104026020016040519081016040528092919081815260200182805461289b90614bd8565b80156128e85780601f106128bd576101008083540402835291602001916128e8565b820191906000526020600020905b8154815290600101906020018083116128cb57829003601f168201915b5050505050815260200160068201805461290190614bd8565b80601f016020809104026020016040519081016040528092919081815260200182805461292d90614bd8565b801561297a5780601f1061294f5761010080835404028352916020019161297a565b820191906000526020600020905b81548152906001019060200180831161295d57829003601f168201915b5050505050815260200160078201805461299390614bd8565b80601f01602080910402602001604051908101604052809291908181526020018280546129bf90614bd8565b8015612a0c5780601f106129e157610100808354040283529160200191612a0c565b820191906000526020600020905b8154815290600101906020018083116129ef57829003601f168201915b5050509183525050600882015461ffff811660208301526201000090046001600160a01b03166040820152600982018054606090920191612a4c90614bd8565b80601f0160208091040260200160405190810160405280929190818152602001828054612a7890614bd8565b8015612ac55780601f10612a9a57610100808354040283529160200191612ac5565b820191906000526020600020905b815481529060010190602001808311612aa857829003601f168201915b5050509183525050600a919091015460ff161515602090910152610100810151600d54604051636cd4d86360e11b81526004810187905292935061ffff909116916001600160a01b039091169063d9a9b0c69060240160206040518083038186803b158015612b3357600080fd5b505afa158015612b47573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612b6b9190614e1b565b61ffff1614612bcf5760405162461bcd60e51b815260206004820152602a60248201527f53697a65206f6620466c6f6f7220646f6573206e6f74206d617463682073697a604482015269329037b3102937b7b69760b11b6064820152608401610773565b8160030154421015612c195760405162461bcd60e51b81526020600482015260136024820152722930b3333632903737ba1039ba30b93a32b21760691b6044820152606401610773565b81600401544210612c5c5760405162461bcd60e51b815260206004820152600d60248201526c2930b33336329032b73232b21760991b6044820152606401610773565b60068201546001600160a01b031615612ca85760405162461bcd60e51b815260206004820152600e60248201526d2930b33336329031b637b9b2b21760911b6044820152606401610773565b600282015460009015612d0c5760005b6002840154811015612d065784846002018281548110612cda57612cda614dea565b90600052602060002001541415612cf45760019150612d06565b80612cfe81614e00565b915050612cb8565b50612d10565b5060015b600181151514612d725760405162461bcd60e51b815260206004820152602760248201527f596f75277265206e6f7420616c6c6f77656420746f206a6f696e2074686973206044820152663930b33336329760c91b6064820152608401610773565b600d546040516323b872dd60e01b8152336004820152306024820152604481018690526001600160a01b03909116906323b872dd90606401600060405180830381600087803b158015612dc457600080fd5b505af1158015612dd8573d6000803e3d6000fd5b505060408051808201909152600080825260208201529150612df79050565b8481523360208083019182526007860180546001808201835560009283529290912084516002909202019081559151910180546001600160a01b0319166001600160a01b039092169190911790556040517f3148642240156f8cee097c743093d9f15591e7ce143dc95bf184c49561fd5d5d90612e779086908490614e38565b60405180910390a1505050505050565b60009182526009602090815260408084206001600160a01b0393909316845291905290205460ff1690565b60606003805461065490614bd8565b61083c3383836138ee565b6000612ed7816134a3565b61083c60008051602061521c8339815191528361374e565b600082612efc8184614dd3565b612f07906001614e6d565b4442612f14600143614dd3565b6040805160208101949094528301919091524060608201526080016040516020818303038152906040528051906020012060001c612f529190614e85565b612f5c9190614e6d565b9392505050565b612f6d3383613533565b612f895760405162461bcd60e51b815260040161077390614c13565b612f95848484846139bd565b50505050565b6000612fa6816134a3565b815161081490600a90602085019061426b565b606061063f826139f0565b60008051602061521c833981519152612fdc816134a3565b6000612fe7600b5490565b9050612ff7600b80546001019055565b6000818152600e6020908152604090912082815584820151805191926130259260018501929091019061426b565b506040840151805161304191600284019160209091019061426b565b506060840151805161305d91600384019160209091019061426b565b5060808401516004820180546001600160a01b0319166001600160a01b0390921691909117905560a0840151805161309f91600584019160209091019061426b565b5060c084015180516130bb91600684019160209091019061426b565b5060e084015180516130d791600784019160209091019061426b565b5061010084015160088201805461ffff9092166001600160b01b031990921691909117336201000002179055610140840151805161311f91600984019160209091019061426b565b50610160840151600a8201805460ff19169115159190911790556040517f6150efc64b99396a254605aa723ebb4d8fba90f0bec269ffeb756c94af46410e90613169908390614f10565b60405180910390a150505050565b60008051602061521c83398151915261318f816134a3565b6000838152600e6020526040902060088101546201000090046001600160a01b031633146132135760405162461bcd60e51b815260206004820152602b60248201527f596f75277265206e6f74207468652063726561746f72206f662074686973205260448201526a27a7a6902232b9b4b3b71760a91b6064820152608401610773565b602080840151805161322b926001850192019061426b565b506040830151805161324791600284019160209091019061426b565b506060830151805161326391600384019160209091019061426b565b5060808301516004820180546001600160a01b0319166001600160a01b0390921691909117905560a083015180516132a591600584019160209091019061426b565b5060c083015180516132c191600684019160209091019061426b565b5060e083015180516132dd91600784019160209091019061426b565b5061010083015160088201805461ffff191661ffff909216919091179055610140830151805161331791600984019160209091019061426b565b50610160830151600a8201805460ff19169115159190911790556040517f882f764710b2635db7ff421919f034d89bef2f93ba8f25aa6ea6234d8884c31590613169908390614f10565b60008281526009602052604090206001015461337c816134a3565b610814838361374e565b6060600a60405160200161339a9190615033565b604051602081830303815290604052905090565b60006001600160e01b03198216637965db0b60e01b148061063f575061063f82613af9565b6000818152600460205260409020546001600160a01b03166134325760405162461bcd60e51b8152602060048201526018602482015277115490cdcc8c4e881a5b9d985b1a59081d1bdad95b88125160421b6044820152606401610773565b50565b600081815260066020526040902080546001600160a01b0319166001600160a01b038416908117909155819061346a8261142c565b6001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b6134328133613b04565b6134b78282612e87565b61083c5760008281526009602090815260408083206001600160a01b03851684529091529020805460ff191660011790556134ef3390565b6001600160a01b0316816001600160a01b0316837f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d60405160405180910390a45050565b60008061353f8361142c565b9050806001600160a01b0316846001600160a01b0316148061358657506001600160a01b0380821660009081526007602090815260408083209388168352929052205460ff165b806135aa5750836001600160a01b031661359f846106d7565b6001600160a01b0316145b949350505050565b826001600160a01b03166135c58261142c565b6001600160a01b0316146136295760405162461bcd60e51b815260206004820152602560248201527f4552433732313a207472616e736665722066726f6d20696e636f72726563742060448201526437bbb732b960d91b6064820152608401610773565b6001600160a01b03821661368b5760405162461bcd60e51b8152602060048201526024808201527f4552433732313a207472616e7366657220746f20746865207a65726f206164646044820152637265737360e01b6064820152608401610773565b613696600082613435565b6001600160a01b03831660009081526005602052604081208054600192906136bf908490614dd3565b90915550506001600160a01b03821660009081526005602052604081208054600192906136ed908490614e6d565b909155505060008181526004602052604080822080546001600160a01b0319166001600160a01b0386811691821790925591518493918716917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91a4505050565b6137588282612e87565b1561083c5760008281526009602090815260408083206001600160a01b0385168085529252808320805460ff1916905551339285917ff6391f5c32d9c69d2a47ea670b442974b53935d1edc7fd64eb21e047a839171b9190a45050565b6137bf8484613b68565b6137c98383613b82565b6000928352600f6020526040909220919091555050565b6127106001600160601b038216111561384e5760405162461bcd60e51b815260206004820152602a60248201527f455243323938313a20726f79616c7479206665652077696c6c206578636565646044820152692073616c65507269636560b01b6064820152608401610773565b6001600160a01b0382166138a45760405162461bcd60e51b815260206004820152601b60248201527f455243323938313a20496e76616c696420706172616d657465727300000000006044820152606401610773565b6040805180820182526001600160a01b0393841681526001600160601b0392831660208083019182526000968752600190529190942093519051909116600160a01b029116179055565b816001600160a01b0316836001600160a01b031614156139505760405162461bcd60e51b815260206004820152601960248201527f4552433732313a20617070726f766520746f2063616c6c6572000000000000006044820152606401610773565b6001600160a01b03838116600081815260076020908152604080832094871680845294825291829020805460ff191686151590811790915591519182527f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a3505050565b6139c88484846135b2565b6139d484848484613c1c565b612f955760405162461bcd60e51b8152600401610773906150be565b60606139fb826133d3565b60008281526008602052604081208054613a1490614bd8565b80601f0160208091040260200160405190810160405280929190818152602001828054613a4090614bd8565b8015613a8d5780601f10613a6257610100808354040283529160200191613a8d565b820191906000526020600020905b815481529060010190602001808311613a7057829003601f168201915b505050505090506000613aab60408051602081019091526000815290565b9050805160001415613abe575092915050565b815115613af0578082604051602001613ad8929190615110565b60405160208183030381529060405292505050919050565b6135aa84613d29565b600061063f82613d9c565b613b0e8282612e87565b61083c57613b26816001600160a01b03166014613ddc565b613b31836020613ddc565b604051602001613b4292919061513f565b60408051601f198184030181529082905262461bcd60e51b82526107739160040161437e565b61083c828260405180602001604052806000815250613f78565b6000828152600460205260409020546001600160a01b0316613bfd5760405162461bcd60e51b815260206004820152602e60248201527f45524337323155524953746f726167653a2055524920736574206f66206e6f6e60448201526d32bc34b9ba32b73a103a37b5b2b760911b6064820152608401610773565b600082815260086020908152604090912082516108149284019061426b565b60006001600160a01b0384163b15613d1e57604051630a85bd0160e11b81526001600160a01b0385169063150b7a0290613c609033908990889088906004016151b4565b602060405180830381600087803b158015613c7a57600080fd5b505af1925050508015613caa575060408051601f3d908101601f19168201909252613ca7918101906151e7565b60015b613d04573d808015613cd8576040519150601f19603f3d011682016040523d82523d6000602084013e613cdd565b606091505b508051613cfc5760405162461bcd60e51b8152600401610773906150be565b805181602001fd5b6001600160e01b031916630a85bd0160e11b1490506135aa565b506001949350505050565b6060613d34826133d3565b6000613d4b60408051602081019091526000815290565b90506000815111613d6b5760405180602001604052806000815250612f5c565b80613d7584613fab565b604051602001613d86929190615110565b6040516020818303038152906040529392505050565b60006001600160e01b031982166380ac58cd60e01b1480613dcd57506001600160e01b03198216635b5e139f60e01b145b8061063f575061063f826140a9565b60606000613deb836002614c77565b613df6906002614e6d565b67ffffffffffffffff811115613e0e57613e0e614575565b6040519080825280601f01601f191660200182016040528015613e38576020820181803683370190505b509050600360fc1b81600081518110613e5357613e53614dea565b60200101906001600160f81b031916908160001a905350600f60fb1b81600181518110613e8257613e82614dea565b60200101906001600160f81b031916908160001a9053506000613ea6846002614c77565b613eb1906001614e6d565b90505b6001811115613f29576f181899199a1a9b1b9c1cb0b131b232b360811b85600f1660108110613ee557613ee5614dea565b1a60f81b828281518110613efb57613efb614dea565b60200101906001600160f81b031916908160001a90535060049490941c93613f2281615204565b9050613eb4565b508315612f5c5760405162461bcd60e51b815260206004820181905260248201527f537472696e67733a20686578206c656e67746820696e73756666696369656e746044820152606401610773565b613f8283836140de565b613f8f6000848484613c1c565b6108145760405162461bcd60e51b8152600401610773906150be565b606081613fcf5750506040805180820190915260018152600360fc1b602082015290565b8160005b8115613ff95780613fe381614e00565b9150613ff29050600a83614cac565b9150613fd3565b60008167ffffffffffffffff81111561401457614014614575565b6040519080825280601f01601f19166020018201604052801561403e576020820181803683370190505b5090505b84156135aa57614053600183614dd3565b9150614060600a86614e85565b61406b906030614e6d565b60f81b81838151811061408057614080614dea565b60200101906001600160f81b031916908160001a9053506140a2600a86614cac565b9450614042565b60006001600160e01b0319821663152a902d60e11b148061063f57506301ffc9a760e01b6001600160e01b031983161461063f565b6001600160a01b0382166141345760405162461bcd60e51b815260206004820181905260248201527f4552433732313a206d696e7420746f20746865207a65726f20616464726573736044820152606401610773565b6000818152600460205260409020546001600160a01b0316156141995760405162461bcd60e51b815260206004820152601c60248201527f4552433732313a20746f6b656e20616c7265616479206d696e746564000000006044820152606401610773565b6001600160a01b03821660009081526005602052604081208054600192906141c2908490614e6d565b909155505060008181526004602052604080822080546001600160a01b0319166001600160a01b03861690811790915590518392907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b82805482825590600052602060002090810192821561425b579160200282015b8281111561425b578251825591602001919060010190614240565b506142679291506142de565b5090565b82805461427790614bd8565b90600052602060002090601f016020900481019282614299576000855561425b565b82601f106142b257805160ff191683800117855561425b565b8280016001018555821561425b579182018281111561425b578251825591602001919060010190614240565b5b8082111561426757600081556001016142df565b6001600160e01b03198116811461343257600080fd5b60006020828403121561431b57600080fd5b8135612f5c816142f3565b60005b83811015614341578181015183820152602001614329565b83811115612f955750506000910152565b6000815180845261436a816020860160208601614326565b601f01601f19169290920160200192915050565b602081526000612f5c6020830184614352565b6000602082840312156143a357600080fd5b5035919050565b80356001600160a01b03811681146143c157600080fd5b919050565b600080604083850312156143d957600080fd5b6143e2836143aa565b946020939093013593505050565b60006020828403121561440257600080fd5b612f5c826143aa565b60008060006060848603121561442057600080fd5b614429846143aa565b9250614437602085016143aa565b9150604084013590509250925092565b6000806040838503121561445a57600080fd5b50508035926020909101359150565b6000806040838503121561447c57600080fd5b8235915061448c602084016143aa565b90509250929050565b60006101808e83528060208401526144af8184018f614352565b905082810360408401526144c3818e614352565b905082810360608401526144d7818d614352565b6001600160a01b038c166080850152905082810360a08401526144fa818b614352565b905082810360c084015261450e818a614352565b905082810360e08401526145228189614352565b61ffff881661010085015290506001600160a01b0386166101208401528281036101408401526145528186614352565b91505061456461016083018415159052565b9d9c50505050505050505050505050565b634e487b7160e01b600052604160045260246000fd5b604051610180810167ffffffffffffffff811182821017156145af576145af614575565b60405290565b604051601f8201601f1916810167ffffffffffffffff811182821017156145de576145de614575565b604052919050565b600080600080608085870312156145fc57600080fd5b8435935060208086013567ffffffffffffffff8082111561461c57600080fd5b818801915088601f83011261463057600080fd5b81358181111561464257614642614575565b8060051b91506146538483016145b5565b818152918301840191848101908b84111561466d57600080fd5b938501935b8385101561468b57843582529385019390850190614672565b989b989a505050506040870135966060013595945050505050565b6020815281516020820152600060208301516101808060408501526146cf6101a0850183614352565b91506040850151601f19808685030160608701526146ed8483614352565b9350606087015191508086850301608087015261470a8483614352565b93506080870151915061472860a08701836001600160a01b03169052565b60a08701519150808685030160c08701526147438483614352565b935060c08701519150808685030160e08701526147608483614352565b935060e0870151915061010081878603018188015261477f8584614352565b94508088015192505061012061479a8188018461ffff169052565b87015191506101406147b6878201846001600160a01b03169052565b808801519250506101608187860301818801526147d38584614352565b945080880151925050506147ea8286018215159052565b5090949350505050565b85815260208082018690526040820185905260608201849052825160808301528201516001600160a01b031660a082015260c081015b9695505050505050565b803580151581146143c157600080fd5b6000806040838503121561485757600080fd5b614860836143aa565b915061448c60208401614834565b600067ffffffffffffffff83111561488857614888614575565b61489b601f8401601f19166020016145b5565b90508281528383830111156148af57600080fd5b828260208301376000602084830101529392505050565b600080600080608085870312156148dc57600080fd5b6148e5856143aa565b93506148f3602086016143aa565b925060408501359150606085013567ffffffffffffffff81111561491657600080fd5b8501601f8101871361492757600080fd5b6149368782356020840161486e565b91505092959194509250565b600082601f83011261495357600080fd5b612f5c8383356020850161486e565b60006020828403121561497457600080fd5b813567ffffffffffffffff81111561498b57600080fd5b6135aa84828501614942565b61ffff8116811461343257600080fd5b80356143c181614997565b600061018082840312156149c557600080fd5b6149cd61458b565b905081358152602082013567ffffffffffffffff808211156149ee57600080fd5b6149fa85838601614942565b60208401526040840135915080821115614a1357600080fd5b614a1f85838601614942565b60408401526060840135915080821115614a3857600080fd5b614a4485838601614942565b6060840152614a55608085016143aa565b608084015260a0840135915080821115614a6e57600080fd5b614a7a85838601614942565b60a084015260c0840135915080821115614a9357600080fd5b614a9f85838601614942565b60c084015260e0840135915080821115614ab857600080fd5b614ac485838601614942565b60e08401526101009150614ad98285016149a7565b828401526101209150614aed8285016143aa565b8284015261014091508184013581811115614b0757600080fd5b614b1386828701614942565b83850152505050610160614b28818401614834565b9082015292915050565b600060208284031215614b4457600080fd5b813567ffffffffffffffff811115614b5b57600080fd5b6135aa848285016149b2565b60008060408385031215614b7a57600080fd5b82359150602083013567ffffffffffffffff811115614b9857600080fd5b614ba4858286016149b2565b9150509250929050565b60008060408385031215614bc157600080fd5b614bca836143aa565b915061448c602084016143aa565b600181811c90821680614bec57607f821691505b60208210811415614c0d57634e487b7160e01b600052602260045260246000fd5b50919050565b6020808252602e908201527f4552433732313a2063616c6c6572206973206e6f7420746f6b656e206f776e6560408201526d1c881b9bdc88185c1c1c9bdd995960921b606082015260800190565b634e487b7160e01b600052601160045260246000fd5b6000816000190483118215151615614c9157614c91614c61565b500290565b634e487b7160e01b600052601260045260246000fd5b600082614cbb57614cbb614c96565b500490565b6000815480845260208401935082600052602060002060005b82811015614d0b57815486526001808301546001600160a01b0316602088015260409096019560029092019101614cd9565b5093949350505050565b6000610100808401835485526001808501546020818189015260028701915084604089015283945081548085526101208901955082600052816000209450600092505b80831015614d755784548652948101949383019391830191614d58565b50505050600384015460608601525060048301546080850152600583015460a085015260068301546001600160a01b031660c085015283810360e08501526135aa8160078501614cc0565b602081526000612f5c6020830184614d15565b600082821015614de557614de5614c61565b500390565b634e487b7160e01b600052603260045260246000fd5b6000600019821415614e1457614e14614c61565b5060010190565b600060208284031215614e2d57600080fd5b8151612f5c81614997565b606081526000614e4b6060830185614d15565b9050612f5c6020830184805182526020908101516001600160a01b0316910152565b60008219821115614e8057614e80614c61565b500190565b600082614e9457614e94614c96565b500690565b60008154614ea681614bd8565b808552602060018381168015614ec35760018114614ed757614f05565b60ff19851688840152604088019550614f05565b866000528260002060005b85811015614efd5781548a8201860152908301908401614ee2565b890184019650505b505050505092915050565b60208152815460208201526000610180806040840152614f376101a0840160018601614e99565b601f1980858303016060860152614f518260028801614e99565b915080858303016080860152614f6a8260038801614e99565b9150614f8060048701546001600160a01b031690565b6001600160a01b031660a0860152848203810160c0860152614fa58260058801614e99565b9150808583030160e0860152614fbe8260068801614e99565b91508085830301610100860152614fd88260078801614e99565b600887015461ffff811661012088015260101c6001600160a01b03166101408701528581039190910161016086015290506150168160098701614e99565b9050615026600a86015460ff1690565b1515919093015250919050565b66697066733a2f2f60c81b8152600060076000845461505181614bd8565b60018281168015615069576001811461507e576150b1565b60ff19841688870152828801860194506150b1565b8860005260208060002060005b858110156150a65781548b82018a015290840190820161508b565b505050858389010194505b5092979650505050505050565b60208082526032908201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560408201527131b2b4bb32b91034b6b83632b6b2b73a32b960711b606082015260800190565b60008351615122818460208801614326565b835190830190615136818360208801614326565b01949350505050565b7f416363657373436f6e74726f6c3a206163636f756e7420000000000000000000815260008351615177816017850160208801614326565b7001034b99036b4b9b9b4b733903937b6329607d1b60179184019182015283516151a8816028840160208801614326565b01602801949350505050565b6001600160a01b038581168252841660208201526040810183905260806060820181905260009061482a90830184614352565b6000602082840312156151f957600080fd5b8151612f5c816142f3565b60008161521357615213614c61565b50600019019056fe22c69ab406805e70d07fb1a6502af760601d3b977beadb295a9d76d5852e16a3a2646970667358221220326bbb9b8deacb8df5c7352f3c977337483c63fc62672805ba381eeaf75ada5a64736f6c63430008090033
Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)
0000000000000000000000001b8ab0b410f54ae0a24320e6188e3ec20a6c609a
-----Decoded View---------------
Arg [0] : _floorToken (address): 0x1b8aB0b410f54aE0a24320e6188E3Ec20A6c609a
-----Encoded View---------------
1 Constructor Arguments found :
Arg [0] : 0000000000000000000000001b8ab0b410f54ae0a24320e6188e3ec20a6c609a
Loading...
Loading
Loading...
Loading
Multichain Portfolio | 27 Chains
Chain | Token | Portfolio % | Price | Amount | Value |
---|
Loading...
Loading
[ Download: CSV Export ]
A contract address hosts a smart contract, which is a set of code stored on the blockchain that runs when predetermined conditions are met. Learn more about addresses in our Knowledge Base.