ERC-721
Overview
Max Total Supply
215 DREAMOFFERING
Holders
91
Market
Volume (24H)
N/A
Min Price (24H)
N/A
Max Price (24H)
N/A
Other Info
Token Contract
Balance
1 DREAMOFFERINGLoading...
Loading
Loading...
Loading
Loading...
Loading
# | Exchange | Pair | Price | 24H Volume | % Volume |
---|
Contract Name:
DreamOfferingProduct
Compiler Version
v0.8.0+commit.c7dfd78e
Optimization Enabled:
Yes with 200 runs
Other Settings:
default evmVersion
Contract Source Code (Solidity Standard Json-Input format)
// SPDX-License-Identifier: MIT // _ // (` ). _ // ( ). .:(` )`. // ) _( '`. :( . ) // .=(`( . ) .-- `. ( ) ) // (( (..__.:'-' .+( ) ` _` ) ) // `. `( ) ) ( . ) ( ) ._ // ) ` __.:' ) ( ( )) `-'.-(` ) // ) ) ( ) --' `- __.' :( )) // .-' (_.' .') `( ) )) // (_ ) dream offering ` __.:' // // --..,___.--,--'`,---..-.--+--.,,-,,..._.--..-._.-a:f--. // // by @eddietree pragma solidity ^0.8.0; import "./Base64.sol"; import "./DreamSeedProduct.sol"; contract DreamOfferingProduct is DreamSeedProduct { bool public isRevealed = false; string internal _revealedMetaURI = "https://gateway.pinata.cloud/ipfs/QmRA71NveXF5EFUSds873WqxkVuT8HvvATgz65ev3ea9d5/"; constructor(address _proxyRegistryAddress) ERC721TradableBurnable("Dream Offering NFT", "DREAMOFFERING", _proxyRegistryAddress) { _prerevealMetaURI = "https://gateway.pinata.cloud/ipfs/QmPWgEDgbkg9EuuEegGwdzTi5E3MzJu7uMYZ6YSWVb5NuC"; } function setRevealedURI(string memory _value) external onlyOwner { _revealedMetaURI = _value; } function revealAll(bool state) external onlyOwner { isRevealed = state; } function tokenURI(uint256 _tokenId) override public view returns (string memory) { require(_tokenId >= 1 && _tokenId <= MAX_SUPPLY, "Not valid token range"); if (!isRevealed) { // prereveal string memory json = Base64.encode( bytes(string( abi.encodePacked( '{"name": ', '"Dream Offering #',Strings.toString(_tokenId),'",', '"description": "A doorway opening into another cycle of life...",', '"attributes":[{"trait_type":"Status", "value":"Unrevealed"}],', '"image": "', _prerevealMetaURI, '"}' ) )) ); return string(abi.encodePacked('data:application/json;base64,', json)); } else { // revealed return string(abi.encodePacked(_revealedMetaURI, Strings.toString(_tokenId), ".json")); } } function reserveOffering(uint numberOfTokens) public onlyOwner { require(totalSupply()+numberOfTokens < MAX_SUPPLY, "Purchase would exceed max tokens"); for (uint256 i = 0; i < numberOfTokens; i++) { mintTo(msg.sender); } } function reserveOfferingTo(uint numberOfTokens, address receiver) public onlyOwner { require(totalSupply()+numberOfTokens < MAX_SUPPLY, "Purchase would exceed max tokens"); for (uint256 i = 0; i < numberOfTokens; i++) { mintTo(receiver); } } function mintOffering(uint256 seedTokenId) external { require(mintIsActive, "Must be active to mint tokens"); require(totalSupply() < MAX_SUPPLY, "Purchase would exceed max tokens"); burnDreamSeed(seedTokenId); mintTo(msg.sender); } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; /** * @dev Provides a set of functions to operate with Base64 strings. */ library Base64 { /** * @dev Base64 Encoding/Decoding Table */ string internal constant _TABLE = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/"; /** * @dev Converts a `bytes` to its Bytes64 `string` representation. */ function encode(bytes memory data) internal pure returns (string memory) { /** * Inspired by Brecht Devos (Brechtpd) implementation - MIT licence * https://github.com/Brechtpd/base64/blob/e78d9fd951e7b0977ddca77d92dc85183770daf4/base64.sol */ if (data.length == 0) return ""; // Loads the table into memory string memory table = _TABLE; // Encoding takes 3 bytes chunks of binary data from `bytes` data parameter // and split into 4 numbers of 6 bits. // The final Base64 length should be `bytes` data length multiplied by 4/3 rounded up // - `data.length + 2` -> Round up // - `/ 3` -> Number of 3-bytes chunks // - `4 *` -> 4 characters for each chunk string memory result = new string(4 * ((data.length + 2) / 3)); assembly { // Prepare the lookup table (skip the first "length" byte) let tablePtr := add(table, 1) // Prepare result pointer, jump over length let resultPtr := add(result, 32) // Run over the input, 3 bytes at a time for { let dataPtr := data let endPtr := add(data, mload(data)) } lt(dataPtr, endPtr) { } { // Advance 3 bytes dataPtr := add(dataPtr, 3) let input := mload(dataPtr) // To write each character, shift the 3 bytes (18 bits) chunk // 4 times in blocks of 6 bits for each character (18, 12, 6, 0) // and apply logical AND with 0x3F which is the number of // the previous character in the ASCII table prior to the Base64 Table // The result is then added to the table to get the character to write, // and finally write it in the result pointer but with a left shift // of 256 (1 byte) - 8 (1 ASCII char) = 248 bits mstore8(resultPtr, mload(add(tablePtr, and(shr(18, input), 0x3F)))) resultPtr := add(resultPtr, 1) // Advance mstore8(resultPtr, mload(add(tablePtr, and(shr(12, input), 0x3F)))) resultPtr := add(resultPtr, 1) // Advance mstore8(resultPtr, mload(add(tablePtr, and(shr(6, input), 0x3F)))) resultPtr := add(resultPtr, 1) // Advance mstore8(resultPtr, mload(add(tablePtr, and(input, 0x3F)))) resultPtr := add(resultPtr, 1) // Advance } // When data `bytes` is not exactly 3 bytes long // it is padded with `=` characters at the end switch mod(mload(data), 3) case 1 { mstore8(sub(resultPtr, 1), 0x3d) mstore8(sub(resultPtr, 2), 0x3d) } case 2 { mstore8(sub(resultPtr, 1), 0x3d) } } return result; } }
// SPDX-License-Identifier: MIT // by @eddietree pragma solidity ^0.8.0; import "./DreamSeedsNFT.sol"; import "./ERC721TradableBurnable.sol"; abstract contract DreamSeedProduct is ERC721TradableBurnable { uint256 public constant MAX_SUPPLY = 1300; string internal _prerevealMetaURI; DreamSeedsNFT public contractDreamSeeds; bool public mintIsActive = true; function setPreRevealURI(string memory _value) external onlyOwner { _prerevealMetaURI = _value; } function setMintState(bool newState) external onlyOwner { mintIsActive = newState; } function setContractDreamSeeds(address newAddress) external onlyOwner { contractDreamSeeds = DreamSeedsNFT(newAddress); } function ownerOfSeed(uint256 seedTokenId) private view returns (address) { return contractDreamSeeds.ownerOf(seedTokenId) ; } function burnDreamSeed(uint256 seedTokenId) internal { require(ownerOfSeed(seedTokenId) == msg.sender, "not owner of dream seed"); contractDreamSeeds.burnDreamSeed(seedTokenId); } function withdraw() public onlyOwner { uint balance = address(this).balance; payable(msg.sender).transfer(balance); } }
// SPDX-License-Identifier: MIT // _ // (` ). _ // ( ). .:(` )`. // ) _( '`. :( . ) // .=(`( . ) .-- `. ( ) ) // (( (..__.:'-' .+( ) ` _` ) ) // `. `( ) ) ( . ) ( ) ._ // ) ` __.:' ) ( ( )) `-'.-(` ) // ) ) ( ) --' `- __.' :( )) // .-' (_.' .') `( ) )) // (_ ) dream seeds ` __.:' // // --..,___.--,--'`,---..-.--+--.,,-,,..._.--..-._.-a:f--. // // by @eddietree pragma solidity ^0.8.0; import "./ERC721TradableBurnable.sol"; import "./Base64.sol"; contract DreamSeedsNFT is ERC721TradableBurnable { uint256 public constant MAX_SUPPLY = 1300; uint256 public constant PRICE_PER_TOKEN = 0.04 ether; // reveal bool public isRevealed = false; uint256 public maxPublicMintPerTransaction = 4; string private _prerevealMetaURI = "https://gateway.pinata.cloud/ipfs/QmPJN5t944PSZK3vLeff8EP2za2bgHd7eafs5U6kbjCmCt"; string private _revealedMetaURI = "https://gateway.pinata.cloud/ipfs/QmRA71NveXF5EFUSds873WqxkVuT8HvvATgz65ev3ea9d5/"; // sale states bool public saleIsActive = false; bool public presaleIsActive = false; mapping(address => uint8) private _allowList; // for presale minting // burnable -- used when minting gardeners or landscapes mapping(address => bool) private _allowListBurn; bool public dreamSeedsBurnableThruAllowlist = true; constructor(address _proxyRegistryAddress) ERC721TradableBurnable("Dream Seeds NFT", "DREAMSEED", _proxyRegistryAddress) { } function setSaleState(bool newState) external onlyOwner { saleIsActive = newState; } function setMaxPublicMintPerTransaction(uint256 newState) external onlyOwner { maxPublicMintPerTransaction = newState; } function setPresaleState(bool newState) external onlyOwner { presaleIsActive = newState; } function setAllowList(address[] calldata addresses, uint8 numAllowedToMint) external onlyOwner { for (uint256 i = 0; i < addresses.length; i++) { _allowList[addresses[i]] = numAllowedToMint; } } function setAllowListBurn(address[] calldata addresses, bool allowBurn) external onlyOwner { for (uint256 i = 0; i < addresses.length; i++) { _allowListBurn[addresses[i]] = allowBurn; } } function allowListNumAvailableToMint(address addr) external view returns (uint8) { return _allowList[addr]; } function allowListBurn(address addr) external view returns (bool) { return _allowListBurn[addr]; } function revealAll(bool state) external onlyOwner { isRevealed = state; } ///////////////////// URI function setPreRevealURI(string memory _value) external onlyOwner { _prerevealMetaURI = _value; } function setRevealedURI(string memory _value) external onlyOwner { _revealedMetaURI = _value; } function tokenURI(uint256 _tokenId) override public view returns (string memory) { require(_tokenId >= 1 && _tokenId <= MAX_SUPPLY, "Not valid token range"); if (!isRevealed) { // prereveal string memory json = Base64.encode( bytes(string( abi.encodePacked( '{"name": ', '"Dream Seed #',Strings.toString(_tokenId),'",', '"description": "Inside the seed lingers a world of possibility, endless beating hearts of regenerative dreams...",', '"attributes":[{"trait_type":"Status", "value":"Unrevealed"}],', '"image": "', _prerevealMetaURI, '"}' ) )) ); return string(abi.encodePacked('data:application/json;base64,', json)); } else { // revealed return string(abi.encodePacked(_revealedMetaURI, Strings.toString(_tokenId), ".json")); } } /////////////// mint function reserveSeed(uint numberOfTokens) external onlyOwner { uint256 ts = totalSupply(); require(ts + numberOfTokens <= MAX_SUPPLY, "Mint would exceed max tokens"); for (uint256 i = 0; i < numberOfTokens; i++) { mintTo(msg.sender); } } function reserveSeedGift(uint numberOfTokens, address addr) external onlyOwner { uint256 ts = totalSupply(); require(ts + numberOfTokens <= MAX_SUPPLY, "Mint would exceed max tokens"); for (uint256 i = 0; i < numberOfTokens; i++) { mintTo(addr); } } function mintSeedAllowlist(uint8 numberOfTokens) external payable { uint256 ts = totalSupply(); require(presaleIsActive, "Presale not active yet!"); require(numberOfTokens > 0, "Need to mint at least 1 token"); require(numberOfTokens <= _allowList[msg.sender], "Exceeded max available to purchase"); require(ts + numberOfTokens <= MAX_SUPPLY, "Purchase would exceed max tokens"); require(PRICE_PER_TOKEN * numberOfTokens <= msg.value, "Ether value sent is not correct"); _allowList[msg.sender] -= numberOfTokens; for (uint256 i = 0; i < numberOfTokens; i++) { mintTo(msg.sender); } } function mintSeed(uint numberOfTokens) external payable { uint256 ts = totalSupply(); require(saleIsActive, "Sale must be active to mint tokens"); require(numberOfTokens <= maxPublicMintPerTransaction, "Exceeded max token purchase"); require(ts + numberOfTokens <= MAX_SUPPLY, "Purchase would exceed max tokens"); require(PRICE_PER_TOKEN * numberOfTokens <= msg.value, "Ether value sent is not correct"); for (uint256 i = 0; i < numberOfTokens; i++) { mintTo(msg.sender); } } function withdraw() public onlyOwner { uint balance = address(this).balance; payable(msg.sender).transfer(balance); } // used externally for phase 2 minting of characters + landscapes function burnDreamSeed(uint256 tokenId) external { require(dreamSeedsBurnableThruAllowlist == true, "unable to burn"); require(tokenId >= 1 && tokenId <= MAX_SUPPLY, "Not valid token range"); require(_allowListBurn[msg.sender], "ERC721Burnable: caller is not owner nor approved"); _burn(tokenId); } // will disable burning mechanics once phase 2 is complete function permanentlyDisableAllowlistBurn() external onlyOwner { dreamSeedsBurnableThruAllowlist = false; } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import "@openzeppelin/contracts/token/ERC721/ERC721.sol"; import "@openzeppelin/contracts/access/Ownable.sol"; import "@openzeppelin/contracts/utils/Counters.sol"; import "@openzeppelin/contracts/utils/Strings.sol"; import "@openzeppelin/contracts/utils/math/SafeMath.sol"; import "@openzeppelin/contracts/token/ERC721/extensions/ERC721Burnable.sol"; import "./common/meta-transactions/ContentMixin.sol"; import "./common/meta-transactions/NativeMetaTransaction.sol"; contract OwnableDelegateProxy {} /** * Used to delegate ownership of a contract to another address, to save on unneeded transactions to approve contract use for users */ contract ProxyRegistry { mapping(address => OwnableDelegateProxy) public proxies; } /** * @title ERC721TradableBurnable * ERC721TradableBurnable - ERC721 contract that whitelists a trading address, and has minting functionality. */ abstract contract ERC721TradableBurnable is ERC721, ContextMixin, ERC721Burnable, NativeMetaTransaction, Ownable { using SafeMath for uint256; using Counters for Counters.Counter; Counters.Counter private _nextTokenId; address proxyRegistryAddress; constructor( string memory _name, string memory _symbol, address _proxyRegistryAddress ) ERC721(_name, _symbol) { proxyRegistryAddress = _proxyRegistryAddress; // nextTokenId is initialized to 1, since starting at 0 leads to higher gas cost for the first minter _nextTokenId.increment(); _initializeEIP712(_name); } /** * @dev Mints a token to an address with a tokenURI. * @param _to address of the future owner of the token */ function mintTo(address _to) internal { uint256 currentTokenId = _nextTokenId.current(); _nextTokenId.increment(); _safeMint(_to, currentTokenId); } /** @dev Returns the total tokens minted so far. 1 is always subtracted from the Counter since it tracks the next available tokenId. */ function totalSupply() public view returns (uint256) { return _nextTokenId.current() - 1; } /** * Override isApprovedForAll to whitelist user's OpenSea proxy accounts to enable gas-less listings. */ function isApprovedForAll(address owner, address operator) override public view returns (bool) { // Whitelist OpenSea proxy contract for easy trading. ProxyRegistry proxyRegistry = ProxyRegistry(proxyRegistryAddress); if (address(proxyRegistry.proxies(owner)) == operator) { return true; } return super.isApprovedForAll(owner, operator); } /** * This is used instead of msg.sender as transactions won't be sent by the original token owner, but by OpenSea. */ function _msgSender() internal override view returns (address sender) { return ContextMixin.msgSender(); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.0 (token/ERC721/ERC721.sol) pragma solidity ^0.8.0; import "./IERC721.sol"; import "./IERC721Receiver.sol"; import "./extensions/IERC721Metadata.sol"; import "../../utils/Address.sol"; import "../../utils/Context.sol"; import "../../utils/Strings.sol"; import "../../utils/introspection/ERC165.sol"; /** * @dev Implementation of https://eips.ethereum.org/EIPS/eip-721[ERC721] Non-Fungible Token Standard, including * the Metadata extension, but not including the Enumerable extension, which is available separately as * {ERC721Enumerable}. */ contract ERC721 is Context, ERC165, IERC721, IERC721Metadata { using Address for address; using Strings for uint256; // Token name string private _name; // Token symbol string private _symbol; // Mapping from token ID to owner address mapping(uint256 => address) private _owners; // Mapping owner address to token count mapping(address => uint256) private _balances; // Mapping from token ID to approved address mapping(uint256 => address) private _tokenApprovals; // Mapping from owner to operator approvals mapping(address => mapping(address => bool)) private _operatorApprovals; /** * @dev Initializes the contract by setting a `name` and a `symbol` to the token collection. */ constructor(string memory name_, string memory symbol_) { _name = name_; _symbol = symbol_; } /** * @dev See {IERC165-supportsInterface}. */ function supportsInterface(bytes4 interfaceId) public view virtual override(ERC165, IERC165) returns (bool) { return interfaceId == type(IERC721).interfaceId || interfaceId == type(IERC721Metadata).interfaceId || super.supportsInterface(interfaceId); } /** * @dev See {IERC721-balanceOf}. */ function balanceOf(address owner) public view virtual override returns (uint256) { require(owner != address(0), "ERC721: balance query for the zero address"); return _balances[owner]; } /** * @dev See {IERC721-ownerOf}. */ function ownerOf(uint256 tokenId) public view virtual override returns (address) { address owner = _owners[tokenId]; require(owner != address(0), "ERC721: owner query for nonexistent token"); return owner; } /** * @dev See {IERC721Metadata-name}. */ function name() public view virtual override returns (string memory) { return _name; } /** * @dev See {IERC721Metadata-symbol}. */ function symbol() public view virtual override returns (string memory) { return _symbol; } /** * @dev See {IERC721Metadata-tokenURI}. */ function tokenURI(uint256 tokenId) public view virtual override returns (string memory) { require(_exists(tokenId), "ERC721Metadata: URI query for nonexistent token"); string memory baseURI = _baseURI(); return bytes(baseURI).length > 0 ? string(abi.encodePacked(baseURI, tokenId.toString())) : ""; } /** * @dev Base URI for computing {tokenURI}. If set, the resulting URI for each * token will be the concatenation of the `baseURI` and the `tokenId`. Empty * by default, can be overriden in child contracts. */ function _baseURI() internal view virtual returns (string memory) { return ""; } /** * @dev See {IERC721-approve}. */ function approve(address to, uint256 tokenId) public virtual override { address owner = ERC721.ownerOf(tokenId); require(to != owner, "ERC721: approval to current owner"); require( _msgSender() == owner || isApprovedForAll(owner, _msgSender()), "ERC721: approve caller is not owner nor approved for all" ); _approve(to, tokenId); } /** * @dev See {IERC721-getApproved}. */ function getApproved(uint256 tokenId) public view virtual override returns (address) { require(_exists(tokenId), "ERC721: approved query for nonexistent token"); return _tokenApprovals[tokenId]; } /** * @dev See {IERC721-setApprovalForAll}. */ function setApprovalForAll(address operator, bool approved) public virtual override { _setApprovalForAll(_msgSender(), operator, approved); } /** * @dev See {IERC721-isApprovedForAll}. */ function isApprovedForAll(address owner, address operator) public view virtual override returns (bool) { return _operatorApprovals[owner][operator]; } /** * @dev See {IERC721-transferFrom}. */ function transferFrom( address from, address to, uint256 tokenId ) public virtual override { //solhint-disable-next-line max-line-length require(_isApprovedOrOwner(_msgSender(), tokenId), "ERC721: 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 Approve `operator` to operate on all of `owner` tokens * * Emits a {ApprovalForAll} event. */ function _setApprovalForAll( address owner, address operator, bool approved ) internal virtual { require(owner != operator, "ERC721: approve to caller"); _operatorApprovals[owner][operator] = approved; emit ApprovalForAll(owner, operator, approved); } /** * @dev Internal function to invoke {IERC721Receiver-onERC721Received} on a target address. * The call is not executed if the target address is not a contract. * * @param from address representing the previous owner of the given token ID * @param to target address that will receive the tokens * @param tokenId uint256 ID of the token to be transferred * @param _data bytes optional data to send along with the call * @return bool whether the call correctly returned the expected magic value */ function _checkOnERC721Received( address from, address to, uint256 tokenId, bytes memory _data ) private returns (bool) { if (to.isContract()) { try IERC721Receiver(to).onERC721Received(_msgSender(), from, tokenId, _data) returns (bytes4 retval) { return retval == IERC721Receiver.onERC721Received.selector; } catch (bytes memory reason) { if (reason.length == 0) { revert("ERC721: transfer to non ERC721Receiver implementer"); } else { assembly { revert(add(32, reason), mload(reason)) } } } } else { return true; } } /** * @dev Hook that is called before any token transfer. This includes minting * and burning. * * Calling conditions: * * - When `from` and `to` are both non-zero, ``from``'s `tokenId` will be * transferred to `to`. * - When `from` is zero, `tokenId` will be minted for `to`. * - When `to` is zero, ``from``'s `tokenId` will be burned. * - `from` and `to` are never both zero. * * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks]. */ function _beforeTokenTransfer( address from, address to, uint256 tokenId ) internal virtual {} }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.0 (access/Ownable.sol) 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() { _transferOwnership(_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 { _transferOwnership(address(0)); } /** * @dev Transfers ownership of the contract to a new account (`newOwner`). * Can only be called by the current owner. */ function transferOwnership(address newOwner) public virtual onlyOwner { require(newOwner != address(0), "Ownable: new owner is the zero address"); _transferOwnership(newOwner); } /** * @dev Transfers ownership of the contract to a new account (`newOwner`). * Internal function without access restriction. */ function _transferOwnership(address newOwner) internal virtual { address oldOwner = _owner; _owner = newOwner; emit OwnershipTransferred(oldOwner, newOwner); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.0 (utils/Counters.sol) pragma solidity ^0.8.0; /** * @title Counters * @author Matt Condon (@shrugs) * @dev Provides counters that can only be incremented, decremented or reset. This can be used e.g. to track the number * of elements in a mapping, issuing ERC721 ids, or counting request ids. * * Include with `using Counters for Counters.Counter;` */ library Counters { struct Counter { // This variable should never be directly accessed by users of the library: interactions must be restricted to // the library's function. As of Solidity v0.5.2, this cannot be enforced, though there is a proposal to add // this feature: see https://github.com/ethereum/solidity/issues/4637 uint256 _value; // default: 0 } function current(Counter storage counter) internal view returns (uint256) { return counter._value; } function increment(Counter storage counter) internal { unchecked { counter._value += 1; } } function decrement(Counter storage counter) internal { uint256 value = counter._value; require(value > 0, "Counter: decrement overflow"); unchecked { counter._value = value - 1; } } function reset(Counter storage counter) internal { counter._value = 0; } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.0 (utils/Strings.sol) pragma solidity ^0.8.0; /** * @dev String operations. */ library Strings { bytes16 private constant _HEX_SYMBOLS = "0123456789abcdef"; /** * @dev Converts a `uint256` to its ASCII `string` decimal representation. */ function toString(uint256 value) internal pure returns (string memory) { // Inspired by OraclizeAPI's implementation - MIT licence // https://github.com/oraclize/ethereum-api/blob/b42146b063c7d6ee1358846c198246239e9360e8/oraclizeAPI_0.4.25.sol if (value == 0) { return "0"; } uint256 temp = value; uint256 digits; while (temp != 0) { digits++; temp /= 10; } bytes memory buffer = new bytes(digits); while (value != 0) { digits -= 1; buffer[digits] = bytes1(uint8(48 + uint256(value % 10))); value /= 10; } return string(buffer); } /** * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation. */ function toHexString(uint256 value) internal pure returns (string memory) { if (value == 0) { return "0x00"; } uint256 temp = value; uint256 length = 0; while (temp != 0) { length++; temp >>= 8; } return toHexString(value, length); } /** * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation with fixed length. */ function toHexString(uint256 value, uint256 length) internal pure returns (string memory) { bytes memory buffer = new bytes(2 * length + 2); buffer[0] = "0"; buffer[1] = "x"; for (uint256 i = 2 * length + 1; i > 1; --i) { buffer[i] = _HEX_SYMBOLS[value & 0xf]; value >>= 4; } require(value == 0, "Strings: hex length insufficient"); return string(buffer); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.0 (utils/math/SafeMath.sol) 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 generally not needed starting with Solidity 0.8, since the compiler * now has built in overflow checking. */ library SafeMath { /** * @dev Returns the addition of two unsigned integers, with an overflow flag. * * _Available since v3.4._ */ function tryAdd(uint256 a, uint256 b) internal pure returns (bool, uint256) { unchecked { uint256 c = a + b; if (c < a) return (false, 0); return (true, c); } } /** * @dev Returns the substraction of two unsigned integers, with an overflow flag. * * _Available since v3.4._ */ function trySub(uint256 a, uint256 b) internal pure returns (bool, uint256) { unchecked { if (b > a) return (false, 0); return (true, a - b); } } /** * @dev Returns the multiplication of two unsigned integers, with an overflow flag. * * _Available since v3.4._ */ function tryMul(uint256 a, uint256 b) internal pure returns (bool, uint256) { unchecked { // Gas optimization: this is cheaper than requiring 'a' not being zero, but the // benefit is lost if 'b' is also tested. // See: https://github.com/OpenZeppelin/openzeppelin-contracts/pull/522 if (a == 0) return (true, 0); uint256 c = a * b; if (c / a != b) return (false, 0); return (true, c); } } /** * @dev Returns the division of two unsigned integers, with a division by zero flag. * * _Available since v3.4._ */ function tryDiv(uint256 a, uint256 b) internal pure returns (bool, uint256) { unchecked { if (b == 0) return (false, 0); return (true, a / b); } } /** * @dev Returns the remainder of dividing two unsigned integers, with a division by zero flag. * * _Available since v3.4._ */ function tryMod(uint256 a, uint256 b) internal pure returns (bool, uint256) { unchecked { if (b == 0) return (false, 0); return (true, a % b); } } /** * @dev Returns the addition of two unsigned integers, reverting on * overflow. * * Counterpart to Solidity's `+` operator. * * Requirements: * * - Addition cannot overflow. */ function add(uint256 a, uint256 b) internal pure returns (uint256) { return a + b; } /** * @dev Returns the subtraction of two unsigned integers, reverting on * overflow (when the result is negative). * * Counterpart to Solidity's `-` operator. * * Requirements: * * - Subtraction cannot overflow. */ function sub(uint256 a, uint256 b) internal pure returns (uint256) { return a - b; } /** * @dev Returns the multiplication of two unsigned integers, reverting on * overflow. * * Counterpart to Solidity's `*` operator. * * Requirements: * * - Multiplication cannot overflow. */ function mul(uint256 a, uint256 b) internal pure returns (uint256) { return a * b; } /** * @dev Returns the integer division of two unsigned integers, reverting on * division by zero. The result is rounded towards zero. * * Counterpart to Solidity's `/` operator. * * Requirements: * * - The divisor cannot be zero. */ function div(uint256 a, uint256 b) internal pure returns (uint256) { return a / b; } /** * @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo), * reverting when dividing by zero. * * Counterpart to Solidity's `%` operator. This function uses a `revert` * opcode (which leaves remaining gas untouched) while Solidity uses an * invalid opcode to revert (consuming all remaining gas). * * Requirements: * * - The divisor cannot be zero. */ function mod(uint256 a, uint256 b) internal pure returns (uint256) { return a % b; } /** * @dev Returns the subtraction of two unsigned integers, reverting with custom message on * overflow (when the result is negative). * * CAUTION: This function is deprecated because it requires allocating memory for the error * message unnecessarily. For custom revert reasons use {trySub}. * * Counterpart to Solidity's `-` operator. * * Requirements: * * - Subtraction cannot overflow. */ function sub( uint256 a, uint256 b, string memory errorMessage ) internal pure returns (uint256) { unchecked { require(b <= a, errorMessage); return a - b; } } /** * @dev Returns the integer division of two unsigned integers, reverting with custom message on * division by zero. The result is rounded towards zero. * * Counterpart to Solidity's `/` operator. Note: this function uses a * `revert` opcode (which leaves remaining gas untouched) while Solidity * uses an invalid opcode to revert (consuming all remaining gas). * * Requirements: * * - The divisor cannot be zero. */ function div( uint256 a, uint256 b, string memory errorMessage ) internal pure returns (uint256) { unchecked { require(b > 0, errorMessage); return a / b; } } /** * @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo), * reverting with custom message when dividing by zero. * * CAUTION: This function is deprecated because it requires allocating memory for the error * message unnecessarily. For custom revert reasons use {tryMod}. * * Counterpart to Solidity's `%` operator. This function uses a `revert` * opcode (which leaves remaining gas untouched) while Solidity uses an * invalid opcode to revert (consuming all remaining gas). * * Requirements: * * - The divisor cannot be zero. */ function mod( uint256 a, uint256 b, string memory errorMessage ) internal pure returns (uint256) { unchecked { require(b > 0, errorMessage); return a % b; } } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.0 (token/ERC721/extensions/ERC721Burnable.sol) pragma solidity ^0.8.0; import "../ERC721.sol"; import "../../../utils/Context.sol"; /** * @title ERC721 Burnable Token * @dev ERC721 Token that can be irreversibly burned (destroyed). */ abstract contract ERC721Burnable is Context, ERC721 { /** * @dev Burns `tokenId`. See {ERC721-_burn}. * * Requirements: * * - The caller must own `tokenId` or be an approved operator. */ function burn(uint256 tokenId) public virtual { //solhint-disable-next-line max-line-length require(_isApprovedOrOwner(_msgSender(), tokenId), "ERC721Burnable: caller is not owner nor approved"); _burn(tokenId); } }
// 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 {SafeMath} from "@openzeppelin/contracts/utils/math/SafeMath.sol"; import {EIP712Base} from "./EIP712Base.sol"; contract NativeMetaTransaction is EIP712Base { using SafeMath for uint256; bytes32 private constant META_TRANSACTION_TYPEHASH = keccak256( bytes( "MetaTransaction(uint256 nonce,address from,bytes functionSignature)" ) ); event MetaTransactionExecuted( address userAddress, address payable relayerAddress, bytes functionSignature ); mapping(address => uint256) nonces; /* * Meta transaction structure. * No point of including value field here as if user is doing value transfer then he has the funds to pay for gas * He should call the desired function directly in that case. */ struct MetaTransaction { uint256 nonce; address from; bytes functionSignature; } function executeMetaTransaction( address userAddress, bytes memory functionSignature, bytes32 sigR, bytes32 sigS, uint8 sigV ) public payable returns (bytes memory) { MetaTransaction memory metaTx = MetaTransaction({ nonce: nonces[userAddress], from: userAddress, functionSignature: functionSignature }); require( verify(userAddress, metaTx, sigR, sigS, sigV), "Signer and signature do not match" ); // increase nonce for user (to avoid re-use) nonces[userAddress] = nonces[userAddress].add(1); emit MetaTransactionExecuted( userAddress, payable(msg.sender), functionSignature ); // Append userAddress and relayer address at the end to extract it from calling context (bool success, bytes memory returnData) = address(this).call( abi.encodePacked(functionSignature, userAddress) ); require(success, "Function call not successful"); return returnData; } function hashMetaTransaction(MetaTransaction memory metaTx) internal pure returns (bytes32) { return keccak256( abi.encode( META_TRANSACTION_TYPEHASH, metaTx.nonce, metaTx.from, keccak256(metaTx.functionSignature) ) ); } function getNonce(address user) public view returns (uint256 nonce) { nonce = nonces[user]; } function verify( address signer, MetaTransaction memory metaTx, bytes32 sigR, bytes32 sigS, uint8 sigV ) internal view returns (bool) { require(signer != address(0), "NativeMetaTransaction: INVALID_SIGNER"); return signer == ecrecover( toTypedMessageHash(hashMetaTransaction(metaTx)), sigV, sigR, sigS ); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.0 (token/ERC721/IERC721.sol) pragma solidity ^0.8.0; import "../../utils/introspection/IERC165.sol"; /** * @dev Required interface of an ERC721 compliant contract. */ interface IERC721 is IERC165 { /** * @dev Emitted when `tokenId` token is transferred from `from` to `to`. */ event Transfer(address indexed from, address indexed to, uint256 indexed tokenId); /** * @dev Emitted when `owner` enables `approved` to manage the `tokenId` token. */ event Approval(address indexed owner, address indexed approved, uint256 indexed tokenId); /** * @dev Emitted when `owner` enables or disables (`approved`) `operator` to manage all of its assets. */ event ApprovalForAll(address indexed owner, address indexed operator, bool approved); /** * @dev Returns the number of tokens in ``owner``'s account. */ function balanceOf(address owner) external view returns (uint256 balance); /** * @dev Returns the owner of the `tokenId` token. * * Requirements: * * - `tokenId` must exist. */ function ownerOf(uint256 tokenId) external view returns (address owner); /** * @dev Safely transfers `tokenId` token from `from` to `to`, 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 // OpenZeppelin Contracts v4.4.0 (token/ERC721/IERC721Receiver.sol) pragma solidity ^0.8.0; /** * @title ERC721 token receiver interface * @dev Interface for any contract that wants to support safeTransfers * from ERC721 asset contracts. */ interface IERC721Receiver { /** * @dev Whenever an {IERC721} `tokenId` token is transferred to this contract via {IERC721-safeTransferFrom} * by `operator` from `from`, this function is called. * * It must return its Solidity selector to confirm the token transfer. * If any other value is returned or the interface is not implemented by the recipient, the transfer will be reverted. * * The selector can be obtained in Solidity with `IERC721.onERC721Received.selector`. */ function onERC721Received( address operator, address from, uint256 tokenId, bytes calldata data ) external returns (bytes4); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.0 (token/ERC721/extensions/IERC721Metadata.sol) pragma solidity ^0.8.0; import "../IERC721.sol"; /** * @title ERC-721 Non-Fungible Token Standard, optional metadata extension * @dev See https://eips.ethereum.org/EIPS/eip-721 */ interface IERC721Metadata is IERC721 { /** * @dev Returns the token collection name. */ function name() external view returns (string memory); /** * @dev Returns the token collection symbol. */ function symbol() external view returns (string memory); /** * @dev Returns the Uniform Resource Identifier (URI) for `tokenId` token. */ function tokenURI(uint256 tokenId) external view returns (string memory); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.0 (utils/Address.sol) pragma solidity ^0.8.0; /** * @dev Collection of functions related to the address type */ library Address { /** * @dev Returns true if `account` is a contract. * * [IMPORTANT] * ==== * It is unsafe to assume that an address for which this function returns * false is an externally-owned account (EOA) and not a contract. * * Among others, `isContract` will return false for the following * types of addresses: * * - an externally-owned account * - a contract in construction * - an address where a contract will be created * - an address where a contract lived, but was destroyed * ==== */ function isContract(address account) internal view returns (bool) { // This method relies on extcodesize, which returns 0 for contracts in // construction, since the code is only stored at the end of the // constructor execution. uint256 size; assembly { size := extcodesize(account) } return size > 0; } /** * @dev Replacement for Solidity's `transfer`: sends `amount` wei to * `recipient`, forwarding all available gas and reverting on errors. * * https://eips.ethereum.org/EIPS/eip-1884[EIP1884] increases the gas cost * of certain opcodes, possibly making contracts go over the 2300 gas limit * imposed by `transfer`, making them unable to receive funds via * `transfer`. {sendValue} removes this limitation. * * https://diligence.consensys.net/posts/2019/09/stop-using-soliditys-transfer-now/[Learn more]. * * IMPORTANT: because control is transferred to `recipient`, care must be * taken to not create reentrancy vulnerabilities. Consider using * {ReentrancyGuard} or the * https://solidity.readthedocs.io/en/v0.5.11/security-considerations.html#use-the-checks-effects-interactions-pattern[checks-effects-interactions pattern]. */ function sendValue(address payable recipient, uint256 amount) internal { require(address(this).balance >= amount, "Address: insufficient balance"); (bool success, ) = recipient.call{value: amount}(""); require(success, "Address: unable to send value, recipient may have reverted"); } /** * @dev Performs a Solidity function call using a low level `call`. A * plain `call` is an unsafe replacement for a function call: use this * function instead. * * If `target` reverts with a revert reason, it is bubbled up by this * function (like regular Solidity function calls). * * Returns the raw returned data. To convert to the expected return value, * use https://solidity.readthedocs.io/en/latest/units-and-global-variables.html?highlight=abi.decode#abi-encoding-and-decoding-functions[`abi.decode`]. * * Requirements: * * - `target` must be a contract. * - calling `target` with `data` must not revert. * * _Available since v3.1._ */ function functionCall(address target, bytes memory data) internal returns (bytes memory) { return functionCall(target, data, "Address: low-level call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], but with * `errorMessage` as a fallback revert reason when `target` reverts. * * _Available since v3.1._ */ function functionCall( address target, bytes memory data, string memory errorMessage ) internal returns (bytes memory) { return functionCallWithValue(target, data, 0, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but also transferring `value` wei to `target`. * * Requirements: * * - the calling contract must have an ETH balance of at least `value`. * - the called Solidity function must be `payable`. * * _Available since v3.1._ */ function functionCallWithValue( address target, bytes memory data, uint256 value ) internal returns (bytes memory) { return functionCallWithValue(target, data, value, "Address: low-level call with value failed"); } /** * @dev Same as {xref-Address-functionCallWithValue-address-bytes-uint256-}[`functionCallWithValue`], but * with `errorMessage` as a fallback revert reason when `target` reverts. * * _Available since v3.1._ */ function functionCallWithValue( address target, bytes memory data, uint256 value, string memory errorMessage ) internal returns (bytes memory) { require(address(this).balance >= value, "Address: insufficient balance for call"); require(isContract(target), "Address: call to non-contract"); (bool success, bytes memory returndata) = target.call{value: value}(data); return verifyCallResult(success, returndata, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but performing a static call. * * _Available since v3.3._ */ function functionStaticCall(address target, bytes memory data) internal view returns (bytes memory) { return functionStaticCall(target, data, "Address: low-level static call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`], * but performing a static call. * * _Available since v3.3._ */ function functionStaticCall( address target, bytes memory data, string memory errorMessage ) internal view returns (bytes memory) { require(isContract(target), "Address: static call to non-contract"); (bool success, bytes memory returndata) = target.staticcall(data); return verifyCallResult(success, returndata, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but performing a delegate call. * * _Available since v3.4._ */ function functionDelegateCall(address target, bytes memory data) internal returns (bytes memory) { return functionDelegateCall(target, data, "Address: low-level delegate call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`], * but performing a delegate call. * * _Available since v3.4._ */ function functionDelegateCall( address target, bytes memory data, string memory errorMessage ) internal returns (bytes memory) { require(isContract(target), "Address: delegate call to non-contract"); (bool success, bytes memory returndata) = target.delegatecall(data); return verifyCallResult(success, returndata, errorMessage); } /** * @dev Tool to verifies that a low level call was successful, and revert if it wasn't, either by bubbling the * revert reason using the provided one. * * _Available since v4.3._ */ function verifyCallResult( bool success, bytes memory returndata, string memory errorMessage ) internal pure returns (bytes memory) { if (success) { return returndata; } else { // Look for revert reason and bubble it up if present if (returndata.length > 0) { // The easiest way to bubble the revert reason is using memory via assembly assembly { let returndata_size := mload(returndata) revert(add(32, returndata), returndata_size) } } else { revert(errorMessage); } } } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.0 (utils/Context.sol) pragma solidity ^0.8.0; /** * @dev Provides information about the current execution context, including the * sender of the transaction and its data. While these are generally available * via msg.sender and msg.data, they should not be accessed in such a direct * manner, since when dealing with meta-transactions the account sending and * paying for execution may not be the actual sender (as far as an application * is concerned). * * This contract is only required for intermediate, library-like contracts. */ abstract contract Context { function _msgSender() internal view virtual returns (address) { return msg.sender; } function _msgData() internal view virtual returns (bytes calldata) { return msg.data; } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.0 (utils/introspection/ERC165.sol) pragma solidity ^0.8.0; import "./IERC165.sol"; /** * @dev Implementation of the {IERC165} interface. * * Contracts that want to implement ERC165 should inherit from this contract and override {supportsInterface} to check * for the additional interface id that will be supported. For example: * * ```solidity * function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) { * return interfaceId == type(MyInterface).interfaceId || super.supportsInterface(interfaceId); * } * ``` * * Alternatively, {ERC165Storage} provides an easier to use but more expensive implementation. */ abstract contract ERC165 is IERC165 { /** * @dev See {IERC165-supportsInterface}. */ function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) { return interfaceId == type(IERC165).interfaceId; } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.0 (utils/introspection/IERC165.sol) pragma solidity ^0.8.0; /** * @dev Interface of the ERC165 standard, as defined in the * https://eips.ethereum.org/EIPS/eip-165[EIP]. * * Implementers can declare support of contract interfaces, which can then be * queried by others ({ERC165Checker}). * * For an implementation, see {ERC165}. */ interface IERC165 { /** * @dev Returns true if this contract implements the interface defined by * `interfaceId`. See the corresponding * https://eips.ethereum.org/EIPS/eip-165#how-interfaces-are-identified[EIP section] * to learn more about how these ids are created. * * This function call must use less than 30 000 gas. */ function supportsInterface(bytes4 interfaceId) external view returns (bool); }
// SPDX-License-Identifier: MIT 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; } }
{ "optimizer": { "enabled": true, "runs": 200, "details": { "yul": false } }, "outputSelection": { "*": { "*": [ "evm.bytecode", "evm.deployedBytecode", "devdoc", "userdoc", "metadata", "abi" ] } }, "libraries": {} }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"inputs":[{"internalType":"address","name":"_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"},{"inputs":[],"name":"ERC712_VERSION","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"MAX_SUPPLY","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"approve","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"burn","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"contractDreamSeeds","outputs":[{"internalType":"contract DreamSeedsNFT","name":"","type":"address"}],"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":[],"name":"isRevealed","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"mintIsActive","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"seedTokenId","type":"uint256"}],"name":"mintOffering","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":"uint256","name":"numberOfTokens","type":"uint256"}],"name":"reserveOffering","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"numberOfTokens","type":"uint256"},{"internalType":"address","name":"receiver","type":"address"}],"name":"reserveOfferingTo","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bool","name":"state","type":"bool"}],"name":"revealAll","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":"address","name":"newAddress","type":"address"}],"name":"setContractDreamSeeds","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bool","name":"newState","type":"bool"}],"name":"setMintState","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"_value","type":"string"}],"name":"setPreRevealURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"_value","type":"string"}],"name":"setRevealedURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes4","name":"interfaceId","type":"bytes4"}],"name":"supportsInterface","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_tokenId","type":"uint256"}],"name":"tokenURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"transferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"withdraw","outputs":[],"stateMutability":"nonpayable","type":"function"}]
Contract Creation Code
6006805460ff19169055600d805460ff60a81b1960ff60a01b19909116600160a01b1716905561010060405260516080818152906200381b60a03980516200005091600e916020909101906200035f565b503480156200005e57600080fd5b50604051620038bc380380620038bc833981016040819052620000819162000418565b60405180604001604052806012815260200171111c99585b4813d999995c9a5b99c813919560721b8152506040518060400160405280600d81526020016c445245414d4f46464552494e4760981b8152508282828160009080519060200190620000ed9291906200035f565b508051620001039060019060208401906200035f565b505050620001206200011a6200019960201b60201c565b620001b6565b600b80546001600160a01b0319166001600160a01b03831617905562000153600a62000208602090811b6200118d17901c565b6200015e8362000211565b5050506040518060800160405280605081526020016200386c6050913980516200019191600c916020909101906200035f565b50506200056d565b6000620001b06200025b60201b620011961760201c565b90505b90565b600980546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b80546001019055565b60065460ff1615620002405760405162461bcd60e51b81526004016200023790620004df565b60405180910390fd5b6200024b81620002b9565b506006805460ff19166001179055565b600033301415620002b457600080368080601f0160208091040260200160405190810160405280939291908181526020018383808284376000920191909152505050503601516001600160a01b03169150620001b39050565b503390565b6040518060800160405280604f8152602001620037cc604f913980516020918201208251838301206040805180820190915260018152603160f81b930192909252907fc89efdaa54c0f20c7adf612882df0950f5a951637e0307cdcb4c672f298b8bc630620003276200035b565b6040516200033d95949392919060200162000489565b60408051601f19818403018152919052805160209091012060075550565b4690565b8280546200036d906200050c565b90600052602060002090601f016020900481019282620003915760008555620003dc565b82601f10620003ac57805160ff1916838001178555620003dc565b82800160010185558215620003dc579182015b82811115620003dc578251825591602001919060010190620003bf565b50620003ea929150620003ee565b5090565b5b80821115620003ea5760008155600101620003ef565b8051620004128162000553565b92915050565b6000602082840312156200042b57600080fd5b600062000439848462000405565b949350505050565b6200044c81620004fa565b82525050565b6200044c81620001b3565b60006200046c600e83620004f1565b6d185b1c9958591e481a5b9a5d195960921b815260200192915050565b60a0810162000499828862000452565b620004a8602083018762000452565b620004b7604083018662000452565b620004c6606083018562000441565b620004d5608083018462000452565b9695505050505050565b6020808252810162000412816200045d565b90815260200190565b60006001600160a01b03821662000412565b6002810460018216806200052157607f821691505b602082108114156200053757620005376200053d565b50919050565b634e487b7160e01b600052602260045260246000fd5b6200055e81620004fa565b81146200056a57600080fd5b50565b61324f806200057d6000396000f3fe60806040526004361061020f5760003560e01c806342842e0e11610118578063901ea69d116100a0578063b88d4fde1161006f578063b88d4fde146105a2578063c87b56dd146105c2578063d1b82897146105e2578063e985e9c514610604578063f2fde38b146106245761020f565b8063901ea69d1461052d578063957e22c01461054d57806395d89b411461056d578063a22cb465146105825761020f565b8063631a5463116100e7578063631a5463146104a35780636352211e146104c357806370a08231146104e3578063715018a6146105035780638da5cb5b146105185761020f565b806342842e0e1461043957806342966c6814610459578063471a42941461047957806354214f691461048e5761020f565b806326412aca1161019b57806332cb6b0c1161016a57806332cb6b0c146103ba5780633408e470146103cf57806338b3c0e2146103e45780633b97dd5b146104045780633ccfd60b146104245761020f565b806326412aca1461033a5780632a85db551461035a5780632d0335ab1461037a578063326d43881461039a5761020f565b80630c53c51c116101e25780630c53c51c146102bb5780630f7e5970146102ce57806318160ddd146102e357806320379ee51461030557806323b872dd1461031a5761020f565b806301ffc9a71461021457806306fdde031461024a578063081812fc1461026c578063095ea7b314610299575b600080fd5b34801561022057600080fd5b5061023461022f366004612120565b610644565b6040516102419190612cbd565b60405180910390f35b34801561025657600080fd5b5061025f61068c565b6040516102419190612d36565b34801561027857600080fd5b5061028c6102873660046121af565b61071f565b6040516102419190612c3e565b3480156102a557600080fd5b506102b96102b43660046120d2565b61076b565b005b61025f6102c9366004612045565b610803565b3480156102da57600080fd5b5061025f610985565b3480156102ef57600080fd5b506102f86109a2565b6040516102419190612ccb565b34801561031157600080fd5b506102f86109bf565b34801561032657600080fd5b506102b9610335366004611f4f565b6109c5565b34801561034657600080fd5b506102b9610355366004612102565b6109fd565b34801561036657600080fd5b506102b961037536600461217a565b610a5a565b34801561038657600080fd5b506102f8610395366004611ed9565b610ab0565b3480156103a657600080fd5b506102b96103b536600461217a565b610acb565b3480156103c657600080fd5b506102f8610b1d565b3480156103db57600080fd5b506102f8610b23565b3480156103f057600080fd5b506102b96103ff366004612102565b610b27565b34801561041057600080fd5b506102b961041f366004611ed9565b610b84565b34801561043057600080fd5b506102b9610be5565b34801561044557600080fd5b506102b9610454366004611f4f565b610c53565b34801561046557600080fd5b506102b96104743660046121af565b610c6e565b34801561048557600080fd5b50610234610ca1565b34801561049a57600080fd5b50610234610cb1565b3480156104af57600080fd5b506102b96104be3660046121af565b610cc1565b3480156104cf57600080fd5b5061028c6104de3660046121af565b610d59565b3480156104ef57600080fd5b506102f86104fe366004611ed9565b610d8e565b34801561050f57600080fd5b506102b9610dd2565b34801561052457600080fd5b5061028c610e1d565b34801561053957600080fd5b506102b96105483660046121cd565b610e2c565b34801561055957600080fd5b506102b96105683660046121af565b610ec4565b34801561057957600080fd5b5061025f610f27565b34801561058e57600080fd5b506102b961059d366004612015565b610f36565b3480156105ae57600080fd5b506102b96105bd366004611f9c565b610f48565b3480156105ce57600080fd5b5061025f6105dd3660046121af565b610f87565b3480156105ee57600080fd5b506105f761105a565b6040516102419190612d47565b34801561061057600080fd5b5061023461061f366004611f15565b611069565b34801561063057600080fd5b506102b961063f366004611ed9565b61111f565b60006001600160e01b031982166380ac58cd60e01b148061067557506001600160e01b03198216635b5e139f60e01b145b806106845750610684826111f2565b90505b919050565b60606000805461069b9061305f565b80601f01602080910402602001604051908101604052809291908181526020018280546106c79061305f565b80156107145780601f106106e957610100808354040283529160200191610714565b820191906000526020600020905b8154815290600101906020018083116106f757829003601f168201915b505050505090505b90565b600061072a8261120b565b61074f5760405162461bcd60e51b815260040161074690612e45565b60405180910390fd5b506000908152600460205260409020546001600160a01b031690565b600061077682610d59565b9050806001600160a01b0316836001600160a01b031614156107aa5760405162461bcd60e51b815260040161074690612e85565b806001600160a01b03166107bc611228565b6001600160a01b031614806107d857506107d88161061f611228565b6107f45760405162461bcd60e51b815260040161074690612e05565b6107fe8383611232565b505050565b60408051606081810183526001600160a01b0388166000818152600860209081529085902054845283015291810186905261084187828787876112a0565b61085d5760405162461bcd60e51b815260040161074690612e75565b6001600160a01b038716600090815260086020526040902054610881906001611346565b6001600160a01b0388166000908152600860205260409081902091909155517f5845892132946850460bff5a0083f71031bc5bf9aadcd40f1de79423eac9b10b906108d190899033908a90612c4c565b60405180910390a1600080306001600160a01b0316888a6040516020016108f9929190612b4c565b60408051601f198184030181529082905261091391612b40565b6000604051808303816000865af19150503d8060008114610950576040519150601f19603f3d011682016040523d82523d6000602084013e610955565b606091505b5091509150816109775760405162461bcd60e51b815260040161074690612d85565b925050505b95945050505050565b604051806040016040528060018152602001603160f81b81525081565b600060016109b0600a611359565b6109ba9190612fc0565b905090565b60075490565b6109d66109d0611228565b8261135d565b6109f25760405162461bcd60e51b815260040161074690612ea5565b6107fe8383836113da565b610a05611228565b6001600160a01b0316610a16610e1d565b6001600160a01b031614610a3c5760405162461bcd60e51b815260040161074690612e55565b600d8054911515600160a01b0260ff60a01b19909216919091179055565b610a62611228565b6001600160a01b0316610a73610e1d565b6001600160a01b031614610a995760405162461bcd60e51b815260040161074690612e55565b8051610aac90600c906020840190611d89565b5050565b6001600160a01b031660009081526008602052604090205490565b610ad3611228565b6001600160a01b0316610ae4610e1d565b6001600160a01b031614610b0a5760405162461bcd60e51b815260040161074690612e55565b8051610aac90600e906020840190611d89565b61051481565b4690565b610b2f611228565b6001600160a01b0316610b40610e1d565b6001600160a01b031614610b665760405162461bcd60e51b815260040161074690612e55565b600d8054911515600160a81b0260ff60a81b19909216919091179055565b610b8c611228565b6001600160a01b0316610b9d610e1d565b6001600160a01b031614610bc35760405162461bcd60e51b815260040161074690612e55565b600d80546001600160a01b0319166001600160a01b0392909216919091179055565b610bed611228565b6001600160a01b0316610bfe610e1d565b6001600160a01b031614610c245760405162461bcd60e51b815260040161074690612e55565b6040514790339082156108fc029083906000818181858888f19350505050158015610aac573d6000803e3d6000fd5b6107fe83838360405180602001604052806000815250610f48565b610c796109d0611228565b610c955760405162461bcd60e51b815260040161074690612eb5565b610c9e81611507565b50565b600d54600160a01b900460ff1681565b600d54600160a81b900460ff1681565b610cc9611228565b6001600160a01b0316610cda610e1d565b6001600160a01b031614610d005760405162461bcd60e51b815260040161074690612e55565b61051481610d0c6109a2565b610d169190612f33565b10610d335760405162461bcd60e51b815260040161074690612d95565b60005b81811015610aac57610d47336115ae565b80610d518161308c565b915050610d36565b6000818152600260205260408120546001600160a01b0316806106845760405162461bcd60e51b815260040161074690612e25565b60006001600160a01b038216610db65760405162461bcd60e51b815260040161074690612e15565b506001600160a01b031660009081526003602052604090205490565b610dda611228565b6001600160a01b0316610deb610e1d565b6001600160a01b031614610e115760405162461bcd60e51b815260040161074690612e55565b610e1b60006115d0565b565b6009546001600160a01b031690565b610e34611228565b6001600160a01b0316610e45610e1d565b6001600160a01b031614610e6b5760405162461bcd60e51b815260040161074690612e55565b61051482610e776109a2565b610e819190612f33565b10610e9e5760405162461bcd60e51b815260040161074690612d95565b60005b828110156107fe57610eb2826115ae565b80610ebc8161308c565b915050610ea1565b600d54600160a01b900460ff16610eed5760405162461bcd60e51b815260040161074690612d55565b610514610ef86109a2565b10610f155760405162461bcd60e51b815260040161074690612d95565b610f1e81611622565b610c9e336115ae565b60606001805461069b9061305f565b610aac610f41611228565b83836116b7565b610f59610f53611228565b8361135d565b610f755760405162461bcd60e51b815260040161074690612ea5565b610f818484848461175a565b50505050565b606060018210158015610f9c57506105148211155b610fb85760405162461bcd60e51b815260040161074690612db5565b600d54600160a81b900460ff16611028576000610ffe610fd78461178d565b600c604051602001610fea929190612bc2565b6040516020818303038152906040526118b0565b9050806040516020016110119190612c27565b604051602081830303815290604052915050610687565b600e6110338361178d565b604051602001611044929190612b6e565b6040516020818303038152906040529050610687565b600d546001600160a01b031681565b600b5460405163c455279160e01b81526000916001600160a01b039081169190841690829063c4552791906110a2908890600401612c3e565b60206040518083038186803b1580156110ba57600080fd5b505afa1580156110ce573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906110f2919061215c565b6001600160a01b0316141561110b576001915050611119565b6111158484611a13565b9150505b92915050565b611127611228565b6001600160a01b0316611138610e1d565b6001600160a01b03161461115e5760405162461bcd60e51b815260040161074690612e55565b6001600160a01b0381166111845760405162461bcd60e51b815260040161074690612d75565b610c9e816115d0565b80546001019055565b6000333014156111ed57600080368080601f0160208091040260200160405190810160405280939291908181526020018383808284376000920191909152505050503601516001600160a01b0316915061071c9050565b503390565b6001600160e01b031981166301ffc9a760e01b14919050565b6000908152600260205260409020546001600160a01b0316151590565b60006109ba611196565b600081815260046020526040902080546001600160a01b0319166001600160a01b038416908117909155819061126782610d59565b6001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b60006001600160a01b0386166112c85760405162461bcd60e51b815260040161074690612df5565b60016112db6112d687611a41565b611a9f565b838686604051600081526020016040526040516112fb9493929190612d0e565b6020604051602081039080840390855afa15801561131d573d6000803e3d6000fd5b505050602060405103516001600160a01b0316866001600160a01b031614905095945050505050565b60006113528284612f33565b9392505050565b5490565b60006113688261120b565b6113845760405162461bcd60e51b815260040161074690612de5565b600061138f83610d59565b9050806001600160a01b0316846001600160a01b031614806113ca5750836001600160a01b03166113bf8461071f565b6001600160a01b0316145b8061111557506111158185611069565b826001600160a01b03166113ed82610d59565b6001600160a01b0316146114135760405162461bcd60e51b815260040161074690612e65565b6001600160a01b0382166114395760405162461bcd60e51b815260040161074690612dc5565b6114448383836107fe565b61144f600082611232565b6001600160a01b0383166000908152600360205260408120805460019290611478908490612fc0565b90915550506001600160a01b03821660009081526003602052604081208054600192906114a6908490612f33565b909155505060008181526002602052604080822080546001600160a01b0319166001600160a01b0386811691821790925591518493918716917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91a4505050565b600061151282610d59565b9050611520816000846107fe565b61152b600083611232565b6001600160a01b0381166000908152600360205260408120805460019290611554908490612fc0565b909155505060008281526002602052604080822080546001600160a01b0319169055518391906001600160a01b038416907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908390a45050565b60006115ba600a611359565b90506115c6600a61118d565b610aac8282611abb565b600980546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b3361162c82611ad5565b6001600160a01b0316146116525760405162461bcd60e51b815260040161074690612e95565b600d5460405163548a531360e11b81526001600160a01b039091169063a914a62690611682908490600401612ccb565b600060405180830381600087803b15801561169c57600080fd5b505af11580156116b0573d6000803e3d6000fd5b5050505050565b816001600160a01b0316836001600160a01b031614156116e95760405162461bcd60e51b815260040161074690612dd5565b6001600160a01b0383811660008181526005602090815260408083209487168084529490915290819020805460ff1916851515179055517f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c319061174d908590612cbd565b60405180910390a3505050565b6117658484846113da565b61177184848484611b56565b610f815760405162461bcd60e51b815260040161074690612d65565b6060816117b257506040805180820190915260018152600360fc1b6020820152610687565b8160005b81156117dc57806117c68161308c565b91506117d59050600a83612f61565b91506117b6565b60008167ffffffffffffffff81111561180557634e487b7160e01b600052604160045260246000fd5b6040519080825280601f01601f19166020018201604052801561182f576020820181803683370190505b5090505b84156118a857611844600183612fc0565b9150611851600a866130c3565b61185c906030612f33565b60f81b81838151811061187f57634e487b7160e01b600052603260045260246000fd5b60200101906001600160f81b031916908160001a9053506118a1600a86612f61565b9450611833565b949350505050565b60608151600014156118d15750604080516020810190915260008152610687565b60006040518060600160405280604081526020016131da60409139905060006003845160026119009190612f33565b61190a9190612f61565b611915906004612f8b565b67ffffffffffffffff81111561193b57634e487b7160e01b600052604160045260246000fd5b6040519080825280601f01601f191660200182016040528015611965576020820181803683370190505b509050600182016020820185865187015b808210156119d1576003820191508151603f8160121c168501518453600184019350603f81600c1c168501518453600184019350603f8160061c168501518453600184019350603f8116850151845360018401935050611976565b50506003865106600181146119ed5760028114611a0057611a08565b603d6001830353603d6002830353611a08565b603d60018303535b509195945050505050565b6001600160a01b03918216600090815260056020908152604080832093909416825291909152205460ff1690565b60006040518060800160405280604381526020016131976043913980516020918201208351848301516040808701518051908601209051611a829501612cd9565b604051602081830303815290604052805190602001209050919050565b6000611aa96109bf565b82604051602001611a82929190612b91565b610aac828260405180602001604052806000815250611c71565b600d546040516331a9108f60e11b81526000916001600160a01b031690636352211e90611b06908590600401612ccb565b60206040518083038186803b158015611b1e57600080fd5b505afa158015611b32573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906106849190611ef7565b6000611b6a846001600160a01b0316611ca4565b15611c6657836001600160a01b031663150b7a02611b86611228565b8786866040518563ffffffff1660e01b8152600401611ba89493929190612c79565b602060405180830381600087803b158015611bc257600080fd5b505af1925050508015611bf2575060408051601f3d908101601f19168201909252611bef9181019061213e565b60015b611c4c573d808015611c20576040519150601f19603f3d011682016040523d82523d6000602084013e611c25565b606091505b508051611c445760405162461bcd60e51b815260040161074690612d65565b805181602001fd5b6001600160e01b031916630a85bd0160e11b1490506118a8565b506001949350505050565b611c7b8383611caa565b611c886000848484611b56565b6107fe5760405162461bcd60e51b815260040161074690612d65565b3b151590565b6001600160a01b038216611cd05760405162461bcd60e51b815260040161074690612e35565b611cd98161120b565b15611cf65760405162461bcd60e51b815260040161074690612da5565b611d02600083836107fe565b6001600160a01b0382166000908152600360205260408120805460019290611d2b908490612f33565b909155505060008181526002602052604080822080546001600160a01b0319166001600160a01b03861690811790915590518392907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b828054611d959061305f565b90600052602060002090601f016020900481019282611db75760008555611dfd565b82601f10611dd057805160ff1916838001178555611dfd565b82800160010185558215611dfd579182015b82811115611dfd578251825591602001919060010190611de2565b50611e09929150611e0d565b5090565b5b80821115611e095760008155600101611e0e565b6000611e35611e3084612eef565b612ec5565b905082815260208101848484011115611e4d57600080fd5b611e58848285613027565b509392505050565b803561111981613155565b805161111981613155565b803561111981613169565b803561111981613172565b80356111198161317b565b80516111198161317b565b600082601f830112611eb357600080fd5b8135611115848260208601611e22565b805161111981613184565b80356111198161318d565b600060208284031215611eeb57600080fd5b60006111158484611e60565b600060208284031215611f0957600080fd5b60006111158484611e6b565b60008060408385031215611f2857600080fd5b6000611f348585611e60565b9250506020611f4585828601611e60565b9150509250929050565b600080600060608486031215611f6457600080fd5b6000611f708686611e60565b9350506020611f8186828701611e60565b9250506040611f9286828701611e81565b9150509250925092565b60008060008060808587031215611fb257600080fd5b6000611fbe8787611e60565b9450506020611fcf87828801611e60565b9350506040611fe087828801611e81565b925050606085013567ffffffffffffffff811115611ffd57600080fd5b61200987828801611ea2565b91505092959194509250565b6000806040838503121561202857600080fd5b60006120348585611e60565b9250506020611f4585828601611e76565b600080600080600060a0868803121561205d57600080fd5b60006120698888611e60565b955050602086013567ffffffffffffffff81111561208657600080fd5b61209288828901611ea2565b94505060406120a388828901611e81565b93505060606120b488828901611e81565b92505060806120c588828901611ece565b9150509295509295909350565b600080604083850312156120e557600080fd5b60006120f18585611e60565b9250506020611f4585828601611e81565b60006020828403121561211457600080fd5b60006111158484611e76565b60006020828403121561213257600080fd5b60006111158484611e8c565b60006020828403121561215057600080fd5b60006111158484611e97565b60006020828403121561216e57600080fd5b60006111158484611ec3565b60006020828403121561218c57600080fd5b813567ffffffffffffffff8111156121a357600080fd5b61111584828501611ea2565b6000602082840312156121c157600080fd5b60006111158484611e81565b600080604083850312156121e057600080fd5b6000611f348585611e81565b6121f581612fed565b82525050565b6121f561220782612fed565b6130b2565b6121f581612ff8565b6121f58161071c565b6121f561222a8261071c565b61071c565b600061223a82612f26565b6122448185612f2a565b9350612254818560208601613033565b61225d81613145565b9093019392505050565b600061227282612f26565b61227c8185610687565b935061228c818560208601613033565b9290920192915050565b6121f58161300a565b600081546122ac8161305f565b6122b68186610687565b94506001821680156122cf57600181146122e057612310565b60ff19831686528186019350612310565b6122e985612f1a565b60005b83811015612308578154888201526001909101906020016122ec565b838801955050505b50505092915050565b6000612326601d83612f2a565b7f4d7573742062652061637469766520746f206d696e7420746f6b656e73000000815260200192915050565b600061235f603283612f2a565b7f4552433732313a207472616e7366657220746f206e6f6e20455243373231526581527131b2b4bb32b91034b6b83632b6b2b73a32b960711b602082015260400192915050565b60006123b3602683612f2a565b7f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206181526564647265737360d01b602082015260400192915050565b60006123fb600283610687565b61088b60f21b815260020192915050565b6000612419601c83612f2a565b7f46756e6374696f6e2063616c6c206e6f74207375636365737366756c00000000815260200192915050565b6000612452602083612f2a565b7f507572636861736520776f756c6420657863656564206d617820746f6b656e73815260200192915050565b600061248b601c83612f2a565b7f4552433732313a20746f6b656e20616c7265616479206d696e74656400000000815260200192915050565b60006124c4600283610687565b61190160f01b815260020192915050565b60006124e2601583612f2a565b744e6f742076616c696420746f6b656e2072616e676560581b815260200192915050565b6000612513600983610687565b6803d913730b6b2911d160bd1b815260090192915050565b6000612538601183610687565b7022447265616d204f66666572696e67202360781b815260110192915050565b6000612565602483612f2a565b7f4552433732313a207472616e7366657220746f20746865207a65726f206164648152637265737360e01b602082015260400192915050565b60006125ab601983612f2a565b7f4552433732313a20617070726f766520746f2063616c6c657200000000000000815260200192915050565b60006125e4604183610687565b7f226465736372697074696f6e223a20224120646f6f72776179206f70656e696e81527f6720696e746f20616e6f74686572206379636c65206f66206c6966652e2e2e226020820152600b60fa1b604082015260410192915050565b600061264d602c83612f2a565b7f4552433732313a206f70657261746f7220717565727920666f72206e6f6e657881526b34b9ba32b73a103a37b5b2b760a11b602082015260400192915050565b600061269b602583612f2a565b7f4e61746976654d6574615472616e73616374696f6e3a20494e56414c49445f5381526424a3a722a960d91b602082015260400192915050565b60006126e2603883612f2a565b7f4552433732313a20617070726f76652063616c6c6572206973206e6f74206f7781527f6e6572206e6f7220617070726f76656420666f7220616c6c0000000000000000602082015260400192915050565b6000612741602a83612f2a565b7f4552433732313a2062616c616e636520717565727920666f7220746865207a65815269726f206164647265737360b01b602082015260400192915050565b600061278d602983612f2a565b7f4552433732313a206f776e657220717565727920666f72206e6f6e657869737481526832b73a103a37b5b2b760b91b602082015260400192915050565b60006127d8600283610687565b61227d60f01b815260020192915050565b60006127f6602083612f2a565b7f4552433732313a206d696e7420746f20746865207a65726f2061646472657373815260200192915050565b600061282f602c83612f2a565b7f4552433732313a20617070726f76656420717565727920666f72206e6f6e657881526b34b9ba32b73a103a37b5b2b760a11b602082015260400192915050565b600061287d600583610687565b64173539b7b760d91b815260050192915050565b600061289e602083612f2a565b7f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572815260200192915050565b60006128d7602983612f2a565b7f4552433732313a207472616e73666572206f6620746f6b656e2074686174206981526839903737ba1037bbb760b91b602082015260400192915050565b6000612922602183612f2a565b7f5369676e657220616e64207369676e617475726520646f206e6f74206d6174638152600d60fb1b602082015260400192915050565b6000612965602183612f2a565b7f4552433732313a20617070726f76616c20746f2063757272656e74206f776e658152603960f91b602082015260400192915050565b60006129a8601d83610687565b7f646174613a6170706c69636174696f6e2f6a736f6e3b6261736536342c0000008152601d0192915050565b60006129e1601783612f2a565b7f6e6f74206f776e6572206f6620647265616d2073656564000000000000000000815260200192915050565b6000612a1a603183612f2a565b7f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f8152701ddb995c881b9bdc88185c1c1c9bdd9959607a1b602082015260400192915050565b6000612a6d600a83610687565b691134b6b0b3b2911d101160b11b8152600a0192915050565b6000612a93603d83610687565b7f2261747472696275746573223a5b7b2274726169745f74797065223a2253746181527f747573222c202276616c7565223a22556e72657665616c6564227d5d2c0000006020820152603d0192915050565b6000612af2603083612f2a565b7f4552433732314275726e61626c653a2063616c6c6572206973206e6f74206f7781526f1b995c881b9bdc88185c1c1c9bdd995960821b602082015260400192915050565b6121f581613021565b60006113528284612267565b6000612b588285612267565b9150612b6482846121fb565b5060140192915050565b6000612b7a828561229f565b9150612b868284612267565b91506118a882612870565b6000612b9c826124b7565b9150612ba8828561221e565b602082019150612bb8828461221e565b5060200192915050565b6000612bcd82612506565b9150612bd88261252b565b9150612be48285612267565b9150612bef826123ee565b9150612bfa826125d7565b9150612c0582612a86565b9150612c1082612a60565b9150612c1c828461229f565b91506118a8826127cb565b6000612c328261299b565b91506113528284612267565b6020810161111982846121ec565b60608101612c5a82866121ec565b612c6760208301856121ec565b818103604083015261097c818461222f565b60808101612c8782876121ec565b612c9460208301866121ec565b612ca16040830185612215565b8181036060830152612cb3818461222f565b9695505050505050565b60208101611119828461220c565b602081016111198284612215565b60808101612ce78287612215565b612cf46020830186612215565b612d0160408301856121ec565b61097c6060830184612215565b60808101612d1c8287612215565b612d296020830186612b37565b612d016040830185612215565b60208082528101611352818461222f565b602081016111198284612296565b6020808252810161068481612319565b6020808252810161068481612352565b60208082528101610684816123a6565b602080825281016106848161240c565b6020808252810161068481612445565b602080825281016106848161247e565b60208082528101610684816124d5565b6020808252810161068481612558565b602080825281016106848161259e565b6020808252810161068481612640565b602080825281016106848161268e565b60208082528101610684816126d5565b6020808252810161068481612734565b6020808252810161068481612780565b60208082528101610684816127e9565b6020808252810161068481612822565b6020808252810161068481612891565b60208082528101610684816128ca565b6020808252810161068481612915565b6020808252810161068481612958565b60208082528101610684816129d4565b6020808252810161068481612a0d565b6020808252810161068481612ae5565b60405181810167ffffffffffffffff81118282101715612ee757612ee761312f565b604052919050565b600067ffffffffffffffff821115612f0957612f0961312f565b506020601f91909101601f19160190565b60009081526020902090565b5190565b90815260200190565b6000612f3e8261071c565b9150612f498361071c565b92508219821115612f5c57612f5c6130ed565b500190565b6000612f6c8261071c565b9150612f778361071c565b925082612f8657612f86613103565b500490565b6000612f968261071c565b9150612fa18361071c565b9250816000190483118215151615612fbb57612fbb6130ed565b500290565b6000612fcb8261071c565b9150612fd68361071c565b925082821015612fe857612fe86130ed565b500390565b600061068482613015565b151590565b6001600160e01b03191690565b600061068482612fed565b6001600160a01b031690565b60ff1690565b82818337506000910152565b60005b8381101561304e578181015183820152602001613036565b83811115610f815750506000910152565b60028104600182168061307357607f821691505b6020821081141561308657613086613119565b50919050565b60006130978261071c565b91506000198214156130ab576130ab6130ed565b5060010190565b60006106848260006106848261314f565b60006130ce8261071c565b91506130d98361071c565b9250826130e8576130e8613103565b500690565b634e487b7160e01b600052601160045260246000fd5b634e487b7160e01b600052601260045260246000fd5b634e487b7160e01b600052602260045260246000fd5b634e487b7160e01b600052604160045260246000fd5b601f01601f191690565b60601b90565b61315e81612fed565b8114610c9e57600080fd5b61315e81612ff8565b61315e8161071c565b61315e81612ffd565b61315e8161300a565b61315e8161302156fe4d6574615472616e73616374696f6e2875696e74323536206e6f6e63652c616464726573732066726f6d2c62797465732066756e6374696f6e5369676e6174757265294142434445464748494a4b4c4d4e4f505152535455565758595a6162636465666768696a6b6c6d6e6f707172737475767778797a303132333435363738392b2fa2646970667358221220ecf05fee5199c1694ca5e8c2771908d524d00305427caf88aaf2204ecb4111ad64736f6c63430008000033454950373132446f6d61696e28737472696e67206e616d652c737472696e672076657273696f6e2c6164647265737320766572696679696e67436f6e74726163742c627974657333322073616c742968747470733a2f2f676174657761792e70696e6174612e636c6f75642f697066732f516d524137314e76655846354546555364733837335771786b567554384876764154677a363565763365613964352f68747470733a2f2f676174657761792e70696e6174612e636c6f75642f697066732f516d505767454467626b67394575754565674777647a54693545334d7a4a7537754d595a365953575662354e7543000000000000000000000000a5409ec958c83c3f309868babaca7c86dcb077c1
Deployed Bytecode
0x60806040526004361061020f5760003560e01c806342842e0e11610118578063901ea69d116100a0578063b88d4fde1161006f578063b88d4fde146105a2578063c87b56dd146105c2578063d1b82897146105e2578063e985e9c514610604578063f2fde38b146106245761020f565b8063901ea69d1461052d578063957e22c01461054d57806395d89b411461056d578063a22cb465146105825761020f565b8063631a5463116100e7578063631a5463146104a35780636352211e146104c357806370a08231146104e3578063715018a6146105035780638da5cb5b146105185761020f565b806342842e0e1461043957806342966c6814610459578063471a42941461047957806354214f691461048e5761020f565b806326412aca1161019b57806332cb6b0c1161016a57806332cb6b0c146103ba5780633408e470146103cf57806338b3c0e2146103e45780633b97dd5b146104045780633ccfd60b146104245761020f565b806326412aca1461033a5780632a85db551461035a5780632d0335ab1461037a578063326d43881461039a5761020f565b80630c53c51c116101e25780630c53c51c146102bb5780630f7e5970146102ce57806318160ddd146102e357806320379ee51461030557806323b872dd1461031a5761020f565b806301ffc9a71461021457806306fdde031461024a578063081812fc1461026c578063095ea7b314610299575b600080fd5b34801561022057600080fd5b5061023461022f366004612120565b610644565b6040516102419190612cbd565b60405180910390f35b34801561025657600080fd5b5061025f61068c565b6040516102419190612d36565b34801561027857600080fd5b5061028c6102873660046121af565b61071f565b6040516102419190612c3e565b3480156102a557600080fd5b506102b96102b43660046120d2565b61076b565b005b61025f6102c9366004612045565b610803565b3480156102da57600080fd5b5061025f610985565b3480156102ef57600080fd5b506102f86109a2565b6040516102419190612ccb565b34801561031157600080fd5b506102f86109bf565b34801561032657600080fd5b506102b9610335366004611f4f565b6109c5565b34801561034657600080fd5b506102b9610355366004612102565b6109fd565b34801561036657600080fd5b506102b961037536600461217a565b610a5a565b34801561038657600080fd5b506102f8610395366004611ed9565b610ab0565b3480156103a657600080fd5b506102b96103b536600461217a565b610acb565b3480156103c657600080fd5b506102f8610b1d565b3480156103db57600080fd5b506102f8610b23565b3480156103f057600080fd5b506102b96103ff366004612102565b610b27565b34801561041057600080fd5b506102b961041f366004611ed9565b610b84565b34801561043057600080fd5b506102b9610be5565b34801561044557600080fd5b506102b9610454366004611f4f565b610c53565b34801561046557600080fd5b506102b96104743660046121af565b610c6e565b34801561048557600080fd5b50610234610ca1565b34801561049a57600080fd5b50610234610cb1565b3480156104af57600080fd5b506102b96104be3660046121af565b610cc1565b3480156104cf57600080fd5b5061028c6104de3660046121af565b610d59565b3480156104ef57600080fd5b506102f86104fe366004611ed9565b610d8e565b34801561050f57600080fd5b506102b9610dd2565b34801561052457600080fd5b5061028c610e1d565b34801561053957600080fd5b506102b96105483660046121cd565b610e2c565b34801561055957600080fd5b506102b96105683660046121af565b610ec4565b34801561057957600080fd5b5061025f610f27565b34801561058e57600080fd5b506102b961059d366004612015565b610f36565b3480156105ae57600080fd5b506102b96105bd366004611f9c565b610f48565b3480156105ce57600080fd5b5061025f6105dd3660046121af565b610f87565b3480156105ee57600080fd5b506105f761105a565b6040516102419190612d47565b34801561061057600080fd5b5061023461061f366004611f15565b611069565b34801561063057600080fd5b506102b961063f366004611ed9565b61111f565b60006001600160e01b031982166380ac58cd60e01b148061067557506001600160e01b03198216635b5e139f60e01b145b806106845750610684826111f2565b90505b919050565b60606000805461069b9061305f565b80601f01602080910402602001604051908101604052809291908181526020018280546106c79061305f565b80156107145780601f106106e957610100808354040283529160200191610714565b820191906000526020600020905b8154815290600101906020018083116106f757829003601f168201915b505050505090505b90565b600061072a8261120b565b61074f5760405162461bcd60e51b815260040161074690612e45565b60405180910390fd5b506000908152600460205260409020546001600160a01b031690565b600061077682610d59565b9050806001600160a01b0316836001600160a01b031614156107aa5760405162461bcd60e51b815260040161074690612e85565b806001600160a01b03166107bc611228565b6001600160a01b031614806107d857506107d88161061f611228565b6107f45760405162461bcd60e51b815260040161074690612e05565b6107fe8383611232565b505050565b60408051606081810183526001600160a01b0388166000818152600860209081529085902054845283015291810186905261084187828787876112a0565b61085d5760405162461bcd60e51b815260040161074690612e75565b6001600160a01b038716600090815260086020526040902054610881906001611346565b6001600160a01b0388166000908152600860205260409081902091909155517f5845892132946850460bff5a0083f71031bc5bf9aadcd40f1de79423eac9b10b906108d190899033908a90612c4c565b60405180910390a1600080306001600160a01b0316888a6040516020016108f9929190612b4c565b60408051601f198184030181529082905261091391612b40565b6000604051808303816000865af19150503d8060008114610950576040519150601f19603f3d011682016040523d82523d6000602084013e610955565b606091505b5091509150816109775760405162461bcd60e51b815260040161074690612d85565b925050505b95945050505050565b604051806040016040528060018152602001603160f81b81525081565b600060016109b0600a611359565b6109ba9190612fc0565b905090565b60075490565b6109d66109d0611228565b8261135d565b6109f25760405162461bcd60e51b815260040161074690612ea5565b6107fe8383836113da565b610a05611228565b6001600160a01b0316610a16610e1d565b6001600160a01b031614610a3c5760405162461bcd60e51b815260040161074690612e55565b600d8054911515600160a01b0260ff60a01b19909216919091179055565b610a62611228565b6001600160a01b0316610a73610e1d565b6001600160a01b031614610a995760405162461bcd60e51b815260040161074690612e55565b8051610aac90600c906020840190611d89565b5050565b6001600160a01b031660009081526008602052604090205490565b610ad3611228565b6001600160a01b0316610ae4610e1d565b6001600160a01b031614610b0a5760405162461bcd60e51b815260040161074690612e55565b8051610aac90600e906020840190611d89565b61051481565b4690565b610b2f611228565b6001600160a01b0316610b40610e1d565b6001600160a01b031614610b665760405162461bcd60e51b815260040161074690612e55565b600d8054911515600160a81b0260ff60a81b19909216919091179055565b610b8c611228565b6001600160a01b0316610b9d610e1d565b6001600160a01b031614610bc35760405162461bcd60e51b815260040161074690612e55565b600d80546001600160a01b0319166001600160a01b0392909216919091179055565b610bed611228565b6001600160a01b0316610bfe610e1d565b6001600160a01b031614610c245760405162461bcd60e51b815260040161074690612e55565b6040514790339082156108fc029083906000818181858888f19350505050158015610aac573d6000803e3d6000fd5b6107fe83838360405180602001604052806000815250610f48565b610c796109d0611228565b610c955760405162461bcd60e51b815260040161074690612eb5565b610c9e81611507565b50565b600d54600160a01b900460ff1681565b600d54600160a81b900460ff1681565b610cc9611228565b6001600160a01b0316610cda610e1d565b6001600160a01b031614610d005760405162461bcd60e51b815260040161074690612e55565b61051481610d0c6109a2565b610d169190612f33565b10610d335760405162461bcd60e51b815260040161074690612d95565b60005b81811015610aac57610d47336115ae565b80610d518161308c565b915050610d36565b6000818152600260205260408120546001600160a01b0316806106845760405162461bcd60e51b815260040161074690612e25565b60006001600160a01b038216610db65760405162461bcd60e51b815260040161074690612e15565b506001600160a01b031660009081526003602052604090205490565b610dda611228565b6001600160a01b0316610deb610e1d565b6001600160a01b031614610e115760405162461bcd60e51b815260040161074690612e55565b610e1b60006115d0565b565b6009546001600160a01b031690565b610e34611228565b6001600160a01b0316610e45610e1d565b6001600160a01b031614610e6b5760405162461bcd60e51b815260040161074690612e55565b61051482610e776109a2565b610e819190612f33565b10610e9e5760405162461bcd60e51b815260040161074690612d95565b60005b828110156107fe57610eb2826115ae565b80610ebc8161308c565b915050610ea1565b600d54600160a01b900460ff16610eed5760405162461bcd60e51b815260040161074690612d55565b610514610ef86109a2565b10610f155760405162461bcd60e51b815260040161074690612d95565b610f1e81611622565b610c9e336115ae565b60606001805461069b9061305f565b610aac610f41611228565b83836116b7565b610f59610f53611228565b8361135d565b610f755760405162461bcd60e51b815260040161074690612ea5565b610f818484848461175a565b50505050565b606060018210158015610f9c57506105148211155b610fb85760405162461bcd60e51b815260040161074690612db5565b600d54600160a81b900460ff16611028576000610ffe610fd78461178d565b600c604051602001610fea929190612bc2565b6040516020818303038152906040526118b0565b9050806040516020016110119190612c27565b604051602081830303815290604052915050610687565b600e6110338361178d565b604051602001611044929190612b6e565b6040516020818303038152906040529050610687565b600d546001600160a01b031681565b600b5460405163c455279160e01b81526000916001600160a01b039081169190841690829063c4552791906110a2908890600401612c3e565b60206040518083038186803b1580156110ba57600080fd5b505afa1580156110ce573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906110f2919061215c565b6001600160a01b0316141561110b576001915050611119565b6111158484611a13565b9150505b92915050565b611127611228565b6001600160a01b0316611138610e1d565b6001600160a01b03161461115e5760405162461bcd60e51b815260040161074690612e55565b6001600160a01b0381166111845760405162461bcd60e51b815260040161074690612d75565b610c9e816115d0565b80546001019055565b6000333014156111ed57600080368080601f0160208091040260200160405190810160405280939291908181526020018383808284376000920191909152505050503601516001600160a01b0316915061071c9050565b503390565b6001600160e01b031981166301ffc9a760e01b14919050565b6000908152600260205260409020546001600160a01b0316151590565b60006109ba611196565b600081815260046020526040902080546001600160a01b0319166001600160a01b038416908117909155819061126782610d59565b6001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b60006001600160a01b0386166112c85760405162461bcd60e51b815260040161074690612df5565b60016112db6112d687611a41565b611a9f565b838686604051600081526020016040526040516112fb9493929190612d0e565b6020604051602081039080840390855afa15801561131d573d6000803e3d6000fd5b505050602060405103516001600160a01b0316866001600160a01b031614905095945050505050565b60006113528284612f33565b9392505050565b5490565b60006113688261120b565b6113845760405162461bcd60e51b815260040161074690612de5565b600061138f83610d59565b9050806001600160a01b0316846001600160a01b031614806113ca5750836001600160a01b03166113bf8461071f565b6001600160a01b0316145b8061111557506111158185611069565b826001600160a01b03166113ed82610d59565b6001600160a01b0316146114135760405162461bcd60e51b815260040161074690612e65565b6001600160a01b0382166114395760405162461bcd60e51b815260040161074690612dc5565b6114448383836107fe565b61144f600082611232565b6001600160a01b0383166000908152600360205260408120805460019290611478908490612fc0565b90915550506001600160a01b03821660009081526003602052604081208054600192906114a6908490612f33565b909155505060008181526002602052604080822080546001600160a01b0319166001600160a01b0386811691821790925591518493918716917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91a4505050565b600061151282610d59565b9050611520816000846107fe565b61152b600083611232565b6001600160a01b0381166000908152600360205260408120805460019290611554908490612fc0565b909155505060008281526002602052604080822080546001600160a01b0319169055518391906001600160a01b038416907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908390a45050565b60006115ba600a611359565b90506115c6600a61118d565b610aac8282611abb565b600980546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b3361162c82611ad5565b6001600160a01b0316146116525760405162461bcd60e51b815260040161074690612e95565b600d5460405163548a531360e11b81526001600160a01b039091169063a914a62690611682908490600401612ccb565b600060405180830381600087803b15801561169c57600080fd5b505af11580156116b0573d6000803e3d6000fd5b5050505050565b816001600160a01b0316836001600160a01b031614156116e95760405162461bcd60e51b815260040161074690612dd5565b6001600160a01b0383811660008181526005602090815260408083209487168084529490915290819020805460ff1916851515179055517f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c319061174d908590612cbd565b60405180910390a3505050565b6117658484846113da565b61177184848484611b56565b610f815760405162461bcd60e51b815260040161074690612d65565b6060816117b257506040805180820190915260018152600360fc1b6020820152610687565b8160005b81156117dc57806117c68161308c565b91506117d59050600a83612f61565b91506117b6565b60008167ffffffffffffffff81111561180557634e487b7160e01b600052604160045260246000fd5b6040519080825280601f01601f19166020018201604052801561182f576020820181803683370190505b5090505b84156118a857611844600183612fc0565b9150611851600a866130c3565b61185c906030612f33565b60f81b81838151811061187f57634e487b7160e01b600052603260045260246000fd5b60200101906001600160f81b031916908160001a9053506118a1600a86612f61565b9450611833565b949350505050565b60608151600014156118d15750604080516020810190915260008152610687565b60006040518060600160405280604081526020016131da60409139905060006003845160026119009190612f33565b61190a9190612f61565b611915906004612f8b565b67ffffffffffffffff81111561193b57634e487b7160e01b600052604160045260246000fd5b6040519080825280601f01601f191660200182016040528015611965576020820181803683370190505b509050600182016020820185865187015b808210156119d1576003820191508151603f8160121c168501518453600184019350603f81600c1c168501518453600184019350603f8160061c168501518453600184019350603f8116850151845360018401935050611976565b50506003865106600181146119ed5760028114611a0057611a08565b603d6001830353603d6002830353611a08565b603d60018303535b509195945050505050565b6001600160a01b03918216600090815260056020908152604080832093909416825291909152205460ff1690565b60006040518060800160405280604381526020016131976043913980516020918201208351848301516040808701518051908601209051611a829501612cd9565b604051602081830303815290604052805190602001209050919050565b6000611aa96109bf565b82604051602001611a82929190612b91565b610aac828260405180602001604052806000815250611c71565b600d546040516331a9108f60e11b81526000916001600160a01b031690636352211e90611b06908590600401612ccb565b60206040518083038186803b158015611b1e57600080fd5b505afa158015611b32573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906106849190611ef7565b6000611b6a846001600160a01b0316611ca4565b15611c6657836001600160a01b031663150b7a02611b86611228565b8786866040518563ffffffff1660e01b8152600401611ba89493929190612c79565b602060405180830381600087803b158015611bc257600080fd5b505af1925050508015611bf2575060408051601f3d908101601f19168201909252611bef9181019061213e565b60015b611c4c573d808015611c20576040519150601f19603f3d011682016040523d82523d6000602084013e611c25565b606091505b508051611c445760405162461bcd60e51b815260040161074690612d65565b805181602001fd5b6001600160e01b031916630a85bd0160e11b1490506118a8565b506001949350505050565b611c7b8383611caa565b611c886000848484611b56565b6107fe5760405162461bcd60e51b815260040161074690612d65565b3b151590565b6001600160a01b038216611cd05760405162461bcd60e51b815260040161074690612e35565b611cd98161120b565b15611cf65760405162461bcd60e51b815260040161074690612da5565b611d02600083836107fe565b6001600160a01b0382166000908152600360205260408120805460019290611d2b908490612f33565b909155505060008181526002602052604080822080546001600160a01b0319166001600160a01b03861690811790915590518392907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b828054611d959061305f565b90600052602060002090601f016020900481019282611db75760008555611dfd565b82601f10611dd057805160ff1916838001178555611dfd565b82800160010185558215611dfd579182015b82811115611dfd578251825591602001919060010190611de2565b50611e09929150611e0d565b5090565b5b80821115611e095760008155600101611e0e565b6000611e35611e3084612eef565b612ec5565b905082815260208101848484011115611e4d57600080fd5b611e58848285613027565b509392505050565b803561111981613155565b805161111981613155565b803561111981613169565b803561111981613172565b80356111198161317b565b80516111198161317b565b600082601f830112611eb357600080fd5b8135611115848260208601611e22565b805161111981613184565b80356111198161318d565b600060208284031215611eeb57600080fd5b60006111158484611e60565b600060208284031215611f0957600080fd5b60006111158484611e6b565b60008060408385031215611f2857600080fd5b6000611f348585611e60565b9250506020611f4585828601611e60565b9150509250929050565b600080600060608486031215611f6457600080fd5b6000611f708686611e60565b9350506020611f8186828701611e60565b9250506040611f9286828701611e81565b9150509250925092565b60008060008060808587031215611fb257600080fd5b6000611fbe8787611e60565b9450506020611fcf87828801611e60565b9350506040611fe087828801611e81565b925050606085013567ffffffffffffffff811115611ffd57600080fd5b61200987828801611ea2565b91505092959194509250565b6000806040838503121561202857600080fd5b60006120348585611e60565b9250506020611f4585828601611e76565b600080600080600060a0868803121561205d57600080fd5b60006120698888611e60565b955050602086013567ffffffffffffffff81111561208657600080fd5b61209288828901611ea2565b94505060406120a388828901611e81565b93505060606120b488828901611e81565b92505060806120c588828901611ece565b9150509295509295909350565b600080604083850312156120e557600080fd5b60006120f18585611e60565b9250506020611f4585828601611e81565b60006020828403121561211457600080fd5b60006111158484611e76565b60006020828403121561213257600080fd5b60006111158484611e8c565b60006020828403121561215057600080fd5b60006111158484611e97565b60006020828403121561216e57600080fd5b60006111158484611ec3565b60006020828403121561218c57600080fd5b813567ffffffffffffffff8111156121a357600080fd5b61111584828501611ea2565b6000602082840312156121c157600080fd5b60006111158484611e81565b600080604083850312156121e057600080fd5b6000611f348585611e81565b6121f581612fed565b82525050565b6121f561220782612fed565b6130b2565b6121f581612ff8565b6121f58161071c565b6121f561222a8261071c565b61071c565b600061223a82612f26565b6122448185612f2a565b9350612254818560208601613033565b61225d81613145565b9093019392505050565b600061227282612f26565b61227c8185610687565b935061228c818560208601613033565b9290920192915050565b6121f58161300a565b600081546122ac8161305f565b6122b68186610687565b94506001821680156122cf57600181146122e057612310565b60ff19831686528186019350612310565b6122e985612f1a565b60005b83811015612308578154888201526001909101906020016122ec565b838801955050505b50505092915050565b6000612326601d83612f2a565b7f4d7573742062652061637469766520746f206d696e7420746f6b656e73000000815260200192915050565b600061235f603283612f2a565b7f4552433732313a207472616e7366657220746f206e6f6e20455243373231526581527131b2b4bb32b91034b6b83632b6b2b73a32b960711b602082015260400192915050565b60006123b3602683612f2a565b7f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206181526564647265737360d01b602082015260400192915050565b60006123fb600283610687565b61088b60f21b815260020192915050565b6000612419601c83612f2a565b7f46756e6374696f6e2063616c6c206e6f74207375636365737366756c00000000815260200192915050565b6000612452602083612f2a565b7f507572636861736520776f756c6420657863656564206d617820746f6b656e73815260200192915050565b600061248b601c83612f2a565b7f4552433732313a20746f6b656e20616c7265616479206d696e74656400000000815260200192915050565b60006124c4600283610687565b61190160f01b815260020192915050565b60006124e2601583612f2a565b744e6f742076616c696420746f6b656e2072616e676560581b815260200192915050565b6000612513600983610687565b6803d913730b6b2911d160bd1b815260090192915050565b6000612538601183610687565b7022447265616d204f66666572696e67202360781b815260110192915050565b6000612565602483612f2a565b7f4552433732313a207472616e7366657220746f20746865207a65726f206164648152637265737360e01b602082015260400192915050565b60006125ab601983612f2a565b7f4552433732313a20617070726f766520746f2063616c6c657200000000000000815260200192915050565b60006125e4604183610687565b7f226465736372697074696f6e223a20224120646f6f72776179206f70656e696e81527f6720696e746f20616e6f74686572206379636c65206f66206c6966652e2e2e226020820152600b60fa1b604082015260410192915050565b600061264d602c83612f2a565b7f4552433732313a206f70657261746f7220717565727920666f72206e6f6e657881526b34b9ba32b73a103a37b5b2b760a11b602082015260400192915050565b600061269b602583612f2a565b7f4e61746976654d6574615472616e73616374696f6e3a20494e56414c49445f5381526424a3a722a960d91b602082015260400192915050565b60006126e2603883612f2a565b7f4552433732313a20617070726f76652063616c6c6572206973206e6f74206f7781527f6e6572206e6f7220617070726f76656420666f7220616c6c0000000000000000602082015260400192915050565b6000612741602a83612f2a565b7f4552433732313a2062616c616e636520717565727920666f7220746865207a65815269726f206164647265737360b01b602082015260400192915050565b600061278d602983612f2a565b7f4552433732313a206f776e657220717565727920666f72206e6f6e657869737481526832b73a103a37b5b2b760b91b602082015260400192915050565b60006127d8600283610687565b61227d60f01b815260020192915050565b60006127f6602083612f2a565b7f4552433732313a206d696e7420746f20746865207a65726f2061646472657373815260200192915050565b600061282f602c83612f2a565b7f4552433732313a20617070726f76656420717565727920666f72206e6f6e657881526b34b9ba32b73a103a37b5b2b760a11b602082015260400192915050565b600061287d600583610687565b64173539b7b760d91b815260050192915050565b600061289e602083612f2a565b7f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572815260200192915050565b60006128d7602983612f2a565b7f4552433732313a207472616e73666572206f6620746f6b656e2074686174206981526839903737ba1037bbb760b91b602082015260400192915050565b6000612922602183612f2a565b7f5369676e657220616e64207369676e617475726520646f206e6f74206d6174638152600d60fb1b602082015260400192915050565b6000612965602183612f2a565b7f4552433732313a20617070726f76616c20746f2063757272656e74206f776e658152603960f91b602082015260400192915050565b60006129a8601d83610687565b7f646174613a6170706c69636174696f6e2f6a736f6e3b6261736536342c0000008152601d0192915050565b60006129e1601783612f2a565b7f6e6f74206f776e6572206f6620647265616d2073656564000000000000000000815260200192915050565b6000612a1a603183612f2a565b7f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f8152701ddb995c881b9bdc88185c1c1c9bdd9959607a1b602082015260400192915050565b6000612a6d600a83610687565b691134b6b0b3b2911d101160b11b8152600a0192915050565b6000612a93603d83610687565b7f2261747472696275746573223a5b7b2274726169745f74797065223a2253746181527f747573222c202276616c7565223a22556e72657665616c6564227d5d2c0000006020820152603d0192915050565b6000612af2603083612f2a565b7f4552433732314275726e61626c653a2063616c6c6572206973206e6f74206f7781526f1b995c881b9bdc88185c1c1c9bdd995960821b602082015260400192915050565b6121f581613021565b60006113528284612267565b6000612b588285612267565b9150612b6482846121fb565b5060140192915050565b6000612b7a828561229f565b9150612b868284612267565b91506118a882612870565b6000612b9c826124b7565b9150612ba8828561221e565b602082019150612bb8828461221e565b5060200192915050565b6000612bcd82612506565b9150612bd88261252b565b9150612be48285612267565b9150612bef826123ee565b9150612bfa826125d7565b9150612c0582612a86565b9150612c1082612a60565b9150612c1c828461229f565b91506118a8826127cb565b6000612c328261299b565b91506113528284612267565b6020810161111982846121ec565b60608101612c5a82866121ec565b612c6760208301856121ec565b818103604083015261097c818461222f565b60808101612c8782876121ec565b612c9460208301866121ec565b612ca16040830185612215565b8181036060830152612cb3818461222f565b9695505050505050565b60208101611119828461220c565b602081016111198284612215565b60808101612ce78287612215565b612cf46020830186612215565b612d0160408301856121ec565b61097c6060830184612215565b60808101612d1c8287612215565b612d296020830186612b37565b612d016040830185612215565b60208082528101611352818461222f565b602081016111198284612296565b6020808252810161068481612319565b6020808252810161068481612352565b60208082528101610684816123a6565b602080825281016106848161240c565b6020808252810161068481612445565b602080825281016106848161247e565b60208082528101610684816124d5565b6020808252810161068481612558565b602080825281016106848161259e565b6020808252810161068481612640565b602080825281016106848161268e565b60208082528101610684816126d5565b6020808252810161068481612734565b6020808252810161068481612780565b60208082528101610684816127e9565b6020808252810161068481612822565b6020808252810161068481612891565b60208082528101610684816128ca565b6020808252810161068481612915565b6020808252810161068481612958565b60208082528101610684816129d4565b6020808252810161068481612a0d565b6020808252810161068481612ae5565b60405181810167ffffffffffffffff81118282101715612ee757612ee761312f565b604052919050565b600067ffffffffffffffff821115612f0957612f0961312f565b506020601f91909101601f19160190565b60009081526020902090565b5190565b90815260200190565b6000612f3e8261071c565b9150612f498361071c565b92508219821115612f5c57612f5c6130ed565b500190565b6000612f6c8261071c565b9150612f778361071c565b925082612f8657612f86613103565b500490565b6000612f968261071c565b9150612fa18361071c565b9250816000190483118215151615612fbb57612fbb6130ed565b500290565b6000612fcb8261071c565b9150612fd68361071c565b925082821015612fe857612fe86130ed565b500390565b600061068482613015565b151590565b6001600160e01b03191690565b600061068482612fed565b6001600160a01b031690565b60ff1690565b82818337506000910152565b60005b8381101561304e578181015183820152602001613036565b83811115610f815750506000910152565b60028104600182168061307357607f821691505b6020821081141561308657613086613119565b50919050565b60006130978261071c565b91506000198214156130ab576130ab6130ed565b5060010190565b60006106848260006106848261314f565b60006130ce8261071c565b91506130d98361071c565b9250826130e8576130e8613103565b500690565b634e487b7160e01b600052601160045260246000fd5b634e487b7160e01b600052601260045260246000fd5b634e487b7160e01b600052602260045260246000fd5b634e487b7160e01b600052604160045260246000fd5b601f01601f191690565b60601b90565b61315e81612fed565b8114610c9e57600080fd5b61315e81612ff8565b61315e8161071c565b61315e81612ffd565b61315e8161300a565b61315e8161302156fe4d6574615472616e73616374696f6e2875696e74323536206e6f6e63652c616464726573732066726f6d2c62797465732066756e6374696f6e5369676e6174757265294142434445464748494a4b4c4d4e4f505152535455565758595a6162636465666768696a6b6c6d6e6f707172737475767778797a303132333435363738392b2fa2646970667358221220ecf05fee5199c1694ca5e8c2771908d524d00305427caf88aaf2204ecb4111ad64736f6c63430008000033
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.