Feature Tip: Add private address tag to any address under My Name Tag !
Overview
TokenID
298
Total Transfers
-
Market
Onchain Market Cap
$0.00
Circulating Supply Market Cap
-
Other Info
Token Contract
Loading...
Loading
Loading...
Loading
Loading...
Loading
# | Exchange | Pair | Price | 24H Volume | % Volume |
---|
Contract Name:
RootAvatar
Compiler Version
v0.8.0+commit.c7dfd78e
Optimization Enabled:
Yes with 200 runs
Other Settings:
default evmVersion
Contract Source Code (Solidity Standard Json-Input format)
// SPDX-License-Identifier: UNLICENSED pragma solidity ^0.8.0; import {ERC721} from "@openzeppelin/contracts/token/ERC721/ERC721.sol"; import {Ownable} from "@openzeppelin/contracts/access/Ownable.sol"; import {AccessControl} from "@openzeppelin/contracts/access/AccessControl.sol"; import {ERC721URIStorage} from "@openzeppelin/contracts/token/ERC721/extensions/ERC721URIStorage.sol"; import {NativeMetaTransaction} from "../../common/NativeMetaTransaction.sol"; import {IMintableERC721} from "../../common/IMintableERC721.sol"; import {ContextMixin} from "../../common/ContextMixin.sol"; import {IAvatarMinter} from "../IAvatarMinter.sol"; import {ERC165Storage} from "@openzeppelin/contracts/utils/introspection/ERC165Storage.sol"; import {Pausable } from "@openzeppelin/contracts/security/Pausable.sol"; import "@openzeppelin/contracts/interfaces/IERC2981.sol"; contract RootAvatar is AccessControl, NativeMetaTransaction, IMintableERC721, ERC721URIStorage, Ownable, ContextMixin, IERC2981, ERC165Storage, Pausable { uint256 private startDate; bytes32 public constant PREDICATE_ROLE = keccak256("PREDICATE_ROLE"); string public baseURI; IAvatarMinter public avatarMinter; address public auctionAddress; bytes4 private constant _INTERFACE_ID_ERC2981 = 0x2a55205a; uint256 private _royaltyPercentage; address private _royaltyAddress; event AvatarPaused(address owner); event AvatarUnpaused(address owner); constructor( string memory name_, string memory symbol_, string memory url_ ) ERC721(name_, symbol_) { _setupRole(DEFAULT_ADMIN_ROLE, _senderAddr()); _setupRole(PREDICATE_ROLE, _senderAddr()); _initializeEIP712(name_); //implemented royalty based on this guidance https://eips.ethereum.org/EIPS/eip-2981 _registerInterface(_INTERFACE_ID_ERC2981); baseURI = url_; startDate = block.timestamp; } function setAvatarMinter(address _minterAddress) external whenNotPaused onlyOwner { avatarMinter = IAvatarMinter(_minterAddress); _setupRole(PREDICATE_ROLE, _minterAddress); } function setAuctionAddress(address _auctionAddress) external whenNotPaused onlyOwner { auctionAddress = _auctionAddress; } function _baseURI() internal view override returns (string memory) { return baseURI; } /** * @dev See {IMintableERC721-mint}. */ function mint(address user, uint256 tokenId) external override onlyRole(PREDICATE_ROLE) whenNotPaused { _mint(user, tokenId); } /** * If you're attempting to bring metadata associated with token * from L2 to L1, you must implement this method, to be invoked * when minting token back on L1, during exit */ function setTokenMetadata(uint256 tokenId, bytes memory data) internal virtual whenNotPaused { // This function should decode metadata obtained from L2 // and attempt to set it for this `tokenId` // // Following is just a default implementation, feel // free to define your own encoding/ decoding scheme // for L2 -> L1 token metadata transfer string memory uri = abi.decode(data, (string)); _setTokenURI(tokenId, uri); } /** * @dev See {IMintableERC721-mint}. * * If you're attempting to bring metadata associated with token * from L2 to L1, you must implement this method */ function mint( address user, uint256 tokenId, bytes calldata metaData ) external override onlyRole(PREDICATE_ROLE) whenNotPaused { _mint(user, tokenId); setTokenMetadata(tokenId, metaData); } function supportsInterface(bytes4 interfaceId) public view virtual override(ERC721, IERC165, ERC165Storage, AccessControl) returns (bool) { return super.supportsInterface(interfaceId); } /** * @dev See {IMintableERC721-exists}. */ function exists(uint256 tokenId) external view override returns (bool) { return _exists(tokenId); } function _senderAddr() internal view returns (address payable sender) { return ContextMixin.msgSender(); } function _beforeTokenTransfer( address from, address to, uint256 tokenId ) internal virtual override whenNotPaused { super._beforeTokenTransfer(from, to, tokenId); if (from != auctionAddress && from != address(0)) { require(block.timestamp > (startDate + 14 days), "RootAvatar: Locked until January 25th"); } } /// @dev sets royalties info function royaltyInfo(uint256 tokenId, uint256 salePrice) external view override whenNotPaused returns (address receiver, uint256 royaltyAmount) { receiver = _royaltyAddress; royaltyAmount = (salePrice * _royaltyPercentage) / 100; } /// @dev sets royalties address function setRoyaltyAddress(address royaltyAddress) public whenNotPaused onlyOwner { _royaltyAddress = royaltyAddress; } /// @dev sets royalties fees function setRoyaltyPercentage(uint256 royaltyPercentage) public whenNotPaused onlyOwner { _royaltyPercentage = royaltyPercentage; } /// @dev pausing the contract function pause() public onlyOwner { super._pause(); emit AvatarPaused(msgSender()); } /// @dev unpause the contract function unpause() public onlyOwner { super._unpause(); emit AvatarUnpaused(msgSender()); } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import "./IERC721.sol"; import "./IERC721Receiver.sol"; import "./extensions/IERC721Metadata.sol"; import "../../utils/Address.sol"; import "../../utils/Context.sol"; import "../../utils/Strings.sol"; import "../../utils/introspection/ERC165.sol"; /** * @dev Implementation of https://eips.ethereum.org/EIPS/eip-721[ERC721] Non-Fungible Token Standard, including * the Metadata extension, but not including the Enumerable extension, which is available separately as * {ERC721Enumerable}. */ contract ERC721 is Context, ERC165, IERC721, IERC721Metadata { using Address for address; using Strings for uint256; // Token name string private _name; // Token symbol string private _symbol; // Mapping from token ID to owner address mapping(uint256 => address) private _owners; // Mapping owner address to token count mapping(address => uint256) private _balances; // Mapping from token ID to approved address mapping(uint256 => address) private _tokenApprovals; // Mapping from owner to operator approvals mapping(address => mapping(address => bool)) private _operatorApprovals; /** * @dev Initializes the contract by setting a `name` and a `symbol` to the token collection. */ constructor(string memory name_, string memory symbol_) { _name = name_; _symbol = symbol_; } /** * @dev See {IERC165-supportsInterface}. */ function supportsInterface(bytes4 interfaceId) public view virtual override(ERC165, IERC165) returns (bool) { return interfaceId == type(IERC721).interfaceId || interfaceId == type(IERC721Metadata).interfaceId || super.supportsInterface(interfaceId); } /** * @dev See {IERC721-balanceOf}. */ function balanceOf(address owner) public view virtual override returns (uint256) { require(owner != address(0), "ERC721: balance query for the zero address"); return _balances[owner]; } /** * @dev See {IERC721-ownerOf}. */ function ownerOf(uint256 tokenId) public view virtual override returns (address) { address owner = _owners[tokenId]; require(owner != address(0), "ERC721: owner query for nonexistent token"); return owner; } /** * @dev See {IERC721Metadata-name}. */ function name() public view virtual override returns (string memory) { return _name; } /** * @dev See {IERC721Metadata-symbol}. */ function symbol() public view virtual override returns (string memory) { return _symbol; } /** * @dev See {IERC721Metadata-tokenURI}. */ function tokenURI(uint256 tokenId) public view virtual override returns (string memory) { require(_exists(tokenId), "ERC721Metadata: URI query for nonexistent token"); string memory baseURI = _baseURI(); return bytes(baseURI).length > 0 ? string(abi.encodePacked(baseURI, tokenId.toString())) : ""; } /** * @dev Base URI for computing {tokenURI}. If set, the resulting URI for each * token will be the concatenation of the `baseURI` and the `tokenId`. Empty * by default, can be overriden in child contracts. */ function _baseURI() internal view virtual returns (string memory) { return ""; } /** * @dev See {IERC721-approve}. */ function approve(address to, uint256 tokenId) public virtual override { address owner = ERC721.ownerOf(tokenId); require(to != owner, "ERC721: approval to current owner"); require( _msgSender() == owner || isApprovedForAll(owner, _msgSender()), "ERC721: approve caller is not owner nor approved for all" ); _approve(to, tokenId); } /** * @dev See {IERC721-getApproved}. */ function getApproved(uint256 tokenId) public view virtual override returns (address) { require(_exists(tokenId), "ERC721: approved query for nonexistent token"); return _tokenApprovals[tokenId]; } /** * @dev See {IERC721-setApprovalForAll}. */ function setApprovalForAll(address operator, bool approved) public virtual override { require(operator != _msgSender(), "ERC721: approve to caller"); _operatorApprovals[_msgSender()][operator] = approved; emit ApprovalForAll(_msgSender(), operator, approved); } /** * @dev See {IERC721-isApprovedForAll}. */ function isApprovedForAll(address owner, address operator) public view virtual override returns (bool) { return _operatorApprovals[owner][operator]; } /** * @dev See {IERC721-transferFrom}. */ function transferFrom( address from, address to, uint256 tokenId ) public virtual override { //solhint-disable-next-line max-line-length require(_isApprovedOrOwner(_msgSender(), tokenId), "ERC721: transfer caller is not owner nor approved"); _transfer(from, to, tokenId); } /** * @dev See {IERC721-safeTransferFrom}. */ function safeTransferFrom( address from, address to, uint256 tokenId ) public virtual override { safeTransferFrom(from, to, tokenId, ""); } /** * @dev See {IERC721-safeTransferFrom}. */ function safeTransferFrom( address from, address to, uint256 tokenId, bytes memory _data ) public virtual override { require(_isApprovedOrOwner(_msgSender(), tokenId), "ERC721: transfer caller is not owner nor approved"); _safeTransfer(from, to, tokenId, _data); } /** * @dev Safely transfers `tokenId` token from `from` to `to`, checking first that contract recipients * are aware of the ERC721 protocol to prevent tokens from being forever locked. * * `_data` is additional data, it has no specified format and it is sent in call to `to`. * * This internal function is equivalent to {safeTransferFrom}, and can be used to e.g. * implement alternative mechanisms to perform token transfer, such as signature-based. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must exist and be owned by `from`. * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */ function _safeTransfer( address from, address to, uint256 tokenId, bytes memory _data ) internal virtual { _transfer(from, to, tokenId); require(_checkOnERC721Received(from, to, tokenId, _data), "ERC721: transfer to non ERC721Receiver implementer"); } /** * @dev Returns whether `tokenId` exists. * * Tokens can be managed by their owner or approved accounts via {approve} or {setApprovalForAll}. * * Tokens start existing when they are minted (`_mint`), * and stop existing when they are burned (`_burn`). */ function _exists(uint256 tokenId) internal view virtual returns (bool) { return _owners[tokenId] != address(0); } /** * @dev Returns whether `spender` is allowed to manage `tokenId`. * * Requirements: * * - `tokenId` must exist. */ function _isApprovedOrOwner(address spender, uint256 tokenId) internal view virtual returns (bool) { require(_exists(tokenId), "ERC721: operator query for nonexistent token"); address owner = ERC721.ownerOf(tokenId); return (spender == owner || getApproved(tokenId) == spender || isApprovedForAll(owner, spender)); } /** * @dev Safely mints `tokenId` and transfers it to `to`. * * Requirements: * * - `tokenId` must not exist. * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */ function _safeMint(address to, uint256 tokenId) internal virtual { _safeMint(to, tokenId, ""); } /** * @dev Same as {xref-ERC721-_safeMint-address-uint256-}[`_safeMint`], with an additional `data` parameter which is * forwarded in {IERC721Receiver-onERC721Received} to contract recipients. */ function _safeMint( address to, uint256 tokenId, bytes memory _data ) internal virtual { _mint(to, tokenId); require( _checkOnERC721Received(address(0), to, tokenId, _data), "ERC721: transfer to non ERC721Receiver implementer" ); } /** * @dev Mints `tokenId` and transfers it to `to`. * * WARNING: Usage of this method is discouraged, use {_safeMint} whenever possible * * Requirements: * * - `tokenId` must not exist. * - `to` cannot be the zero address. * * Emits a {Transfer} event. */ function _mint(address to, uint256 tokenId) internal virtual { require(to != address(0), "ERC721: mint to the zero address"); require(!_exists(tokenId), "ERC721: token already minted"); _beforeTokenTransfer(address(0), to, tokenId); _balances[to] += 1; _owners[tokenId] = to; emit Transfer(address(0), to, tokenId); } /** * @dev Destroys `tokenId`. * The approval is cleared when the token is burned. * * Requirements: * * - `tokenId` must exist. * * Emits a {Transfer} event. */ function _burn(uint256 tokenId) internal virtual { address owner = ERC721.ownerOf(tokenId); _beforeTokenTransfer(owner, address(0), tokenId); // Clear approvals _approve(address(0), tokenId); _balances[owner] -= 1; delete _owners[tokenId]; emit Transfer(owner, address(0), tokenId); } /** * @dev Transfers `tokenId` from `from` to `to`. * As opposed to {transferFrom}, this imposes no restrictions on msg.sender. * * Requirements: * * - `to` cannot be the zero address. * - `tokenId` token must be owned by `from`. * * Emits a {Transfer} event. */ function _transfer( address from, address to, uint256 tokenId ) internal virtual { require(ERC721.ownerOf(tokenId) == from, "ERC721: transfer of token that is not own"); require(to != address(0), "ERC721: transfer to the zero address"); _beforeTokenTransfer(from, to, tokenId); // Clear approvals from the previous owner _approve(address(0), tokenId); _balances[from] -= 1; _balances[to] += 1; _owners[tokenId] = to; emit Transfer(from, to, tokenId); } /** * @dev Approve `to` to operate on `tokenId` * * Emits a {Approval} event. */ function _approve(address to, uint256 tokenId) internal virtual { _tokenApprovals[tokenId] = to; emit Approval(ERC721.ownerOf(tokenId), to, tokenId); } /** * @dev Internal function to invoke {IERC721Receiver-onERC721Received} on a target address. * The call is not executed if the target address is not a contract. * * @param from address representing the previous owner of the given token ID * @param to target address that will receive the tokens * @param tokenId uint256 ID of the token to be transferred * @param _data bytes optional data to send along with the call * @return bool whether the call correctly returned the expected magic value */ function _checkOnERC721Received( address from, address to, uint256 tokenId, bytes memory _data ) private returns (bool) { if (to.isContract()) { try IERC721Receiver(to).onERC721Received(_msgSender(), from, tokenId, _data) returns (bytes4 retval) { return retval == IERC721Receiver.onERC721Received.selector; } catch (bytes memory reason) { if (reason.length == 0) { revert("ERC721: transfer to non ERC721Receiver implementer"); } else { assembly { revert(add(32, reason), mload(reason)) } } } } else { return true; } } /** * @dev Hook that is called before any token transfer. This includes minting * and burning. * * Calling conditions: * * - When `from` and `to` are both non-zero, ``from``'s `tokenId` will be * transferred to `to`. * - When `from` is zero, `tokenId` will be minted for `to`. * - When `to` is zero, ``from``'s `tokenId` will be burned. * - `from` and `to` are never both zero. * * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks]. */ function _beforeTokenTransfer( address from, address to, uint256 tokenId ) internal virtual {} }
// 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 "../ERC721.sol"; /** * @dev ERC721 token with storage based token URI management. */ abstract contract ERC721URIStorage is ERC721 { using Strings for uint256; // Optional mapping for token URIs mapping(uint256 => string) private _tokenURIs; /** * @dev See {IERC721Metadata-tokenURI}. */ function tokenURI(uint256 tokenId) public view virtual override returns (string memory) { require(_exists(tokenId), "ERC721URIStorage: URI query for nonexistent token"); string memory _tokenURI = _tokenURIs[tokenId]; string memory base = _baseURI(); // If there is no base URI, return the token URI. if (bytes(base).length == 0) { return _tokenURI; } // If both are set, concatenate the baseURI and tokenURI (via abi.encodePacked). if (bytes(_tokenURI).length > 0) { return string(abi.encodePacked(base, _tokenURI)); } return super.tokenURI(tokenId); } /** * @dev Sets `_tokenURI` as the tokenURI of `tokenId`. * * Requirements: * * - `tokenId` must exist. */ function _setTokenURI(uint256 tokenId, string memory _tokenURI) internal virtual { require(_exists(tokenId), "ERC721URIStorage: URI set of nonexistent token"); _tokenURIs[tokenId] = _tokenURI; } /** * @dev Destroys `tokenId`. * The approval is cleared when the token is burned. * * Requirements: * * - `tokenId` must exist. * * Emits a {Transfer} event. */ function _burn(uint256 tokenId) internal virtual override { super._burn(tokenId); if (bytes(_tokenURIs[tokenId]).length != 0) { delete _tokenURIs[tokenId]; } } }
// SPDX-License-Identifier: UNLICENSED pragma solidity ^0.8.0; import {SafeMath} from "@openzeppelin/contracts/utils/math/SafeMath.sol"; import {EIP712Base} from "./EIP712Base.sol"; contract NativeMetaTransaction is EIP712Base { using SafeMath for uint256; bytes32 private constant META_TRANSACTION_TYPEHASH = keccak256( bytes( "MetaTransaction(uint256 nonce,address from,bytes functionSignature)" ) ); event MetaTransactionExecuted( address userAddress, address payable relayerAddress, bytes functionSignature ); mapping(address => uint256) nonces; /* * Meta transaction structure. * No point of including value field here as if user is doing value transfer then he has the funds to pay for gas * He should call the desired function directly in that case. */ struct MetaTransaction { uint256 nonce; address from; bytes functionSignature; } function executeMetaTransaction( address userAddress, bytes memory functionSignature, bytes32 sigR, bytes32 sigS, uint8 sigV ) public payable returns (bytes memory) { MetaTransaction memory metaTx = MetaTransaction({ nonce: nonces[userAddress], from: userAddress, functionSignature: functionSignature }); require( verify(userAddress, metaTx, sigR, sigS, sigV), "Signer and signature do not match" ); // increase nonce for user (to avoid re-use) nonces[userAddress] = nonces[userAddress].add(1); emit MetaTransactionExecuted( userAddress, payable(msg.sender), functionSignature ); // Append userAddress and relayer address at the end to extract it from calling context (bool success, bytes memory returnData) = address(this).call( abi.encodePacked(functionSignature, userAddress) ); require(success, "Function call not successful"); return returnData; } function hashMetaTransaction(MetaTransaction memory metaTx) internal pure returns (bytes32) { return keccak256( abi.encode( META_TRANSACTION_TYPEHASH, metaTx.nonce, metaTx.from, keccak256(metaTx.functionSignature) ) ); } function getNonce(address user) public view returns (uint256 nonce) { nonce = nonces[user]; } function verify( address signer, MetaTransaction memory metaTx, bytes32 sigR, bytes32 sigS, uint8 sigV ) internal view returns (bool) { require(signer != address(0), "NativeMetaTransaction: INVALID_SIGNER"); return signer == ecrecover( toTypedMessageHash(hashMetaTransaction(metaTx)), sigV, sigR, sigS ); } }
// SPDX-License-Identifier: UNLICENSED pragma solidity ^0.8.0; import {IERC721} from "@openzeppelin/contracts/token/ERC721/IERC721.sol"; interface IMintableERC721 is IERC721 { /** * @notice called by predicate contract to mint tokens while withdrawing * @dev Should be callable only by MintableERC721Predicate * Make sure minting is done only by this function * @param user user address for whom token is being minted * @param tokenId tokenId being minted */ function mint(address user, uint256 tokenId) external; /** * @notice called by predicate contract to mint tokens while withdrawing with metadata from L2 * @dev Should be callable only by MintableERC721Predicate * Make sure minting is only done either by this function/ � * @param user user address for whom token is being minted * @param tokenId tokenId being minted * @param metaData Associated token metadata, to be decoded & set using `setTokenMetadata` * * Note : If you're interested in taking token metadata from L2 to L1 during exit, you must * implement this method */ function mint( address user, uint256 tokenId, bytes calldata metaData ) external; /** * @notice check if token already exists, return true if it does exist * @dev this check will be used by the predicate to determine if the token needs to be minted or transfered * @param tokenId tokenId being checked */ function exists(uint256 tokenId) external view returns (bool); }
// SPDX-License-Identifier: UNLICENSED pragma solidity ^0.8.0; abstract contract ContextMixin { function msgSender() internal view returns (address payable sender) { if (msg.sender == address(this)) { bytes memory array = msg.data; uint256 index = msg.data.length; assembly { // Load the 32 bytes word from memory with the address on the lower 20 bytes, and mask those. sender := and( mload(add(array, index)), 0xffffffffffffffffffffffffffffffffffffffff ) } } else { sender = payable(msg.sender); } return sender; } }
// SPDX-License-Identifier: UNLICENSED pragma solidity ^0.8.0; interface IAvatarMinter { function allocatedAvatars(uint256 tokenId) external view returns (address); }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import "./ERC165.sol"; /** * @dev Storage based implementation of the {IERC165} interface. * * Contracts may inherit from this and call {_registerInterface} to declare * their support of an interface. */ abstract contract ERC165Storage is ERC165 { /** * @dev Mapping of interface ids to whether or not it's supported. */ mapping(bytes4 => bool) private _supportedInterfaces; /** * @dev See {IERC165-supportsInterface}. */ function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) { return super.supportsInterface(interfaceId) || _supportedInterfaces[interfaceId]; } /** * @dev Registers the contract as an implementer of the interface defined by * `interfaceId`. Support of the actual ERC165 interface is automatic and * registering its interface id is not required. * * See {IERC165-supportsInterface}. * * Requirements: * * - `interfaceId` cannot be the ERC165 invalid interface (`0xffffffff`). */ function _registerInterface(bytes4 interfaceId) internal virtual { require(interfaceId != 0xffffffff, "ERC165: invalid interface id"); _supportedInterfaces[interfaceId] = true; } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import "../utils/Context.sol"; /** * @dev Contract module which allows children to implement an emergency stop * mechanism that can be triggered by an authorized account. * * This module is used through inheritance. It will make available the * modifiers `whenNotPaused` and `whenPaused`, which can be applied to * the functions of your contract. Note that they will not be pausable by * simply including this module, only once the modifiers are put in place. */ abstract contract Pausable is Context { /** * @dev Emitted when the pause is triggered by `account`. */ event Paused(address account); /** * @dev Emitted when the pause is lifted by `account`. */ event Unpaused(address account); bool private _paused; /** * @dev Initializes the contract in unpaused state. */ constructor() { _paused = false; } /** * @dev Returns true if the contract is paused, and false otherwise. */ function paused() public view virtual returns (bool) { return _paused; } /** * @dev Modifier to make a function callable only when the contract is not paused. * * Requirements: * * - The contract must not be paused. */ modifier whenNotPaused() { require(!paused(), "Pausable: paused"); _; } /** * @dev Modifier to make a function callable only when the contract is paused. * * Requirements: * * - The contract must be paused. */ modifier whenPaused() { require(paused(), "Pausable: not paused"); _; } /** * @dev Triggers stopped state. * * Requirements: * * - The contract must not be paused. */ function _pause() internal virtual whenNotPaused { _paused = true; emit Paused(_msgSender()); } /** * @dev Returns to normal state. * * Requirements: * * - The contract must be paused. */ function _unpause() internal virtual whenPaused { _paused = false; emit Unpaused(_msgSender()); } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import "./IERC165.sol"; /** * @dev Interface for the NFT Royalty Standard */ interface IERC2981 is IERC165 { /** * @dev Called with the sale price to determine how much royalty is owed and to whom. * @param tokenId - the NFT asset queried for royalty information * @param salePrice - the sale price of the NFT asset specified by `tokenId` * @return receiver - address of who should be sent the royalty payment * @return royaltyAmount - the royalty payment amount for `salePrice` */ function royaltyInfo(uint256 tokenId, uint256 salePrice) external view returns (address receiver, uint256 royaltyAmount); }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import "../../utils/introspection/IERC165.sol"; /** * @dev Required interface of an ERC721 compliant contract. */ interface IERC721 is IERC165 { /** * @dev Emitted when `tokenId` token is transferred from `from` to `to`. */ event Transfer(address indexed from, address indexed to, uint256 indexed tokenId); /** * @dev Emitted when `owner` enables `approved` to manage the `tokenId` token. */ event Approval(address indexed owner, address indexed approved, uint256 indexed tokenId); /** * @dev Emitted when `owner` enables or disables (`approved`) `operator` to manage all of its assets. */ event ApprovalForAll(address indexed owner, address indexed operator, bool approved); /** * @dev Returns the number of tokens in ``owner``'s account. */ function balanceOf(address owner) external view returns (uint256 balance); /** * @dev Returns the owner of the `tokenId` token. * * Requirements: * * - `tokenId` must exist. */ function ownerOf(uint256 tokenId) external view returns (address owner); /** * @dev Safely transfers `tokenId` token from `from` to `to`, 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 ) external; /** * @dev Transfers `tokenId` token from `from` to `to`. * * WARNING: Usage of this method is discouraged, use {safeTransferFrom} whenever possible. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must be owned by `from`. * - If the caller is not `from`, it must be approved to move this token by either {approve} or {setApprovalForAll}. * * Emits a {Transfer} event. */ function transferFrom( address from, address to, uint256 tokenId ) external; /** * @dev Gives permission to `to` to transfer `tokenId` token to another account. * The approval is cleared when the token is transferred. * * Only a single account can be approved at a time, so approving the zero address clears previous approvals. * * Requirements: * * - The caller must own the token or be an approved operator. * - `tokenId` must exist. * * Emits an {Approval} event. */ function approve(address to, uint256 tokenId) external; /** * @dev Returns the account approved for `tokenId` token. * * Requirements: * * - `tokenId` must exist. */ function getApproved(uint256 tokenId) external view returns (address operator); /** * @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 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); /** * @dev Safely transfers `tokenId` token from `from` to `to`. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must exist and be owned by `from`. * - If the caller is not `from`, it must be approved to move this token by either {approve} or {setApprovalForAll}. * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */ function safeTransferFrom( address from, address to, uint256 tokenId, bytes calldata data ) external; }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; /** * @title ERC721 token receiver interface * @dev Interface for any contract that wants to support safeTransfers * from ERC721 asset contracts. */ interface IERC721Receiver { /** * @dev Whenever an {IERC721} `tokenId` token is transferred to this contract via {IERC721-safeTransferFrom} * by `operator` from `from`, this function is called. * * It must return its Solidity selector to confirm the token transfer. * If any other value is returned or the interface is not implemented by the recipient, the transfer will be reverted. * * The selector can be obtained in Solidity with `IERC721.onERC721Received.selector`. */ function onERC721Received( address operator, address from, uint256 tokenId, bytes calldata data ) external returns (bytes4); }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import "../IERC721.sol"; /** * @title ERC-721 Non-Fungible Token Standard, optional metadata extension * @dev See https://eips.ethereum.org/EIPS/eip-721 */ interface IERC721Metadata is IERC721 { /** * @dev Returns the token collection name. */ function name() external view returns (string memory); /** * @dev Returns the token collection symbol. */ function symbol() external view returns (string memory); /** * @dev Returns the Uniform Resource Identifier (URI) for `tokenId` token. */ function tokenURI(uint256 tokenId) external view returns (string memory); }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; /** * @dev Collection of functions related to the address type */ library Address { /** * @dev Returns true if `account` is a contract. * * [IMPORTANT] * ==== * It is unsafe to assume that an address for which this function returns * false is an externally-owned account (EOA) and not a contract. * * Among others, `isContract` will return false for the following * types of addresses: * * - an externally-owned account * - a contract in construction * - an address where a contract will be created * - an address where a contract lived, but was destroyed * ==== */ function isContract(address account) internal view returns (bool) { // This method relies on extcodesize, which returns 0 for contracts in // construction, since the code is only stored at the end of the // constructor execution. uint256 size; assembly { size := extcodesize(account) } return size > 0; } /** * @dev Replacement for Solidity's `transfer`: sends `amount` wei to * `recipient`, forwarding all available gas and reverting on errors. * * https://eips.ethereum.org/EIPS/eip-1884[EIP1884] increases the gas cost * of certain opcodes, possibly making contracts go over the 2300 gas limit * imposed by `transfer`, making them unable to receive funds via * `transfer`. {sendValue} removes this limitation. * * https://diligence.consensys.net/posts/2019/09/stop-using-soliditys-transfer-now/[Learn more]. * * IMPORTANT: because control is transferred to `recipient`, care must be * taken to not create reentrancy vulnerabilities. Consider using * {ReentrancyGuard} or the * https://solidity.readthedocs.io/en/v0.5.11/security-considerations.html#use-the-checks-effects-interactions-pattern[checks-effects-interactions pattern]. */ function sendValue(address payable recipient, uint256 amount) internal { require(address(this).balance >= amount, "Address: insufficient balance"); (bool success, ) = recipient.call{value: amount}(""); require(success, "Address: unable to send value, recipient may have reverted"); } /** * @dev Performs a Solidity function call using a low level `call`. A * plain `call` is an unsafe replacement for a function call: use this * function instead. * * If `target` reverts with a revert reason, it is bubbled up by this * function (like regular Solidity function calls). * * Returns the raw returned data. To convert to the expected return value, * use https://solidity.readthedocs.io/en/latest/units-and-global-variables.html?highlight=abi.decode#abi-encoding-and-decoding-functions[`abi.decode`]. * * Requirements: * * - `target` must be a contract. * - calling `target` with `data` must not revert. * * _Available since v3.1._ */ function functionCall(address target, bytes memory data) internal returns (bytes memory) { return functionCall(target, data, "Address: low-level call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], but with * `errorMessage` as a fallback revert reason when `target` reverts. * * _Available since v3.1._ */ function functionCall( address target, bytes memory data, string memory errorMessage ) internal returns (bytes memory) { return functionCallWithValue(target, data, 0, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but also transferring `value` wei to `target`. * * Requirements: * * - the calling contract must have an ETH balance of at least `value`. * - the called Solidity function must be `payable`. * * _Available since v3.1._ */ function functionCallWithValue( address target, bytes memory data, uint256 value ) internal returns (bytes memory) { return functionCallWithValue(target, data, value, "Address: low-level call with value failed"); } /** * @dev Same as {xref-Address-functionCallWithValue-address-bytes-uint256-}[`functionCallWithValue`], but * with `errorMessage` as a fallback revert reason when `target` reverts. * * _Available since v3.1._ */ function functionCallWithValue( address target, bytes memory data, uint256 value, string memory errorMessage ) internal returns (bytes memory) { require(address(this).balance >= value, "Address: insufficient balance for call"); require(isContract(target), "Address: call to non-contract"); (bool success, bytes memory returndata) = target.call{value: value}(data); return verifyCallResult(success, returndata, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but performing a static call. * * _Available since v3.3._ */ function functionStaticCall(address target, bytes memory data) internal view returns (bytes memory) { return functionStaticCall(target, data, "Address: low-level static call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`], * but performing a static call. * * _Available since v3.3._ */ function functionStaticCall( address target, bytes memory data, string memory errorMessage ) internal view returns (bytes memory) { require(isContract(target), "Address: static call to non-contract"); (bool success, bytes memory returndata) = target.staticcall(data); return verifyCallResult(success, returndata, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but performing a delegate call. * * _Available since v3.4._ */ function functionDelegateCall(address target, bytes memory data) internal returns (bytes memory) { return functionDelegateCall(target, data, "Address: low-level delegate call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`], * but performing a delegate call. * * _Available since v3.4._ */ function functionDelegateCall( address target, bytes memory data, string memory errorMessage ) internal returns (bytes memory) { require(isContract(target), "Address: delegate call to non-contract"); (bool success, bytes memory returndata) = target.delegatecall(data); return verifyCallResult(success, returndata, errorMessage); } /** * @dev Tool to verifies that a low level call was successful, and revert if it wasn't, either by bubbling the * revert reason using the provided one. * * _Available since v4.3._ */ function verifyCallResult( bool success, bytes memory returndata, string memory errorMessage ) internal pure returns (bytes memory) { if (success) { return returndata; } else { // Look for revert reason and bubble it up if present if (returndata.length > 0) { // The easiest way to bubble the revert reason is using memory via assembly assembly { let returndata_size := mload(returndata) revert(add(32, returndata), returndata_size) } } else { revert(errorMessage); } } } }
// 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 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); }
// 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; // CAUTION // This version of SafeMath should only be used with Solidity 0.8 or later, // because it relies on the compiler's built in overflow checks. /** * @dev Wrappers over Solidity's arithmetic operations. * * NOTE: `SafeMath` is no longer needed starting with Solidity 0.8. The compiler * now has built in overflow checking. */ library SafeMath { /** * @dev Returns the addition of two unsigned integers, with an overflow flag. * * _Available since v3.4._ */ function tryAdd(uint256 a, uint256 b) internal pure returns (bool, uint256) { unchecked { uint256 c = a + b; if (c < a) return (false, 0); return (true, c); } } /** * @dev Returns the substraction of two unsigned integers, with an overflow flag. * * _Available since v3.4._ */ function trySub(uint256 a, uint256 b) internal pure returns (bool, uint256) { unchecked { if (b > a) return (false, 0); return (true, a - b); } } /** * @dev Returns the multiplication of two unsigned integers, with an overflow flag. * * _Available since v3.4._ */ function tryMul(uint256 a, uint256 b) internal pure returns (bool, uint256) { unchecked { // Gas optimization: this is cheaper than requiring 'a' not being zero, but the // benefit is lost if 'b' is also tested. // See: https://github.com/OpenZeppelin/openzeppelin-contracts/pull/522 if (a == 0) return (true, 0); uint256 c = a * b; if (c / a != b) return (false, 0); return (true, c); } } /** * @dev Returns the division of two unsigned integers, with a division by zero flag. * * _Available since v3.4._ */ function tryDiv(uint256 a, uint256 b) internal pure returns (bool, uint256) { unchecked { if (b == 0) return (false, 0); return (true, a / b); } } /** * @dev Returns the remainder of dividing two unsigned integers, with a division by zero flag. * * _Available since v3.4._ */ function tryMod(uint256 a, uint256 b) internal pure returns (bool, uint256) { unchecked { if (b == 0) return (false, 0); return (true, a % b); } } /** * @dev Returns the addition of two unsigned integers, reverting on * overflow. * * Counterpart to Solidity's `+` operator. * * Requirements: * * - Addition cannot overflow. */ function add(uint256 a, uint256 b) internal pure returns (uint256) { return a + b; } /** * @dev Returns the subtraction of two unsigned integers, reverting on * overflow (when the result is negative). * * Counterpart to Solidity's `-` operator. * * Requirements: * * - Subtraction cannot overflow. */ function sub(uint256 a, uint256 b) internal pure returns (uint256) { return a - b; } /** * @dev Returns the multiplication of two unsigned integers, reverting on * overflow. * * Counterpart to Solidity's `*` operator. * * Requirements: * * - Multiplication cannot overflow. */ function mul(uint256 a, uint256 b) internal pure returns (uint256) { return a * b; } /** * @dev Returns the integer division of two unsigned integers, reverting on * division by zero. The result is rounded towards zero. * * Counterpart to Solidity's `/` operator. * * Requirements: * * - The divisor cannot be zero. */ function div(uint256 a, uint256 b) internal pure returns (uint256) { return a / b; } /** * @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo), * reverting when dividing by zero. * * Counterpart to Solidity's `%` operator. This function uses a `revert` * opcode (which leaves remaining gas untouched) while Solidity uses an * invalid opcode to revert (consuming all remaining gas). * * Requirements: * * - The divisor cannot be zero. */ function mod(uint256 a, uint256 b) internal pure returns (uint256) { return a % b; } /** * @dev Returns the subtraction of two unsigned integers, reverting with custom message on * overflow (when the result is negative). * * CAUTION: This function is deprecated because it requires allocating memory for the error * message unnecessarily. For custom revert reasons use {trySub}. * * Counterpart to Solidity's `-` operator. * * Requirements: * * - Subtraction cannot overflow. */ function sub( uint256 a, uint256 b, string memory errorMessage ) internal pure returns (uint256) { unchecked { require(b <= a, errorMessage); return a - b; } } /** * @dev Returns the integer division of two unsigned integers, reverting with custom message on * division by zero. The result is rounded towards zero. * * Counterpart to Solidity's `/` operator. Note: this function uses a * `revert` opcode (which leaves remaining gas untouched) while Solidity * uses an invalid opcode to revert (consuming all remaining gas). * * Requirements: * * - The divisor cannot be zero. */ function div( uint256 a, uint256 b, string memory errorMessage ) internal pure returns (uint256) { unchecked { require(b > 0, errorMessage); return a / b; } } /** * @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo), * reverting with custom message when dividing by zero. * * CAUTION: This function is deprecated because it requires allocating memory for the error * message unnecessarily. For custom revert reasons use {tryMod}. * * Counterpart to Solidity's `%` operator. This function uses a `revert` * opcode (which leaves remaining gas untouched) while Solidity uses an * invalid opcode to revert (consuming all remaining gas). * * Requirements: * * - The divisor cannot be zero. */ function mod( uint256 a, uint256 b, string memory errorMessage ) internal pure returns (uint256) { unchecked { require(b > 0, errorMessage); return a % b; } } }
// SPDX-License-Identifier: UNLICENSED pragma solidity ^0.8.0; import {Initializable} from "./Initializable.sol"; contract EIP712Base is Initializable { struct EIP712Domain { string name; string version; address verifyingContract; bytes32 salt; } string public constant ERC712_VERSION = "1"; bytes32 internal constant EIP712_DOMAIN_TYPEHASH = keccak256( bytes( "EIP712Domain(string name,string version,address verifyingContract,bytes32 salt)" ) ); bytes32 internal domainSeperator; // supposed to be called once while initializing. // one of the contractsa that inherits this contract follows proxy pattern // so it is not possible to do this in a constructor function _initializeEIP712(string memory name) internal initializer { _setDomainSeperator(name); } function _setDomainSeperator(string memory name) internal { domainSeperator = keccak256( abi.encode( EIP712_DOMAIN_TYPEHASH, keccak256(bytes(name)), keccak256(bytes(ERC712_VERSION)), address(this), bytes32(getChainId()) ) ); } function getDomainSeperator() public view returns (bytes32) { return domainSeperator; } function getChainId() public view returns (uint256) { uint256 id; assembly { id := chainid() } return id; } /** * Accept message hash and returns hash message in EIP712 compatible form * So that it can be used to recover signer from signature signed using EIP712 formatted data * https://eips.ethereum.org/EIPS/eip-712 * "\\x19" makes the encoding deterministic * "\\x01" is the version byte to make it compatible to EIP-191 */ function toTypedMessageHash(bytes32 messageHash) internal view returns (bytes32) { return keccak256( abi.encodePacked("\x19\x01", getDomainSeperator(), messageHash) ); } }
// SPDX-License-Identifier: UNLICENSED pragma solidity ^0.8.0; contract Initializable { bool inited = false; modifier initializer() { require(!inited, "already inited"); _; inited = true; } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import "../utils/introspection/IERC165.sol";
{ "optimizer": { "enabled": true, "runs": 200 }, "outputSelection": { "*": { "*": [ "evm.bytecode", "evm.deployedBytecode", "devdoc", "userdoc", "metadata", "abi" ] } }, "libraries": {} }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"inputs":[{"internalType":"string","name":"name_","type":"string"},{"internalType":"string","name":"symbol_","type":"string"},{"internalType":"string","name":"url_","type":"string"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"approved","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":false,"internalType":"bool","name":"approved","type":"bool"}],"name":"ApprovalForAll","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"owner","type":"address"}],"name":"AvatarPaused","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"owner","type":"address"}],"name":"AvatarUnpaused","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"userAddress","type":"address"},{"indexed":false,"internalType":"address payable","name":"relayerAddress","type":"address"},{"indexed":false,"internalType":"bytes","name":"functionSignature","type":"bytes"}],"name":"MetaTransactionExecuted","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"account","type":"address"}],"name":"Paused","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"bytes32","name":"role","type":"bytes32"},{"indexed":true,"internalType":"bytes32","name":"previousAdminRole","type":"bytes32"},{"indexed":true,"internalType":"bytes32","name":"newAdminRole","type":"bytes32"}],"name":"RoleAdminChanged","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"bytes32","name":"role","type":"bytes32"},{"indexed":true,"internalType":"address","name":"account","type":"address"},{"indexed":true,"internalType":"address","name":"sender","type":"address"}],"name":"RoleGranted","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"bytes32","name":"role","type":"bytes32"},{"indexed":true,"internalType":"address","name":"account","type":"address"},{"indexed":true,"internalType":"address","name":"sender","type":"address"}],"name":"RoleRevoked","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Transfer","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"account","type":"address"}],"name":"Unpaused","type":"event"},{"inputs":[],"name":"DEFAULT_ADMIN_ROLE","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"ERC712_VERSION","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"PREDICATE_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":"nonpayable","type":"function"},{"inputs":[],"name":"auctionAddress","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"avatarMinter","outputs":[{"internalType":"contract IAvatarMinter","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"baseURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"userAddress","type":"address"},{"internalType":"bytes","name":"functionSignature","type":"bytes"},{"internalType":"bytes32","name":"sigR","type":"bytes32"},{"internalType":"bytes32","name":"sigS","type":"bytes32"},{"internalType":"uint8","name":"sigV","type":"uint8"}],"name":"executeMetaTransaction","outputs":[{"internalType":"bytes","name":"","type":"bytes"}],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"exists","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getApproved","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getChainId","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getDomainSeperator","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"user","type":"address"}],"name":"getNonce","outputs":[{"internalType":"uint256","name":"nonce","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"}],"name":"getRoleAdmin","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"},{"internalType":"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":"address","name":"user","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"mint","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"user","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"bytes","name":"metaData","type":"bytes"}],"name":"mint","outputs":[],"stateMutability":"nonpayable","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":"pause","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"paused","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"},{"internalType":"address","name":"account","type":"address"}],"name":"renounceRole","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"},{"internalType":"address","name":"account","type":"address"}],"name":"revokeRole","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"uint256","name":"salePrice","type":"uint256"}],"name":"royaltyInfo","outputs":[{"internalType":"address","name":"receiver","type":"address"},{"internalType":"uint256","name":"royaltyAmount","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"bytes","name":"_data","type":"bytes"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"operator","type":"address"},{"internalType":"bool","name":"approved","type":"bool"}],"name":"setApprovalForAll","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_auctionAddress","type":"address"}],"name":"setAuctionAddress","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_minterAddress","type":"address"}],"name":"setAvatarMinter","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"royaltyAddress","type":"address"}],"name":"setRoyaltyAddress","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"royaltyPercentage","type":"uint256"}],"name":"setRoyaltyPercentage","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":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"transferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"unpause","outputs":[],"stateMutability":"nonpayable","type":"function"}]
Contract Creation Code
60806040526001805460ff191690553480156200001b57600080fd5b50604051620038b1380380620038b18339810160408190526200003e9162000540565b82518390839062000057906004906020850190620003ef565b5080516200006d906005906020840190620003ef565b5050506200008a620000846200011a60201b60201c565b6200011f565b600d805460ff19169055620000aa6000620000a462000171565b6200018d565b620000d97f12ff340d0cd9c652c747ca35727e68c547d0f0bfa7758d2e77f75acef481b4f2620000a462000171565b620000e4836200019d565b620000f663152a902d60e11b620001e6565b80516200010b90600f906020840190620003ef565b505042600e5550620006ab9050565b335b90565b600b80546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b6000620001886200023860201b620014561760201c565b905090565b62000199828262000296565b5050565b60015460ff1615620001cc5760405162461bcd60e51b8152600401620001c39062000630565b60405180910390fd5b620001d78162000320565b506001805460ff191681179055565b6001600160e01b03198082161415620002135760405162461bcd60e51b8152600401620001c390620005f9565b6001600160e01b0319166000908152600c60205260409020805460ff19166001179055565b6000333014156200029157600080368080601f0160208091040260200160405190810160405280939291908181526020018383808284376000920191909152505050503601516001600160a01b031691506200011c9050565b503390565b620002a28282620003c2565b62000199576000828152602081815260408083206001600160a01b03851684529091529020805460ff19166001179055620002dc6200011a565b6001600160a01b0316816001600160a01b0316837f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d60405160405180910390a45050565b6040518060800160405280604f815260200162003862604f913980516020918201208251838301206040805180820190915260018152603160f81b930192909252907fc89efdaa54c0f20c7adf612882df0950f5a951637e0307cdcb4c672f298b8bc6306200038e620003eb565b604051620003a4959493929190602001620005cd565b60408051601f19818403018152919052805160209091012060025550565b6000918252602082815260408084206001600160a01b0393909316845291905290205460ff1690565b4690565b828054620003fd9062000658565b90600052602060002090601f0160209004810192826200042157600085556200046c565b82601f106200043c57805160ff19168380011785556200046c565b828001600101855582156200046c579182015b828111156200046c5782518255916020019190600101906200044f565b506200047a9291506200047e565b5090565b5b808211156200047a57600081556001016200047f565b600082601f830112620004a6578081fd5b81516001600160401b0380821115620004c357620004c362000695565b6040516020601f8401601f1916820181018381118382101715620004eb57620004eb62000695565b604052838252858401810187101562000502578485fd5b8492505b8383101562000525578583018101518284018201529182019162000506565b838311156200053657848185840101525b5095945050505050565b60008060006060848603121562000555578283fd5b83516001600160401b03808211156200056c578485fd5b6200057a8783880162000495565b9450602086015191508082111562000590578384fd5b6200059e8783880162000495565b93506040860151915080821115620005b4578283fd5b50620005c38682870162000495565b9150509250925092565b948552602085019390935260408401919091526001600160a01b03166060830152608082015260a00190565b6020808252601c908201527f4552433136353a20696e76616c696420696e7465726661636520696400000000604082015260600190565b6020808252600e908201526d185b1c9958591e481a5b9a5d195960921b604082015260600190565b6002810460018216806200066d57607f821691505b602082108114156200068f57634e487b7160e01b600052602260045260246000fd5b50919050565b634e487b7160e01b600052604160045260246000fd5b6131a780620006bb6000396000f3fe6080604052600436106102515760003560e01c806361ba27da1161013957806395d89b41116100b6578063c87b56dd1161007a578063c87b56dd1461067c578063c98a7f1c1461069c578063d547741f146106bc578063e72db5fd146106dc578063e985e9c5146106f1578063f2fde38b1461071157610251565b806395d89b41146105fd578063a217fddf14610612578063a22cb46514610627578063b3ec4ca114610647578063b88d4fde1461065c57610251565b80638456cb59116100fd5780638456cb59146105735780638da5cb5b1461058857806391d148541461059d57806393ac3638146105bd57806394d008ef146105dd57610251565b806361ba27da146104e95780636352211e146105095780636c0360eb1461052957806370a082311461053e578063715018a61461055e57610251565b80632a55205a116101d25780633f4ba83a116101965780633f4ba83a1461044a57806340c10f191461045f57806342842e0e1461047f5780634f558e791461049f5780635476ea9e146104bf5780635c975abb146104d457610251565b80632a55205a146103a75780632d0335ab146103d55780632f2ff15d146103f55780633408e4701461041557806336568abe1461042a57610251565b80630c53c51c116102195780630c53c51c1461031d5780630f7e59701461033057806320379ee51461034557806323b872dd14610367578063248a9ca31461038757610251565b806301ffc9a71461025657806306d254da1461028c57806306fdde03146102ae578063081812fc146102d0578063095ea7b3146102fd575b600080fd5b34801561026257600080fd5b50610276610271366004612569565b610731565b6040516102839190612809565b60405180910390f35b34801561029857600080fd5b506102ac6102a73660046122ed565b610744565b005b3480156102ba57600080fd5b506102c36107d3565b604051610283919061285f565b3480156102dc57600080fd5b506102f06102eb36600461252f565b610866565b6040516102839190612773565b34801561030957600080fd5b506102ac610318366004612484565b6108a9565b6102c361032b36600461240b565b610941565b34801561033c57600080fd5b506102c3610ac1565b34801561035157600080fd5b5061035a610ade565b6040516102839190612814565b34801561037357600080fd5b506102ac610382366004612330565b610ae4565b34801561039357600080fd5b5061035a6103a236600461252f565b610b1c565b3480156103b357600080fd5b506103c76103c2366004612614565b610b31565b6040516102839291906127f0565b3480156103e157600080fd5b5061035a6103f03660046122ed565b610b8c565b34801561040157600080fd5b506102ac610410366004612547565b610ba7565b34801561042157600080fd5b5061035a610bcb565b34801561043657600080fd5b506102ac610445366004612547565b610bcf565b34801561045657600080fd5b506102ac610c15565b34801561046b57600080fd5b506102ac61047a366004612484565b610c9c565b34801561048b57600080fd5b506102ac61049a366004612330565b610ce6565b3480156104ab57600080fd5b506102766104ba36600461252f565b610d01565b3480156104cb57600080fd5b506102f0610d0c565b3480156104e057600080fd5b50610276610d1b565b3480156104f557600080fd5b506102ac61050436600461252f565b610d24565b34801561051557600080fd5b506102f061052436600461252f565b610d8d565b34801561053557600080fd5b506102c3610dc2565b34801561054a57600080fd5b5061035a6105593660046122ed565b610e50565b34801561056a57600080fd5b506102ac610e94565b34801561057f57600080fd5b506102ac610edf565b34801561059457600080fd5b506102f0610f4f565b3480156105a957600080fd5b506102766105b8366004612547565b610f5e565b3480156105c957600080fd5b506102ac6105d83660046122ed565b610f87565b3480156105e957600080fd5b506102ac6105f83660046124ad565b61100d565b34801561060957600080fd5b506102c361109e565b34801561061e57600080fd5b5061035a6110ad565b34801561063357600080fd5b506102ac6106423660046123d1565b6110b2565b34801561065357600080fd5b506102f0611180565b34801561066857600080fd5b506102ac61067736600461236b565b61118f565b34801561068857600080fd5b506102c361069736600461252f565b6111ce565b3480156106a857600080fd5b506102ac6106b73660046122ed565b6112ef565b3480156106c857600080fd5b506102ac6106d7366004612547565b611389565b3480156106e857600080fd5b5061035a6113a8565b3480156106fd57600080fd5b5061027661070c366004612307565b6113ba565b34801561071d57600080fd5b506102ac61072c3660046122ed565b6113e8565b600061073c826114b2565b90505b919050565b61074c610d1b565b156107725760405162461bcd60e51b815260040161076990612ae7565b60405180910390fd5b61077a6114e3565b6001600160a01b031661078b610f4f565b6001600160a01b0316146107b15760405162461bcd60e51b815260040161076990612d21565b601380546001600160a01b0319166001600160a01b0392909216919091179055565b6060600480546107e29061304c565b80601f016020809104026020016040519081016040528092919081815260200182805461080e9061304c565b801561085b5780601f106108305761010080835404028352916020019161085b565b820191906000526020600020905b81548152906001019060200180831161083e57829003601f168201915b505050505090505b90565b6000610871826114e7565b61088d5760405162461bcd60e51b815260040161076990612cd5565b506000908152600860205260409020546001600160a01b031690565b60006108b482610d8d565b9050806001600160a01b0316836001600160a01b031614156108e85760405162461bcd60e51b815260040161076990612e2f565b806001600160a01b03166108fa6114e3565b6001600160a01b0316148061091657506109168161070c6114e3565b6109325760405162461bcd60e51b815260040161076990612b11565b61093c8383611504565b505050565b60408051606081810183526001600160a01b0388166000818152600360209081529085902054845283015291810186905261097f8782878787611572565b61099b5760405162461bcd60e51b815260040161076990612d9f565b6001600160a01b0387166000908152600360205260409020546109bf906001611618565b6001600160a01b0388166000908152600360205260409081902091909155517f5845892132946850460bff5a0083f71031bc5bf9aadcd40f1de79423eac9b10b90610a0f90899033908a90612787565b60405180910390a1600080306001600160a01b0316888a604051602001610a3792919061267d565b60408051601f1981840301815290829052610a5191612661565b6000604051808303816000865af19150503d8060008114610a8e576040519150601f19603f3d011682016040523d82523d6000602084013e610a93565b606091505b509150915081610ab55760405162461bcd60e51b81526004016107699061296d565b98975050505050505050565b604051806040016040528060018152602001603160f81b81525081565b60025490565b610af5610aef6114e3565b8261162b565b610b115760405162461bcd60e51b815260040161076990612e70565b61093c8383836116a8565b60009081526020819052604090206001015490565b600080610b3c610d1b565b15610b595760405162461bcd60e51b815260040161076990612ae7565b6013546012546001600160a01b039091169250606490610b799085612fd3565b610b839190612fbf565b90509250929050565b6001600160a01b031660009081526003602052604090205490565b610bb082610b1c565b610bc181610bbc6114e3565b6117d5565b61093c8383611839565b4690565b610bd76114e3565b6001600160a01b0316816001600160a01b031614610c075760405162461bcd60e51b815260040161076990612f06565b610c1182826118be565b5050565b610c1d6114e3565b6001600160a01b0316610c2e610f4f565b6001600160a01b031614610c545760405162461bcd60e51b815260040161076990612d21565b610c5c611941565b7fd50fc9e699f0588bd5a228783c613a475df9d14e863e66eec005864140b514f8610c85611456565b604051610c929190612773565b60405180910390a1565b600080516020613152833981519152610cb781610bbc6114e3565b610cbf610d1b565b15610cdc5760405162461bcd60e51b815260040161076990612ae7565b61093c8383611998565b61093c8383836040518060200160405280600081525061118f565b600061073c826114e7565b6011546001600160a01b031681565b600d5460ff1690565b610d2c610d1b565b15610d495760405162461bcd60e51b815260040161076990612ae7565b610d516114e3565b6001600160a01b0316610d62610f4f565b6001600160a01b031614610d885760405162461bcd60e51b815260040161076990612d21565b601255565b6000818152600660205260408120546001600160a01b03168061073c5760405162461bcd60e51b815260040161076990612bb8565b600f8054610dcf9061304c565b80601f0160208091040260200160405190810160405280929190818152602001828054610dfb9061304c565b8015610e485780601f10610e1d57610100808354040283529160200191610e48565b820191906000526020600020905b815481529060010190602001808311610e2b57829003601f168201915b505050505081565b60006001600160a01b038216610e785760405162461bcd60e51b815260040161076990612b6e565b506001600160a01b031660009081526007602052604090205490565b610e9c6114e3565b6001600160a01b0316610ead610f4f565b6001600160a01b031614610ed35760405162461bcd60e51b815260040161076990612d21565b610edd6000611a77565b565b610ee76114e3565b6001600160a01b0316610ef8610f4f565b6001600160a01b031614610f1e5760405162461bcd60e51b815260040161076990612d21565b610f26611ac9565b7fae3ff991a1d5c4ac2e2a74544d4d0e1a7ecd05afddcfcb6044fd4ebc9323329d610c85611456565b600b546001600160a01b031690565b6000918252602082815260408084206001600160a01b0393909316845291905290205460ff1690565b610f8f610d1b565b15610fac5760405162461bcd60e51b815260040161076990612ae7565b610fb46114e3565b6001600160a01b0316610fc5610f4f565b6001600160a01b031614610feb5760405162461bcd60e51b815260040161076990612d21565b601180546001600160a01b0319166001600160a01b0392909216919091179055565b60008051602061315283398151915261102881610bbc6114e3565b611030610d1b565b1561104d5760405162461bcd60e51b815260040161076990612ae7565b6110578585611998565b6110978484848080601f016020809104026020016040519081016040528093929190818152602001838380828437600092019190915250611b2492505050565b5050505050565b6060600580546107e29061304c565b600081565b6110ba6114e3565b6001600160a01b0316826001600160a01b031614156110eb5760405162461bcd60e51b815260040161076990612a1f565b80600960006110f86114e3565b6001600160a01b03908116825260208083019390935260409182016000908120918716808252919093529120805460ff19169215159290921790915561113c6114e3565b6001600160a01b03167f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31836040516111749190612809565b60405180910390a35050565b6010546001600160a01b031681565b6111a061119a6114e3565b8361162b565b6111bc5760405162461bcd60e51b815260040161076990612e70565b6111c884848484611b6b565b50505050565b60606111d9826114e7565b6111f55760405162461bcd60e51b815260040161076990612c84565b6000828152600a60205260408120805461120e9061304c565b80601f016020809104026020016040519081016040528092919081815260200182805461123a9061304c565b80156112875780601f1061125c57610100808354040283529160200191611287565b820191906000526020600020905b81548152906001019060200180831161126a57829003601f168201915b505050505090506000611298611b9e565b90508051600014156112ac5750905061073f565b8151156112de5780826040516020016112c69291906126b4565b6040516020818303038152906040529250505061073f565b6112e784611bad565b949350505050565b6112f7610d1b565b156113145760405162461bcd60e51b815260040161076990612ae7565b61131c6114e3565b6001600160a01b031661132d610f4f565b6001600160a01b0316146113535760405162461bcd60e51b815260040161076990612d21565b601080546001600160a01b0319166001600160a01b03831617905561138660008051602061315283398151915282611c2f565b50565b61139282610b1c565b61139e81610bbc6114e3565b61093c83836118be565b60008051602061315283398151915281565b6001600160a01b03918216600090815260096020908152604080832093909416825291909152205460ff1690565b6113f06114e3565b6001600160a01b0316611401610f4f565b6001600160a01b0316146114275760405162461bcd60e51b815260040161076990612d21565b6001600160a01b03811661144d5760405162461bcd60e51b815260040161076990612927565b61138681611a77565b6000333014156114ad57600080368080601f0160208091040260200160405190810160405280939291908181526020018383808284376000920191909152505050503601516001600160a01b031691506108639050565b503390565b60006114bd82611c39565b8061073c5750506001600160e01b0319166000908152600c602052604090205460ff1690565b3390565b6000908152600660205260409020546001600160a01b0316151590565b600081815260086020526040902080546001600160a01b0319166001600160a01b038416908117909155819061153982610d8d565b6001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b60006001600160a01b03861661159a5760405162461bcd60e51b815260040161076990612aa2565b60016115ad6115a887611c79565b611cd7565b838686604051600081526020016040526040516115cd9493929190612841565b6020604051602081039080840390855afa1580156115ef573d6000803e3d6000fd5b505050602060405103516001600160a01b0316866001600160a01b031614905095945050505050565b60006116248284612fa7565b9392505050565b6000611636826114e7565b6116525760405162461bcd60e51b815260040161076990612a56565b600061165d83610d8d565b9050806001600160a01b0316846001600160a01b031614806116985750836001600160a01b031661168d84610866565b6001600160a01b0316145b806112e757506112e781856113ba565b826001600160a01b03166116bb82610d8d565b6001600160a01b0316146116e15760405162461bcd60e51b815260040161076990612d56565b6001600160a01b0382166117075760405162461bcd60e51b8152600401610769906129db565b611712838383611cf3565b61171d600082611504565b6001600160a01b0383166000908152600760205260408120805460019290611746908490612ff2565b90915550506001600160a01b0382166000908152600760205260408120805460019290611774908490612fa7565b909155505060008181526006602052604080822080546001600160a01b0319166001600160a01b0386811691821790925591518493918716917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91a4505050565b6117df8282610f5e565b610c11576117f7816001600160a01b03166014611d7c565b611802836020611d7c565b6040516020016118139291906126fe565b60408051601f198184030181529082905262461bcd60e51b82526107699160040161285f565b6118438282610f5e565b610c11576000828152602081815260408083206001600160a01b03851684529091529020805460ff1916600117905561187a6114e3565b6001600160a01b0316816001600160a01b0316837f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d60405160405180910390a45050565b6118c88282610f5e565b15610c11576000828152602081815260408083206001600160a01b03851684529091529020805460ff191690556118fd6114e3565b6001600160a01b0316816001600160a01b0316837ff6391f5c32d9c69d2a47ea670b442974b53935d1edc7fd64eb21e047a839171b60405160405180910390a45050565b611949610d1b565b6119655760405162461bcd60e51b8152600401610769906128a7565b600d805460ff191690557f5db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa610c856114e3565b6001600160a01b0382166119be5760405162461bcd60e51b815260040161076990612c4f565b6119c7816114e7565b156119e45760405162461bcd60e51b8152600401610769906129a4565b6119f060008383611cf3565b6001600160a01b0382166000908152600760205260408120805460019290611a19908490612fa7565b909155505060008181526006602052604080822080546001600160a01b0319166001600160a01b03861690811790915590518392907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b600b80546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b611ad1610d1b565b15611aee5760405162461bcd60e51b815260040161076990612ae7565b600d805460ff191660011790557f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a258610c856114e3565b611b2c610d1b565b15611b495760405162461bcd60e51b815260040161076990612ae7565b600081806020019051810190611b5f91906125a1565b905061093c8382611f2e565b611b768484846116a8565b611b8284848484611f72565b6111c85760405162461bcd60e51b8152600401610769906128d5565b6060600f80546107e29061304c565b6060611bb8826114e7565b611bd45760405162461bcd60e51b815260040161076990612de0565b6000611bde611b9e565b90506000815111611bfe5760405180602001604052806000815250611624565b80611c088461208d565b604051602001611c199291906126b4565b6040516020818303038152906040529392505050565b610c118282611839565b60006001600160e01b031982166380ac58cd60e01b1480611c6a57506001600160e01b03198216635b5e139f60e01b145b8061073c575061073c826121a8565b600060405180608001604052806043815260200161310f6043913980516020918201208351848301516040808701518051908601209051611cba950161281d565b604051602081830303815290604052805190602001209050919050565b6000611ce1610ade565b82604051602001611cba9291906126e3565b611cfb610d1b565b15611d185760405162461bcd60e51b815260040161076990612ae7565b611d2383838361093c565b6011546001600160a01b03848116911614801590611d4957506001600160a01b03831615155b1561093c57600e54611d5e9062127500612fa7565b421161093c5760405162461bcd60e51b815260040161076990612ec1565b60606000611d8b836002612fd3565b611d96906002612fa7565b67ffffffffffffffff811115611dbc57634e487b7160e01b600052604160045260246000fd5b6040519080825280601f01601f191660200182016040528015611de6576020820181803683370190505b509050600360fc1b81600081518110611e0f57634e487b7160e01b600052603260045260246000fd5b60200101906001600160f81b031916908160001a905350600f60fb1b81600181518110611e4c57634e487b7160e01b600052603260045260246000fd5b60200101906001600160f81b031916908160001a9053506000611e70846002612fd3565b611e7b906001612fa7565b90505b6001811115611f0f576f181899199a1a9b1b9c1cb0b131b232b360811b85600f1660108110611ebd57634e487b7160e01b600052603260045260246000fd5b1a60f81b828281518110611ee157634e487b7160e01b600052603260045260246000fd5b60200101906001600160f81b031916908160001a90535060049490941c93611f0881613035565b9050611e7e565b5083156116245760405162461bcd60e51b815260040161076990612872565b611f37826114e7565b611f535760405162461bcd60e51b815260040161076990612c01565b6000828152600a60209081526040909120825161093c928401906121ec565b6000611f86846001600160a01b03166121cd565b1561208257836001600160a01b031663150b7a02611fa26114e3565b8786866040518563ffffffff1660e01b8152600401611fc494939291906127b3565b602060405180830381600087803b158015611fde57600080fd5b505af192505050801561200e575060408051601f3d908101601f1916820190925261200b91810190612585565b60015b612068573d80801561203c576040519150601f19603f3d011682016040523d82523d6000602084013e612041565b606091505b5080516120605760405162461bcd60e51b8152600401610769906128d5565b805181602001fd5b6001600160e01b031916630a85bd0160e11b1490506112e7565b506001949350505050565b6060816120b257506040805180820190915260018152600360fc1b602082015261073f565b8160005b81156120dc57806120c681613087565b91506120d59050600a83612fbf565b91506120b6565b60008167ffffffffffffffff81111561210557634e487b7160e01b600052604160045260246000fd5b6040519080825280601f01601f19166020018201604052801561212f576020820181803683370190505b5090505b84156112e757612144600183612ff2565b9150612151600a866130a2565b61215c906030612fa7565b60f81b81838151811061217f57634e487b7160e01b600052603260045260246000fd5b60200101906001600160f81b031916908160001a9053506121a1600a86612fbf565b9450612133565b60006001600160e01b03198216637965db0b60e01b148061073c575061073c826121d3565b3b151590565b6001600160e01b031981166301ffc9a760e01b14919050565b8280546121f89061304c565b90600052602060002090601f01602090048101928261221a5760008555612260565b82601f1061223357805160ff1916838001178555612260565b82800160010185558215612260579182015b82811115612260578251825591602001919060010190612245565b5061226c929150612270565b5090565b5b8082111561226c5760008155600101612271565b80356001600160a01b038116811461073f57600080fd5b600082601f8301126122ac578081fd5b81356122bf6122ba82612f7f565b612f55565b8181528460208386010111156122d3578283fd5b816020850160208301379081016020019190915292915050565b6000602082840312156122fe578081fd5b61162482612285565b60008060408385031215612319578081fd5b61232283612285565b9150610b8360208401612285565b600080600060608486031215612344578081fd5b61234d84612285565b925061235b60208501612285565b9150604084013590509250925092565b60008060008060808587031215612380578081fd5b61238985612285565b935061239760208601612285565b925060408501359150606085013567ffffffffffffffff8111156123b9578182fd5b6123c58782880161229c565b91505092959194509250565b600080604083850312156123e3578182fd5b6123ec83612285565b915060208301358015158114612400578182fd5b809150509250929050565b600080600080600060a08688031215612422578081fd5b61242b86612285565b9450602086013567ffffffffffffffff811115612446578182fd5b6124528882890161229c565b9450506040860135925060608601359150608086013560ff81168114612476578182fd5b809150509295509295909350565b60008060408385031215612496578182fd5b61249f83612285565b946020939093013593505050565b600080600080606085870312156124c2578384fd5b6124cb85612285565b935060208501359250604085013567ffffffffffffffff808211156124ee578384fd5b818701915087601f830112612501578384fd5b81358181111561250f578485fd5b886020828501011115612520578485fd5b95989497505060200194505050565b600060208284031215612540578081fd5b5035919050565b60008060408385031215612559578182fd5b82359150610b8360208401612285565b60006020828403121561257a578081fd5b8135611624816130f8565b600060208284031215612596578081fd5b8151611624816130f8565b6000602082840312156125b2578081fd5b815167ffffffffffffffff8111156125c8578182fd5b8201601f810184136125d8578182fd5b80516125e66122ba82612f7f565b8181528560208385010111156125fa578384fd5b61260b826020830160208601613009565b95945050505050565b60008060408385031215612626578182fd5b50508035926020909101359150565b6000815180845261264d816020860160208601613009565b601f01601f19169290920160200192915050565b60008251612673818460208701613009565b9190910192915050565b6000835161268f818460208801613009565b60609390931b6bffffffffffffffffffffffff19169190920190815260140192915050565b600083516126c6818460208801613009565b8351908301906126da818360208801613009565b01949350505050565b61190160f01b81526002810192909252602282015260420190565b60007f416363657373436f6e74726f6c3a206163636f756e742000000000000000000082528351612736816017850160208801613009565b7001034b99036b4b9b9b4b733903937b6329607d1b6017918401918201528351612767816028840160208801613009565b01602801949350505050565b6001600160a01b0391909116815260200190565b6001600160a01b0384811682528316602082015260606040820181905260009061260b90830184612635565b6001600160a01b03858116825284166020820152604081018390526080606082018190526000906127e690830184612635565b9695505050505050565b6001600160a01b03929092168252602082015260400190565b901515815260200190565b90815260200190565b93845260208401929092526001600160a01b03166040830152606082015260800190565b93845260ff9290921660208401526040830152606082015260800190565b6000602082526116246020830184612635565b6020808252818101527f537472696e67733a20686578206c656e67746820696e73756666696369656e74604082015260600190565b60208082526014908201527314185d5cd8589b194e881b9bdd081c185d5cd95960621b604082015260600190565b60208082526032908201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560408201527131b2b4bb32b91034b6b83632b6b2b73a32b960711b606082015260800190565b60208082526026908201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160408201526564647265737360d01b606082015260800190565b6020808252601c908201527f46756e6374696f6e2063616c6c206e6f74207375636365737366756c00000000604082015260600190565b6020808252601c908201527f4552433732313a20746f6b656e20616c7265616479206d696e74656400000000604082015260600190565b60208082526024908201527f4552433732313a207472616e7366657220746f20746865207a65726f206164646040820152637265737360e01b606082015260800190565b60208082526019908201527f4552433732313a20617070726f766520746f2063616c6c657200000000000000604082015260600190565b6020808252602c908201527f4552433732313a206f70657261746f7220717565727920666f72206e6f6e657860408201526b34b9ba32b73a103a37b5b2b760a11b606082015260800190565b60208082526025908201527f4e61746976654d6574615472616e73616374696f6e3a20494e56414c49445f5360408201526424a3a722a960d91b606082015260800190565b60208082526010908201526f14185d5cd8589b194e881c185d5cd95960821b604082015260600190565b60208082526038908201527f4552433732313a20617070726f76652063616c6c6572206973206e6f74206f7760408201527f6e6572206e6f7220617070726f76656420666f7220616c6c0000000000000000606082015260800190565b6020808252602a908201527f4552433732313a2062616c616e636520717565727920666f7220746865207a65604082015269726f206164647265737360b01b606082015260800190565b60208082526029908201527f4552433732313a206f776e657220717565727920666f72206e6f6e657869737460408201526832b73a103a37b5b2b760b91b606082015260800190565b6020808252602e908201527f45524337323155524953746f726167653a2055524920736574206f66206e6f6e60408201526d32bc34b9ba32b73a103a37b5b2b760911b606082015260800190565b6020808252818101527f4552433732313a206d696e7420746f20746865207a65726f2061646472657373604082015260600190565b60208082526031908201527f45524337323155524953746f726167653a2055524920717565727920666f72206040820152703737b732bc34b9ba32b73a103a37b5b2b760791b606082015260800190565b6020808252602c908201527f4552433732313a20617070726f76656420717565727920666f72206e6f6e657860408201526b34b9ba32b73a103a37b5b2b760a11b606082015260800190565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b60208082526029908201527f4552433732313a207472616e73666572206f6620746f6b656e2074686174206960408201526839903737ba1037bbb760b91b606082015260800190565b60208082526021908201527f5369676e657220616e64207369676e617475726520646f206e6f74206d6174636040820152600d60fb1b606082015260800190565b6020808252602f908201527f4552433732314d657461646174613a2055524920717565727920666f72206e6f60408201526e3732bc34b9ba32b73a103a37b5b2b760891b606082015260800190565b60208082526021908201527f4552433732313a20617070726f76616c20746f2063757272656e74206f776e656040820152603960f91b606082015260800190565b60208082526031908201527f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f6040820152701ddb995c881b9bdc88185c1c1c9bdd9959607a1b606082015260800190565b60208082526025908201527f526f6f744176617461723a204c6f636b656420756e74696c204a616e75617279604082015264040646ae8d60db1b606082015260800190565b6020808252602f908201527f416363657373436f6e74726f6c3a2063616e206f6e6c792072656e6f756e636560408201526e103937b632b9903337b91039b2b63360891b606082015260800190565b60405181810167ffffffffffffffff81118282101715612f7757612f776130e2565b604052919050565b600067ffffffffffffffff821115612f9957612f996130e2565b50601f01601f191660200190565b60008219821115612fba57612fba6130b6565b500190565b600082612fce57612fce6130cc565b500490565b6000816000190483118215151615612fed57612fed6130b6565b500290565b600082821015613004576130046130b6565b500390565b60005b8381101561302457818101518382015260200161300c565b838111156111c85750506000910152565b600081613044576130446130b6565b506000190190565b60028104600182168061306057607f821691505b6020821081141561308157634e487b7160e01b600052602260045260246000fd5b50919050565b600060001982141561309b5761309b6130b6565b5060010190565b6000826130b1576130b16130cc565b500690565b634e487b7160e01b600052601160045260246000fd5b634e487b7160e01b600052601260045260246000fd5b634e487b7160e01b600052604160045260246000fd5b6001600160e01b03198116811461138657600080fdfe4d6574615472616e73616374696f6e2875696e74323536206e6f6e63652c616464726573732066726f6d2c62797465732066756e6374696f6e5369676e61747572652912ff340d0cd9c652c747ca35727e68c547d0f0bfa7758d2e77f75acef481b4f2a26469706673582212208ec84d524f58c39e08f4adf447cb786624c58815f3d4e343085d97b12f38991e64736f6c63430008000033454950373132446f6d61696e28737472696e67206e616d652c737472696e672076657273696f6e2c6164647265737320766572696679696e67436f6e74726163742c627974657333322073616c7429000000000000000000000000000000000000000000000000000000000000006000000000000000000000000000000000000000000000000000000000000000a000000000000000000000000000000000000000000000000000000000000000e0000000000000000000000000000000000000000000000000000000000000000d4e657476726b417661746172730000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000064e564b4156540000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000002168747470733a2f2f6170692e6e657476726b2e636f2f6170692f6176617461722f00000000000000000000000000000000000000000000000000000000000000
Deployed Bytecode
0x6080604052600436106102515760003560e01c806361ba27da1161013957806395d89b41116100b6578063c87b56dd1161007a578063c87b56dd1461067c578063c98a7f1c1461069c578063d547741f146106bc578063e72db5fd146106dc578063e985e9c5146106f1578063f2fde38b1461071157610251565b806395d89b41146105fd578063a217fddf14610612578063a22cb46514610627578063b3ec4ca114610647578063b88d4fde1461065c57610251565b80638456cb59116100fd5780638456cb59146105735780638da5cb5b1461058857806391d148541461059d57806393ac3638146105bd57806394d008ef146105dd57610251565b806361ba27da146104e95780636352211e146105095780636c0360eb1461052957806370a082311461053e578063715018a61461055e57610251565b80632a55205a116101d25780633f4ba83a116101965780633f4ba83a1461044a57806340c10f191461045f57806342842e0e1461047f5780634f558e791461049f5780635476ea9e146104bf5780635c975abb146104d457610251565b80632a55205a146103a75780632d0335ab146103d55780632f2ff15d146103f55780633408e4701461041557806336568abe1461042a57610251565b80630c53c51c116102195780630c53c51c1461031d5780630f7e59701461033057806320379ee51461034557806323b872dd14610367578063248a9ca31461038757610251565b806301ffc9a71461025657806306d254da1461028c57806306fdde03146102ae578063081812fc146102d0578063095ea7b3146102fd575b600080fd5b34801561026257600080fd5b50610276610271366004612569565b610731565b6040516102839190612809565b60405180910390f35b34801561029857600080fd5b506102ac6102a73660046122ed565b610744565b005b3480156102ba57600080fd5b506102c36107d3565b604051610283919061285f565b3480156102dc57600080fd5b506102f06102eb36600461252f565b610866565b6040516102839190612773565b34801561030957600080fd5b506102ac610318366004612484565b6108a9565b6102c361032b36600461240b565b610941565b34801561033c57600080fd5b506102c3610ac1565b34801561035157600080fd5b5061035a610ade565b6040516102839190612814565b34801561037357600080fd5b506102ac610382366004612330565b610ae4565b34801561039357600080fd5b5061035a6103a236600461252f565b610b1c565b3480156103b357600080fd5b506103c76103c2366004612614565b610b31565b6040516102839291906127f0565b3480156103e157600080fd5b5061035a6103f03660046122ed565b610b8c565b34801561040157600080fd5b506102ac610410366004612547565b610ba7565b34801561042157600080fd5b5061035a610bcb565b34801561043657600080fd5b506102ac610445366004612547565b610bcf565b34801561045657600080fd5b506102ac610c15565b34801561046b57600080fd5b506102ac61047a366004612484565b610c9c565b34801561048b57600080fd5b506102ac61049a366004612330565b610ce6565b3480156104ab57600080fd5b506102766104ba36600461252f565b610d01565b3480156104cb57600080fd5b506102f0610d0c565b3480156104e057600080fd5b50610276610d1b565b3480156104f557600080fd5b506102ac61050436600461252f565b610d24565b34801561051557600080fd5b506102f061052436600461252f565b610d8d565b34801561053557600080fd5b506102c3610dc2565b34801561054a57600080fd5b5061035a6105593660046122ed565b610e50565b34801561056a57600080fd5b506102ac610e94565b34801561057f57600080fd5b506102ac610edf565b34801561059457600080fd5b506102f0610f4f565b3480156105a957600080fd5b506102766105b8366004612547565b610f5e565b3480156105c957600080fd5b506102ac6105d83660046122ed565b610f87565b3480156105e957600080fd5b506102ac6105f83660046124ad565b61100d565b34801561060957600080fd5b506102c361109e565b34801561061e57600080fd5b5061035a6110ad565b34801561063357600080fd5b506102ac6106423660046123d1565b6110b2565b34801561065357600080fd5b506102f0611180565b34801561066857600080fd5b506102ac61067736600461236b565b61118f565b34801561068857600080fd5b506102c361069736600461252f565b6111ce565b3480156106a857600080fd5b506102ac6106b73660046122ed565b6112ef565b3480156106c857600080fd5b506102ac6106d7366004612547565b611389565b3480156106e857600080fd5b5061035a6113a8565b3480156106fd57600080fd5b5061027661070c366004612307565b6113ba565b34801561071d57600080fd5b506102ac61072c3660046122ed565b6113e8565b600061073c826114b2565b90505b919050565b61074c610d1b565b156107725760405162461bcd60e51b815260040161076990612ae7565b60405180910390fd5b61077a6114e3565b6001600160a01b031661078b610f4f565b6001600160a01b0316146107b15760405162461bcd60e51b815260040161076990612d21565b601380546001600160a01b0319166001600160a01b0392909216919091179055565b6060600480546107e29061304c565b80601f016020809104026020016040519081016040528092919081815260200182805461080e9061304c565b801561085b5780601f106108305761010080835404028352916020019161085b565b820191906000526020600020905b81548152906001019060200180831161083e57829003601f168201915b505050505090505b90565b6000610871826114e7565b61088d5760405162461bcd60e51b815260040161076990612cd5565b506000908152600860205260409020546001600160a01b031690565b60006108b482610d8d565b9050806001600160a01b0316836001600160a01b031614156108e85760405162461bcd60e51b815260040161076990612e2f565b806001600160a01b03166108fa6114e3565b6001600160a01b0316148061091657506109168161070c6114e3565b6109325760405162461bcd60e51b815260040161076990612b11565b61093c8383611504565b505050565b60408051606081810183526001600160a01b0388166000818152600360209081529085902054845283015291810186905261097f8782878787611572565b61099b5760405162461bcd60e51b815260040161076990612d9f565b6001600160a01b0387166000908152600360205260409020546109bf906001611618565b6001600160a01b0388166000908152600360205260409081902091909155517f5845892132946850460bff5a0083f71031bc5bf9aadcd40f1de79423eac9b10b90610a0f90899033908a90612787565b60405180910390a1600080306001600160a01b0316888a604051602001610a3792919061267d565b60408051601f1981840301815290829052610a5191612661565b6000604051808303816000865af19150503d8060008114610a8e576040519150601f19603f3d011682016040523d82523d6000602084013e610a93565b606091505b509150915081610ab55760405162461bcd60e51b81526004016107699061296d565b98975050505050505050565b604051806040016040528060018152602001603160f81b81525081565b60025490565b610af5610aef6114e3565b8261162b565b610b115760405162461bcd60e51b815260040161076990612e70565b61093c8383836116a8565b60009081526020819052604090206001015490565b600080610b3c610d1b565b15610b595760405162461bcd60e51b815260040161076990612ae7565b6013546012546001600160a01b039091169250606490610b799085612fd3565b610b839190612fbf565b90509250929050565b6001600160a01b031660009081526003602052604090205490565b610bb082610b1c565b610bc181610bbc6114e3565b6117d5565b61093c8383611839565b4690565b610bd76114e3565b6001600160a01b0316816001600160a01b031614610c075760405162461bcd60e51b815260040161076990612f06565b610c1182826118be565b5050565b610c1d6114e3565b6001600160a01b0316610c2e610f4f565b6001600160a01b031614610c545760405162461bcd60e51b815260040161076990612d21565b610c5c611941565b7fd50fc9e699f0588bd5a228783c613a475df9d14e863e66eec005864140b514f8610c85611456565b604051610c929190612773565b60405180910390a1565b600080516020613152833981519152610cb781610bbc6114e3565b610cbf610d1b565b15610cdc5760405162461bcd60e51b815260040161076990612ae7565b61093c8383611998565b61093c8383836040518060200160405280600081525061118f565b600061073c826114e7565b6011546001600160a01b031681565b600d5460ff1690565b610d2c610d1b565b15610d495760405162461bcd60e51b815260040161076990612ae7565b610d516114e3565b6001600160a01b0316610d62610f4f565b6001600160a01b031614610d885760405162461bcd60e51b815260040161076990612d21565b601255565b6000818152600660205260408120546001600160a01b03168061073c5760405162461bcd60e51b815260040161076990612bb8565b600f8054610dcf9061304c565b80601f0160208091040260200160405190810160405280929190818152602001828054610dfb9061304c565b8015610e485780601f10610e1d57610100808354040283529160200191610e48565b820191906000526020600020905b815481529060010190602001808311610e2b57829003601f168201915b505050505081565b60006001600160a01b038216610e785760405162461bcd60e51b815260040161076990612b6e565b506001600160a01b031660009081526007602052604090205490565b610e9c6114e3565b6001600160a01b0316610ead610f4f565b6001600160a01b031614610ed35760405162461bcd60e51b815260040161076990612d21565b610edd6000611a77565b565b610ee76114e3565b6001600160a01b0316610ef8610f4f565b6001600160a01b031614610f1e5760405162461bcd60e51b815260040161076990612d21565b610f26611ac9565b7fae3ff991a1d5c4ac2e2a74544d4d0e1a7ecd05afddcfcb6044fd4ebc9323329d610c85611456565b600b546001600160a01b031690565b6000918252602082815260408084206001600160a01b0393909316845291905290205460ff1690565b610f8f610d1b565b15610fac5760405162461bcd60e51b815260040161076990612ae7565b610fb46114e3565b6001600160a01b0316610fc5610f4f565b6001600160a01b031614610feb5760405162461bcd60e51b815260040161076990612d21565b601180546001600160a01b0319166001600160a01b0392909216919091179055565b60008051602061315283398151915261102881610bbc6114e3565b611030610d1b565b1561104d5760405162461bcd60e51b815260040161076990612ae7565b6110578585611998565b6110978484848080601f016020809104026020016040519081016040528093929190818152602001838380828437600092019190915250611b2492505050565b5050505050565b6060600580546107e29061304c565b600081565b6110ba6114e3565b6001600160a01b0316826001600160a01b031614156110eb5760405162461bcd60e51b815260040161076990612a1f565b80600960006110f86114e3565b6001600160a01b03908116825260208083019390935260409182016000908120918716808252919093529120805460ff19169215159290921790915561113c6114e3565b6001600160a01b03167f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31836040516111749190612809565b60405180910390a35050565b6010546001600160a01b031681565b6111a061119a6114e3565b8361162b565b6111bc5760405162461bcd60e51b815260040161076990612e70565b6111c884848484611b6b565b50505050565b60606111d9826114e7565b6111f55760405162461bcd60e51b815260040161076990612c84565b6000828152600a60205260408120805461120e9061304c565b80601f016020809104026020016040519081016040528092919081815260200182805461123a9061304c565b80156112875780601f1061125c57610100808354040283529160200191611287565b820191906000526020600020905b81548152906001019060200180831161126a57829003601f168201915b505050505090506000611298611b9e565b90508051600014156112ac5750905061073f565b8151156112de5780826040516020016112c69291906126b4565b6040516020818303038152906040529250505061073f565b6112e784611bad565b949350505050565b6112f7610d1b565b156113145760405162461bcd60e51b815260040161076990612ae7565b61131c6114e3565b6001600160a01b031661132d610f4f565b6001600160a01b0316146113535760405162461bcd60e51b815260040161076990612d21565b601080546001600160a01b0319166001600160a01b03831617905561138660008051602061315283398151915282611c2f565b50565b61139282610b1c565b61139e81610bbc6114e3565b61093c83836118be565b60008051602061315283398151915281565b6001600160a01b03918216600090815260096020908152604080832093909416825291909152205460ff1690565b6113f06114e3565b6001600160a01b0316611401610f4f565b6001600160a01b0316146114275760405162461bcd60e51b815260040161076990612d21565b6001600160a01b03811661144d5760405162461bcd60e51b815260040161076990612927565b61138681611a77565b6000333014156114ad57600080368080601f0160208091040260200160405190810160405280939291908181526020018383808284376000920191909152505050503601516001600160a01b031691506108639050565b503390565b60006114bd82611c39565b8061073c5750506001600160e01b0319166000908152600c602052604090205460ff1690565b3390565b6000908152600660205260409020546001600160a01b0316151590565b600081815260086020526040902080546001600160a01b0319166001600160a01b038416908117909155819061153982610d8d565b6001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b60006001600160a01b03861661159a5760405162461bcd60e51b815260040161076990612aa2565b60016115ad6115a887611c79565b611cd7565b838686604051600081526020016040526040516115cd9493929190612841565b6020604051602081039080840390855afa1580156115ef573d6000803e3d6000fd5b505050602060405103516001600160a01b0316866001600160a01b031614905095945050505050565b60006116248284612fa7565b9392505050565b6000611636826114e7565b6116525760405162461bcd60e51b815260040161076990612a56565b600061165d83610d8d565b9050806001600160a01b0316846001600160a01b031614806116985750836001600160a01b031661168d84610866565b6001600160a01b0316145b806112e757506112e781856113ba565b826001600160a01b03166116bb82610d8d565b6001600160a01b0316146116e15760405162461bcd60e51b815260040161076990612d56565b6001600160a01b0382166117075760405162461bcd60e51b8152600401610769906129db565b611712838383611cf3565b61171d600082611504565b6001600160a01b0383166000908152600760205260408120805460019290611746908490612ff2565b90915550506001600160a01b0382166000908152600760205260408120805460019290611774908490612fa7565b909155505060008181526006602052604080822080546001600160a01b0319166001600160a01b0386811691821790925591518493918716917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91a4505050565b6117df8282610f5e565b610c11576117f7816001600160a01b03166014611d7c565b611802836020611d7c565b6040516020016118139291906126fe565b60408051601f198184030181529082905262461bcd60e51b82526107699160040161285f565b6118438282610f5e565b610c11576000828152602081815260408083206001600160a01b03851684529091529020805460ff1916600117905561187a6114e3565b6001600160a01b0316816001600160a01b0316837f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d60405160405180910390a45050565b6118c88282610f5e565b15610c11576000828152602081815260408083206001600160a01b03851684529091529020805460ff191690556118fd6114e3565b6001600160a01b0316816001600160a01b0316837ff6391f5c32d9c69d2a47ea670b442974b53935d1edc7fd64eb21e047a839171b60405160405180910390a45050565b611949610d1b565b6119655760405162461bcd60e51b8152600401610769906128a7565b600d805460ff191690557f5db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa610c856114e3565b6001600160a01b0382166119be5760405162461bcd60e51b815260040161076990612c4f565b6119c7816114e7565b156119e45760405162461bcd60e51b8152600401610769906129a4565b6119f060008383611cf3565b6001600160a01b0382166000908152600760205260408120805460019290611a19908490612fa7565b909155505060008181526006602052604080822080546001600160a01b0319166001600160a01b03861690811790915590518392907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b600b80546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b611ad1610d1b565b15611aee5760405162461bcd60e51b815260040161076990612ae7565b600d805460ff191660011790557f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a258610c856114e3565b611b2c610d1b565b15611b495760405162461bcd60e51b815260040161076990612ae7565b600081806020019051810190611b5f91906125a1565b905061093c8382611f2e565b611b768484846116a8565b611b8284848484611f72565b6111c85760405162461bcd60e51b8152600401610769906128d5565b6060600f80546107e29061304c565b6060611bb8826114e7565b611bd45760405162461bcd60e51b815260040161076990612de0565b6000611bde611b9e565b90506000815111611bfe5760405180602001604052806000815250611624565b80611c088461208d565b604051602001611c199291906126b4565b6040516020818303038152906040529392505050565b610c118282611839565b60006001600160e01b031982166380ac58cd60e01b1480611c6a57506001600160e01b03198216635b5e139f60e01b145b8061073c575061073c826121a8565b600060405180608001604052806043815260200161310f6043913980516020918201208351848301516040808701518051908601209051611cba950161281d565b604051602081830303815290604052805190602001209050919050565b6000611ce1610ade565b82604051602001611cba9291906126e3565b611cfb610d1b565b15611d185760405162461bcd60e51b815260040161076990612ae7565b611d2383838361093c565b6011546001600160a01b03848116911614801590611d4957506001600160a01b03831615155b1561093c57600e54611d5e9062127500612fa7565b421161093c5760405162461bcd60e51b815260040161076990612ec1565b60606000611d8b836002612fd3565b611d96906002612fa7565b67ffffffffffffffff811115611dbc57634e487b7160e01b600052604160045260246000fd5b6040519080825280601f01601f191660200182016040528015611de6576020820181803683370190505b509050600360fc1b81600081518110611e0f57634e487b7160e01b600052603260045260246000fd5b60200101906001600160f81b031916908160001a905350600f60fb1b81600181518110611e4c57634e487b7160e01b600052603260045260246000fd5b60200101906001600160f81b031916908160001a9053506000611e70846002612fd3565b611e7b906001612fa7565b90505b6001811115611f0f576f181899199a1a9b1b9c1cb0b131b232b360811b85600f1660108110611ebd57634e487b7160e01b600052603260045260246000fd5b1a60f81b828281518110611ee157634e487b7160e01b600052603260045260246000fd5b60200101906001600160f81b031916908160001a90535060049490941c93611f0881613035565b9050611e7e565b5083156116245760405162461bcd60e51b815260040161076990612872565b611f37826114e7565b611f535760405162461bcd60e51b815260040161076990612c01565b6000828152600a60209081526040909120825161093c928401906121ec565b6000611f86846001600160a01b03166121cd565b1561208257836001600160a01b031663150b7a02611fa26114e3565b8786866040518563ffffffff1660e01b8152600401611fc494939291906127b3565b602060405180830381600087803b158015611fde57600080fd5b505af192505050801561200e575060408051601f3d908101601f1916820190925261200b91810190612585565b60015b612068573d80801561203c576040519150601f19603f3d011682016040523d82523d6000602084013e612041565b606091505b5080516120605760405162461bcd60e51b8152600401610769906128d5565b805181602001fd5b6001600160e01b031916630a85bd0160e11b1490506112e7565b506001949350505050565b6060816120b257506040805180820190915260018152600360fc1b602082015261073f565b8160005b81156120dc57806120c681613087565b91506120d59050600a83612fbf565b91506120b6565b60008167ffffffffffffffff81111561210557634e487b7160e01b600052604160045260246000fd5b6040519080825280601f01601f19166020018201604052801561212f576020820181803683370190505b5090505b84156112e757612144600183612ff2565b9150612151600a866130a2565b61215c906030612fa7565b60f81b81838151811061217f57634e487b7160e01b600052603260045260246000fd5b60200101906001600160f81b031916908160001a9053506121a1600a86612fbf565b9450612133565b60006001600160e01b03198216637965db0b60e01b148061073c575061073c826121d3565b3b151590565b6001600160e01b031981166301ffc9a760e01b14919050565b8280546121f89061304c565b90600052602060002090601f01602090048101928261221a5760008555612260565b82601f1061223357805160ff1916838001178555612260565b82800160010185558215612260579182015b82811115612260578251825591602001919060010190612245565b5061226c929150612270565b5090565b5b8082111561226c5760008155600101612271565b80356001600160a01b038116811461073f57600080fd5b600082601f8301126122ac578081fd5b81356122bf6122ba82612f7f565b612f55565b8181528460208386010111156122d3578283fd5b816020850160208301379081016020019190915292915050565b6000602082840312156122fe578081fd5b61162482612285565b60008060408385031215612319578081fd5b61232283612285565b9150610b8360208401612285565b600080600060608486031215612344578081fd5b61234d84612285565b925061235b60208501612285565b9150604084013590509250925092565b60008060008060808587031215612380578081fd5b61238985612285565b935061239760208601612285565b925060408501359150606085013567ffffffffffffffff8111156123b9578182fd5b6123c58782880161229c565b91505092959194509250565b600080604083850312156123e3578182fd5b6123ec83612285565b915060208301358015158114612400578182fd5b809150509250929050565b600080600080600060a08688031215612422578081fd5b61242b86612285565b9450602086013567ffffffffffffffff811115612446578182fd5b6124528882890161229c565b9450506040860135925060608601359150608086013560ff81168114612476578182fd5b809150509295509295909350565b60008060408385031215612496578182fd5b61249f83612285565b946020939093013593505050565b600080600080606085870312156124c2578384fd5b6124cb85612285565b935060208501359250604085013567ffffffffffffffff808211156124ee578384fd5b818701915087601f830112612501578384fd5b81358181111561250f578485fd5b886020828501011115612520578485fd5b95989497505060200194505050565b600060208284031215612540578081fd5b5035919050565b60008060408385031215612559578182fd5b82359150610b8360208401612285565b60006020828403121561257a578081fd5b8135611624816130f8565b600060208284031215612596578081fd5b8151611624816130f8565b6000602082840312156125b2578081fd5b815167ffffffffffffffff8111156125c8578182fd5b8201601f810184136125d8578182fd5b80516125e66122ba82612f7f565b8181528560208385010111156125fa578384fd5b61260b826020830160208601613009565b95945050505050565b60008060408385031215612626578182fd5b50508035926020909101359150565b6000815180845261264d816020860160208601613009565b601f01601f19169290920160200192915050565b60008251612673818460208701613009565b9190910192915050565b6000835161268f818460208801613009565b60609390931b6bffffffffffffffffffffffff19169190920190815260140192915050565b600083516126c6818460208801613009565b8351908301906126da818360208801613009565b01949350505050565b61190160f01b81526002810192909252602282015260420190565b60007f416363657373436f6e74726f6c3a206163636f756e742000000000000000000082528351612736816017850160208801613009565b7001034b99036b4b9b9b4b733903937b6329607d1b6017918401918201528351612767816028840160208801613009565b01602801949350505050565b6001600160a01b0391909116815260200190565b6001600160a01b0384811682528316602082015260606040820181905260009061260b90830184612635565b6001600160a01b03858116825284166020820152604081018390526080606082018190526000906127e690830184612635565b9695505050505050565b6001600160a01b03929092168252602082015260400190565b901515815260200190565b90815260200190565b93845260208401929092526001600160a01b03166040830152606082015260800190565b93845260ff9290921660208401526040830152606082015260800190565b6000602082526116246020830184612635565b6020808252818101527f537472696e67733a20686578206c656e67746820696e73756666696369656e74604082015260600190565b60208082526014908201527314185d5cd8589b194e881b9bdd081c185d5cd95960621b604082015260600190565b60208082526032908201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560408201527131b2b4bb32b91034b6b83632b6b2b73a32b960711b606082015260800190565b60208082526026908201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160408201526564647265737360d01b606082015260800190565b6020808252601c908201527f46756e6374696f6e2063616c6c206e6f74207375636365737366756c00000000604082015260600190565b6020808252601c908201527f4552433732313a20746f6b656e20616c7265616479206d696e74656400000000604082015260600190565b60208082526024908201527f4552433732313a207472616e7366657220746f20746865207a65726f206164646040820152637265737360e01b606082015260800190565b60208082526019908201527f4552433732313a20617070726f766520746f2063616c6c657200000000000000604082015260600190565b6020808252602c908201527f4552433732313a206f70657261746f7220717565727920666f72206e6f6e657860408201526b34b9ba32b73a103a37b5b2b760a11b606082015260800190565b60208082526025908201527f4e61746976654d6574615472616e73616374696f6e3a20494e56414c49445f5360408201526424a3a722a960d91b606082015260800190565b60208082526010908201526f14185d5cd8589b194e881c185d5cd95960821b604082015260600190565b60208082526038908201527f4552433732313a20617070726f76652063616c6c6572206973206e6f74206f7760408201527f6e6572206e6f7220617070726f76656420666f7220616c6c0000000000000000606082015260800190565b6020808252602a908201527f4552433732313a2062616c616e636520717565727920666f7220746865207a65604082015269726f206164647265737360b01b606082015260800190565b60208082526029908201527f4552433732313a206f776e657220717565727920666f72206e6f6e657869737460408201526832b73a103a37b5b2b760b91b606082015260800190565b6020808252602e908201527f45524337323155524953746f726167653a2055524920736574206f66206e6f6e60408201526d32bc34b9ba32b73a103a37b5b2b760911b606082015260800190565b6020808252818101527f4552433732313a206d696e7420746f20746865207a65726f2061646472657373604082015260600190565b60208082526031908201527f45524337323155524953746f726167653a2055524920717565727920666f72206040820152703737b732bc34b9ba32b73a103a37b5b2b760791b606082015260800190565b6020808252602c908201527f4552433732313a20617070726f76656420717565727920666f72206e6f6e657860408201526b34b9ba32b73a103a37b5b2b760a11b606082015260800190565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b60208082526029908201527f4552433732313a207472616e73666572206f6620746f6b656e2074686174206960408201526839903737ba1037bbb760b91b606082015260800190565b60208082526021908201527f5369676e657220616e64207369676e617475726520646f206e6f74206d6174636040820152600d60fb1b606082015260800190565b6020808252602f908201527f4552433732314d657461646174613a2055524920717565727920666f72206e6f60408201526e3732bc34b9ba32b73a103a37b5b2b760891b606082015260800190565b60208082526021908201527f4552433732313a20617070726f76616c20746f2063757272656e74206f776e656040820152603960f91b606082015260800190565b60208082526031908201527f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f6040820152701ddb995c881b9bdc88185c1c1c9bdd9959607a1b606082015260800190565b60208082526025908201527f526f6f744176617461723a204c6f636b656420756e74696c204a616e75617279604082015264040646ae8d60db1b606082015260800190565b6020808252602f908201527f416363657373436f6e74726f6c3a2063616e206f6e6c792072656e6f756e636560408201526e103937b632b9903337b91039b2b63360891b606082015260800190565b60405181810167ffffffffffffffff81118282101715612f7757612f776130e2565b604052919050565b600067ffffffffffffffff821115612f9957612f996130e2565b50601f01601f191660200190565b60008219821115612fba57612fba6130b6565b500190565b600082612fce57612fce6130cc565b500490565b6000816000190483118215151615612fed57612fed6130b6565b500290565b600082821015613004576130046130b6565b500390565b60005b8381101561302457818101518382015260200161300c565b838111156111c85750506000910152565b600081613044576130446130b6565b506000190190565b60028104600182168061306057607f821691505b6020821081141561308157634e487b7160e01b600052602260045260246000fd5b50919050565b600060001982141561309b5761309b6130b6565b5060010190565b6000826130b1576130b16130cc565b500690565b634e487b7160e01b600052601160045260246000fd5b634e487b7160e01b600052601260045260246000fd5b634e487b7160e01b600052604160045260246000fd5b6001600160e01b03198116811461138657600080fdfe4d6574615472616e73616374696f6e2875696e74323536206e6f6e63652c616464726573732066726f6d2c62797465732066756e6374696f6e5369676e61747572652912ff340d0cd9c652c747ca35727e68c547d0f0bfa7758d2e77f75acef481b4f2a26469706673582212208ec84d524f58c39e08f4adf447cb786624c58815f3d4e343085d97b12f38991e64736f6c63430008000033
Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)
000000000000000000000000000000000000000000000000000000000000006000000000000000000000000000000000000000000000000000000000000000a000000000000000000000000000000000000000000000000000000000000000e0000000000000000000000000000000000000000000000000000000000000000d4e657476726b417661746172730000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000064e564b4156540000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000002168747470733a2f2f6170692e6e657476726b2e636f2f6170692f6176617461722f00000000000000000000000000000000000000000000000000000000000000
-----Decoded View---------------
Arg [0] : name_ (string): NetvrkAvatars
Arg [1] : symbol_ (string): NVKAVT
Arg [2] : url_ (string): https://api.netvrk.co/api/avatar/
-----Encoded View---------------
10 Constructor Arguments found :
Arg [0] : 0000000000000000000000000000000000000000000000000000000000000060
Arg [1] : 00000000000000000000000000000000000000000000000000000000000000a0
Arg [2] : 00000000000000000000000000000000000000000000000000000000000000e0
Arg [3] : 000000000000000000000000000000000000000000000000000000000000000d
Arg [4] : 4e657476726b4176617461727300000000000000000000000000000000000000
Arg [5] : 0000000000000000000000000000000000000000000000000000000000000006
Arg [6] : 4e564b4156540000000000000000000000000000000000000000000000000000
Arg [7] : 0000000000000000000000000000000000000000000000000000000000000021
Arg [8] : 68747470733a2f2f6170692e6e657476726b2e636f2f6170692f617661746172
Arg [9] : 2f00000000000000000000000000000000000000000000000000000000000000
Loading...
Loading
Loading...
Loading
[ Download: CSV Export ]
A token is a representation of an on-chain or off-chain asset. The token page shows information such as price, total supply, holders, transfers and social links. Learn more about this page in our Knowledge Base.