ERC-721
Overview
Max Total Supply
4 CREATE
Holders
3
Market
Volume (24H)
N/A
Min Price (24H)
N/A
Max Price (24H)
N/A
Other Info
Token Contract
Balance
1 CREATELoading...
Loading
Loading...
Loading
Loading...
Loading
# | Exchange | Pair | Price | 24H Volume | % Volume |
---|
Contract Name:
CREATE
Compiler Version
v0.8.4+commit.c7e474f2
Optimization Enabled:
Yes with 20 runs
Other Settings:
default evmVersion
Contract Source Code (Solidity Standard Json-Input format)
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; /// @author: Yazo // https://yazo.fun/ // r import "./ERC721TradableCHAIN.sol"; /** * @title CREATE * Yazo: CREATE */ contract CREATE is ERC721TradableCHAIN { constructor(address _proxyRegistryAddress) ERC721TradableCHAIN("CREATE", "CREATE", _proxyRegistryAddress) {} string private _theBaseURI = "https://yazo.fun/"; string private _default = "data:image/svg+xml;base64,PHN2ZyBzdHlsZT0iYmFja2dyb3VuZDpibGFjazsiIHZpZXdCb3g9IjAgMCA3MDAgNzAwIiB2ZXJzaW9uPSIxLjEiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiPjxyZWN0IGZpbGw9IiMwMDAwMDAiIHg9IjAiIHk9IjAiIHdpZHRoPSI3MDAiIGhlaWdodD0iNzAwIj48L3JlY3Q+PGNpcmNsZSBzdHJva2U9IiNGRkZGRkYiIHN0cm9rZS13aWR0aD0iMTUiIGN4PSIzNTAiIGN5PSIzNTAiIHI9IjE4Ny41Ij48L2NpcmNsZT48bGluZSB4MT0iNTQ1LjUiIHkxPSIxNTUuNSIgeDI9IjE1Ni41IiB5Mj0iNTQ1LjUiIHN0cm9rZT0iI0ZGRkZGRiIgc3Ryb2tlLXdpZHRoPSIxNSIgc3Ryb2tlLWxpbmVjYXA9InNxdWFyZSI+PC9saW5lPjwvc3ZnPg=="; uint256 private PRICE = 10000000000000000; function baseTokenURI() override public view returns (string memory) { return Base64.encode(bytes(_theBaseURI)); } function contractURI() public view returns (string memory) { return string(abi.encodePacked( "data:application/json;base64,", Base64.encode( bytes( abi.encodePacked( '{"name":"CREATE","description":"CREATE","image":"',_default,'","external_link":"',_theBaseURI,'","seller_fee_basis_points":0,"fee_recipient":""}' ) ) ) )); } function formatTokenURI(uint256 _tokenId) private view returns (string memory) { if(TOKENS[_tokenId]._created) { string memory name = TOKENS[_tokenId]._name; string memory description = TOKENS[_tokenId]._description; string memory attributes = TOKENS[_tokenId]._attributes; string memory creator = toAsciiString(TOKENS[_tokenId]._creator); string memory image = TOKENS[_tokenId]._image; string memory animation = TOKENS[_tokenId]._animation; string memory _type = TOKENS[_tokenId]._codec; if(bytes(image).length > 1) { if(!TOKENS[_tokenId]._image_encoded) { image = Base64.encode(bytes(image)); } image = string(abi.encodePacked(', "image":"',_type,image,'"')); } if(bytes(animation).length > 1) { if(!TOKENS[_tokenId]._animation_image_encoded) { animation = Base64.encode(bytes(animation)); } _type = TOKENS[_tokenId]._codec_animation; animation = string(abi.encodePacked(', "animation_url":"',_type,animation,'"')); } return formatTokenURIString(name,description,image,animation,_type,creator,attributes); } else { return formatTokenURIString("CREATE","CREATE",string(abi.encodePacked(', "image":"',_default,'"')),"","data:image/svg+xml;base64,","CREATE",""); } } function formatTokenURIString(string memory name,string memory description,string memory image, string memory animation, string memory _type, string memory creator, string memory attributes) private view returns (string memory) { return string( abi.encodePacked( "data:application/json;base64,", Base64.encode( bytes( abi.encodePacked( '{"name":"',name,'","description":"',description,'"',image,'',animation,',"attributes" : [{"trait_type":"Type","value":"',_type,'"},{"trait_type":"Creator","value":"0x',creator,'"}',attributes,']}' ) ) ) ) ); } function lock_data(uint256 _tokenId) public { require(TOKENS[_tokenId]._owner == msg.sender); TOKENS[_tokenId]._locked = true; } function set_token(uint256 _tokenId, string memory name, string memory description, string memory attributes, string memory image, bool base64, string memory data_uri) public { require(TOKENS[_tokenId]._owner == msg.sender); require(!TOKENS[_tokenId]._locked); TOKENS[_tokenId]._created = true; TOKENS[_tokenId]._creator = msg.sender; TOKENS[_tokenId]._name = name; TOKENS[_tokenId]._description = description; TOKENS[_tokenId]._attributes = attributes; TOKENS[_tokenId]._image = image; TOKENS[_tokenId]._codec = data_uri; TOKENS[_tokenId]._image_encoded = base64; } function set_token_animation(uint256 _tokenId, string memory name, string memory description, string memory attributes, string memory image, bool base64, string memory data_uri, string memory animation_image, bool animation_base64, string memory animation_data_uri) public { require(TOKENS[_tokenId]._owner == msg.sender); require(!TOKENS[_tokenId]._locked); TOKENS[_tokenId]._created = true; TOKENS[_tokenId]._creator = msg.sender; TOKENS[_tokenId]._name = name; TOKENS[_tokenId]._description = description; TOKENS[_tokenId]._attributes = attributes; TOKENS[_tokenId]._image = image; TOKENS[_tokenId]._codec = data_uri; TOKENS[_tokenId]._image_encoded = base64; TOKENS[_tokenId]._animation = animation_image; TOKENS[_tokenId]._codec_animation = animation_data_uri; TOKENS[_tokenId]._animation_image_encoded = animation_base64; } function tokenURI(uint256 _tokenId) override public view returns (string memory) { return formatTokenURI(_tokenId); } function token_info(uint256 _tokenId) public view returns (address _creator, bool _locked, uint256 _likes, bool _featured) { return (TOKENS[_tokenId]._creator,TOKENS[_tokenId]._locked,TOKENS[_tokenId]._number_likes,TOKENS[_tokenId]._featured); } function set_featured(uint256 _tokenId) external payable { require(msg.value == PRICE, "Invalid ETH"); TOKENS[_tokenId]._featured = true; } function set_feature_price(uint256 _price) external onlyME { PRICE = _price; } function add_like(uint256 _tokenId) public { require(!TOKENS[_tokenId]._likes[msg.sender]); TOKENS[_tokenId]._likes[msg.sender] = true; TOKENS[_tokenId]._number_likes++; } }
// 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 () { address msgSender = _msgSender(); _owner = msgSender; emit OwnershipTransferred(address(0), 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 { emit OwnershipTransferred(_owner, address(0)); _owner = 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"); emit OwnershipTransferred(_owner, newOwner); _owner = newOwner; } }
// 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}. 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(to).onERC721Received.selector; } catch (bytes memory reason) { if (reason.length == 0) { revert("ERC721: transfer to non ERC721Receiver implementer"); } else { // solhint-disable-next-line no-inline-assembly assembly { revert(add(32, reason), mload(reason)) } } } } else { return true; } } /** * @dev Hook that is called before any token transfer. This includes minting * and burning. * * Calling conditions: * * - When `from` and `to` are both non-zero, ``from``'s `tokenId` will be * transferred to `to`. * - When `from` is zero, `tokenId` will be minted for `to`. * - When `to` is zero, ``from``'s `tokenId` will be burned. * - `from` cannot be the zero address. * - `to` cannot be the zero address. * * 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/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 "../ERC721.sol"; import "./IERC721Enumerable.sol"; /** * @dev This implements an optional extension of {ERC721} defined in the EIP that adds * enumerability of all the token ids in the contract as well as all token ids owned by each * account. */ abstract contract ERC721Enumerable is ERC721, IERC721Enumerable { // Mapping from owner to list of owned token IDs mapping(address => mapping(uint256 => uint256)) private _ownedTokens; // Mapping from token ID to index of the owner tokens list mapping(uint256 => uint256) private _ownedTokensIndex; // Array with all token ids, used for enumeration uint256[] private _allTokens; // Mapping from token id to position in the allTokens array mapping(uint256 => uint256) private _allTokensIndex; /** * @dev See {IERC165-supportsInterface}. */ function supportsInterface(bytes4 interfaceId) public view virtual override(IERC165, ERC721) returns (bool) { return interfaceId == type(IERC721Enumerable).interfaceId || super.supportsInterface(interfaceId); } /** * @dev See {IERC721Enumerable-tokenOfOwnerByIndex}. */ function tokenOfOwnerByIndex(address owner, uint256 index) public view virtual override returns (uint256) { require(index < ERC721.balanceOf(owner), "ERC721Enumerable: owner index out of bounds"); return _ownedTokens[owner][index]; } /** * @dev See {IERC721Enumerable-totalSupply}. */ function totalSupply() public view virtual override returns (uint256) { return _allTokens.length; } /** * @dev See {IERC721Enumerable-tokenByIndex}. */ function tokenByIndex(uint256 index) public view virtual override returns (uint256) { require(index < ERC721Enumerable.totalSupply(), "ERC721Enumerable: global index out of bounds"); return _allTokens[index]; } /** * @dev 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` cannot be the zero address. * - `to` cannot be the zero address. * * 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 override { super._beforeTokenTransfer(from, to, tokenId); if (from == address(0)) { _addTokenToAllTokensEnumeration(tokenId); } else if (from != to) { _removeTokenFromOwnerEnumeration(from, tokenId); } if (to == address(0)) { _removeTokenFromAllTokensEnumeration(tokenId); } else if (to != from) { _addTokenToOwnerEnumeration(to, tokenId); } } /** * @dev Private function to add a token to this extension's ownership-tracking data structures. * @param to address representing the new owner of the given token ID * @param tokenId uint256 ID of the token to be added to the tokens list of the given address */ function _addTokenToOwnerEnumeration(address to, uint256 tokenId) private { uint256 length = ERC721.balanceOf(to); _ownedTokens[to][length] = tokenId; _ownedTokensIndex[tokenId] = length; } /** * @dev Private function to add a token to this extension's token tracking data structures. * @param tokenId uint256 ID of the token to be added to the tokens list */ function _addTokenToAllTokensEnumeration(uint256 tokenId) private { _allTokensIndex[tokenId] = _allTokens.length; _allTokens.push(tokenId); } /** * @dev Private function to remove a token from this extension's ownership-tracking data structures. Note that * while the token is not assigned a new owner, the `_ownedTokensIndex` mapping is _not_ updated: this allows for * gas optimizations e.g. when performing a transfer operation (avoiding double writes). * This has O(1) time complexity, but alters the order of the _ownedTokens array. * @param from address representing the previous owner of the given token ID * @param tokenId uint256 ID of the token to be removed from the tokens list of the given address */ function _removeTokenFromOwnerEnumeration(address from, uint256 tokenId) private { // To prevent a gap in from's tokens array, we store the last token in the index of the token to delete, and // then delete the last slot (swap and pop). uint256 lastTokenIndex = ERC721.balanceOf(from) - 1; uint256 tokenIndex = _ownedTokensIndex[tokenId]; // When the token to delete is the last token, the swap operation is unnecessary if (tokenIndex != lastTokenIndex) { uint256 lastTokenId = _ownedTokens[from][lastTokenIndex]; _ownedTokens[from][tokenIndex] = lastTokenId; // Move the last token to the slot of the to-delete token _ownedTokensIndex[lastTokenId] = tokenIndex; // Update the moved token's index } // This also deletes the contents at the last position of the array delete _ownedTokensIndex[tokenId]; delete _ownedTokens[from][lastTokenIndex]; } /** * @dev Private function to remove a token from this extension's token tracking data structures. * This has O(1) time complexity, but alters the order of the _allTokens array. * @param tokenId uint256 ID of the token to be removed from the tokens list */ function _removeTokenFromAllTokensEnumeration(uint256 tokenId) private { // To prevent a gap in the tokens array, we store the last token in the index of the token to delete, and // then delete the last slot (swap and pop). uint256 lastTokenIndex = _allTokens.length - 1; uint256 tokenIndex = _allTokensIndex[tokenId]; // When the token to delete is the last token, the swap operation is unnecessary. However, since this occurs so // rarely (when the last minted token is burnt) that we still do the swap here to avoid the gas cost of adding // an 'if' statement (like in _removeTokenFromOwnerEnumeration) uint256 lastTokenId = _allTokens[lastTokenIndex]; _allTokens[tokenIndex] = lastTokenId; // Move the last token to the slot of the to-delete token _allTokensIndex[lastTokenId] = tokenIndex; // Update the moved token's index // This also deletes the contents at the last position of the array delete _allTokensIndex[tokenId]; _allTokens.pop(); } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import "../IERC721.sol"; /** * @title ERC-721 Non-Fungible Token Standard, optional enumeration extension * @dev See https://eips.ethereum.org/EIPS/eip-721 */ interface IERC721Enumerable is IERC721 { /** * @dev Returns the total amount of tokens stored by the contract. */ function totalSupply() external view returns (uint256); /** * @dev Returns a token ID owned by `owner` at a given `index` of its token list. * Use along with {balanceOf} to enumerate all of ``owner``'s tokens. */ function tokenOfOwnerByIndex(address owner, uint256 index) external view returns (uint256 tokenId); /** * @dev Returns a token ID at a given `index` of all the tokens stored by the contract. * Use along with {totalSupply} to enumerate all tokens. */ function tokenByIndex(uint256 index) external view returns (uint256); }
// SPDX-License-Identifier: MIT 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; // solhint-disable-next-line no-inline-assembly assembly { size := extcodesize(account) } return size > 0; } /** * @dev Replacement for Solidity's `transfer`: sends `amount` wei to * `recipient`, forwarding all available gas and reverting on errors. * * https://eips.ethereum.org/EIPS/eip-1884[EIP1884] increases the gas cost * of certain opcodes, possibly making contracts go over the 2300 gas limit * imposed by `transfer`, making them unable to receive funds via * `transfer`. {sendValue} removes this limitation. * * https://diligence.consensys.net/posts/2019/09/stop-using-soliditys-transfer-now/[Learn more]. * * IMPORTANT: because control is transferred to `recipient`, care must be * taken to not create reentrancy vulnerabilities. Consider using * {ReentrancyGuard} or the * https://solidity.readthedocs.io/en/v0.5.11/security-considerations.html#use-the-checks-effects-interactions-pattern[checks-effects-interactions pattern]. */ function sendValue(address payable recipient, uint256 amount) internal { require(address(this).balance >= amount, "Address: insufficient balance"); // solhint-disable-next-line avoid-low-level-calls, avoid-call-value (bool success, ) = recipient.call{ value: amount }(""); require(success, "Address: unable to send value, recipient may have reverted"); } /** * @dev Performs a Solidity function call using a low level `call`. A * plain`call` is an unsafe replacement for a function call: use this * function instead. * * If `target` reverts with a revert reason, it is bubbled up by this * function (like regular Solidity function calls). * * Returns the raw returned data. To convert to the expected return value, * use https://solidity.readthedocs.io/en/latest/units-and-global-variables.html?highlight=abi.decode#abi-encoding-and-decoding-functions[`abi.decode`]. * * Requirements: * * - `target` must be a contract. * - calling `target` with `data` must not revert. * * _Available since v3.1._ */ function functionCall(address target, bytes memory data) internal returns (bytes memory) { return functionCall(target, data, "Address: low-level call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], but with * `errorMessage` as a fallback revert reason when `target` reverts. * * _Available since v3.1._ */ function functionCall(address target, bytes memory data, string memory errorMessage) internal returns (bytes memory) { return functionCallWithValue(target, data, 0, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but also transferring `value` wei to `target`. * * Requirements: * * - the calling contract must have an ETH balance of at least `value`. * - the called Solidity function must be `payable`. * * _Available since v3.1._ */ function functionCallWithValue(address target, bytes memory data, uint256 value) internal returns (bytes memory) { return functionCallWithValue(target, data, value, "Address: low-level call with value failed"); } /** * @dev Same as {xref-Address-functionCallWithValue-address-bytes-uint256-}[`functionCallWithValue`], but * with `errorMessage` as a fallback revert reason when `target` reverts. * * _Available since v3.1._ */ function functionCallWithValue(address target, bytes memory data, uint256 value, string memory errorMessage) internal returns (bytes memory) { require(address(this).balance >= value, "Address: insufficient balance for call"); require(isContract(target), "Address: call to non-contract"); // solhint-disable-next-line avoid-low-level-calls (bool success, bytes memory returndata) = target.call{ value: value }(data); return _verifyCallResult(success, returndata, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but performing a static call. * * _Available since v3.3._ */ function functionStaticCall(address target, bytes memory data) internal view returns (bytes memory) { return functionStaticCall(target, data, "Address: low-level static call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`], * but performing a static call. * * _Available since v3.3._ */ function functionStaticCall(address target, bytes memory data, string memory errorMessage) internal view returns (bytes memory) { require(isContract(target), "Address: static call to non-contract"); // solhint-disable-next-line avoid-low-level-calls (bool success, bytes memory returndata) = target.staticcall(data); return _verifyCallResult(success, returndata, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but performing a delegate call. * * _Available since v3.4._ */ function functionDelegateCall(address target, bytes memory data) internal returns (bytes memory) { return functionDelegateCall(target, data, "Address: low-level delegate call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`], * but performing a delegate call. * * _Available since v3.4._ */ function functionDelegateCall(address target, bytes memory data, string memory errorMessage) internal returns (bytes memory) { require(isContract(target), "Address: delegate call to non-contract"); // solhint-disable-next-line avoid-low-level-calls (bool success, bytes memory returndata) = target.delegatecall(data); return _verifyCallResult(success, returndata, errorMessage); } function _verifyCallResult(bool success, bytes memory returndata, string memory errorMessage) private pure returns(bytes memory) { if (success) { return returndata; } else { // Look for revert reason and bubble it up if present if (returndata.length > 0) { // The easiest way to bubble the revert reason is using memory via assembly // solhint-disable-next-line no-inline-assembly assembly { let returndata_size := mload(returndata) revert(add(32, returndata), returndata_size) } } else { revert(errorMessage); } } } }
// SPDX-License-Identifier: MIT pragma solidity ^0.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) { this; // silence state mutability warning without generating bytecode - see https://github.com/ethereum/solidity/issues/2691 return msg.data; } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; /** * @dev String operations. */ library Strings { bytes16 private constant alphabet = "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] = alphabet[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; // 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. This function uses a `revert` * opcode (which leaves remaining gas untouched) while Solidity uses an * invalid opcode to revert (consuming all remaining gas). * * 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: MIT pragma solidity ^0.8.0; import "openzeppelin-solidity/contracts/token/ERC721/ERC721.sol"; import "openzeppelin-solidity/contracts/token/ERC721/extensions/ERC721Enumerable.sol"; import "openzeppelin-solidity/contracts/access/Ownable.sol"; import "openzeppelin-solidity/contracts/utils/math/SafeMath.sol"; import "openzeppelin-solidity/contracts/utils/Strings.sol"; import "./common/meta-transactions/ContentMixin.sol"; import "./common/meta-transactions/NativeMetaTransaction.sol"; import "./base64.sol"; contract OwnableDelegateProxy {} contract ProxyRegistry { mapping(address => OwnableDelegateProxy) public proxies; } /** * @title ERC721TradableCHAIN * ERC721TradableCHAIN - ERC721 contract that whitelists a trading address, and has minting functionality. */ abstract contract ERC721TradableCHAIN is ContextMixin, ERC721Enumerable, NativeMetaTransaction, Ownable { using SafeMath for uint256; struct tokenInfo { address _owner; address _creator; string _name; string _description; string _animation; string _image; string _codec; string _codec_animation; string _attributes; uint256 _number_likes; bool _image_encoded; bool _animation_image_encoded; bool _featured; bool _locked; bool _created; mapping (address => bool) _likes; } mapping (uint256 => tokenInfo) TOKENS; address proxyRegistryAddress; uint256 internal _currentTokenId; event Unveiled(uint256 tokenId, address receiver); constructor(string memory _name, string memory _symbol, address _proxyRegistryAddress ) ERC721(_name, _symbol) { proxyRegistryAddress = _proxyRegistryAddress; _initializeEIP712(_name); } function mintToken() public { uint256 newTokenId = _getNextTokenId(); tokenInfo storage newToken = TOKENS[newTokenId]; newToken._owner = msg.sender; _mint(msg.sender, newTokenId); _incrementTokenId(); emit Unveiled(newTokenId, msg.sender); } function transferFrom(address from, address to, uint256 tokenId) public virtual override { require(_isApprovedOrOwner(_msgSender(), tokenId), "ERC721: caller is not token owner nor approved"); TOKENS[tokenId]._owner = to; _transfer(from, to, tokenId); } function safeTransferFrom(address from, address to, uint256 tokenId, bytes memory data) public virtual override { require(_isApprovedOrOwner(_msgSender(), tokenId), "ERC721: caller is not token owner nor approved"); TOKENS[tokenId]._owner = to; _safeTransfer(from, to, tokenId, data); } function _getNextTokenId() private view returns (uint256) { return _currentTokenId.add(1); } function _incrementTokenId() private { _currentTokenId++; } function baseTokenURI() virtual public view returns (string memory); function isApprovedForAll(address owner, address operator) override public view returns (bool) { ProxyRegistry proxyRegistry = ProxyRegistry(proxyRegistryAddress); if (address(proxyRegistry.proxies(owner)) == operator) { return true; } return super.isApprovedForAll(owner, operator); } function _msgSender() internal override view returns (address sender) { return ContextMixin.msgSender(); } modifier onlyME() { require((owner() == msg.sender), "no"); _; } function withdraw(address payable recipient, uint256 amount) external onlyME { recipient.transfer(amount); } function toAsciiString(address x) internal pure returns (string memory) { bytes memory s = new bytes(40); for (uint i = 0; i < 20; i++) { bytes1 b = bytes1(uint8(uint(uint160(x)) / (2**(8*(19 - i))))); bytes1 hi = bytes1(uint8(b) / 16); bytes1 lo = bytes1(uint8(b) - 16 * uint8(hi)); s[2*i] = char(hi); s[2*i+1] = char(lo); } return string(s); } function char(bytes1 b) internal pure returns (bytes1 c) { if (uint8(b) < 10) return bytes1(uint8(b) + 0x30); else return bytes1(uint8(b) + 0x57); } }
// SPDX-License-Identifier: MIT pragma solidity >=0.6.0; library Base64 { string internal constant TABLE_ENCODE = 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/'; bytes internal constant TABLE_DECODE = hex"0000000000000000000000000000000000000000000000000000000000000000" hex"00000000000000000000003e0000003f3435363738393a3b3c3d000000000000" hex"00000102030405060708090a0b0c0d0e0f101112131415161718190000000000" hex"001a1b1c1d1e1f202122232425262728292a2b2c2d2e2f303132330000000000"; function encode(bytes memory data) internal pure returns (string memory) { if (data.length == 0) return ''; string memory table = TABLE_ENCODE; uint256 encodedLen = 4 * ((data.length + 2) / 3); string memory result = new string(encodedLen + 32); assembly { mstore(result, encodedLen) let tablePtr := add(table, 1) let dataPtr := data let endPtr := add(dataPtr, mload(data)) let resultPtr := add(result, 32) for {} lt(dataPtr, endPtr) {} { dataPtr := add(dataPtr, 3) let input := mload(dataPtr) mstore8(resultPtr, mload(add(tablePtr, and(shr(18, input), 0x3F)))) resultPtr := add(resultPtr, 1) mstore8(resultPtr, mload(add(tablePtr, and(shr(12, input), 0x3F)))) resultPtr := add(resultPtr, 1) mstore8(resultPtr, mload(add(tablePtr, and(shr( 6, input), 0x3F)))) resultPtr := add(resultPtr, 1) mstore8(resultPtr, mload(add(tablePtr, and( input, 0x3F)))) resultPtr := add(resultPtr, 1) } switch mod(mload(data), 3) case 1 { mstore(sub(resultPtr, 2), shl(240, 0x3d3d)) } case 2 { mstore(sub(resultPtr, 1), shl(248, 0x3d)) } } return result; } function decode(string memory _data) internal pure returns (bytes memory) { bytes memory data = bytes(_data); if (data.length == 0) return new bytes(0); require(data.length % 4 == 0, "invalid base64 decoder input"); bytes memory table = TABLE_DECODE; uint256 decodedLen = (data.length / 4) * 3; bytes memory result = new bytes(decodedLen + 32); assembly { let lastBytes := mload(add(data, mload(data))) if eq(and(lastBytes, 0xFF), 0x3d) { decodedLen := sub(decodedLen, 1) if eq(and(lastBytes, 0xFFFF), 0x3d3d) { decodedLen := sub(decodedLen, 1) } } mstore(result, decodedLen) let tablePtr := add(table, 1) let dataPtr := data let endPtr := add(dataPtr, mload(data)) let resultPtr := add(result, 32) for {} lt(dataPtr, endPtr) {} { dataPtr := add(dataPtr, 4) let input := mload(dataPtr) let output := add( add( shl(18, and(mload(add(tablePtr, and(shr(24, input), 0xFF))), 0xFF)), shl(12, and(mload(add(tablePtr, and(shr(16, input), 0xFF))), 0xFF))), add( shl( 6, and(mload(add(tablePtr, and(shr( 8, input), 0xFF))), 0xFF)), and(mload(add(tablePtr, and( input , 0xFF))), 0xFF) ) ) mstore(resultPtr, shl(232, output)) resultPtr := add(resultPtr, 3) } } return result; } }
// SPDX-License-Identifier: MIT 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: MIT 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 constant public 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 contracts 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: MIT 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 {SafeMath} from "openzeppelin-solidity/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 ); } }
{ "remappings": [], "optimizer": { "enabled": true, "runs": 20 }, "evmVersion": "istanbul", "libraries": {}, "outputSelection": { "*": { "*": [ "evm.bytecode", "evm.deployedBytecode", "devdoc", "userdoc", "metadata", "abi" ] } } }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"inputs":[{"internalType":"address","name":"_proxyRegistryAddress","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"approved","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":false,"internalType":"bool","name":"approved","type":"bool"}],"name":"ApprovalForAll","type":"event"},{"anonymous":false,"inputs":[{"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":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":"uint256","name":"tokenId","type":"uint256"},{"indexed":false,"internalType":"address","name":"receiver","type":"address"}],"name":"Unveiled","type":"event"},{"inputs":[],"name":"ERC712_VERSION","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_tokenId","type":"uint256"}],"name":"add_like","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"approve","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"baseTokenURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"contractURI","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":"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":"address","name":"owner","type":"address"},{"internalType":"address","name":"operator","type":"address"}],"name":"isApprovedForAll","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_tokenId","type":"uint256"}],"name":"lock_data","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"mintToken","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":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"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":"uint256","name":"_price","type":"uint256"}],"name":"set_feature_price","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_tokenId","type":"uint256"}],"name":"set_featured","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_tokenId","type":"uint256"},{"internalType":"string","name":"name","type":"string"},{"internalType":"string","name":"description","type":"string"},{"internalType":"string","name":"attributes","type":"string"},{"internalType":"string","name":"image","type":"string"},{"internalType":"bool","name":"base64","type":"bool"},{"internalType":"string","name":"data_uri","type":"string"}],"name":"set_token","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_tokenId","type":"uint256"},{"internalType":"string","name":"name","type":"string"},{"internalType":"string","name":"description","type":"string"},{"internalType":"string","name":"attributes","type":"string"},{"internalType":"string","name":"image","type":"string"},{"internalType":"bool","name":"base64","type":"bool"},{"internalType":"string","name":"data_uri","type":"string"},{"internalType":"string","name":"animation_image","type":"string"},{"internalType":"bool","name":"animation_base64","type":"bool"},{"internalType":"string","name":"animation_data_uri","type":"string"}],"name":"set_token_animation","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":"index","type":"uint256"}],"name":"tokenByIndex","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"uint256","name":"index","type":"uint256"}],"name":"tokenOfOwnerByIndex","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_tokenId","type":"uint256"}],"name":"tokenURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_tokenId","type":"uint256"}],"name":"token_info","outputs":[{"internalType":"address","name":"_creator","type":"address"},{"internalType":"bool","name":"_locked","type":"bool"},{"internalType":"uint256","name":"_likes","type":"uint256"},{"internalType":"bool","name":"_featured","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"transferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address payable","name":"recipient","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"withdraw","outputs":[],"stateMutability":"nonpayable","type":"function"}]
Contract Creation Code
600a805460ff1916905560c0604052601160808190527068747470733a2f2f79617a6f2e66756e2f60781b60a09081526200003c9190816200032f565b50604051806102800160405280610242815260200162003ef66102429139805162000070916012916020909101906200032f565b50662386f26fc100006013553480156200008957600080fd5b506040516200418738038062004187833981016040819052620000ac91620003d5565b6040518060400160405280600681526020016543524541544560d01b8152506040518060400160405280600681526020016543524541544560d01b8152508282828160009080519060200190620001059291906200032f565b5080516200011b9060019060208401906200032f565b505050600062000130620001ae60201b60201c565b600d80546001600160a01b0319166001600160a01b038316908117909155604051919250906000907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908290a350600f80546001600160a01b0319166001600160a01b038316179055620001a483620001ca565b5050505062000442565b6000620001c56200022e60201b620017621760201c565b905090565b600a5460ff1615620002135760405162461bcd60e51b815260206004820152600e60248201526d185b1c9958591e481a5b9a5d195960921b604482015260640160405180910390fd5b6200021e816200028d565b50600a805460ff19166001179055565b6000333014156200028757600080368080601f0160208091040260200160405190810160405280939291908181526020018383808284376000920191909152505050503601516001600160a01b031691506200028a9050565b50335b90565b6040518060800160405280604f815260200162004138604f9139805160209182012082519282019290922060408051808201825260018152603160f81b90840152805180840194909452838101919091527fc89efdaa54c0f20c7adf612882df0950f5a951637e0307cdcb4c672f298b8bc660608401523060808401524660a0808501919091528151808503909101815260c090930190528151910120600b55565b8280546200033d9062000405565b90600052602060002090601f016020900481019282620003615760008555620003ac565b82601f106200037c57805160ff1916838001178555620003ac565b82800160010185558215620003ac579182015b82811115620003ac5782518255916020019190600101906200038f565b50620003ba929150620003be565b5090565b5b80821115620003ba5760008155600101620003bf565b600060208284031215620003e7578081fd5b81516001600160a01b0381168114620003fe578182fd5b9392505050565b600181811c908216806200041a57607f821691505b602082108114156200043c57634e487b7160e01b600052602260045260246000fd5b50919050565b613aa480620004526000396000f3fe6080604052600436106101a35760003560e01c806351ebd819116100e857806351ebd819146103e05780636352211e146103f357806364101b411461041357806370a0823114610433578063715018a6146104535780638da5cb5b1461046857806395d89b411461047d5780639954f64514610492578063a22cb465146104b2578063b88d4fde146104d2578063c87b56dd146104f2578063d4d06faf14610512578063d547cfb714610599578063e8a3d485146105ae578063e985e9c5146105c3578063f2fde38b146105e3578063f3fef3a314610603578063f8a1a08a1461062357600080fd5b8062c68cdd146101a857806301ffc9a7146101ca57806306fdde03146101ff578063081812fc14610221578063095ea7b31461024e5780630c53c51c1461026e5780630f7e59701461028157806318160ddd146102ae5780632004ffd9146102cd57806320379ee5146102e257806323b872dd146102f75780632d0335ab146103175780632f745c591461034d5780633408e4701461036d57806342842e0e146103805780634f6ccce7146103a057806351223e08146103c0575b600080fd5b3480156101b457600080fd5b506101c86101c3366004612f01565b610643565b005b3480156101d657600080fd5b506101ea6101e5366004612e95565b61079c565b60405190151581526020015b60405180910390f35b34801561020b57600080fd5b506102146107c7565b6040516101f6919061361d565b34801561022d57600080fd5b5061024161023c366004612ee9565b610859565b6040516101f69190613597565b34801561025a57600080fd5b506101c8610269366004612e83565b6108e6565b61021461027c366004612e09565b610a09565b34801561028d57600080fd5b50610214604051806040016040528060018152602001603160f81b81525081565b3480156102ba57600080fd5b506008545b6040519081526020016101f6565b3480156102d957600080fd5b506101c8610bf2565b3480156102ee57600080fd5b50600b546102bf565b34801561030357600080fd5b506101c8610312366004612d2c565b610c6e565b34801561032357600080fd5b506102bf610332366004612cad565b6001600160a01b03166000908152600c602052604090205490565b34801561035957600080fd5b506102bf610368366004612e83565b610ccd565b34801561037957600080fd5b50466102bf565b34801561038c57600080fd5b506101c861039b366004612d2c565b610d63565b3480156103ac57600080fd5b506102bf6103bb366004612ee9565b610d7e565b3480156103cc57600080fd5b506101c86103db366004612ee9565b610e1f565b6101c86103ee366004612ee9565b610e66565b3480156103ff57600080fd5b5061024161040e366004612ee9565b610ec7565b34801561041f57600080fd5b506101c861042e366004612fe6565b610f3e565b34801561043f57600080fd5b506102bf61044e366004612cad565b6110fd565b34801561045f57600080fd5b506101c8611184565b34801561047457600080fd5b5061024161120d565b34801561048957600080fd5b5061021461121c565b34801561049e57600080fd5b506101c86104ad366004612ee9565b61122b565b3480156104be57600080fd5b506101c86104cd366004612dd5565b61129a565b3480156104de57600080fd5b506101c86104ed366004612d6c565b611398565b3480156104fe57600080fd5b5061021461050d366004612ee9565b6113fe565b34801561051e57600080fd5b5061056d61052d366004612ee9565b6000908152600e602052604090206001810154600a8201546009909201546001600160a01b039091169260ff630100000084048116936201000090041690565b604080516001600160a01b039095168552921515602085015291830152151560608201526080016101f6565b3480156105a557600080fd5b50610214611409565b3480156105ba57600080fd5b506102146114a3565b3480156105cf57600080fd5b506101ea6105de366004612cf4565b6114f5565b3480156105ef57600080fd5b506101c86105fe366004612cad565b6115c9565b34801561060f57600080fd5b506101c861061e366004612cc9565b6116c9565b34801561062f57600080fd5b506101c861063e366004612ee9565b61172e565b6000878152600e60205260409020546001600160a01b0316331461066657600080fd5b6000878152600e60205260409020600a01546301000000900460ff161561068c57600080fd5b6000878152600e60209081526040909120600a8101805460ff60201b1916600160201b1790556001810180546001600160a01b0319163317905587516106da92600290920191890190612b7e565b506000878152600e60209081526040909120865161070092600390920191880190612b7e565b506000878152600e60209081526040909120855161072692600890920191870190612b7e565b506000878152600e60209081526040909120845161074c92600590920191860190612b7e565b506000878152600e60209081526040909120825161077292600690920191840190612b7e565b50506000958652600e6020526040909520600a01805460ff19169515159590951790945550505050565b60006001600160e01b0319821663780e9d6360e01b14806107c157506107c1826117bf565b92915050565b6060600080546107d690613925565b80601f016020809104026020016040519081016040528092919081815260200182805461080290613925565b801561084f5780601f106108245761010080835404028352916020019161084f565b820191906000526020600020905b81548152906001019060200180831161083257829003601f168201915b5050505050905090565b60006108648261180f565b6108ca5760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a20617070726f76656420717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b60648201526084015b60405180910390fd5b506000908152600460205260409020546001600160a01b031690565b60006108f182610ec7565b9050806001600160a01b0316836001600160a01b0316141561095f5760405162461bcd60e51b815260206004820152602160248201527f4552433732313a20617070726f76616c20746f2063757272656e74206f776e656044820152603960f91b60648201526084016108c1565b806001600160a01b031661097161182c565b6001600160a01b0316148061098d575061098d816105de61182c565b6109fa5760405162461bcd60e51b815260206004820152603860248201527f4552433732313a20617070726f76652063616c6c6572206973206e6f74206f776044820152771b995c881b9bdc88185c1c1c9bdd995908199bdc88185b1b60421b60648201526084016108c1565b610a048383611836565b505050565b60408051606081810183526001600160a01b0388166000818152600c602090815290859020548452830152918101869052610a4787828787876118a4565b610a9d5760405162461bcd60e51b815260206004820152602160248201527f5369676e657220616e64207369676e617475726520646f206e6f74206d6174636044820152600d60fb1b60648201526084016108c1565b6001600160a01b0387166000908152600c6020526040902054610ac1906001611994565b6001600160a01b0388166000908152600c60205260409081902091909155517f5845892132946850460bff5a0083f71031bc5bf9aadcd40f1de79423eac9b10b90610b1190899033908a906135ab565b60405180910390a1600080306001600160a01b0316888a604051602001610b39929190613221565b60408051601f1981840301815290829052610b5391613205565b6000604051808303816000865af19150503d8060008114610b90576040519150601f19603f3d011682016040523d82523d6000602084013e610b95565b606091505b509150915081610be65760405162461bcd60e51b815260206004820152601c60248201527b119d5b98dd1a5bdb8818d85b1b081b9bdd081cdd58d8d95cdcd99d5b60221b60448201526064016108c1565b98975050505050505050565b6000610bfc6119a7565b6000818152600e6020526040902080546001600160a01b03191633908117825591925090610c2a90836119b8565b610c32611af6565b604080518381523360208201527ff0c5df69252d53366232eb47e2356ca22a0b21568ff375c79c68b85c51934d3c910160405180910390a15050565b610c7f610c7961182c565b82611b0d565b610c9b5760405162461bcd60e51b81526004016108c1906136d3565b6000818152600e6020526040902080546001600160a01b0319166001600160a01b038416179055610a04838383611bcf565b6000610cd8836110fd565b8210610d3a5760405162461bcd60e51b815260206004820152602b60248201527f455243373231456e756d657261626c653a206f776e657220696e646578206f7560448201526a74206f6620626f756e647360a81b60648201526084016108c1565b506001600160a01b03919091166000908152600660209081526040808320938352929052205490565b610a0483838360405180602001604052806000815250611398565b6000610d8960085490565b8210610dec5760405162461bcd60e51b815260206004820152602c60248201527f455243373231456e756d657261626c653a20676c6f62616c20696e646578206f60448201526b7574206f6620626f756e647360a01b60648201526084016108c1565b60088281548110610e0d57634e487b7160e01b600052603260045260246000fd5b90600052602060002001549050919050565b6000818152600e60205260409020546001600160a01b03163314610e4257600080fd5b6000908152600e60205260409020600a01805463ff00000019166301000000179055565b6013543414610ea55760405162461bcd60e51b815260206004820152600b60248201526a092dcecc2d8d2c8408aa8960ab1b60448201526064016108c1565b6000908152600e60205260409020600a01805462ff0000191662010000179055565b6000818152600260205260408120546001600160a01b0316806107c15760405162461bcd60e51b815260206004820152602960248201527f4552433732313a206f776e657220717565727920666f72206e6f6e657869737460448201526832b73a103a37b5b2b760b91b60648201526084016108c1565b60008a8152600e60205260409020546001600160a01b03163314610f6157600080fd5b60008a8152600e60205260409020600a01546301000000900460ff1615610f8757600080fd5b60008a8152600e60209081526040909120600a8101805460ff60201b1916600160201b1790556001810180546001600160a01b031916331790558a51610fd5926002909201918c0190612b7e565b5060008a8152600e602090815260409091208951610ffb926003909201918b0190612b7e565b5060008a8152600e602090815260409091208851611021926008909201918a0190612b7e565b5060008a8152600e60209081526040909120875161104792600590920191890190612b7e565b5060008a8152600e60209081526040909120855161106d92600690920191870190612b7e565b5060008a8152600e60209081526040909120600a8101805460ff191688151517905584516110a392600490920191860190612b7e565b5060008a8152600e6020908152604090912082516110c992600790920191840190612b7e565b50506000988952600e6020526040909820600a0180549815156101000261ff00199099169890981790975550505050505050565b60006001600160a01b0382166111685760405162461bcd60e51b815260206004820152602a60248201527f4552433732313a2062616c616e636520717565727920666f7220746865207a65604482015269726f206164647265737360b01b60648201526084016108c1565b506001600160a01b031660009081526003602052604090205490565b61118c61182c565b6001600160a01b031661119d61120d565b6001600160a01b0316146111c35760405162461bcd60e51b81526004016108c19061369e565b600d546040516000916001600160a01b0316907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908390a3600d80546001600160a01b0319169055565b600d546001600160a01b031690565b6060600180546107d690613925565b6000818152600e60209081526040808320338452600b0190915290205460ff161561125557600080fd5b6000818152600e60208181526040808420338552600b81018352908420805460ff1916600117905584845291905260090180549161129283613960565b919050555050565b6112a261182c565b6001600160a01b0316826001600160a01b031614156112ff5760405162461bcd60e51b815260206004820152601960248201527822a9219b99189d1030b8383937bb32903a379031b0b63632b960391b60448201526064016108c1565b806005600061130c61182c565b6001600160a01b03908116825260208083019390935260409182016000908120918716808252919093529120805460ff19169215159290921790915561135061182c565b6001600160a01b03167f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c318360405161138c911515815260200190565b60405180910390a35050565b6113a96113a361182c565b83611b0d565b6113c55760405162461bcd60e51b81526004016108c1906136d3565b6000828152600e6020526040902080546001600160a01b0319166001600160a01b0385161790556113f884848484611d7a565b50505050565b60606107c182611dad565b606061149e6011805461141b90613925565b80601f016020809104026020016040519081016040528092919081815260200182805461144790613925565b80156114945780601f1061146957610100808354040283529160200191611494565b820191906000526020600020905b81548152906001019060200180831161147757829003601f168201915b50505050506123f1565b905090565b60606114d1601260116040516020016114bd929190613497565b6040516020818303038152906040526123f1565b6040516020016114e19190613552565b604051602081830303815290604052905090565b600f5460405163c455279160e01b81526000916001600160a01b039081169190841690829063c45527919061152e908890600401613597565b60206040518083038186803b15801561154657600080fd5b505afa15801561155a573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061157e9190612ecd565b6001600160a01b031614156115975760019150506107c1565b6001600160a01b0380851660009081526005602090815260408083209387168352929052205460ff165b949350505050565b6115d161182c565b6001600160a01b03166115e261120d565b6001600160a01b0316146116085760405162461bcd60e51b81526004016108c19061369e565b6001600160a01b03811661166d5760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b60648201526084016108c1565b600d546040516001600160a01b038084169216907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a3600d80546001600160a01b0319166001600160a01b0392909216919091179055565b336116d261120d565b6001600160a01b0316146116f85760405162461bcd60e51b81526004016108c190613682565b6040516001600160a01b0383169082156108fc029083906000818181858888f19350505050158015610a04573d6000803e3d6000fd5b3361173761120d565b6001600160a01b03161461175d5760405162461bcd60e51b81526004016108c190613682565b601355565b6000333014156117b957600080368080601f0160208091040260200160405190810160405280939291908181526020018383808284376000920191909152505050503601516001600160a01b031691506117bc9050565b50335b90565b60006001600160e01b031982166380ac58cd60e01b14806117f057506001600160e01b03198216635b5e139f60e01b145b806107c157506301ffc9a760e01b6001600160e01b03198316146107c1565b6000908152600260205260409020546001600160a01b0316151590565b600061149e611762565b600081815260046020526040902080546001600160a01b0319166001600160a01b038416908117909155819061186b82610ec7565b6001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b60006001600160a01b03861661190a5760405162461bcd60e51b815260206004820152602560248201527f4e61746976654d6574615472616e73616374696f6e3a20494e56414c49445f5360448201526424a3a722a960d91b60648201526084016108c1565b600161191d61191887612564565b6125e1565b6040805160008152602081018083529290925260ff851690820152606081018690526080810185905260a0016020604051602081039080840390855afa15801561196b573d6000803e3d6000fd5b505050602060405103516001600160a01b0316866001600160a01b031614905095945050505050565b60006119a08284613721565b9392505050565b60105460009061149e906001611994565b6001600160a01b038216611a0e5760405162461bcd60e51b815260206004820181905260248201527f4552433732313a206d696e7420746f20746865207a65726f206164647265737360448201526064016108c1565b611a178161180f565b15611a635760405162461bcd60e51b815260206004820152601c60248201527b115490cdcc8c4e881d1bdad95b88185b1c9958591e481b5a5b9d195960221b60448201526064016108c1565b611a6f60008383612611565b6001600160a01b0382166000908152600360205260408120805460019290611a98908490613721565b909155505060008181526002602052604080822080546001600160a01b0319166001600160a01b03861690811790915590518392907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b60108054906000611b0683613960565b9190505550565b6000611b188261180f565b611b795760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a206f70657261746f7220717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b60648201526084016108c1565b6000611b8483610ec7565b9050806001600160a01b0316846001600160a01b03161480611bbf5750836001600160a01b0316611bb484610859565b6001600160a01b0316145b806115c157506115c181856114f5565b826001600160a01b0316611be282610ec7565b6001600160a01b031614611c4a5760405162461bcd60e51b815260206004820152602960248201527f4552433732313a207472616e73666572206f6620746f6b656e2074686174206960448201526839903737ba1037bbb760b91b60648201526084016108c1565b6001600160a01b038216611cac5760405162461bcd60e51b8152602060048201526024808201527f4552433732313a207472616e7366657220746f20746865207a65726f206164646044820152637265737360e01b60648201526084016108c1565b611cb7838383612611565b611cc2600082611836565b6001600160a01b0383166000908152600360205260408120805460019290611ceb9084906138bf565b90915550506001600160a01b0382166000908152600360205260408120805460019290611d19908490613721565b909155505060008181526002602052604080822080546001600160a01b0319166001600160a01b0386811691821790925591518493918716917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91a4505050565b611d85848484611bcf565b611d91848484846126c9565b6113f85760405162461bcd60e51b81526004016108c190613630565b6000818152600e60205260409020600a0154606090600160201b900460ff1615612326576000828152600e602052604081206002018054611ded90613925565b80601f0160208091040260200160405190810160405280929190818152602001828054611e1990613925565b8015611e665780601f10611e3b57610100808354040283529160200191611e66565b820191906000526020600020905b815481529060010190602001808311611e4957829003601f168201915b505050505090506000600e60008581526020019081526020016000206003018054611e9090613925565b80601f0160208091040260200160405190810160405280929190818152602001828054611ebc90613925565b8015611f095780601f10611ede57610100808354040283529160200191611f09565b820191906000526020600020905b815481529060010190602001808311611eec57829003601f168201915b505050505090506000600e60008681526020019081526020016000206008018054611f3390613925565b80601f0160208091040260200160405190810160405280929190818152602001828054611f5f90613925565b8015611fac5780601f10611f8157610100808354040283529160200191611fac565b820191906000526020600020905b815481529060010190602001808311611f8f57829003601f168201915b5050506000888152600e602052604081206001015493945092611fda92506001600160a01b031690506127dd565b6000878152600e6020526040812060050180549293509091611ffb90613925565b80601f016020809104026020016040519081016040528092919081815260200182805461202790613925565b80156120745780601f1061204957610100808354040283529160200191612074565b820191906000526020600020905b81548152906001019060200180831161205757829003601f168201915b505050505090506000600e6000898152602001908152602001600020600401805461209e90613925565b80601f01602080910402602001604051908101604052809291908181526020018280546120ca90613925565b80156121175780601f106120ec57610100808354040283529160200191612117565b820191906000526020600020905b8154815290600101906020018083116120fa57829003601f168201915b505050505090506000600e60008a8152602001908152602001600020600601805461214190613925565b80601f016020809104026020016040519081016040528092919081815260200182805461216d90613925565b80156121ba5780601f1061218f576101008083540402835291602001916121ba565b820191906000526020600020905b81548152906001019060200180831161219d57829003601f168201915b50505050509050600183511115612215576000898152600e60205260409020600a015460ff166121f0576121ed836123f1565b92505b808360405160200161220392919061340e565b60405160208183030381529060405292505b60018251111561230a576000898152600e60205260409020600a0154610100900460ff1661224957612246826123f1565b91505b6000898152600e60205260409020600701805461226590613925565b80601f016020809104026020016040519081016040528092919081815260200182805461229190613925565b80156122de5780601f106122b3576101008083540402835291602001916122de565b820191906000526020600020905b8154815290600101906020018083116122c157829003601f168201915b5050505050905080826040516020016122f8929190613253565b60405160208183030381529060405291505b6123198787858585898b612940565b9998505050505050505050565b6107c16040518060400160405280600681526020016543524541544560d01b8152506040518060400160405280600681526020016543524541544560d01b81525060126040516020016123799190613466565b60408051601f1981840301815260208381018352600080855283518085018552601a81527919185d184e9a5b5859d94bdcdd99cade1b5b0ed8985cd94d8d0b60321b8184015284518086018652600681526543524541544560d01b81850152855193840190955290825291939290612940565b919050565b606081516000141561241157505060408051602081019091526000815290565b6000604051806060016040528060408152602001613a2f60409139905060006003845160026124409190613721565b61244a919061375e565b61245590600461387f565b90506000612464826020613721565b6001600160401b0381111561248957634e487b7160e01b600052604160045260246000fd5b6040519080825280601f01601f1916602001820160405280156124b3576020820181803683370190505b509050818152600183018586518101602084015b8183101561251f576003830192508251603f8160121c168501518253600182019150603f81600c1c168501518253600182019150603f8160061c168501518253600182019150603f81168501518253506001016124c7565b600389510660018114612539576002811461254a57612556565b613d3d60f01b600119830152612556565b603d60f81b6000198301525b509398975050505050505050565b60006040518060800160405280604381526020016139ec60439139805160209182012083518483015160408087015180519086012090516125c4950193845260208401929092526001600160a01b03166040830152606082015260800190565b604051602081830303815290604052805190602001209050919050565b60006125ec600b5490565b60405161190160f01b60208201526022810191909152604281018390526062016125c4565b6001600160a01b03831661266c5761266781600880546000838152600960205260408120829055600182018355919091527ff3f7a9fe364faab93b216da50a3214154f22a0a2b415b23a84c8169e8b636ee30155565b61268f565b816001600160a01b0316836001600160a01b03161461268f5761268f838261298e565b6001600160a01b0382166126a657610a0481612a2b565b826001600160a01b0316826001600160a01b031614610a0457610a048282612b04565b60006001600160a01b0384163b156127d257836001600160a01b031663150b7a026126f261182c565b8786866040518563ffffffff1660e01b815260040161271494939291906135e0565b602060405180830381600087803b15801561272e57600080fd5b505af192505050801561275e575060408051601f3d908101601f1916820190925261275b91810190612eb1565b60015b6127b8573d80801561278c576040519150601f19603f3d011682016040523d82523d6000602084013e612791565b606091505b5080516127b05760405162461bcd60e51b81526004016108c190613630565b805181602001fd5b6001600160e01b031916630a85bd0160e11b1490506115c1565b506001949350505050565b60408051602880825260608281019093526000919060208201818036833701905050905060005b601481101561293957600061281a8260136138bf565b61282590600861387f565b6128309060026137d7565b612843906001600160a01b03871661375e565b60f81b9050600060108260f81c61285a9190613772565b60f81b905060008160f81c6010612871919061389e565b8360f81c61287f91906138d6565b60f81b905061288d82612b48565b8561289986600261387f565b815181106128b757634e487b7160e01b600052603260045260246000fd5b60200101906001600160f81b031916908160001a9053506128d781612b48565b856128e386600261387f565b6128ee906001613721565b8151811061290c57634e487b7160e01b600052603260045260246000fd5b60200101906001600160f81b031916908160001a905350505050808061293190613960565b915050612804565b5092915050565b6060612962888888888888886040516020016114bd97969594939291906132b3565b6040516020016129729190613552565b6040516020818303038152906040529050979650505050505050565b6000600161299b846110fd565b6129a591906138bf565b6000838152600760205260409020549091508082146129f8576001600160a01b03841660009081526006602090815260408083208584528252808320548484528184208190558352600790915290208190555b5060009182526007602090815260408084208490556001600160a01b039094168352600681528383209183525290812055565b600854600090612a3d906001906138bf565b60008381526009602052604081205460088054939450909284908110612a7357634e487b7160e01b600052603260045260246000fd5b906000526020600020015490508060088381548110612aa257634e487b7160e01b600052603260045260246000fd5b6000918252602080832090910192909255828152600990915260408082208490558582528120556008805480612ae857634e487b7160e01b600052603160045260246000fd5b6001900381819060005260206000200160009055905550505050565b6000612b0f836110fd565b6001600160a01b039093166000908152600660209081526040808320868452825280832085905593825260079052919091209190915550565b6000600a60f883901c1015612b6f57612b6660f883901c6030613739565b60f81b92915050565b612b6660f883901c6057613739565b828054612b8a90613925565b90600052602060002090601f016020900481019282612bac5760008555612bf2565b82601f10612bc557805160ff1916838001178555612bf2565b82800160010185558215612bf2579182015b82811115612bf2578251825591602001919060010190612bd7565b50612bfe929150612c02565b5090565b5b80821115612bfe5760008155600101612c03565b803580151581146123ec57600080fd5b600082601f830112612c37578081fd5b81356001600160401b0380821115612c5157612c516139a7565b604051601f8301601f19908116603f01168101908282118183101715612c7957612c796139a7565b81604052838152866020858801011115612c91578485fd5b8360208701602083013792830160200193909352509392505050565b600060208284031215612cbe578081fd5b81356119a0816139bd565b60008060408385031215612cdb578081fd5b8235612ce6816139bd565b946020939093013593505050565b60008060408385031215612d06578182fd5b8235612d11816139bd565b91506020830135612d21816139bd565b809150509250929050565b600080600060608486031215612d40578081fd5b8335612d4b816139bd565b92506020840135612d5b816139bd565b929592945050506040919091013590565b60008060008060808587031215612d81578081fd5b8435612d8c816139bd565b93506020850135612d9c816139bd565b92506040850135915060608501356001600160401b03811115612dbd578182fd5b612dc987828801612c27565b91505092959194509250565b60008060408385031215612de7578182fd5b8235612df2816139bd565b9150612e0060208401612c17565b90509250929050565b600080600080600060a08688031215612e20578081fd5b8535612e2b816139bd565b945060208601356001600160401b03811115612e45578182fd5b612e5188828901612c27565b9450506040860135925060608601359150608086013560ff81168114612e75578182fd5b809150509295509295909350565b60008060408385031215612cdb578182fd5b600060208284031215612ea6578081fd5b81356119a0816139d5565b600060208284031215612ec2578081fd5b81516119a0816139d5565b600060208284031215612ede578081fd5b81516119a0816139bd565b600060208284031215612efa578081fd5b5035919050565b600080600080600080600060e0888a031215612f1b578485fd5b8735965060208801356001600160401b0380821115612f38578687fd5b612f448b838c01612c27565b975060408a0135915080821115612f59578687fd5b612f658b838c01612c27565b965060608a0135915080821115612f7a578384fd5b612f868b838c01612c27565b955060808a0135915080821115612f9b578384fd5b612fa78b838c01612c27565b9450612fb560a08b01612c17565b935060c08a0135915080821115612fca578283fd5b50612fd78a828b01612c27565b91505092959891949750929550565b6000806000806000806000806000806101408b8d031215613005578384fd5b8a35995060208b01356001600160401b0380821115613022578586fd5b61302e8e838f01612c27565b9a5060408d0135915080821115613043578586fd5b61304f8e838f01612c27565b995060608d0135915080821115613064578586fd5b6130708e838f01612c27565b985060808d0135915080821115613085578586fd5b6130918e838f01612c27565b975061309f60a08e01612c17565b965060c08d01359150808211156130b4578586fd5b6130c08e838f01612c27565b955060e08d01359150808211156130d5578485fd5b6130e18e838f01612c27565b94506130f06101008e01612c17565b93506101208d0135915080821115613106578283fd5b506131138d828e01612c27565b9150509295989b9194979a5092959850565b6000815180845261313d8160208601602086016138f9565b601f01601f19169290920160200192915050565b600081516131638185602086016138f9565b9290920192915050565b8054600090600181811c908083168061318757607f831692505b60208084108214156131a757634e487b7160e01b86526022600452602486fd5b8180156131bb57600181146131cc576131f9565b60ff198616895284890196506131f9565b60008881526020902060005b868110156131f15781548b8201529085019083016131d8565b505084890196505b50505050505092915050565b600082516132178184602087016138f9565b9190910192915050565b600083516132338184602088016138f9565b60609390931b6001600160601b0319169190920190815260140192915050565b7216101130b734b6b0ba34b7b72fbab936111d1160691b815282516000906132828160138501602088016138f9565b8351908301906132998160138401602088016138f9565b601160f91b60139290910191820152601401949350505050565b683d913730b6b2911d1160b91b815287516000906132d8816009850160208d016138f9565b701116113232b9b1b934b83a34b7b7111d1160791b600991840191820152885161330981601a840160208d016138f9565b601160f91b601a9290910191820152875161332b81601b840160208c016138f9565b875191019061334181601b840160208b016138f9565b7f2c226174747269627574657322203a205b7b2274726169745f74797065223a22601b92909101918201526e2a3cb8329116113b30b63ab2911d1160891b603b8201526134006133f26133ec6133de6133d86133a0604a87018c613151565b7f227d2c7b2274726169745f74797065223a2243726561746f72222c2276616c758152650ca44744460f60d31b602082015260260190565b89613151565b61227d60f01b815260020190565b86613151565b615d7d60f01b815260020190565b9a9950505050505050505050565b6a16101134b6b0b3b2911d1160a91b8152825160009061343581600b8501602088016138f9565b83519083019061344c81600b8401602088016138f9565b601160f91b600b9290910191820152600c01949350505050565b6a16101134b6b0b3b2911d1160a91b81526000613486600b83018461316d565b601160f91b81526001019392505050565b7f7b226e616d65223a22435245415445222c226465736372697074696f6e223a2281527021a922a0aa2291161134b6b0b3b2911d1160791b602082015260006134e3603183018561316d565b7211161132bc3a32b93730b62fb634b735911d1160691b8152613509601382018561316d565b7f222c2273656c6c65725f6665655f62617369735f706f696e7473223a302c226681527065655f726563697069656e74223a22227d60781b602082015260310195945050505050565b7f646174613a6170706c69636174696f6e2f6a736f6e3b6261736536342c00000081526000825161358a81601d8501602087016138f9565b91909101601d0192915050565b6001600160a01b0391909116815260200190565b6001600160a01b038481168252831660208201526060604082018190526000906135d790830184613125565b95945050505050565b6001600160a01b038581168252841660208201526040810183905260806060820181905260009061361390830184613125565b9695505050505050565b6020815260006119a06020830184613125565b60208082526032908201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560408201527131b2b4bb32b91034b6b83632b6b2b73a32b960711b606082015260800190565b6020808252600290820152616e6f60f01b604082015260600190565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b6020808252602e908201527f4552433732313a2063616c6c6572206973206e6f7420746f6b656e206f776e6560408201526d1c881b9bdc88185c1c1c9bdd995960921b606082015260800190565b600082198211156137345761373461397b565b500190565b600060ff821660ff84168060ff038211156137565761375661397b565b019392505050565b60008261376d5761376d613991565b500490565b600060ff83168061378557613785613991565b8060ff84160491505092915050565b600181815b808511156137cf5781600019048211156137b5576137b561397b565b808516156137c257918102915b93841c9390800290613799565b509250929050565b60006119a083836000826137ed575060016107c1565b816137fa575060006107c1565b8160018114613810576002811461381a57613836565b60019150506107c1565b60ff84111561382b5761382b61397b565b50506001821b6107c1565b5060208310610133831016604e8410600b8410161715613859575081810a6107c1565b6138638383613794565b80600019048211156138775761387761397b565b029392505050565b60008160001904831182151516156138995761389961397b565b500290565b600060ff821660ff84168160ff04811182151516156138775761387761397b565b6000828210156138d1576138d161397b565b500390565b600060ff821660ff8416808210156138f0576138f061397b565b90039392505050565b60005b838110156139145781810151838201526020016138fc565b838111156113f85750506000910152565b600181811c9082168061393957607f821691505b6020821081141561395a57634e487b7160e01b600052602260045260246000fd5b50919050565b60006000198214156139745761397461397b565b5060010190565b634e487b7160e01b600052601160045260246000fd5b634e487b7160e01b600052601260045260246000fd5b634e487b7160e01b600052604160045260246000fd5b6001600160a01b03811681146139d257600080fd5b50565b6001600160e01b0319811681146139d257600080fdfe4d6574615472616e73616374696f6e2875696e74323536206e6f6e63652c616464726573732066726f6d2c62797465732066756e6374696f6e5369676e6174757265294142434445464748494a4b4c4d4e4f505152535455565758595a6162636465666768696a6b6c6d6e6f707172737475767778797a303132333435363738392b2fa2646970667358221220691b9d4ba0f3bec81cbc814db552607c2dd8bee117972cc68cb6cf237492145764736f6c63430008040033646174613a696d6167652f7376672b786d6c3b6261736536342c50484e325a79427a64486c735a543069596d466a61326479623356755a4470696247466a617a736949485a705a58644362336739496a41674d4341334d4441674e7a4177496942325a584a7a61573975505349784c6a4569494868746247357a50534a6f644852774f693876643364334c6e637a4c6d39795a7938794d4441774c334e325a79496765473173626e4d3665477870626d7339496d6830644841364c79393364336375647a4d7562334a6e4c7a45354f546b7665477870626d7369506a78795a574e3049475a706247773949694d774d4441774d44416949486739496a416949486b39496a4169494864705a48526f505349334d4441694947686c6157646f644430694e7a4177496a34384c334a6c5933512b50474e70636d4e735a53427a64484a766132553949694e47526b5a47526b596949484e30636d39725a53313361575230614430694d54556949474e345053497a4e54416949474e355053497a4e54416949484939496a45344e793431496a34384c324e70636d4e735a54343862476c755a5342344d5430694e5451314c6a556949486b78505349784e5455754e53496765444939496a45314e693431496942354d6a30694e5451314c6a556949484e30636d39725a54306949305a47526b5a4752694967633352796232746c4c5864705a48526f505349784e534967633352796232746c4c577870626d566a59584139496e4e78645746795a53492b504339736157356c506a777663335a6e50673d3d454950373132446f6d61696e28737472696e67206e616d652c737472696e672076657273696f6e2c6164647265737320766572696679696e67436f6e74726163742c627974657333322073616c7429000000000000000000000000a5409ec958c83c3f309868babaca7c86dcb077c1
Deployed Bytecode
0x6080604052600436106101a35760003560e01c806351ebd819116100e857806351ebd819146103e05780636352211e146103f357806364101b411461041357806370a0823114610433578063715018a6146104535780638da5cb5b1461046857806395d89b411461047d5780639954f64514610492578063a22cb465146104b2578063b88d4fde146104d2578063c87b56dd146104f2578063d4d06faf14610512578063d547cfb714610599578063e8a3d485146105ae578063e985e9c5146105c3578063f2fde38b146105e3578063f3fef3a314610603578063f8a1a08a1461062357600080fd5b8062c68cdd146101a857806301ffc9a7146101ca57806306fdde03146101ff578063081812fc14610221578063095ea7b31461024e5780630c53c51c1461026e5780630f7e59701461028157806318160ddd146102ae5780632004ffd9146102cd57806320379ee5146102e257806323b872dd146102f75780632d0335ab146103175780632f745c591461034d5780633408e4701461036d57806342842e0e146103805780634f6ccce7146103a057806351223e08146103c0575b600080fd5b3480156101b457600080fd5b506101c86101c3366004612f01565b610643565b005b3480156101d657600080fd5b506101ea6101e5366004612e95565b61079c565b60405190151581526020015b60405180910390f35b34801561020b57600080fd5b506102146107c7565b6040516101f6919061361d565b34801561022d57600080fd5b5061024161023c366004612ee9565b610859565b6040516101f69190613597565b34801561025a57600080fd5b506101c8610269366004612e83565b6108e6565b61021461027c366004612e09565b610a09565b34801561028d57600080fd5b50610214604051806040016040528060018152602001603160f81b81525081565b3480156102ba57600080fd5b506008545b6040519081526020016101f6565b3480156102d957600080fd5b506101c8610bf2565b3480156102ee57600080fd5b50600b546102bf565b34801561030357600080fd5b506101c8610312366004612d2c565b610c6e565b34801561032357600080fd5b506102bf610332366004612cad565b6001600160a01b03166000908152600c602052604090205490565b34801561035957600080fd5b506102bf610368366004612e83565b610ccd565b34801561037957600080fd5b50466102bf565b34801561038c57600080fd5b506101c861039b366004612d2c565b610d63565b3480156103ac57600080fd5b506102bf6103bb366004612ee9565b610d7e565b3480156103cc57600080fd5b506101c86103db366004612ee9565b610e1f565b6101c86103ee366004612ee9565b610e66565b3480156103ff57600080fd5b5061024161040e366004612ee9565b610ec7565b34801561041f57600080fd5b506101c861042e366004612fe6565b610f3e565b34801561043f57600080fd5b506102bf61044e366004612cad565b6110fd565b34801561045f57600080fd5b506101c8611184565b34801561047457600080fd5b5061024161120d565b34801561048957600080fd5b5061021461121c565b34801561049e57600080fd5b506101c86104ad366004612ee9565b61122b565b3480156104be57600080fd5b506101c86104cd366004612dd5565b61129a565b3480156104de57600080fd5b506101c86104ed366004612d6c565b611398565b3480156104fe57600080fd5b5061021461050d366004612ee9565b6113fe565b34801561051e57600080fd5b5061056d61052d366004612ee9565b6000908152600e602052604090206001810154600a8201546009909201546001600160a01b039091169260ff630100000084048116936201000090041690565b604080516001600160a01b039095168552921515602085015291830152151560608201526080016101f6565b3480156105a557600080fd5b50610214611409565b3480156105ba57600080fd5b506102146114a3565b3480156105cf57600080fd5b506101ea6105de366004612cf4565b6114f5565b3480156105ef57600080fd5b506101c86105fe366004612cad565b6115c9565b34801561060f57600080fd5b506101c861061e366004612cc9565b6116c9565b34801561062f57600080fd5b506101c861063e366004612ee9565b61172e565b6000878152600e60205260409020546001600160a01b0316331461066657600080fd5b6000878152600e60205260409020600a01546301000000900460ff161561068c57600080fd5b6000878152600e60209081526040909120600a8101805460ff60201b1916600160201b1790556001810180546001600160a01b0319163317905587516106da92600290920191890190612b7e565b506000878152600e60209081526040909120865161070092600390920191880190612b7e565b506000878152600e60209081526040909120855161072692600890920191870190612b7e565b506000878152600e60209081526040909120845161074c92600590920191860190612b7e565b506000878152600e60209081526040909120825161077292600690920191840190612b7e565b50506000958652600e6020526040909520600a01805460ff19169515159590951790945550505050565b60006001600160e01b0319821663780e9d6360e01b14806107c157506107c1826117bf565b92915050565b6060600080546107d690613925565b80601f016020809104026020016040519081016040528092919081815260200182805461080290613925565b801561084f5780601f106108245761010080835404028352916020019161084f565b820191906000526020600020905b81548152906001019060200180831161083257829003601f168201915b5050505050905090565b60006108648261180f565b6108ca5760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a20617070726f76656420717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b60648201526084015b60405180910390fd5b506000908152600460205260409020546001600160a01b031690565b60006108f182610ec7565b9050806001600160a01b0316836001600160a01b0316141561095f5760405162461bcd60e51b815260206004820152602160248201527f4552433732313a20617070726f76616c20746f2063757272656e74206f776e656044820152603960f91b60648201526084016108c1565b806001600160a01b031661097161182c565b6001600160a01b0316148061098d575061098d816105de61182c565b6109fa5760405162461bcd60e51b815260206004820152603860248201527f4552433732313a20617070726f76652063616c6c6572206973206e6f74206f776044820152771b995c881b9bdc88185c1c1c9bdd995908199bdc88185b1b60421b60648201526084016108c1565b610a048383611836565b505050565b60408051606081810183526001600160a01b0388166000818152600c602090815290859020548452830152918101869052610a4787828787876118a4565b610a9d5760405162461bcd60e51b815260206004820152602160248201527f5369676e657220616e64207369676e617475726520646f206e6f74206d6174636044820152600d60fb1b60648201526084016108c1565b6001600160a01b0387166000908152600c6020526040902054610ac1906001611994565b6001600160a01b0388166000908152600c60205260409081902091909155517f5845892132946850460bff5a0083f71031bc5bf9aadcd40f1de79423eac9b10b90610b1190899033908a906135ab565b60405180910390a1600080306001600160a01b0316888a604051602001610b39929190613221565b60408051601f1981840301815290829052610b5391613205565b6000604051808303816000865af19150503d8060008114610b90576040519150601f19603f3d011682016040523d82523d6000602084013e610b95565b606091505b509150915081610be65760405162461bcd60e51b815260206004820152601c60248201527b119d5b98dd1a5bdb8818d85b1b081b9bdd081cdd58d8d95cdcd99d5b60221b60448201526064016108c1565b98975050505050505050565b6000610bfc6119a7565b6000818152600e6020526040902080546001600160a01b03191633908117825591925090610c2a90836119b8565b610c32611af6565b604080518381523360208201527ff0c5df69252d53366232eb47e2356ca22a0b21568ff375c79c68b85c51934d3c910160405180910390a15050565b610c7f610c7961182c565b82611b0d565b610c9b5760405162461bcd60e51b81526004016108c1906136d3565b6000818152600e6020526040902080546001600160a01b0319166001600160a01b038416179055610a04838383611bcf565b6000610cd8836110fd565b8210610d3a5760405162461bcd60e51b815260206004820152602b60248201527f455243373231456e756d657261626c653a206f776e657220696e646578206f7560448201526a74206f6620626f756e647360a81b60648201526084016108c1565b506001600160a01b03919091166000908152600660209081526040808320938352929052205490565b610a0483838360405180602001604052806000815250611398565b6000610d8960085490565b8210610dec5760405162461bcd60e51b815260206004820152602c60248201527f455243373231456e756d657261626c653a20676c6f62616c20696e646578206f60448201526b7574206f6620626f756e647360a01b60648201526084016108c1565b60088281548110610e0d57634e487b7160e01b600052603260045260246000fd5b90600052602060002001549050919050565b6000818152600e60205260409020546001600160a01b03163314610e4257600080fd5b6000908152600e60205260409020600a01805463ff00000019166301000000179055565b6013543414610ea55760405162461bcd60e51b815260206004820152600b60248201526a092dcecc2d8d2c8408aa8960ab1b60448201526064016108c1565b6000908152600e60205260409020600a01805462ff0000191662010000179055565b6000818152600260205260408120546001600160a01b0316806107c15760405162461bcd60e51b815260206004820152602960248201527f4552433732313a206f776e657220717565727920666f72206e6f6e657869737460448201526832b73a103a37b5b2b760b91b60648201526084016108c1565b60008a8152600e60205260409020546001600160a01b03163314610f6157600080fd5b60008a8152600e60205260409020600a01546301000000900460ff1615610f8757600080fd5b60008a8152600e60209081526040909120600a8101805460ff60201b1916600160201b1790556001810180546001600160a01b031916331790558a51610fd5926002909201918c0190612b7e565b5060008a8152600e602090815260409091208951610ffb926003909201918b0190612b7e565b5060008a8152600e602090815260409091208851611021926008909201918a0190612b7e565b5060008a8152600e60209081526040909120875161104792600590920191890190612b7e565b5060008a8152600e60209081526040909120855161106d92600690920191870190612b7e565b5060008a8152600e60209081526040909120600a8101805460ff191688151517905584516110a392600490920191860190612b7e565b5060008a8152600e6020908152604090912082516110c992600790920191840190612b7e565b50506000988952600e6020526040909820600a0180549815156101000261ff00199099169890981790975550505050505050565b60006001600160a01b0382166111685760405162461bcd60e51b815260206004820152602a60248201527f4552433732313a2062616c616e636520717565727920666f7220746865207a65604482015269726f206164647265737360b01b60648201526084016108c1565b506001600160a01b031660009081526003602052604090205490565b61118c61182c565b6001600160a01b031661119d61120d565b6001600160a01b0316146111c35760405162461bcd60e51b81526004016108c19061369e565b600d546040516000916001600160a01b0316907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908390a3600d80546001600160a01b0319169055565b600d546001600160a01b031690565b6060600180546107d690613925565b6000818152600e60209081526040808320338452600b0190915290205460ff161561125557600080fd5b6000818152600e60208181526040808420338552600b81018352908420805460ff1916600117905584845291905260090180549161129283613960565b919050555050565b6112a261182c565b6001600160a01b0316826001600160a01b031614156112ff5760405162461bcd60e51b815260206004820152601960248201527822a9219b99189d1030b8383937bb32903a379031b0b63632b960391b60448201526064016108c1565b806005600061130c61182c565b6001600160a01b03908116825260208083019390935260409182016000908120918716808252919093529120805460ff19169215159290921790915561135061182c565b6001600160a01b03167f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c318360405161138c911515815260200190565b60405180910390a35050565b6113a96113a361182c565b83611b0d565b6113c55760405162461bcd60e51b81526004016108c1906136d3565b6000828152600e6020526040902080546001600160a01b0319166001600160a01b0385161790556113f884848484611d7a565b50505050565b60606107c182611dad565b606061149e6011805461141b90613925565b80601f016020809104026020016040519081016040528092919081815260200182805461144790613925565b80156114945780601f1061146957610100808354040283529160200191611494565b820191906000526020600020905b81548152906001019060200180831161147757829003601f168201915b50505050506123f1565b905090565b60606114d1601260116040516020016114bd929190613497565b6040516020818303038152906040526123f1565b6040516020016114e19190613552565b604051602081830303815290604052905090565b600f5460405163c455279160e01b81526000916001600160a01b039081169190841690829063c45527919061152e908890600401613597565b60206040518083038186803b15801561154657600080fd5b505afa15801561155a573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061157e9190612ecd565b6001600160a01b031614156115975760019150506107c1565b6001600160a01b0380851660009081526005602090815260408083209387168352929052205460ff165b949350505050565b6115d161182c565b6001600160a01b03166115e261120d565b6001600160a01b0316146116085760405162461bcd60e51b81526004016108c19061369e565b6001600160a01b03811661166d5760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b60648201526084016108c1565b600d546040516001600160a01b038084169216907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a3600d80546001600160a01b0319166001600160a01b0392909216919091179055565b336116d261120d565b6001600160a01b0316146116f85760405162461bcd60e51b81526004016108c190613682565b6040516001600160a01b0383169082156108fc029083906000818181858888f19350505050158015610a04573d6000803e3d6000fd5b3361173761120d565b6001600160a01b03161461175d5760405162461bcd60e51b81526004016108c190613682565b601355565b6000333014156117b957600080368080601f0160208091040260200160405190810160405280939291908181526020018383808284376000920191909152505050503601516001600160a01b031691506117bc9050565b50335b90565b60006001600160e01b031982166380ac58cd60e01b14806117f057506001600160e01b03198216635b5e139f60e01b145b806107c157506301ffc9a760e01b6001600160e01b03198316146107c1565b6000908152600260205260409020546001600160a01b0316151590565b600061149e611762565b600081815260046020526040902080546001600160a01b0319166001600160a01b038416908117909155819061186b82610ec7565b6001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b60006001600160a01b03861661190a5760405162461bcd60e51b815260206004820152602560248201527f4e61746976654d6574615472616e73616374696f6e3a20494e56414c49445f5360448201526424a3a722a960d91b60648201526084016108c1565b600161191d61191887612564565b6125e1565b6040805160008152602081018083529290925260ff851690820152606081018690526080810185905260a0016020604051602081039080840390855afa15801561196b573d6000803e3d6000fd5b505050602060405103516001600160a01b0316866001600160a01b031614905095945050505050565b60006119a08284613721565b9392505050565b60105460009061149e906001611994565b6001600160a01b038216611a0e5760405162461bcd60e51b815260206004820181905260248201527f4552433732313a206d696e7420746f20746865207a65726f206164647265737360448201526064016108c1565b611a178161180f565b15611a635760405162461bcd60e51b815260206004820152601c60248201527b115490cdcc8c4e881d1bdad95b88185b1c9958591e481b5a5b9d195960221b60448201526064016108c1565b611a6f60008383612611565b6001600160a01b0382166000908152600360205260408120805460019290611a98908490613721565b909155505060008181526002602052604080822080546001600160a01b0319166001600160a01b03861690811790915590518392907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b60108054906000611b0683613960565b9190505550565b6000611b188261180f565b611b795760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a206f70657261746f7220717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b60648201526084016108c1565b6000611b8483610ec7565b9050806001600160a01b0316846001600160a01b03161480611bbf5750836001600160a01b0316611bb484610859565b6001600160a01b0316145b806115c157506115c181856114f5565b826001600160a01b0316611be282610ec7565b6001600160a01b031614611c4a5760405162461bcd60e51b815260206004820152602960248201527f4552433732313a207472616e73666572206f6620746f6b656e2074686174206960448201526839903737ba1037bbb760b91b60648201526084016108c1565b6001600160a01b038216611cac5760405162461bcd60e51b8152602060048201526024808201527f4552433732313a207472616e7366657220746f20746865207a65726f206164646044820152637265737360e01b60648201526084016108c1565b611cb7838383612611565b611cc2600082611836565b6001600160a01b0383166000908152600360205260408120805460019290611ceb9084906138bf565b90915550506001600160a01b0382166000908152600360205260408120805460019290611d19908490613721565b909155505060008181526002602052604080822080546001600160a01b0319166001600160a01b0386811691821790925591518493918716917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91a4505050565b611d85848484611bcf565b611d91848484846126c9565b6113f85760405162461bcd60e51b81526004016108c190613630565b6000818152600e60205260409020600a0154606090600160201b900460ff1615612326576000828152600e602052604081206002018054611ded90613925565b80601f0160208091040260200160405190810160405280929190818152602001828054611e1990613925565b8015611e665780601f10611e3b57610100808354040283529160200191611e66565b820191906000526020600020905b815481529060010190602001808311611e4957829003601f168201915b505050505090506000600e60008581526020019081526020016000206003018054611e9090613925565b80601f0160208091040260200160405190810160405280929190818152602001828054611ebc90613925565b8015611f095780601f10611ede57610100808354040283529160200191611f09565b820191906000526020600020905b815481529060010190602001808311611eec57829003601f168201915b505050505090506000600e60008681526020019081526020016000206008018054611f3390613925565b80601f0160208091040260200160405190810160405280929190818152602001828054611f5f90613925565b8015611fac5780601f10611f8157610100808354040283529160200191611fac565b820191906000526020600020905b815481529060010190602001808311611f8f57829003601f168201915b5050506000888152600e602052604081206001015493945092611fda92506001600160a01b031690506127dd565b6000878152600e6020526040812060050180549293509091611ffb90613925565b80601f016020809104026020016040519081016040528092919081815260200182805461202790613925565b80156120745780601f1061204957610100808354040283529160200191612074565b820191906000526020600020905b81548152906001019060200180831161205757829003601f168201915b505050505090506000600e6000898152602001908152602001600020600401805461209e90613925565b80601f01602080910402602001604051908101604052809291908181526020018280546120ca90613925565b80156121175780601f106120ec57610100808354040283529160200191612117565b820191906000526020600020905b8154815290600101906020018083116120fa57829003601f168201915b505050505090506000600e60008a8152602001908152602001600020600601805461214190613925565b80601f016020809104026020016040519081016040528092919081815260200182805461216d90613925565b80156121ba5780601f1061218f576101008083540402835291602001916121ba565b820191906000526020600020905b81548152906001019060200180831161219d57829003601f168201915b50505050509050600183511115612215576000898152600e60205260409020600a015460ff166121f0576121ed836123f1565b92505b808360405160200161220392919061340e565b60405160208183030381529060405292505b60018251111561230a576000898152600e60205260409020600a0154610100900460ff1661224957612246826123f1565b91505b6000898152600e60205260409020600701805461226590613925565b80601f016020809104026020016040519081016040528092919081815260200182805461229190613925565b80156122de5780601f106122b3576101008083540402835291602001916122de565b820191906000526020600020905b8154815290600101906020018083116122c157829003601f168201915b5050505050905080826040516020016122f8929190613253565b60405160208183030381529060405291505b6123198787858585898b612940565b9998505050505050505050565b6107c16040518060400160405280600681526020016543524541544560d01b8152506040518060400160405280600681526020016543524541544560d01b81525060126040516020016123799190613466565b60408051601f1981840301815260208381018352600080855283518085018552601a81527919185d184e9a5b5859d94bdcdd99cade1b5b0ed8985cd94d8d0b60321b8184015284518086018652600681526543524541544560d01b81850152855193840190955290825291939290612940565b919050565b606081516000141561241157505060408051602081019091526000815290565b6000604051806060016040528060408152602001613a2f60409139905060006003845160026124409190613721565b61244a919061375e565b61245590600461387f565b90506000612464826020613721565b6001600160401b0381111561248957634e487b7160e01b600052604160045260246000fd5b6040519080825280601f01601f1916602001820160405280156124b3576020820181803683370190505b509050818152600183018586518101602084015b8183101561251f576003830192508251603f8160121c168501518253600182019150603f81600c1c168501518253600182019150603f8160061c168501518253600182019150603f81168501518253506001016124c7565b600389510660018114612539576002811461254a57612556565b613d3d60f01b600119830152612556565b603d60f81b6000198301525b509398975050505050505050565b60006040518060800160405280604381526020016139ec60439139805160209182012083518483015160408087015180519086012090516125c4950193845260208401929092526001600160a01b03166040830152606082015260800190565b604051602081830303815290604052805190602001209050919050565b60006125ec600b5490565b60405161190160f01b60208201526022810191909152604281018390526062016125c4565b6001600160a01b03831661266c5761266781600880546000838152600960205260408120829055600182018355919091527ff3f7a9fe364faab93b216da50a3214154f22a0a2b415b23a84c8169e8b636ee30155565b61268f565b816001600160a01b0316836001600160a01b03161461268f5761268f838261298e565b6001600160a01b0382166126a657610a0481612a2b565b826001600160a01b0316826001600160a01b031614610a0457610a048282612b04565b60006001600160a01b0384163b156127d257836001600160a01b031663150b7a026126f261182c565b8786866040518563ffffffff1660e01b815260040161271494939291906135e0565b602060405180830381600087803b15801561272e57600080fd5b505af192505050801561275e575060408051601f3d908101601f1916820190925261275b91810190612eb1565b60015b6127b8573d80801561278c576040519150601f19603f3d011682016040523d82523d6000602084013e612791565b606091505b5080516127b05760405162461bcd60e51b81526004016108c190613630565b805181602001fd5b6001600160e01b031916630a85bd0160e11b1490506115c1565b506001949350505050565b60408051602880825260608281019093526000919060208201818036833701905050905060005b601481101561293957600061281a8260136138bf565b61282590600861387f565b6128309060026137d7565b612843906001600160a01b03871661375e565b60f81b9050600060108260f81c61285a9190613772565b60f81b905060008160f81c6010612871919061389e565b8360f81c61287f91906138d6565b60f81b905061288d82612b48565b8561289986600261387f565b815181106128b757634e487b7160e01b600052603260045260246000fd5b60200101906001600160f81b031916908160001a9053506128d781612b48565b856128e386600261387f565b6128ee906001613721565b8151811061290c57634e487b7160e01b600052603260045260246000fd5b60200101906001600160f81b031916908160001a905350505050808061293190613960565b915050612804565b5092915050565b6060612962888888888888886040516020016114bd97969594939291906132b3565b6040516020016129729190613552565b6040516020818303038152906040529050979650505050505050565b6000600161299b846110fd565b6129a591906138bf565b6000838152600760205260409020549091508082146129f8576001600160a01b03841660009081526006602090815260408083208584528252808320548484528184208190558352600790915290208190555b5060009182526007602090815260408084208490556001600160a01b039094168352600681528383209183525290812055565b600854600090612a3d906001906138bf565b60008381526009602052604081205460088054939450909284908110612a7357634e487b7160e01b600052603260045260246000fd5b906000526020600020015490508060088381548110612aa257634e487b7160e01b600052603260045260246000fd5b6000918252602080832090910192909255828152600990915260408082208490558582528120556008805480612ae857634e487b7160e01b600052603160045260246000fd5b6001900381819060005260206000200160009055905550505050565b6000612b0f836110fd565b6001600160a01b039093166000908152600660209081526040808320868452825280832085905593825260079052919091209190915550565b6000600a60f883901c1015612b6f57612b6660f883901c6030613739565b60f81b92915050565b612b6660f883901c6057613739565b828054612b8a90613925565b90600052602060002090601f016020900481019282612bac5760008555612bf2565b82601f10612bc557805160ff1916838001178555612bf2565b82800160010185558215612bf2579182015b82811115612bf2578251825591602001919060010190612bd7565b50612bfe929150612c02565b5090565b5b80821115612bfe5760008155600101612c03565b803580151581146123ec57600080fd5b600082601f830112612c37578081fd5b81356001600160401b0380821115612c5157612c516139a7565b604051601f8301601f19908116603f01168101908282118183101715612c7957612c796139a7565b81604052838152866020858801011115612c91578485fd5b8360208701602083013792830160200193909352509392505050565b600060208284031215612cbe578081fd5b81356119a0816139bd565b60008060408385031215612cdb578081fd5b8235612ce6816139bd565b946020939093013593505050565b60008060408385031215612d06578182fd5b8235612d11816139bd565b91506020830135612d21816139bd565b809150509250929050565b600080600060608486031215612d40578081fd5b8335612d4b816139bd565b92506020840135612d5b816139bd565b929592945050506040919091013590565b60008060008060808587031215612d81578081fd5b8435612d8c816139bd565b93506020850135612d9c816139bd565b92506040850135915060608501356001600160401b03811115612dbd578182fd5b612dc987828801612c27565b91505092959194509250565b60008060408385031215612de7578182fd5b8235612df2816139bd565b9150612e0060208401612c17565b90509250929050565b600080600080600060a08688031215612e20578081fd5b8535612e2b816139bd565b945060208601356001600160401b03811115612e45578182fd5b612e5188828901612c27565b9450506040860135925060608601359150608086013560ff81168114612e75578182fd5b809150509295509295909350565b60008060408385031215612cdb578182fd5b600060208284031215612ea6578081fd5b81356119a0816139d5565b600060208284031215612ec2578081fd5b81516119a0816139d5565b600060208284031215612ede578081fd5b81516119a0816139bd565b600060208284031215612efa578081fd5b5035919050565b600080600080600080600060e0888a031215612f1b578485fd5b8735965060208801356001600160401b0380821115612f38578687fd5b612f448b838c01612c27565b975060408a0135915080821115612f59578687fd5b612f658b838c01612c27565b965060608a0135915080821115612f7a578384fd5b612f868b838c01612c27565b955060808a0135915080821115612f9b578384fd5b612fa78b838c01612c27565b9450612fb560a08b01612c17565b935060c08a0135915080821115612fca578283fd5b50612fd78a828b01612c27565b91505092959891949750929550565b6000806000806000806000806000806101408b8d031215613005578384fd5b8a35995060208b01356001600160401b0380821115613022578586fd5b61302e8e838f01612c27565b9a5060408d0135915080821115613043578586fd5b61304f8e838f01612c27565b995060608d0135915080821115613064578586fd5b6130708e838f01612c27565b985060808d0135915080821115613085578586fd5b6130918e838f01612c27565b975061309f60a08e01612c17565b965060c08d01359150808211156130b4578586fd5b6130c08e838f01612c27565b955060e08d01359150808211156130d5578485fd5b6130e18e838f01612c27565b94506130f06101008e01612c17565b93506101208d0135915080821115613106578283fd5b506131138d828e01612c27565b9150509295989b9194979a5092959850565b6000815180845261313d8160208601602086016138f9565b601f01601f19169290920160200192915050565b600081516131638185602086016138f9565b9290920192915050565b8054600090600181811c908083168061318757607f831692505b60208084108214156131a757634e487b7160e01b86526022600452602486fd5b8180156131bb57600181146131cc576131f9565b60ff198616895284890196506131f9565b60008881526020902060005b868110156131f15781548b8201529085019083016131d8565b505084890196505b50505050505092915050565b600082516132178184602087016138f9565b9190910192915050565b600083516132338184602088016138f9565b60609390931b6001600160601b0319169190920190815260140192915050565b7216101130b734b6b0ba34b7b72fbab936111d1160691b815282516000906132828160138501602088016138f9565b8351908301906132998160138401602088016138f9565b601160f91b60139290910191820152601401949350505050565b683d913730b6b2911d1160b91b815287516000906132d8816009850160208d016138f9565b701116113232b9b1b934b83a34b7b7111d1160791b600991840191820152885161330981601a840160208d016138f9565b601160f91b601a9290910191820152875161332b81601b840160208c016138f9565b875191019061334181601b840160208b016138f9565b7f2c226174747269627574657322203a205b7b2274726169745f74797065223a22601b92909101918201526e2a3cb8329116113b30b63ab2911d1160891b603b8201526134006133f26133ec6133de6133d86133a0604a87018c613151565b7f227d2c7b2274726169745f74797065223a2243726561746f72222c2276616c758152650ca44744460f60d31b602082015260260190565b89613151565b61227d60f01b815260020190565b86613151565b615d7d60f01b815260020190565b9a9950505050505050505050565b6a16101134b6b0b3b2911d1160a91b8152825160009061343581600b8501602088016138f9565b83519083019061344c81600b8401602088016138f9565b601160f91b600b9290910191820152600c01949350505050565b6a16101134b6b0b3b2911d1160a91b81526000613486600b83018461316d565b601160f91b81526001019392505050565b7f7b226e616d65223a22435245415445222c226465736372697074696f6e223a2281527021a922a0aa2291161134b6b0b3b2911d1160791b602082015260006134e3603183018561316d565b7211161132bc3a32b93730b62fb634b735911d1160691b8152613509601382018561316d565b7f222c2273656c6c65725f6665655f62617369735f706f696e7473223a302c226681527065655f726563697069656e74223a22227d60781b602082015260310195945050505050565b7f646174613a6170706c69636174696f6e2f6a736f6e3b6261736536342c00000081526000825161358a81601d8501602087016138f9565b91909101601d0192915050565b6001600160a01b0391909116815260200190565b6001600160a01b038481168252831660208201526060604082018190526000906135d790830184613125565b95945050505050565b6001600160a01b038581168252841660208201526040810183905260806060820181905260009061361390830184613125565b9695505050505050565b6020815260006119a06020830184613125565b60208082526032908201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560408201527131b2b4bb32b91034b6b83632b6b2b73a32b960711b606082015260800190565b6020808252600290820152616e6f60f01b604082015260600190565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b6020808252602e908201527f4552433732313a2063616c6c6572206973206e6f7420746f6b656e206f776e6560408201526d1c881b9bdc88185c1c1c9bdd995960921b606082015260800190565b600082198211156137345761373461397b565b500190565b600060ff821660ff84168060ff038211156137565761375661397b565b019392505050565b60008261376d5761376d613991565b500490565b600060ff83168061378557613785613991565b8060ff84160491505092915050565b600181815b808511156137cf5781600019048211156137b5576137b561397b565b808516156137c257918102915b93841c9390800290613799565b509250929050565b60006119a083836000826137ed575060016107c1565b816137fa575060006107c1565b8160018114613810576002811461381a57613836565b60019150506107c1565b60ff84111561382b5761382b61397b565b50506001821b6107c1565b5060208310610133831016604e8410600b8410161715613859575081810a6107c1565b6138638383613794565b80600019048211156138775761387761397b565b029392505050565b60008160001904831182151516156138995761389961397b565b500290565b600060ff821660ff84168160ff04811182151516156138775761387761397b565b6000828210156138d1576138d161397b565b500390565b600060ff821660ff8416808210156138f0576138f061397b565b90039392505050565b60005b838110156139145781810151838201526020016138fc565b838111156113f85750506000910152565b600181811c9082168061393957607f821691505b6020821081141561395a57634e487b7160e01b600052602260045260246000fd5b50919050565b60006000198214156139745761397461397b565b5060010190565b634e487b7160e01b600052601160045260246000fd5b634e487b7160e01b600052601260045260246000fd5b634e487b7160e01b600052604160045260246000fd5b6001600160a01b03811681146139d257600080fd5b50565b6001600160e01b0319811681146139d257600080fdfe4d6574615472616e73616374696f6e2875696e74323536206e6f6e63652c616464726573732066726f6d2c62797465732066756e6374696f6e5369676e6174757265294142434445464748494a4b4c4d4e4f505152535455565758595a6162636465666768696a6b6c6d6e6f707172737475767778797a303132333435363738392b2fa2646970667358221220691b9d4ba0f3bec81cbc814db552607c2dd8bee117972cc68cb6cf237492145764736f6c63430008040033
Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)
000000000000000000000000a5409ec958c83c3f309868babaca7c86dcb077c1
-----Decoded View---------------
Arg [0] : _proxyRegistryAddress (address): 0xa5409ec958C83C3f309868babACA7c86DCB077c1
-----Encoded View---------------
1 Constructor Arguments found :
Arg [0] : 000000000000000000000000a5409ec958c83c3f309868babaca7c86dcb077c1
Loading...
Loading
Loading...
Loading
[ Download: CSV Export ]
[ Download: CSV Export ]
A token is a representation of an on-chain or off-chain asset. The token page shows information such as price, total supply, holders, transfers and social links. Learn more about this page in our Knowledge Base.