ERC-721
Overview
Max Total Supply
89 RealioNFT
Holders
76
Market
Volume (24H)
N/A
Min Price (24H)
N/A
Max Price (24H)
N/A
Other Info
Token Contract
Balance
2 RealioNFTLoading...
Loading
Loading...
Loading
Loading...
Loading
# | Exchange | Pair | Price | 24H Volume | % Volume |
---|
Contract Name:
RealioERC721Factory
Compiler Version
v0.8.17+commit.8df45f5f
Optimization Enabled:
No with 200 runs
Other Settings:
default evmVersion
Contract Source Code (Solidity Standard Json-Input format)
pragma solidity ^0.8.0; import "erc721a/contracts/ERC721A.sol"; import "@openzeppelin/contracts/access/Ownable.sol"; import "@openzeppelin/contracts/access/IAccessControlEnumerable.sol"; import "@openzeppelin/contracts/access/AccessControl.sol"; import "@openzeppelin/contracts/utils/Context.sol"; import "@openzeppelin/contracts/utils/structs/EnumerableSet.sol"; abstract contract OwnableDelegateProxy {} abstract contract ProxyRegistry { mapping(address => OwnableDelegateProxy) public proxies; } /** * @dev {ERC721} token, including: * - configured to support OpenSea (owner, approvals, proxy registry) * - ability for holders to burn (destroy) their tokens * - a minter role that allows for token minting (creation) * - a pauser role that allows to stop all token transfers * * This contract uses {AccessControl} to lock permissioned functions using the * different roles - head to its documentation for details. * * The account that deploys the contract will be granted the minter and pauser * roles, as well as the default admin role, which will let it grant both minter * and pauser roles to other accounts. */ contract RealioERC721Factory is IAccessControlEnumerable, AccessControl, ERC721A, Ownable{ using Strings for string; using EnumerableSet for EnumerableSet.AddressSet; mapping(bytes32 => EnumerableSet.AddressSet) private _roleMembers; bytes32 public constant ADMIN_ROLE = keccak256("ADMIN_ROLE"); bytes32 public constant MINTER_ROLE = keccak256("MINTER_ROLE"); bytes32 public constant PAUSER_ROLE = keccak256("PAUSER_ROLE"); // proxy registry for gas free OpenSea listings address proxyRegistryAddress; // Used as the URI for all token types by relying on ID substitution, e.g. https://token-cdn-domain/{id}.json string private _uri; event Create(address user, uint256 tokenId, uint256 amount); constructor(string memory _uri, address proxyAddress) ERC721A("Realio NFT Collectibles", "RealioNFT") { _setupRole(ADMIN_ROLE, _msgSender()); _setupRole(MINTER_ROLE, _msgSender()); _setupRole(PAUSER_ROLE, _msgSender()); setURI(_uri); proxyRegistryAddress = proxyAddress; } /** @dev Allows setting of minter role by the contract owner */ function setMinterRole(address minterAddress) public { require(hasRole(ADMIN_ROLE, _msgSender()), "RealioNFTFactory: must have admin role to set minter"); _setupRole(MINTER_ROLE, minterAddress); } /** * @dev Creates a new token type and assigns to an address * create a new token; sends tokens to address * - non-fungible 1/1 token - set amount to 1 * - fungible x/100 token - set amount to 100 * @param to address of the first owner of the token * @param amount amount to supply the first owner * @param data Data to pass if receiver is contract * @return The newly created token ID */ function create( address to, uint256 amount, bytes memory data ) external returns (uint256) { require(hasRole(MINTER_ROLE, _msgSender()), "RealioNFTFactory: must have minter role to create"); uint256 _id = _nextTokenId(); _mint(to, amount); emit Create(to, _id, amount); return _id; } function mint(uint256 quantity) external payable { require(hasRole(MINTER_ROLE, _msgSender()), "RealioNFTFactory: must have minter role to create"); // `_mint`'s second argument now takes in a `quantity`, not a `tokenId`. _mint(msg.sender, quantity); } function _startTokenId() internal view virtual override(ERC721A) returns (uint256) { return 1; } /** * Override isApprovedForAll approve OpenSea (ProxyRegistry) as operator */ function isApprovedForAll(address owner, address operator) public view virtual override(ERC721A) returns (bool) { // Whitelist OpenSea proxy contract for easy trading. ProxyRegistry proxyRegistry = ProxyRegistry(proxyRegistryAddress); if (address(proxyRegistry.proxies(owner)) == operator) { return true; } return super.isApprovedForAll(owner, operator); } /** * @dev Returns one of the accounts that have `role`. `index` must be a * value between 0 and {getRoleMemberCount}, non-inclusive. * * Role bearers are not sorted in any particular way, and their ordering may * change at any point. * * WARNING: When using {getRoleMember} and {getRoleMemberCount}, make sure * you perform all queries on the same block. See the following * https://forum.openzeppelin.com/t/iterating-over-elements-on-enumerableset-in-openzeppelin-contracts/2296[forum post] * for more information. */ function getRoleMember(bytes32 role, uint256 index) public view override returns (address) { return _roleMembers[role].at(index); } /** * @dev Returns the number of accounts that have `role`. Can be used * together with {getRoleMember} to enumerate all bearers of a role. */ function getRoleMemberCount(bytes32 role) public view override returns (uint256) { return _roleMembers[role].length(); } /** * @dev Overload {grantRole} to track enumerable memberships */ function grantRole(bytes32 role, address account) public virtual override(AccessControl, IAccessControl) { super.grantRole(role, account); _roleMembers[role].add(account); } /** * @dev Overload {revokeRole} to track enumerable memberships */ function revokeRole(bytes32 role, address account) public virtual override(AccessControl, IAccessControl) { super.revokeRole(role, account); _roleMembers[role].remove(account); } /** * @dev Overload {renounceRole} to track enumerable memberships */ function renounceRole(bytes32 role, address account) public virtual override(AccessControl, IAccessControl) { super.renounceRole(role, account); _roleMembers[role].remove(account); } /** * @dev Overload {_setupRole} to track enumerable memberships */ function _setupRole(bytes32 role, address account) internal virtual override { super._setupRole(role, account); _roleMembers[role].add(account); } /** * @dev Returns true if this contract implements the interface defined by * `interfaceId`. See the corresponding * [EIP section](https://eips.ethereum.org/EIPS/eip-165#how-interfaces-are-identified) * to learn more about how these ids are created. * * This function call must use less than 30000 gas. */ function supportsInterface(bytes4 interfaceId) public view virtual override(AccessControl, ERC721A) returns (bool) { // The interface IDs are constants representing the first 4 bytes // of the XOR of all function selectors in the interface. // See: [ERC165](https://eips.ethereum.org/EIPS/eip-165) // (e.g. `bytes4(i.functionA.selector ^ i.functionB.selector ^ ...)`) return interfaceId == 0x01ffc9a7 || // ERC165 interface ID for ERC165. interfaceId == 0x80ac58cd || // ERC165 interface ID for ERC721. interfaceId == 0x5b5e139f; // ERC165 interface ID for ERC721Metadata. } /** * @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, it can be overridden in child contracts. */ function _baseURI() internal view virtual override(ERC721A) returns (string memory) { return _uri; } function setURI(string memory newuri) public virtual { require(hasRole(ADMIN_ROLE, _msgSender()), "RealioNFTFactory: must have admin role to set the uri"); _uri = newuri; } /** * @dev Returns the total number of tokens in existence. * Burned tokens will reduce the count. * To get the total number of tokens minted, please see {_totalMinted}. */ function totalSupply() public view virtual override(ERC721A) returns (uint256) { return super.totalSupply(); } }
// SPDX-License-Identifier: MIT // ERC721A Contracts v4.2.3 // Creator: Chiru Labs pragma solidity ^0.8.4; import './IERC721A.sol'; /** * @dev Interface of ERC721 token receiver. */ interface ERC721A__IERC721Receiver { function onERC721Received( address operator, address from, uint256 tokenId, bytes calldata data ) external returns (bytes4); } /** * @title ERC721A * * @dev Implementation of the [ERC721](https://eips.ethereum.org/EIPS/eip-721) * Non-Fungible Token Standard, including the Metadata extension. * Optimized for lower gas during batch mints. * * Token IDs are minted in sequential order (e.g. 0, 1, 2, 3, ...) * starting from `_startTokenId()`. * * Assumptions: * * - An owner cannot have more than 2**64 - 1 (max value of uint64) of supply. * - The maximum token ID cannot exceed 2**256 - 1 (max value of uint256). */ contract ERC721A is IERC721A { // Bypass for a `--via-ir` bug (https://github.com/chiru-labs/ERC721A/pull/364). struct TokenApprovalRef { address value; } // ============================================================= // CONSTANTS // ============================================================= // Mask of an entry in packed address data. uint256 private constant _BITMASK_ADDRESS_DATA_ENTRY = (1 << 64) - 1; // The bit position of `numberMinted` in packed address data. uint256 private constant _BITPOS_NUMBER_MINTED = 64; // The bit position of `numberBurned` in packed address data. uint256 private constant _BITPOS_NUMBER_BURNED = 128; // The bit position of `aux` in packed address data. uint256 private constant _BITPOS_AUX = 192; // Mask of all 256 bits in packed address data except the 64 bits for `aux`. uint256 private constant _BITMASK_AUX_COMPLEMENT = (1 << 192) - 1; // The bit position of `startTimestamp` in packed ownership. uint256 private constant _BITPOS_START_TIMESTAMP = 160; // The bit mask of the `burned` bit in packed ownership. uint256 private constant _BITMASK_BURNED = 1 << 224; // The bit position of the `nextInitialized` bit in packed ownership. uint256 private constant _BITPOS_NEXT_INITIALIZED = 225; // The bit mask of the `nextInitialized` bit in packed ownership. uint256 private constant _BITMASK_NEXT_INITIALIZED = 1 << 225; // The bit position of `extraData` in packed ownership. uint256 private constant _BITPOS_EXTRA_DATA = 232; // Mask of all 256 bits in a packed ownership except the 24 bits for `extraData`. uint256 private constant _BITMASK_EXTRA_DATA_COMPLEMENT = (1 << 232) - 1; // The mask of the lower 160 bits for addresses. uint256 private constant _BITMASK_ADDRESS = (1 << 160) - 1; // The maximum `quantity` that can be minted with {_mintERC2309}. // This limit is to prevent overflows on the address data entries. // For a limit of 5000, a total of 3.689e15 calls to {_mintERC2309} // is required to cause an overflow, which is unrealistic. uint256 private constant _MAX_MINT_ERC2309_QUANTITY_LIMIT = 5000; // The `Transfer` event signature is given by: // `keccak256(bytes("Transfer(address,address,uint256)"))`. bytes32 private constant _TRANSFER_EVENT_SIGNATURE = 0xddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef; // ============================================================= // STORAGE // ============================================================= // The next token ID to be minted. uint256 private _currentIndex; // The number of tokens burned. uint256 private _burnCounter; // Token name string private _name; // Token symbol string private _symbol; // Mapping from token ID to ownership details // An empty struct value does not necessarily mean the token is unowned. // See {_packedOwnershipOf} implementation for details. // // Bits Layout: // - [0..159] `addr` // - [160..223] `startTimestamp` // - [224] `burned` // - [225] `nextInitialized` // - [232..255] `extraData` mapping(uint256 => uint256) private _packedOwnerships; // Mapping owner address to address data. // // Bits Layout: // - [0..63] `balance` // - [64..127] `numberMinted` // - [128..191] `numberBurned` // - [192..255] `aux` mapping(address => uint256) private _packedAddressData; // Mapping from token ID to approved address. mapping(uint256 => TokenApprovalRef) private _tokenApprovals; // Mapping from owner to operator approvals mapping(address => mapping(address => bool)) private _operatorApprovals; // ============================================================= // CONSTRUCTOR // ============================================================= constructor(string memory name_, string memory symbol_) { _name = name_; _symbol = symbol_; _currentIndex = _startTokenId(); } // ============================================================= // TOKEN COUNTING OPERATIONS // ============================================================= /** * @dev Returns the starting token ID. * To change the starting token ID, please override this function. */ function _startTokenId() internal view virtual returns (uint256) { return 0; } /** * @dev Returns the next token ID to be minted. */ function _nextTokenId() internal view virtual returns (uint256) { return _currentIndex; } /** * @dev Returns the total number of tokens in existence. * Burned tokens will reduce the count. * To get the total number of tokens minted, please see {_totalMinted}. */ function totalSupply() public view virtual override returns (uint256) { // Counter underflow is impossible as _burnCounter cannot be incremented // more than `_currentIndex - _startTokenId()` times. unchecked { return _currentIndex - _burnCounter - _startTokenId(); } } /** * @dev Returns the total amount of tokens minted in the contract. */ function _totalMinted() internal view virtual returns (uint256) { // Counter underflow is impossible as `_currentIndex` does not decrement, // and it is initialized to `_startTokenId()`. unchecked { return _currentIndex - _startTokenId(); } } /** * @dev Returns the total number of tokens burned. */ function _totalBurned() internal view virtual returns (uint256) { return _burnCounter; } // ============================================================= // ADDRESS DATA OPERATIONS // ============================================================= /** * @dev Returns the number of tokens in `owner`'s account. */ function balanceOf(address owner) public view virtual override returns (uint256) { if (owner == address(0)) revert BalanceQueryForZeroAddress(); return _packedAddressData[owner] & _BITMASK_ADDRESS_DATA_ENTRY; } /** * Returns the number of tokens minted by `owner`. */ function _numberMinted(address owner) internal view returns (uint256) { return (_packedAddressData[owner] >> _BITPOS_NUMBER_MINTED) & _BITMASK_ADDRESS_DATA_ENTRY; } /** * Returns the number of tokens burned by or on behalf of `owner`. */ function _numberBurned(address owner) internal view returns (uint256) { return (_packedAddressData[owner] >> _BITPOS_NUMBER_BURNED) & _BITMASK_ADDRESS_DATA_ENTRY; } /** * Returns the auxiliary data for `owner`. (e.g. number of whitelist mint slots used). */ function _getAux(address owner) internal view returns (uint64) { return uint64(_packedAddressData[owner] >> _BITPOS_AUX); } /** * Sets the auxiliary data for `owner`. (e.g. number of whitelist mint slots used). * If there are multiple variables, please pack them into a uint64. */ function _setAux(address owner, uint64 aux) internal virtual { uint256 packed = _packedAddressData[owner]; uint256 auxCasted; // Cast `aux` with assembly to avoid redundant masking. assembly { auxCasted := aux } packed = (packed & _BITMASK_AUX_COMPLEMENT) | (auxCasted << _BITPOS_AUX); _packedAddressData[owner] = packed; } // ============================================================= // IERC165 // ============================================================= /** * @dev Returns true if this contract implements the interface defined by * `interfaceId`. See the corresponding * [EIP section](https://eips.ethereum.org/EIPS/eip-165#how-interfaces-are-identified) * to learn more about how these ids are created. * * This function call must use less than 30000 gas. */ function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) { // The interface IDs are constants representing the first 4 bytes // of the XOR of all function selectors in the interface. // See: [ERC165](https://eips.ethereum.org/EIPS/eip-165) // (e.g. `bytes4(i.functionA.selector ^ i.functionB.selector ^ ...)`) return interfaceId == 0x01ffc9a7 || // ERC165 interface ID for ERC165. interfaceId == 0x80ac58cd || // ERC165 interface ID for ERC721. interfaceId == 0x5b5e139f; // ERC165 interface ID for ERC721Metadata. } // ============================================================= // IERC721Metadata // ============================================================= /** * @dev Returns the token collection name. */ function name() public view virtual override returns (string memory) { return _name; } /** * @dev Returns the token collection symbol. */ function symbol() public view virtual override returns (string memory) { return _symbol; } /** * @dev Returns the Uniform Resource Identifier (URI) for `tokenId` token. */ function tokenURI(uint256 tokenId) public view virtual override returns (string memory) { if (!_exists(tokenId)) revert URIQueryForNonexistentToken(); string memory baseURI = _baseURI(); return bytes(baseURI).length != 0 ? string(abi.encodePacked(baseURI, _toString(tokenId))) : ''; } /** * @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, it can be overridden in child contracts. */ function _baseURI() internal view virtual returns (string memory) { return ''; } // ============================================================= // OWNERSHIPS OPERATIONS // ============================================================= /** * @dev Returns the owner of the `tokenId` token. * * Requirements: * * - `tokenId` must exist. */ function ownerOf(uint256 tokenId) public view virtual override returns (address) { return address(uint160(_packedOwnershipOf(tokenId))); } /** * @dev Gas spent here starts off proportional to the maximum mint batch size. * It gradually moves to O(1) as tokens get transferred around over time. */ function _ownershipOf(uint256 tokenId) internal view virtual returns (TokenOwnership memory) { return _unpackedOwnership(_packedOwnershipOf(tokenId)); } /** * @dev Returns the unpacked `TokenOwnership` struct at `index`. */ function _ownershipAt(uint256 index) internal view virtual returns (TokenOwnership memory) { return _unpackedOwnership(_packedOwnerships[index]); } /** * @dev Initializes the ownership slot minted at `index` for efficiency purposes. */ function _initializeOwnershipAt(uint256 index) internal virtual { if (_packedOwnerships[index] == 0) { _packedOwnerships[index] = _packedOwnershipOf(index); } } /** * Returns the packed ownership data of `tokenId`. */ function _packedOwnershipOf(uint256 tokenId) private view returns (uint256) { uint256 curr = tokenId; unchecked { if (_startTokenId() <= curr) if (curr < _currentIndex) { uint256 packed = _packedOwnerships[curr]; // If not burned. if (packed & _BITMASK_BURNED == 0) { // Invariant: // There will always be an initialized ownership slot // (i.e. `ownership.addr != address(0) && ownership.burned == false`) // before an unintialized ownership slot // (i.e. `ownership.addr == address(0) && ownership.burned == false`) // Hence, `curr` will not underflow. // // We can directly compare the packed value. // If the address is zero, packed will be zero. while (packed == 0) { packed = _packedOwnerships[--curr]; } return packed; } } } revert OwnerQueryForNonexistentToken(); } /** * @dev Returns the unpacked `TokenOwnership` struct from `packed`. */ function _unpackedOwnership(uint256 packed) private pure returns (TokenOwnership memory ownership) { ownership.addr = address(uint160(packed)); ownership.startTimestamp = uint64(packed >> _BITPOS_START_TIMESTAMP); ownership.burned = packed & _BITMASK_BURNED != 0; ownership.extraData = uint24(packed >> _BITPOS_EXTRA_DATA); } /** * @dev Packs ownership data into a single uint256. */ function _packOwnershipData(address owner, uint256 flags) private view returns (uint256 result) { assembly { // Mask `owner` to the lower 160 bits, in case the upper bits somehow aren't clean. owner := and(owner, _BITMASK_ADDRESS) // `owner | (block.timestamp << _BITPOS_START_TIMESTAMP) | flags`. result := or(owner, or(shl(_BITPOS_START_TIMESTAMP, timestamp()), flags)) } } /** * @dev Returns the `nextInitialized` flag set if `quantity` equals 1. */ function _nextInitializedFlag(uint256 quantity) private pure returns (uint256 result) { // For branchless setting of the `nextInitialized` flag. assembly { // `(quantity == 1) << _BITPOS_NEXT_INITIALIZED`. result := shl(_BITPOS_NEXT_INITIALIZED, eq(quantity, 1)) } } // ============================================================= // APPROVAL OPERATIONS // ============================================================= /** * @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) public payable virtual override { address owner = ownerOf(tokenId); if (_msgSenderERC721A() != owner) if (!isApprovedForAll(owner, _msgSenderERC721A())) { revert ApprovalCallerNotOwnerNorApproved(); } _tokenApprovals[tokenId].value = to; emit Approval(owner, to, tokenId); } /** * @dev Returns the account approved for `tokenId` token. * * Requirements: * * - `tokenId` must exist. */ function getApproved(uint256 tokenId) public view virtual override returns (address) { if (!_exists(tokenId)) revert ApprovalQueryForNonexistentToken(); return _tokenApprovals[tokenId].value; } /** * @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) public virtual override { _operatorApprovals[_msgSenderERC721A()][operator] = approved; emit ApprovalForAll(_msgSenderERC721A(), operator, approved); } /** * @dev Returns if the `operator` is allowed to manage all of the assets of `owner`. * * See {setApprovalForAll}. */ function isApprovedForAll(address owner, address operator) public view virtual override returns (bool) { return _operatorApprovals[owner][operator]; } /** * @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. See {_mint}. */ function _exists(uint256 tokenId) internal view virtual returns (bool) { return _startTokenId() <= tokenId && tokenId < _currentIndex && // If within bounds, _packedOwnerships[tokenId] & _BITMASK_BURNED == 0; // and not burned. } /** * @dev Returns whether `msgSender` is equal to `approvedAddress` or `owner`. */ function _isSenderApprovedOrOwner( address approvedAddress, address owner, address msgSender ) private pure returns (bool result) { assembly { // Mask `owner` to the lower 160 bits, in case the upper bits somehow aren't clean. owner := and(owner, _BITMASK_ADDRESS) // Mask `msgSender` to the lower 160 bits, in case the upper bits somehow aren't clean. msgSender := and(msgSender, _BITMASK_ADDRESS) // `msgSender == owner || msgSender == approvedAddress`. result := or(eq(msgSender, owner), eq(msgSender, approvedAddress)) } } /** * @dev Returns the storage slot and value for the approved address of `tokenId`. */ function _getApprovedSlotAndAddress(uint256 tokenId) private view returns (uint256 approvedAddressSlot, address approvedAddress) { TokenApprovalRef storage tokenApproval = _tokenApprovals[tokenId]; // The following is equivalent to `approvedAddress = _tokenApprovals[tokenId].value`. assembly { approvedAddressSlot := tokenApproval.slot approvedAddress := sload(approvedAddressSlot) } } // ============================================================= // TRANSFER OPERATIONS // ============================================================= /** * @dev Transfers `tokenId` from `from` to `to`. * * 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 ) public payable virtual override { uint256 prevOwnershipPacked = _packedOwnershipOf(tokenId); if (address(uint160(prevOwnershipPacked)) != from) revert TransferFromIncorrectOwner(); (uint256 approvedAddressSlot, address approvedAddress) = _getApprovedSlotAndAddress(tokenId); // The nested ifs save around 20+ gas over a compound boolean condition. if (!_isSenderApprovedOrOwner(approvedAddress, from, _msgSenderERC721A())) if (!isApprovedForAll(from, _msgSenderERC721A())) revert TransferCallerNotOwnerNorApproved(); if (to == address(0)) revert TransferToZeroAddress(); _beforeTokenTransfers(from, to, tokenId, 1); // Clear approvals from the previous owner. assembly { if approvedAddress { // This is equivalent to `delete _tokenApprovals[tokenId]`. sstore(approvedAddressSlot, 0) } } // Underflow of the sender's balance is impossible because we check for // ownership above and the recipient's balance can't realistically overflow. // Counter overflow is incredibly unrealistic as `tokenId` would have to be 2**256. unchecked { // We can directly increment and decrement the balances. --_packedAddressData[from]; // Updates: `balance -= 1`. ++_packedAddressData[to]; // Updates: `balance += 1`. // Updates: // - `address` to the next owner. // - `startTimestamp` to the timestamp of transfering. // - `burned` to `false`. // - `nextInitialized` to `true`. _packedOwnerships[tokenId] = _packOwnershipData( to, _BITMASK_NEXT_INITIALIZED | _nextExtraData(from, to, prevOwnershipPacked) ); // If the next slot may not have been initialized (i.e. `nextInitialized == false`) . if (prevOwnershipPacked & _BITMASK_NEXT_INITIALIZED == 0) { uint256 nextTokenId = tokenId + 1; // If the next slot's address is zero and not burned (i.e. packed value is zero). if (_packedOwnerships[nextTokenId] == 0) { // If the next slot is within bounds. if (nextTokenId != _currentIndex) { // Initialize the next slot to maintain correctness for `ownerOf(tokenId + 1)`. _packedOwnerships[nextTokenId] = prevOwnershipPacked; } } } } emit Transfer(from, to, tokenId); _afterTokenTransfers(from, to, tokenId, 1); } /** * @dev Equivalent to `safeTransferFrom(from, to, tokenId, '')`. */ function safeTransferFrom( address from, address to, uint256 tokenId ) public payable virtual override { safeTransferFrom(from, to, tokenId, ''); } /** * @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 memory _data ) public payable virtual override { transferFrom(from, to, tokenId); if (to.code.length != 0) if (!_checkContractOnERC721Received(from, to, tokenId, _data)) { revert TransferToNonERC721ReceiverImplementer(); } } /** * @dev Hook that is called before a set of serially-ordered token IDs * are about to be transferred. This includes minting. * And also called before burning one token. * * `startTokenId` - the first token ID to be transferred. * `quantity` - the amount to be transferred. * * 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, `tokenId` will be burned by `from`. * - `from` and `to` are never both zero. */ function _beforeTokenTransfers( address from, address to, uint256 startTokenId, uint256 quantity ) internal virtual {} /** * @dev Hook that is called after a set of serially-ordered token IDs * have been transferred. This includes minting. * And also called after one token has been burned. * * `startTokenId` - the first token ID to be transferred. * `quantity` - the amount to be transferred. * * Calling conditions: * * - When `from` and `to` are both non-zero, `from`'s `tokenId` has been * transferred to `to`. * - When `from` is zero, `tokenId` has been minted for `to`. * - When `to` is zero, `tokenId` has been burned by `from`. * - `from` and `to` are never both zero. */ function _afterTokenTransfers( address from, address to, uint256 startTokenId, uint256 quantity ) internal virtual {} /** * @dev Private function to invoke {IERC721Receiver-onERC721Received} on a target contract. * * `from` - Previous owner of the given token ID. * `to` - Target address that will receive the token. * `tokenId` - Token ID to be transferred. * `_data` - Optional data to send along with the call. * * Returns whether the call correctly returned the expected magic value. */ function _checkContractOnERC721Received( address from, address to, uint256 tokenId, bytes memory _data ) private returns (bool) { try ERC721A__IERC721Receiver(to).onERC721Received(_msgSenderERC721A(), from, tokenId, _data) returns ( bytes4 retval ) { return retval == ERC721A__IERC721Receiver(to).onERC721Received.selector; } catch (bytes memory reason) { if (reason.length == 0) { revert TransferToNonERC721ReceiverImplementer(); } else { assembly { revert(add(32, reason), mload(reason)) } } } } // ============================================================= // MINT OPERATIONS // ============================================================= /** * @dev Mints `quantity` tokens and transfers them to `to`. * * Requirements: * * - `to` cannot be the zero address. * - `quantity` must be greater than 0. * * Emits a {Transfer} event for each mint. */ function _mint(address to, uint256 quantity) internal virtual { uint256 startTokenId = _currentIndex; if (quantity == 0) revert MintZeroQuantity(); _beforeTokenTransfers(address(0), to, startTokenId, quantity); // Overflows are incredibly unrealistic. // `balance` and `numberMinted` have a maximum limit of 2**64. // `tokenId` has a maximum limit of 2**256. unchecked { // Updates: // - `balance += quantity`. // - `numberMinted += quantity`. // // We can directly add to the `balance` and `numberMinted`. _packedAddressData[to] += quantity * ((1 << _BITPOS_NUMBER_MINTED) | 1); // Updates: // - `address` to the owner. // - `startTimestamp` to the timestamp of minting. // - `burned` to `false`. // - `nextInitialized` to `quantity == 1`. _packedOwnerships[startTokenId] = _packOwnershipData( to, _nextInitializedFlag(quantity) | _nextExtraData(address(0), to, 0) ); uint256 toMasked; uint256 end = startTokenId + quantity; // Use assembly to loop and emit the `Transfer` event for gas savings. // The duplicated `log4` removes an extra check and reduces stack juggling. // The assembly, together with the surrounding Solidity code, have been // delicately arranged to nudge the compiler into producing optimized opcodes. assembly { // Mask `to` to the lower 160 bits, in case the upper bits somehow aren't clean. toMasked := and(to, _BITMASK_ADDRESS) // Emit the `Transfer` event. log4( 0, // Start of data (0, since no data). 0, // End of data (0, since no data). _TRANSFER_EVENT_SIGNATURE, // Signature. 0, // `address(0)`. toMasked, // `to`. startTokenId // `tokenId`. ) // The `iszero(eq(,))` check ensures that large values of `quantity` // that overflows uint256 will make the loop run out of gas. // The compiler will optimize the `iszero` away for performance. for { let tokenId := add(startTokenId, 1) } iszero(eq(tokenId, end)) { tokenId := add(tokenId, 1) } { // Emit the `Transfer` event. Similar to above. log4(0, 0, _TRANSFER_EVENT_SIGNATURE, 0, toMasked, tokenId) } } if (toMasked == 0) revert MintToZeroAddress(); _currentIndex = end; } _afterTokenTransfers(address(0), to, startTokenId, quantity); } /** * @dev Mints `quantity` tokens and transfers them to `to`. * * This function is intended for efficient minting only during contract creation. * * It emits only one {ConsecutiveTransfer} as defined in * [ERC2309](https://eips.ethereum.org/EIPS/eip-2309), * instead of a sequence of {Transfer} event(s). * * Calling this function outside of contract creation WILL make your contract * non-compliant with the ERC721 standard. * For full ERC721 compliance, substituting ERC721 {Transfer} event(s) with the ERC2309 * {ConsecutiveTransfer} event is only permissible during contract creation. * * Requirements: * * - `to` cannot be the zero address. * - `quantity` must be greater than 0. * * Emits a {ConsecutiveTransfer} event. */ function _mintERC2309(address to, uint256 quantity) internal virtual { uint256 startTokenId = _currentIndex; if (to == address(0)) revert MintToZeroAddress(); if (quantity == 0) revert MintZeroQuantity(); if (quantity > _MAX_MINT_ERC2309_QUANTITY_LIMIT) revert MintERC2309QuantityExceedsLimit(); _beforeTokenTransfers(address(0), to, startTokenId, quantity); // Overflows are unrealistic due to the above check for `quantity` to be below the limit. unchecked { // Updates: // - `balance += quantity`. // - `numberMinted += quantity`. // // We can directly add to the `balance` and `numberMinted`. _packedAddressData[to] += quantity * ((1 << _BITPOS_NUMBER_MINTED) | 1); // Updates: // - `address` to the owner. // - `startTimestamp` to the timestamp of minting. // - `burned` to `false`. // - `nextInitialized` to `quantity == 1`. _packedOwnerships[startTokenId] = _packOwnershipData( to, _nextInitializedFlag(quantity) | _nextExtraData(address(0), to, 0) ); emit ConsecutiveTransfer(startTokenId, startTokenId + quantity - 1, address(0), to); _currentIndex = startTokenId + quantity; } _afterTokenTransfers(address(0), to, startTokenId, quantity); } /** * @dev Safely mints `quantity` tokens and transfers them to `to`. * * Requirements: * * - If `to` refers to a smart contract, it must implement * {IERC721Receiver-onERC721Received}, which is called for each safe transfer. * - `quantity` must be greater than 0. * * See {_mint}. * * Emits a {Transfer} event for each mint. */ function _safeMint( address to, uint256 quantity, bytes memory _data ) internal virtual { _mint(to, quantity); unchecked { if (to.code.length != 0) { uint256 end = _currentIndex; uint256 index = end - quantity; do { if (!_checkContractOnERC721Received(address(0), to, index++, _data)) { revert TransferToNonERC721ReceiverImplementer(); } } while (index < end); // Reentrancy protection. if (_currentIndex != end) revert(); } } } /** * @dev Equivalent to `_safeMint(to, quantity, '')`. */ function _safeMint(address to, uint256 quantity) internal virtual { _safeMint(to, quantity, ''); } // ============================================================= // BURN OPERATIONS // ============================================================= /** * @dev Equivalent to `_burn(tokenId, false)`. */ function _burn(uint256 tokenId) internal virtual { _burn(tokenId, false); } /** * @dev Destroys `tokenId`. * The approval is cleared when the token is burned. * * Requirements: * * - `tokenId` must exist. * * Emits a {Transfer} event. */ function _burn(uint256 tokenId, bool approvalCheck) internal virtual { uint256 prevOwnershipPacked = _packedOwnershipOf(tokenId); address from = address(uint160(prevOwnershipPacked)); (uint256 approvedAddressSlot, address approvedAddress) = _getApprovedSlotAndAddress(tokenId); if (approvalCheck) { // The nested ifs save around 20+ gas over a compound boolean condition. if (!_isSenderApprovedOrOwner(approvedAddress, from, _msgSenderERC721A())) if (!isApprovedForAll(from, _msgSenderERC721A())) revert TransferCallerNotOwnerNorApproved(); } _beforeTokenTransfers(from, address(0), tokenId, 1); // Clear approvals from the previous owner. assembly { if approvedAddress { // This is equivalent to `delete _tokenApprovals[tokenId]`. sstore(approvedAddressSlot, 0) } } // Underflow of the sender's balance is impossible because we check for // ownership above and the recipient's balance can't realistically overflow. // Counter overflow is incredibly unrealistic as `tokenId` would have to be 2**256. unchecked { // Updates: // - `balance -= 1`. // - `numberBurned += 1`. // // We can directly decrement the balance, and increment the number burned. // This is equivalent to `packed -= 1; packed += 1 << _BITPOS_NUMBER_BURNED;`. _packedAddressData[from] += (1 << _BITPOS_NUMBER_BURNED) - 1; // Updates: // - `address` to the last owner. // - `startTimestamp` to the timestamp of burning. // - `burned` to `true`. // - `nextInitialized` to `true`. _packedOwnerships[tokenId] = _packOwnershipData( from, (_BITMASK_BURNED | _BITMASK_NEXT_INITIALIZED) | _nextExtraData(from, address(0), prevOwnershipPacked) ); // If the next slot may not have been initialized (i.e. `nextInitialized == false`) . if (prevOwnershipPacked & _BITMASK_NEXT_INITIALIZED == 0) { uint256 nextTokenId = tokenId + 1; // If the next slot's address is zero and not burned (i.e. packed value is zero). if (_packedOwnerships[nextTokenId] == 0) { // If the next slot is within bounds. if (nextTokenId != _currentIndex) { // Initialize the next slot to maintain correctness for `ownerOf(tokenId + 1)`. _packedOwnerships[nextTokenId] = prevOwnershipPacked; } } } } emit Transfer(from, address(0), tokenId); _afterTokenTransfers(from, address(0), tokenId, 1); // Overflow not possible, as _burnCounter cannot be exceed _currentIndex times. unchecked { _burnCounter++; } } // ============================================================= // EXTRA DATA OPERATIONS // ============================================================= /** * @dev Directly sets the extra data for the ownership data `index`. */ function _setExtraDataAt(uint256 index, uint24 extraData) internal virtual { uint256 packed = _packedOwnerships[index]; if (packed == 0) revert OwnershipNotInitializedForExtraData(); uint256 extraDataCasted; // Cast `extraData` with assembly to avoid redundant masking. assembly { extraDataCasted := extraData } packed = (packed & _BITMASK_EXTRA_DATA_COMPLEMENT) | (extraDataCasted << _BITPOS_EXTRA_DATA); _packedOwnerships[index] = packed; } /** * @dev Called during each token transfer to set the 24bit `extraData` field. * Intended to be overridden by the cosumer contract. * * `previousExtraData` - the value of `extraData` before transfer. * * 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, `tokenId` will be burned by `from`. * - `from` and `to` are never both zero. */ function _extraData( address from, address to, uint24 previousExtraData ) internal view virtual returns (uint24) {} /** * @dev Returns the next extra data for the packed ownership data. * The returned result is shifted into position. */ function _nextExtraData( address from, address to, uint256 prevOwnershipPacked ) private view returns (uint256) { uint24 extraData = uint24(prevOwnershipPacked >> _BITPOS_EXTRA_DATA); return uint256(_extraData(from, to, extraData)) << _BITPOS_EXTRA_DATA; } // ============================================================= // OTHER OPERATIONS // ============================================================= /** * @dev Returns the message sender (defaults to `msg.sender`). * * If you are writing GSN compatible contracts, you need to override this function. */ function _msgSenderERC721A() internal view virtual returns (address) { return msg.sender; } /** * @dev Converts a uint256 to its ASCII string decimal representation. */ function _toString(uint256 value) internal pure virtual returns (string memory str) { assembly { // The maximum value of a uint256 contains 78 digits (1 byte per digit), but // we allocate 0xa0 bytes to keep the free memory pointer 32-byte word aligned. // We will need 1 word for the trailing zeros padding, 1 word for the length, // and 3 words for a maximum of 78 digits. Total: 5 * 0x20 = 0xa0. let m := add(mload(0x40), 0xa0) // Update the free memory pointer to allocate. mstore(0x40, m) // Assign the `str` to the end. str := sub(m, 0x20) // Zeroize the slot after the string. mstore(str, 0) // Cache the end of the memory to calculate the length later. let end := str // We write the string from rightmost digit to leftmost digit. // The following is essentially a do-while loop that also handles the zero case. // prettier-ignore for { let temp := value } 1 {} { str := sub(str, 1) // Write the character to the pointer. // The ASCII index of the '0' character is 48. mstore8(str, add(48, mod(temp, 10))) // Keep dividing `temp` until zero. temp := div(temp, 10) // prettier-ignore if iszero(temp) { break } } let length := sub(end, str) // Move the pointer 32 bytes leftwards to make room for the length. str := sub(str, 0x20) // Store the length. mstore(str, length) } } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import "../utils/Context.sol"; /** * @dev Contract module which provides a basic access control mechanism, where * there is an account (an owner) that can be granted exclusive access to * specific functions. * * By default, the owner account will be the one that deploys the contract. This * can later be changed with {transferOwnership}. * * This module is used through inheritance. It will make available the modifier * `onlyOwner`, which can be applied to your functions to restrict their use to * the owner. */ abstract contract Ownable is Context { address private _owner; event OwnershipTransferred(address indexed previousOwner, address indexed newOwner); /** * @dev Initializes the contract setting the deployer as the initial owner. */ constructor() { _setOwner(_msgSender()); } /** * @dev Returns the address of the current owner. */ function owner() public view virtual returns (address) { return _owner; } /** * @dev Throws if called by any account other than the owner. */ modifier onlyOwner() { require(owner() == _msgSender(), "Ownable: caller is not the owner"); _; } /** * @dev Leaves the contract without owner. It will not be possible to call * `onlyOwner` functions anymore. Can only be called by the current owner. * * NOTE: Renouncing ownership will leave the contract without an owner, * thereby removing any functionality that is only available to the owner. */ function renounceOwnership() public virtual onlyOwner { _setOwner(address(0)); } /** * @dev Transfers ownership of the contract to a new account (`newOwner`). * Can only be called by the current owner. */ function transferOwnership(address newOwner) public virtual onlyOwner { require(newOwner != address(0), "Ownable: new owner is the zero address"); _setOwner(newOwner); } function _setOwner(address newOwner) private { address oldOwner = _owner; _owner = newOwner; emit OwnershipTransferred(oldOwner, newOwner); } }
// SPDX-License-Identifier: MIT 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, _msgSender()); _; } /** * @dev See {IERC165-supportsInterface}. */ function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) { return interfaceId == type(IAccessControl).interfaceId || super.supportsInterface(interfaceId); } /** * @dev Returns `true` if `account` has been granted `role`. */ function hasRole(bytes32 role, address account) public view override returns (bool) { return _roles[role].members[account]; } /** * @dev Revert with a standard message if `account` is missing `role`. * * The format of the revert reason is given by the following regular expression: * * /^AccessControl: account (0x[0-9a-f]{40}) is missing role (0x[0-9a-f]{64})$/ */ function _checkRole(bytes32 role, address account) internal view { if (!hasRole(role, account)) { revert( string( abi.encodePacked( "AccessControl: account ", Strings.toHexString(uint160(account), 20), " is missing role ", Strings.toHexString(uint256(role), 32) ) ) ); } } /** * @dev Returns the admin role that controls `role`. See {grantRole} and * {revokeRole}. * * To change a role's admin, use {_setRoleAdmin}. */ function getRoleAdmin(bytes32 role) public view override returns (bytes32) { return _roles[role].adminRole; } /** * @dev Grants `role` to `account`. * * If `account` had not been already granted `role`, emits a {RoleGranted} * event. * * Requirements: * * - the caller must have ``role``'s admin role. */ function grantRole(bytes32 role, address account) public virtual override onlyRole(getRoleAdmin(role)) { _grantRole(role, account); } /** * @dev Revokes `role` from `account`. * * If `account` had been granted `role`, emits a {RoleRevoked} event. * * Requirements: * * - the caller must have ``role``'s admin role. */ function revokeRole(bytes32 role, address account) public virtual override onlyRole(getRoleAdmin(role)) { _revokeRole(role, account); } /** * @dev Revokes `role` from the calling account. * * Roles are often managed via {grantRole} and {revokeRole}: this function's * purpose is to provide a mechanism for accounts to lose their privileges * if they are compromised (such as when a trusted device is misplaced). * * If the calling account had been granted `role`, emits a {RoleRevoked} * event. * * Requirements: * * - the caller must be `account`. */ function renounceRole(bytes32 role, address account) public virtual override { require(account == _msgSender(), "AccessControl: can only renounce roles for self"); _revokeRole(role, account); } /** * @dev Grants `role` to `account`. * * If `account` had not been already granted `role`, emits a {RoleGranted} * event. Note that unlike {grantRole}, this function doesn't perform any * checks on the calling account. * * [WARNING] * ==== * This function should only be called from the constructor when setting * up the initial roles for the system. * * Using this function in any other way is effectively circumventing the admin * system imposed by {AccessControl}. * ==== */ function _setupRole(bytes32 role, address account) internal virtual { _grantRole(role, account); } /** * @dev Sets `adminRole` as ``role``'s admin role. * * Emits a {RoleAdminChanged} event. */ function _setRoleAdmin(bytes32 role, bytes32 adminRole) internal virtual { bytes32 previousAdminRole = getRoleAdmin(role); _roles[role].adminRole = adminRole; emit RoleAdminChanged(role, previousAdminRole, adminRole); } function _grantRole(bytes32 role, address account) private { if (!hasRole(role, account)) { _roles[role].members[account] = true; emit RoleGranted(role, account, _msgSender()); } } function _revokeRole(bytes32 role, address account) private { if (hasRole(role, account)) { _roles[role].members[account] = false; emit RoleRevoked(role, account, _msgSender()); } } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import "./IAccessControl.sol"; /** * @dev External interface of AccessControlEnumerable declared to support ERC165 detection. */ interface IAccessControlEnumerable is IAccessControl { /** * @dev Returns one of the accounts that have `role`. `index` must be a * value between 0 and {getRoleMemberCount}, non-inclusive. * * Role bearers are not sorted in any particular way, and their ordering may * change at any point. * * WARNING: When using {getRoleMember} and {getRoleMemberCount}, make sure * you perform all queries on the same block. See the following * https://forum.openzeppelin.com/t/iterating-over-elements-on-enumerableset-in-openzeppelin-contracts/2296[forum post] * for more information. */ function getRoleMember(bytes32 role, uint256 index) external view returns (address); /** * @dev Returns the number of accounts that have `role`. Can be used * together with {getRoleMember} to enumerate all bearers of a role. */ function getRoleMemberCount(bytes32 role) external view returns (uint256); }
// SPDX-License-Identifier: MIT 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 pragma solidity ^0.8.0; /** * @dev Library for managing * https://en.wikipedia.org/wiki/Set_(abstract_data_type)[sets] of primitive * types. * * Sets have the following properties: * * - Elements are added, removed, and checked for existence in constant time * (O(1)). * - Elements are enumerated in O(n). No guarantees are made on the ordering. * * ``` * contract Example { * // Add the library methods * using EnumerableSet for EnumerableSet.AddressSet; * * // Declare a set state variable * EnumerableSet.AddressSet private mySet; * } * ``` * * As of v3.3.0, sets of type `bytes32` (`Bytes32Set`), `address` (`AddressSet`) * and `uint256` (`UintSet`) are supported. */ library EnumerableSet { // To implement this library for multiple types with as little code // repetition as possible, we write it in terms of a generic Set type with // bytes32 values. // The Set implementation uses private functions, and user-facing // implementations (such as AddressSet) are just wrappers around the // underlying Set. // This means that we can only create new EnumerableSets for types that fit // in bytes32. struct Set { // Storage of set values bytes32[] _values; // Position of the value in the `values` array, plus 1 because index 0 // means a value is not in the set. mapping(bytes32 => uint256) _indexes; } /** * @dev Add a value to a set. O(1). * * Returns true if the value was added to the set, that is if it was not * already present. */ function _add(Set storage set, bytes32 value) private returns (bool) { if (!_contains(set, value)) { set._values.push(value); // The value is stored at length-1, but we add 1 to all indexes // and use 0 as a sentinel value set._indexes[value] = set._values.length; return true; } else { return false; } } /** * @dev Removes a value from a set. O(1). * * Returns true if the value was removed from the set, that is if it was * present. */ function _remove(Set storage set, bytes32 value) private returns (bool) { // We read and store the value's index to prevent multiple reads from the same storage slot uint256 valueIndex = set._indexes[value]; if (valueIndex != 0) { // Equivalent to contains(set, value) // To delete an element from the _values array in O(1), we swap the element to delete with the last one in // the array, and then remove the last element (sometimes called as 'swap and pop'). // This modifies the order of the array, as noted in {at}. uint256 toDeleteIndex = valueIndex - 1; uint256 lastIndex = set._values.length - 1; if (lastIndex != toDeleteIndex) { bytes32 lastvalue = set._values[lastIndex]; // Move the last value to the index where the value to delete is set._values[toDeleteIndex] = lastvalue; // Update the index for the moved value set._indexes[lastvalue] = valueIndex; // Replace lastvalue's index to valueIndex } // Delete the slot where the moved value was stored set._values.pop(); // Delete the index for the deleted slot delete set._indexes[value]; return true; } else { return false; } } /** * @dev Returns true if the value is in the set. O(1). */ function _contains(Set storage set, bytes32 value) private view returns (bool) { return set._indexes[value] != 0; } /** * @dev Returns the number of values on the set. O(1). */ function _length(Set storage set) private view returns (uint256) { return set._values.length; } /** * @dev Returns the value stored at position `index` in the set. O(1). * * Note that there are no guarantees on the ordering of values inside the * array, and it may change when more values are added or removed. * * Requirements: * * - `index` must be strictly less than {length}. */ function _at(Set storage set, uint256 index) private view returns (bytes32) { return set._values[index]; } /** * @dev Return the entire set in an array * * WARNING: This operation will copy the entire storage to memory, which can be quite expensive. This is designed * to mostly be used by view accessors that are queried without any gas fees. Developers should keep in mind that * this function has an unbounded cost, and using it as part of a state-changing function may render the function * uncallable if the set grows to a point where copying to memory consumes too much gas to fit in a block. */ function _values(Set storage set) private view returns (bytes32[] memory) { return set._values; } // Bytes32Set struct Bytes32Set { Set _inner; } /** * @dev Add a value to a set. O(1). * * Returns true if the value was added to the set, that is if it was not * already present. */ function add(Bytes32Set storage set, bytes32 value) internal returns (bool) { return _add(set._inner, value); } /** * @dev Removes a value from a set. O(1). * * Returns true if the value was removed from the set, that is if it was * present. */ function remove(Bytes32Set storage set, bytes32 value) internal returns (bool) { return _remove(set._inner, value); } /** * @dev Returns true if the value is in the set. O(1). */ function contains(Bytes32Set storage set, bytes32 value) internal view returns (bool) { return _contains(set._inner, value); } /** * @dev Returns the number of values in the set. O(1). */ function length(Bytes32Set storage set) internal view returns (uint256) { return _length(set._inner); } /** * @dev Returns the value stored at position `index` in the set. O(1). * * Note that there are no guarantees on the ordering of values inside the * array, and it may change when more values are added or removed. * * Requirements: * * - `index` must be strictly less than {length}. */ function at(Bytes32Set storage set, uint256 index) internal view returns (bytes32) { return _at(set._inner, index); } /** * @dev Return the entire set in an array * * WARNING: This operation will copy the entire storage to memory, which can be quite expensive. This is designed * to mostly be used by view accessors that are queried without any gas fees. Developers should keep in mind that * this function has an unbounded cost, and using it as part of a state-changing function may render the function * uncallable if the set grows to a point where copying to memory consumes too much gas to fit in a block. */ function values(Bytes32Set storage set) internal view returns (bytes32[] memory) { return _values(set._inner); } // AddressSet struct AddressSet { Set _inner; } /** * @dev Add a value to a set. O(1). * * Returns true if the value was added to the set, that is if it was not * already present. */ function add(AddressSet storage set, address value) internal returns (bool) { return _add(set._inner, bytes32(uint256(uint160(value)))); } /** * @dev Removes a value from a set. O(1). * * Returns true if the value was removed from the set, that is if it was * present. */ function remove(AddressSet storage set, address value) internal returns (bool) { return _remove(set._inner, bytes32(uint256(uint160(value)))); } /** * @dev Returns true if the value is in the set. O(1). */ function contains(AddressSet storage set, address value) internal view returns (bool) { return _contains(set._inner, bytes32(uint256(uint160(value)))); } /** * @dev Returns the number of values in the set. O(1). */ function length(AddressSet storage set) internal view returns (uint256) { return _length(set._inner); } /** * @dev Returns the value stored at position `index` in the set. O(1). * * Note that there are no guarantees on the ordering of values inside the * array, and it may change when more values are added or removed. * * Requirements: * * - `index` must be strictly less than {length}. */ function at(AddressSet storage set, uint256 index) internal view returns (address) { return address(uint160(uint256(_at(set._inner, index)))); } /** * @dev Return the entire set in an array * * WARNING: This operation will copy the entire storage to memory, which can be quite expensive. This is designed * to mostly be used by view accessors that are queried without any gas fees. Developers should keep in mind that * this function has an unbounded cost, and using it as part of a state-changing function may render the function * uncallable if the set grows to a point where copying to memory consumes too much gas to fit in a block. */ function values(AddressSet storage set) internal view returns (address[] memory) { bytes32[] memory store = _values(set._inner); address[] memory result; assembly { result := store } return result; } // UintSet struct UintSet { Set _inner; } /** * @dev Add a value to a set. O(1). * * Returns true if the value was added to the set, that is if it was not * already present. */ function add(UintSet storage set, uint256 value) internal returns (bool) { return _add(set._inner, bytes32(value)); } /** * @dev Removes a value from a set. O(1). * * Returns true if the value was removed from the set, that is if it was * present. */ function remove(UintSet storage set, uint256 value) internal returns (bool) { return _remove(set._inner, bytes32(value)); } /** * @dev Returns true if the value is in the set. O(1). */ function contains(UintSet storage set, uint256 value) internal view returns (bool) { return _contains(set._inner, bytes32(value)); } /** * @dev Returns the number of values on the set. O(1). */ function length(UintSet storage set) internal view returns (uint256) { return _length(set._inner); } /** * @dev Returns the value stored at position `index` in the set. O(1). * * Note that there are no guarantees on the ordering of values inside the * array, and it may change when more values are added or removed. * * Requirements: * * - `index` must be strictly less than {length}. */ function at(UintSet storage set, uint256 index) internal view returns (uint256) { return uint256(_at(set._inner, index)); } /** * @dev Return the entire set in an array * * WARNING: This operation will copy the entire storage to memory, which can be quite expensive. This is designed * to mostly be used by view accessors that are queried without any gas fees. Developers should keep in mind that * this function has an unbounded cost, and using it as part of a state-changing function may render the function * uncallable if the set grows to a point where copying to memory consumes too much gas to fit in a block. */ function values(UintSet storage set) internal view returns (uint256[] memory) { bytes32[] memory store = _values(set._inner); uint256[] memory result; assembly { result := store } return result; } }
// SPDX-License-Identifier: MIT // ERC721A Contracts v4.2.3 // Creator: Chiru Labs pragma solidity ^0.8.4; /** * @dev Interface of ERC721A. */ interface IERC721A { /** * The caller must own the token or be an approved operator. */ error ApprovalCallerNotOwnerNorApproved(); /** * The token does not exist. */ error ApprovalQueryForNonexistentToken(); /** * Cannot query the balance for the zero address. */ error BalanceQueryForZeroAddress(); /** * Cannot mint to the zero address. */ error MintToZeroAddress(); /** * The quantity of tokens minted must be more than zero. */ error MintZeroQuantity(); /** * The token does not exist. */ error OwnerQueryForNonexistentToken(); /** * The caller must own the token or be an approved operator. */ error TransferCallerNotOwnerNorApproved(); /** * The token must be owned by `from`. */ error TransferFromIncorrectOwner(); /** * Cannot safely transfer to a contract that does not implement the * ERC721Receiver interface. */ error TransferToNonERC721ReceiverImplementer(); /** * Cannot transfer to the zero address. */ error TransferToZeroAddress(); /** * The token does not exist. */ error URIQueryForNonexistentToken(); /** * The `quantity` minted with ERC2309 exceeds the safety limit. */ error MintERC2309QuantityExceedsLimit(); /** * The `extraData` cannot be set on an unintialized ownership slot. */ error OwnershipNotInitializedForExtraData(); // ============================================================= // STRUCTS // ============================================================= struct TokenOwnership { // The address of the owner. address addr; // Stores the start time of ownership with minimal overhead for tokenomics. uint64 startTimestamp; // Whether the token has been burned. bool burned; // Arbitrary data similar to `startTimestamp` that can be set via {_extraData}. uint24 extraData; } // ============================================================= // TOKEN COUNTERS // ============================================================= /** * @dev Returns the total number of tokens in existence. * Burned tokens will reduce the count. * To get the total number of tokens minted, please see {_totalMinted}. */ function totalSupply() external view returns (uint256); // ============================================================= // IERC165 // ============================================================= /** * @dev Returns true if this contract implements the interface defined by * `interfaceId`. See the corresponding * [EIP section](https://eips.ethereum.org/EIPS/eip-165#how-interfaces-are-identified) * to learn more about how these ids are created. * * This function call must use less than 30000 gas. */ function supportsInterface(bytes4 interfaceId) external view returns (bool); // ============================================================= // IERC721 // ============================================================= /** * @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`, * 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 be 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, bytes calldata data ) external payable; /** * @dev Equivalent to `safeTransferFrom(from, to, tokenId, '')`. */ function safeTransferFrom( address from, address to, uint256 tokenId ) external payable; /** * @dev Transfers `tokenId` 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 payable; /** * @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 payable; /** * @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); // ============================================================= // IERC721Metadata // ============================================================= /** * @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); // ============================================================= // IERC2309 // ============================================================= /** * @dev Emitted when tokens in `fromTokenId` to `toTokenId` * (inclusive) is transferred from `from` to `to`, as defined in the * [ERC2309](https://eips.ethereum.org/EIPS/eip-2309) standard. * * See {_mintERC2309} for more details. */ event ConsecutiveTransfer(uint256 indexed fromTokenId, uint256 toTokenId, address indexed from, address indexed to); }
// SPDX-License-Identifier: MIT 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 pragma solidity ^0.8.0; /** * @dev String operations. */ library Strings { bytes16 private constant _HEX_SYMBOLS = "0123456789abcdef"; /** * @dev Converts a `uint256` to its ASCII `string` decimal representation. */ function toString(uint256 value) internal pure returns (string memory) { // Inspired by OraclizeAPI's implementation - MIT licence // https://github.com/oraclize/ethereum-api/blob/b42146b063c7d6ee1358846c198246239e9360e8/oraclizeAPI_0.4.25.sol if (value == 0) { return "0"; } uint256 temp = value; uint256 digits; while (temp != 0) { digits++; temp /= 10; } bytes memory buffer = new bytes(digits); while (value != 0) { digits -= 1; buffer[digits] = bytes1(uint8(48 + uint256(value % 10))); value /= 10; } return string(buffer); } /** * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation. */ function toHexString(uint256 value) internal pure returns (string memory) { if (value == 0) { return "0x00"; } uint256 temp = value; uint256 length = 0; while (temp != 0) { length++; temp >>= 8; } return toHexString(value, length); } /** * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation with fixed length. */ function toHexString(uint256 value, uint256 length) internal pure returns (string memory) { bytes memory buffer = new bytes(2 * length + 2); buffer[0] = "0"; buffer[1] = "x"; for (uint256 i = 2 * length + 1; i > 1; --i) { buffer[i] = _HEX_SYMBOLS[value & 0xf]; value >>= 4; } require(value == 0, "Strings: hex length insufficient"); return string(buffer); } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import "./IERC165.sol"; /** * @dev Implementation of the {IERC165} interface. * * Contracts that want to implement ERC165 should inherit from this contract and override {supportsInterface} to check * for the additional interface id that will be supported. For example: * * ```solidity * function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) { * return interfaceId == type(MyInterface).interfaceId || super.supportsInterface(interfaceId); * } * ``` * * Alternatively, {ERC165Storage} provides an easier to use but more expensive implementation. */ abstract contract ERC165 is IERC165 { /** * @dev See {IERC165-supportsInterface}. */ function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) { return interfaceId == type(IERC165).interfaceId; } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; /** * @dev Interface of the ERC165 standard, as defined in the * https://eips.ethereum.org/EIPS/eip-165[EIP]. * * Implementers can declare support of contract interfaces, which can then be * queried by others ({ERC165Checker}). * * For an implementation, see {ERC165}. */ interface IERC165 { /** * @dev Returns true if this contract implements the interface defined by * `interfaceId`. See the corresponding * https://eips.ethereum.org/EIPS/eip-165#how-interfaces-are-identified[EIP section] * to learn more about how these ids are created. * * This function call must use less than 30 000 gas. */ function supportsInterface(bytes4 interfaceId) external view returns (bool); }
{ "optimizer": { "enabled": false, "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":"string","name":"_uri","type":"string"},{"internalType":"address","name":"proxyAddress","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"inputs":[],"name":"ApprovalCallerNotOwnerNorApproved","type":"error"},{"inputs":[],"name":"ApprovalQueryForNonexistentToken","type":"error"},{"inputs":[],"name":"BalanceQueryForZeroAddress","type":"error"},{"inputs":[],"name":"MintERC2309QuantityExceedsLimit","type":"error"},{"inputs":[],"name":"MintToZeroAddress","type":"error"},{"inputs":[],"name":"MintZeroQuantity","type":"error"},{"inputs":[],"name":"OwnerQueryForNonexistentToken","type":"error"},{"inputs":[],"name":"OwnershipNotInitializedForExtraData","type":"error"},{"inputs":[],"name":"TransferCallerNotOwnerNorApproved","type":"error"},{"inputs":[],"name":"TransferFromIncorrectOwner","type":"error"},{"inputs":[],"name":"TransferToNonERC721ReceiverImplementer","type":"error"},{"inputs":[],"name":"TransferToZeroAddress","type":"error"},{"inputs":[],"name":"URIQueryForNonexistentToken","type":"error"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"approved","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":false,"internalType":"bool","name":"approved","type":"bool"}],"name":"ApprovalForAll","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"uint256","name":"fromTokenId","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"toTokenId","type":"uint256"},{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"}],"name":"ConsecutiveTransfer","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"user","type":"address"},{"indexed":false,"internalType":"uint256","name":"tokenId","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"Create","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":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":"ADMIN_ROLE","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"DEFAULT_ADMIN_ROLE","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"MINTER_ROLE","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"PAUSER_ROLE","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"approve","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"},{"internalType":"bytes","name":"data","type":"bytes"}],"name":"create","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"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":"bytes32","name":"role","type":"bytes32"},{"internalType":"uint256","name":"index","type":"uint256"}],"name":"getRoleMember","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"}],"name":"getRoleMemberCount","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"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":[{"internalType":"uint256","name":"quantity","type":"uint256"}],"name":"mint","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"ownerOf","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"},{"internalType":"address","name":"account","type":"address"}],"name":"renounceRole","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"},{"internalType":"address","name":"account","type":"address"}],"name":"revokeRole","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"payable","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":"payable","type":"function"},{"inputs":[{"internalType":"address","name":"operator","type":"address"},{"internalType":"bool","name":"approved","type":"bool"}],"name":"setApprovalForAll","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"minterAddress","type":"address"}],"name":"setMinterRole","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"newuri","type":"string"}],"name":"setURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes4","name":"interfaceId","type":"bytes4"}],"name":"supportsInterface","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"tokenURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"transferFrom","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"}]
Contract Creation Code
60806040523480156200001157600080fd5b506040516200475438038062004754833981810160405281019062000037919062000811565b6040518060400160405280601781526020017f5265616c696f204e465420436f6c6c65637469626c65730000000000000000008152506040518060400160405280600981526020017f5265616c696f4e465400000000000000000000000000000000000000000000008152508160039081620000b4919062000ac2565b508060049081620000c6919062000ac2565b50620000d76200021c60201b60201c565b6001819055505050620000ff620000f36200022560201b60201c565b6200022d60201b60201c565b620001407fa49807205ce4d355092ef5a8a18f56e8913cf4a201fbe287825b095693c21775620001346200022560201b60201c565b620002f360201b60201c565b620001817f9f2df0fed2c77648de5860a4cc508cd0818c85b8b8a1ab4ceeef8d981c8956a6620001756200022560201b60201c565b620002f360201b60201c565b620001c27f65d7a28e3265b37a6474929f336521b332c1681b933f6cb9f3376673440d862a620001b66200022560201b60201c565b620002f360201b60201c565b620001d3826200033b60201b60201c565b80600b60006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550505062000c52565b60006001905090565b600033905090565b6000600960009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905081600960006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b6200030a8282620003d360201b620018421760201c565b6200033681600a6000858152602001908152602001600020620003e960201b620018501790919060201c565b505050565b6200037c7fa49807205ce4d355092ef5a8a18f56e8913cf4a201fbe287825b095693c21775620003706200022560201b60201c565b6200042160201b60201c565b620003be576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401620003b59062000c30565b60405180910390fd5b80600c9081620003cf919062000ac2565b5050565b620003e582826200048b60201b60201c565b5050565b600062000419836000018373ffffffffffffffffffffffffffffffffffffffff1660001b6200057c60201b60201c565b905092915050565b600080600084815260200190815260200160002060000160008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16905092915050565b6200049d82826200042160201b60201c565b6200057857600160008084815260200190815260200160002060000160008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055506200051d6200022560201b60201c565b73ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16837f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d60405160405180910390a45b5050565b6000620005908383620005f660201b60201c565b620005eb578260000182908060018154018082558091505060019003906000526020600020016000909190919091505582600001805490508360010160008481526020019081526020016000208190555060019050620005f0565b600090505b92915050565b600080836001016000848152602001908152602001600020541415905092915050565b6000604051905090565b600080fd5b600080fd5b600080fd5b600080fd5b6000601f19601f8301169050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b620006828262000637565b810181811067ffffffffffffffff82111715620006a457620006a362000648565b5b80604052505050565b6000620006b962000619565b9050620006c7828262000677565b919050565b600067ffffffffffffffff821115620006ea57620006e962000648565b5b620006f58262000637565b9050602081019050919050565b60005b838110156200072257808201518184015260208101905062000705565b60008484015250505050565b6000620007456200073f84620006cc565b620006ad565b90508281526020810184848401111562000764576200076362000632565b5b6200077184828562000702565b509392505050565b600082601f8301126200079157620007906200062d565b5b8151620007a38482602086016200072e565b91505092915050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000620007d982620007ac565b9050919050565b620007eb81620007cc565b8114620007f757600080fd5b50565b6000815190506200080b81620007e0565b92915050565b600080604083850312156200082b576200082a62000623565b5b600083015167ffffffffffffffff8111156200084c576200084b62000628565b5b6200085a8582860162000779565b92505060206200086d85828601620007fa565b9150509250929050565b600081519050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b60006002820490506001821680620008ca57607f821691505b602082108103620008e057620008df62000882565b5b50919050565b60008190508160005260206000209050919050565b60006020601f8301049050919050565b600082821b905092915050565b6000600883026200094a7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff826200090b565b6200095686836200090b565b95508019841693508086168417925050509392505050565b6000819050919050565b6000819050919050565b6000620009a36200099d62000997846200096e565b62000978565b6200096e565b9050919050565b6000819050919050565b620009bf8362000982565b620009d7620009ce82620009aa565b84845462000918565b825550505050565b600090565b620009ee620009df565b620009fb818484620009b4565b505050565b5b8181101562000a235762000a17600082620009e4565b60018101905062000a01565b5050565b601f82111562000a725762000a3c81620008e6565b62000a4784620008fb565b8101602085101562000a57578190505b62000a6f62000a6685620008fb565b83018262000a00565b50505b505050565b600082821c905092915050565b600062000a976000198460080262000a77565b1980831691505092915050565b600062000ab2838362000a84565b9150826002028217905092915050565b62000acd8262000877565b67ffffffffffffffff81111562000ae95762000ae862000648565b5b62000af58254620008b1565b62000b0282828562000a27565b600060209050601f83116001811462000b3a576000841562000b25578287015190505b62000b31858262000aa4565b86555062000ba1565b601f19841662000b4a86620008e6565b60005b8281101562000b745784890151825560018201915060208501945060208101905062000b4d565b8683101562000b94578489015162000b90601f89168262000a84565b8355505b6001600288020188555050505b505050505050565b600082825260208201905092915050565b7f5265616c696f4e4654466163746f72793a206d75737420686176652061646d6960008201527f6e20726f6c6520746f2073657420746865207572690000000000000000000000602082015250565b600062000c1860358362000ba9565b915062000c258262000bba565b604082019050919050565b6000602082019050818103600083015262000c4b8162000c09565b9050919050565b613af28062000c626000396000f3fe6080604052600436106101e35760003560e01c80638da5cb5b11610102578063b88d4fde11610095578063d547741f11610064578063d547741f146106e7578063e63ab1e914610710578063e985e9c51461073b578063f2fde38b14610778576101e3565b8063b88d4fde14610626578063c87b56dd14610642578063ca15c8731461067f578063d5391393146106bc576101e3565b806395d89b41116100d157806395d89b411461058b578063a0712d68146105b6578063a217fddf146105d2578063a22cb465146105fd576101e3565b80638da5cb5b146104bd5780639010d07c146104e857806391d1485414610525578063945d122914610562576101e3565b80632f2ff15d1161017a578063696c9c0a11610149578063696c9c0a1461040157806370a082311461043e578063715018a61461047b57806375b238fc14610492576101e3565b80632f2ff15d1461035657806336568abe1461037f57806342842e0e146103a85780636352211e146103c4576101e3565b8063095ea7b3116101b6578063095ea7b3146102b657806318160ddd146102d257806323b872dd146102fd578063248a9ca314610319576101e3565b806301ffc9a7146101e857806302fe53051461022557806306fdde031461024e578063081812fc14610279575b600080fd5b3480156101f457600080fd5b5061020f600480360381019061020a9190612861565b6107a1565b60405161021c91906128a9565b60405180910390f35b34801561023157600080fd5b5061024c60048036038101906102479190612a0a565b610833565b005b34801561025a57600080fd5b506102636108b6565b6040516102709190612ad2565b60405180910390f35b34801561028557600080fd5b506102a0600480360381019061029b9190612b2a565b610948565b6040516102ad9190612b98565b60405180910390f35b6102d060048036038101906102cb9190612bdf565b6109c7565b005b3480156102de57600080fd5b506102e7610b0b565b6040516102f49190612c2e565b60405180910390f35b61031760048036038101906103129190612c49565b610b1a565b005b34801561032557600080fd5b50610340600480360381019061033b9190612cd2565b610e3c565b60405161034d9190612d0e565b60405180910390f35b34801561036257600080fd5b5061037d60048036038101906103789190612d29565b610e5b565b005b34801561038b57600080fd5b506103a660048036038101906103a19190612d29565b610e8f565b005b6103c260048036038101906103bd9190612c49565b610ec3565b005b3480156103d057600080fd5b506103eb60048036038101906103e69190612b2a565b610ee3565b6040516103f89190612b98565b60405180910390f35b34801561040d57600080fd5b5061042860048036038101906104239190612e0a565b610ef5565b6040516104359190612c2e565b60405180910390f35b34801561044a57600080fd5b5061046560048036038101906104609190612e79565b610fc3565b6040516104729190612c2e565b60405180910390f35b34801561048757600080fd5b5061049061107b565b005b34801561049e57600080fd5b506104a7611103565b6040516104b49190612d0e565b60405180910390f35b3480156104c957600080fd5b506104d2611127565b6040516104df9190612b98565b60405180910390f35b3480156104f457600080fd5b5061050f600480360381019061050a9190612ea6565b611151565b60405161051c9190612b98565b60405180910390f35b34801561053157600080fd5b5061054c60048036038101906105479190612d29565b611180565b60405161055991906128a9565b60405180910390f35b34801561056e57600080fd5b5061058960048036038101906105849190612e79565b6111ea565b005b34801561059757600080fd5b506105a0611287565b6040516105ad9190612ad2565b60405180910390f35b6105d060048036038101906105cb9190612b2a565b611319565b005b3480156105de57600080fd5b506105e7611396565b6040516105f49190612d0e565b60405180910390f35b34801561060957600080fd5b50610624600480360381019061061f9190612f12565b61139d565b005b610640600480360381019061063b9190612f52565b6114a8565b005b34801561064e57600080fd5b5061066960048036038101906106649190612b2a565b61151b565b6040516106769190612ad2565b60405180910390f35b34801561068b57600080fd5b506106a660048036038101906106a19190612cd2565b6115b9565b6040516106b39190612c2e565b60405180910390f35b3480156106c857600080fd5b506106d16115dd565b6040516106de9190612d0e565b60405180910390f35b3480156106f357600080fd5b5061070e60048036038101906107099190612d29565b611601565b005b34801561071c57600080fd5b50610725611635565b6040516107329190612d0e565b60405180910390f35b34801561074757600080fd5b50610762600480360381019061075d9190612fd5565b611659565b60405161076f91906128a9565b60405180910390f35b34801561078457600080fd5b5061079f600480360381019061079a9190612e79565b61174b565b005b60006301ffc9a760e01b827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614806107fc57506380ac58cd60e01b827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b8061082c5750635b5e139f60e01b827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b9050919050565b6108647fa49807205ce4d355092ef5a8a18f56e8913cf4a201fbe287825b095693c2177561085f611880565b611180565b6108a3576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161089a90613087565b60405180910390fd5b80600c90816108b291906132b3565b5050565b6060600380546108c5906130d6565b80601f01602080910402602001604051908101604052809291908181526020018280546108f1906130d6565b801561093e5780601f106109135761010080835404028352916020019161093e565b820191906000526020600020905b81548152906001019060200180831161092157829003601f168201915b5050505050905090565b600061095382611888565b610989576040517fcf4700e400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6007600083815260200190815260200160002060000160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050919050565b60006109d282610ee3565b90508073ffffffffffffffffffffffffffffffffffffffff166109f36118e7565b73ffffffffffffffffffffffffffffffffffffffff1614610a5657610a1f81610a1a6118e7565b611659565b610a55576040517fcfb3b94200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5b826007600084815260200190815260200160002060000160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550818373ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a4505050565b6000610b156118ef565b905090565b6000610b2582611906565b90508373ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1614610b8c576040517fa114810000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600080610b98846119d2565b91509150610bae8187610ba96118e7565b6119f9565b610bfa57610bc386610bbe6118e7565b611659565b610bf9576040517f59c896be00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5b600073ffffffffffffffffffffffffffffffffffffffff168573ffffffffffffffffffffffffffffffffffffffff1603610c60576040517fea553b3400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b610c6d8686866001611a3d565b8015610c7857600082555b600660008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600081546001900391905081905550600660008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000815460010191905081905550610d4685610d22888887611a43565b7c020000000000000000000000000000000000000000000000000000000017611a6b565b600560008681526020019081526020016000208190555060007c0200000000000000000000000000000000000000000000000000000000841603610dcc5760006001850190506000600560008381526020019081526020016000205403610dca576001548114610dc9578360056000838152602001908152602001600020819055505b5b505b838573ffffffffffffffffffffffffffffffffffffffff168773ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a4610e348686866001611a96565b505050505050565b6000806000838152602001908152602001600020600101549050919050565b610e658282611a9c565b610e8a81600a600085815260200190815260200160002061185090919063ffffffff16565b505050565b610e998282611ac5565b610ebe81600a6000858152602001908152602001600020611b4890919063ffffffff16565b505050565b610ede838383604051806020016040528060008152506114a8565b505050565b6000610eee82611906565b9050919050565b6000610f287f9f2df0fed2c77648de5860a4cc508cd0818c85b8b8a1ab4ceeef8d981c8956a6610f23611880565b611180565b610f67576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610f5e906133f7565b60405180910390fd5b6000610f71611b78565b9050610f7d8585611b82565b7f278b0fd0170e87df8d6e9c94b47d3ff7382de693c547e6089b53f9972c532389858286604051610fb093929190613417565b60405180910390a1809150509392505050565b60008073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff160361102a576040517f8f4eb60400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b67ffffffffffffffff600660008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054169050919050565b611083611880565b73ffffffffffffffffffffffffffffffffffffffff166110a1611127565b73ffffffffffffffffffffffffffffffffffffffff16146110f7576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016110ee9061349a565b60405180910390fd5b6111016000611d3e565b565b7fa49807205ce4d355092ef5a8a18f56e8913cf4a201fbe287825b095693c2177581565b6000600960009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b600061117882600a6000868152602001908152602001600020611e0490919063ffffffff16565b905092915050565b600080600084815260200190815260200160002060000160008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16905092915050565b61121b7fa49807205ce4d355092ef5a8a18f56e8913cf4a201fbe287825b095693c21775611216611880565b611180565b61125a576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016112519061352c565b60405180910390fd5b6112847f9f2df0fed2c77648de5860a4cc508cd0818c85b8b8a1ab4ceeef8d981c8956a682611e1e565b50565b606060048054611296906130d6565b80601f01602080910402602001604051908101604052809291908181526020018280546112c2906130d6565b801561130f5780601f106112e45761010080835404028352916020019161130f565b820191906000526020600020905b8154815290600101906020018083116112f257829003601f168201915b5050505050905090565b61134a7f9f2df0fed2c77648de5860a4cc508cd0818c85b8b8a1ab4ceeef8d981c8956a6611345611880565b611180565b611389576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611380906133f7565b60405180910390fd5b6113933382611b82565b50565b6000801b81565b80600860006113aa6118e7565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055508173ffffffffffffffffffffffffffffffffffffffff166114576118e7565b73ffffffffffffffffffffffffffffffffffffffff167f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c318360405161149c91906128a9565b60405180910390a35050565b6114b3848484610b1a565b60008373ffffffffffffffffffffffffffffffffffffffff163b14611515576114de84848484611e52565b611514576040517fd1a57ed600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5b50505050565b606061152682611888565b61155c576040517fa14c4b5000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6000611566611fa2565b9050600081510361158657604051806020016040528060008152506115b1565b8061159084612034565b6040516020016115a1929190613588565b6040516020818303038152906040525b915050919050565b60006115d6600a6000848152602001908152602001600020612084565b9050919050565b7f9f2df0fed2c77648de5860a4cc508cd0818c85b8b8a1ab4ceeef8d981c8956a681565b61160b8282612099565b61163081600a6000858152602001908152602001600020611b4890919063ffffffff16565b505050565b7f65d7a28e3265b37a6474929f336521b332c1681b933f6cb9f3376673440d862a81565b600080600b60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1690508273ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1663c4552791866040518263ffffffff1660e01b81526004016116d19190612b98565b602060405180830381865afa1580156116ee573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061171291906135ea565b73ffffffffffffffffffffffffffffffffffffffff1603611737576001915050611745565b61174184846120c2565b9150505b92915050565b611753611880565b73ffffffffffffffffffffffffffffffffffffffff16611771611127565b73ffffffffffffffffffffffffffffffffffffffff16146117c7576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016117be9061349a565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1603611836576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161182d90613689565b60405180910390fd5b61183f81611d3e565b50565b61184c8282612156565b5050565b6000611878836000018373ffffffffffffffffffffffffffffffffffffffff1660001b612236565b905092915050565b600033905090565b6000816118936122a6565b111580156118a2575060015482105b80156118e0575060007c0100000000000000000000000000000000000000000000000000000000600560008581526020019081526020016000205416145b9050919050565b600033905090565b60006118f96122a6565b6002546001540303905090565b600080829050806119156122a6565b1161199b5760015481101561199a5760006005600083815260200190815260200160002054905060007c0100000000000000000000000000000000000000000000000000000000821603611998575b6000810361198e576005600083600190039350838152602001908152602001600020549050611964565b80925050506119cd565b505b5b6040517fdf2d9b4200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b919050565b60008060006007600085815260200190815260200160002090508092508254915050915091565b600073ffffffffffffffffffffffffffffffffffffffff8316925073ffffffffffffffffffffffffffffffffffffffff821691508382148383141790509392505050565b50505050565b60008060e883901c905060e8611a5a8686846122af565b62ffffff16901b9150509392505050565b600073ffffffffffffffffffffffffffffffffffffffff83169250814260a01b178317905092915050565b50505050565b611aa582610e3c565b611ab681611ab1611880565b6122b8565b611ac08383612156565b505050565b611acd611880565b73ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1614611b3a576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611b319061371b565b60405180910390fd5b611b448282612355565b5050565b6000611b70836000018373ffffffffffffffffffffffffffffffffffffffff1660001b612436565b905092915050565b6000600154905090565b6000600154905060008203611bc3576040517fb562e8dd00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b611bd06000848385611a3d565b600160406001901b178202600660008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008282540192505081905550611c4783611c386000866000611a43565b611c418561254a565b17611a6b565b6005600083815260200190815260200160002081905550600080838301905073ffffffffffffffffffffffffffffffffffffffff85169150828260007fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef600080a4600183015b818114611ce857808360007fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef600080a4600181019050611cad565b5060008203611d23576040517f2e07630000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b806001819055505050611d396000848385611a96565b505050565b6000600960009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905081600960006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b6000611e13836000018361255a565b60001c905092915050565b611e288282611842565b611e4d81600a600085815260200190815260200160002061185090919063ffffffff16565b505050565b60008373ffffffffffffffffffffffffffffffffffffffff1663150b7a02611e786118e7565b8786866040518563ffffffff1660e01b8152600401611e9a9493929190613790565b6020604051808303816000875af1925050508015611ed657506040513d601f19601f82011682018060405250810190611ed391906137f1565b60015b611f4f573d8060008114611f06576040519150601f19603f3d011682016040523d82523d6000602084013e611f0b565b606091505b506000815103611f47576040517fd1a57ed600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b805181602001fd5b63150b7a0260e01b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916817bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614915050949350505050565b6060600c8054611fb1906130d6565b80601f0160208091040260200160405190810160405280929190818152602001828054611fdd906130d6565b801561202a5780601f10611fff5761010080835404028352916020019161202a565b820191906000526020600020905b81548152906001019060200180831161200d57829003601f168201915b5050505050905090565b606060a060405101806040526020810391506000825281835b60011561206f57600184039350600a81066030018453600a810490508061204d575b50828103602084039350808452505050919050565b600061209282600001612585565b9050919050565b6120a282610e3c565b6120b3816120ae611880565b6122b8565b6120bd8383612355565b505050565b6000600860008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16905092915050565b6121608282611180565b61223257600160008084815260200190815260200160002060000160008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055506121d7611880565b73ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16837f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d60405160405180910390a45b5050565b60006122428383612596565b61229b5782600001829080600181540180825580915050600190039060005260206000200160009091909190915055826000018054905083600101600084815260200190815260200160002081905550600190506122a0565b600090505b92915050565b60006001905090565b60009392505050565b6122c28282611180565b612351576122e78173ffffffffffffffffffffffffffffffffffffffff1660146125b9565b6122f58360001c60206125b9565b6040516020016123069291906138b6565b6040516020818303038152906040526040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016123489190612ad2565b60405180910390fd5b5050565b61235f8282611180565b1561243257600080600084815260200190815260200160002060000160008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055506123d7611880565b73ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16837ff6391f5c32d9c69d2a47ea670b442974b53935d1edc7fd64eb21e047a839171b60405160405180910390a45b5050565b6000808360010160008481526020019081526020016000205490506000811461253e576000600182612468919061391f565b9050600060018660000180549050612480919061391f565b90508181146124ef5760008660000182815481106124a1576124a0613953565b5b90600052602060002001549050808760000184815481106124c5576124c4613953565b5b90600052602060002001819055508387600101600083815260200190815260200160002081905550505b8560000180548061250357612502613982565b5b600190038181906000526020600020016000905590558560010160008681526020019081526020016000206000905560019350505050612544565b60009150505b92915050565b60006001821460e11b9050919050565b600082600001828154811061257257612571613953565b5b9060005260206000200154905092915050565b600081600001805490509050919050565b600080836001016000848152602001908152602001600020541415905092915050565b6060600060028360026125cc91906139b1565b6125d691906139f3565b67ffffffffffffffff8111156125ef576125ee6128df565b5b6040519080825280601f01601f1916602001820160405280156126215781602001600182028036833780820191505090505b5090507f30000000000000000000000000000000000000000000000000000000000000008160008151811061265957612658613953565b5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a9053507f7800000000000000000000000000000000000000000000000000000000000000816001815181106126bd576126bc613953565b5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a905350600060018460026126fd91906139b1565b61270791906139f3565b90505b60018111156127a7577f3031323334353637383961626364656600000000000000000000000000000000600f86166010811061274957612748613953565b5b1a60f81b8282815181106127605761275f613953565b5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a905350600485901c9450806127a090613a27565b905061270a565b50600084146127eb576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016127e290613a9c565b60405180910390fd5b8091505092915050565b6000604051905090565b600080fd5b600080fd5b60007fffffffff0000000000000000000000000000000000000000000000000000000082169050919050565b61283e81612809565b811461284957600080fd5b50565b60008135905061285b81612835565b92915050565b600060208284031215612877576128766127ff565b5b60006128858482850161284c565b91505092915050565b60008115159050919050565b6128a38161288e565b82525050565b60006020820190506128be600083018461289a565b92915050565b600080fd5b600080fd5b6000601f19601f8301169050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b612917826128ce565b810181811067ffffffffffffffff82111715612936576129356128df565b5b80604052505050565b60006129496127f5565b9050612955828261290e565b919050565b600067ffffffffffffffff821115612975576129746128df565b5b61297e826128ce565b9050602081019050919050565b82818337600083830152505050565b60006129ad6129a88461295a565b61293f565b9050828152602081018484840111156129c9576129c86128c9565b5b6129d484828561298b565b509392505050565b600082601f8301126129f1576129f06128c4565b5b8135612a0184826020860161299a565b91505092915050565b600060208284031215612a2057612a1f6127ff565b5b600082013567ffffffffffffffff811115612a3e57612a3d612804565b5b612a4a848285016129dc565b91505092915050565b600081519050919050565b600082825260208201905092915050565b60005b83811015612a8d578082015181840152602081019050612a72565b60008484015250505050565b6000612aa482612a53565b612aae8185612a5e565b9350612abe818560208601612a6f565b612ac7816128ce565b840191505092915050565b60006020820190508181036000830152612aec8184612a99565b905092915050565b6000819050919050565b612b0781612af4565b8114612b1257600080fd5b50565b600081359050612b2481612afe565b92915050565b600060208284031215612b4057612b3f6127ff565b5b6000612b4e84828501612b15565b91505092915050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000612b8282612b57565b9050919050565b612b9281612b77565b82525050565b6000602082019050612bad6000830184612b89565b92915050565b612bbc81612b77565b8114612bc757600080fd5b50565b600081359050612bd981612bb3565b92915050565b60008060408385031215612bf657612bf56127ff565b5b6000612c0485828601612bca565b9250506020612c1585828601612b15565b9150509250929050565b612c2881612af4565b82525050565b6000602082019050612c436000830184612c1f565b92915050565b600080600060608486031215612c6257612c616127ff565b5b6000612c7086828701612bca565b9350506020612c8186828701612bca565b9250506040612c9286828701612b15565b9150509250925092565b6000819050919050565b612caf81612c9c565b8114612cba57600080fd5b50565b600081359050612ccc81612ca6565b92915050565b600060208284031215612ce857612ce76127ff565b5b6000612cf684828501612cbd565b91505092915050565b612d0881612c9c565b82525050565b6000602082019050612d236000830184612cff565b92915050565b60008060408385031215612d4057612d3f6127ff565b5b6000612d4e85828601612cbd565b9250506020612d5f85828601612bca565b9150509250929050565b600067ffffffffffffffff821115612d8457612d836128df565b5b612d8d826128ce565b9050602081019050919050565b6000612dad612da884612d69565b61293f565b905082815260208101848484011115612dc957612dc86128c9565b5b612dd484828561298b565b509392505050565b600082601f830112612df157612df06128c4565b5b8135612e01848260208601612d9a565b91505092915050565b600080600060608486031215612e2357612e226127ff565b5b6000612e3186828701612bca565b9350506020612e4286828701612b15565b925050604084013567ffffffffffffffff811115612e6357612e62612804565b5b612e6f86828701612ddc565b9150509250925092565b600060208284031215612e8f57612e8e6127ff565b5b6000612e9d84828501612bca565b91505092915050565b60008060408385031215612ebd57612ebc6127ff565b5b6000612ecb85828601612cbd565b9250506020612edc85828601612b15565b9150509250929050565b612eef8161288e565b8114612efa57600080fd5b50565b600081359050612f0c81612ee6565b92915050565b60008060408385031215612f2957612f286127ff565b5b6000612f3785828601612bca565b9250506020612f4885828601612efd565b9150509250929050565b60008060008060808587031215612f6c57612f6b6127ff565b5b6000612f7a87828801612bca565b9450506020612f8b87828801612bca565b9350506040612f9c87828801612b15565b925050606085013567ffffffffffffffff811115612fbd57612fbc612804565b5b612fc987828801612ddc565b91505092959194509250565b60008060408385031215612fec57612feb6127ff565b5b6000612ffa85828601612bca565b925050602061300b85828601612bca565b9150509250929050565b7f5265616c696f4e4654466163746f72793a206d75737420686176652061646d6960008201527f6e20726f6c6520746f2073657420746865207572690000000000000000000000602082015250565b6000613071603583612a5e565b915061307c82613015565b604082019050919050565b600060208201905081810360008301526130a081613064565b9050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b600060028204905060018216806130ee57607f821691505b602082108103613101576131006130a7565b5b50919050565b60008190508160005260206000209050919050565b60006020601f8301049050919050565b600082821b905092915050565b6000600883026131697fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff8261312c565b613173868361312c565b95508019841693508086168417925050509392505050565b6000819050919050565b60006131b06131ab6131a684612af4565b61318b565b612af4565b9050919050565b6000819050919050565b6131ca83613195565b6131de6131d6826131b7565b848454613139565b825550505050565b600090565b6131f36131e6565b6131fe8184846131c1565b505050565b5b81811015613222576132176000826131eb565b600181019050613204565b5050565b601f8211156132675761323881613107565b6132418461311c565b81016020851015613250578190505b61326461325c8561311c565b830182613203565b50505b505050565b600082821c905092915050565b600061328a6000198460080261326c565b1980831691505092915050565b60006132a38383613279565b9150826002028217905092915050565b6132bc82612a53565b67ffffffffffffffff8111156132d5576132d46128df565b5b6132df82546130d6565b6132ea828285613226565b600060209050601f83116001811461331d576000841561330b578287015190505b6133158582613297565b86555061337d565b601f19841661332b86613107565b60005b828110156133535784890151825560018201915060208501945060208101905061332e565b86831015613370578489015161336c601f891682613279565b8355505b6001600288020188555050505b505050505050565b7f5265616c696f4e4654466163746f72793a206d7573742068617665206d696e7460008201527f657220726f6c6520746f20637265617465000000000000000000000000000000602082015250565b60006133e1603183612a5e565b91506133ec82613385565b604082019050919050565b60006020820190508181036000830152613410816133d4565b9050919050565b600060608201905061342c6000830186612b89565b6134396020830185612c1f565b6134466040830184612c1f565b949350505050565b7f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572600082015250565b6000613484602083612a5e565b915061348f8261344e565b602082019050919050565b600060208201905081810360008301526134b381613477565b9050919050565b7f5265616c696f4e4654466163746f72793a206d75737420686176652061646d6960008201527f6e20726f6c6520746f20736574206d696e746572000000000000000000000000602082015250565b6000613516603483612a5e565b9150613521826134ba565b604082019050919050565b6000602082019050818103600083015261354581613509565b9050919050565b600081905092915050565b600061356282612a53565b61356c818561354c565b935061357c818560208601612a6f565b80840191505092915050565b60006135948285613557565b91506135a08284613557565b91508190509392505050565b60006135b782612b77565b9050919050565b6135c7816135ac565b81146135d257600080fd5b50565b6000815190506135e4816135be565b92915050565b600060208284031215613600576135ff6127ff565b5b600061360e848285016135d5565b91505092915050565b7f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160008201527f6464726573730000000000000000000000000000000000000000000000000000602082015250565b6000613673602683612a5e565b915061367e82613617565b604082019050919050565b600060208201905081810360008301526136a281613666565b9050919050565b7f416363657373436f6e74726f6c3a2063616e206f6e6c792072656e6f756e636560008201527f20726f6c657320666f722073656c660000000000000000000000000000000000602082015250565b6000613705602f83612a5e565b9150613710826136a9565b604082019050919050565b60006020820190508181036000830152613734816136f8565b9050919050565b600081519050919050565b600082825260208201905092915050565b60006137628261373b565b61376c8185613746565b935061377c818560208601612a6f565b613785816128ce565b840191505092915050565b60006080820190506137a56000830187612b89565b6137b26020830186612b89565b6137bf6040830185612c1f565b81810360608301526137d18184613757565b905095945050505050565b6000815190506137eb81612835565b92915050565b600060208284031215613807576138066127ff565b5b6000613815848285016137dc565b91505092915050565b7f416363657373436f6e74726f6c3a206163636f756e7420000000000000000000600082015250565b600061385460178361354c565b915061385f8261381e565b601782019050919050565b7f206973206d697373696e6720726f6c6520000000000000000000000000000000600082015250565b60006138a060118361354c565b91506138ab8261386a565b601182019050919050565b60006138c182613847565b91506138cd8285613557565b91506138d882613893565b91506138e48284613557565b91508190509392505050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b600061392a82612af4565b915061393583612af4565b925082820390508181111561394d5761394c6138f0565b5b92915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603160045260246000fd5b60006139bc82612af4565b91506139c783612af4565b92508282026139d581612af4565b915082820484148315176139ec576139eb6138f0565b5b5092915050565b60006139fe82612af4565b9150613a0983612af4565b9250828201905080821115613a2157613a206138f0565b5b92915050565b6000613a3282612af4565b915060008203613a4557613a446138f0565b5b600182039050919050565b7f537472696e67733a20686578206c656e67746820696e73756666696369656e74600082015250565b6000613a86602083612a5e565b9150613a9182613a50565b602082019050919050565b60006020820190508181036000830152613ab581613a79565b905091905056fea26469706673582212205994c09b1b454dacf5ad5918bbba5b1c82aa72f3817fbf8eac579d558b9b44a364736f6c634300081100330000000000000000000000000000000000000000000000000000000000000040000000000000000000000000a5409ec958c83c3f309868babaca7c86dcb077c1000000000000000000000000000000000000000000000000000000000000003568747470733a2f2f63646e2e7265616c696f2e66756e642f7265616c696f2f70726f642f67656e657369732f6d657461646174612f0000000000000000000000
Deployed Bytecode
0x6080604052600436106101e35760003560e01c80638da5cb5b11610102578063b88d4fde11610095578063d547741f11610064578063d547741f146106e7578063e63ab1e914610710578063e985e9c51461073b578063f2fde38b14610778576101e3565b8063b88d4fde14610626578063c87b56dd14610642578063ca15c8731461067f578063d5391393146106bc576101e3565b806395d89b41116100d157806395d89b411461058b578063a0712d68146105b6578063a217fddf146105d2578063a22cb465146105fd576101e3565b80638da5cb5b146104bd5780639010d07c146104e857806391d1485414610525578063945d122914610562576101e3565b80632f2ff15d1161017a578063696c9c0a11610149578063696c9c0a1461040157806370a082311461043e578063715018a61461047b57806375b238fc14610492576101e3565b80632f2ff15d1461035657806336568abe1461037f57806342842e0e146103a85780636352211e146103c4576101e3565b8063095ea7b3116101b6578063095ea7b3146102b657806318160ddd146102d257806323b872dd146102fd578063248a9ca314610319576101e3565b806301ffc9a7146101e857806302fe53051461022557806306fdde031461024e578063081812fc14610279575b600080fd5b3480156101f457600080fd5b5061020f600480360381019061020a9190612861565b6107a1565b60405161021c91906128a9565b60405180910390f35b34801561023157600080fd5b5061024c60048036038101906102479190612a0a565b610833565b005b34801561025a57600080fd5b506102636108b6565b6040516102709190612ad2565b60405180910390f35b34801561028557600080fd5b506102a0600480360381019061029b9190612b2a565b610948565b6040516102ad9190612b98565b60405180910390f35b6102d060048036038101906102cb9190612bdf565b6109c7565b005b3480156102de57600080fd5b506102e7610b0b565b6040516102f49190612c2e565b60405180910390f35b61031760048036038101906103129190612c49565b610b1a565b005b34801561032557600080fd5b50610340600480360381019061033b9190612cd2565b610e3c565b60405161034d9190612d0e565b60405180910390f35b34801561036257600080fd5b5061037d60048036038101906103789190612d29565b610e5b565b005b34801561038b57600080fd5b506103a660048036038101906103a19190612d29565b610e8f565b005b6103c260048036038101906103bd9190612c49565b610ec3565b005b3480156103d057600080fd5b506103eb60048036038101906103e69190612b2a565b610ee3565b6040516103f89190612b98565b60405180910390f35b34801561040d57600080fd5b5061042860048036038101906104239190612e0a565b610ef5565b6040516104359190612c2e565b60405180910390f35b34801561044a57600080fd5b5061046560048036038101906104609190612e79565b610fc3565b6040516104729190612c2e565b60405180910390f35b34801561048757600080fd5b5061049061107b565b005b34801561049e57600080fd5b506104a7611103565b6040516104b49190612d0e565b60405180910390f35b3480156104c957600080fd5b506104d2611127565b6040516104df9190612b98565b60405180910390f35b3480156104f457600080fd5b5061050f600480360381019061050a9190612ea6565b611151565b60405161051c9190612b98565b60405180910390f35b34801561053157600080fd5b5061054c60048036038101906105479190612d29565b611180565b60405161055991906128a9565b60405180910390f35b34801561056e57600080fd5b5061058960048036038101906105849190612e79565b6111ea565b005b34801561059757600080fd5b506105a0611287565b6040516105ad9190612ad2565b60405180910390f35b6105d060048036038101906105cb9190612b2a565b611319565b005b3480156105de57600080fd5b506105e7611396565b6040516105f49190612d0e565b60405180910390f35b34801561060957600080fd5b50610624600480360381019061061f9190612f12565b61139d565b005b610640600480360381019061063b9190612f52565b6114a8565b005b34801561064e57600080fd5b5061066960048036038101906106649190612b2a565b61151b565b6040516106769190612ad2565b60405180910390f35b34801561068b57600080fd5b506106a660048036038101906106a19190612cd2565b6115b9565b6040516106b39190612c2e565b60405180910390f35b3480156106c857600080fd5b506106d16115dd565b6040516106de9190612d0e565b60405180910390f35b3480156106f357600080fd5b5061070e60048036038101906107099190612d29565b611601565b005b34801561071c57600080fd5b50610725611635565b6040516107329190612d0e565b60405180910390f35b34801561074757600080fd5b50610762600480360381019061075d9190612fd5565b611659565b60405161076f91906128a9565b60405180910390f35b34801561078457600080fd5b5061079f600480360381019061079a9190612e79565b61174b565b005b60006301ffc9a760e01b827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614806107fc57506380ac58cd60e01b827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b8061082c5750635b5e139f60e01b827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b9050919050565b6108647fa49807205ce4d355092ef5a8a18f56e8913cf4a201fbe287825b095693c2177561085f611880565b611180565b6108a3576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161089a90613087565b60405180910390fd5b80600c90816108b291906132b3565b5050565b6060600380546108c5906130d6565b80601f01602080910402602001604051908101604052809291908181526020018280546108f1906130d6565b801561093e5780601f106109135761010080835404028352916020019161093e565b820191906000526020600020905b81548152906001019060200180831161092157829003601f168201915b5050505050905090565b600061095382611888565b610989576040517fcf4700e400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6007600083815260200190815260200160002060000160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050919050565b60006109d282610ee3565b90508073ffffffffffffffffffffffffffffffffffffffff166109f36118e7565b73ffffffffffffffffffffffffffffffffffffffff1614610a5657610a1f81610a1a6118e7565b611659565b610a55576040517fcfb3b94200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5b826007600084815260200190815260200160002060000160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550818373ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a4505050565b6000610b156118ef565b905090565b6000610b2582611906565b90508373ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1614610b8c576040517fa114810000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600080610b98846119d2565b91509150610bae8187610ba96118e7565b6119f9565b610bfa57610bc386610bbe6118e7565b611659565b610bf9576040517f59c896be00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5b600073ffffffffffffffffffffffffffffffffffffffff168573ffffffffffffffffffffffffffffffffffffffff1603610c60576040517fea553b3400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b610c6d8686866001611a3d565b8015610c7857600082555b600660008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600081546001900391905081905550600660008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000815460010191905081905550610d4685610d22888887611a43565b7c020000000000000000000000000000000000000000000000000000000017611a6b565b600560008681526020019081526020016000208190555060007c0200000000000000000000000000000000000000000000000000000000841603610dcc5760006001850190506000600560008381526020019081526020016000205403610dca576001548114610dc9578360056000838152602001908152602001600020819055505b5b505b838573ffffffffffffffffffffffffffffffffffffffff168773ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a4610e348686866001611a96565b505050505050565b6000806000838152602001908152602001600020600101549050919050565b610e658282611a9c565b610e8a81600a600085815260200190815260200160002061185090919063ffffffff16565b505050565b610e998282611ac5565b610ebe81600a6000858152602001908152602001600020611b4890919063ffffffff16565b505050565b610ede838383604051806020016040528060008152506114a8565b505050565b6000610eee82611906565b9050919050565b6000610f287f9f2df0fed2c77648de5860a4cc508cd0818c85b8b8a1ab4ceeef8d981c8956a6610f23611880565b611180565b610f67576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610f5e906133f7565b60405180910390fd5b6000610f71611b78565b9050610f7d8585611b82565b7f278b0fd0170e87df8d6e9c94b47d3ff7382de693c547e6089b53f9972c532389858286604051610fb093929190613417565b60405180910390a1809150509392505050565b60008073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff160361102a576040517f8f4eb60400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b67ffffffffffffffff600660008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054169050919050565b611083611880565b73ffffffffffffffffffffffffffffffffffffffff166110a1611127565b73ffffffffffffffffffffffffffffffffffffffff16146110f7576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016110ee9061349a565b60405180910390fd5b6111016000611d3e565b565b7fa49807205ce4d355092ef5a8a18f56e8913cf4a201fbe287825b095693c2177581565b6000600960009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b600061117882600a6000868152602001908152602001600020611e0490919063ffffffff16565b905092915050565b600080600084815260200190815260200160002060000160008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16905092915050565b61121b7fa49807205ce4d355092ef5a8a18f56e8913cf4a201fbe287825b095693c21775611216611880565b611180565b61125a576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016112519061352c565b60405180910390fd5b6112847f9f2df0fed2c77648de5860a4cc508cd0818c85b8b8a1ab4ceeef8d981c8956a682611e1e565b50565b606060048054611296906130d6565b80601f01602080910402602001604051908101604052809291908181526020018280546112c2906130d6565b801561130f5780601f106112e45761010080835404028352916020019161130f565b820191906000526020600020905b8154815290600101906020018083116112f257829003601f168201915b5050505050905090565b61134a7f9f2df0fed2c77648de5860a4cc508cd0818c85b8b8a1ab4ceeef8d981c8956a6611345611880565b611180565b611389576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611380906133f7565b60405180910390fd5b6113933382611b82565b50565b6000801b81565b80600860006113aa6118e7565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055508173ffffffffffffffffffffffffffffffffffffffff166114576118e7565b73ffffffffffffffffffffffffffffffffffffffff167f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c318360405161149c91906128a9565b60405180910390a35050565b6114b3848484610b1a565b60008373ffffffffffffffffffffffffffffffffffffffff163b14611515576114de84848484611e52565b611514576040517fd1a57ed600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5b50505050565b606061152682611888565b61155c576040517fa14c4b5000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6000611566611fa2565b9050600081510361158657604051806020016040528060008152506115b1565b8061159084612034565b6040516020016115a1929190613588565b6040516020818303038152906040525b915050919050565b60006115d6600a6000848152602001908152602001600020612084565b9050919050565b7f9f2df0fed2c77648de5860a4cc508cd0818c85b8b8a1ab4ceeef8d981c8956a681565b61160b8282612099565b61163081600a6000858152602001908152602001600020611b4890919063ffffffff16565b505050565b7f65d7a28e3265b37a6474929f336521b332c1681b933f6cb9f3376673440d862a81565b600080600b60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1690508273ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1663c4552791866040518263ffffffff1660e01b81526004016116d19190612b98565b602060405180830381865afa1580156116ee573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061171291906135ea565b73ffffffffffffffffffffffffffffffffffffffff1603611737576001915050611745565b61174184846120c2565b9150505b92915050565b611753611880565b73ffffffffffffffffffffffffffffffffffffffff16611771611127565b73ffffffffffffffffffffffffffffffffffffffff16146117c7576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016117be9061349a565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1603611836576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161182d90613689565b60405180910390fd5b61183f81611d3e565b50565b61184c8282612156565b5050565b6000611878836000018373ffffffffffffffffffffffffffffffffffffffff1660001b612236565b905092915050565b600033905090565b6000816118936122a6565b111580156118a2575060015482105b80156118e0575060007c0100000000000000000000000000000000000000000000000000000000600560008581526020019081526020016000205416145b9050919050565b600033905090565b60006118f96122a6565b6002546001540303905090565b600080829050806119156122a6565b1161199b5760015481101561199a5760006005600083815260200190815260200160002054905060007c0100000000000000000000000000000000000000000000000000000000821603611998575b6000810361198e576005600083600190039350838152602001908152602001600020549050611964565b80925050506119cd565b505b5b6040517fdf2d9b4200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b919050565b60008060006007600085815260200190815260200160002090508092508254915050915091565b600073ffffffffffffffffffffffffffffffffffffffff8316925073ffffffffffffffffffffffffffffffffffffffff821691508382148383141790509392505050565b50505050565b60008060e883901c905060e8611a5a8686846122af565b62ffffff16901b9150509392505050565b600073ffffffffffffffffffffffffffffffffffffffff83169250814260a01b178317905092915050565b50505050565b611aa582610e3c565b611ab681611ab1611880565b6122b8565b611ac08383612156565b505050565b611acd611880565b73ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1614611b3a576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611b319061371b565b60405180910390fd5b611b448282612355565b5050565b6000611b70836000018373ffffffffffffffffffffffffffffffffffffffff1660001b612436565b905092915050565b6000600154905090565b6000600154905060008203611bc3576040517fb562e8dd00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b611bd06000848385611a3d565b600160406001901b178202600660008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008282540192505081905550611c4783611c386000866000611a43565b611c418561254a565b17611a6b565b6005600083815260200190815260200160002081905550600080838301905073ffffffffffffffffffffffffffffffffffffffff85169150828260007fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef600080a4600183015b818114611ce857808360007fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef600080a4600181019050611cad565b5060008203611d23576040517f2e07630000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b806001819055505050611d396000848385611a96565b505050565b6000600960009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905081600960006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b6000611e13836000018361255a565b60001c905092915050565b611e288282611842565b611e4d81600a600085815260200190815260200160002061185090919063ffffffff16565b505050565b60008373ffffffffffffffffffffffffffffffffffffffff1663150b7a02611e786118e7565b8786866040518563ffffffff1660e01b8152600401611e9a9493929190613790565b6020604051808303816000875af1925050508015611ed657506040513d601f19601f82011682018060405250810190611ed391906137f1565b60015b611f4f573d8060008114611f06576040519150601f19603f3d011682016040523d82523d6000602084013e611f0b565b606091505b506000815103611f47576040517fd1a57ed600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b805181602001fd5b63150b7a0260e01b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916817bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614915050949350505050565b6060600c8054611fb1906130d6565b80601f0160208091040260200160405190810160405280929190818152602001828054611fdd906130d6565b801561202a5780601f10611fff5761010080835404028352916020019161202a565b820191906000526020600020905b81548152906001019060200180831161200d57829003601f168201915b5050505050905090565b606060a060405101806040526020810391506000825281835b60011561206f57600184039350600a81066030018453600a810490508061204d575b50828103602084039350808452505050919050565b600061209282600001612585565b9050919050565b6120a282610e3c565b6120b3816120ae611880565b6122b8565b6120bd8383612355565b505050565b6000600860008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16905092915050565b6121608282611180565b61223257600160008084815260200190815260200160002060000160008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055506121d7611880565b73ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16837f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d60405160405180910390a45b5050565b60006122428383612596565b61229b5782600001829080600181540180825580915050600190039060005260206000200160009091909190915055826000018054905083600101600084815260200190815260200160002081905550600190506122a0565b600090505b92915050565b60006001905090565b60009392505050565b6122c28282611180565b612351576122e78173ffffffffffffffffffffffffffffffffffffffff1660146125b9565b6122f58360001c60206125b9565b6040516020016123069291906138b6565b6040516020818303038152906040526040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016123489190612ad2565b60405180910390fd5b5050565b61235f8282611180565b1561243257600080600084815260200190815260200160002060000160008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055506123d7611880565b73ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16837ff6391f5c32d9c69d2a47ea670b442974b53935d1edc7fd64eb21e047a839171b60405160405180910390a45b5050565b6000808360010160008481526020019081526020016000205490506000811461253e576000600182612468919061391f565b9050600060018660000180549050612480919061391f565b90508181146124ef5760008660000182815481106124a1576124a0613953565b5b90600052602060002001549050808760000184815481106124c5576124c4613953565b5b90600052602060002001819055508387600101600083815260200190815260200160002081905550505b8560000180548061250357612502613982565b5b600190038181906000526020600020016000905590558560010160008681526020019081526020016000206000905560019350505050612544565b60009150505b92915050565b60006001821460e11b9050919050565b600082600001828154811061257257612571613953565b5b9060005260206000200154905092915050565b600081600001805490509050919050565b600080836001016000848152602001908152602001600020541415905092915050565b6060600060028360026125cc91906139b1565b6125d691906139f3565b67ffffffffffffffff8111156125ef576125ee6128df565b5b6040519080825280601f01601f1916602001820160405280156126215781602001600182028036833780820191505090505b5090507f30000000000000000000000000000000000000000000000000000000000000008160008151811061265957612658613953565b5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a9053507f7800000000000000000000000000000000000000000000000000000000000000816001815181106126bd576126bc613953565b5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a905350600060018460026126fd91906139b1565b61270791906139f3565b90505b60018111156127a7577f3031323334353637383961626364656600000000000000000000000000000000600f86166010811061274957612748613953565b5b1a60f81b8282815181106127605761275f613953565b5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a905350600485901c9450806127a090613a27565b905061270a565b50600084146127eb576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016127e290613a9c565b60405180910390fd5b8091505092915050565b6000604051905090565b600080fd5b600080fd5b60007fffffffff0000000000000000000000000000000000000000000000000000000082169050919050565b61283e81612809565b811461284957600080fd5b50565b60008135905061285b81612835565b92915050565b600060208284031215612877576128766127ff565b5b60006128858482850161284c565b91505092915050565b60008115159050919050565b6128a38161288e565b82525050565b60006020820190506128be600083018461289a565b92915050565b600080fd5b600080fd5b6000601f19601f8301169050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b612917826128ce565b810181811067ffffffffffffffff82111715612936576129356128df565b5b80604052505050565b60006129496127f5565b9050612955828261290e565b919050565b600067ffffffffffffffff821115612975576129746128df565b5b61297e826128ce565b9050602081019050919050565b82818337600083830152505050565b60006129ad6129a88461295a565b61293f565b9050828152602081018484840111156129c9576129c86128c9565b5b6129d484828561298b565b509392505050565b600082601f8301126129f1576129f06128c4565b5b8135612a0184826020860161299a565b91505092915050565b600060208284031215612a2057612a1f6127ff565b5b600082013567ffffffffffffffff811115612a3e57612a3d612804565b5b612a4a848285016129dc565b91505092915050565b600081519050919050565b600082825260208201905092915050565b60005b83811015612a8d578082015181840152602081019050612a72565b60008484015250505050565b6000612aa482612a53565b612aae8185612a5e565b9350612abe818560208601612a6f565b612ac7816128ce565b840191505092915050565b60006020820190508181036000830152612aec8184612a99565b905092915050565b6000819050919050565b612b0781612af4565b8114612b1257600080fd5b50565b600081359050612b2481612afe565b92915050565b600060208284031215612b4057612b3f6127ff565b5b6000612b4e84828501612b15565b91505092915050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000612b8282612b57565b9050919050565b612b9281612b77565b82525050565b6000602082019050612bad6000830184612b89565b92915050565b612bbc81612b77565b8114612bc757600080fd5b50565b600081359050612bd981612bb3565b92915050565b60008060408385031215612bf657612bf56127ff565b5b6000612c0485828601612bca565b9250506020612c1585828601612b15565b9150509250929050565b612c2881612af4565b82525050565b6000602082019050612c436000830184612c1f565b92915050565b600080600060608486031215612c6257612c616127ff565b5b6000612c7086828701612bca565b9350506020612c8186828701612bca565b9250506040612c9286828701612b15565b9150509250925092565b6000819050919050565b612caf81612c9c565b8114612cba57600080fd5b50565b600081359050612ccc81612ca6565b92915050565b600060208284031215612ce857612ce76127ff565b5b6000612cf684828501612cbd565b91505092915050565b612d0881612c9c565b82525050565b6000602082019050612d236000830184612cff565b92915050565b60008060408385031215612d4057612d3f6127ff565b5b6000612d4e85828601612cbd565b9250506020612d5f85828601612bca565b9150509250929050565b600067ffffffffffffffff821115612d8457612d836128df565b5b612d8d826128ce565b9050602081019050919050565b6000612dad612da884612d69565b61293f565b905082815260208101848484011115612dc957612dc86128c9565b5b612dd484828561298b565b509392505050565b600082601f830112612df157612df06128c4565b5b8135612e01848260208601612d9a565b91505092915050565b600080600060608486031215612e2357612e226127ff565b5b6000612e3186828701612bca565b9350506020612e4286828701612b15565b925050604084013567ffffffffffffffff811115612e6357612e62612804565b5b612e6f86828701612ddc565b9150509250925092565b600060208284031215612e8f57612e8e6127ff565b5b6000612e9d84828501612bca565b91505092915050565b60008060408385031215612ebd57612ebc6127ff565b5b6000612ecb85828601612cbd565b9250506020612edc85828601612b15565b9150509250929050565b612eef8161288e565b8114612efa57600080fd5b50565b600081359050612f0c81612ee6565b92915050565b60008060408385031215612f2957612f286127ff565b5b6000612f3785828601612bca565b9250506020612f4885828601612efd565b9150509250929050565b60008060008060808587031215612f6c57612f6b6127ff565b5b6000612f7a87828801612bca565b9450506020612f8b87828801612bca565b9350506040612f9c87828801612b15565b925050606085013567ffffffffffffffff811115612fbd57612fbc612804565b5b612fc987828801612ddc565b91505092959194509250565b60008060408385031215612fec57612feb6127ff565b5b6000612ffa85828601612bca565b925050602061300b85828601612bca565b9150509250929050565b7f5265616c696f4e4654466163746f72793a206d75737420686176652061646d6960008201527f6e20726f6c6520746f2073657420746865207572690000000000000000000000602082015250565b6000613071603583612a5e565b915061307c82613015565b604082019050919050565b600060208201905081810360008301526130a081613064565b9050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b600060028204905060018216806130ee57607f821691505b602082108103613101576131006130a7565b5b50919050565b60008190508160005260206000209050919050565b60006020601f8301049050919050565b600082821b905092915050565b6000600883026131697fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff8261312c565b613173868361312c565b95508019841693508086168417925050509392505050565b6000819050919050565b60006131b06131ab6131a684612af4565b61318b565b612af4565b9050919050565b6000819050919050565b6131ca83613195565b6131de6131d6826131b7565b848454613139565b825550505050565b600090565b6131f36131e6565b6131fe8184846131c1565b505050565b5b81811015613222576132176000826131eb565b600181019050613204565b5050565b601f8211156132675761323881613107565b6132418461311c565b81016020851015613250578190505b61326461325c8561311c565b830182613203565b50505b505050565b600082821c905092915050565b600061328a6000198460080261326c565b1980831691505092915050565b60006132a38383613279565b9150826002028217905092915050565b6132bc82612a53565b67ffffffffffffffff8111156132d5576132d46128df565b5b6132df82546130d6565b6132ea828285613226565b600060209050601f83116001811461331d576000841561330b578287015190505b6133158582613297565b86555061337d565b601f19841661332b86613107565b60005b828110156133535784890151825560018201915060208501945060208101905061332e565b86831015613370578489015161336c601f891682613279565b8355505b6001600288020188555050505b505050505050565b7f5265616c696f4e4654466163746f72793a206d7573742068617665206d696e7460008201527f657220726f6c6520746f20637265617465000000000000000000000000000000602082015250565b60006133e1603183612a5e565b91506133ec82613385565b604082019050919050565b60006020820190508181036000830152613410816133d4565b9050919050565b600060608201905061342c6000830186612b89565b6134396020830185612c1f565b6134466040830184612c1f565b949350505050565b7f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572600082015250565b6000613484602083612a5e565b915061348f8261344e565b602082019050919050565b600060208201905081810360008301526134b381613477565b9050919050565b7f5265616c696f4e4654466163746f72793a206d75737420686176652061646d6960008201527f6e20726f6c6520746f20736574206d696e746572000000000000000000000000602082015250565b6000613516603483612a5e565b9150613521826134ba565b604082019050919050565b6000602082019050818103600083015261354581613509565b9050919050565b600081905092915050565b600061356282612a53565b61356c818561354c565b935061357c818560208601612a6f565b80840191505092915050565b60006135948285613557565b91506135a08284613557565b91508190509392505050565b60006135b782612b77565b9050919050565b6135c7816135ac565b81146135d257600080fd5b50565b6000815190506135e4816135be565b92915050565b600060208284031215613600576135ff6127ff565b5b600061360e848285016135d5565b91505092915050565b7f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160008201527f6464726573730000000000000000000000000000000000000000000000000000602082015250565b6000613673602683612a5e565b915061367e82613617565b604082019050919050565b600060208201905081810360008301526136a281613666565b9050919050565b7f416363657373436f6e74726f6c3a2063616e206f6e6c792072656e6f756e636560008201527f20726f6c657320666f722073656c660000000000000000000000000000000000602082015250565b6000613705602f83612a5e565b9150613710826136a9565b604082019050919050565b60006020820190508181036000830152613734816136f8565b9050919050565b600081519050919050565b600082825260208201905092915050565b60006137628261373b565b61376c8185613746565b935061377c818560208601612a6f565b613785816128ce565b840191505092915050565b60006080820190506137a56000830187612b89565b6137b26020830186612b89565b6137bf6040830185612c1f565b81810360608301526137d18184613757565b905095945050505050565b6000815190506137eb81612835565b92915050565b600060208284031215613807576138066127ff565b5b6000613815848285016137dc565b91505092915050565b7f416363657373436f6e74726f6c3a206163636f756e7420000000000000000000600082015250565b600061385460178361354c565b915061385f8261381e565b601782019050919050565b7f206973206d697373696e6720726f6c6520000000000000000000000000000000600082015250565b60006138a060118361354c565b91506138ab8261386a565b601182019050919050565b60006138c182613847565b91506138cd8285613557565b91506138d882613893565b91506138e48284613557565b91508190509392505050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b600061392a82612af4565b915061393583612af4565b925082820390508181111561394d5761394c6138f0565b5b92915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603160045260246000fd5b60006139bc82612af4565b91506139c783612af4565b92508282026139d581612af4565b915082820484148315176139ec576139eb6138f0565b5b5092915050565b60006139fe82612af4565b9150613a0983612af4565b9250828201905080821115613a2157613a206138f0565b5b92915050565b6000613a3282612af4565b915060008203613a4557613a446138f0565b5b600182039050919050565b7f537472696e67733a20686578206c656e67746820696e73756666696369656e74600082015250565b6000613a86602083612a5e565b9150613a9182613a50565b602082019050919050565b60006020820190508181036000830152613ab581613a79565b905091905056fea26469706673582212205994c09b1b454dacf5ad5918bbba5b1c82aa72f3817fbf8eac579d558b9b44a364736f6c63430008110033
Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)
0000000000000000000000000000000000000000000000000000000000000040000000000000000000000000a5409ec958c83c3f309868babaca7c86dcb077c1000000000000000000000000000000000000000000000000000000000000003568747470733a2f2f63646e2e7265616c696f2e66756e642f7265616c696f2f70726f642f67656e657369732f6d657461646174612f0000000000000000000000
-----Decoded View---------------
Arg [0] : _uri (string): https://cdn.realio.fund/realio/prod/genesis/metadata/
Arg [1] : proxyAddress (address): 0xa5409ec958C83C3f309868babACA7c86DCB077c1
-----Encoded View---------------
5 Constructor Arguments found :
Arg [0] : 0000000000000000000000000000000000000000000000000000000000000040
Arg [1] : 000000000000000000000000a5409ec958c83c3f309868babaca7c86dcb077c1
Arg [2] : 0000000000000000000000000000000000000000000000000000000000000035
Arg [3] : 68747470733a2f2f63646e2e7265616c696f2e66756e642f7265616c696f2f70
Arg [4] : 726f642f67656e657369732f6d657461646174612f0000000000000000000000
Loading...
Loading
Loading...
Loading
[ Download: CSV Export ]
[ Download: CSV Export ]
A token is a representation of an on-chain or off-chain asset. The token page shows information such as price, total supply, holders, transfers and social links. Learn more about this page in our Knowledge Base.