ERC-721
NFT
Overview
Max Total Supply
3,333 Unifriends
Holders
622
Market
Volume (24H)
N/A
Min Price (24H)
N/A
Max Price (24H)
N/A
Other Info
Token Contract
Balance
2 UnifriendsLoading...
Loading
Loading...
Loading
Loading...
Loading
# | Exchange | Pair | Price | 24H Volume | % Volume |
---|
This contract may be a proxy contract. Click on More Options and select Is this a proxy? to confirm and enable the "Read as Proxy" & "Write as Proxy" tabs.
Contract Name:
Unifriends
Compiler Version
v0.8.9+commit.e5eed63a
Optimization Enabled:
Yes with 1000 runs
Other Settings:
default evmVersion
Contract Source Code (Solidity Standard Json-Input format)
// SPDX-License-Identifier: MIT pragma solidity ^0.8.9; /************************************************** * * . . . . * ,`,`,`,`, * . . . . `\`\`\`\; * `\`\`\`\`, ~|;!;!;\! * ~\;\;\;\|\ (--,!!!~`! . * (--,\\\===~\ (--,|||~`! ./ * (--,\\\===~\ `,-,~,=,:. _,// * (--,\\\==~`\ ~-=~-.---|\;/J, * (--,\\\((```==. ~'`~/ a | * (-,.\\('('(`\\. ~'=~| \_. \ * (,--(,(,(,'\\. ~'=| \\_;> * (,-( ,(,(,;\\ ~=/ \ * (,-/ (.(.(,;\\,/ ) * (,--/,;,;,;,\\ ./------. * (==,-;-'`;' /_,----`. \ * ,.--_,__.-' `--. ` \ * (='~-_,--/ , ,!,___--. \ \_) * (-/~( | \ ,_- | ) /_| * (~/((\ )\._, |-' _,/ / * \\)))) / ./~. | \_\; * ,__///// / / ) / * '===~' | | (, <. * / / \. \ * _/ / \_\ * /_!/ >_\ * ------------------------------------------------ * * Unifriends NFT * https://unifriends.io * Developed By: @sbmitchell.eth * **************************************************/ import "@openzeppelin/contracts/utils/cryptography/MerkleProof.sol"; import "@openzeppelin/contracts/access/Ownable.sol"; import "base64-sol/base64.sol"; import "./UnifriendsRenderer.sol"; import "./ERC721Enumerable.sol"; contract OwnableDelegateProxy {} contract OpenSeaProxyRegistry { mapping(address => OwnableDelegateProxy) public proxies; } contract Unifriends is ERC721Enumerable, Ownable { using UnifriendsRenderer for *; string constant NAME = "Unifriends"; string constant SYMBOL = "Unifriends"; uint256 public constant MAX_PER_TX = 11; uint256 public constant whitelistPriceInWei = 0.069420 ether; uint256 public publicPriceInWei = 0.1337 ether; string public baseURI; string public animationURI; address public proxyRegistryAddress; address public treasury; bytes32 public whitelistMerkleRoot; uint256 public maxSupply; uint256 public reserves = 251; uint256 mintNonce = 0; bool public isRevealed = false; mapping(address => bool) public projectProxy; mapping(address => uint256) public addressToMinted; mapping(uint256 => uint256) public tokenIdToRandomNumber; constructor( string memory _baseURI, string memory _animationURI, address _proxyRegistryAddress, address _treasury ) ERC721(NAME, SYMBOL) { baseURI = _baseURI; animationURI = _animationURI; proxyRegistryAddress = _proxyRegistryAddress; treasury = payable(_treasury); } /* Derives a leaf node for the merkle tree which aligns w/ the algorithm off-chain to derive merkle root */ function _toLeaf(address _address, uint256 _allowance) internal pure returns (bytes32) { return keccak256( abi.encodePacked( string(abi.encodePacked(_address)), Strings.toString(_allowance) ) ); } /* Mint a unifriend NFT w/ pseudo-randomness - Basis mint was 53k gas but added seeds mapping which increased gas to ~80-85k - Chainlink VRF was initially implemented but drove mint costs from 80k -> 170k gas which we found unacceptable for this use case Note: We will use provably random in longer lasting contracts involving game mechanics - `tokenIdToRandomNumber` stores a random number to tokenId to use a basis for tokenURI rendering Avg gas limit for public mint ~85-90k Avg gas limit for whitelist mint ~120k due to merkle proof */ function _mint(address to, uint256 tokenId) internal virtual override { require(!_exists(tokenId), "Token already minted"); mintNonce++; _owners.push(to); tokenIdToRandomNumber[tokenId] = pseudorandom(to, tokenId); emit Transfer(address(0), to, tokenId); } function setPublicPriceInWei(uint256 _publicPriceInWei) public onlyOwner { publicPriceInWei = _publicPriceInWei; } function setTreasury(address _treasury) public onlyOwner { treasury = payable(_treasury); } function setReserves(uint256 _reserves) public onlyOwner { reserves = _reserves; } function setBaseURI(string memory _baseURI) public onlyOwner { baseURI = _baseURI; } function toggleRevealed() public onlyOwner { isRevealed = !isRevealed; } function setAnimationURI(string memory _animationURI) public onlyOwner { animationURI = _animationURI; } function setProxyRegistryAddress(address _proxyRegistryAddress) external onlyOwner { proxyRegistryAddress = _proxyRegistryAddress; } function setWhitelistMerkleRoot(bytes32 _whitelistMerkleRoot) external onlyOwner { whitelistMerkleRoot = _whitelistMerkleRoot; } function flipProxyState(address proxyAddress) public onlyOwner { projectProxy[proxyAddress] = !projectProxy[proxyAddress]; } function togglePublicSale(uint256 _maxSupply) external onlyOwner { delete whitelistMerkleRoot; maxSupply = _maxSupply; } function preRevealMetadata() internal view returns (string memory) { return string( abi.encodePacked( "data:application/json;base64,", Base64.encode( bytes( abi.encodePacked( "{", UnifriendsRenderer.toJSONProperty( "name", "Hidden" ), ",", '"attributes": []', ",", UnifriendsRenderer.toJSONProperty( "image", baseURI ), ",", UnifriendsRenderer.toJSONProperty( "external_url", baseURI ), ",", UnifriendsRenderer.toJSONProperty( "animation_url", baseURI ), "}" ) ) ) ) ); } /* Derived on-chain metadata based on randomness seed Returns a base64 encoded json string `image` asset will still live in IPFS based on `baseURI` set `attributes` are derived based on seed within the `UnifriendsRenderer` library */ function tokenURI(uint256 tokenId) public view override returns (string memory) { require(_exists(tokenId), "Token does not exist."); if (!isRevealed) { return preRevealMetadata(); } return UnifriendsRenderer.base64TokenURI( tokenId, baseURI, animationURI, tokenIdToRandomNumber[tokenId] ); } /* Founder and legendary collection Can only run before whitelist sale First 10 -> legndaries which will be distributed via DAO or as giveaways 10-110 -> Giveaways/Gifted NFTs for first 100 based on collabs and discord contests 110-250 -> Team, mods, etc */ function collectReserves(uint256 amount) external onlyOwner { require(_owners.length + amount < reserves, "Reserves already taken."); uint256 totalSupply = _owners.length; for (uint256 i = 0; i < amount; i++) { _mint(_msgSender(), totalSupply + i); } } /* Whitelist sale - only valid with merkle tree root set Avg gas limit for public mint ~120k-130k due to merkle proof */ function whitelistMint( uint256 count, uint256 allowance, bytes32[] calldata proof ) public payable { require( count * whitelistPriceInWei == msg.value, "Invalid funds provided." ); require( MerkleProof.verify( proof, whitelistMerkleRoot, _toLeaf(_msgSender(), allowance) ), "Invalid Merkle Tree proof supplied." ); require( addressToMinted[_msgSender()] + count <= allowance, "Exceeds whitelist supply." ); addressToMinted[_msgSender()] += count; uint256 totalSupply = _owners.length; for (uint256 i; i < count; i++) { _mint(_msgSender(), totalSupply + i); } } /* Public sale - only valid after whitelist sale is complete Avg gas limit for public mint ~85-90k */ function publicMint(uint256 count) public payable { uint256 totalSupply = _owners.length; require(totalSupply + count < maxSupply, "Excedes max supply."); require(count < MAX_PER_TX, "Exceeds max per transaction."); require( count * publicPriceInWei == msg.value, "Invalid funds provided." ); for (uint256 i; i < count; i++) { _mint(_msgSender(), totalSupply + i); } } function burn(uint256 tokenId) public { require( _isApprovedOrOwner(_msgSender(), tokenId), "Not approved to burn." ); _burn(tokenId); } function withdraw() public onlyOwner { (bool success, ) = treasury.call{value: address(this).balance}(""); require(success, "Failed to send to treasury."); } function walletOfOwner(address _owner) public view returns (uint256[] memory) { uint256 tokenCount = balanceOf(_owner); if (tokenCount == 0) return new uint256[](0); uint256[] memory tokensId = new uint256[](tokenCount); for (uint256 i; i < tokenCount; i++) { tokensId[i] = tokenOfOwnerByIndex(_owner, i); } return tokensId; } function batchTransferFrom( address _from, address _to, uint256[] memory _tokenIds ) public { for (uint256 i = 0; i < _tokenIds.length; i++) { transferFrom(_from, _to, _tokenIds[i]); } } function batchSafeTransferFrom( address _from, address _to, uint256[] memory _tokenIds, bytes memory data_ ) public { for (uint256 i = 0; i < _tokenIds.length; i++) { safeTransferFrom(_from, _to, _tokenIds[i], data_); } } function isOwnerOf(address account, uint256[] calldata _tokenIds) external view returns (bool) { for (uint256 i; i < _tokenIds.length; ++i) { if (_owners[_tokenIds[i]] != account) return false; } return true; } /* OS Pre-approvals and future project integration approvals for extensibility */ function isApprovedForAll(address _owner, address operator) public view override returns (bool) { OpenSeaProxyRegistry proxyRegistry = OpenSeaProxyRegistry( proxyRegistryAddress ); if ( address(proxyRegistry.proxies(_owner)) == operator || projectProxy[operator] ) return true; return super.isApprovedForAll(_owner, operator); } /* * Random enough for all intents and purposes of this NFT * I would be more concerned if it were more of a recurring lottery. */ function pseudorandom(address to, uint256 tokenId) private view returns (uint256) { return uint256( keccak256( abi.encodePacked( block.difficulty, block.timestamp, to, Strings.toString(mintNonce), Strings.toString(tokenId) ) ) ); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.5.0) (utils/cryptography/MerkleProof.sol) pragma solidity ^0.8.0; /** * @dev These functions deal with verification of Merkle Trees proofs. * * The proofs can be generated using the JavaScript library * https://github.com/miguelmota/merkletreejs[merkletreejs]. * Note: the hashing algorithm should be keccak256 and pair sorting should be enabled. * * See `test/utils/cryptography/MerkleProof.test.js` for some examples. */ library MerkleProof { /** * @dev Returns true if a `leaf` can be proved to be a part of a Merkle tree * defined by `root`. For this, a `proof` must be provided, containing * sibling hashes on the branch from the leaf to the root of the tree. Each * pair of leaves and each pair of pre-images are assumed to be sorted. */ function verify( bytes32[] memory proof, bytes32 root, bytes32 leaf ) internal pure returns (bool) { return processProof(proof, leaf) == root; } /** * @dev Returns the rebuilt hash obtained by traversing a Merklee tree up * from `leaf` using `proof`. A `proof` is valid if and only if the rebuilt * hash matches the root of the tree. When processing the proof, the pairs * of leafs & pre-images are assumed to be sorted. * * _Available since v4.4._ */ function processProof(bytes32[] memory proof, bytes32 leaf) internal pure returns (bytes32) { bytes32 computedHash = leaf; for (uint256 i = 0; i < proof.length; i++) { bytes32 proofElement = proof[i]; if (computedHash <= proofElement) { // Hash(current computed hash + current element of the proof) computedHash = _efficientHash(computedHash, proofElement); } else { // Hash(current element of the proof + current computed hash) computedHash = _efficientHash(proofElement, computedHash); } } return computedHash; } function _efficientHash(bytes32 a, bytes32 b) private pure returns (bytes32 value) { assembly { mstore(0x00, a) mstore(0x20, b) value := keccak256(0x00, 0x40) } } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (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 pragma solidity >=0.6.0; /// @title Base64 /// @author Brecht Devos - <[email protected]> /// @notice Provides functions for encoding/decoding base64 library Base64 { string internal constant TABLE_ENCODE = 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/'; bytes internal constant TABLE_DECODE = hex"0000000000000000000000000000000000000000000000000000000000000000" hex"00000000000000000000003e0000003f3435363738393a3b3c3d000000000000" hex"00000102030405060708090a0b0c0d0e0f101112131415161718190000000000" hex"001a1b1c1d1e1f202122232425262728292a2b2c2d2e2f303132330000000000"; function encode(bytes memory data) internal pure returns (string memory) { if (data.length == 0) return ''; // load the table into memory string memory table = TABLE_ENCODE; // multiply by 4/3 rounded up uint256 encodedLen = 4 * ((data.length + 2) / 3); // add some extra buffer at the end required for the writing string memory result = new string(encodedLen + 32); assembly { // set the actual output length mstore(result, encodedLen) // prepare the lookup table let tablePtr := add(table, 1) // input ptr let dataPtr := data let endPtr := add(dataPtr, mload(data)) // result ptr, jump over length let resultPtr := add(result, 32) // run over the input, 3 bytes at a time for {} lt(dataPtr, endPtr) {} { // read 3 bytes dataPtr := add(dataPtr, 3) let input := mload(dataPtr) // write 4 characters mstore8(resultPtr, mload(add(tablePtr, and(shr(18, input), 0x3F)))) resultPtr := add(resultPtr, 1) mstore8(resultPtr, mload(add(tablePtr, and(shr(12, input), 0x3F)))) resultPtr := add(resultPtr, 1) mstore8(resultPtr, mload(add(tablePtr, and(shr( 6, input), 0x3F)))) resultPtr := add(resultPtr, 1) mstore8(resultPtr, mload(add(tablePtr, and( input, 0x3F)))) resultPtr := add(resultPtr, 1) } // padding with '=' switch mod(mload(data), 3) case 1 { mstore(sub(resultPtr, 2), shl(240, 0x3d3d)) } case 2 { mstore(sub(resultPtr, 1), shl(248, 0x3d)) } } return result; } function decode(string memory _data) internal pure returns (bytes memory) { bytes memory data = bytes(_data); if (data.length == 0) return new bytes(0); require(data.length % 4 == 0, "invalid base64 decoder input"); // load the table into memory bytes memory table = TABLE_DECODE; // every 4 characters represent 3 bytes uint256 decodedLen = (data.length / 4) * 3; // add some extra buffer at the end required for the writing bytes memory result = new bytes(decodedLen + 32); assembly { // padding with '=' let lastBytes := mload(add(data, mload(data))) if eq(and(lastBytes, 0xFF), 0x3d) { decodedLen := sub(decodedLen, 1) if eq(and(lastBytes, 0xFFFF), 0x3d3d) { decodedLen := sub(decodedLen, 1) } } // set the actual output length mstore(result, decodedLen) // prepare the lookup table let tablePtr := add(table, 1) // input ptr let dataPtr := data let endPtr := add(dataPtr, mload(data)) // result ptr, jump over length let resultPtr := add(result, 32) // run over the input, 4 characters at a time for {} lt(dataPtr, endPtr) {} { // read 4 characters dataPtr := add(dataPtr, 4) let input := mload(dataPtr) // write 3 bytes let output := add( add( shl(18, and(mload(add(tablePtr, and(shr(24, input), 0xFF))), 0xFF)), shl(12, and(mload(add(tablePtr, and(shr(16, input), 0xFF))), 0xFF))), add( shl( 6, and(mload(add(tablePtr, and(shr( 8, input), 0xFF))), 0xFF)), and(mload(add(tablePtr, and( input , 0xFF))), 0xFF) ) ) mstore(resultPtr, shl(232, output)) resultPtr := add(resultPtr, 3) } } return result; } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.9; /************************************************** * * Unifriends NFT * https://unifriends.io * Developed By: @sbmitchell.eth * **************************************************/ import "@openzeppelin/contracts/utils/Strings.sol"; import "base64-sol/base64.sol"; library UnifriendsRenderer { struct Traits { string wearable; string skin; string item; string horn; string hair; string eyes; string background; } struct Unifriend { uint256 strength; uint256 speed; uint256 intelligence; string name; string description; bool isLegendary; Traits trait; } function toJSONProperty(string memory key, string memory value) public pure returns (string memory) { return string(abi.encodePacked('"', key, '" : "', value, '"')); } function getLegendary(uint256 tokenId) internal pure returns (Unifriend memory) { Traits memory trait; if (tokenId == 0) { return Unifriend({ strength: 92, speed: 92, intelligence: 98, name: "Dr. X", description: "Dr. X is pure evil. The antithesis of the genesis unicorns and Unifriends. The meticulous planning with unparalleled genius make Dr. X a complex and difficult adversary for the Unifriends.", isLegendary: true, trait: trait }); } else if (tokenId == 1) { return Unifriend({ strength: 90, speed: 99, intelligence: 91, name: "Cyber Pegasus", description: "They got a second chance at life. From not being able to walk or fly they have beccome the fastest wings in the entire metaverse.", isLegendary: true, trait: trait }); } else if (tokenId == 2) { return Unifriend({ strength: 94, speed: 93, intelligence: 95, name: "Uni-Force General", description: "A strategic and battle-hardened unifriend. The General protects the metaverse and ensures stability.", isLegendary: true, trait: trait }); } else if (tokenId == 3) { return Unifriend({ strength: 94, speed: 93, intelligence: 97, name: "King Bastion", description: "King Bastion is the oldest and wisest unifriend in the galaxy. Always in gold he shines and rules the metaverse.", isLegendary: true, trait: trait }); } else if (tokenId == 4) { return Unifriend({ strength: 92, speed: 93, intelligence: 96, name: "Queen Bastion", description: "Queen Bastion is the smartest unifriend in the metaverse. Her unique kinetic aura keeps the metaverse at peace.", isLegendary: true, trait: trait }); } else if (tokenId == 5) { return Unifriend({ strength: 94, speed: 93, intelligence: 92, name: "Mutated Uni", description: "This unifriend was engulfed by toxic slime during an epic battle. They emerged out of a cocoon as a mutated unicorn.", isLegendary: true, trait: trait }); } else if (tokenId == 6) { return Unifriend({ strength: 98, speed: 96, intelligence: 95, name: "Shadow Uni", description: "The darkest unicorn in the metaverse. A black hole dweller, isolated, but free.", isLegendary: true, trait: trait }); } else if (tokenId == 7) { return Unifriend({ strength: 93, speed: 93, intelligence: 93, name: "Uni Bot", description: "He is mech robot of the metaverse. Cunning intellect and perfect posture.", isLegendary: true, trait: trait }); } else if (tokenId == 8) { return Unifriend({ strength: 95, speed: 93, intelligence: 92, name: "Experiment 73", description: "An escapee from Dr. X's lab. They are one of the strongest and most devious inhabitors of he metaverse.", isLegendary: true, trait: trait }); } else if (tokenId == 9) { return Unifriend({ strength: 93, speed: 97, intelligence: 94, name: "Spurr", description: "The loner that's never around. Her name is Spurr, she is fast, witted and always secretly up to no good.", isLegendary: true, trait: trait }); } } function getUnifriendProperties(uint256 tokenId, uint256 randomness) internal pure returns (Unifriend memory) { // 10 Legendaries if (tokenId < 10) { return getLegendary(tokenId); } else { Traits memory trait; string[356] memory GROUPS = [ // WEARABLES - 44 // Common 4x // 28 "Bandana", "Bandana", "Bandana", "Bandana", "Dog Collar Red", "Dog Collar Red", "Dog Collar Red", "Dog Collar Blue", "Dog Collar Blue", "Dog Collar Blue", "Neon Collar Pink", "Neon Collar Pink", "Neon Collar Pink", "Glass Collar", "Glass Collar", "Glass Collar", "Chain Collar", "Chain Collar", "Chain Collar", "Spiked Chain Collar", "Spiked Chain Collar", "Spiked Chain Collar", "Tshirt Red", "Tshirt Red", "Tshirt Red", "Vynil Bandana", "Vynil Bandana", "Vynil Bandana", // Rare 2x // 12 "Tactical Vest", "Tactical Vest", "Gold Collar", "Gold Collar", "Tshirt Blue", "Tshirt Blue", "Chalk Collar", "Chalk Collar", "Neon Collar Green", "Neon Collar Green", "Spiked Collar Purple", "Spiked Collar Purple", // Super Rare 1x // 4 "Headphones", "Headphones Red", "Cyberpunk Collar", "Tactical Vest Red", // ITEMS - 55 // Common 4x // 40 "Fishing Rod", "Fishing Rod", "Fishing Rod", "Fishing Rod", "Mug", "Mug", "Mug", "Mug", "Dumbell", "Dumbell", "Dumbell", "Dumbell", "Camera", "Camera", "Camera", "Camera", "Keyboard", "Keyboard", "Keyboard", "Keyboard", "Football", "Football", "Football", "Football", "Pencil and Paper", "Pencil and Paper", "Pencil and Paper", "Pencil and Paper", "Phone", "Phone", "Phone", "Phone", "Soccer Ball", "Soccer Ball", "Soccer Ball", "Soccer Ball", "Tablet", "Tablet", "Tablet", "Tablet", // Rare 2x // 12 "Popcorn", "Popcorn", "Test Tube", "Test Tube", "Glizzy", "Glizzy", "Laptop", "Laptop", "Selfie Stick", "Selfie Stick", "Spray Can", "Spray Can", // Super Rare 1x // 3 "Drone", "Controller", "Sword", // SKINS - 71 // Common 3x // 48 "Concrete Black Skin", "Concrete Black Skin", "Concrete Black Skin", "Black Skin", "Black Skin", "Black Skin", "Brown Skin", "Brown Skin", "Brown Skin", "Gold Skin", "Gold Skin", "Gold Skin", "Dino Red Skin", "Dino Red Skin", "Dino Red Skin", "Purple Skin", "Purple Skin", "Purple Skin", "Yellow Skin", "Yellow Skin", "Yellow Skin", "White Skin", "White Skin", "White Skin", "Vortex Skin", "Vortex Skin", "Vortex Skin", "Pastel Yellow Skin", "Pastel Yellow Skin", "Pastel Yellow Skin", "Pastel Blue Skin", "Pastel Blue Skin", "Pastel Blue Skin", "Pastel Green Skin", "Pastel Green Skin", "Pastel Green Skin", "Pastel Red Skin", "Pastel Red Skin", "Pastel Red Skin", "Vynil Orange Skin", "Vynil Orange Skin", "Vynil Orange Skin", "Vynil Mint Skin", "Vynil Mint Skin", "Vynil Mint Skin", "Chalk Light Pink Skin", "Chalk Light Pink Skin", "Chalk Light Pink Skin", // Rare 2x // 18 "Plasma Skin", "Plasma Skin", "Blue Titanium Skin", "Blue Titanium Skin", "Robot Skin", "Robot Skin", "Dino Green Skin", "Dino Green Skin", "Silver Skin", "Silver Skin", "Kaiju Skin", "Kaiju Skin", "Moon Rock Skin", "Moon Rock Skin", "Chalk Light Blue Skin", "Chalk Light Blue Skin", "Pastel Pink Skin", "Pastel Pink Skin", // Super Rare 1x // 5 "Glass Skeleton Skin", "Zebra Skin", "Camo Skin", "Poison Frog Skin", "Martian Skin", // HORNS - 58 // Common 4x // 36 "Spring Horn", "Spring Horn", "Spring Horn", "Spring Horn", "White Horn", "White Horn", "White Horn", "White Horn", "Broken Horn", "Broken Horn", "Broken Horn", "Broken Horn", "Chain Horn", "Chain Horn", "Chain Horn", "Chain Horn", "Lollipop Horn", "Lollipop Horn", "Lollipop Horn", "Lollipop Horn", "Drill Horn", "Drill Horn", "Drill Horn", "Drill Horn", "Slime Horn", "Slime Horn", "Slime Horn", "Slime Horn", "Chalk Horn", "Chalk Horn", "Chalk Horn", "Chalk Horn", "Striped Metallic Horn", "Striped Metallic Horn", "Striped Metallic Horn", "Striped Metallic Horn", // Rare 2x // 16 "Gold Horn", "Gold Horn", "Cucumber Horn", "Cucumber Horn", "Carrot Horn", "Carrot Horn", "Candy Cane Horn", "Candy Cane Horn", "Tesla Horn", "Tesla Horn", "Pencil Horn", "Pencil Horn", "Donut Horn", "Donut Horn", "Rainbow Horn", "Rainbow Horn", // Super Rare 1x // 6 "Antler Horn", "Cyberpunk Horn", "Ethereum Horn", "Mech Horn", "Tri Horn", "Invisible Horn", // HAIR - 49 // Common 4x // 36 "Black Hair", "Black Hair", "Black Hair", "Black Hair", "White Hair", "White Hair", "White Hair", "White Hair", "Blue Hair", "Blue Hair", "Blue Hair", "Blue Hair", "Green Hair", "Green Hair", "Green Hair", "Green Hair", "Burgundy Hair", "Burgundy Hair", "Burgundy Hair", "Burgundy Hair", "Red Hair", "Red Hair", "Red Hair", "Red Hair", "Pastel Pink Hair", "Pastel Pink Hair", "Pastel Pink Hair", "Pastel Pink Hair", "Plastic Hair", "Plastic Hair", "Plastic Hair", "Plastic Hair", "Silver Hair", "Silver Hair", "Silver Hair", "Silver Hair", // Rare 2x // 10 "Glass Hair", "Glass Hair", "Chalk Blue Hair", "Chalk Blue Hair", "Chalk Pink Hair", "Chalk Pink Hair", "Punk Hair", "Punk Hair", "Solid Gold Hair", "Solid Gold Hair", // Super Rare 1x // 3 "Flames Hair", "Glowing Hair", "Funky Hair", // EYES - 35 // Common 4x // 24 "Standard Eyes", "Standard Eyes", "Standard Eyes", "Standard Eyes", "Chalk Eyes", "Chalk Eyes", "Chalk Eyes", "Chalk Eyes", "Metallic Eyes", "Metallic Eyes", "Metallic Eyes", "Metallic Eyes", "Glowing Eyes", "Glowing Eyes", "Glowing Eyes", "Glowing Eyes", "Black Eyes", "Black Eyes", "Black Eyes", "Black Eyes", "Gold Eyes", "Gold Eyes", "Gold Eyes", "Gold Eyes", // Rare 2x // 8 "Sunglasses", "Sunglasses", "Blue Laser Eyes", "Blue Laser Eyes", "Futuristic Shades", "Futuristic Shades", "Robot Eyes", "Robot Eyes", // Super Rare 1x // 3 "VR Headset", "Night Vision", "Pink Laser Eyes", // BACKGROUNDS - 44 // Common 3x // 27 "Purple", "Purple", "Purple", "Blue", "Blue", "Blue", "Red", "Red", "Red", "Yellow", "Yellow", "Yellow", "Dark", "Dark", "Dark", "Sky", "Sky", "Sky", "Chalk", "Chalk", "Chalk", "Green Pattern", "Green Pattern", "Green Pattern", "Blue Pattern", "Blue Pattern", "Blue Pattern", // Rare 2x // 14 "Forest", "Forest", "Glacier", "Glacier", "Spring", "Spring", "Void", "Void", "Marsh", "Marsh", "Rainbow", "Rainbow", "Red Pattern", "Red Pattern", // Super Rare 1x // 3 "Volcano", "Cyberpunk", "Space" ]; uint256 cursor = 44; // 19 Wearables trait.wearable = GROUPS[ ((randomness % 100000000) / 1000000) % cursor ]; // 20 Items trait.item = GROUPS[ (cursor + (((randomness % 10000000000) / 100000000) % 55)) ]; cursor += 55; // 29 Skins trait.skin = GROUPS[ (cursor + (((randomness % 1000000000000) / 10000000000) % 71)) ]; cursor += 71; // 22 Horns trait.horn = GROUPS[ (cursor + (((randomness % 100000000000000) / 1000000000000) % 58)) ]; cursor += 58; // 17 Hairs trait.hair = GROUPS[ (cursor + (((randomness % 10000000000000000) / 100000000000000) % 49)) ]; cursor += 49; // 13 Eyes trait.eyes = GROUPS[ (cursor + (((randomness % 1000000000000000000) / 10000000000000000) % 35)) ]; cursor += 35; // 19 Backgrounds trait.background = GROUPS[ (cursor + (((randomness % 100000000000000000000) / 1000000000000000000) % 44)) ]; uint256 strength = 41 + (randomness % 50); uint256 speed = 41 + (((randomness % 10000) / 100) % 50); uint256 intelligence = 41 + (((randomness % 1000000) / 10000) % 50); return Unifriend({ strength: strength, speed: speed, intelligence: intelligence, name: string( abi.encodePacked( "Genesis Unicorn: #", Strings.toString(tokenId) ) ), description: string( abi.encodePacked( "The Unifriends metaverse began with the genesis unicorns. **#", Strings.toString(tokenId), "** is very special and one-of-a-kind. The unicorns have unparalleled purity and grace.", "<br>Your unicorn has **", Strings.toString(strength), "** strength, **", Strings.toString(speed), "** speed, and **", Strings.toString(intelligence), "** intelligence." ) ), isLegendary: false, trait: trait }); } } function toProperties(Unifriend memory instance) internal pure returns (string memory) { return string( abi.encodePacked( '{ "trait_type": "Legendary", "value": "', instance.isLegendary ? "true" : "false", '"}', ', { "trait_type": "Strength", "display_type": "number", "value": "', Strings.toString(instance.strength), '"}', ', { "trait_type": "Speed", "display_type": "number", "value": "', Strings.toString(instance.speed), '"}', ', { "trait_type": "Intelligence", "display_type": "number", "value": "', Strings.toString(instance.intelligence), '"}' ) ); } function toTraits(Unifriend memory instance) internal pure returns (string memory) { if (instance.isLegendary) { return ""; } return string( abi.encodePacked( ', { "trait_type": "Wearable", "value": "', instance.trait.wearable, '"}', ', { "trait_type": "Item", "value": "', instance.trait.item, '"}', ', { "trait_type": "Horn", "value": "', instance.trait.horn, '"}', ', { "trait_type": "Skin", "value": "', instance.trait.skin, '"}', ', { "trait_type": "Hair", "value": "', instance.trait.hair, '"}', ', { "trait_type": "Eyes", "value": "', instance.trait.eyes, '"}', ', { "trait_type": "Background", "value": "', instance.trait.background, '"}' ) ); } function base64TokenURI( uint256 tokenId, string memory _baseURI, string memory _animationURI, uint256 _randomness ) public pure returns (string memory) { Unifriend memory instance = getUnifriendProperties( tokenId, _randomness ); // Base64 encoding return string( abi.encodePacked( "data:application/json;base64,", Base64.encode( bytes( abi.encodePacked( "{", toJSONProperty("name", instance.name), ",", toJSONProperty( "description", instance.description ), ",", string( abi.encodePacked( '"attributes": ', string( abi.encodePacked( "[", string( abi.encodePacked( toProperties(instance), toTraits(instance) ) ), "]" ) ) ) ), ",", toJSONProperty( "image", string( abi.encodePacked( _baseURI, Strings.toString(tokenId) ) ) ), ",", toJSONProperty( "external_url", string( abi.encodePacked( _animationURI, Strings.toString(tokenId) ) ) ), ",", toJSONProperty( "animation_url", string( abi.encodePacked( _animationURI, Strings.toString(tokenId) ) ) ), "}" ) ) ) ) ); } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.9; import "./ERC721.sol"; import "@openzeppelin/contracts/token/ERC721/extensions/IERC721Enumerable.sol"; /** * @dev This implements an optional extension of {ERC721} defined in the EIP that adds * enumerability of all the token ids in the contract as well as all token ids owned by each * account but rips out the core of the gas-wasting processing that comes from OpenZeppelin. */ abstract contract ERC721Enumerable is ERC721, IERC721Enumerable { /** * @dev See {IERC165-supportsInterface}. */ function supportsInterface(bytes4 interfaceId) public view virtual override(IERC165, ERC721) returns (bool) { return interfaceId == type(IERC721Enumerable).interfaceId || super.supportsInterface(interfaceId); } /** * @dev See {IERC721Enumerable-totalSupply}. */ function totalSupply() public view virtual override returns (uint256) { return _owners.length; } /** * @dev See {IERC721Enumerable-tokenByIndex}. */ function tokenByIndex(uint256 index) public view virtual override returns (uint256) { require(index < _owners.length, "ERC721Enumerable: global index out of bounds"); return index; } /** * @dev See {IERC721Enumerable-tokenOfOwnerByIndex}. */ function tokenOfOwnerByIndex(address owner, uint256 index) public view virtual override returns (uint256 tokenId) { require(index < balanceOf(owner), "ERC721Enumerable: owner index out of bounds"); uint count; for(uint i; i < _owners.length; i++){ if(owner == _owners[i]){ if(count == index) return i; else count++; } } revert("ERC721Enumerable: owner index out of bounds"); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/Context.sol) pragma solidity ^0.8.0; /** * @dev Provides information about the current execution context, including the * sender of the transaction and its data. While these are generally available * via msg.sender and msg.data, they should not be accessed in such a direct * manner, since when dealing with meta-transactions the account sending and * paying for execution may not be the actual sender (as far as an application * is concerned). * * This contract is only required for intermediate, library-like contracts. */ abstract contract Context { function _msgSender() internal view virtual returns (address) { return msg.sender; } function _msgData() internal view virtual returns (bytes calldata) { return msg.data; } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (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 pragma solidity ^0.8.9; import "@openzeppelin/contracts/token/ERC721/IERC721.sol"; import "@openzeppelin/contracts/token/ERC721/IERC721Receiver.sol"; import "@openzeppelin/contracts/token/ERC721/extensions/IERC721Metadata.sol"; import "@openzeppelin/contracts/utils/Context.sol"; import "@openzeppelin/contracts/utils/Strings.sol"; import "@openzeppelin/contracts/utils/introspection/ERC165.sol"; import "./Address.sol"; abstract contract ERC721 is Context, ERC165, IERC721, IERC721Metadata { using Address for address; using Strings for uint256; string private _name; string private _symbol; // Mapping from token ID to owner address address[] internal _owners; mapping(uint256 => address) private _tokenApprovals; 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 (uint) { require(owner != address(0), "ERC721: balance query for the zero address"); uint count; for( uint i; i < _owners.length; ++i ){ if( owner == _owners[i] ) ++count; } return count; } /** * @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 {IERC721-approve}. */ function approve(address to, uint256 tokenId) public virtual override { address owner = ERC721.ownerOf(tokenId); require(to != owner, "ERC721: approval to current owner"); require( _msgSender() == owner || isApprovedForAll(owner, _msgSender()), "ERC721: approve caller is not owner nor approved for all" ); _approve(to, tokenId); } /** * @dev See {IERC721-getApproved}. */ function getApproved(uint256 tokenId) public view virtual override returns (address) { require( _exists(tokenId), "ERC721: approved query for nonexistent token" ); return _tokenApprovals[tokenId]; } /** * @dev See {IERC721-setApprovalForAll}. */ function setApprovalForAll(address operator, bool approved) public virtual override { require(operator != _msgSender(), "ERC721: approve to caller"); _operatorApprovals[_msgSender()][operator] = approved; emit ApprovalForAll(_msgSender(), operator, approved); } /** * @dev See {IERC721-isApprovedForAll}. */ function isApprovedForAll(address owner, address operator) public view virtual override returns (bool) { return _operatorApprovals[owner][operator]; } /** * @dev See {IERC721-transferFrom}. */ function transferFrom( address from, address to, uint256 tokenId ) public virtual override { //solhint-disable-next-line max-line-length require( _isApprovedOrOwner(_msgSender(), tokenId), "ERC721: transfer caller is not owner nor approved" ); _transfer(from, to, tokenId); } /** * @dev See {IERC721-safeTransferFrom}. */ function safeTransferFrom( address from, address to, uint256 tokenId ) public virtual override { safeTransferFrom(from, to, tokenId, ""); } /** * @dev See {IERC721-safeTransferFrom}. */ function safeTransferFrom( address from, address to, uint256 tokenId, bytes memory _data ) public virtual override { require( _isApprovedOrOwner(_msgSender(), tokenId), "ERC721: transfer caller is not owner nor approved" ); _safeTransfer(from, to, tokenId, _data); } /** * @dev Safely transfers `tokenId` token from `from` to `to`, checking first that contract recipients * are aware of the ERC721 protocol to prevent tokens from being forever locked. * * `_data` is additional data, it has no specified format and it is sent in call to `to`. * * This internal function is equivalent to {safeTransferFrom}, and can be used to e.g. * implement alternative mechanisms to perform token transfer, such as signature-based. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must exist and be owned by `from`. * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */ function _safeTransfer( address from, address to, uint256 tokenId, bytes memory _data ) internal virtual { _transfer(from, to, tokenId); require( _checkOnERC721Received(from, to, tokenId, _data), "ERC721: transfer to non ERC721Receiver implementer" ); } /** * @dev Returns whether `tokenId` exists. * * Tokens can be managed by their owner or approved accounts via {approve} or {setApprovalForAll}. * * Tokens start existing when they are minted (`_mint`), * and stop existing when they are burned (`_burn`). */ function _exists(uint256 tokenId) internal view virtual returns (bool) { return tokenId < _owners.length && _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); _owners.push(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); _owners[tokenId] = address(0); 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); _owners[tokenId] = to; emit Transfer(from, to, tokenId); } /** * @dev Approve `to` to operate on `tokenId` * * Emits a {Approval} event. */ function _approve(address to, uint256 tokenId) internal virtual { _tokenApprovals[tokenId] = to; emit Approval(ERC721.ownerOf(tokenId), to, tokenId); } /** * @dev Internal function to invoke {IERC721Receiver-onERC721Received} on a target address. * The call is not executed if the target address is not a contract. * * @param from address representing the previous owner of the given token ID * @param to target address that will receive the tokens * @param tokenId uint256 ID of the token to be transferred * @param _data bytes optional data to send along with the call * @return bool whether the call correctly returned the expected magic value */ function _checkOnERC721Received( address from, address to, uint256 tokenId, bytes memory _data ) private returns (bool) { if (to.isContract()) { try IERC721Receiver(to).onERC721Received( _msgSender(), from, tokenId, _data ) returns (bytes4 retval) { return retval == IERC721Receiver.onERC721Received.selector; } catch (bytes memory reason) { if (reason.length == 0) { revert( "ERC721: transfer to non ERC721Receiver implementer" ); } else { assembly { revert(add(32, reason), mload(reason)) } } } } else { return true; } } /** * @dev Hook that is called before any token transfer. This includes minting * and burning. * * Calling conditions: * * - When `from` and `to` are both non-zero, ``from``'s `tokenId` will be * transferred to `to`. * - When `from` is zero, `tokenId` will be minted for `to`. * - When `to` is zero, ``from``'s `tokenId` will be burned. * - `from` and `to` are never both zero. * * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks]. */ function _beforeTokenTransfer( address from, address to, uint256 tokenId ) internal virtual {} }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.5.0) (token/ERC721/extensions/IERC721Enumerable.sol) pragma solidity ^0.8.0; import "../IERC721.sol"; /** * @title ERC-721 Non-Fungible Token Standard, optional enumeration extension * @dev See https://eips.ethereum.org/EIPS/eip-721 */ interface IERC721Enumerable is IERC721 { /** * @dev Returns the total amount of tokens stored by the contract. */ function totalSupply() external view returns (uint256); /** * @dev Returns a token ID owned by `owner` at a given `index` of its token list. * Use along with {balanceOf} to enumerate all of ``owner``'s tokens. */ function tokenOfOwnerByIndex(address owner, uint256 index) external view returns (uint256); /** * @dev Returns a token ID at a given `index` of all the tokens stored by the contract. * Use along with {totalSupply} to enumerate all tokens. */ function tokenByIndex(uint256 index) external view returns (uint256); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (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.1 (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.1 (token/ERC721/extensions/IERC721Metadata.sol) pragma solidity ^0.8.0; import "../IERC721.sol"; /** * @title ERC-721 Non-Fungible Token Standard, optional metadata extension * @dev See https://eips.ethereum.org/EIPS/eip-721 */ interface IERC721Metadata is IERC721 { /** * @dev Returns the token collection name. */ function name() external view returns (string memory); /** * @dev Returns the token collection symbol. */ function symbol() external view returns (string memory); /** * @dev Returns the Uniform Resource Identifier (URI) for `tokenId` token. */ function tokenURI(uint256 tokenId) external view returns (string memory); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/introspection/ERC165.sol) pragma solidity ^0.8.0; import "./IERC165.sol"; /** * @dev Implementation of the {IERC165} interface. * * Contracts that want to implement ERC165 should inherit from this contract and override {supportsInterface} to check * for the additional interface id that will be supported. For example: * * ```solidity * function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) { * return interfaceId == type(MyInterface).interfaceId || super.supportsInterface(interfaceId); * } * ``` * * Alternatively, {ERC165Storage} provides an easier to use but more expensive implementation. */ abstract contract ERC165 is IERC165 { /** * @dev See {IERC165-supportsInterface}. */ function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) { return interfaceId == type(IERC165).interfaceId; } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.9; library Address { function isContract(address account) internal view returns (bool) { uint size; assembly { size := extcodesize(account) } return size > 0; } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/introspection/IERC165.sol) pragma solidity ^0.8.0; /** * @dev Interface of the ERC165 standard, as defined in the * https://eips.ethereum.org/EIPS/eip-165[EIP]. * * Implementers can declare support of contract interfaces, which can then be * queried by others ({ERC165Checker}). * * For an implementation, see {ERC165}. */ interface IERC165 { /** * @dev Returns true if this contract implements the interface defined by * `interfaceId`. See the corresponding * https://eips.ethereum.org/EIPS/eip-165#how-interfaces-are-identified[EIP section] * to learn more about how these ids are created. * * This function call must use less than 30 000 gas. */ function supportsInterface(bytes4 interfaceId) external view returns (bool); }
{ "optimizer": { "enabled": true, "runs": 1000, "details": { "yul": false } }, "outputSelection": { "*": { "*": [ "evm.bytecode", "evm.deployedBytecode", "devdoc", "userdoc", "metadata", "abi" ] } }, "metadata": { "useLiteralContent": true }, "libraries": { "contracts/UnifriendsRenderer.sol": { "UnifriendsRenderer": "0xd16fd6b10d774f591035880b4a4b2b5e9aa0f76b" } } }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"inputs":[{"internalType":"string","name":"_baseURI","type":"string"},{"internalType":"string","name":"_animationURI","type":"string"},{"internalType":"address","name":"_proxyRegistryAddress","type":"address"},{"internalType":"address","name":"_treasury","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":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":"MAX_PER_TX","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"addressToMinted","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"animationURI","outputs":[{"internalType":"string","name":"","type":"string"}],"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":[],"name":"baseURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_from","type":"address"},{"internalType":"address","name":"_to","type":"address"},{"internalType":"uint256[]","name":"_tokenIds","type":"uint256[]"},{"internalType":"bytes","name":"data_","type":"bytes"}],"name":"batchSafeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_from","type":"address"},{"internalType":"address","name":"_to","type":"address"},{"internalType":"uint256[]","name":"_tokenIds","type":"uint256[]"}],"name":"batchTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"burn","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"collectReserves","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"proxyAddress","type":"address"}],"name":"flipProxyState","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getApproved","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_owner","type":"address"},{"internalType":"address","name":"operator","type":"address"}],"name":"isApprovedForAll","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"},{"internalType":"uint256[]","name":"_tokenIds","type":"uint256[]"}],"name":"isOwnerOf","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":"maxSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","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":[{"internalType":"address","name":"","type":"address"}],"name":"projectProxy","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"proxyRegistryAddress","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"count","type":"uint256"}],"name":"publicMint","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"publicPriceInWei","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"reserves","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":"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":"string","name":"_animationURI","type":"string"}],"name":"setAnimationURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"operator","type":"address"},{"internalType":"bool","name":"approved","type":"bool"}],"name":"setApprovalForAll","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"_baseURI","type":"string"}],"name":"setBaseURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_proxyRegistryAddress","type":"address"}],"name":"setProxyRegistryAddress","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_publicPriceInWei","type":"uint256"}],"name":"setPublicPriceInWei","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_reserves","type":"uint256"}],"name":"setReserves","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_treasury","type":"address"}],"name":"setTreasury","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"_whitelistMerkleRoot","type":"bytes32"}],"name":"setWhitelistMerkleRoot","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":"_maxSupply","type":"uint256"}],"name":"togglePublicSale","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"toggleRevealed","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"index","type":"uint256"}],"name":"tokenByIndex","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"tokenIdToRandomNumber","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"uint256","name":"index","type":"uint256"}],"name":"tokenOfOwnerByIndex","outputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"tokenURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"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":"treasury","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_owner","type":"address"}],"name":"walletOfOwner","outputs":[{"internalType":"uint256[]","name":"","type":"uint256[]"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"whitelistMerkleRoot","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"count","type":"uint256"},{"internalType":"uint256","name":"allowance","type":"uint256"},{"internalType":"bytes32[]","name":"proof","type":"bytes32[]"}],"name":"whitelistMint","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"whitelistPriceInWei","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"withdraw","outputs":[],"stateMutability":"nonpayable","type":"function"}]
Contract Creation Code
60806040526701daff710e78400060065560fb600d556000600e55600f805460ff191690553480156200003157600080fd5b5060405162004087380380620040878339810160408190526200005491620003a0565b604080518082018252600a80825269556e69667269656e647360b01b602080840182815285518087019096529285528401528151919291620000999160009162000183565b508051620000af90600190602084019062000183565b505050620000cc620000c66200012d60201b60201c565b62000131565b8351620000e190600790602087019062000183565b508251620000f790600890602086019062000183565b50600980546001600160a01b039384166001600160a01b031991821617909155600a8054929093169116179055506200048c9050565b3390565b600580546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b82805462000191906200045b565b90600052602060002090601f016020900481019282620001b5576000855562000200565b82601f10620001d057805160ff191683800117855562000200565b8280016001018555821562000200579182015b8281111562000200578251825591602001919060010190620001e3565b506200020e92915062000212565b5090565b5b808211156200020e576000815560010162000213565b634e487b7160e01b600052604160045260246000fd5b601f19601f83011681018181106001600160401b038211171562000267576200026762000229565b6040525050565b60006200027a60405190565b90506200028882826200023f565b919050565b60006001600160401b03821115620002a957620002a962000229565b601f19601f83011660200192915050565b60005b83811015620002d7578181015183820152602001620002bd565b83811115620002e7576000848401525b50505050565b600062000304620002fe846200028d565b6200026e565b905082815260208101848484011115620003215762000321600080fd5b6200032e848285620002ba565b509392505050565b600082601f8301126200034c576200034c600080fd5b81516200035e848260208601620002ed565b949350505050565b60006001600160a01b0382165b92915050565b620003848162000366565b81146200039057600080fd5b50565b8051620003738162000379565b60008060008060808587031215620003bb57620003bb600080fd5b84516001600160401b03811115620003d657620003d6600080fd5b620003e48782880162000336565b94505060208501516001600160401b03811115620004055762000405600080fd5b620004138782880162000336565b9350506040620004268782880162000393565b9250506060620004398782880162000393565b91505092959194509250565b634e487b7160e01b600052602260045260246000fd5b6002810460018216806200047057607f821691505b6020821081141562000486576200048662000445565b50919050565b613beb806200049c6000396000f3fe60806040526004361061033f5760003560e01c80638da5cb5b116101b0578063c87b56dd116100ec578063e5d089ff11610095578063f2fde38b1161006f578063f2fde38b1461090f578063f3993d111461092f578063f43a22dc1461094f578063f73c814b1461096457600080fd5b8063e5d089ff146108af578063e985e9c5146108cf578063f0f44260146108ef57600080fd5b8063d26ea6c0116100c6578063d26ea6c014610863578063d58bcaf014610883578063d5abeb011461089957600080fd5b8063c87b56dd14610803578063caf832eb14610823578063cd7c03261461084357600080fd5b8063aa98e0c611610159578063bd32fb6611610133578063bd32fb6614610790578063c4be5b59146107b0578063c51c7f71146107c3578063c5ac58e1146107e357600080fd5b8063aa98e0c614610745578063b51bbbdf1461075b578063b88d4fde1461077057600080fd5b80639c1cd7951161018a5780639c1cd795146106cb5780639ec00c95146106f8578063a22cb4651461072557600080fd5b80638da5cb5b1461067d57806395d89b411461069b5780639906efbe146106b057600080fd5b80634f6ccce71161027f57806361d027b31161022857806370a082311161020257806370a0823114610612578063715018a61461063257806375172a8b146106475780638cf7be7e1461065d57600080fd5b806361d027b3146105bd5780636352211e146105dd5780636c0360eb146105fd57600080fd5b80635a4fee30116102595780635a4fee30146105585780635bab26e2146105785780635bc020bc146105a857600080fd5b80634f6ccce7146104fe57806354214f691461051e57806355f804b31461053857600080fd5b80632db11544116102ec57806342842e0e116102c657806342842e0e1461047157806342966c6814610491578063438b6300146104b15780634d44660c146104de57600080fd5b80632db11544146104295780632f745c591461043c5780633ccfd60b1461045c57600080fd5b8063095ea7b31161031d578063095ea7b3146103c957806318160ddd146103eb57806323b872dd1461040957600080fd5b806301ffc9a71461034457806306fdde031461037a578063081812fc1461039c575b600080fd5b34801561035057600080fd5b5061036461035f36600461254d565b610984565b6040516103719190612578565b60405180910390f35b34801561038657600080fd5b5061038f6109c8565b60405161037191906125e4565b3480156103a857600080fd5b506103bc6103b7366004612606565b610a5a565b6040516103719190612641565b3480156103d557600080fd5b506103e96103e4366004612663565b610aa6565b005b3480156103f757600080fd5b506002545b60405161037191906126a6565b34801561041557600080fd5b506103e96104243660046126b4565b610b2c565b6103e9610437366004612606565b610b5e565b34801561044857600080fd5b506103fc610457366004612663565b610c08565b34801561046857600080fd5b506103e9610cbb565b34801561047d57600080fd5b506103e961048c3660046126b4565b610d69565b34801561049d57600080fd5b506103e96104ac366004612606565b610d84565b3480156104bd57600080fd5b506104d16104cc366004612704565b610db2565b6040516103719190612782565b3480156104ea57600080fd5b506103646104f93660046127e5565b610e6b565b34801561050a57600080fd5b506103fc610519366004612606565b610eed565b34801561052a57600080fd5b50600f546103649060ff1681565b34801561054457600080fd5b506103e9610553366004612934565b610f15565b34801561056457600080fd5b506103e9610573366004612a12565b610f56565b34801561058457600080fd5b50610364610593366004612704565b60106020526000908152604090205460ff1681565b3480156105b457600080fd5b506103e9610fa0565b3480156105c957600080fd5b50600a546103bc906001600160a01b031681565b3480156105e957600080fd5b506103bc6105f8366004612606565b610fde565b34801561060957600080fd5b5061038f611028565b34801561061e57600080fd5b506103fc61062d366004612704565b6110b6565b34801561063e57600080fd5b506103e9611141565b34801561065357600080fd5b506103fc600d5481565b34801561066957600080fd5b506103e9610678366004612606565b611177565b34801561068957600080fd5b506005546001600160a01b03166103bc565b3480156106a757600080fd5b5061038f6111ab565b3480156106bc57600080fd5b506103fc66f6a11f484ec00081565b3480156106d757600080fd5b506103fc6106e6366004612606565b60126020526000908152604090205481565b34801561070457600080fd5b506103fc610713366004612704565b60116020526000908152604090205481565b34801561073157600080fd5b506103e9610740366004612abf565b6111ba565b34801561075157600080fd5b506103fc600b5481565b34801561076757600080fd5b5061038f611252565b34801561077c57600080fd5b506103e961078b366004612af2565b61125f565b34801561079c57600080fd5b506103e96107ab366004612606565b611297565b6103e96107be366004612b39565b6112c6565b3480156107cf57600080fd5b506103e96107de366004612606565b6113eb565b3480156107ef57600080fd5b506103e96107fe366004612934565b61141a565b34801561080f57600080fd5b5061038f61081e366004612606565b611457565b34801561082f57600080fd5b506103e961083e366004612606565b61154a565b34801561084f57600080fd5b506009546103bc906001600160a01b031681565b34801561086f57600080fd5b506103e961087e366004612704565b611579565b34801561088f57600080fd5b506103fc60065481565b3480156108a557600080fd5b506103fc600c5481565b3480156108bb57600080fd5b506103e96108ca366004612606565b6115c5565b3480156108db57600080fd5b506103646108ea366004612ba7565b611646565b3480156108fb57600080fd5b506103e961090a366004612704565b611756565b34801561091b57600080fd5b506103e961092a366004612704565b6117a2565b34801561093b57600080fd5b506103e961094a366004612bda565b6117fb565b34801561095b57600080fd5b506103fc600b81565b34801561097057600080fd5b506103e961097f366004612704565b61183d565b60006001600160e01b031982167f780e9d630000000000000000000000000000000000000000000000000000000014806109c257506109c282611890565b92915050565b6060600080546109d790612c51565b80601f0160208091040260200160405190810160405280929190818152602001828054610a0390612c51565b8015610a505780601f10610a2557610100808354040283529160200191610a50565b820191906000526020600020905b815481529060010190602001808311610a3357829003601f168201915b5050505050905090565b6000610a658261192b565b610a8a5760405162461bcd60e51b8152600401610a8190612cca565b60405180910390fd5b506000908152600360205260409020546001600160a01b031690565b6000610ab182610fde565b9050806001600160a01b0316836001600160a01b03161415610ae55760405162461bcd60e51b8152600401610a8190612d34565b336001600160a01b0382161480610b015750610b018133611646565b610b1d5760405162461bcd60e51b8152600401610a8190612d9e565b610b278383611975565b505050565b610b37335b826119e3565b610b535760405162461bcd60e51b8152600401610a8190612e08565b610b27838383611a60565b600254600c54610b6e8383612e2e565b10610b8b5760405162461bcd60e51b8152600401610a8190612e7d565b600b8210610bab5760405162461bcd60e51b8152600401610a8190612ec1565b3460065483610bba9190612ed1565b14610bd75760405162461bcd60e51b8152600401610a8190612f24565b60005b82811015610b2757610bf6335b610bf18385612e2e565b611b38565b80610c0081612f34565b915050610bda565b6000610c13836110b6565b8210610c315760405162461bcd60e51b8152600401610a8190612fa9565b6000805b600254811015610ca25760028181548110610c5257610c52612fb9565b6000918252602090912001546001600160a01b0386811691161415610c905783821415610c825791506109c29050565b81610c8c81612f34565b9250505b80610c9a81612f34565b915050610c35565b5060405162461bcd60e51b8152600401610a8190612fa9565b6005546001600160a01b03163314610ce55760405162461bcd60e51b8152600401610a8190613001565b600a546040516000916001600160a01b0316904790610d0390613011565b60006040518083038185875af1925050503d8060008114610d40576040519150601f19603f3d011682016040523d82523d6000602084013e610d45565b606091505b5050905080610d665760405162461bcd60e51b8152600401610a819061304d565b50565b610b278383836040518060200160405280600081525061125f565b610d8d33610b31565b610da95760405162461bcd60e51b8152600401610a8190613091565b610d6681611c13565b60606000610dbf836110b6565b905080610de05760408051600080825260208201909252905b509392505050565b60008167ffffffffffffffff811115610dfb57610dfb612841565b604051908082528060200260200182016040528015610e24578160200160208202803683370190505b50905060005b82811015610dd857610e3c8582610c08565b828281518110610e4e57610e4e612fb9565b602090810291909101015280610e6381612f34565b915050610e2a565b6000805b82811015610ee057846001600160a01b03166002858584818110610e9557610e95612fb9565b9050602002013581548110610eac57610eac612fb9565b6000918252602090912001546001600160a01b031614610ed0576000915050610ee6565b610ed981612f34565b9050610e6f565b50600190505b9392505050565b6002546000908210610f115760405162461bcd60e51b8152600401610a81906130fb565b5090565b6005546001600160a01b03163314610f3f5760405162461bcd60e51b8152600401610a8190613001565b8051610f5290600790602084019061249b565b5050565b60005b8251811015610f9957610f878585858481518110610f7957610f79612fb9565b60200260200101518561125f565b80610f9181612f34565b915050610f59565b5050505050565b6005546001600160a01b03163314610fca5760405162461bcd60e51b8152600401610a8190613001565b600f805460ff19811660ff90911615179055565b60008060028381548110610ff457610ff4612fb9565b6000918252602090912001546001600160a01b03169050806109c25760405162461bcd60e51b8152600401610a8190613165565b6007805461103590612c51565b80601f016020809104026020016040519081016040528092919081815260200182805461106190612c51565b80156110ae5780601f10611083576101008083540402835291602001916110ae565b820191906000526020600020905b81548152906001019060200180831161109157829003601f168201915b505050505081565b60006001600160a01b0382166110de5760405162461bcd60e51b8152600401610a81906131cf565b6000805b60025481101561113a57600281815481106110ff576110ff612fb9565b6000918252602090912001546001600160a01b038581169116141561112a5761112782612f34565b91505b61113381612f34565b90506110e2565b5092915050565b6005546001600160a01b0316331461116b5760405162461bcd60e51b8152600401610a8190613001565b6111756000611c95565b565b6005546001600160a01b031633146111a15760405162461bcd60e51b8152600401610a8190613001565b6000600b55600c55565b6060600180546109d790612c51565b6001600160a01b0382163314156111e35760405162461bcd60e51b8152600401610a8190613213565b3360008181526004602090815260408083206001600160a01b038716808552925291829020805460ff191685151517905590519091907f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c3190611246908590612578565b60405180910390a35050565b6008805461103590612c51565b61126933836119e3565b6112855760405162461bcd60e51b8152600401610a8190612e08565b61129184848484611ce7565b50505050565b6005546001600160a01b031633146112c15760405162461bcd60e51b8152600401610a8190613001565b600b55565b346112d866f6a11f484ec00086612ed1565b146112f55760405162461bcd60e51b8152600401610a8190612f24565b61133f82828080602002602001604051908101604052809392919081815260200183836020028082843760009201919091525050600b54915061133a90503387611d1a565b611d74565b61135b5760405162461bcd60e51b8152600401610a819061327d565b336000908152601160205260409020548390611378908690612e2e565b11156113965760405162461bcd60e51b8152600401610a81906132c1565b33600090815260116020526040812080548692906113b5908490612e2e565b909155505060025460005b858110156113e3576113d133610be7565b806113db81612f34565b9150506113c0565b505050505050565b6005546001600160a01b031633146114155760405162461bcd60e51b8152600401610a8190613001565b600d55565b6005546001600160a01b031633146114445760405162461bcd60e51b8152600401610a8190613001565b8051610f5290600890602084019061249b565b60606114628261192b565b61147e5760405162461bcd60e51b8152600401610a8190613305565b600f5460ff16611490576109c2611d8a565b600082815260126020526040908190205490517fe333df4100000000000000000000000000000000000000000000000000000000815273d16fd6b10d774f591035880b4a4b2b5e9aa0f76b9163e333df41916114f691869160079160089160040161338b565b60006040518083038186803b15801561150e57600080fd5b505af4158015611522573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f191682016040526109c2919081019061342f565b6005546001600160a01b031633146115745760405162461bcd60e51b8152600401610a8190613001565b600655565b6005546001600160a01b031633146115a35760405162461bcd60e51b8152600401610a8190613001565b600980546001600160a01b0319166001600160a01b0392909216919091179055565b6005546001600160a01b031633146115ef5760405162461bcd60e51b8152600401610a8190613001565b600d54600254611600908390612e2e565b1061161d5760405162461bcd60e51b8152600401610a819061349e565b60025460005b82811015610b275761163433610be7565b8061163e81612f34565b915050611623565b6009546040517fc45527910000000000000000000000000000000000000000000000000000000081526000916001600160a01b039081169190841690829063c455279190611698908890600401612641565b60206040518083038186803b1580156116b057600080fd5b505afa1580156116c4573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906116e891906134cd565b6001600160a01b0316148061171557506001600160a01b03831660009081526010602052604090205460ff165b156117245760019150506109c2565b6001600160a01b0380851660009081526004602090815260408083209387168352929052205460ff165b949350505050565b6005546001600160a01b031633146117805760405162461bcd60e51b8152600401610a8190613001565b600a80546001600160a01b0319166001600160a01b0392909216919091179055565b6005546001600160a01b031633146117cc5760405162461bcd60e51b8152600401610a8190613001565b6001600160a01b0381166117f25760405162461bcd60e51b8152600401610a8190613548565b610d6681611c95565b60005b81518110156112915761182b848484848151811061181e5761181e612fb9565b6020026020010151610b2c565b8061183581612f34565b9150506117fe565b6005546001600160a01b031633146118675760405162461bcd60e51b8152600401610a8190613001565b6001600160a01b03166000908152601060205260409020805460ff19811660ff90911615179055565b60006001600160e01b031982167f80ac58cd0000000000000000000000000000000000000000000000000000000014806118f357506001600160e01b031982167f5b5e139f00000000000000000000000000000000000000000000000000000000145b806109c257507f01ffc9a7000000000000000000000000000000000000000000000000000000006001600160e01b03198316146109c2565b600254600090821080156109c2575060006001600160a01b03166002838154811061195857611958612fb9565b6000918252602090912001546001600160a01b0316141592915050565b600081815260036020526040902080546001600160a01b0319166001600160a01b03841690811790915581906119aa82610fde565b6001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b60006119ee8261192b565b611a0a5760405162461bcd60e51b8152600401610a81906135a1565b6000611a1583610fde565b9050806001600160a01b0316846001600160a01b03161480611a505750836001600160a01b0316611a4584610a5a565b6001600160a01b0316145b8061174e575061174e8185611646565b826001600160a01b0316611a7382610fde565b6001600160a01b031614611a995760405162461bcd60e51b8152600401610a819061360b565b6001600160a01b038216611abf5760405162461bcd60e51b8152600401610a8190613675565b611aca600082611975565b8160028281548110611ade57611ade612fb9565b6000918252602082200180546001600160a01b0319166001600160a01b03938416179055604051839285811692908716917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9190a4505050565b611b418161192b565b15611b5e5760405162461bcd60e51b8152600401610a81906136b9565b600e8054906000611b6e83612f34565b9091555050600280546001810182556000919091527f405787fa12a823e0f2b7631cc41b3ba8828b3321ca811111fa75cd3aa3bb5ace0180546001600160a01b0319166001600160a01b038416179055611bc88282612007565b60008281526012602052604080822092909255905182916001600160a01b038516917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b6000611c1e82610fde565b9050611c2b600083611975565b600060028381548110611c4057611c40612fb9565b6000918252602082200180546001600160a01b0319166001600160a01b0393841617905560405184928416907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908390a45050565b600580546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b611cf2848484611a60565b611cfe84848484612053565b6112915760405162461bcd60e51b8152600401610a8190613723565b600082604051602001611d2d919061375b565b604051602081830303815290604052611d4583612160565b604051602001611d56929190613792565b60405160208183030381529060405280519060200120905092915050565b600082611d818584612292565b14949350505050565b6060611fe373d16fd6b10d774f591035880b4a4b2b5e9aa0f76b630489ab156040518163ffffffff1660e01b8152600401611dc490613812565b60006040518083038186803b158015611ddc57600080fd5b505af4158015611df0573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f19168201604052611e18919081019061342f565b604051630489ab1560e01b815273d16fd6b10d774f591035880b4a4b2b5e9aa0f76b90630489ab1590611e5090600790600401613869565b60006040518083038186803b158015611e6857600080fd5b505af4158015611e7c573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f19168201604052611ea4919081019061342f565b604051630489ab1560e01b815273d16fd6b10d774f591035880b4a4b2b5e9aa0f76b90630489ab1590611edc906007906004016138c1565b60006040518083038186803b158015611ef457600080fd5b505af4158015611f08573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f19168201604052611f30919081019061342f565b604051630489ab1560e01b815273d16fd6b10d774f591035880b4a4b2b5e9aa0f76b90630489ab1590611f6890600790600401613905565b60006040518083038186803b158015611f8057600080fd5b505af4158015611f94573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f19168201604052611fbc919081019061342f565b604051602001611fcf9493929190613993565b6040516020818303038152906040526122fe565b604051602001611ff39190613a35565b604051602081830303815290604052905090565b6000444284612017600e54612160565b61202086612160565b604051602001612034959493929190613a67565b60408051601f1981840301815291905280516020909101209392505050565b60006001600160a01b0384163b1561215557604051630a85bd0160e11b81526001600160a01b0385169063150b7a0290612097903390899088908890600401613aba565b602060405180830381600087803b1580156120b157600080fd5b505af19250505080156120e1575060408051601f3d908101601f191682019092526120de91810190613aff565b60015b61213b573d80801561210f576040519150601f19603f3d011682016040523d82523d6000602084013e612114565b606091505b5080516121335760405162461bcd60e51b8152600401610a8190613723565b805181602001fd5b6001600160e01b031916630a85bd0160e11b14905061174e565b506001949350505050565b6060816121a057505060408051808201909152600181527f3000000000000000000000000000000000000000000000000000000000000000602082015290565b8160005b81156121ca57806121b481612f34565b91506121c39050600a83613b36565b91506121a4565b60008167ffffffffffffffff8111156121e5576121e5612841565b6040519080825280601f01601f19166020018201604052801561220f576020820181803683370190505b5090505b841561174e57612224600183613b4a565b9150612231600a86613b61565b61223c906030612e2e565b60f81b81838151811061225157612251612fb9565b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a90535061228b600a86613b36565b9450612213565b600081815b8451811015610dd85760008582815181106122b4576122b4612fb9565b602002602001015190508083116122da57600083815260208290526040902092506122eb565b600081815260208490526040902092505b50806122f681612f34565b915050612297565b606081516000141561231e57505060408051602081019091526000815290565b6000604051806060016040528060408152602001613b76604091399050600060038451600261234d9190612e2e565b6123579190613b36565b612362906004612ed1565b90506000612371826020612e2e565b67ffffffffffffffff81111561238957612389612841565b6040519080825280601f01601f1916602001820160405280156123b3576020820181803683370190505b509050818152600183018586518101602084015b8183101561241f576003830192508251603f8160121c168501518253600182019150603f81600c1c168501518253600182019150603f8160061c168501518253600182019150603f81168501518253506001016123c7565b60038951066001811461243957600281146124655761248d565b7f3d3d00000000000000000000000000000000000000000000000000000000000060011983015261248d565b7f3d000000000000000000000000000000000000000000000000000000000000006000198301525b509398975050505050505050565b8280546124a790612c51565b90600052602060002090601f0160209004810192826124c9576000855561250f565b82601f106124e257805160ff191683800117855561250f565b8280016001018555821561250f579182015b8281111561250f5782518255916020019190600101906124f4565b50610f119291505b80821115610f115760008155600101612517565b6001600160e01b031981165b8114610d6657600080fd5b80356109c28161252b565b60006020828403121561256257612562600080fd5b600061174e8484612542565b8015155b82525050565b602081016109c2828461256e565b60005b838110156125a1578181015183820152602001612589565b838111156112915750506000910152565b60006125bc825190565b8084526020840193506125d3818560208601612586565b601f01601f19169290920192915050565b60208082528101610ee681846125b2565b80612537565b80356109c2816125f5565b60006020828403121561261b5761261b600080fd5b600061174e84846125fb565b60006001600160a01b0382166109c2565b61257281612627565b602081016109c28284612638565b61253781612627565b80356109c28161264f565b6000806040838503121561267957612679600080fd5b60006126858585612658565b9250506020612696858286016125fb565b9150509250929050565b80612572565b602081016109c282846126a0565b6000806000606084860312156126cc576126cc600080fd5b60006126d88686612658565b93505060206126e986828701612658565b92505060406126fa868287016125fb565b9150509250925092565b60006020828403121561271957612719600080fd5b600061174e8484612658565b600061273183836126a0565b505060200190565b6000612743825190565b80845260209384019383018060005b838110156127775781516127668882612725565b975060208301925050600101612752565b509495945050505050565b60208082528101610ee68184612739565b60008083601f8401126127a8576127a8600080fd5b50813567ffffffffffffffff8111156127c3576127c3600080fd5b6020830191508360208202830111156127de576127de600080fd5b9250929050565b6000806000604084860312156127fd576127fd600080fd5b60006128098686612658565b935050602084013567ffffffffffffffff81111561282957612829600080fd5b61283586828701612793565b92509250509250925092565b634e487b7160e01b600052604160045260246000fd5b601f19601f830116810181811067ffffffffffffffff8211171561287d5761287d612841565b6040525050565b600061288f60405190565b905061289b8282612857565b919050565b600067ffffffffffffffff8211156128ba576128ba612841565b601f19601f83011660200192915050565b82818337506000910152565b60006128ea6128e5846128a0565b612884565b90508281526020810184848401111561290557612905600080fd5b610dd88482856128cb565b600082601f83011261292457612924600080fd5b813561174e8482602086016128d7565b60006020828403121561294957612949600080fd5b813567ffffffffffffffff81111561296357612963600080fd5b61174e84828501612910565b600067ffffffffffffffff82111561298957612989612841565b5060209081020190565b60006129a16128e58461296f565b838152905060208082019084028301858111156129c0576129c0600080fd5b835b818110156129e457806129d588826125fb565b845250602092830192016129c2565b5050509392505050565b600082601f830112612a0257612a02600080fd5b813561174e848260208601612993565b60008060008060808587031215612a2b57612a2b600080fd5b6000612a378787612658565b9450506020612a4887828801612658565b935050604085013567ffffffffffffffff811115612a6857612a68600080fd5b612a74878288016129ee565b925050606085013567ffffffffffffffff811115612a9457612a94600080fd5b612aa087828801612910565b91505092959194509250565b801515612537565b80356109c281612aac565b60008060408385031215612ad557612ad5600080fd5b6000612ae18585612658565b925050602061269685828601612ab4565b60008060008060808587031215612b0b57612b0b600080fd5b6000612b178787612658565b9450506020612b2887828801612658565b9350506040612a74878288016125fb565b60008060008060608587031215612b5257612b52600080fd5b6000612b5e87876125fb565b9450506020612b6f878288016125fb565b935050604085013567ffffffffffffffff811115612b8f57612b8f600080fd5b612b9b87828801612793565b95989497509550505050565b60008060408385031215612bbd57612bbd600080fd5b6000612bc98585612658565b925050602061269685828601612658565b600080600060608486031215612bf257612bf2600080fd5b6000612bfe8686612658565b9350506020612c0f86828701612658565b925050604084013567ffffffffffffffff811115612c2f57612c2f600080fd5b6126fa868287016129ee565b634e487b7160e01b600052602260045260246000fd5b600281046001821680612c6557607f821691505b60208210811415612c7857612c78612c3b565b50919050565b602c81526000602082017f4552433732313a20617070726f76656420717565727920666f72206e6f6e657881526b34b9ba32b73a103a37b5b2b760a11b602082015291505b5060400190565b602080825281016109c281612c7e565b602181526000602082017f4552433732313a20617070726f76616c20746f2063757272656e74206f776e6581527f720000000000000000000000000000000000000000000000000000000000000060208201529150612cc3565b602080825281016109c281612cda565b603881526000602082017f4552433732313a20617070726f76652063616c6c6572206973206e6f74206f7781527f6e6572206e6f7220617070726f76656420666f7220616c6c000000000000000060208201529150612cc3565b602080825281016109c281612d44565b603181526000602082017f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f81527f776e6572206e6f7220617070726f76656400000000000000000000000000000060208201529150612cc3565b602080825281016109c281612dae565b634e487b7160e01b600052601160045260246000fd5b60008219821115612e4157612e41612e18565b500190565b601381526000602082017f45786365646573206d617820737570706c792e00000000000000000000000000815291505b5060200190565b602080825281016109c281612e46565b601c81526000602082017f45786365656473206d617820706572207472616e73616374696f6e2e0000000081529150612e76565b602080825281016109c281612e8d565b6000816000190483118215151615612eeb57612eeb612e18565b500290565b601781526000602082017f496e76616c69642066756e64732070726f76696465642e00000000000000000081529150612e76565b602080825281016109c281612ef0565b6000600019821415612f4857612f48612e18565b5060010190565b602b81526000602082017f455243373231456e756d657261626c653a206f776e657220696e646578206f7581527f74206f6620626f756e647300000000000000000000000000000000000000000060208201529150612cc3565b602080825281016109c281612f4f565b634e487b7160e01b600052603260045260246000fd5b60208082527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657291019081526000612e76565b602080825281016109c281612fcf565b6000816109c2565b601b81526000602082017f4661696c656420746f2073656e6420746f2074726561737572792e000000000081529150612e76565b602080825281016109c281613019565b601581526000602082017f4e6f7420617070726f76656420746f206275726e2e000000000000000000000081529150612e76565b602080825281016109c28161305d565b602c81526000602082017f455243373231456e756d657261626c653a20676c6f62616c20696e646578206f81527f7574206f6620626f756e6473000000000000000000000000000000000000000060208201529150612cc3565b602080825281016109c2816130a1565b602981526000602082017f4552433732313a206f776e657220717565727920666f72206e6f6e657869737481527f656e7420746f6b656e000000000000000000000000000000000000000000000060208201529150612cc3565b602080825281016109c28161310b565b602a81526000602082017f4552433732313a2062616c616e636520717565727920666f7220746865207a6581527f726f20616464726573730000000000000000000000000000000000000000000060208201529150612cc3565b602080825281016109c281613175565b601981526000602082017f4552433732313a20617070726f766520746f2063616c6c65720000000000000081529150612e76565b602080825281016109c2816131df565b602381526000602082017f496e76616c6964204d65726b6c6520547265652070726f6f6620737570706c6981527f65642e000000000000000000000000000000000000000000000000000000000060208201529150612cc3565b602080825281016109c281613223565b601981526000602082017f457863656564732077686974656c69737420737570706c792e0000000000000081529150612e76565b602080825281016109c28161328d565b601581526000602082017f546f6b656e20646f6573206e6f742065786973742e000000000000000000000081529150612e76565b602080825281016109c2816132d1565b6000815461332281612c51565b808552602085019450600182168015613342576001811461335457613382565b60ff1983168652602086019350613382565b60008581526020902060005b8381101561337c57815488820152600190910190602001613360565b87019450505b50505092915050565b6080810161339982876126a0565b81810360208301526133ab8186613315565b905081810360408301526133bf8185613315565b90506133ce60608301846126a0565b95945050505050565b60006133e56128e5846128a0565b90508281526020810184848401111561340057613400600080fd5b610dd8848285612586565b600082601f83011261341f5761341f600080fd5b815161174e8482602086016133d7565b60006020828403121561344457613444600080fd5b815167ffffffffffffffff81111561345e5761345e600080fd5b61174e8482850161340b565b601781526000602082017f526573657276657320616c72656164792074616b656e2e00000000000000000081529150612e76565b602080825281016109c28161346a565b60006109c282612627565b612537816134ae565b80516109c2816134b9565b6000602082840312156134e2576134e2600080fd5b600061174e84846134c2565b602681526000602082017f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206181527f646472657373000000000000000000000000000000000000000000000000000060208201529150612cc3565b602080825281016109c2816134ee565b602c81526000602082017f4552433732313a206f70657261746f7220717565727920666f72206e6f6e657881526b34b9ba32b73a103a37b5b2b760a11b60208201529150612cc3565b602080825281016109c281613558565b602981526000602082017f4552433732313a207472616e73666572206f6620746f6b656e2074686174206981527f73206e6f74206f776e000000000000000000000000000000000000000000000060208201529150612cc3565b602080825281016109c2816135b1565b602481526000602082017f4552433732313a207472616e7366657220746f20746865207a65726f2061646481527f726573730000000000000000000000000000000000000000000000000000000060208201529150612cc3565b602080825281016109c28161361b565b601481526000602082017f546f6b656e20616c7265616479206d696e74656400000000000000000000000081529150612e76565b602080825281016109c281613685565b603281526000602082017f4552433732313a207472616e7366657220746f206e6f6e20455243373231526581527f63656976657220696d706c656d656e746572000000000000000000000000000060208201529150612cc3565b602080825281016109c2816136c9565b60006109c28260601b90565b60006109c282613733565b61257261375682612627565b61373f565b6000613767828461374a565b50601401919050565b600061377a825190565b613788818560208601612586565b9290920192915050565b600061379e8285613770565b915061174e8284613770565b600481526000602082017f6e616d650000000000000000000000000000000000000000000000000000000081529150612e76565b600681526000602082017f48696464656e000000000000000000000000000000000000000000000000000081529150612e76565b60408082528101613822816137aa565b905081810360208301526109c2816137de565b600581526000602082017f696d61676500000000000000000000000000000000000000000000000000000081529150612e76565b6040808252810161387981613835565b90508181036020830152610ee68184613315565b600c81526000602082017f65787465726e616c5f75726c000000000000000000000000000000000000000081529150612e76565b604080825281016138798161388d565b600d81526000602082017f616e696d6174696f6e5f75726c0000000000000000000000000000000000000081529150612e76565b60408082528101613879816138d1565b7f7b0000000000000000000000000000000000000000000000000000000000000081526000612f48565b7f2c0000000000000000000000000000000000000000000000000000000000000081526000612f48565b7f7d0000000000000000000000000000000000000000000000000000000000000081526000612f48565b600061399e82613915565b91506139aa8287613770565b91506139b58261393f565b7f2261747472696275746573223a205b5d00000000000000000000000000000000815260100191506139e68261393f565b91506139f28286613770565b91506139fd8261393f565b9150613a098285613770565b9150613a148261393f565b9150613a208284613770565b9150613a2b82613969565b9695505050505050565b7f646174613a6170706c69636174696f6e2f6a736f6e3b6261736536342c0000008152601d016000610ee68284613770565b6000613a7382886126a0565b602082019150613a8382876126a0565b602082019150613a93828661374a565b601482019150613aa38285613770565b9150613aaf8284613770565b979650505050505050565b60808101613ac88287612638565b613ad56020830186612638565b613ae260408301856126a0565b8181036060830152613a2b81846125b2565b80516109c28161252b565b600060208284031215613b1457613b14600080fd5b600061174e8484613af4565b634e487b7160e01b600052601260045260246000fd5b600082613b4557613b45613b20565b500490565b600082821015613b5c57613b5c612e18565b500390565b600082613b7057613b70613b20565b50069056fe4142434445464748494a4b4c4d4e4f505152535455565758595a6162636465666768696a6b6c6d6e6f707172737475767778797a303132333435363738392b2fa26469706673582212207367815abc39e06c0f6d34bd48ab4393c4a42f5f4c078e5ce1d4a37a2cfe063764736f6c63430008090033000000000000000000000000000000000000000000000000000000000000008000000000000000000000000000000000000000000000000000000000000000a0000000000000000000000000a5409ec958c83c3f309868babaca7c86dcb077c1000000000000000000000000593b94c059f37f1af542c25a0f4b22cd2695fb680000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000002268747470733a2f2f756e69667269656e64732e696f2f6e66742f67656e657369732f000000000000000000000000000000000000000000000000000000000000
Deployed Bytecode
0x60806040526004361061033f5760003560e01c80638da5cb5b116101b0578063c87b56dd116100ec578063e5d089ff11610095578063f2fde38b1161006f578063f2fde38b1461090f578063f3993d111461092f578063f43a22dc1461094f578063f73c814b1461096457600080fd5b8063e5d089ff146108af578063e985e9c5146108cf578063f0f44260146108ef57600080fd5b8063d26ea6c0116100c6578063d26ea6c014610863578063d58bcaf014610883578063d5abeb011461089957600080fd5b8063c87b56dd14610803578063caf832eb14610823578063cd7c03261461084357600080fd5b8063aa98e0c611610159578063bd32fb6611610133578063bd32fb6614610790578063c4be5b59146107b0578063c51c7f71146107c3578063c5ac58e1146107e357600080fd5b8063aa98e0c614610745578063b51bbbdf1461075b578063b88d4fde1461077057600080fd5b80639c1cd7951161018a5780639c1cd795146106cb5780639ec00c95146106f8578063a22cb4651461072557600080fd5b80638da5cb5b1461067d57806395d89b411461069b5780639906efbe146106b057600080fd5b80634f6ccce71161027f57806361d027b31161022857806370a082311161020257806370a0823114610612578063715018a61461063257806375172a8b146106475780638cf7be7e1461065d57600080fd5b806361d027b3146105bd5780636352211e146105dd5780636c0360eb146105fd57600080fd5b80635a4fee30116102595780635a4fee30146105585780635bab26e2146105785780635bc020bc146105a857600080fd5b80634f6ccce7146104fe57806354214f691461051e57806355f804b31461053857600080fd5b80632db11544116102ec57806342842e0e116102c657806342842e0e1461047157806342966c6814610491578063438b6300146104b15780634d44660c146104de57600080fd5b80632db11544146104295780632f745c591461043c5780633ccfd60b1461045c57600080fd5b8063095ea7b31161031d578063095ea7b3146103c957806318160ddd146103eb57806323b872dd1461040957600080fd5b806301ffc9a71461034457806306fdde031461037a578063081812fc1461039c575b600080fd5b34801561035057600080fd5b5061036461035f36600461254d565b610984565b6040516103719190612578565b60405180910390f35b34801561038657600080fd5b5061038f6109c8565b60405161037191906125e4565b3480156103a857600080fd5b506103bc6103b7366004612606565b610a5a565b6040516103719190612641565b3480156103d557600080fd5b506103e96103e4366004612663565b610aa6565b005b3480156103f757600080fd5b506002545b60405161037191906126a6565b34801561041557600080fd5b506103e96104243660046126b4565b610b2c565b6103e9610437366004612606565b610b5e565b34801561044857600080fd5b506103fc610457366004612663565b610c08565b34801561046857600080fd5b506103e9610cbb565b34801561047d57600080fd5b506103e961048c3660046126b4565b610d69565b34801561049d57600080fd5b506103e96104ac366004612606565b610d84565b3480156104bd57600080fd5b506104d16104cc366004612704565b610db2565b6040516103719190612782565b3480156104ea57600080fd5b506103646104f93660046127e5565b610e6b565b34801561050a57600080fd5b506103fc610519366004612606565b610eed565b34801561052a57600080fd5b50600f546103649060ff1681565b34801561054457600080fd5b506103e9610553366004612934565b610f15565b34801561056457600080fd5b506103e9610573366004612a12565b610f56565b34801561058457600080fd5b50610364610593366004612704565b60106020526000908152604090205460ff1681565b3480156105b457600080fd5b506103e9610fa0565b3480156105c957600080fd5b50600a546103bc906001600160a01b031681565b3480156105e957600080fd5b506103bc6105f8366004612606565b610fde565b34801561060957600080fd5b5061038f611028565b34801561061e57600080fd5b506103fc61062d366004612704565b6110b6565b34801561063e57600080fd5b506103e9611141565b34801561065357600080fd5b506103fc600d5481565b34801561066957600080fd5b506103e9610678366004612606565b611177565b34801561068957600080fd5b506005546001600160a01b03166103bc565b3480156106a757600080fd5b5061038f6111ab565b3480156106bc57600080fd5b506103fc66f6a11f484ec00081565b3480156106d757600080fd5b506103fc6106e6366004612606565b60126020526000908152604090205481565b34801561070457600080fd5b506103fc610713366004612704565b60116020526000908152604090205481565b34801561073157600080fd5b506103e9610740366004612abf565b6111ba565b34801561075157600080fd5b506103fc600b5481565b34801561076757600080fd5b5061038f611252565b34801561077c57600080fd5b506103e961078b366004612af2565b61125f565b34801561079c57600080fd5b506103e96107ab366004612606565b611297565b6103e96107be366004612b39565b6112c6565b3480156107cf57600080fd5b506103e96107de366004612606565b6113eb565b3480156107ef57600080fd5b506103e96107fe366004612934565b61141a565b34801561080f57600080fd5b5061038f61081e366004612606565b611457565b34801561082f57600080fd5b506103e961083e366004612606565b61154a565b34801561084f57600080fd5b506009546103bc906001600160a01b031681565b34801561086f57600080fd5b506103e961087e366004612704565b611579565b34801561088f57600080fd5b506103fc60065481565b3480156108a557600080fd5b506103fc600c5481565b3480156108bb57600080fd5b506103e96108ca366004612606565b6115c5565b3480156108db57600080fd5b506103646108ea366004612ba7565b611646565b3480156108fb57600080fd5b506103e961090a366004612704565b611756565b34801561091b57600080fd5b506103e961092a366004612704565b6117a2565b34801561093b57600080fd5b506103e961094a366004612bda565b6117fb565b34801561095b57600080fd5b506103fc600b81565b34801561097057600080fd5b506103e961097f366004612704565b61183d565b60006001600160e01b031982167f780e9d630000000000000000000000000000000000000000000000000000000014806109c257506109c282611890565b92915050565b6060600080546109d790612c51565b80601f0160208091040260200160405190810160405280929190818152602001828054610a0390612c51565b8015610a505780601f10610a2557610100808354040283529160200191610a50565b820191906000526020600020905b815481529060010190602001808311610a3357829003601f168201915b5050505050905090565b6000610a658261192b565b610a8a5760405162461bcd60e51b8152600401610a8190612cca565b60405180910390fd5b506000908152600360205260409020546001600160a01b031690565b6000610ab182610fde565b9050806001600160a01b0316836001600160a01b03161415610ae55760405162461bcd60e51b8152600401610a8190612d34565b336001600160a01b0382161480610b015750610b018133611646565b610b1d5760405162461bcd60e51b8152600401610a8190612d9e565b610b278383611975565b505050565b610b37335b826119e3565b610b535760405162461bcd60e51b8152600401610a8190612e08565b610b27838383611a60565b600254600c54610b6e8383612e2e565b10610b8b5760405162461bcd60e51b8152600401610a8190612e7d565b600b8210610bab5760405162461bcd60e51b8152600401610a8190612ec1565b3460065483610bba9190612ed1565b14610bd75760405162461bcd60e51b8152600401610a8190612f24565b60005b82811015610b2757610bf6335b610bf18385612e2e565b611b38565b80610c0081612f34565b915050610bda565b6000610c13836110b6565b8210610c315760405162461bcd60e51b8152600401610a8190612fa9565b6000805b600254811015610ca25760028181548110610c5257610c52612fb9565b6000918252602090912001546001600160a01b0386811691161415610c905783821415610c825791506109c29050565b81610c8c81612f34565b9250505b80610c9a81612f34565b915050610c35565b5060405162461bcd60e51b8152600401610a8190612fa9565b6005546001600160a01b03163314610ce55760405162461bcd60e51b8152600401610a8190613001565b600a546040516000916001600160a01b0316904790610d0390613011565b60006040518083038185875af1925050503d8060008114610d40576040519150601f19603f3d011682016040523d82523d6000602084013e610d45565b606091505b5050905080610d665760405162461bcd60e51b8152600401610a819061304d565b50565b610b278383836040518060200160405280600081525061125f565b610d8d33610b31565b610da95760405162461bcd60e51b8152600401610a8190613091565b610d6681611c13565b60606000610dbf836110b6565b905080610de05760408051600080825260208201909252905b509392505050565b60008167ffffffffffffffff811115610dfb57610dfb612841565b604051908082528060200260200182016040528015610e24578160200160208202803683370190505b50905060005b82811015610dd857610e3c8582610c08565b828281518110610e4e57610e4e612fb9565b602090810291909101015280610e6381612f34565b915050610e2a565b6000805b82811015610ee057846001600160a01b03166002858584818110610e9557610e95612fb9565b9050602002013581548110610eac57610eac612fb9565b6000918252602090912001546001600160a01b031614610ed0576000915050610ee6565b610ed981612f34565b9050610e6f565b50600190505b9392505050565b6002546000908210610f115760405162461bcd60e51b8152600401610a81906130fb565b5090565b6005546001600160a01b03163314610f3f5760405162461bcd60e51b8152600401610a8190613001565b8051610f5290600790602084019061249b565b5050565b60005b8251811015610f9957610f878585858481518110610f7957610f79612fb9565b60200260200101518561125f565b80610f9181612f34565b915050610f59565b5050505050565b6005546001600160a01b03163314610fca5760405162461bcd60e51b8152600401610a8190613001565b600f805460ff19811660ff90911615179055565b60008060028381548110610ff457610ff4612fb9565b6000918252602090912001546001600160a01b03169050806109c25760405162461bcd60e51b8152600401610a8190613165565b6007805461103590612c51565b80601f016020809104026020016040519081016040528092919081815260200182805461106190612c51565b80156110ae5780601f10611083576101008083540402835291602001916110ae565b820191906000526020600020905b81548152906001019060200180831161109157829003601f168201915b505050505081565b60006001600160a01b0382166110de5760405162461bcd60e51b8152600401610a81906131cf565b6000805b60025481101561113a57600281815481106110ff576110ff612fb9565b6000918252602090912001546001600160a01b038581169116141561112a5761112782612f34565b91505b61113381612f34565b90506110e2565b5092915050565b6005546001600160a01b0316331461116b5760405162461bcd60e51b8152600401610a8190613001565b6111756000611c95565b565b6005546001600160a01b031633146111a15760405162461bcd60e51b8152600401610a8190613001565b6000600b55600c55565b6060600180546109d790612c51565b6001600160a01b0382163314156111e35760405162461bcd60e51b8152600401610a8190613213565b3360008181526004602090815260408083206001600160a01b038716808552925291829020805460ff191685151517905590519091907f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c3190611246908590612578565b60405180910390a35050565b6008805461103590612c51565b61126933836119e3565b6112855760405162461bcd60e51b8152600401610a8190612e08565b61129184848484611ce7565b50505050565b6005546001600160a01b031633146112c15760405162461bcd60e51b8152600401610a8190613001565b600b55565b346112d866f6a11f484ec00086612ed1565b146112f55760405162461bcd60e51b8152600401610a8190612f24565b61133f82828080602002602001604051908101604052809392919081815260200183836020028082843760009201919091525050600b54915061133a90503387611d1a565b611d74565b61135b5760405162461bcd60e51b8152600401610a819061327d565b336000908152601160205260409020548390611378908690612e2e565b11156113965760405162461bcd60e51b8152600401610a81906132c1565b33600090815260116020526040812080548692906113b5908490612e2e565b909155505060025460005b858110156113e3576113d133610be7565b806113db81612f34565b9150506113c0565b505050505050565b6005546001600160a01b031633146114155760405162461bcd60e51b8152600401610a8190613001565b600d55565b6005546001600160a01b031633146114445760405162461bcd60e51b8152600401610a8190613001565b8051610f5290600890602084019061249b565b60606114628261192b565b61147e5760405162461bcd60e51b8152600401610a8190613305565b600f5460ff16611490576109c2611d8a565b600082815260126020526040908190205490517fe333df4100000000000000000000000000000000000000000000000000000000815273d16fd6b10d774f591035880b4a4b2b5e9aa0f76b9163e333df41916114f691869160079160089160040161338b565b60006040518083038186803b15801561150e57600080fd5b505af4158015611522573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f191682016040526109c2919081019061342f565b6005546001600160a01b031633146115745760405162461bcd60e51b8152600401610a8190613001565b600655565b6005546001600160a01b031633146115a35760405162461bcd60e51b8152600401610a8190613001565b600980546001600160a01b0319166001600160a01b0392909216919091179055565b6005546001600160a01b031633146115ef5760405162461bcd60e51b8152600401610a8190613001565b600d54600254611600908390612e2e565b1061161d5760405162461bcd60e51b8152600401610a819061349e565b60025460005b82811015610b275761163433610be7565b8061163e81612f34565b915050611623565b6009546040517fc45527910000000000000000000000000000000000000000000000000000000081526000916001600160a01b039081169190841690829063c455279190611698908890600401612641565b60206040518083038186803b1580156116b057600080fd5b505afa1580156116c4573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906116e891906134cd565b6001600160a01b0316148061171557506001600160a01b03831660009081526010602052604090205460ff165b156117245760019150506109c2565b6001600160a01b0380851660009081526004602090815260408083209387168352929052205460ff165b949350505050565b6005546001600160a01b031633146117805760405162461bcd60e51b8152600401610a8190613001565b600a80546001600160a01b0319166001600160a01b0392909216919091179055565b6005546001600160a01b031633146117cc5760405162461bcd60e51b8152600401610a8190613001565b6001600160a01b0381166117f25760405162461bcd60e51b8152600401610a8190613548565b610d6681611c95565b60005b81518110156112915761182b848484848151811061181e5761181e612fb9565b6020026020010151610b2c565b8061183581612f34565b9150506117fe565b6005546001600160a01b031633146118675760405162461bcd60e51b8152600401610a8190613001565b6001600160a01b03166000908152601060205260409020805460ff19811660ff90911615179055565b60006001600160e01b031982167f80ac58cd0000000000000000000000000000000000000000000000000000000014806118f357506001600160e01b031982167f5b5e139f00000000000000000000000000000000000000000000000000000000145b806109c257507f01ffc9a7000000000000000000000000000000000000000000000000000000006001600160e01b03198316146109c2565b600254600090821080156109c2575060006001600160a01b03166002838154811061195857611958612fb9565b6000918252602090912001546001600160a01b0316141592915050565b600081815260036020526040902080546001600160a01b0319166001600160a01b03841690811790915581906119aa82610fde565b6001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b60006119ee8261192b565b611a0a5760405162461bcd60e51b8152600401610a81906135a1565b6000611a1583610fde565b9050806001600160a01b0316846001600160a01b03161480611a505750836001600160a01b0316611a4584610a5a565b6001600160a01b0316145b8061174e575061174e8185611646565b826001600160a01b0316611a7382610fde565b6001600160a01b031614611a995760405162461bcd60e51b8152600401610a819061360b565b6001600160a01b038216611abf5760405162461bcd60e51b8152600401610a8190613675565b611aca600082611975565b8160028281548110611ade57611ade612fb9565b6000918252602082200180546001600160a01b0319166001600160a01b03938416179055604051839285811692908716917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9190a4505050565b611b418161192b565b15611b5e5760405162461bcd60e51b8152600401610a81906136b9565b600e8054906000611b6e83612f34565b9091555050600280546001810182556000919091527f405787fa12a823e0f2b7631cc41b3ba8828b3321ca811111fa75cd3aa3bb5ace0180546001600160a01b0319166001600160a01b038416179055611bc88282612007565b60008281526012602052604080822092909255905182916001600160a01b038516917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b6000611c1e82610fde565b9050611c2b600083611975565b600060028381548110611c4057611c40612fb9565b6000918252602082200180546001600160a01b0319166001600160a01b0393841617905560405184928416907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908390a45050565b600580546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b611cf2848484611a60565b611cfe84848484612053565b6112915760405162461bcd60e51b8152600401610a8190613723565b600082604051602001611d2d919061375b565b604051602081830303815290604052611d4583612160565b604051602001611d56929190613792565b60405160208183030381529060405280519060200120905092915050565b600082611d818584612292565b14949350505050565b6060611fe373d16fd6b10d774f591035880b4a4b2b5e9aa0f76b630489ab156040518163ffffffff1660e01b8152600401611dc490613812565b60006040518083038186803b158015611ddc57600080fd5b505af4158015611df0573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f19168201604052611e18919081019061342f565b604051630489ab1560e01b815273d16fd6b10d774f591035880b4a4b2b5e9aa0f76b90630489ab1590611e5090600790600401613869565b60006040518083038186803b158015611e6857600080fd5b505af4158015611e7c573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f19168201604052611ea4919081019061342f565b604051630489ab1560e01b815273d16fd6b10d774f591035880b4a4b2b5e9aa0f76b90630489ab1590611edc906007906004016138c1565b60006040518083038186803b158015611ef457600080fd5b505af4158015611f08573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f19168201604052611f30919081019061342f565b604051630489ab1560e01b815273d16fd6b10d774f591035880b4a4b2b5e9aa0f76b90630489ab1590611f6890600790600401613905565b60006040518083038186803b158015611f8057600080fd5b505af4158015611f94573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f19168201604052611fbc919081019061342f565b604051602001611fcf9493929190613993565b6040516020818303038152906040526122fe565b604051602001611ff39190613a35565b604051602081830303815290604052905090565b6000444284612017600e54612160565b61202086612160565b604051602001612034959493929190613a67565b60408051601f1981840301815291905280516020909101209392505050565b60006001600160a01b0384163b1561215557604051630a85bd0160e11b81526001600160a01b0385169063150b7a0290612097903390899088908890600401613aba565b602060405180830381600087803b1580156120b157600080fd5b505af19250505080156120e1575060408051601f3d908101601f191682019092526120de91810190613aff565b60015b61213b573d80801561210f576040519150601f19603f3d011682016040523d82523d6000602084013e612114565b606091505b5080516121335760405162461bcd60e51b8152600401610a8190613723565b805181602001fd5b6001600160e01b031916630a85bd0160e11b14905061174e565b506001949350505050565b6060816121a057505060408051808201909152600181527f3000000000000000000000000000000000000000000000000000000000000000602082015290565b8160005b81156121ca57806121b481612f34565b91506121c39050600a83613b36565b91506121a4565b60008167ffffffffffffffff8111156121e5576121e5612841565b6040519080825280601f01601f19166020018201604052801561220f576020820181803683370190505b5090505b841561174e57612224600183613b4a565b9150612231600a86613b61565b61223c906030612e2e565b60f81b81838151811061225157612251612fb9565b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a90535061228b600a86613b36565b9450612213565b600081815b8451811015610dd85760008582815181106122b4576122b4612fb9565b602002602001015190508083116122da57600083815260208290526040902092506122eb565b600081815260208490526040902092505b50806122f681612f34565b915050612297565b606081516000141561231e57505060408051602081019091526000815290565b6000604051806060016040528060408152602001613b76604091399050600060038451600261234d9190612e2e565b6123579190613b36565b612362906004612ed1565b90506000612371826020612e2e565b67ffffffffffffffff81111561238957612389612841565b6040519080825280601f01601f1916602001820160405280156123b3576020820181803683370190505b509050818152600183018586518101602084015b8183101561241f576003830192508251603f8160121c168501518253600182019150603f81600c1c168501518253600182019150603f8160061c168501518253600182019150603f81168501518253506001016123c7565b60038951066001811461243957600281146124655761248d565b7f3d3d00000000000000000000000000000000000000000000000000000000000060011983015261248d565b7f3d000000000000000000000000000000000000000000000000000000000000006000198301525b509398975050505050505050565b8280546124a790612c51565b90600052602060002090601f0160209004810192826124c9576000855561250f565b82601f106124e257805160ff191683800117855561250f565b8280016001018555821561250f579182015b8281111561250f5782518255916020019190600101906124f4565b50610f119291505b80821115610f115760008155600101612517565b6001600160e01b031981165b8114610d6657600080fd5b80356109c28161252b565b60006020828403121561256257612562600080fd5b600061174e8484612542565b8015155b82525050565b602081016109c2828461256e565b60005b838110156125a1578181015183820152602001612589565b838111156112915750506000910152565b60006125bc825190565b8084526020840193506125d3818560208601612586565b601f01601f19169290920192915050565b60208082528101610ee681846125b2565b80612537565b80356109c2816125f5565b60006020828403121561261b5761261b600080fd5b600061174e84846125fb565b60006001600160a01b0382166109c2565b61257281612627565b602081016109c28284612638565b61253781612627565b80356109c28161264f565b6000806040838503121561267957612679600080fd5b60006126858585612658565b9250506020612696858286016125fb565b9150509250929050565b80612572565b602081016109c282846126a0565b6000806000606084860312156126cc576126cc600080fd5b60006126d88686612658565b93505060206126e986828701612658565b92505060406126fa868287016125fb565b9150509250925092565b60006020828403121561271957612719600080fd5b600061174e8484612658565b600061273183836126a0565b505060200190565b6000612743825190565b80845260209384019383018060005b838110156127775781516127668882612725565b975060208301925050600101612752565b509495945050505050565b60208082528101610ee68184612739565b60008083601f8401126127a8576127a8600080fd5b50813567ffffffffffffffff8111156127c3576127c3600080fd5b6020830191508360208202830111156127de576127de600080fd5b9250929050565b6000806000604084860312156127fd576127fd600080fd5b60006128098686612658565b935050602084013567ffffffffffffffff81111561282957612829600080fd5b61283586828701612793565b92509250509250925092565b634e487b7160e01b600052604160045260246000fd5b601f19601f830116810181811067ffffffffffffffff8211171561287d5761287d612841565b6040525050565b600061288f60405190565b905061289b8282612857565b919050565b600067ffffffffffffffff8211156128ba576128ba612841565b601f19601f83011660200192915050565b82818337506000910152565b60006128ea6128e5846128a0565b612884565b90508281526020810184848401111561290557612905600080fd5b610dd88482856128cb565b600082601f83011261292457612924600080fd5b813561174e8482602086016128d7565b60006020828403121561294957612949600080fd5b813567ffffffffffffffff81111561296357612963600080fd5b61174e84828501612910565b600067ffffffffffffffff82111561298957612989612841565b5060209081020190565b60006129a16128e58461296f565b838152905060208082019084028301858111156129c0576129c0600080fd5b835b818110156129e457806129d588826125fb565b845250602092830192016129c2565b5050509392505050565b600082601f830112612a0257612a02600080fd5b813561174e848260208601612993565b60008060008060808587031215612a2b57612a2b600080fd5b6000612a378787612658565b9450506020612a4887828801612658565b935050604085013567ffffffffffffffff811115612a6857612a68600080fd5b612a74878288016129ee565b925050606085013567ffffffffffffffff811115612a9457612a94600080fd5b612aa087828801612910565b91505092959194509250565b801515612537565b80356109c281612aac565b60008060408385031215612ad557612ad5600080fd5b6000612ae18585612658565b925050602061269685828601612ab4565b60008060008060808587031215612b0b57612b0b600080fd5b6000612b178787612658565b9450506020612b2887828801612658565b9350506040612a74878288016125fb565b60008060008060608587031215612b5257612b52600080fd5b6000612b5e87876125fb565b9450506020612b6f878288016125fb565b935050604085013567ffffffffffffffff811115612b8f57612b8f600080fd5b612b9b87828801612793565b95989497509550505050565b60008060408385031215612bbd57612bbd600080fd5b6000612bc98585612658565b925050602061269685828601612658565b600080600060608486031215612bf257612bf2600080fd5b6000612bfe8686612658565b9350506020612c0f86828701612658565b925050604084013567ffffffffffffffff811115612c2f57612c2f600080fd5b6126fa868287016129ee565b634e487b7160e01b600052602260045260246000fd5b600281046001821680612c6557607f821691505b60208210811415612c7857612c78612c3b565b50919050565b602c81526000602082017f4552433732313a20617070726f76656420717565727920666f72206e6f6e657881526b34b9ba32b73a103a37b5b2b760a11b602082015291505b5060400190565b602080825281016109c281612c7e565b602181526000602082017f4552433732313a20617070726f76616c20746f2063757272656e74206f776e6581527f720000000000000000000000000000000000000000000000000000000000000060208201529150612cc3565b602080825281016109c281612cda565b603881526000602082017f4552433732313a20617070726f76652063616c6c6572206973206e6f74206f7781527f6e6572206e6f7220617070726f76656420666f7220616c6c000000000000000060208201529150612cc3565b602080825281016109c281612d44565b603181526000602082017f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f81527f776e6572206e6f7220617070726f76656400000000000000000000000000000060208201529150612cc3565b602080825281016109c281612dae565b634e487b7160e01b600052601160045260246000fd5b60008219821115612e4157612e41612e18565b500190565b601381526000602082017f45786365646573206d617820737570706c792e00000000000000000000000000815291505b5060200190565b602080825281016109c281612e46565b601c81526000602082017f45786365656473206d617820706572207472616e73616374696f6e2e0000000081529150612e76565b602080825281016109c281612e8d565b6000816000190483118215151615612eeb57612eeb612e18565b500290565b601781526000602082017f496e76616c69642066756e64732070726f76696465642e00000000000000000081529150612e76565b602080825281016109c281612ef0565b6000600019821415612f4857612f48612e18565b5060010190565b602b81526000602082017f455243373231456e756d657261626c653a206f776e657220696e646578206f7581527f74206f6620626f756e647300000000000000000000000000000000000000000060208201529150612cc3565b602080825281016109c281612f4f565b634e487b7160e01b600052603260045260246000fd5b60208082527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657291019081526000612e76565b602080825281016109c281612fcf565b6000816109c2565b601b81526000602082017f4661696c656420746f2073656e6420746f2074726561737572792e000000000081529150612e76565b602080825281016109c281613019565b601581526000602082017f4e6f7420617070726f76656420746f206275726e2e000000000000000000000081529150612e76565b602080825281016109c28161305d565b602c81526000602082017f455243373231456e756d657261626c653a20676c6f62616c20696e646578206f81527f7574206f6620626f756e6473000000000000000000000000000000000000000060208201529150612cc3565b602080825281016109c2816130a1565b602981526000602082017f4552433732313a206f776e657220717565727920666f72206e6f6e657869737481527f656e7420746f6b656e000000000000000000000000000000000000000000000060208201529150612cc3565b602080825281016109c28161310b565b602a81526000602082017f4552433732313a2062616c616e636520717565727920666f7220746865207a6581527f726f20616464726573730000000000000000000000000000000000000000000060208201529150612cc3565b602080825281016109c281613175565b601981526000602082017f4552433732313a20617070726f766520746f2063616c6c65720000000000000081529150612e76565b602080825281016109c2816131df565b602381526000602082017f496e76616c6964204d65726b6c6520547265652070726f6f6620737570706c6981527f65642e000000000000000000000000000000000000000000000000000000000060208201529150612cc3565b602080825281016109c281613223565b601981526000602082017f457863656564732077686974656c69737420737570706c792e0000000000000081529150612e76565b602080825281016109c28161328d565b601581526000602082017f546f6b656e20646f6573206e6f742065786973742e000000000000000000000081529150612e76565b602080825281016109c2816132d1565b6000815461332281612c51565b808552602085019450600182168015613342576001811461335457613382565b60ff1983168652602086019350613382565b60008581526020902060005b8381101561337c57815488820152600190910190602001613360565b87019450505b50505092915050565b6080810161339982876126a0565b81810360208301526133ab8186613315565b905081810360408301526133bf8185613315565b90506133ce60608301846126a0565b95945050505050565b60006133e56128e5846128a0565b90508281526020810184848401111561340057613400600080fd5b610dd8848285612586565b600082601f83011261341f5761341f600080fd5b815161174e8482602086016133d7565b60006020828403121561344457613444600080fd5b815167ffffffffffffffff81111561345e5761345e600080fd5b61174e8482850161340b565b601781526000602082017f526573657276657320616c72656164792074616b656e2e00000000000000000081529150612e76565b602080825281016109c28161346a565b60006109c282612627565b612537816134ae565b80516109c2816134b9565b6000602082840312156134e2576134e2600080fd5b600061174e84846134c2565b602681526000602082017f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206181527f646472657373000000000000000000000000000000000000000000000000000060208201529150612cc3565b602080825281016109c2816134ee565b602c81526000602082017f4552433732313a206f70657261746f7220717565727920666f72206e6f6e657881526b34b9ba32b73a103a37b5b2b760a11b60208201529150612cc3565b602080825281016109c281613558565b602981526000602082017f4552433732313a207472616e73666572206f6620746f6b656e2074686174206981527f73206e6f74206f776e000000000000000000000000000000000000000000000060208201529150612cc3565b602080825281016109c2816135b1565b602481526000602082017f4552433732313a207472616e7366657220746f20746865207a65726f2061646481527f726573730000000000000000000000000000000000000000000000000000000060208201529150612cc3565b602080825281016109c28161361b565b601481526000602082017f546f6b656e20616c7265616479206d696e74656400000000000000000000000081529150612e76565b602080825281016109c281613685565b603281526000602082017f4552433732313a207472616e7366657220746f206e6f6e20455243373231526581527f63656976657220696d706c656d656e746572000000000000000000000000000060208201529150612cc3565b602080825281016109c2816136c9565b60006109c28260601b90565b60006109c282613733565b61257261375682612627565b61373f565b6000613767828461374a565b50601401919050565b600061377a825190565b613788818560208601612586565b9290920192915050565b600061379e8285613770565b915061174e8284613770565b600481526000602082017f6e616d650000000000000000000000000000000000000000000000000000000081529150612e76565b600681526000602082017f48696464656e000000000000000000000000000000000000000000000000000081529150612e76565b60408082528101613822816137aa565b905081810360208301526109c2816137de565b600581526000602082017f696d61676500000000000000000000000000000000000000000000000000000081529150612e76565b6040808252810161387981613835565b90508181036020830152610ee68184613315565b600c81526000602082017f65787465726e616c5f75726c000000000000000000000000000000000000000081529150612e76565b604080825281016138798161388d565b600d81526000602082017f616e696d6174696f6e5f75726c0000000000000000000000000000000000000081529150612e76565b60408082528101613879816138d1565b7f7b0000000000000000000000000000000000000000000000000000000000000081526000612f48565b7f2c0000000000000000000000000000000000000000000000000000000000000081526000612f48565b7f7d0000000000000000000000000000000000000000000000000000000000000081526000612f48565b600061399e82613915565b91506139aa8287613770565b91506139b58261393f565b7f2261747472696275746573223a205b5d00000000000000000000000000000000815260100191506139e68261393f565b91506139f28286613770565b91506139fd8261393f565b9150613a098285613770565b9150613a148261393f565b9150613a208284613770565b9150613a2b82613969565b9695505050505050565b7f646174613a6170706c69636174696f6e2f6a736f6e3b6261736536342c0000008152601d016000610ee68284613770565b6000613a7382886126a0565b602082019150613a8382876126a0565b602082019150613a93828661374a565b601482019150613aa38285613770565b9150613aaf8284613770565b979650505050505050565b60808101613ac88287612638565b613ad56020830186612638565b613ae260408301856126a0565b8181036060830152613a2b81846125b2565b80516109c28161252b565b600060208284031215613b1457613b14600080fd5b600061174e8484613af4565b634e487b7160e01b600052601260045260246000fd5b600082613b4557613b45613b20565b500490565b600082821015613b5c57613b5c612e18565b500390565b600082613b7057613b70613b20565b50069056fe4142434445464748494a4b4c4d4e4f505152535455565758595a6162636465666768696a6b6c6d6e6f707172737475767778797a303132333435363738392b2fa26469706673582212207367815abc39e06c0f6d34bd48ab4393c4a42f5f4c078e5ce1d4a37a2cfe063764736f6c63430008090033
Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)
000000000000000000000000000000000000000000000000000000000000008000000000000000000000000000000000000000000000000000000000000000a0000000000000000000000000a5409ec958c83c3f309868babaca7c86dcb077c1000000000000000000000000593b94c059f37f1af542c25a0f4b22cd2695fb680000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000002268747470733a2f2f756e69667269656e64732e696f2f6e66742f67656e657369732f000000000000000000000000000000000000000000000000000000000000
-----Decoded View---------------
Arg [0] : _baseURI (string):
Arg [1] : _animationURI (string): https://unifriends.io/nft/genesis/
Arg [2] : _proxyRegistryAddress (address): 0xa5409ec958C83C3f309868babACA7c86DCB077c1
Arg [3] : _treasury (address): 0x593b94c059f37f1AF542c25A0F4B22Cd2695Fb68
-----Encoded View---------------
8 Constructor Arguments found :
Arg [0] : 0000000000000000000000000000000000000000000000000000000000000080
Arg [1] : 00000000000000000000000000000000000000000000000000000000000000a0
Arg [2] : 000000000000000000000000a5409ec958c83c3f309868babaca7c86dcb077c1
Arg [3] : 000000000000000000000000593b94c059f37f1af542c25a0f4b22cd2695fb68
Arg [4] : 0000000000000000000000000000000000000000000000000000000000000000
Arg [5] : 0000000000000000000000000000000000000000000000000000000000000022
Arg [6] : 68747470733a2f2f756e69667269656e64732e696f2f6e66742f67656e657369
Arg [7] : 732f000000000000000000000000000000000000000000000000000000000000
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.