Overview
TokenID
186
Total Transfers
-
Market
Onchain Market Cap
$0.00
Circulating Supply Market Cap
-
Other Info
Token Contract
Loading...
Loading
Loading...
Loading
Loading...
Loading
# | Exchange | Pair | Price | 24H Volume | % Volume |
---|
Contract Name:
infinityTokensPublic
Compiler Version
v0.8.3+commit.8d00100c
Optimization Enabled:
Yes with 200 runs
Other Settings:
default evmVersion
Contract Source Code (Solidity Standard Json-Input format)
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import "./derived/OwnableClone.sol"; import "@openzeppelin/contracts/utils/math/SafeMath.sol"; import "@openzeppelin/contracts/utils/Strings.sol"; import "./legacy/ERC721.sol"; import "./HasSecondarySalesFees.sol"; import "./sales/Saleable.sol"; contract infinityTokensPublic is ERC721, OwnableClone, HasSecondarySaleFees, Saleable { using SafeMath for uint256; uint256 NFTIndex; address public factoryContract; struct Attributes { string name; string value; } mapping(address => bool) public authorisedCaller; mapping(uint256 => bool[100]) artworkSlotFilled; mapping(uint256 => string[100]) hashIPFSMemory; mapping(uint256 => string[100]) hashArweaveMemory; mapping(uint256 => string[100]) artworkTypeMemory; mapping(uint256 => string) mouldName; mapping(uint256 => string) mouldDescription; mapping(uint256 => Attributes[]) mouldAttributes; mapping(uint256 => uint256) editionSizeMemory; mapping(uint256 => uint256) editionNumberMemory; mapping(uint256 => uint256) redemptionMouldMemory; mapping(uint256 => uint64) redemptionExpirationMouldMemory; mapping(uint256 => uint256) redemptionMemory; mapping(uint256 => uint256) evolutionLevelMemory; mapping(uint256 => uint256) totalCreated; mapping(uint256 => uint256) totalMinted; mapping (uint256 => bool) mintingActive; string public fileIPFSReferenceURL; string public fileArweaveReferenceURL; string multiURI1; string multiURI2; string multiURI3; address public artistWalletAddress; address public factoryAddressRef; function addressToString(address input) internal pure returns (string memory) { return Strings.toHexString(uint256(uint160(input))); } constructor(string memory _name, string memory _symbol, address factoryAddress, address contractCreator) ERC721(_name, _symbol) { _init(factoryAddress, contractCreator); } function init(string memory _name, string memory _symbol, address factoryAddress, address contractCreator) public { require(factoryContract == address(0), "already initialized"); OwnableClone.init(factoryAddress); ERC721.init(_name, _symbol); _init(factoryAddress, contractCreator); } function _init(address factoryAddress, address contractCreator) internal { updateURI(string(abi.encodePacked("https://infinitytokens.azurewebsites.net/api/HttpTrigger?artContract=",addressToString(address(this)),"&id="))); NFTIndex = 1; fileIPFSReferenceURL = "https://ipfs.infura.io/ipfs/"; fileArweaveReferenceURL = "https://arweave.net/"; updateMultiURI("https://infinitytokensmulti.azurewebsites.net/api/HttpTrigger?artContract=", "&id=", "&artworkIndex="); factoryContract = factoryAddress; artistWalletAddress = contractCreator; } event NewNFTMouldCreated(uint256 NFTIndex); event NewNFTCreatedFor(uint256 NFTId, uint256 tokenId, address recipient); event NewArtworkAdded(uint256 mouldToUpdate, string IPFSHash, string arweaveHash, string artworkType, uint256 artworkIndex); event EvolvedNFT(uint256 NFTId, uint256 currentEvolutionLevel); event RedeemNFT(uint256 tokenId, string redemptionNote); event CloseNFTWindow(uint256 NFTId); modifier authorised() { require(authorisedCaller[msg.sender] || msg.sender == owner(), "VendingMachine: Not authorised to execute"); _; } function setCaller(address _caller, bool _value) external onlyOwner { authorisedCaller[_caller] = _value; } function createNFTMould( string memory artworkHashIPFS, string memory artworkHashArweave, string memory artworkType, string memory name, string memory description, Attributes[] memory attributes, uint256 editionSize, uint256 totalRedemptions, uint64 redemptionExpiration, address payable[] memory royaltyAddress, uint256[] memory royaltyBps) public onlyOwner { mintingActive[NFTIndex] = true; hashIPFSMemory[NFTIndex][1] = artworkHashIPFS; hashArweaveMemory[NFTIndex][1] = artworkHashArweave; artworkTypeMemory[NFTIndex][1] = artworkType; mouldName[NFTIndex] = name; mouldDescription[NFTIndex] = description; while(mouldAttributes[NFTIndex].length < attributes.length) { mouldAttributes[NFTIndex].push(); uint256 idx = mouldAttributes[NFTIndex].length - 1; mouldAttributes[NFTIndex][idx] = attributes[idx]; } editionSizeMemory[NFTIndex] = editionSize; redemptionMouldMemory[NFTIndex] = totalRedemptions; redemptionExpirationMouldMemory[NFTIndex] = redemptionExpiration; artworkSlotFilled[NFTIndex][1] = true; evolutionLevelMemory[NFTIndex] = 1; royaltyAddressMemory[NFTIndex] = royaltyAddress; royaltyMemory[NFTIndex] = royaltyBps; totalCreated[NFTIndex] = 0; totalMinted[NFTIndex] = 0; emit NewNFTMouldCreated(NFTIndex); NFTIndex = NFTIndex + 1; } function addFile(uint256 mouldToUpdate, string memory hashIPFS, string memory hashArweave, string memory artworkType, uint256 artworkIndex) public onlyOwner{ require(artworkSlotFilled[mouldToUpdate][artworkIndex] == false); hashIPFSMemory[mouldToUpdate][artworkIndex] = hashIPFS; hashArweaveMemory[mouldToUpdate][artworkIndex] = hashArweave; artworkTypeMemory[mouldToUpdate][artworkIndex] = artworkType; artworkSlotFilled[mouldToUpdate][artworkIndex] = true; emit NewArtworkAdded(mouldToUpdate, hashIPFS, hashArweave, artworkType, artworkIndex); } function evolveNFT(uint256 NFTId) public authorised { uint256 currentEvolutionLevel = evolutionLevelMemory[NFTId]; evolutionLevelMemory[NFTId] = currentEvolutionLevel + 1; emit EvolvedNFT(NFTId, currentEvolutionLevel); } function devolveNFT(uint256 NFTId) public authorised { uint256 currentEvolutionLevel = evolutionLevelMemory[NFTId]; evolutionLevelMemory[NFTId] = currentEvolutionLevel - 1; } function setEvolutionLevel(uint256 NFTId, uint256 newLevel) public authorised { evolutionLevelMemory[NFTId] = newLevel; } function redeemNFT(uint256 tokenId, string memory redemptionNote) public { require(msg.sender == ownerOf(tokenId), "Must own this NFT to redeem"); require(redemptionMemory[tokenId] > 0, "Token has been fully redeemed"); redemptionMemory[tokenId] = redemptionMemory[tokenId] - 1; emit RedeemNFT(tokenId, redemptionNote); } function _mintInternal(uint256 NFTId, address _recipient ) internal { require(mintingActive[NFTId] == true, "Mint not active"); uint256 tokenId = totalSupply() + 1; redemptionMemory[tokenId] = redemptionMouldMemory[NFTId]; artworkNFTReference[tokenId] = NFTId; editionNumberMemory[tokenId] = totalMinted[NFTId] + 1; totalMinted[NFTId] = editionNumberMemory[tokenId]; _safeMint(_recipient, tokenId); emit NewNFTCreatedFor(NFTId, tokenId, _recipient); if (totalMinted[NFTId] == editionSizeMemory[NFTId]) { _closeNFTWindow(NFTId); } } function ownerMint(uint256 NFTId, uint256 amountToMint) public onlyOwner { require(totalMinted[NFTId] + amountToMint <= editionSizeMemory[NFTId], "Cannot mint that many editions"); for(uint256 i=0; i<amountToMint; i++) { _mintInternal(NFTId, msg.sender); } } function updateActiveState(uint256 NFTId, bool newState) public onlyOwner { mintingActive[NFTId] = newState; } function closeNFTWindow(uint256 NFTId) public onlyOwner { mintingActive[NFTId] = false; editionSizeMemory[NFTId] = totalMinted[NFTId]; emit CloseNFTWindow(NFTId); } function _closeNFTWindow(uint256 NFTId) internal { mintingActive[NFTId] = false; editionSizeMemory[NFTId] = totalMinted[NFTId]; emit CloseNFTWindow(NFTId); } function withdrawFunds() public onlyOwner { payable(msg.sender).transfer(address(this).balance); } function getFileData(uint256 tokenId, uint256 index) public view returns (string memory hashIPFS, string memory hashArweave, string memory artworkType) { require(_exists(tokenId), "Token does not exist."); uint256 NFTRef = artworkNFTReference[tokenId]; hashIPFS = hashIPFSMemory[NFTRef][index]; hashArweave = hashArweaveMemory[NFTRef][index]; artworkType = artworkTypeMemory[NFTRef][index]; } function getMetadata(uint256 tokenId) public view returns (uint256 NFTRef, string memory name, string memory description, Attributes[] memory attributes, uint256 editionSize, uint256 editionNumber, uint256 evolutionLevel, uint256 totalRedemptions, uint64 redemptionExpiration, uint256 remainingRedemptions, bool isActive) { require(_exists(tokenId), "Token does not exist."); NFTRef = artworkNFTReference[tokenId]; name = mouldName[NFTRef]; description = mouldDescription[NFTRef]; attributes = mouldAttributes[NFTRef]; editionSize = editionSizeMemory[NFTRef]; editionNumber = editionNumberMemory[tokenId]; evolutionLevel = evolutionLevelMemory[NFTRef]; totalRedemptions = redemptionMouldMemory[NFTRef]; redemptionExpiration = redemptionExpirationMouldMemory[NFTRef]; remainingRedemptions = redemptionMemory[tokenId]; isActive = mintingActive[NFTRef]; } function NFTMouldFileData(uint256 NFTId, uint256 index) public view returns (string memory hashIPFS, string memory hashArweave, string memory artworkType, uint256 unmintedEditions) { hashIPFS = hashIPFSMemory[NFTId][index]; hashArweave = hashArweaveMemory[NFTId][index]; artworkType = artworkTypeMemory[NFTId][index]; unmintedEditions = editionSizeMemory[NFTId] - totalMinted[NFTId]; } function NFTMouldMetadata(uint256 NFTId) public view returns (string memory name, string memory description, Attributes[] memory attributes, uint256 editionSize, uint256 editionsMinted, uint256 evolutionLevel, uint256 totalRedemptions, uint64 redemptionExpiration, bool isActive) { name = mouldName[NFTId]; description = mouldDescription[NFTId]; attributes = mouldAttributes[NFTId]; editionSize = editionSizeMemory[NFTId]; editionsMinted = totalMinted[NFTId]; evolutionLevel = evolutionLevelMemory[NFTId]; totalRedemptions = redemptionMouldMemory[NFTId]; redemptionExpiration = redemptionExpirationMouldMemory[NFTId]; isActive = mintingActive[NFTId]; } function updateURI(string memory newURI) public onlyOwner { _setBaseURI(newURI); } function updateFactoryContract(address newfactoryContract) public onlyOwner { factoryContract = newfactoryContract; } function updateMultiURI(string memory newURI1, string memory newURI2, string memory newURI3) public onlyOwner { multiURI1 = newURI1; multiURI2 = newURI2; multiURI3 = newURI3; } function multiURI(uint256 tokenId, uint256 artworkIndex) external view returns (string memory uri) { require(_exists(tokenId), "ERC721Metadata: URI query for nonexistent token"); uri = string(abi.encodePacked(multiURI1, addressToString(address(this)), multiURI2, Strings.toString(tokenId), multiURI3, Strings.toString(artworkIndex))); } /** * Saleable interface */ function _processSaleOffering( uint256 mouldId, address buyer ) internal override { require(totalMinted[mouldId] < editionSizeMemory[mouldId], "Maximum editions already minted"); _mintInternal(mouldId, buyer); } function RegisterSeller( uint256 mouldId, address seller) public onlyOwner { _registerSeller(mouldId, seller); } function DeregisterSeller( uint256 mouldId, address seller) public onlyOwner { _deregisterSeller(mouldId, seller); } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import "@openzeppelin/contracts/utils/introspection/ERC165Storage.sol"; contract HasSecondarySaleFees is ERC165Storage { mapping(uint256 => address payable[]) royaltyAddressMemory; mapping(uint256 => uint256[]) royaltyMemory; mapping(uint256 => uint256) artworkNFTReference; /* * bytes4(keccak256('getFeeBps(uint256)')) == 0x0ebd4c7f * bytes4(keccak256('getFeeRecipients(uint256)')) == 0xb9c4d9fb * * => 0x0ebd4c7f ^ 0xb9c4d9fb == 0xb7799584 */ bytes4 private constant _INTERFACE_ID_FEES = 0xb7799584; constructor() { _registerInterface(_INTERFACE_ID_FEES); } function getFeeRecipients(uint256 id) external view returns (address payable[] memory){ uint256 NFTRef = artworkNFTReference[id]; return royaltyAddressMemory[NFTRef]; } function getFeeBps(uint256 id) external view returns (uint[] memory){ uint256 NFTRef = artworkNFTReference[id]; return royaltyMemory[NFTRef]; } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import "@openzeppelin/contracts/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 OwnableClone is Context { address private _owner; event OwnershipTransferred(address indexed previousOwner, address indexed newOwner); function init ( address initialOwner ) internal { require(_owner == address(0), "Contract is already initialized"); _owner = initialOwner; emit OwnershipTransferred(address(0), initialOwner); } /** * @dev Initializes the contract setting the deployer as the initial owner. */ constructor () { address msgSender = _msgSender(); init(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(), "OwnableClone: caller is not the owner"); _; } /** * @dev Leaves the contract without owner. It will not be possible to call * `onlyOwner` functions anymore. Can only be called by the current owner. * * NOTE: Renouncing ownership will leave the contract without an owner, * thereby removing any functionality that is only available to the owner. */ function renounceOwnership() public virtual onlyOwner { emit OwnershipTransferred(_owner, address(0)); _owner = address(0); } /** * @dev Transfers ownership of the contract to a new account (`newOwner`). * Can only be called by the current owner. */ function transferOwnership(address newOwner) public virtual onlyOwner { require(newOwner != address(0), "Ownable: new owner is the zero address"); emit OwnershipTransferred(_owner, newOwner); _owner = newOwner; } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import "@openzeppelin/contracts/access/Ownable.sol"; import "@openzeppelin/contracts/utils/Address.sol"; import "@openzeppelin/contracts/utils/Strings.sol"; import "@openzeppelin/contracts/utils/structs/EnumerableSet.sol"; import "@openzeppelin/contracts/utils/structs/EnumerableMap.sol"; import "@openzeppelin/contracts/utils/math/SafeMath.sol"; import "@openzeppelin/contracts/token/ERC721/IERC721.sol"; import "@openzeppelin/contracts/token/ERC721/IERC721Receiver.sol"; import "@openzeppelin/contracts/token/ERC721/extensions/IERC721Enumerable.sol"; import "@openzeppelin/contracts/token/ERC721/extensions/IERC721Metadata.sol"; import "@openzeppelin/contracts/token/ERC721/utils/ERC721Holder.sol"; import "@openzeppelin/contracts/utils/introspection/ERC165Storage.sol"; /** * @title ERC721 Non-Fungible Token Standard basic implementation * @dev see https://eips.ethereum.org/EIPS/eip-721 */ contract ERC721 is Context, ERC165Storage, IERC721, IERC721Metadata, IERC721Enumerable { using SafeMath for uint256; using Address for address; using EnumerableSet for EnumerableSet.UintSet; using EnumerableMap for EnumerableMap.UintToAddressMap; using Strings for uint256; // Equals to `bytes4(keccak256("onERC721Received(address,address,uint256,bytes)"))` // which can be also obtained as `IERC721Receiver(0).onERC721Received.selector` bytes4 private constant _ERC721_RECEIVED = 0x150b7a02; // Mapping from holder address to their (enumerable) set of owned tokens mapping (address => EnumerableSet.UintSet) private _holderTokens; // Enumerable mapping from token ids to their owners EnumerableMap.UintToAddressMap private _tokenOwners; // Mapping from token ID to approved address mapping (uint256 => address) private _tokenApprovals; // Mapping from owner to operator approvals mapping (address => mapping (address => bool)) private _operatorApprovals; // Token name string private _name; // Token symbol string private _symbol; // Optional mapping for token URIs mapping (uint256 => string) private _tokenURIs; // Base URI string private _baseURI; /* * bytes4(keccak256('balanceOf(address)')) == 0x70a08231 * bytes4(keccak256('ownerOf(uint256)')) == 0x6352211e * bytes4(keccak256('approve(address,uint256)')) == 0x095ea7b3 * bytes4(keccak256('getApproved(uint256)')) == 0x081812fc * bytes4(keccak256('setApprovalForAll(address,bool)')) == 0xa22cb465 * bytes4(keccak256('isApprovedForAll(address,address)')) == 0xe985e9c5 * bytes4(keccak256('transferFrom(address,address,uint256)')) == 0x23b872dd * bytes4(keccak256('safeTransferFrom(address,address,uint256)')) == 0x42842e0e * bytes4(keccak256('safeTransferFrom(address,address,uint256,bytes)')) == 0xb88d4fde * * => 0x70a08231 ^ 0x6352211e ^ 0x095ea7b3 ^ 0x081812fc ^ * 0xa22cb465 ^ 0xe985e9c5 ^ 0x23b872dd ^ 0x42842e0e ^ 0xb88d4fde == 0x80ac58cd */ bytes4 private constant _INTERFACE_ID_ERC721 = 0x80ac58cd; /* * bytes4(keccak256('name()')) == 0x06fdde03 * bytes4(keccak256('symbol()')) == 0x95d89b41 * bytes4(keccak256('tokenURI(uint256)')) == 0xc87b56dd * * => 0x06fdde03 ^ 0x95d89b41 ^ 0xc87b56dd == 0x5b5e139f */ bytes4 private constant _INTERFACE_ID_ERC721_METADATA = 0x5b5e139f; /* * bytes4(keccak256('totalSupply()')) == 0x18160ddd * bytes4(keccak256('tokenOfOwnerByIndex(address,uint256)')) == 0x2f745c59 * bytes4(keccak256('tokenByIndex(uint256)')) == 0x4f6ccce7 * * => 0x18160ddd ^ 0x2f745c59 ^ 0x4f6ccce7 == 0x780e9d63 */ bytes4 private constant _INTERFACE_ID_ERC721_ENUMERABLE = 0x780e9d63; /** * @dev Initializes the contract by setting a `name` and a `symbol` to the token collection. */ function init (string memory n, string memory s) internal { _name = n; _symbol = s; // register the supported interfaces to conform to ERC721 via ERC165 _registerInterface(_INTERFACE_ID_ERC721); _registerInterface(_INTERFACE_ID_ERC721_METADATA); _registerInterface(_INTERFACE_ID_ERC721_ENUMERABLE); } /** * @dev Initializes the contract by setting a `name` and a `symbol` to the token collection. */ constructor (string memory n, string memory s) { init(n, s); } /** * @dev See {IERC721-balanceOf}. */ function balanceOf(address owner) public view override returns (uint256) { require(owner != address(0), "ERC721: balance query for the zero address"); return _holderTokens[owner].length(); } /** * @dev See {IERC721-ownerOf}. */ function ownerOf(uint256 tokenId) public view override returns (address) { return _tokenOwners.get(tokenId, "ERC721: owner query for nonexistent token"); } /** * @dev See {IERC721Metadata-name}. */ function name() public view override returns (string memory) { return _name; } /** * @dev See {IERC721Metadata-symbol}. */ function symbol() public view override returns (string memory) { return _symbol; } /** * @dev See {IERC721Metadata-tokenURI}. */ function tokenURI(uint256 tokenId) public view override returns (string memory) { require(_exists(tokenId), "ERC721Metadata: URI query for nonexistent token"); string memory _tokenURI = _tokenURIs[tokenId]; // If there is no base URI, return the token URI. if (bytes(_baseURI).length == 0) { return _tokenURI; } // If both are set, concatenate the baseURI and tokenURI (via abi.encodePacked). if (bytes(_tokenURI).length > 0) { return string(abi.encodePacked(_baseURI, _tokenURI)); } // If there is a baseURI but no tokenURI, concatenate the tokenID to the baseURI. return string(abi.encodePacked(_baseURI, tokenId.toString())); } /** * @dev Returns the base URI set via {_setBaseURI}. This will be * automatically added as a prefix in {tokenURI} to each token's URI, or * to the token ID if no specific URI is set for that token ID. */ function baseURI() public view returns (string memory) { return _baseURI; } /** * @dev See {IERC721Enumerable-tokenOfOwnerByIndex}. */ function tokenOfOwnerByIndex(address owner, uint256 index) public view override returns (uint256) { return _holderTokens[owner].at(index); } /** * @dev See {IERC721Enumerable-totalSupply}. */ function totalSupply() public view override returns (uint256) { // _tokenOwners are indexed by tokenIds, so .length() returns the number of tokenIds return _tokenOwners.length(); } /** * @dev See {IERC721Enumerable-tokenByIndex}. */ function tokenByIndex(uint256 index) public view override returns (uint256) { (uint256 tokenId, ) = _tokenOwners.at(index); return tokenId; } /** * @dev See {IERC721-approve}. */ function approve(address to, uint256 tokenId) public virtual override { address owner = 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 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 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 returns (bool) { return _tokenOwners.contains(tokenId); } /** * @dev Returns whether `spender` is allowed to manage `tokenId`. * * Requirements: * * - `tokenId` must exist. */ function _isApprovedOrOwner(address spender, uint256 tokenId) internal view returns (bool) { require(_exists(tokenId), "ERC721: operator query for nonexistent token"); address owner = ownerOf(tokenId); return (spender == owner || getApproved(tokenId) == spender || isApprovedForAll(owner, spender)); } /** * @dev Safely mints `tokenId` and transfers it to `to`. * * Requirements: d* * - `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); _holderTokens[to].add(tokenId); _tokenOwners.set(tokenId, to); emit Transfer(address(0), to, tokenId); } /** * @dev Destroys `tokenId`. * The approval is cleared when the token is burned. * * Requirements: * * - `tokenId` must exist. * * Emits a {Transfer} event. */ function _burn(uint256 tokenId) internal virtual { address owner = ownerOf(tokenId); _beforeTokenTransfer(owner, address(0), tokenId); // Clear approvals _approve(address(0), tokenId); // Clear metadata (if any) if (bytes(_tokenURIs[tokenId]).length != 0) { delete _tokenURIs[tokenId]; } _holderTokens[owner].remove(tokenId); _tokenOwners.remove(tokenId); emit Transfer(owner, address(0), tokenId); } /** * @dev Transfers `tokenId` from `from` to `to`. * As opposed to {transferFrom}, this imposes no restrictions on msg.sender. * * Requirements: * * - `to` cannot be the zero address. * - `tokenId` token must be owned by `from`. * * Emits a {Transfer} event. */ function _transfer(address from, address to, uint256 tokenId) internal virtual { require(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); _holderTokens[from].remove(tokenId); _holderTokens[to].add(tokenId); _tokenOwners.set(tokenId, to); emit Transfer(from, to, tokenId); } /** * @dev Sets `_tokenURI` as the tokenURI of `tokenId`. * * Requirements: * * - `tokenId` must exist. */ function _setTokenURI(uint256 tokenId, string memory _tokenURI) internal virtual { require(_exists(tokenId), "ERC721Metadata: URI set of nonexistent token"); _tokenURIs[tokenId] = _tokenURI; } /** * @dev Internal function to set the base URI for all token IDs. It is * automatically added as a prefix to the value returned in {tokenURI}, * or to the token ID if {tokenURI} is empty. */ function _setBaseURI(string memory baseURI_) internal virtual { _baseURI = baseURI_; } /** * @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()) { return true; } bytes memory returndata = to.functionCall(abi.encodeWithSelector( IERC721Receiver(to).onERC721Received.selector, _msgSender(), from, tokenId, _data ), "ERC721: transfer to non ERC721Receiver implementer"); bytes4 retval = abi.decode(returndata, (bytes4)); return (retval == _ERC721_RECEIVED); } function _approve(address to, uint256 tokenId) private { _tokenApprovals[tokenId] = to; emit Approval(ownerOf(tokenId), to, tokenId); } /** * @dev Hook that is called before any token transfer. This includes minting * and burning. * * Calling conditions: * * - When `from` and `to` are both non-zero, ``from``'s `tokenId` will be * transferred to `to`. * - When `from` is zero, `tokenId` will be minted for `to`. * - When `to` is zero, ``from``'s `tokenId` will be burned. * - `from` cannot be the zero address. * - `to` cannot be the zero address. * * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks]. */ function _beforeTokenTransfer(address from, address to, uint256 tokenId) internal virtual { } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; interface ISaleable { function processSale( uint256 offeringId, address buyer ) external; function getSellersFor( uint256 offeringId ) external view returns ( address [] memory sellers); event SaleProcessed(address indexed seller, uint256 indexed offeringId, address buyer); event SellerAdded(address indexed seller, uint256 indexed offeringId); event SellerRemoved(address indexed seller, uint256 indexed offeringId); }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import "./ISaleable.sol"; abstract contract Saleable is ISaleable { mapping(uint256 => address[]) public authorizedSellersByOffer; function isAuthorizedSellerOf( address seller, uint256 offeringId ) public view returns (bool) { for (uint256 idx = 0; idx < authorizedSellersByOffer[offeringId].length; idx++) { if (authorizedSellersByOffer[offeringId][idx] == seller) { return true; } } return false; } function _processSaleOffering( uint256 offeringId, address buyer ) internal virtual; function processSale( uint256 offeringId, address buyer ) public override { require(isAuthorizedSellerOf(msg.sender, offeringId), "Caller is not authorized to sell this offering"); _processSaleOffering(offeringId, buyer); emit SaleProcessed(msg.sender, offeringId, buyer); } function _registerSeller( uint256 offeringId, address seller) internal { require(!isAuthorizedSellerOf(seller, offeringId), "Seller is already authorized"); authorizedSellersByOffer[offeringId].push(seller); } function _deregisterSeller( uint256 offeringId, address seller) internal { require(isAuthorizedSellerOf(seller, offeringId), "Seller was not authorized"); uint256 index = 0; for (; index < authorizedSellersByOffer[offeringId].length; index++) { if (authorizedSellersByOffer[offeringId][index] == seller) { break; } } uint256 len = authorizedSellersByOffer[offeringId].length; if (index < len - 1) { address temp = authorizedSellersByOffer[offeringId][index]; authorizedSellersByOffer[offeringId][index] = authorizedSellersByOffer[offeringId][len]; authorizedSellersByOffer[offeringId][len] = temp; } authorizedSellersByOffer[offeringId].pop(); } function getSellersFor( uint256 offeringId ) view public override returns ( address [] memory sellers ) { sellers = authorizedSellersByOffer[offeringId]; } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import "../utils/Context.sol"; /** * @dev Contract module which provides a basic access control mechanism, where * there is an account (an owner) that can be granted exclusive access to * specific functions. * * By default, the owner account will be the one that deploys the contract. This * can later be changed with {transferOwnership}. * * This module is used through inheritance. It will make available the modifier * `onlyOwner`, which can be applied to your functions to restrict their use to * the owner. */ abstract contract Ownable is Context { address private _owner; event OwnershipTransferred(address indexed previousOwner, address indexed newOwner); /** * @dev Initializes the contract setting the deployer as the initial owner. */ constructor () { address msgSender = _msgSender(); _owner = msgSender; emit OwnershipTransferred(address(0), msgSender); } /** * @dev Returns the address of the current owner. */ function owner() public view virtual returns (address) { return _owner; } /** * @dev Throws if called by any account other than the owner. */ modifier onlyOwner() { require(owner() == _msgSender(), "Ownable: caller is not the owner"); _; } /** * @dev Leaves the contract without owner. It will not be possible to call * `onlyOwner` functions anymore. Can only be called by the current owner. * * NOTE: Renouncing ownership will leave the contract without an owner, * thereby removing any functionality that is only available to the owner. */ function renounceOwnership() public virtual onlyOwner { emit OwnershipTransferred(_owner, address(0)); _owner = address(0); } /** * @dev Transfers ownership of the contract to a new account (`newOwner`). * Can only be called by the current owner. */ function transferOwnership(address newOwner) public virtual onlyOwner { require(newOwner != address(0), "Ownable: new owner is the zero address"); emit OwnershipTransferred(_owner, newOwner); _owner = newOwner; } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import "../../utils/introspection/IERC165.sol"; /** * @dev Required interface of an ERC721 compliant contract. */ interface IERC721 is IERC165 { /** * @dev Emitted when `tokenId` token is transferred from `from` to `to`. */ event Transfer(address indexed from, address indexed to, uint256 indexed tokenId); /** * @dev Emitted when `owner` enables `approved` to manage the `tokenId` token. */ event Approval(address indexed owner, address indexed approved, uint256 indexed tokenId); /** * @dev Emitted when `owner` enables or disables (`approved`) `operator` to manage all of its assets. */ event ApprovalForAll(address indexed owner, address indexed operator, bool approved); /** * @dev Returns the number of tokens in ``owner``'s account. */ function balanceOf(address owner) external view returns (uint256 balance); /** * @dev Returns the owner of the `tokenId` token. * * Requirements: * * - `tokenId` must exist. */ function ownerOf(uint256 tokenId) external view returns (address owner); /** * @dev Safely transfers `tokenId` token from `from` to `to`, checking first that contract recipients * are aware of the ERC721 protocol to prevent tokens from being forever locked. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must exist and be owned by `from`. * - If the caller is not `from`, it must be have been allowed to move this token by either {approve} or {setApprovalForAll}. * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */ function safeTransferFrom(address from, address to, uint256 tokenId) external; /** * @dev Transfers `tokenId` token from `from` to `to`. * * WARNING: Usage of this method is discouraged, use {safeTransferFrom} whenever possible. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must be owned by `from`. * - If the caller is not `from`, it must be approved to move this token by either {approve} or {setApprovalForAll}. * * Emits a {Transfer} event. */ function transferFrom(address from, address to, uint256 tokenId) external; /** * @dev Gives permission to `to` to transfer `tokenId` token to another account. * The approval is cleared when the token is transferred. * * Only a single account can be approved at a time, so approving the zero address clears previous approvals. * * Requirements: * * - The caller must own the token or be an approved operator. * - `tokenId` must exist. * * Emits an {Approval} event. */ function approve(address to, uint256 tokenId) external; /** * @dev Returns the account approved for `tokenId` token. * * Requirements: * * - `tokenId` must exist. */ function getApproved(uint256 tokenId) external view returns (address operator); /** * @dev Approve or remove `operator` as an operator for the caller. * Operators can call {transferFrom} or {safeTransferFrom} for any token owned by the caller. * * Requirements: * * - The `operator` cannot be the caller. * * Emits an {ApprovalForAll} event. */ function setApprovalForAll(address operator, bool _approved) external; /** * @dev Returns if the `operator` is allowed to manage all of the assets of `owner`. * * See {setApprovalForAll} */ function isApprovedForAll(address owner, address operator) external view returns (bool); /** * @dev Safely transfers `tokenId` token from `from` to `to`. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must exist and be owned by `from`. * - If the caller is not `from`, it must be approved to move this token by either {approve} or {setApprovalForAll}. * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */ function safeTransferFrom(address from, address to, uint256 tokenId, bytes calldata data) external; }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; /** * @title ERC721 token receiver interface * @dev Interface for any contract that wants to support safeTransfers * from ERC721 asset contracts. */ interface IERC721Receiver { /** * @dev Whenever an {IERC721} `tokenId` token is transferred to this contract via {IERC721-safeTransferFrom} * by `operator` from `from`, this function is called. * * It must return its Solidity selector to confirm the token transfer. * If any other value is returned or the interface is not implemented by the recipient, the transfer will be reverted. * * The selector can be obtained in Solidity with `IERC721.onERC721Received.selector`. */ function onERC721Received(address operator, address from, uint256 tokenId, bytes calldata data) external returns (bytes4); }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import "../IERC721.sol"; /** * @title ERC-721 Non-Fungible Token Standard, optional enumeration extension * @dev See https://eips.ethereum.org/EIPS/eip-721 */ interface IERC721Enumerable is IERC721 { /** * @dev Returns the total amount of tokens stored by the contract. */ function totalSupply() external view returns (uint256); /** * @dev Returns a token ID owned by `owner` at a given `index` of its token list. * Use along with {balanceOf} to enumerate all of ``owner``'s tokens. */ function tokenOfOwnerByIndex(address owner, uint256 index) external view returns (uint256 tokenId); /** * @dev Returns a token ID at a given `index` of all the tokens stored by the contract. * Use along with {totalSupply} to enumerate all tokens. */ function tokenByIndex(uint256 index) external view returns (uint256); }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import "../IERC721.sol"; /** * @title ERC-721 Non-Fungible Token Standard, optional metadata extension * @dev See https://eips.ethereum.org/EIPS/eip-721 */ interface IERC721Metadata is IERC721 { /** * @dev Returns the token collection name. */ function name() external view returns (string memory); /** * @dev Returns the token collection symbol. */ function symbol() external view returns (string memory); /** * @dev Returns the Uniform Resource Identifier (URI) for `tokenId` token. */ function tokenURI(uint256 tokenId) external view returns (string memory); }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import "../IERC721Receiver.sol"; /** * @dev Implementation of the {IERC721Receiver} interface. * * Accepts all token transfers. * Make sure the contract is able to use its token with {IERC721-safeTransferFrom}, {IERC721-approve} or {IERC721-setApprovalForAll}. */ contract ERC721Holder is IERC721Receiver { /** * @dev See {IERC721Receiver-onERC721Received}. * * Always returns `IERC721Receiver.onERC721Received.selector`. */ function onERC721Received(address, address, uint256, bytes memory) public virtual override returns (bytes4) { return this.onERC721Received.selector; } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; /** * @dev Collection of functions related to the address type */ library Address { /** * @dev Returns true if `account` is a contract. * * [IMPORTANT] * ==== * It is unsafe to assume that an address for which this function returns * false is an externally-owned account (EOA) and not a contract. * * Among others, `isContract` will return false for the following * types of addresses: * * - an externally-owned account * - a contract in construction * - an address where a contract will be created * - an address where a contract lived, but was destroyed * ==== */ function isContract(address account) internal view returns (bool) { // This method relies on extcodesize, which returns 0 for contracts in // construction, since the code is only stored at the end of the // constructor execution. uint256 size; // solhint-disable-next-line no-inline-assembly assembly { size := extcodesize(account) } return size > 0; } /** * @dev Replacement for Solidity's `transfer`: sends `amount` wei to * `recipient`, forwarding all available gas and reverting on errors. * * https://eips.ethereum.org/EIPS/eip-1884[EIP1884] increases the gas cost * of certain opcodes, possibly making contracts go over the 2300 gas limit * imposed by `transfer`, making them unable to receive funds via * `transfer`. {sendValue} removes this limitation. * * https://diligence.consensys.net/posts/2019/09/stop-using-soliditys-transfer-now/[Learn more]. * * IMPORTANT: because control is transferred to `recipient`, care must be * taken to not create reentrancy vulnerabilities. Consider using * {ReentrancyGuard} or the * https://solidity.readthedocs.io/en/v0.5.11/security-considerations.html#use-the-checks-effects-interactions-pattern[checks-effects-interactions pattern]. */ function sendValue(address payable recipient, uint256 amount) internal { require(address(this).balance >= amount, "Address: insufficient balance"); // solhint-disable-next-line avoid-low-level-calls, avoid-call-value (bool success, ) = recipient.call{ value: amount }(""); require(success, "Address: unable to send value, recipient may have reverted"); } /** * @dev Performs a Solidity function call using a low level `call`. A * plain`call` is an unsafe replacement for a function call: use this * function instead. * * If `target` reverts with a revert reason, it is bubbled up by this * function (like regular Solidity function calls). * * Returns the raw returned data. To convert to the expected return value, * use https://solidity.readthedocs.io/en/latest/units-and-global-variables.html?highlight=abi.decode#abi-encoding-and-decoding-functions[`abi.decode`]. * * Requirements: * * - `target` must be a contract. * - calling `target` with `data` must not revert. * * _Available since v3.1._ */ function functionCall(address target, bytes memory data) internal returns (bytes memory) { return functionCall(target, data, "Address: low-level call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], but with * `errorMessage` as a fallback revert reason when `target` reverts. * * _Available since v3.1._ */ function functionCall(address target, bytes memory data, string memory errorMessage) internal returns (bytes memory) { return functionCallWithValue(target, data, 0, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but also transferring `value` wei to `target`. * * Requirements: * * - the calling contract must have an ETH balance of at least `value`. * - the called Solidity function must be `payable`. * * _Available since v3.1._ */ function functionCallWithValue(address target, bytes memory data, uint256 value) internal returns (bytes memory) { return functionCallWithValue(target, data, value, "Address: low-level call with value failed"); } /** * @dev Same as {xref-Address-functionCallWithValue-address-bytes-uint256-}[`functionCallWithValue`], but * with `errorMessage` as a fallback revert reason when `target` reverts. * * _Available since v3.1._ */ function functionCallWithValue(address target, bytes memory data, uint256 value, string memory errorMessage) internal returns (bytes memory) { require(address(this).balance >= value, "Address: insufficient balance for call"); require(isContract(target), "Address: call to non-contract"); // solhint-disable-next-line avoid-low-level-calls (bool success, bytes memory returndata) = target.call{ value: value }(data); return _verifyCallResult(success, returndata, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but performing a static call. * * _Available since v3.3._ */ function functionStaticCall(address target, bytes memory data) internal view returns (bytes memory) { return functionStaticCall(target, data, "Address: low-level static call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`], * but performing a static call. * * _Available since v3.3._ */ function functionStaticCall(address target, bytes memory data, string memory errorMessage) internal view returns (bytes memory) { require(isContract(target), "Address: static call to non-contract"); // solhint-disable-next-line avoid-low-level-calls (bool success, bytes memory returndata) = target.staticcall(data); return _verifyCallResult(success, returndata, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but performing a delegate call. * * _Available since v3.4._ */ function functionDelegateCall(address target, bytes memory data) internal returns (bytes memory) { return functionDelegateCall(target, data, "Address: low-level delegate call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`], * but performing a delegate call. * * _Available since v3.4._ */ function functionDelegateCall(address target, bytes memory data, string memory errorMessage) internal returns (bytes memory) { require(isContract(target), "Address: delegate call to non-contract"); // solhint-disable-next-line avoid-low-level-calls (bool success, bytes memory returndata) = target.delegatecall(data); return _verifyCallResult(success, returndata, errorMessage); } function _verifyCallResult(bool success, bytes memory returndata, string memory errorMessage) private pure returns(bytes memory) { if (success) { return returndata; } else { // Look for revert reason and bubble it up if present if (returndata.length > 0) { // The easiest way to bubble the revert reason is using memory via assembly // solhint-disable-next-line no-inline-assembly assembly { let returndata_size := mload(returndata) revert(add(32, returndata), returndata_size) } } else { revert(errorMessage); } } } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; /* * @dev Provides information about the current execution context, including the * sender of the transaction and its data. While these are generally available * via msg.sender and msg.data, they should not be accessed in such a direct * manner, since when dealing with meta-transactions the account sending and * paying for execution may not be the actual sender (as far as an application * is concerned). * * This contract is only required for intermediate, library-like contracts. */ abstract contract Context { function _msgSender() internal view virtual returns (address) { return msg.sender; } function _msgData() internal view virtual returns (bytes calldata) { this; // silence state mutability warning without generating bytecode - see https://github.com/ethereum/solidity/issues/2691 return msg.data; } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; /** * @dev String operations. */ library Strings { bytes16 private constant alphabet = "0123456789abcdef"; /** * @dev Converts a `uint256` to its ASCII `string` decimal representation. */ function toString(uint256 value) internal pure returns (string memory) { // Inspired by OraclizeAPI's implementation - MIT licence // https://github.com/oraclize/ethereum-api/blob/b42146b063c7d6ee1358846c198246239e9360e8/oraclizeAPI_0.4.25.sol if (value == 0) { return "0"; } uint256 temp = value; uint256 digits; while (temp != 0) { digits++; temp /= 10; } bytes memory buffer = new bytes(digits); while (value != 0) { digits -= 1; buffer[digits] = bytes1(uint8(48 + uint256(value % 10))); value /= 10; } return string(buffer); } /** * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation. */ function toHexString(uint256 value) internal pure returns (string memory) { if (value == 0) { return "0x00"; } uint256 temp = value; uint256 length = 0; while (temp != 0) { length++; temp >>= 8; } return toHexString(value, length); } /** * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation with fixed length. */ function toHexString(uint256 value, uint256 length) internal pure returns (string memory) { bytes memory buffer = new bytes(2 * length + 2); buffer[0] = "0"; buffer[1] = "x"; for (uint256 i = 2 * length + 1; i > 1; --i) { buffer[i] = alphabet[value & 0xf]; value >>= 4; } require(value == 0, "Strings: hex length insufficient"); return string(buffer); } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import "./IERC165.sol"; /** * @dev Implementation of the {IERC165} interface. * * Contracts that want to implement ERC165 should inherit from this contract and override {supportsInterface} to check * for the additional interface id that will be supported. For example: * * ```solidity * function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) { * return interfaceId == type(MyInterface).interfaceId || super.supportsInterface(interfaceId); * } * ``` * * Alternatively, {ERC165Storage} provides an easier to use but more expensive implementation. */ abstract contract ERC165 is IERC165 { /** * @dev See {IERC165-supportsInterface}. */ function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) { return interfaceId == type(IERC165).interfaceId; } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import "./ERC165.sol"; /** * @dev Storage based implementation of the {IERC165} interface. * * Contracts may inherit from this and call {_registerInterface} to declare * their support of an interface. */ abstract contract ERC165Storage is ERC165 { /** * @dev Mapping of interface ids to whether or not it's supported. */ mapping(bytes4 => bool) private _supportedInterfaces; /** * @dev See {IERC165-supportsInterface}. */ function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) { return super.supportsInterface(interfaceId) || _supportedInterfaces[interfaceId]; } /** * @dev Registers the contract as an implementer of the interface defined by * `interfaceId`. Support of the actual ERC165 interface is automatic and * registering its interface id is not required. * * See {IERC165-supportsInterface}. * * Requirements: * * - `interfaceId` cannot be the ERC165 invalid interface (`0xffffffff`). */ function _registerInterface(bytes4 interfaceId) internal virtual { require(interfaceId != 0xffffffff, "ERC165: invalid interface id"); _supportedInterfaces[interfaceId] = true; } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; /** * @dev Interface of the ERC165 standard, as defined in the * https://eips.ethereum.org/EIPS/eip-165[EIP]. * * Implementers can declare support of contract interfaces, which can then be * queried by others ({ERC165Checker}). * * For an implementation, see {ERC165}. */ interface IERC165 { /** * @dev Returns true if this contract implements the interface defined by * `interfaceId`. See the corresponding * https://eips.ethereum.org/EIPS/eip-165#how-interfaces-are-identified[EIP section] * to learn more about how these ids are created. * * This function call must use less than 30 000 gas. */ function supportsInterface(bytes4 interfaceId) external view returns (bool); }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; // CAUTION // This version of SafeMath should only be used with Solidity 0.8 or later, // because it relies on the compiler's built in overflow checks. /** * @dev Wrappers over Solidity's arithmetic operations. * * NOTE: `SafeMath` is no longer needed starting with Solidity 0.8. The compiler * now has built in overflow checking. */ library SafeMath { /** * @dev Returns the addition of two unsigned integers, with an overflow flag. * * _Available since v3.4._ */ function tryAdd(uint256 a, uint256 b) internal pure returns (bool, uint256) { unchecked { uint256 c = a + b; if (c < a) return (false, 0); return (true, c); } } /** * @dev Returns the substraction of two unsigned integers, with an overflow flag. * * _Available since v3.4._ */ function trySub(uint256 a, uint256 b) internal pure returns (bool, uint256) { unchecked { if (b > a) return (false, 0); return (true, a - b); } } /** * @dev Returns the multiplication of two unsigned integers, with an overflow flag. * * _Available since v3.4._ */ function tryMul(uint256 a, uint256 b) internal pure returns (bool, uint256) { unchecked { // Gas optimization: this is cheaper than requiring 'a' not being zero, but the // benefit is lost if 'b' is also tested. // See: https://github.com/OpenZeppelin/openzeppelin-contracts/pull/522 if (a == 0) return (true, 0); uint256 c = a * b; if (c / a != b) return (false, 0); return (true, c); } } /** * @dev Returns the division of two unsigned integers, with a division by zero flag. * * _Available since v3.4._ */ function tryDiv(uint256 a, uint256 b) internal pure returns (bool, uint256) { unchecked { if (b == 0) return (false, 0); return (true, a / b); } } /** * @dev Returns the remainder of dividing two unsigned integers, with a division by zero flag. * * _Available since v3.4._ */ function tryMod(uint256 a, uint256 b) internal pure returns (bool, uint256) { unchecked { if (b == 0) return (false, 0); return (true, a % b); } } /** * @dev Returns the addition of two unsigned integers, reverting on * overflow. * * Counterpart to Solidity's `+` operator. * * Requirements: * * - Addition cannot overflow. */ function add(uint256 a, uint256 b) internal pure returns (uint256) { return a + b; } /** * @dev Returns the subtraction of two unsigned integers, reverting on * overflow (when the result is negative). * * Counterpart to Solidity's `-` operator. * * Requirements: * * - Subtraction cannot overflow. */ function sub(uint256 a, uint256 b) internal pure returns (uint256) { return a - b; } /** * @dev Returns the multiplication of two unsigned integers, reverting on * overflow. * * Counterpart to Solidity's `*` operator. * * Requirements: * * - Multiplication cannot overflow. */ function mul(uint256 a, uint256 b) internal pure returns (uint256) { return a * b; } /** * @dev Returns the integer division of two unsigned integers, reverting on * division by zero. The result is rounded towards zero. * * Counterpart to Solidity's `/` operator. * * Requirements: * * - The divisor cannot be zero. */ function div(uint256 a, uint256 b) internal pure returns (uint256) { return a / b; } /** * @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo), * reverting when dividing by zero. * * Counterpart to Solidity's `%` operator. This function uses a `revert` * opcode (which leaves remaining gas untouched) while Solidity uses an * invalid opcode to revert (consuming all remaining gas). * * Requirements: * * - The divisor cannot be zero. */ function mod(uint256 a, uint256 b) internal pure returns (uint256) { return a % b; } /** * @dev Returns the subtraction of two unsigned integers, reverting with custom message on * overflow (when the result is negative). * * CAUTION: This function is deprecated because it requires allocating memory for the error * message unnecessarily. For custom revert reasons use {trySub}. * * Counterpart to Solidity's `-` operator. * * Requirements: * * - Subtraction cannot overflow. */ function sub(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) { unchecked { require(b <= a, errorMessage); return a - b; } } /** * @dev Returns the integer division of two unsigned integers, reverting with custom message on * division by zero. The result is rounded towards zero. * * Counterpart to Solidity's `%` operator. This function uses a `revert` * opcode (which leaves remaining gas untouched) while Solidity uses an * invalid opcode to revert (consuming all remaining gas). * * Counterpart to Solidity's `/` operator. Note: this function uses a * `revert` opcode (which leaves remaining gas untouched) while Solidity * uses an invalid opcode to revert (consuming all remaining gas). * * Requirements: * * - The divisor cannot be zero. */ function div(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) { unchecked { require(b > 0, errorMessage); return a / b; } } /** * @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo), * reverting with custom message when dividing by zero. * * CAUTION: This function is deprecated because it requires allocating memory for the error * message unnecessarily. For custom revert reasons use {tryMod}. * * Counterpart to Solidity's `%` operator. This function uses a `revert` * opcode (which leaves remaining gas untouched) while Solidity uses an * invalid opcode to revert (consuming all remaining gas). * * Requirements: * * - The divisor cannot be zero. */ function mod(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) { unchecked { require(b > 0, errorMessage); return a % b; } } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import "./EnumerableSet.sol"; /** * @dev Library for managing an enumerable variant of Solidity's * https://solidity.readthedocs.io/en/latest/types.html#mapping-types[`mapping`] * type. * * Maps have the following properties: * * - Entries are added, removed, and checked for existence in constant time * (O(1)). * - Entries are enumerated in O(n). No guarantees are made on the ordering. * * ``` * contract Example { * // Add the library methods * using EnumerableMap for EnumerableMap.UintToAddressMap; * * // Declare a set state variable * EnumerableMap.UintToAddressMap private myMap; * } * ``` * * As of v3.0.0, only maps of type `uint256 -> address` (`UintToAddressMap`) are * supported. */ library EnumerableMap { using EnumerableSet for EnumerableSet.Bytes32Set; // To implement this library for multiple types with as little code // repetition as possible, we write it in terms of a generic Map type with // bytes32 keys and values. // The Map implementation uses private functions, and user-facing // implementations (such as Uint256ToAddressMap) are just wrappers around // the underlying Map. // This means that we can only create new EnumerableMaps for types that fit // in bytes32. struct Map { // Storage of keys EnumerableSet.Bytes32Set _keys; mapping (bytes32 => bytes32) _values; } /** * @dev Adds a key-value pair to a map, or updates the value for an existing * key. O(1). * * Returns true if the key was added to the map, that is if it was not * already present. */ function _set(Map storage map, bytes32 key, bytes32 value) private returns (bool) { map._values[key] = value; return map._keys.add(key); } /** * @dev Removes a key-value pair from a map. O(1). * * Returns true if the key was removed from the map, that is if it was present. */ function _remove(Map storage map, bytes32 key) private returns (bool) { delete map._values[key]; return map._keys.remove(key); } /** * @dev Returns true if the key is in the map. O(1). */ function _contains(Map storage map, bytes32 key) private view returns (bool) { return map._keys.contains(key); } /** * @dev Returns the number of key-value pairs in the map. O(1). */ function _length(Map storage map) private view returns (uint256) { return map._keys.length(); } /** * @dev Returns the key-value pair stored at position `index` in the map. O(1). * * Note that there are no guarantees on the ordering of entries inside the * array, and it may change when more entries are added or removed. * * Requirements: * * - `index` must be strictly less than {length}. */ function _at(Map storage map, uint256 index) private view returns (bytes32, bytes32) { bytes32 key = map._keys.at(index); return (key, map._values[key]); } /** * @dev Tries to returns the value associated with `key`. O(1). * Does not revert if `key` is not in the map. */ function _tryGet(Map storage map, bytes32 key) private view returns (bool, bytes32) { bytes32 value = map._values[key]; if (value == bytes32(0)) { return (_contains(map, key), bytes32(0)); } else { return (true, value); } } /** * @dev Returns the value associated with `key`. O(1). * * Requirements: * * - `key` must be in the map. */ function _get(Map storage map, bytes32 key) private view returns (bytes32) { bytes32 value = map._values[key]; require(value != 0 || _contains(map, key), "EnumerableMap: nonexistent key"); return value; } /** * @dev Same as {_get}, with a custom error message when `key` is not in the map. * * CAUTION: This function is deprecated because it requires allocating memory for the error * message unnecessarily. For custom revert reasons use {_tryGet}. */ function _get(Map storage map, bytes32 key, string memory errorMessage) private view returns (bytes32) { bytes32 value = map._values[key]; require(value != 0 || _contains(map, key), errorMessage); return value; } // UintToAddressMap struct UintToAddressMap { Map _inner; } /** * @dev Adds a key-value pair to a map, or updates the value for an existing * key. O(1). * * Returns true if the key was added to the map, that is if it was not * already present. */ function set(UintToAddressMap storage map, uint256 key, address value) internal returns (bool) { return _set(map._inner, bytes32(key), bytes32(uint256(uint160(value)))); } /** * @dev Removes a value from a set. O(1). * * Returns true if the key was removed from the map, that is if it was present. */ function remove(UintToAddressMap storage map, uint256 key) internal returns (bool) { return _remove(map._inner, bytes32(key)); } /** * @dev Returns true if the key is in the map. O(1). */ function contains(UintToAddressMap storage map, uint256 key) internal view returns (bool) { return _contains(map._inner, bytes32(key)); } /** * @dev Returns the number of elements in the map. O(1). */ function length(UintToAddressMap storage map) internal view returns (uint256) { return _length(map._inner); } /** * @dev Returns the element stored at position `index` in the set. O(1). * Note that there are no guarantees on the ordering of values inside the * array, and it may change when more values are added or removed. * * Requirements: * * - `index` must be strictly less than {length}. */ function at(UintToAddressMap storage map, uint256 index) internal view returns (uint256, address) { (bytes32 key, bytes32 value) = _at(map._inner, index); return (uint256(key), address(uint160(uint256(value)))); } /** * @dev Tries to returns the value associated with `key`. O(1). * Does not revert if `key` is not in the map. * * _Available since v3.4._ */ function tryGet(UintToAddressMap storage map, uint256 key) internal view returns (bool, address) { (bool success, bytes32 value) = _tryGet(map._inner, bytes32(key)); return (success, address(uint160(uint256(value)))); } /** * @dev Returns the value associated with `key`. O(1). * * Requirements: * * - `key` must be in the map. */ function get(UintToAddressMap storage map, uint256 key) internal view returns (address) { return address(uint160(uint256(_get(map._inner, bytes32(key))))); } /** * @dev Same as {get}, with a custom error message when `key` is not in the map. * * CAUTION: This function is deprecated because it requires allocating memory for the error * message unnecessarily. For custom revert reasons use {tryGet}. */ function get(UintToAddressMap storage map, uint256 key, string memory errorMessage) internal view returns (address) { return address(uint160(uint256(_get(map._inner, bytes32(key), errorMessage)))); } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; /** * @dev Library for managing * https://en.wikipedia.org/wiki/Set_(abstract_data_type)[sets] of primitive * types. * * Sets have the following properties: * * - Elements are added, removed, and checked for existence in constant time * (O(1)). * - Elements are enumerated in O(n). No guarantees are made on the ordering. * * ``` * contract Example { * // Add the library methods * using EnumerableSet for EnumerableSet.AddressSet; * * // Declare a set state variable * EnumerableSet.AddressSet private mySet; * } * ``` * * As of v3.3.0, sets of type `bytes32` (`Bytes32Set`), `address` (`AddressSet`) * and `uint256` (`UintSet`) are supported. */ library EnumerableSet { // To implement this library for multiple types with as little code // repetition as possible, we write it in terms of a generic Set type with // bytes32 values. // The Set implementation uses private functions, and user-facing // implementations (such as AddressSet) are just wrappers around the // underlying Set. // This means that we can only create new EnumerableSets for types that fit // in bytes32. struct Set { // Storage of set values bytes32[] _values; // Position of the value in the `values` array, plus 1 because index 0 // means a value is not in the set. mapping (bytes32 => uint256) _indexes; } /** * @dev Add a value to a set. O(1). * * Returns true if the value was added to the set, that is if it was not * already present. */ function _add(Set storage set, bytes32 value) private returns (bool) { if (!_contains(set, value)) { set._values.push(value); // The value is stored at length-1, but we add 1 to all indexes // and use 0 as a sentinel value set._indexes[value] = set._values.length; return true; } else { return false; } } /** * @dev Removes a value from a set. O(1). * * Returns true if the value was removed from the set, that is if it was * present. */ function _remove(Set storage set, bytes32 value) private returns (bool) { // We read and store the value's index to prevent multiple reads from the same storage slot uint256 valueIndex = set._indexes[value]; if (valueIndex != 0) { // Equivalent to contains(set, value) // To delete an element from the _values array in O(1), we swap the element to delete with the last one in // the array, and then remove the last element (sometimes called as 'swap and pop'). // This modifies the order of the array, as noted in {at}. uint256 toDeleteIndex = valueIndex - 1; uint256 lastIndex = set._values.length - 1; // When the value to delete is the last one, the swap operation is unnecessary. However, since this occurs // so rarely, we still do the swap anyway to avoid the gas cost of adding an 'if' statement. bytes32 lastvalue = set._values[lastIndex]; // Move the last value to the index where the value to delete is set._values[toDeleteIndex] = lastvalue; // Update the index for the moved value set._indexes[lastvalue] = toDeleteIndex + 1; // All indexes are 1-based // Delete the slot where the moved value was stored set._values.pop(); // Delete the index for the deleted slot delete set._indexes[value]; return true; } else { return false; } } /** * @dev Returns true if the value is in the set. O(1). */ function _contains(Set storage set, bytes32 value) private view returns (bool) { return set._indexes[value] != 0; } /** * @dev Returns the number of values on the set. O(1). */ function _length(Set storage set) private view returns (uint256) { return set._values.length; } /** * @dev Returns the value stored at position `index` in the set. O(1). * * Note that there are no guarantees on the ordering of values inside the * array, and it may change when more values are added or removed. * * Requirements: * * - `index` must be strictly less than {length}. */ function _at(Set storage set, uint256 index) private view returns (bytes32) { require(set._values.length > index, "EnumerableSet: index out of bounds"); return set._values[index]; } // Bytes32Set struct Bytes32Set { Set _inner; } /** * @dev Add a value to a set. O(1). * * Returns true if the value was added to the set, that is if it was not * already present. */ function add(Bytes32Set storage set, bytes32 value) internal returns (bool) { return _add(set._inner, value); } /** * @dev Removes a value from a set. O(1). * * Returns true if the value was removed from the set, that is if it was * present. */ function remove(Bytes32Set storage set, bytes32 value) internal returns (bool) { return _remove(set._inner, value); } /** * @dev Returns true if the value is in the set. O(1). */ function contains(Bytes32Set storage set, bytes32 value) internal view returns (bool) { return _contains(set._inner, value); } /** * @dev Returns the number of values in the set. O(1). */ function length(Bytes32Set storage set) internal view returns (uint256) { return _length(set._inner); } /** * @dev Returns the value stored at position `index` in the set. O(1). * * Note that there are no guarantees on the ordering of values inside the * array, and it may change when more values are added or removed. * * Requirements: * * - `index` must be strictly less than {length}. */ function at(Bytes32Set storage set, uint256 index) internal view returns (bytes32) { return _at(set._inner, index); } // AddressSet struct AddressSet { Set _inner; } /** * @dev Add a value to a set. O(1). * * Returns true if the value was added to the set, that is if it was not * already present. */ function add(AddressSet storage set, address value) internal returns (bool) { return _add(set._inner, bytes32(uint256(uint160(value)))); } /** * @dev Removes a value from a set. O(1). * * Returns true if the value was removed from the set, that is if it was * present. */ function remove(AddressSet storage set, address value) internal returns (bool) { return _remove(set._inner, bytes32(uint256(uint160(value)))); } /** * @dev Returns true if the value is in the set. O(1). */ function contains(AddressSet storage set, address value) internal view returns (bool) { return _contains(set._inner, bytes32(uint256(uint160(value)))); } /** * @dev Returns the number of values in the set. O(1). */ function length(AddressSet storage set) internal view returns (uint256) { return _length(set._inner); } /** * @dev Returns the value stored at position `index` in the set. O(1). * * Note that there are no guarantees on the ordering of values inside the * array, and it may change when more values are added or removed. * * Requirements: * * - `index` must be strictly less than {length}. */ function at(AddressSet storage set, uint256 index) internal view returns (address) { return address(uint160(uint256(_at(set._inner, index)))); } // UintSet struct UintSet { Set _inner; } /** * @dev Add a value to a set. O(1). * * Returns true if the value was added to the set, that is if it was not * already present. */ function add(UintSet storage set, uint256 value) internal returns (bool) { return _add(set._inner, bytes32(value)); } /** * @dev Removes a value from a set. O(1). * * Returns true if the value was removed from the set, that is if it was * present. */ function remove(UintSet storage set, uint256 value) internal returns (bool) { return _remove(set._inner, bytes32(value)); } /** * @dev Returns true if the value is in the set. O(1). */ function contains(UintSet storage set, uint256 value) internal view returns (bool) { return _contains(set._inner, bytes32(value)); } /** * @dev Returns the number of values on the set. O(1). */ function length(UintSet storage set) internal view returns (uint256) { return _length(set._inner); } /** * @dev Returns the value stored at position `index` in the set. O(1). * * Note that there are no guarantees on the ordering of values inside the * array, and it may change when more values are added or removed. * * Requirements: * * - `index` must be strictly less than {length}. */ function at(UintSet storage set, uint256 index) internal view returns (uint256) { return uint256(_at(set._inner, index)); } }
{ "remappings": [], "optimizer": { "enabled": true, "runs": 200 }, "evmVersion": "istanbul", "libraries": {}, "outputSelection": { "*": { "*": [ "evm.bytecode", "evm.deployedBytecode", "abi" ] } } }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"inputs":[{"internalType":"string","name":"_name","type":"string"},{"internalType":"string","name":"_symbol","type":"string"},{"internalType":"address","name":"factoryAddress","type":"address"},{"internalType":"address","name":"contractCreator","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"approved","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":false,"internalType":"bool","name":"approved","type":"bool"}],"name":"ApprovalForAll","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"NFTId","type":"uint256"}],"name":"CloseNFTWindow","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"NFTId","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"currentEvolutionLevel","type":"uint256"}],"name":"EvolvedNFT","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"mouldToUpdate","type":"uint256"},{"indexed":false,"internalType":"string","name":"IPFSHash","type":"string"},{"indexed":false,"internalType":"string","name":"arweaveHash","type":"string"},{"indexed":false,"internalType":"string","name":"artworkType","type":"string"},{"indexed":false,"internalType":"uint256","name":"artworkIndex","type":"uint256"}],"name":"NewArtworkAdded","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"NFTId","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"tokenId","type":"uint256"},{"indexed":false,"internalType":"address","name":"recipient","type":"address"}],"name":"NewNFTCreatedFor","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"NFTIndex","type":"uint256"}],"name":"NewNFTMouldCreated","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"tokenId","type":"uint256"},{"indexed":false,"internalType":"string","name":"redemptionNote","type":"string"}],"name":"RedeemNFT","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"seller","type":"address"},{"indexed":true,"internalType":"uint256","name":"offeringId","type":"uint256"},{"indexed":false,"internalType":"address","name":"buyer","type":"address"}],"name":"SaleProcessed","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"seller","type":"address"},{"indexed":true,"internalType":"uint256","name":"offeringId","type":"uint256"}],"name":"SellerAdded","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"seller","type":"address"},{"indexed":true,"internalType":"uint256","name":"offeringId","type":"uint256"}],"name":"SellerRemoved","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":[{"internalType":"uint256","name":"mouldId","type":"uint256"},{"internalType":"address","name":"seller","type":"address"}],"name":"DeregisterSeller","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"NFTId","type":"uint256"},{"internalType":"uint256","name":"index","type":"uint256"}],"name":"NFTMouldFileData","outputs":[{"internalType":"string","name":"hashIPFS","type":"string"},{"internalType":"string","name":"hashArweave","type":"string"},{"internalType":"string","name":"artworkType","type":"string"},{"internalType":"uint256","name":"unmintedEditions","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"NFTId","type":"uint256"}],"name":"NFTMouldMetadata","outputs":[{"internalType":"string","name":"name","type":"string"},{"internalType":"string","name":"description","type":"string"},{"components":[{"internalType":"string","name":"name","type":"string"},{"internalType":"string","name":"value","type":"string"}],"internalType":"struct infinityTokensPublic.Attributes[]","name":"attributes","type":"tuple[]"},{"internalType":"uint256","name":"editionSize","type":"uint256"},{"internalType":"uint256","name":"editionsMinted","type":"uint256"},{"internalType":"uint256","name":"evolutionLevel","type":"uint256"},{"internalType":"uint256","name":"totalRedemptions","type":"uint256"},{"internalType":"uint64","name":"redemptionExpiration","type":"uint64"},{"internalType":"bool","name":"isActive","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"mouldId","type":"uint256"},{"internalType":"address","name":"seller","type":"address"}],"name":"RegisterSeller","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"mouldToUpdate","type":"uint256"},{"internalType":"string","name":"hashIPFS","type":"string"},{"internalType":"string","name":"hashArweave","type":"string"},{"internalType":"string","name":"artworkType","type":"string"},{"internalType":"uint256","name":"artworkIndex","type":"uint256"}],"name":"addFile","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"approve","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"artistWalletAddress","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"authorisedCaller","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"},{"internalType":"uint256","name":"","type":"uint256"}],"name":"authorizedSellersByOffer","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"baseURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"NFTId","type":"uint256"}],"name":"closeNFTWindow","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"artworkHashIPFS","type":"string"},{"internalType":"string","name":"artworkHashArweave","type":"string"},{"internalType":"string","name":"artworkType","type":"string"},{"internalType":"string","name":"name","type":"string"},{"internalType":"string","name":"description","type":"string"},{"components":[{"internalType":"string","name":"name","type":"string"},{"internalType":"string","name":"value","type":"string"}],"internalType":"struct infinityTokensPublic.Attributes[]","name":"attributes","type":"tuple[]"},{"internalType":"uint256","name":"editionSize","type":"uint256"},{"internalType":"uint256","name":"totalRedemptions","type":"uint256"},{"internalType":"uint64","name":"redemptionExpiration","type":"uint64"},{"internalType":"address payable[]","name":"royaltyAddress","type":"address[]"},{"internalType":"uint256[]","name":"royaltyBps","type":"uint256[]"}],"name":"createNFTMould","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"NFTId","type":"uint256"}],"name":"devolveNFT","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"NFTId","type":"uint256"}],"name":"evolveNFT","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"factoryAddressRef","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"factoryContract","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"fileArweaveReferenceURL","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"fileIPFSReferenceURL","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getApproved","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"id","type":"uint256"}],"name":"getFeeBps","outputs":[{"internalType":"uint256[]","name":"","type":"uint256[]"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"id","type":"uint256"}],"name":"getFeeRecipients","outputs":[{"internalType":"address payable[]","name":"","type":"address[]"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"uint256","name":"index","type":"uint256"}],"name":"getFileData","outputs":[{"internalType":"string","name":"hashIPFS","type":"string"},{"internalType":"string","name":"hashArweave","type":"string"},{"internalType":"string","name":"artworkType","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getMetadata","outputs":[{"internalType":"uint256","name":"NFTRef","type":"uint256"},{"internalType":"string","name":"name","type":"string"},{"internalType":"string","name":"description","type":"string"},{"components":[{"internalType":"string","name":"name","type":"string"},{"internalType":"string","name":"value","type":"string"}],"internalType":"struct infinityTokensPublic.Attributes[]","name":"attributes","type":"tuple[]"},{"internalType":"uint256","name":"editionSize","type":"uint256"},{"internalType":"uint256","name":"editionNumber","type":"uint256"},{"internalType":"uint256","name":"evolutionLevel","type":"uint256"},{"internalType":"uint256","name":"totalRedemptions","type":"uint256"},{"internalType":"uint64","name":"redemptionExpiration","type":"uint64"},{"internalType":"uint256","name":"remainingRedemptions","type":"uint256"},{"internalType":"bool","name":"isActive","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"offeringId","type":"uint256"}],"name":"getSellersFor","outputs":[{"internalType":"address[]","name":"sellers","type":"address[]"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"string","name":"_name","type":"string"},{"internalType":"string","name":"_symbol","type":"string"},{"internalType":"address","name":"factoryAddress","type":"address"},{"internalType":"address","name":"contractCreator","type":"address"}],"name":"init","outputs":[],"stateMutability":"nonpayable","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":"seller","type":"address"},{"internalType":"uint256","name":"offeringId","type":"uint256"}],"name":"isAuthorizedSellerOf","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"uint256","name":"artworkIndex","type":"uint256"}],"name":"multiURI","outputs":[{"internalType":"string","name":"uri","type":"string"}],"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":"NFTId","type":"uint256"},{"internalType":"uint256","name":"amountToMint","type":"uint256"}],"name":"ownerMint","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"ownerOf","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"offeringId","type":"uint256"},{"internalType":"address","name":"buyer","type":"address"}],"name":"processSale","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"string","name":"redemptionNote","type":"string"}],"name":"redeemNFT","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"bytes","name":"_data","type":"bytes"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"operator","type":"address"},{"internalType":"bool","name":"approved","type":"bool"}],"name":"setApprovalForAll","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_caller","type":"address"},{"internalType":"bool","name":"_value","type":"bool"}],"name":"setCaller","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"NFTId","type":"uint256"},{"internalType":"uint256","name":"newLevel","type":"uint256"}],"name":"setEvolutionLevel","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes4","name":"interfaceId","type":"bytes4"}],"name":"supportsInterface","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"index","type":"uint256"}],"name":"tokenByIndex","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"uint256","name":"index","type":"uint256"}],"name":"tokenOfOwnerByIndex","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"tokenURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"transferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"NFTId","type":"uint256"},{"internalType":"bool","name":"newState","type":"bool"}],"name":"updateActiveState","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newfactoryContract","type":"address"}],"name":"updateFactoryContract","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"newURI1","type":"string"},{"internalType":"string","name":"newURI2","type":"string"},{"internalType":"string","name":"newURI3","type":"string"}],"name":"updateMultiURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"newURI","type":"string"}],"name":"updateURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"withdrawFunds","outputs":[],"stateMutability":"nonpayable","type":"function"}]
Contract Creation Code
60806040523480156200001157600080fd5b5060405162005de638038062005de6833981016040819052620000349162000865565b83836200004282826200007a565b503390506200005181620000e0565b5062000064632dde656160e21b6200018b565b6200007082826200020c565b5050505062000a87565b81516200008f90600790602085019062000718565b508051620000a590600890602084019062000718565b50620000b86380ac58cd60e01b6200018b565b620000ca635b5e139f60e01b6200018b565b620000dc63780e9d6360e01b6200018b565b5050565b600b546001600160a01b0316156200013f5760405162461bcd60e51b815260206004820152601f60248201527f436f6e747261637420697320616c726561647920696e697469616c697a65640060448201526064015b60405180910390fd5b600b80546001600160a01b0319166001600160a01b0383169081179091556040516000907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908290a350565b6001600160e01b03198082161415620001e75760405162461bcd60e51b815260206004820152601c60248201527f4552433136353a20696e76616c696420696e7465726661636520696400000000604482015260640162000136565b6001600160e01b0319166000908152602081905260409020805460ff19166001179055565b620002436200021b3062000372565b6040516020016200022d9190620008f1565b60408051601f198184030181529190526200039b565b600160105560408051808201909152601c8082527f68747470733a2f2f697066732e696e667572612e696f2f697066732f0000000060209092019182526200028e9160239162000718565b506040805180820190915260148082527f68747470733a2f2f617277656176652e6e65742f0000000000000000000000006020909201918252620002d59160249162000718565b50620003446040518060800160405280604a815260200162005d9c604a9139604051806040016040528060048152602001632669643d60e01b8152506040518060400160405280600e81526020016d26617274776f726b496e6465783d60901b8152506200040260201b60201c565b601180546001600160a01b039384166001600160a01b03199182161790915560288054929093169116179055565b606062000393826001600160a01b0316620004a260201b62002b601760201c565b90505b919050565b600b546001600160a01b03163314620003f45760405162461bcd60e51b8152602060048201526025602482015260008051602062005d7c83398151915260448201526437bbb732b960d91b606482015260840162000136565b620003ff8162000507565b50565b600b546001600160a01b031633146200045b5760405162461bcd60e51b8152602060048201526025602482015260008051602062005d7c83398151915260448201526437bbb732b960d91b606482015260840162000136565b82516200047090602590602086019062000718565b5081516200048690602690602085019062000718565b5080516200049c90602790602084019062000718565b50505050565b606081620004cc57506040805180820190915260048152630307830360e41b602082015262000396565b8160005b8115620004f35780620004e38162000a3d565b915050600882901c9150620004d0565b620004ff84826200051c565b949350505050565b8051620000dc90600a90602084019062000718565b606060006200052d83600262000995565b6200053a9060026200097a565b6001600160401b038111156200056057634e487b7160e01b600052604160045260246000fd5b6040519080825280601f01601f1916602001820160405280156200058b576020820181803683370190505b509050600360fc1b81600081518110620005b557634e487b7160e01b600052603260045260246000fd5b60200101906001600160f81b031916908160001a905350600f60fb1b81600181518110620005f357634e487b7160e01b600052603260045260246000fd5b60200101906001600160f81b031916908160001a90535060006200061984600262000995565b620006269060016200097a565b90505b6001811115620006c0576f181899199a1a9b1b9c1cb0b131b232b360811b85600f16601081106200066a57634e487b7160e01b600052603260045260246000fd5b1a60f81b8282815181106200068f57634e487b7160e01b600052603260045260246000fd5b60200101906001600160f81b031916908160001a90535060049490941c93620006b881620009e6565b905062000629565b508315620007115760405162461bcd60e51b815260206004820181905260248201527f537472696e67733a20686578206c656e67746820696e73756666696369656e74604482015260640162000136565b9392505050565b828054620007269062000a00565b90600052602060002090601f0160209004810192826200074a576000855562000795565b82601f106200076557805160ff191683800117855562000795565b8280016001018555821562000795579182015b828111156200079557825182559160200191906001019062000778565b50620007a3929150620007a7565b5090565b5b80821115620007a35760008155600101620007a8565b80516001600160a01b03811681146200039657600080fd5b600082601f830112620007e7578081fd5b81516001600160401b038082111562000804576200080462000a71565b604051601f8301601f19908116603f011681019082821181831017156200082f576200082f62000a71565b8160405283815286602085880101111562000848578485fd5b6200085b846020830160208901620009b7565b9695505050505050565b600080600080608085870312156200087b578384fd5b84516001600160401b038082111562000892578586fd5b620008a088838901620007d6565b95506020870151915080821115620008b6578485fd5b50620008c587828801620007d6565b935050620008d660408601620007be565b9150620008e660608601620007be565b905092959194509250565b60007f68747470733a2f2f696e66696e697479746f6b656e732e617a7572657765627382527f697465732e6e65742f6170692f48747470547269676765723f617274436f6e74602083015264726163743d60d81b604083015282516200095f816045850160208701620009b7565b632669643d60e01b6045939091019283015250604901919050565b6000821982111562000990576200099062000a5b565b500190565b6000816000190483118215151615620009b257620009b262000a5b565b500290565b60005b83811015620009d4578181015183820152602001620009ba565b838111156200049c5750506000910152565b600081620009f857620009f862000a5b565b506000190190565b600181811c9082168062000a1557607f821691505b6020821081141562000a3757634e487b7160e01b600052602260045260246000fd5b50919050565b600060001982141562000a545762000a5462000a5b565b5060010190565b634e487b7160e01b600052601160045260246000fd5b634e487b7160e01b600052604160045260246000fd5b6152e58062000a976000396000f3fe608060405234801561001057600080fd5b50600436106103425760003560e01c80638da5cb5b116101b8578063b9c4d9fb11610104578063dc1270c7116100a2578063e985e9c51161007c578063e985e9c51461076d578063ea13cc34146107a9578063f2fde38b146107bc578063fd73d81c146107cf57610342565b8063dc1270c714610725578063de11c94a14610738578063e6029a5c1461074b57610342565b8063c5e707a1116100de578063c5e707a1146106d9578063c87b56dd146106ec578063d424d614146106ff578063d47573d41461071257610342565b8063b9c4d9fb146106a0578063c2fb538e146106b3578063c30f4a5a146106c657610342565b8063a466501611610171578063a8314edc1161014b578063a8314edc14610654578063add49af614610667578063afbce0031461067a578063b88d4fde1461068d57610342565b8063a4665016146105f4578063a574cea414610607578063a74772c81461063157610342565b80638da5cb5b14610582578063958265de1461059357806395d89b41146105a65780639cae6eae146105ae578063a22cb465146105c1578063a35b0af3146105d457610342565b80632f745c59116102925780636c0360eb116102305780637b8c84af1161020a5780637b8c84af146105265780637ce877c01461053957806384210a311461054c578063874d52a21461055f57610342565b80636c0360eb1461050357806370a082311461050b578063715018a61461051e57610342565b806346abdccf1161026c57806346abdccf146104a25780634f6ccce7146104b55780636352211e146104c8578063683bba51146104db57610342565b80632f745c591461046957806342842e0e1461047c5780634394a37a1461048f57610342565b80630e07f854116102ff5780631f9dbb2c116102d95780631f9dbb2c1461043357806323b872dd1461043b57806324600fc31461044e5780632477befd1461045657610342565b80630e07f854146103ea5780630ebd4c7f146103fd57806318160ddd1461041d57610342565b806301ffc9a7146103475780630605d6ae1461036f57806306fdde031461039a57806307efe3a6146103af578063081812fc146103c4578063095ea7b3146103d7575b600080fd5b61035a610355366004614555565b6107d7565b60405190151581526020015b60405180910390f35b602954610382906001600160a01b031681565b6040516001600160a01b039091168152602001610366565b6103a2610819565b6040516103669190614cb3565b6103c26103bd366004614868565b6108ab565b005b6103826103d236600461482c565b6108fe565b6103c26103e536600461452a565b610986565b6103c26103f83660046145bf565b610a9c565b61041061040b36600461482c565b610b0e565b6040516103669190614c7b565b610425610b7c565b604051908152602001610366565b6103a2610b8d565b6103c261044936600461443a565b610c1b565b6103c2610c4c565b6103c26104643660046148ce565b610ca5565b61042561047736600461452a565b610e7d565b6103c261048a36600461443a565b610ea8565b6103c261049d366004614844565b610ec3565b6103c26104b036600461482c565b610efb565b6104256104c336600461482c565b610faa565b6103826104d636600461482c565b610fc0565b6104ee6104e936600461482c565b610fe8565b60405161036699989796959493929190614cc6565b6103a2611368565b6104256105193660046143e6565b611377565b6103c2611403565b6103c2610534366004614844565b611477565b6103c2610547366004614963565b611533565b6103c261055a36600461488a565b611589565b61057261056d366004614963565b6116ac565b6040516103669493929190614d7b565b600b546001600160a01b0316610382565b6103a26105a1366004614963565b611916565b6103a261198a565b6103c26105bc3660046144f6565b611999565b6103c26105cf3660046144f6565b6119ee565b6105e76105e236600461482c565b611ab4565b6040516103669190614c2e565b6103c2610602366004614644565b611b20565b61061a61061536600461482c565b611b85565b6040516103669b9a99989796959493929190614f5f565b61035a61063f3660046143e6565b60126020526000908152604090205460ff1681565b610382610662366004614963565b611f7c565b61035a61067536600461452a565b611fb4565b6103c26106883660046146c7565b612049565b6103c261069b36600461447a565b61236a565b6105e76106ae36600461482c565b61239c565b6103c26106c13660046143e6565b612413565b6103c26106d436600461458d565b61245f565b6103c26106e736600461482c565b612492565b6103a26106fa36600461482c565b612522565b6103c261070d366004614844565b612663565b6103c2610720366004614963565b612697565b6103c261073336600461482c565b61275c565b601154610382906001600160a01b031681565b61075e610759366004614963565b6127d0565b60405161036693929190614d42565b61035a61077b366004614402565b6001600160a01b03918216600090815260066020908152604080832093909416825291909152205460ff1690565b602854610382906001600160a01b031681565b6103c26107ca3660046143e6565b612a68565b6103a2612b53565b60006301ffc9a760e01b6001600160e01b03198316148061081157506001600160e01b0319821660009081526020819052604090205460ff165b90505b919050565b60606007805461082890615133565b80601f016020809104026020016040519081016040528092919081815260200182805461085490615133565b80156108a15780601f10610876576101008083540402835291602001916108a1565b820191906000526020600020905b81548152906001019060200180831161088457829003601f168201915b5050505050905090565b600b546001600160a01b031633146108de5760405162461bcd60e51b81526004016108d590614dc6565b60405180910390fd5b600091825260226020526040909120805460ff1916911515919091179055565b600061090982612bbd565b61096a5760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a20617070726f76656420717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b60648201526084016108d5565b506000908152600560205260409020546001600160a01b031690565b600061099182610fc0565b9050806001600160a01b0316836001600160a01b031614156109ff5760405162461bcd60e51b815260206004820152602160248201527f4552433732313a20617070726f76616c20746f2063757272656e74206f776e656044820152603960f91b60648201526084016108d5565b336001600160a01b0382161480610a1b5750610a1b813361077b565b610a8d5760405162461bcd60e51b815260206004820152603860248201527f4552433732313a20617070726f76652063616c6c6572206973206e6f74206f7760448201527f6e6572206e6f7220617070726f76656420666f7220616c6c000000000000000060648201526084016108d5565b610a978383612bca565b505050565b6011546001600160a01b031615610aeb5760405162461bcd60e51b8152602060048201526013602482015272185b1c9958591e481a5b9a5d1a585b1a5e9959606a1b60448201526064016108d5565b610af482612c38565b610afe8484612cdd565b610b088282612d35565b50505050565b6000818152600e6020908152604080832054808452600d835292819020805482518185028101850190935280835260609493830182828015610b6f57602002820191906000526020600020905b815481526020019060010190808311610b5b575b5050505050915050919050565b6000610b886002612e7e565b905090565b60248054610b9a90615133565b80601f0160208091040260200160405190810160405280929190818152602001828054610bc690615133565b8015610c135780601f10610be857610100808354040283529160200191610c13565b820191906000526020600020905b815481529060010190602001808311610bf657829003601f168201915b505050505081565b610c253382612e89565b610c415760405162461bcd60e51b81526004016108d590614ef5565b610a97838383612f6f565b600b546001600160a01b03163314610c765760405162461bcd60e51b81526004016108d590614dc6565b60405133904780156108fc02916000818181858888f19350505050158015610ca2573d6000803e3d6000fd5b50565b600b546001600160a01b03163314610ccf5760405162461bcd60e51b81526004016108d590614dc6565b60008581526013602052604090208160648110610cfc57634e487b7160e01b600052603260045260246000fd5b602081049091015460ff601f9092166101000a90041615610d1c57600080fd5b600085815260146020526040902084908260648110610d4b57634e487b7160e01b600052603260045260246000fd5b019080519060200190610d5f929190614096565b50600085815260156020526040902083908260648110610d8f57634e487b7160e01b600052603260045260246000fd5b019080519060200190610da3929190614096565b50600085815260166020526040902082908260648110610dd357634e487b7160e01b600052603260045260246000fd5b019080519060200190610de7929190614096565b5060008581526013602052604090206001908260648110610e1857634e487b7160e01b600052603260045260246000fd5b602091828204019190066101000a81548160ff0219169083151502179055507f6cbbe842df704a08863b4024cbc78530a7a40f9ec2996743759df694670a65f68585858585604051610e6e959493929190614fe9565b60405180910390a15050505050565b6001600160a01b0382166000908152600160205260408120610e9f90836130f0565b90505b92915050565b610a978383836040518060200160405280600081525061236a565b600b546001600160a01b03163314610eed5760405162461bcd60e51b81526004016108d590614dc6565b610ef782826130fc565b5050565b3360009081526012602052604090205460ff1680610f235750600b546001600160a01b031633145b610f3f5760405162461bcd60e51b81526004016108d590614e5d565b6000818152601f6020526040902054610f5981600161508e565b6000838152601f60209081526040918290209290925580518481529182018390527f02c331d583ec481ce2eae99da785a50baf62a09f3485d5903f42d7710c2e5bdb91015b60405180910390a15050565b600080610fb8600284613192565b509392505050565b60006108118260405180606001604052806029815260200161528760299139600291906131ae565b6060806060600080600080600080601760008b8152602001908152602001600020805461101490615133565b80601f016020809104026020016040519081016040528092919081815260200182805461104090615133565b801561108d5780601f106110625761010080835404028352916020019161108d565b820191906000526020600020905b81548152906001019060200180831161107057829003601f168201915b50505060008d81526018602052604090208054939c50926110b092509050615133565b80601f01602080910402602001604051908101604052809291908181526020018280546110dc90615133565b80156111295780601f106110fe57610100808354040283529160200191611129565b820191906000526020600020905b81548152906001019060200180831161110c57829003601f168201915b50505060008d81526019602090815260408083208054825181850281018501909352808352969e509095909450925084015b828210156112b1578382906000526020600020906002020160405180604001604052908160008201805461118e90615133565b80601f01602080910402602001604051908101604052809291908181526020018280546111ba90615133565b80156112075780601f106111dc57610100808354040283529160200191611207565b820191906000526020600020905b8154815290600101906020018083116111ea57829003601f168201915b5050505050815260200160018201805461122090615133565b80601f016020809104026020016040519081016040528092919081815260200182805461124c90615133565b80156112995780601f1061126e57610100808354040283529160200191611299565b820191906000526020600020905b81548152906001019060200180831161127c57829003601f168201915b5050505050815250508152602001906001019061115b565b505050509650601a60008b8152602001908152602001600020549550602160008b8152602001908152602001600020549450601f60008b8152602001908152602001600020549350601c60008b8152602001908152602001600020549250601d60008b815260200190815260200160002060009054906101000a90046001600160401b03169150602260008b815260200190815260200160002060009054906101000a900460ff1690509193959799909294969850565b6060600a805461082890615133565b60006001600160a01b0382166113e25760405162461bcd60e51b815260206004820152602a60248201527f4552433732313a2062616c616e636520717565727920666f7220746865207a65604482015269726f206164647265737360b01b60648201526084016108d5565b6001600160a01b0382166000908152600160205260409020610811906131c5565b600b546001600160a01b0316331461142d5760405162461bcd60e51b81526004016108d590614dc6565b600b546040516000916001600160a01b0316907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908390a3600b80546001600160a01b0319169055565b6114813383611fb4565b6114e45760405162461bcd60e51b815260206004820152602e60248201527f43616c6c6572206973206e6f7420617574686f72697a656420746f2073656c6c60448201526d2074686973206f66666572696e6760901b60648201526084016108d5565b6114ee82826131cf565b6040516001600160a01b0382168152829033907f1514cf5c85471a08cd7ad4f094f772499655bc6175a68f4cbb1082160812172f906020015b60405180910390a35050565b3360009081526012602052604090205460ff168061155b5750600b546001600160a01b031633145b6115775760405162461bcd60e51b81526004016108d590614e5d565b6000918252601f602052604090912055565b61159282610fc0565b6001600160a01b0316336001600160a01b0316146115f25760405162461bcd60e51b815260206004820152601b60248201527f4d757374206f776e2074686973204e465420746f2072656465656d000000000060448201526064016108d5565b6000828152601e602052604090205461164d5760405162461bcd60e51b815260206004820152601d60248201527f546f6b656e20686173206265656e2066756c6c792072656465656d656400000060448201526064016108d5565b6000828152601e6020526040902054611668906001906150d9565b6000838152601e60205260409081902091909155517faab28053bc82ed567ee5ebd82fc102969c96a45c207e8145a0f6c3490c8446cf90610f9e9084908490614f46565b6000828152601460205260408120606091829182919085606481106116e157634e487b7160e01b600052603260045260246000fd5b0180546116ed90615133565b80601f016020809104026020016040519081016040528092919081815260200182805461171990615133565b80156117665780601f1061173b57610100808354040283529160200191611766565b820191906000526020600020905b81548152906001019060200180831161174957829003601f168201915b5050506000898152601560205260409020929650879150506064811061179c57634e487b7160e01b600052603260045260246000fd5b0180546117a890615133565b80601f01602080910402602001604051908101604052809291908181526020018280546117d490615133565b80156118215780601f106117f657610100808354040283529160200191611821565b820191906000526020600020905b81548152906001019060200180831161180457829003601f168201915b5050506000898152601660205260409020929550879150506064811061185757634e487b7160e01b600052603260045260246000fd5b01805461186390615133565b80601f016020809104026020016040519081016040528092919081815260200182805461188f90615133565b80156118dc5780601f106118b1576101008083540402835291602001916118dc565b820191906000526020600020905b8154815290600101906020018083116118bf57829003601f168201915b505050600089815260216020908152604080832054601a9092529091205493955061190b9390925090506150d9565b905092959194509250565b606061192183612bbd565b61193d5760405162461bcd60e51b81526004016108d590614ea6565b602561194830613241565b602661195386613255565b602761195e87613255565b60405160200161197396959493929190614b03565b604051602081830303815290604052905092915050565b60606008805461082890615133565b600b546001600160a01b031633146119c35760405162461bcd60e51b81526004016108d590614dc6565b6001600160a01b03919091166000908152601260205260409020805460ff1916911515919091179055565b6001600160a01b038216331415611a475760405162461bcd60e51b815260206004820152601960248201527f4552433732313a20617070726f766520746f2063616c6c65720000000000000060448201526064016108d5565b3360008181526006602090815260408083206001600160a01b0387168085529252909120805460ff1916841515179055906001600160a01b03167f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c3183604051611527911515815260200190565b6000818152600f6020908152604091829020805483518184028101840190945280845260609392830182828015611b1457602002820191906000526020600020905b81546001600160a01b03168152600190910190602001808311611af6575b50505050509050919050565b600b546001600160a01b03163314611b4a5760405162461bcd60e51b81526004016108d590614dc6565b8251611b5d906025906020860190614096565b508151611b71906026906020850190614096565b508051610b08906027906020840190614096565b600060608060606000806000806000806000611ba08c612bbd565b611be45760405162461bcd60e51b81526020600482015260156024820152742a37b5b2b7103237b2b9903737ba1032bc34b9ba1760591b60448201526064016108d5565b60008c8152600e602090815260408083205480845260179092529091208054919c5090611c1090615133565b80601f0160208091040260200160405190810160405280929190818152602001828054611c3c90615133565b8015611c895780601f10611c5e57610100808354040283529160200191611c89565b820191906000526020600020905b815481529060010190602001808311611c6c57829003601f168201915b50505060008e81526018602052604090208054939d5092611cac92509050615133565b80601f0160208091040260200160405190810160405280929190818152602001828054611cd890615133565b8015611d255780601f10611cfa57610100808354040283529160200191611d25565b820191906000526020600020905b815481529060010190602001808311611d0857829003601f168201915b50505060008e81526019602090815260408083208054825181850281018501909352808352969f509095909450925084015b82821015611ead5783829060005260206000209060020201604051806040016040529081600082018054611d8a90615133565b80601f0160208091040260200160405190810160405280929190818152602001828054611db690615133565b8015611e035780601f10611dd857610100808354040283529160200191611e03565b820191906000526020600020905b815481529060010190602001808311611de657829003601f168201915b50505050508152602001600182018054611e1c90615133565b80601f0160208091040260200160405190810160405280929190818152602001828054611e4890615133565b8015611e955780601f10611e6a57610100808354040283529160200191611e95565b820191906000526020600020905b815481529060010190602001808311611e7857829003601f168201915b50505050508152505081526020019060010190611d57565b505050509750601a60008c8152602001908152602001600020549650601b60008d8152602001908152602001600020549550601f60008c8152602001908152602001600020549450601c60008c8152602001908152602001600020549350601d60008c815260200190815260200160002060009054906101000a90046001600160401b03169250601e60008d8152602001908152602001600020549150602260008c815260200190815260200160002060009054906101000a900460ff16905091939597999b90929496989a50565b600f6020528160005260406000208181548110611f9857600080fd5b6000918252602090912001546001600160a01b03169150829050565b6000805b6000838152600f602052604090205481101561203f576000838152600f6020526040902080546001600160a01b03861691908390811061200857634e487b7160e01b600052603260045260246000fd5b6000918252602090912001546001600160a01b0316141561202d576001915050610ea2565b806120378161516e565b915050611fb8565b5060009392505050565b600b546001600160a01b031633146120735760405162461bcd60e51b81526004016108d590614dc6565b601080546000908152602260209081526040808320805460ff1916600190811790915593548352601482529091208d516120b49391909101918e0190614096565b5060105460009081526015602052604090208a9060010190805190602001906120de929190614096565b50601054600090815260166020526040902089906001019080519060200190612108929190614096565b506010546000908152601760209081526040909120895161212b928b0190614096565b506010546000908152601860209081526040909120885161214e928a0190614096565b505b85516010546000908152601960205260409020541015612244576010805460009081526019602052604080822080546001908101909155925482528120549091612199916150d9565b90508681815181106121bb57634e487b7160e01b600052603260045260246000fd5b602002602001015160196000601054815260200190815260200160002082815481106121f757634e487b7160e01b600052603260045260246000fd5b90600052602060002090600202016000820151816000019080519060200190612221929190614096565b50602082810151805161223a9260018501920190614096565b5090505050612150565b601080546000908152601a6020908152604080832089905583548352601c825280832088905583548352601d825280832080546001600160401b03891667ffffffffffffffff199091161790558354835260138252808320805461ff00191661010017905583548352601f82528083206001905592548252600c815291902083516122d19285019061411a565b506010546000908152600d6020908152604090912082516122f49284019061416f565b5060108054600090815260208080526040808320839055835483526021825280832092909255915490519081527fa0b684c0338eaff8541a418ac04e426c79198e460fd1922643db06e495ffbc67910160405180910390a160105461235a90600161508e565b6010555050505050505050505050565b6123743383612e89565b6123905760405162461bcd60e51b81526004016108d590614ef5565b610b088484848461336f565b6000818152600e6020908152604080832054808452600c835292819020805482518185028101850190935280835260609493830182828015610b6f57602002820191906000526020600020905b81546001600160a01b031681526001909101906020018083116123e9575050505050915050919050565b600b546001600160a01b0316331461243d5760405162461bcd60e51b81526004016108d590614dc6565b601180546001600160a01b0319166001600160a01b0392909216919091179055565b600b546001600160a01b031633146124895760405162461bcd60e51b81526004016108d590614dc6565b610ca2816133a2565b600b546001600160a01b031633146124bc5760405162461bcd60e51b81526004016108d590614dc6565b6000818152602260209081526040808320805460ff191690556021825280832054601a9092529182902055517fb48c791d452103c73f033b70ce532f67a3de0d4bbe9df07920172fc5c9f022e8906125179083815260200190565b60405180910390a150565b606061252d82612bbd565b6125495760405162461bcd60e51b81526004016108d590614ea6565b6000828152600960205260408120805461256290615133565b80601f016020809104026020016040519081016040528092919081815260200182805461258e90615133565b80156125db5780601f106125b0576101008083540402835291602001916125db565b820191906000526020600020905b8154815290600101906020018083116125be57829003601f168201915b50505050509050600a80546125ef90615133565b151590506125fe579050610814565b80511561263057600a81604051602001612619929190614ade565b604051602081830303815290604052915050610814565b600a61263b84613255565b60405160200161264c929190614ade565b604051602081830303815290604052915050919050565b600b546001600160a01b0316331461268d5760405162461bcd60e51b81526004016108d590614dc6565b610ef782826133b5565b600b546001600160a01b031633146126c15760405162461bcd60e51b81526004016108d590614dc6565b6000828152601a60209081526040808320546021909252909120546126e790839061508e565b11156127355760405162461bcd60e51b815260206004820152601e60248201527f43616e6e6f74206d696e742074686174206d616e792065646974696f6e73000060448201526064016108d5565b60005b81811015610a975761274a8333613653565b806127548161516e565b915050612738565b3360009081526012602052604090205460ff16806127845750600b546001600160a01b031633145b6127a05760405162461bcd60e51b81526004016108d590614e5d565b6000818152601f60205260409020546127ba6001826150d9565b6000928352601f60205260409092209190915550565b60608060606127de85612bbd565b6128225760405162461bcd60e51b81526020600482015260156024820152742a37b5b2b7103237b2b9903737ba1032bc34b9ba1760591b60448201526064016108d5565b6000858152600e60209081526040808320548084526014909252909120856064811061285e57634e487b7160e01b600052603260045260246000fd5b01805461286a90615133565b80601f016020809104026020016040519081016040528092919081815260200182805461289690615133565b80156128e35780601f106128b8576101008083540402835291602001916128e3565b820191906000526020600020905b8154815290600101906020018083116128c657829003601f168201915b5050506000848152601560205260409020929650879150506064811061291957634e487b7160e01b600052603260045260246000fd5b01805461292590615133565b80601f016020809104026020016040519081016040528092919081815260200182805461295190615133565b801561299e5780601f106129735761010080835404028352916020019161299e565b820191906000526020600020905b81548152906001019060200180831161298157829003601f168201915b505050600084815260166020526040902092955087915050606481106129d457634e487b7160e01b600052603260045260246000fd5b0180546129e090615133565b80601f0160208091040260200160405190810160405280929190818152602001828054612a0c90615133565b8015612a595780601f10612a2e57610100808354040283529160200191612a59565b820191906000526020600020905b815481529060010190602001808311612a3c57829003601f168201915b50505050509150509250925092565b600b546001600160a01b03163314612a925760405162461bcd60e51b81526004016108d590614dc6565b6001600160a01b038116612af75760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b60648201526084016108d5565b600b546040516001600160a01b038084169216907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a3600b80546001600160a01b0319166001600160a01b0392909216919091179055565b60238054610b9a90615133565b606081612b8857506040805180820190915260048152630307830360e41b6020820152610814565b8160005b8115612bab5780612b9c8161516e565b915050600882901c9150612b8c565b612bb58482613798565b949350505050565b6000610811600283613979565b600081815260056020526040902080546001600160a01b0319166001600160a01b0384169081179091558190612bff82610fc0565b6001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b600b546001600160a01b031615612c915760405162461bcd60e51b815260206004820152601f60248201527f436f6e747261637420697320616c726561647920696e697469616c697a65640060448201526064016108d5565b600b80546001600160a01b0319166001600160a01b0383169081179091556040516000907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908290a350565b8151612cf0906007906020850190614096565b508051612d04906008906020840190614096565b50612d156380ac58cd60e01b613985565b612d25635b5e139f60e01b613985565b610ef763780e9d6360e01b613985565b612d65612d4130613241565b604051602001612d519190614b6a565b60405160208183030381529060405261245f565b600160105560408051808201909152601c8082527f68747470733a2f2f697066732e696e667572612e696f2f697066732f000000006020909201918252612dae91602391614096565b506040805180820190915260148082527368747470733a2f2f617277656176652e6e65742f60601b6020909201918252612dea91602491614096565b50612e506040518060800160405280604a815260200161523d604a9139604051806040016040528060048152602001632669643d60e01b8152506040518060400160405280600e81526020016d26617274776f726b496e6465783d60901b815250611b20565b601180546001600160a01b039384166001600160a01b03199182161790915560288054929093169116179055565b600061081182613a04565b6000612e9482612bbd565b612ef55760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a206f70657261746f7220717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b60648201526084016108d5565b6000612f0083610fc0565b9050806001600160a01b0316846001600160a01b03161480612f3b5750836001600160a01b0316612f30846108fe565b6001600160a01b0316145b80612bb557506001600160a01b0380821660009081526006602090815260408083209388168352929052205460ff16612bb5565b826001600160a01b0316612f8282610fc0565b6001600160a01b031614612fea5760405162461bcd60e51b815260206004820152602960248201527f4552433732313a207472616e73666572206f6620746f6b656e2074686174206960448201526839903737ba1037bbb760b91b60648201526084016108d5565b6001600160a01b03821661304c5760405162461bcd60e51b8152602060048201526024808201527f4552433732313a207472616e7366657220746f20746865207a65726f206164646044820152637265737360e01b60648201526084016108d5565b613057600082612bca565b6001600160a01b03831660009081526001602052604090206130799082613a0f565b506001600160a01b038216600090815260016020526040902061309c9082613a1b565b506130a960028284613a27565b5080826001600160a01b0316846001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a4505050565b6000610e9f8383613a3d565b6131068183611fb4565b156131535760405162461bcd60e51b815260206004820152601c60248201527f53656c6c657220697320616c726561647920617574686f72697a65640000000060448201526064016108d5565b6000918252600f6020908152604083208054600181018255908452922090910180546001600160a01b0319166001600160a01b03909216919091179055565b60008080806131a18686613ad1565b9097909650945050505050565b60006131bb848484613afc565b90505b9392505050565b6000610811825490565b6000828152601a6020908152604080832054602190925290912054106132375760405162461bcd60e51b815260206004820152601f60248201527f4d6178696d756d2065646974696f6e7320616c7265616479206d696e7465640060448201526064016108d5565b610ef78282613653565b6060610811826001600160a01b0316612b60565b60608161327a57506040805180820190915260018152600360fc1b6020820152610814565b8160005b81156132a4578061328e8161516e565b915061329d9050600a836150a6565b915061327e565b6000816001600160401b038111156132cc57634e487b7160e01b600052604160045260246000fd5b6040519080825280601f01601f1916602001820160405280156132f6576020820181803683370190505b5090505b8415612bb55761330b6001836150d9565b9150613318600a86615189565b61332390603061508e565b60f81b81838151811061334657634e487b7160e01b600052603260045260246000fd5b60200101906001600160f81b031916908160001a905350613368600a866150a6565b94506132fa565b61337a848484612f6f565b61338684848484613b48565b610b085760405162461bcd60e51b81526004016108d590614e0b565b8051610ef790600a906020840190614096565b6133bf8183611fb4565b61340b5760405162461bcd60e51b815260206004820152601960248201527f53656c6c657220776173206e6f7420617574686f72697a65640000000000000060448201526064016108d5565b60005b6000838152600f6020526040902054811015613490576000838152600f6020526040902080546001600160a01b03841691908390811061345e57634e487b7160e01b600052603260045260246000fd5b6000918252602090912001546001600160a01b0316141561347e57613490565b806134888161516e565b91505061340e565b6000838152600f60205260409020546134aa6001826150d9565b821015613600576000848152600f602052604081208054849081106134df57634e487b7160e01b600052603260045260246000fd5b6000918252602080832090910154878352600f909152604090912080546001600160a01b039092169250908390811061352857634e487b7160e01b600052603260045260246000fd5b6000918252602080832090910154878352600f909152604090912080546001600160a01b03909216918590811061356f57634e487b7160e01b600052603260045260246000fd5b9060005260206000200160006101000a8154816001600160a01b0302191690836001600160a01b0316021790555080600f600087815260200190815260200160002083815481106135d057634e487b7160e01b600052603260045260246000fd5b9060005260206000200160006101000a8154816001600160a01b0302191690836001600160a01b03160217905550505b6000848152600f6020526040902080548061362b57634e487b7160e01b600052603160045260246000fd5b600082815260209020810160001990810180546001600160a01b031916905501905550505050565b60008281526022602052604090205460ff1615156001146136a85760405162461bcd60e51b815260206004820152600f60248201526e4d696e74206e6f742061637469766560881b60448201526064016108d5565b60006136b2610b7c565b6136bd90600161508e565b6000848152601c6020908152604080832054848452601e835281842055600e825280832087905586835260219091529020549091506136fd90600161508e565b6000828152601b6020908152604080832084905586835260219091529020556137268282613c19565b60408051848152602081018390526001600160a01b0384168183015290517f3e76a2e4d58f5ebb1f050ddb5d21c2b983a83910cab918a4677e83c0589c31579181900360600190a16000838152601a60209081526040808320546021909252909120541415610a9757610a97836124bc565b606060006137a78360026150ba565b6137b290600261508e565b6001600160401b038111156137d757634e487b7160e01b600052604160045260246000fd5b6040519080825280601f01601f191660200182016040528015613801576020820181803683370190505b509050600360fc1b8160008151811061382a57634e487b7160e01b600052603260045260246000fd5b60200101906001600160f81b031916908160001a905350600f60fb1b8160018151811061386757634e487b7160e01b600052603260045260246000fd5b60200101906001600160f81b031916908160001a905350600061388b8460026150ba565b61389690600161508e565b90505b600181111561392a576f181899199a1a9b1b9c1cb0b131b232b360811b85600f16601081106138d857634e487b7160e01b600052603260045260246000fd5b1a60f81b8282815181106138fc57634e487b7160e01b600052603260045260246000fd5b60200101906001600160f81b031916908160001a90535060049490941c936139238161511c565b9050613899565b508315610e9f5760405162461bcd60e51b815260206004820181905260248201527f537472696e67733a20686578206c656e67746820696e73756666696369656e7460448201526064016108d5565b6000610e9f8383613c33565b6001600160e01b031980821614156139df5760405162461bcd60e51b815260206004820152601c60248201527f4552433136353a20696e76616c696420696e746572666163652069640000000060448201526064016108d5565b6001600160e01b0319166000908152602081905260409020805460ff19166001179055565b6000610811826131c5565b6000610e9f8383613c52565b6000610e9f8383613d6f565b60006131bb84846001600160a01b038516613dbe565b81546000908210613a9b5760405162461bcd60e51b815260206004820152602260248201527f456e756d657261626c655365743a20696e646578206f7574206f6620626f756e604482015261647360f01b60648201526084016108d5565b826000018281548110613abe57634e487b7160e01b600052603260045260246000fd5b9060005260206000200154905092915050565b60008080613adf85856130f0565b600081815260029690960160205260409095205494959350505050565b600082815260028401602052604081205480151580613b205750613b208585613c33565b8390613b3f5760405162461bcd60e51b81526004016108d59190614cb3565b50949350505050565b60006001600160a01b0384163b613b6157506001612bb5565b6000613be2630a85bd0160e11b33888787604051602401613b859493929190614bf1565b604051602081830303815290604052906001600160e01b0319166020820180516001600160e01b03838183161783525050505060405180606001604052806032815260200161520b603291396001600160a01b0388169190613ddb565b9050600081806020019051810190613bfa9190614571565b6001600160e01b031916630a85bd0160e11b1492505050949350505050565b610ef7828260405180602001604052806000815250613dea565b6000610e9f838360008181526001830160205260408120541515610e9f565b60008181526001830160205260408120548015613d65576000613c766001836150d9565b8554909150600090613c8a906001906150d9565b90506000866000018281548110613cb157634e487b7160e01b600052603260045260246000fd5b9060005260206000200154905080876000018481548110613ce257634e487b7160e01b600052603260045260246000fd5b600091825260209091200155613cf983600161508e565b60008281526001890160205260409020558654879080613d2957634e487b7160e01b600052603160045260246000fd5b60019003818190600052602060002001600090559055866001016000878152602001908152602001600020600090556001945050505050610ea2565b6000915050610ea2565b6000818152600183016020526040812054613db657508154600181810184556000848152602080822090930184905584548482528286019093526040902091909155610ea2565b506000610ea2565b600082815260028401602052604081208290556131bb8484613a1b565b60606131bb8484600085613e1d565b613df48383613f45565b613e016000848484613b48565b610a975760405162461bcd60e51b81526004016108d590614e0b565b606082471015613e7e5760405162461bcd60e51b815260206004820152602660248201527f416464726573733a20696e73756666696369656e742062616c616e636520666f6044820152651c8818d85b1b60d21b60648201526084016108d5565b843b613ecc5760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e747261637400000060448201526064016108d5565b600080866001600160a01b03168587604051613ee89190614ac2565b60006040518083038185875af1925050503d8060008114613f25576040519150601f19603f3d011682016040523d82523d6000602084013e613f2a565b606091505b5091509150613f3a82828661405d565b979650505050505050565b6001600160a01b038216613f9b5760405162461bcd60e51b815260206004820181905260248201527f4552433732313a206d696e7420746f20746865207a65726f206164647265737360448201526064016108d5565b613fa481612bbd565b15613ff15760405162461bcd60e51b815260206004820152601c60248201527f4552433732313a20746f6b656e20616c7265616479206d696e7465640000000060448201526064016108d5565b6001600160a01b03821660009081526001602052604090206140139082613a1b565b5061402060028284613a27565b5060405181906001600160a01b038416906000907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b6060831561406c5750816131be565b82511561407c5782518084602001fd5b8160405162461bcd60e51b81526004016108d59190614cb3565b8280546140a290615133565b90600052602060002090601f0160209004810192826140c4576000855561410a565b82601f106140dd57805160ff191683800117855561410a565b8280016001018555821561410a579182015b8281111561410a5782518255916020019190600101906140ef565b506141169291506141a9565b5090565b82805482825590600052602060002090810192821561410a579160200282015b8281111561410a57825182546001600160a01b0319166001600160a01b0390911617825560209092019160019091019061413a565b82805482825590600052602060002090810192821561410a579160200282018281111561410a5782518255916020019190600101906140ef565b5b8082111561411657600081556001016141aa565b60006001600160401b038311156141d7576141d76151c9565b6141ea601f8401601f191660200161503b565b90508281528383830111156141fe57600080fd5b828260208301376000602084830101529392505050565b600082601f830112614225578081fd5b8135602061423a6142358361506b565b61503b565b80838252828201915082860187848660051b8901011115614259578586fd5b855b8581101561428057813561426e816151df565b8452928401929084019060010161425b565b5090979650505050505050565b600082601f83011261429d578081fd5b813560206142ad6142358361506b565b82815281810190858301855b858110156142805781358801604080601f19838d030112156142d9578889fd5b6142e28161503b565b878301356001600160401b03808211156142fa578b8cfd5b6143088e8b848801016143b0565b835292840135928084111561431b578b8cfd5b505061432b8c89848601016143b0565b818901528652505092840192908401906001016142b9565b600082601f830112614353578081fd5b813560206143636142358361506b565b80838252828201915082860187848660051b8901011115614382578586fd5b855b8581101561428057813584529284019290840190600101614384565b8035801515811461081457600080fd5b600082601f8301126143c0578081fd5b610e9f838335602085016141be565b80356001600160401b038116811461081457600080fd5b6000602082840312156143f7578081fd5b8135610e9f816151df565b60008060408385031215614414578081fd5b823561441f816151df565b9150602083013561442f816151df565b809150509250929050565b60008060006060848603121561444e578081fd5b8335614459816151df565b92506020840135614469816151df565b929592945050506040919091013590565b6000806000806080858703121561448f578081fd5b843561449a816151df565b935060208501356144aa816151df565b92506040850135915060608501356001600160401b038111156144cb578182fd5b8501601f810187136144db578182fd5b6144ea878235602084016141be565b91505092959194509250565b60008060408385031215614508578182fd5b8235614513816151df565b9150614521602084016143a0565b90509250929050565b6000806040838503121561453c578182fd5b8235614547816151df565b946020939093013593505050565b600060208284031215614566578081fd5b8135610e9f816151f4565b600060208284031215614582578081fd5b8151610e9f816151f4565b60006020828403121561459e578081fd5b81356001600160401b038111156145b3578182fd5b612bb5848285016143b0565b600080600080608085870312156145d4578182fd5b84356001600160401b03808211156145ea578384fd5b6145f6888389016143b0565b9550602087013591508082111561460b578384fd5b50614618878288016143b0565b9350506040850135614629816151df565b91506060850135614639816151df565b939692955090935050565b600080600060608486031215614658578081fd5b83356001600160401b038082111561466e578283fd5b61467a878388016143b0565b9450602086013591508082111561468f578283fd5b61469b878388016143b0565b935060408601359150808211156146b0578283fd5b506146bd868287016143b0565b9150509250925092565b60008060008060008060008060008060006101608c8e0312156146e8578889fd5b6001600160401b03808d3511156146fd57898afd5b61470a8e8e358f016143b0565b9b508060208e0135111561471c57898afd5b61472c8e60208f01358f016143b0565b9a508060408e0135111561473e57898afd5b61474e8e60408f01358f016143b0565b99508060608e01351115614760578788fd5b6147708e60608f01358f016143b0565b98508060808e01351115614782578788fd5b6147928e60808f01358f016143b0565b97508060a08e013511156147a4578687fd5b6147b48e60a08f01358f0161428d565b965060c08d0135955060e08d013594506147d16101008e016143cf565b9350806101208e013511156147e4578283fd5b6147f58e6101208f01358f01614215565b9250806101408e01351115614808578182fd5b5061481a8d6101408e01358e01614343565b90509295989b509295989b9093969950565b60006020828403121561483d578081fd5b5035919050565b60008060408385031215614856578182fd5b82359150602083013561442f816151df565b6000806040838503121561487a578182fd5b82359150614521602084016143a0565b6000806040838503121561489c578182fd5b8235915060208301356001600160401b038111156148b8578182fd5b6148c4858286016143b0565b9150509250929050565b600080600080600060a086880312156148e5578283fd5b8535945060208601356001600160401b0380821115614902578485fd5b61490e89838a016143b0565b95506040880135915080821115614923578485fd5b61492f89838a016143b0565b94506060880135915080821115614944578283fd5b50614951888289016143b0565b95989497509295608001359392505050565b60008060408385031215614975578182fd5b50508035926020909101359150565b600081518084526020808501808196508360051b81019150828601855b858110156149f15782840389528151604081518187526149c3828801826149fe565b915050868201519150858103878701526149dd81836149fe565b9a87019a95505050908401906001016149a1565b5091979650505050505050565b60008151808452614a168160208601602086016150f0565b601f01601f19169290920160200192915050565b8054600090600181811c9080831680614a4457607f831692505b6020808410821415614a6457634e487b7160e01b86526022600452602486fd5b818015614a785760018114614a8957614ab6565b60ff19861689528489019650614ab6565b60008881526020902060005b86811015614aae5781548b820152908501908301614a95565b505084890196505b50505050505092915050565b60008251614ad48184602087016150f0565b9190910192915050565b6000614aea8285614a2a565b8351614afa8183602088016150f0565b01949350505050565b6000614b0f8289614a2a565b8751614b1f818360208c016150f0565b614b2b81830189614a2a565b9150508551614b3e818360208a016150f0565b614b4a81830187614a2a565b9150508351614b5d8183602088016150f0565b0198975050505050505050565b60007f68747470733a2f2f696e66696e697479746f6b656e732e617a7572657765627382527f697465732e6e65742f6170692f48747470547269676765723f617274436f6e74602083015264726163743d60d81b60408301528251614bd68160458501602087016150f0565b632669643d60e01b6045939091019283015250604901919050565b6001600160a01b0385811682528416602082015260408101839052608060608201819052600090614c24908301846149fe565b9695505050505050565b6020808252825182820181905260009190848201906040850190845b81811015614c6f5783516001600160a01b031683529284019291840191600101614c4a565b50909695505050505050565b6020808252825182820181905260009190848201906040850190845b81811015614c6f57835183529284019291840191600101614c97565b600060208252610e9f60208301846149fe565b6000610120808352614cda8184018d6149fe565b90508281036020840152614cee818c6149fe565b90508281036040840152614d02818b614984565b60608401999099525050608081019590955260a085019390935260c08401919091526001600160401b031660e08301521515610100909101529392505050565b600060608252614d5560608301866149fe565b8281036020840152614d6781866149fe565b90508281036040840152614c2481856149fe565b600060808252614d8e60808301876149fe565b8281036020840152614da081876149fe565b90508281036040840152614db481866149fe565b91505082606083015295945050505050565b60208082526025908201527f4f776e61626c65436c6f6e653a2063616c6c6572206973206e6f74207468652060408201526437bbb732b960d91b606082015260800190565b60208082526032908201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560408201527131b2b4bb32b91034b6b83632b6b2b73a32b960711b606082015260800190565b60208082526029908201527f56656e64696e674d616368696e653a204e6f7420617574686f726973656420746040820152686f206578656375746560b81b606082015260800190565b6020808252602f908201527f4552433732314d657461646174613a2055524920717565727920666f72206e6f60408201526e3732bc34b9ba32b73a103a37b5b2b760891b606082015260800190565b60208082526031908201527f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f6040820152701ddb995c881b9bdc88185c1c1c9bdd9959607a1b606082015260800190565b6000838252604060208301526131bb60408301846149fe565b60006101608d8352806020840152614f798184018e6149fe565b90508281036040840152614f8d818d6149fe565b90508281036060840152614fa1818c614984565b608084019a909a52505060a081019690965260c086019490945260e08501929092526001600160401b0316610100840152610120830152151561014090910152949350505050565b600086825260a0602083015261500260a08301876149fe565b828103604084015261501481876149fe565b9050828103606084015261502881866149fe565b9150508260808301529695505050505050565b604051601f8201601f191681016001600160401b0381118282101715615063576150636151c9565b604052919050565b60006001600160401b03821115615084576150846151c9565b5060051b60200190565b600082198211156150a1576150a161519d565b500190565b6000826150b5576150b56151b3565b500490565b60008160001904831182151516156150d4576150d461519d565b500290565b6000828210156150eb576150eb61519d565b500390565b60005b8381101561510b5781810151838201526020016150f3565b83811115610b085750506000910152565b60008161512b5761512b61519d565b506000190190565b600181811c9082168061514757607f821691505b6020821081141561516857634e487b7160e01b600052602260045260246000fd5b50919050565b60006000198214156151825761518261519d565b5060010190565b600082615198576151986151b3565b500690565b634e487b7160e01b600052601160045260246000fd5b634e487b7160e01b600052601260045260246000fd5b634e487b7160e01b600052604160045260246000fd5b6001600160a01b0381168114610ca257600080fd5b6001600160e01b031981168114610ca257600080fdfe4552433732313a207472616e7366657220746f206e6f6e20455243373231526563656976657220696d706c656d656e74657268747470733a2f2f696e66696e697479746f6b656e736d756c74692e617a75726577656273697465732e6e65742f6170692f48747470547269676765723f617274436f6e74726163743d4552433732313a206f776e657220717565727920666f72206e6f6e6578697374656e7420746f6b656ea26469706673582212208b50f81630d852cd214f5fa1b958fe4a62b800d3a080ba94fe83447f136666ae64736f6c634300080300334f776e61626c65436c6f6e653a2063616c6c6572206973206e6f74207468652068747470733a2f2f696e66696e697479746f6b656e736d756c74692e617a75726577656273697465732e6e65742f6170692f48747470547269676765723f617274436f6e74726163743d000000000000000000000000000000000000000000000000000000000000008000000000000000000000000000000000000000000000000000000000000000c0000000000000000000000000f8ad73297a7315d49adf2153b5de6e84af2838ef000000000000000000000000f8ad73297a7315d49adf2153b5de6e84af2838ef00000000000000000000000000000000000000000000000000000000000000084e79616e446f676700000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000044e44474700000000000000000000000000000000000000000000000000000000
Deployed Bytecode
0x608060405234801561001057600080fd5b50600436106103425760003560e01c80638da5cb5b116101b8578063b9c4d9fb11610104578063dc1270c7116100a2578063e985e9c51161007c578063e985e9c51461076d578063ea13cc34146107a9578063f2fde38b146107bc578063fd73d81c146107cf57610342565b8063dc1270c714610725578063de11c94a14610738578063e6029a5c1461074b57610342565b8063c5e707a1116100de578063c5e707a1146106d9578063c87b56dd146106ec578063d424d614146106ff578063d47573d41461071257610342565b8063b9c4d9fb146106a0578063c2fb538e146106b3578063c30f4a5a146106c657610342565b8063a466501611610171578063a8314edc1161014b578063a8314edc14610654578063add49af614610667578063afbce0031461067a578063b88d4fde1461068d57610342565b8063a4665016146105f4578063a574cea414610607578063a74772c81461063157610342565b80638da5cb5b14610582578063958265de1461059357806395d89b41146105a65780639cae6eae146105ae578063a22cb465146105c1578063a35b0af3146105d457610342565b80632f745c59116102925780636c0360eb116102305780637b8c84af1161020a5780637b8c84af146105265780637ce877c01461053957806384210a311461054c578063874d52a21461055f57610342565b80636c0360eb1461050357806370a082311461050b578063715018a61461051e57610342565b806346abdccf1161026c57806346abdccf146104a25780634f6ccce7146104b55780636352211e146104c8578063683bba51146104db57610342565b80632f745c591461046957806342842e0e1461047c5780634394a37a1461048f57610342565b80630e07f854116102ff5780631f9dbb2c116102d95780631f9dbb2c1461043357806323b872dd1461043b57806324600fc31461044e5780632477befd1461045657610342565b80630e07f854146103ea5780630ebd4c7f146103fd57806318160ddd1461041d57610342565b806301ffc9a7146103475780630605d6ae1461036f57806306fdde031461039a57806307efe3a6146103af578063081812fc146103c4578063095ea7b3146103d7575b600080fd5b61035a610355366004614555565b6107d7565b60405190151581526020015b60405180910390f35b602954610382906001600160a01b031681565b6040516001600160a01b039091168152602001610366565b6103a2610819565b6040516103669190614cb3565b6103c26103bd366004614868565b6108ab565b005b6103826103d236600461482c565b6108fe565b6103c26103e536600461452a565b610986565b6103c26103f83660046145bf565b610a9c565b61041061040b36600461482c565b610b0e565b6040516103669190614c7b565b610425610b7c565b604051908152602001610366565b6103a2610b8d565b6103c261044936600461443a565b610c1b565b6103c2610c4c565b6103c26104643660046148ce565b610ca5565b61042561047736600461452a565b610e7d565b6103c261048a36600461443a565b610ea8565b6103c261049d366004614844565b610ec3565b6103c26104b036600461482c565b610efb565b6104256104c336600461482c565b610faa565b6103826104d636600461482c565b610fc0565b6104ee6104e936600461482c565b610fe8565b60405161036699989796959493929190614cc6565b6103a2611368565b6104256105193660046143e6565b611377565b6103c2611403565b6103c2610534366004614844565b611477565b6103c2610547366004614963565b611533565b6103c261055a36600461488a565b611589565b61057261056d366004614963565b6116ac565b6040516103669493929190614d7b565b600b546001600160a01b0316610382565b6103a26105a1366004614963565b611916565b6103a261198a565b6103c26105bc3660046144f6565b611999565b6103c26105cf3660046144f6565b6119ee565b6105e76105e236600461482c565b611ab4565b6040516103669190614c2e565b6103c2610602366004614644565b611b20565b61061a61061536600461482c565b611b85565b6040516103669b9a99989796959493929190614f5f565b61035a61063f3660046143e6565b60126020526000908152604090205460ff1681565b610382610662366004614963565b611f7c565b61035a61067536600461452a565b611fb4565b6103c26106883660046146c7565b612049565b6103c261069b36600461447a565b61236a565b6105e76106ae36600461482c565b61239c565b6103c26106c13660046143e6565b612413565b6103c26106d436600461458d565b61245f565b6103c26106e736600461482c565b612492565b6103a26106fa36600461482c565b612522565b6103c261070d366004614844565b612663565b6103c2610720366004614963565b612697565b6103c261073336600461482c565b61275c565b601154610382906001600160a01b031681565b61075e610759366004614963565b6127d0565b60405161036693929190614d42565b61035a61077b366004614402565b6001600160a01b03918216600090815260066020908152604080832093909416825291909152205460ff1690565b602854610382906001600160a01b031681565b6103c26107ca3660046143e6565b612a68565b6103a2612b53565b60006301ffc9a760e01b6001600160e01b03198316148061081157506001600160e01b0319821660009081526020819052604090205460ff165b90505b919050565b60606007805461082890615133565b80601f016020809104026020016040519081016040528092919081815260200182805461085490615133565b80156108a15780601f10610876576101008083540402835291602001916108a1565b820191906000526020600020905b81548152906001019060200180831161088457829003601f168201915b5050505050905090565b600b546001600160a01b031633146108de5760405162461bcd60e51b81526004016108d590614dc6565b60405180910390fd5b600091825260226020526040909120805460ff1916911515919091179055565b600061090982612bbd565b61096a5760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a20617070726f76656420717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b60648201526084016108d5565b506000908152600560205260409020546001600160a01b031690565b600061099182610fc0565b9050806001600160a01b0316836001600160a01b031614156109ff5760405162461bcd60e51b815260206004820152602160248201527f4552433732313a20617070726f76616c20746f2063757272656e74206f776e656044820152603960f91b60648201526084016108d5565b336001600160a01b0382161480610a1b5750610a1b813361077b565b610a8d5760405162461bcd60e51b815260206004820152603860248201527f4552433732313a20617070726f76652063616c6c6572206973206e6f74206f7760448201527f6e6572206e6f7220617070726f76656420666f7220616c6c000000000000000060648201526084016108d5565b610a978383612bca565b505050565b6011546001600160a01b031615610aeb5760405162461bcd60e51b8152602060048201526013602482015272185b1c9958591e481a5b9a5d1a585b1a5e9959606a1b60448201526064016108d5565b610af482612c38565b610afe8484612cdd565b610b088282612d35565b50505050565b6000818152600e6020908152604080832054808452600d835292819020805482518185028101850190935280835260609493830182828015610b6f57602002820191906000526020600020905b815481526020019060010190808311610b5b575b5050505050915050919050565b6000610b886002612e7e565b905090565b60248054610b9a90615133565b80601f0160208091040260200160405190810160405280929190818152602001828054610bc690615133565b8015610c135780601f10610be857610100808354040283529160200191610c13565b820191906000526020600020905b815481529060010190602001808311610bf657829003601f168201915b505050505081565b610c253382612e89565b610c415760405162461bcd60e51b81526004016108d590614ef5565b610a97838383612f6f565b600b546001600160a01b03163314610c765760405162461bcd60e51b81526004016108d590614dc6565b60405133904780156108fc02916000818181858888f19350505050158015610ca2573d6000803e3d6000fd5b50565b600b546001600160a01b03163314610ccf5760405162461bcd60e51b81526004016108d590614dc6565b60008581526013602052604090208160648110610cfc57634e487b7160e01b600052603260045260246000fd5b602081049091015460ff601f9092166101000a90041615610d1c57600080fd5b600085815260146020526040902084908260648110610d4b57634e487b7160e01b600052603260045260246000fd5b019080519060200190610d5f929190614096565b50600085815260156020526040902083908260648110610d8f57634e487b7160e01b600052603260045260246000fd5b019080519060200190610da3929190614096565b50600085815260166020526040902082908260648110610dd357634e487b7160e01b600052603260045260246000fd5b019080519060200190610de7929190614096565b5060008581526013602052604090206001908260648110610e1857634e487b7160e01b600052603260045260246000fd5b602091828204019190066101000a81548160ff0219169083151502179055507f6cbbe842df704a08863b4024cbc78530a7a40f9ec2996743759df694670a65f68585858585604051610e6e959493929190614fe9565b60405180910390a15050505050565b6001600160a01b0382166000908152600160205260408120610e9f90836130f0565b90505b92915050565b610a978383836040518060200160405280600081525061236a565b600b546001600160a01b03163314610eed5760405162461bcd60e51b81526004016108d590614dc6565b610ef782826130fc565b5050565b3360009081526012602052604090205460ff1680610f235750600b546001600160a01b031633145b610f3f5760405162461bcd60e51b81526004016108d590614e5d565b6000818152601f6020526040902054610f5981600161508e565b6000838152601f60209081526040918290209290925580518481529182018390527f02c331d583ec481ce2eae99da785a50baf62a09f3485d5903f42d7710c2e5bdb91015b60405180910390a15050565b600080610fb8600284613192565b509392505050565b60006108118260405180606001604052806029815260200161528760299139600291906131ae565b6060806060600080600080600080601760008b8152602001908152602001600020805461101490615133565b80601f016020809104026020016040519081016040528092919081815260200182805461104090615133565b801561108d5780601f106110625761010080835404028352916020019161108d565b820191906000526020600020905b81548152906001019060200180831161107057829003601f168201915b50505060008d81526018602052604090208054939c50926110b092509050615133565b80601f01602080910402602001604051908101604052809291908181526020018280546110dc90615133565b80156111295780601f106110fe57610100808354040283529160200191611129565b820191906000526020600020905b81548152906001019060200180831161110c57829003601f168201915b50505060008d81526019602090815260408083208054825181850281018501909352808352969e509095909450925084015b828210156112b1578382906000526020600020906002020160405180604001604052908160008201805461118e90615133565b80601f01602080910402602001604051908101604052809291908181526020018280546111ba90615133565b80156112075780601f106111dc57610100808354040283529160200191611207565b820191906000526020600020905b8154815290600101906020018083116111ea57829003601f168201915b5050505050815260200160018201805461122090615133565b80601f016020809104026020016040519081016040528092919081815260200182805461124c90615133565b80156112995780601f1061126e57610100808354040283529160200191611299565b820191906000526020600020905b81548152906001019060200180831161127c57829003601f168201915b5050505050815250508152602001906001019061115b565b505050509650601a60008b8152602001908152602001600020549550602160008b8152602001908152602001600020549450601f60008b8152602001908152602001600020549350601c60008b8152602001908152602001600020549250601d60008b815260200190815260200160002060009054906101000a90046001600160401b03169150602260008b815260200190815260200160002060009054906101000a900460ff1690509193959799909294969850565b6060600a805461082890615133565b60006001600160a01b0382166113e25760405162461bcd60e51b815260206004820152602a60248201527f4552433732313a2062616c616e636520717565727920666f7220746865207a65604482015269726f206164647265737360b01b60648201526084016108d5565b6001600160a01b0382166000908152600160205260409020610811906131c5565b600b546001600160a01b0316331461142d5760405162461bcd60e51b81526004016108d590614dc6565b600b546040516000916001600160a01b0316907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908390a3600b80546001600160a01b0319169055565b6114813383611fb4565b6114e45760405162461bcd60e51b815260206004820152602e60248201527f43616c6c6572206973206e6f7420617574686f72697a656420746f2073656c6c60448201526d2074686973206f66666572696e6760901b60648201526084016108d5565b6114ee82826131cf565b6040516001600160a01b0382168152829033907f1514cf5c85471a08cd7ad4f094f772499655bc6175a68f4cbb1082160812172f906020015b60405180910390a35050565b3360009081526012602052604090205460ff168061155b5750600b546001600160a01b031633145b6115775760405162461bcd60e51b81526004016108d590614e5d565b6000918252601f602052604090912055565b61159282610fc0565b6001600160a01b0316336001600160a01b0316146115f25760405162461bcd60e51b815260206004820152601b60248201527f4d757374206f776e2074686973204e465420746f2072656465656d000000000060448201526064016108d5565b6000828152601e602052604090205461164d5760405162461bcd60e51b815260206004820152601d60248201527f546f6b656e20686173206265656e2066756c6c792072656465656d656400000060448201526064016108d5565b6000828152601e6020526040902054611668906001906150d9565b6000838152601e60205260409081902091909155517faab28053bc82ed567ee5ebd82fc102969c96a45c207e8145a0f6c3490c8446cf90610f9e9084908490614f46565b6000828152601460205260408120606091829182919085606481106116e157634e487b7160e01b600052603260045260246000fd5b0180546116ed90615133565b80601f016020809104026020016040519081016040528092919081815260200182805461171990615133565b80156117665780601f1061173b57610100808354040283529160200191611766565b820191906000526020600020905b81548152906001019060200180831161174957829003601f168201915b5050506000898152601560205260409020929650879150506064811061179c57634e487b7160e01b600052603260045260246000fd5b0180546117a890615133565b80601f01602080910402602001604051908101604052809291908181526020018280546117d490615133565b80156118215780601f106117f657610100808354040283529160200191611821565b820191906000526020600020905b81548152906001019060200180831161180457829003601f168201915b5050506000898152601660205260409020929550879150506064811061185757634e487b7160e01b600052603260045260246000fd5b01805461186390615133565b80601f016020809104026020016040519081016040528092919081815260200182805461188f90615133565b80156118dc5780601f106118b1576101008083540402835291602001916118dc565b820191906000526020600020905b8154815290600101906020018083116118bf57829003601f168201915b505050600089815260216020908152604080832054601a9092529091205493955061190b9390925090506150d9565b905092959194509250565b606061192183612bbd565b61193d5760405162461bcd60e51b81526004016108d590614ea6565b602561194830613241565b602661195386613255565b602761195e87613255565b60405160200161197396959493929190614b03565b604051602081830303815290604052905092915050565b60606008805461082890615133565b600b546001600160a01b031633146119c35760405162461bcd60e51b81526004016108d590614dc6565b6001600160a01b03919091166000908152601260205260409020805460ff1916911515919091179055565b6001600160a01b038216331415611a475760405162461bcd60e51b815260206004820152601960248201527f4552433732313a20617070726f766520746f2063616c6c65720000000000000060448201526064016108d5565b3360008181526006602090815260408083206001600160a01b0387168085529252909120805460ff1916841515179055906001600160a01b03167f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c3183604051611527911515815260200190565b6000818152600f6020908152604091829020805483518184028101840190945280845260609392830182828015611b1457602002820191906000526020600020905b81546001600160a01b03168152600190910190602001808311611af6575b50505050509050919050565b600b546001600160a01b03163314611b4a5760405162461bcd60e51b81526004016108d590614dc6565b8251611b5d906025906020860190614096565b508151611b71906026906020850190614096565b508051610b08906027906020840190614096565b600060608060606000806000806000806000611ba08c612bbd565b611be45760405162461bcd60e51b81526020600482015260156024820152742a37b5b2b7103237b2b9903737ba1032bc34b9ba1760591b60448201526064016108d5565b60008c8152600e602090815260408083205480845260179092529091208054919c5090611c1090615133565b80601f0160208091040260200160405190810160405280929190818152602001828054611c3c90615133565b8015611c895780601f10611c5e57610100808354040283529160200191611c89565b820191906000526020600020905b815481529060010190602001808311611c6c57829003601f168201915b50505060008e81526018602052604090208054939d5092611cac92509050615133565b80601f0160208091040260200160405190810160405280929190818152602001828054611cd890615133565b8015611d255780601f10611cfa57610100808354040283529160200191611d25565b820191906000526020600020905b815481529060010190602001808311611d0857829003601f168201915b50505060008e81526019602090815260408083208054825181850281018501909352808352969f509095909450925084015b82821015611ead5783829060005260206000209060020201604051806040016040529081600082018054611d8a90615133565b80601f0160208091040260200160405190810160405280929190818152602001828054611db690615133565b8015611e035780601f10611dd857610100808354040283529160200191611e03565b820191906000526020600020905b815481529060010190602001808311611de657829003601f168201915b50505050508152602001600182018054611e1c90615133565b80601f0160208091040260200160405190810160405280929190818152602001828054611e4890615133565b8015611e955780601f10611e6a57610100808354040283529160200191611e95565b820191906000526020600020905b815481529060010190602001808311611e7857829003601f168201915b50505050508152505081526020019060010190611d57565b505050509750601a60008c8152602001908152602001600020549650601b60008d8152602001908152602001600020549550601f60008c8152602001908152602001600020549450601c60008c8152602001908152602001600020549350601d60008c815260200190815260200160002060009054906101000a90046001600160401b03169250601e60008d8152602001908152602001600020549150602260008c815260200190815260200160002060009054906101000a900460ff16905091939597999b90929496989a50565b600f6020528160005260406000208181548110611f9857600080fd5b6000918252602090912001546001600160a01b03169150829050565b6000805b6000838152600f602052604090205481101561203f576000838152600f6020526040902080546001600160a01b03861691908390811061200857634e487b7160e01b600052603260045260246000fd5b6000918252602090912001546001600160a01b0316141561202d576001915050610ea2565b806120378161516e565b915050611fb8565b5060009392505050565b600b546001600160a01b031633146120735760405162461bcd60e51b81526004016108d590614dc6565b601080546000908152602260209081526040808320805460ff1916600190811790915593548352601482529091208d516120b49391909101918e0190614096565b5060105460009081526015602052604090208a9060010190805190602001906120de929190614096565b50601054600090815260166020526040902089906001019080519060200190612108929190614096565b506010546000908152601760209081526040909120895161212b928b0190614096565b506010546000908152601860209081526040909120885161214e928a0190614096565b505b85516010546000908152601960205260409020541015612244576010805460009081526019602052604080822080546001908101909155925482528120549091612199916150d9565b90508681815181106121bb57634e487b7160e01b600052603260045260246000fd5b602002602001015160196000601054815260200190815260200160002082815481106121f757634e487b7160e01b600052603260045260246000fd5b90600052602060002090600202016000820151816000019080519060200190612221929190614096565b50602082810151805161223a9260018501920190614096565b5090505050612150565b601080546000908152601a6020908152604080832089905583548352601c825280832088905583548352601d825280832080546001600160401b03891667ffffffffffffffff199091161790558354835260138252808320805461ff00191661010017905583548352601f82528083206001905592548252600c815291902083516122d19285019061411a565b506010546000908152600d6020908152604090912082516122f49284019061416f565b5060108054600090815260208080526040808320839055835483526021825280832092909255915490519081527fa0b684c0338eaff8541a418ac04e426c79198e460fd1922643db06e495ffbc67910160405180910390a160105461235a90600161508e565b6010555050505050505050505050565b6123743383612e89565b6123905760405162461bcd60e51b81526004016108d590614ef5565b610b088484848461336f565b6000818152600e6020908152604080832054808452600c835292819020805482518185028101850190935280835260609493830182828015610b6f57602002820191906000526020600020905b81546001600160a01b031681526001909101906020018083116123e9575050505050915050919050565b600b546001600160a01b0316331461243d5760405162461bcd60e51b81526004016108d590614dc6565b601180546001600160a01b0319166001600160a01b0392909216919091179055565b600b546001600160a01b031633146124895760405162461bcd60e51b81526004016108d590614dc6565b610ca2816133a2565b600b546001600160a01b031633146124bc5760405162461bcd60e51b81526004016108d590614dc6565b6000818152602260209081526040808320805460ff191690556021825280832054601a9092529182902055517fb48c791d452103c73f033b70ce532f67a3de0d4bbe9df07920172fc5c9f022e8906125179083815260200190565b60405180910390a150565b606061252d82612bbd565b6125495760405162461bcd60e51b81526004016108d590614ea6565b6000828152600960205260408120805461256290615133565b80601f016020809104026020016040519081016040528092919081815260200182805461258e90615133565b80156125db5780601f106125b0576101008083540402835291602001916125db565b820191906000526020600020905b8154815290600101906020018083116125be57829003601f168201915b50505050509050600a80546125ef90615133565b151590506125fe579050610814565b80511561263057600a81604051602001612619929190614ade565b604051602081830303815290604052915050610814565b600a61263b84613255565b60405160200161264c929190614ade565b604051602081830303815290604052915050919050565b600b546001600160a01b0316331461268d5760405162461bcd60e51b81526004016108d590614dc6565b610ef782826133b5565b600b546001600160a01b031633146126c15760405162461bcd60e51b81526004016108d590614dc6565b6000828152601a60209081526040808320546021909252909120546126e790839061508e565b11156127355760405162461bcd60e51b815260206004820152601e60248201527f43616e6e6f74206d696e742074686174206d616e792065646974696f6e73000060448201526064016108d5565b60005b81811015610a975761274a8333613653565b806127548161516e565b915050612738565b3360009081526012602052604090205460ff16806127845750600b546001600160a01b031633145b6127a05760405162461bcd60e51b81526004016108d590614e5d565b6000818152601f60205260409020546127ba6001826150d9565b6000928352601f60205260409092209190915550565b60608060606127de85612bbd565b6128225760405162461bcd60e51b81526020600482015260156024820152742a37b5b2b7103237b2b9903737ba1032bc34b9ba1760591b60448201526064016108d5565b6000858152600e60209081526040808320548084526014909252909120856064811061285e57634e487b7160e01b600052603260045260246000fd5b01805461286a90615133565b80601f016020809104026020016040519081016040528092919081815260200182805461289690615133565b80156128e35780601f106128b8576101008083540402835291602001916128e3565b820191906000526020600020905b8154815290600101906020018083116128c657829003601f168201915b5050506000848152601560205260409020929650879150506064811061291957634e487b7160e01b600052603260045260246000fd5b01805461292590615133565b80601f016020809104026020016040519081016040528092919081815260200182805461295190615133565b801561299e5780601f106129735761010080835404028352916020019161299e565b820191906000526020600020905b81548152906001019060200180831161298157829003601f168201915b505050600084815260166020526040902092955087915050606481106129d457634e487b7160e01b600052603260045260246000fd5b0180546129e090615133565b80601f0160208091040260200160405190810160405280929190818152602001828054612a0c90615133565b8015612a595780601f10612a2e57610100808354040283529160200191612a59565b820191906000526020600020905b815481529060010190602001808311612a3c57829003601f168201915b50505050509150509250925092565b600b546001600160a01b03163314612a925760405162461bcd60e51b81526004016108d590614dc6565b6001600160a01b038116612af75760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b60648201526084016108d5565b600b546040516001600160a01b038084169216907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a3600b80546001600160a01b0319166001600160a01b0392909216919091179055565b60238054610b9a90615133565b606081612b8857506040805180820190915260048152630307830360e41b6020820152610814565b8160005b8115612bab5780612b9c8161516e565b915050600882901c9150612b8c565b612bb58482613798565b949350505050565b6000610811600283613979565b600081815260056020526040902080546001600160a01b0319166001600160a01b0384169081179091558190612bff82610fc0565b6001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b600b546001600160a01b031615612c915760405162461bcd60e51b815260206004820152601f60248201527f436f6e747261637420697320616c726561647920696e697469616c697a65640060448201526064016108d5565b600b80546001600160a01b0319166001600160a01b0383169081179091556040516000907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908290a350565b8151612cf0906007906020850190614096565b508051612d04906008906020840190614096565b50612d156380ac58cd60e01b613985565b612d25635b5e139f60e01b613985565b610ef763780e9d6360e01b613985565b612d65612d4130613241565b604051602001612d519190614b6a565b60405160208183030381529060405261245f565b600160105560408051808201909152601c8082527f68747470733a2f2f697066732e696e667572612e696f2f697066732f000000006020909201918252612dae91602391614096565b506040805180820190915260148082527368747470733a2f2f617277656176652e6e65742f60601b6020909201918252612dea91602491614096565b50612e506040518060800160405280604a815260200161523d604a9139604051806040016040528060048152602001632669643d60e01b8152506040518060400160405280600e81526020016d26617274776f726b496e6465783d60901b815250611b20565b601180546001600160a01b039384166001600160a01b03199182161790915560288054929093169116179055565b600061081182613a04565b6000612e9482612bbd565b612ef55760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a206f70657261746f7220717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b60648201526084016108d5565b6000612f0083610fc0565b9050806001600160a01b0316846001600160a01b03161480612f3b5750836001600160a01b0316612f30846108fe565b6001600160a01b0316145b80612bb557506001600160a01b0380821660009081526006602090815260408083209388168352929052205460ff16612bb5565b826001600160a01b0316612f8282610fc0565b6001600160a01b031614612fea5760405162461bcd60e51b815260206004820152602960248201527f4552433732313a207472616e73666572206f6620746f6b656e2074686174206960448201526839903737ba1037bbb760b91b60648201526084016108d5565b6001600160a01b03821661304c5760405162461bcd60e51b8152602060048201526024808201527f4552433732313a207472616e7366657220746f20746865207a65726f206164646044820152637265737360e01b60648201526084016108d5565b613057600082612bca565b6001600160a01b03831660009081526001602052604090206130799082613a0f565b506001600160a01b038216600090815260016020526040902061309c9082613a1b565b506130a960028284613a27565b5080826001600160a01b0316846001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a4505050565b6000610e9f8383613a3d565b6131068183611fb4565b156131535760405162461bcd60e51b815260206004820152601c60248201527f53656c6c657220697320616c726561647920617574686f72697a65640000000060448201526064016108d5565b6000918252600f6020908152604083208054600181018255908452922090910180546001600160a01b0319166001600160a01b03909216919091179055565b60008080806131a18686613ad1565b9097909650945050505050565b60006131bb848484613afc565b90505b9392505050565b6000610811825490565b6000828152601a6020908152604080832054602190925290912054106132375760405162461bcd60e51b815260206004820152601f60248201527f4d6178696d756d2065646974696f6e7320616c7265616479206d696e7465640060448201526064016108d5565b610ef78282613653565b6060610811826001600160a01b0316612b60565b60608161327a57506040805180820190915260018152600360fc1b6020820152610814565b8160005b81156132a4578061328e8161516e565b915061329d9050600a836150a6565b915061327e565b6000816001600160401b038111156132cc57634e487b7160e01b600052604160045260246000fd5b6040519080825280601f01601f1916602001820160405280156132f6576020820181803683370190505b5090505b8415612bb55761330b6001836150d9565b9150613318600a86615189565b61332390603061508e565b60f81b81838151811061334657634e487b7160e01b600052603260045260246000fd5b60200101906001600160f81b031916908160001a905350613368600a866150a6565b94506132fa565b61337a848484612f6f565b61338684848484613b48565b610b085760405162461bcd60e51b81526004016108d590614e0b565b8051610ef790600a906020840190614096565b6133bf8183611fb4565b61340b5760405162461bcd60e51b815260206004820152601960248201527f53656c6c657220776173206e6f7420617574686f72697a65640000000000000060448201526064016108d5565b60005b6000838152600f6020526040902054811015613490576000838152600f6020526040902080546001600160a01b03841691908390811061345e57634e487b7160e01b600052603260045260246000fd5b6000918252602090912001546001600160a01b0316141561347e57613490565b806134888161516e565b91505061340e565b6000838152600f60205260409020546134aa6001826150d9565b821015613600576000848152600f602052604081208054849081106134df57634e487b7160e01b600052603260045260246000fd5b6000918252602080832090910154878352600f909152604090912080546001600160a01b039092169250908390811061352857634e487b7160e01b600052603260045260246000fd5b6000918252602080832090910154878352600f909152604090912080546001600160a01b03909216918590811061356f57634e487b7160e01b600052603260045260246000fd5b9060005260206000200160006101000a8154816001600160a01b0302191690836001600160a01b0316021790555080600f600087815260200190815260200160002083815481106135d057634e487b7160e01b600052603260045260246000fd5b9060005260206000200160006101000a8154816001600160a01b0302191690836001600160a01b03160217905550505b6000848152600f6020526040902080548061362b57634e487b7160e01b600052603160045260246000fd5b600082815260209020810160001990810180546001600160a01b031916905501905550505050565b60008281526022602052604090205460ff1615156001146136a85760405162461bcd60e51b815260206004820152600f60248201526e4d696e74206e6f742061637469766560881b60448201526064016108d5565b60006136b2610b7c565b6136bd90600161508e565b6000848152601c6020908152604080832054848452601e835281842055600e825280832087905586835260219091529020549091506136fd90600161508e565b6000828152601b6020908152604080832084905586835260219091529020556137268282613c19565b60408051848152602081018390526001600160a01b0384168183015290517f3e76a2e4d58f5ebb1f050ddb5d21c2b983a83910cab918a4677e83c0589c31579181900360600190a16000838152601a60209081526040808320546021909252909120541415610a9757610a97836124bc565b606060006137a78360026150ba565b6137b290600261508e565b6001600160401b038111156137d757634e487b7160e01b600052604160045260246000fd5b6040519080825280601f01601f191660200182016040528015613801576020820181803683370190505b509050600360fc1b8160008151811061382a57634e487b7160e01b600052603260045260246000fd5b60200101906001600160f81b031916908160001a905350600f60fb1b8160018151811061386757634e487b7160e01b600052603260045260246000fd5b60200101906001600160f81b031916908160001a905350600061388b8460026150ba565b61389690600161508e565b90505b600181111561392a576f181899199a1a9b1b9c1cb0b131b232b360811b85600f16601081106138d857634e487b7160e01b600052603260045260246000fd5b1a60f81b8282815181106138fc57634e487b7160e01b600052603260045260246000fd5b60200101906001600160f81b031916908160001a90535060049490941c936139238161511c565b9050613899565b508315610e9f5760405162461bcd60e51b815260206004820181905260248201527f537472696e67733a20686578206c656e67746820696e73756666696369656e7460448201526064016108d5565b6000610e9f8383613c33565b6001600160e01b031980821614156139df5760405162461bcd60e51b815260206004820152601c60248201527f4552433136353a20696e76616c696420696e746572666163652069640000000060448201526064016108d5565b6001600160e01b0319166000908152602081905260409020805460ff19166001179055565b6000610811826131c5565b6000610e9f8383613c52565b6000610e9f8383613d6f565b60006131bb84846001600160a01b038516613dbe565b81546000908210613a9b5760405162461bcd60e51b815260206004820152602260248201527f456e756d657261626c655365743a20696e646578206f7574206f6620626f756e604482015261647360f01b60648201526084016108d5565b826000018281548110613abe57634e487b7160e01b600052603260045260246000fd5b9060005260206000200154905092915050565b60008080613adf85856130f0565b600081815260029690960160205260409095205494959350505050565b600082815260028401602052604081205480151580613b205750613b208585613c33565b8390613b3f5760405162461bcd60e51b81526004016108d59190614cb3565b50949350505050565b60006001600160a01b0384163b613b6157506001612bb5565b6000613be2630a85bd0160e11b33888787604051602401613b859493929190614bf1565b604051602081830303815290604052906001600160e01b0319166020820180516001600160e01b03838183161783525050505060405180606001604052806032815260200161520b603291396001600160a01b0388169190613ddb565b9050600081806020019051810190613bfa9190614571565b6001600160e01b031916630a85bd0160e11b1492505050949350505050565b610ef7828260405180602001604052806000815250613dea565b6000610e9f838360008181526001830160205260408120541515610e9f565b60008181526001830160205260408120548015613d65576000613c766001836150d9565b8554909150600090613c8a906001906150d9565b90506000866000018281548110613cb157634e487b7160e01b600052603260045260246000fd5b9060005260206000200154905080876000018481548110613ce257634e487b7160e01b600052603260045260246000fd5b600091825260209091200155613cf983600161508e565b60008281526001890160205260409020558654879080613d2957634e487b7160e01b600052603160045260246000fd5b60019003818190600052602060002001600090559055866001016000878152602001908152602001600020600090556001945050505050610ea2565b6000915050610ea2565b6000818152600183016020526040812054613db657508154600181810184556000848152602080822090930184905584548482528286019093526040902091909155610ea2565b506000610ea2565b600082815260028401602052604081208290556131bb8484613a1b565b60606131bb8484600085613e1d565b613df48383613f45565b613e016000848484613b48565b610a975760405162461bcd60e51b81526004016108d590614e0b565b606082471015613e7e5760405162461bcd60e51b815260206004820152602660248201527f416464726573733a20696e73756666696369656e742062616c616e636520666f6044820152651c8818d85b1b60d21b60648201526084016108d5565b843b613ecc5760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e747261637400000060448201526064016108d5565b600080866001600160a01b03168587604051613ee89190614ac2565b60006040518083038185875af1925050503d8060008114613f25576040519150601f19603f3d011682016040523d82523d6000602084013e613f2a565b606091505b5091509150613f3a82828661405d565b979650505050505050565b6001600160a01b038216613f9b5760405162461bcd60e51b815260206004820181905260248201527f4552433732313a206d696e7420746f20746865207a65726f206164647265737360448201526064016108d5565b613fa481612bbd565b15613ff15760405162461bcd60e51b815260206004820152601c60248201527f4552433732313a20746f6b656e20616c7265616479206d696e7465640000000060448201526064016108d5565b6001600160a01b03821660009081526001602052604090206140139082613a1b565b5061402060028284613a27565b5060405181906001600160a01b038416906000907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b6060831561406c5750816131be565b82511561407c5782518084602001fd5b8160405162461bcd60e51b81526004016108d59190614cb3565b8280546140a290615133565b90600052602060002090601f0160209004810192826140c4576000855561410a565b82601f106140dd57805160ff191683800117855561410a565b8280016001018555821561410a579182015b8281111561410a5782518255916020019190600101906140ef565b506141169291506141a9565b5090565b82805482825590600052602060002090810192821561410a579160200282015b8281111561410a57825182546001600160a01b0319166001600160a01b0390911617825560209092019160019091019061413a565b82805482825590600052602060002090810192821561410a579160200282018281111561410a5782518255916020019190600101906140ef565b5b8082111561411657600081556001016141aa565b60006001600160401b038311156141d7576141d76151c9565b6141ea601f8401601f191660200161503b565b90508281528383830111156141fe57600080fd5b828260208301376000602084830101529392505050565b600082601f830112614225578081fd5b8135602061423a6142358361506b565b61503b565b80838252828201915082860187848660051b8901011115614259578586fd5b855b8581101561428057813561426e816151df565b8452928401929084019060010161425b565b5090979650505050505050565b600082601f83011261429d578081fd5b813560206142ad6142358361506b565b82815281810190858301855b858110156142805781358801604080601f19838d030112156142d9578889fd5b6142e28161503b565b878301356001600160401b03808211156142fa578b8cfd5b6143088e8b848801016143b0565b835292840135928084111561431b578b8cfd5b505061432b8c89848601016143b0565b818901528652505092840192908401906001016142b9565b600082601f830112614353578081fd5b813560206143636142358361506b565b80838252828201915082860187848660051b8901011115614382578586fd5b855b8581101561428057813584529284019290840190600101614384565b8035801515811461081457600080fd5b600082601f8301126143c0578081fd5b610e9f838335602085016141be565b80356001600160401b038116811461081457600080fd5b6000602082840312156143f7578081fd5b8135610e9f816151df565b60008060408385031215614414578081fd5b823561441f816151df565b9150602083013561442f816151df565b809150509250929050565b60008060006060848603121561444e578081fd5b8335614459816151df565b92506020840135614469816151df565b929592945050506040919091013590565b6000806000806080858703121561448f578081fd5b843561449a816151df565b935060208501356144aa816151df565b92506040850135915060608501356001600160401b038111156144cb578182fd5b8501601f810187136144db578182fd5b6144ea878235602084016141be565b91505092959194509250565b60008060408385031215614508578182fd5b8235614513816151df565b9150614521602084016143a0565b90509250929050565b6000806040838503121561453c578182fd5b8235614547816151df565b946020939093013593505050565b600060208284031215614566578081fd5b8135610e9f816151f4565b600060208284031215614582578081fd5b8151610e9f816151f4565b60006020828403121561459e578081fd5b81356001600160401b038111156145b3578182fd5b612bb5848285016143b0565b600080600080608085870312156145d4578182fd5b84356001600160401b03808211156145ea578384fd5b6145f6888389016143b0565b9550602087013591508082111561460b578384fd5b50614618878288016143b0565b9350506040850135614629816151df565b91506060850135614639816151df565b939692955090935050565b600080600060608486031215614658578081fd5b83356001600160401b038082111561466e578283fd5b61467a878388016143b0565b9450602086013591508082111561468f578283fd5b61469b878388016143b0565b935060408601359150808211156146b0578283fd5b506146bd868287016143b0565b9150509250925092565b60008060008060008060008060008060006101608c8e0312156146e8578889fd5b6001600160401b03808d3511156146fd57898afd5b61470a8e8e358f016143b0565b9b508060208e0135111561471c57898afd5b61472c8e60208f01358f016143b0565b9a508060408e0135111561473e57898afd5b61474e8e60408f01358f016143b0565b99508060608e01351115614760578788fd5b6147708e60608f01358f016143b0565b98508060808e01351115614782578788fd5b6147928e60808f01358f016143b0565b97508060a08e013511156147a4578687fd5b6147b48e60a08f01358f0161428d565b965060c08d0135955060e08d013594506147d16101008e016143cf565b9350806101208e013511156147e4578283fd5b6147f58e6101208f01358f01614215565b9250806101408e01351115614808578182fd5b5061481a8d6101408e01358e01614343565b90509295989b509295989b9093969950565b60006020828403121561483d578081fd5b5035919050565b60008060408385031215614856578182fd5b82359150602083013561442f816151df565b6000806040838503121561487a578182fd5b82359150614521602084016143a0565b6000806040838503121561489c578182fd5b8235915060208301356001600160401b038111156148b8578182fd5b6148c4858286016143b0565b9150509250929050565b600080600080600060a086880312156148e5578283fd5b8535945060208601356001600160401b0380821115614902578485fd5b61490e89838a016143b0565b95506040880135915080821115614923578485fd5b61492f89838a016143b0565b94506060880135915080821115614944578283fd5b50614951888289016143b0565b95989497509295608001359392505050565b60008060408385031215614975578182fd5b50508035926020909101359150565b600081518084526020808501808196508360051b81019150828601855b858110156149f15782840389528151604081518187526149c3828801826149fe565b915050868201519150858103878701526149dd81836149fe565b9a87019a95505050908401906001016149a1565b5091979650505050505050565b60008151808452614a168160208601602086016150f0565b601f01601f19169290920160200192915050565b8054600090600181811c9080831680614a4457607f831692505b6020808410821415614a6457634e487b7160e01b86526022600452602486fd5b818015614a785760018114614a8957614ab6565b60ff19861689528489019650614ab6565b60008881526020902060005b86811015614aae5781548b820152908501908301614a95565b505084890196505b50505050505092915050565b60008251614ad48184602087016150f0565b9190910192915050565b6000614aea8285614a2a565b8351614afa8183602088016150f0565b01949350505050565b6000614b0f8289614a2a565b8751614b1f818360208c016150f0565b614b2b81830189614a2a565b9150508551614b3e818360208a016150f0565b614b4a81830187614a2a565b9150508351614b5d8183602088016150f0565b0198975050505050505050565b60007f68747470733a2f2f696e66696e697479746f6b656e732e617a7572657765627382527f697465732e6e65742f6170692f48747470547269676765723f617274436f6e74602083015264726163743d60d81b60408301528251614bd68160458501602087016150f0565b632669643d60e01b6045939091019283015250604901919050565b6001600160a01b0385811682528416602082015260408101839052608060608201819052600090614c24908301846149fe565b9695505050505050565b6020808252825182820181905260009190848201906040850190845b81811015614c6f5783516001600160a01b031683529284019291840191600101614c4a565b50909695505050505050565b6020808252825182820181905260009190848201906040850190845b81811015614c6f57835183529284019291840191600101614c97565b600060208252610e9f60208301846149fe565b6000610120808352614cda8184018d6149fe565b90508281036020840152614cee818c6149fe565b90508281036040840152614d02818b614984565b60608401999099525050608081019590955260a085019390935260c08401919091526001600160401b031660e08301521515610100909101529392505050565b600060608252614d5560608301866149fe565b8281036020840152614d6781866149fe565b90508281036040840152614c2481856149fe565b600060808252614d8e60808301876149fe565b8281036020840152614da081876149fe565b90508281036040840152614db481866149fe565b91505082606083015295945050505050565b60208082526025908201527f4f776e61626c65436c6f6e653a2063616c6c6572206973206e6f74207468652060408201526437bbb732b960d91b606082015260800190565b60208082526032908201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560408201527131b2b4bb32b91034b6b83632b6b2b73a32b960711b606082015260800190565b60208082526029908201527f56656e64696e674d616368696e653a204e6f7420617574686f726973656420746040820152686f206578656375746560b81b606082015260800190565b6020808252602f908201527f4552433732314d657461646174613a2055524920717565727920666f72206e6f60408201526e3732bc34b9ba32b73a103a37b5b2b760891b606082015260800190565b60208082526031908201527f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f6040820152701ddb995c881b9bdc88185c1c1c9bdd9959607a1b606082015260800190565b6000838252604060208301526131bb60408301846149fe565b60006101608d8352806020840152614f798184018e6149fe565b90508281036040840152614f8d818d6149fe565b90508281036060840152614fa1818c614984565b608084019a909a52505060a081019690965260c086019490945260e08501929092526001600160401b0316610100840152610120830152151561014090910152949350505050565b600086825260a0602083015261500260a08301876149fe565b828103604084015261501481876149fe565b9050828103606084015261502881866149fe565b9150508260808301529695505050505050565b604051601f8201601f191681016001600160401b0381118282101715615063576150636151c9565b604052919050565b60006001600160401b03821115615084576150846151c9565b5060051b60200190565b600082198211156150a1576150a161519d565b500190565b6000826150b5576150b56151b3565b500490565b60008160001904831182151516156150d4576150d461519d565b500290565b6000828210156150eb576150eb61519d565b500390565b60005b8381101561510b5781810151838201526020016150f3565b83811115610b085750506000910152565b60008161512b5761512b61519d565b506000190190565b600181811c9082168061514757607f821691505b6020821081141561516857634e487b7160e01b600052602260045260246000fd5b50919050565b60006000198214156151825761518261519d565b5060010190565b600082615198576151986151b3565b500690565b634e487b7160e01b600052601160045260246000fd5b634e487b7160e01b600052601260045260246000fd5b634e487b7160e01b600052604160045260246000fd5b6001600160a01b0381168114610ca257600080fd5b6001600160e01b031981168114610ca257600080fdfe4552433732313a207472616e7366657220746f206e6f6e20455243373231526563656976657220696d706c656d656e74657268747470733a2f2f696e66696e697479746f6b656e736d756c74692e617a75726577656273697465732e6e65742f6170692f48747470547269676765723f617274436f6e74726163743d4552433732313a206f776e657220717565727920666f72206e6f6e6578697374656e7420746f6b656ea26469706673582212208b50f81630d852cd214f5fa1b958fe4a62b800d3a080ba94fe83447f136666ae64736f6c63430008030033
Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)
000000000000000000000000000000000000000000000000000000000000008000000000000000000000000000000000000000000000000000000000000000c0000000000000000000000000f8ad73297a7315d49adf2153b5de6e84af2838ef000000000000000000000000f8ad73297a7315d49adf2153b5de6e84af2838ef00000000000000000000000000000000000000000000000000000000000000084e79616e446f676700000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000044e44474700000000000000000000000000000000000000000000000000000000
-----Decoded View---------------
Arg [0] : _name (string): NyanDogg
Arg [1] : _symbol (string): NDGG
Arg [2] : factoryAddress (address): 0xf8AD73297a7315D49aDf2153b5DE6E84AF2838ef
Arg [3] : contractCreator (address): 0xf8AD73297a7315D49aDf2153b5DE6E84AF2838ef
-----Encoded View---------------
8 Constructor Arguments found :
Arg [0] : 0000000000000000000000000000000000000000000000000000000000000080
Arg [1] : 00000000000000000000000000000000000000000000000000000000000000c0
Arg [2] : 000000000000000000000000f8ad73297a7315d49adf2153b5de6e84af2838ef
Arg [3] : 000000000000000000000000f8ad73297a7315d49adf2153b5de6e84af2838ef
Arg [4] : 0000000000000000000000000000000000000000000000000000000000000008
Arg [5] : 4e79616e446f6767000000000000000000000000000000000000000000000000
Arg [6] : 0000000000000000000000000000000000000000000000000000000000000004
Arg [7] : 4e44474700000000000000000000000000000000000000000000000000000000
Loading...
Loading
Loading...
Loading
[ Download: CSV Export ]
A token is a representation of an on-chain or off-chain asset. The token page shows information such as price, total supply, holders, transfers and social links. Learn more about this page in our Knowledge Base.