ERC-1155
Overview
Max Total Supply
420 SxTC
Holders
371
Total Transfers
-
Market
Volume (24H)
N/A
Min Price (24H)
N/A
Max Price (24H)
N/A
Other Info
Token Contract
Loading...
Loading
Loading...
Loading
Loading...
Loading
# | Exchange | Pair | Price | 24H Volume | % Volume |
---|
Contract Name:
SxTCommunity
Compiler Version
v0.8.7+commit.e28d00a7
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.7; import "./interfaces/ISxTCommunity.sol"; contract SxTCommunity is ISxTCommunity, SxTCommunityStorage, ERC1155, Ownable, ReentrancyGuard, Pausable { using Counters for Counters.Counter; // Counter for maintaining TokenIDs Counters.Counter public currentTokenIndex; /// @dev This is the constructor function to initialize the contract. /// @param tokenName Name of the ERC1155 token /// @param tokenSymbol Symbol of the ERC1155 token constructor(string memory tokenName, string memory tokenSymbol) ERC1155("") { require(!compareStrings(tokenName, ""), "SxTCommunity: Token name cannot be an empty string"); require(!compareStrings(tokenSymbol, ""), "SxTCommunity: Token symbol cannot be an empty string"); name = tokenName; symbol = tokenSymbol; } /// @dev This is the function to get the URI for an NFT token /// @param id ID of NFT token for which URI needs to be fetched /// @return tokenUri URI of the NFT with required id function uri(uint id) public view override returns (string memory) { require(!compareStrings(tokenDetails[id].tokenUri, ""), "SxTCommunity: URI nonexistent token"); return tokenDetails[id].tokenUri; } /// @dev This is the function to get the list of available or sold-out NFTs in a paginated JSON string response /// @param pageNumber Page number of the response required /// @param pageSize Size of each page of response required /// @param isAvailable Category of NFTs to get, true for available to mint NFTs, and false for sold out NFTs /// @return nftsResponseJSON Stringified JSON response having the list of NFT details according to page number, page size, isAvailable( Available for mint or sold-out) /// @return allAcceptableNFTsCount Count of all available or sold-out ( depending on isAvailable param passed) NFTs that the contract has function retrieveNFTs(uint256 pageNumber, uint256 pageSize, bool isAvailable) external override view returns(string memory, uint256) { string memory nftsResponseJSON = "[]"; uint256 allAcceptableNFTsCount = 0; Token [] memory resultTokens = new Token[](pageSize); Token [] memory allAcceptableTokens = new Token[](currentTokenIndex.current()); for ( uint256 i = currentTokenIndex.current(); i > 0; i--){ if(isAvailable != checkMaxSupplyReached(i)){ Token storage tokenTemp = tokenDetails[i]; allAcceptableTokens[allAcceptableNFTsCount] = tokenTemp; allAcceptableNFTsCount++; } } if(pageNumber == 0 || pageSize == 0 ){ return (nftsResponseJSON, allAcceptableNFTsCount); } uint256 startIndex = ((pageNumber - 1) * pageSize); uint256 endIndex = startIndex + pageSize; if(startIndex >= currentTokenIndex.current()){ return (nftsResponseJSON, allAcceptableNFTsCount); } if(endIndex > currentTokenIndex.current()){ endIndex = currentTokenIndex.current(); } for ( uint256 j = startIndex; j < endIndex; j++){ resultTokens[j - startIndex] = allAcceptableTokens[j]; } nftsResponseJSON = getJSONResponse(resultTokens); return (nftsResponseJSON, allAcceptableNFTsCount); } /// @dev This is the function to set the price in ethers for an NFT token /// @dev Only the owner can call this function /// @param id ID of NFT token for which token price needs to be updated /// @param newTokenEthPrice New price in ethers for the NFT token function setTokenEthPrice(uint256 id, uint256 newTokenEthPrice) external override onlyOwner { require(!compareStrings(tokenDetails[id].tokenUri, ""), "SxTCommunity: URI nonexistent token"); require(tokenDetails[id].ethPrice != newTokenEthPrice, "SxTCommunity: New price same as old price"); require(newTokenEthPrice > 0, "SxTCommunity: New price cannot be zero"); Token storage token = tokenDetails[id]; token.hasPrice = true; token.ethPrice= newTokenEthPrice; emit TokenEthPriceSet(id, token.ethPrice); } /// @dev This is the function to set the price in ERC20 tokens for an NFT token /// @dev Only the owner can call this function /// @param id ID of NFT token for which token price needs to be updated /// @param newTokenERC20Price New price in ERC20 tokens for the NFT token function setTokenERC20Price(uint256 id, uint256 newTokenERC20Price) external override onlyOwner { require(!compareStrings(tokenDetails[id].tokenUri, ""), "SxTCommunity: URI nonexistent token"); require(tokenDetails[id].erc20Price != newTokenERC20Price, "SxTCommunity: New price same as old price"); require(newTokenERC20Price > 0, "SxTCommunity: New price cannot be zero"); Token storage token = tokenDetails[id]; token.hasPrice = true; token.erc20Price= newTokenERC20Price; emit TokenERC20PriceSet(id, token.erc20Price); } /// @dev This is the function to reset the prices for an NFT token /// @dev Only the owner can call this function /// @param id ID of NFT token for which token prices need to be updated function resetTokenPrices(uint256 id) external override onlyOwner { require(!compareStrings(tokenDetails[id].tokenUri, ""), "SxTCommunity: URI nonexistent token"); require(tokenDetails[id].hasPrice, "SxTCommunity: This token is already available for free"); Token storage token = tokenDetails[id]; token.hasPrice = false; token.erc20Price = 0; token.ethPrice = 0; emit TokenPriceReset(id); } /// @dev This is the function to set the ERC20 token for accepting price of NFTs /// @dev Only the owner can call this function /// @param newSxtToken Address of the particular ERC20 token, for accepting price of NFTs in ERC20 tokens function setERC20Token(IERC20 newSxtToken) external override onlyOwner { require(address(newSxtToken) != ZERO_ADDRESS, "SxTCommunity: Address Cannot be Zero Address"); require(keccak256(abi.encodePacked(newSxtToken)) != keccak256(abi.encodePacked(sxtToken)), "SxTCommunity: Current token is already what you have selected"); sxtToken = newSxtToken; emit Erc20TokenSet(newSxtToken); } /// @dev This is the function to mint a new NFT token which is available free of cost /// @dev Only called when contract is unpaused /// @param id ID of NFT token to be bought /// @param to Address to which NFT token should be minted to function mintNFT(uint256 id, address to) external override whenNotPaused nonReentrant{ require(!compareStrings(tokenDetails[id].tokenUri, ""), "SxTCommunity: URI nonexistent token"); require(!tokenDetails[id].hasPrice, "SxTCommunity: This token is not free"); require(!checkMaxSupplyReached(id), "SxTCommunity: Total supply exceeded maximum supply"); require(!isPreviouslyMintedFrom[id][to], "SxTCommunity: Already minted this NFT once to this account"); isPreviouslyMintedFrom[id][to] = true; Token storage currentToken = tokenDetails[id]; currentToken.currentTokenSupply += 1; _mint(to, id, AMOUNT_BUYABLE, ""); emit NftMinted(id, to); } /// @dev This is the function to mint a new NFT token by depositing Ethers /// @dev Only called when contract is unpaused /// @dev If Token is buyable with Ether and ethPrice > 0, function will accept ethers /// @param id ID of NFT token to be bought /// @param to Address to which NFT token should be minted to function mintNFTUsingEth(uint256 id, address to) external override payable whenNotPaused nonReentrant{ require(!compareStrings(tokenDetails[id].tokenUri, ""), "SxTCommunity: URI nonexistent token"); require(tokenDetails[id].hasPrice && tokenDetails[id].ethPrice > 0, "SxTCommunity: Token Eth Price not yet set"); require(!checkMaxSupplyReached(id), "SxTCommunity: Total supply exceeded maximum supply"); require(!isPreviouslyMintedFrom[id][to], "SxTCommunity: Already minted this NFT once to this account"); require(msg.value >= tokenDetails[id].ethPrice, "SxTCommunity: Insufficient Ethers sent"); isPreviouslyMintedFrom[id][to] = true; Token storage currentToken = tokenDetails[id]; currentToken.currentTokenSupply += 1; _mint(to, id, AMOUNT_BUYABLE, ""); emit NftMintedUsingEth(id, to, tokenDetails[id].ethPrice ); } /// @dev This is the function to mint a new NFT token by depositing ERC20 Token /// @dev Only called when contract is unpaused /// @dev If Token is buyable with ERC20 token and erc20Price > 0, function will transfer ERC20 tokens to contract /// @param id ID of NFT token to be bought /// @param to Address to which NFT token should be minted to function mintNFTUsingERC20(uint256 id, address to) external override whenNotPaused nonReentrant{ require(address(sxtToken) != ZERO_ADDRESS, "SxTCommunity: ERC20 Token not yet set by owner"); require(!compareStrings(tokenDetails[id].tokenUri, ""), "SxTCommunity: URI nonexistent token"); require(tokenDetails[id].hasPrice && tokenDetails[id].erc20Price > 0, "SxTCommunity: Token ERC20 Price not yet set"); require(!checkMaxSupplyReached(id), "SxTCommunity: Total supply exceeded maximum supply"); require(!isPreviouslyMintedFrom[id][to], "SxTCommunity: Already minted this NFT once to this account"); require(sxtToken.balanceOf(msg.sender) >= tokenDetails[id].erc20Price, "SxTCommunity: Insufficient ERC20 token balance"); isPreviouslyMintedFrom[id][to] = true; bool sent = sxtToken.transferFrom(msg.sender, address(this), tokenDetails[id].erc20Price); require(sent, "SxTCommunity: Failed to send ERC20Token"); Token storage currentToken = tokenDetails[id]; currentToken.currentTokenSupply += 1; _mint(to, id, AMOUNT_BUYABLE, ""); emit NftMintedUsingERC20(id, to, tokenDetails[id].erc20Price); } /// @dev This is the function to add new NFT tokens in the contract /// @dev Only the owner can call this function /// @param newTokenURIs Array of URIs for NFTs to be added /// @param hasPrices Array of boolean flags representing whether the NFT token has any price or not /// @param newEthPrices Array of prices in Ethers for NFTs to be added /// @param newERC20Prices Array of prices in ERC20 Tokens for NFTs to be added /// @param maxNewTokenSupplies Array of maximum possible supplies for NFTs to be added function addNewNFTs(string [] memory newTokenURIs, bool [] memory hasPrices, uint256 [] memory newEthPrices, uint256 [] memory newERC20Prices, uint256 [] memory maxNewTokenSupplies) external override onlyOwner { require(newTokenURIs.length == maxNewTokenSupplies.length && maxNewTokenSupplies.length == hasPrices.length && hasPrices.length == newEthPrices.length && newEthPrices.length == newERC20Prices.length, "SxTCommunity: Array lengths should be same"); for(uint256 index = 0; index < maxNewTokenSupplies.length; index++){ Token memory newToken; require(maxNewTokenSupplies[index] > 0, "SxTCommunity: Maximum supply cannot be 0"); require(!compareStrings(newTokenURIs[index], ""), "SxTCommunity: URI cannot be empty string"); currentTokenIndex.increment(); uint256 newTokenIndex = currentTokenIndex.current(); newToken.id = newTokenIndex; newToken.tokenUri = newTokenURIs[index]; newToken.maxTokenSupply = maxNewTokenSupplies[index]; newToken.hasPrice = hasPrices[index]; if(hasPrices[index]) { require(newEthPrices[index] > 0 || newERC20Prices[index] > 0, "SxTCommunity: Both prices cannot be 0 since NFT hasPrice is true"); newToken.ethPrice = newEthPrices[index]; newToken.erc20Price = newERC20Prices[index]; } tokenDetails[newTokenIndex] = newToken; emit NewNFTAdded(newTokenIndex); } } /// @dev This is the internal function to check if maximum supply reached for an NFT /// @dev This is called inside mintNFT, mintNFTUsingEth, mintNFTUsingERC20 functions /// @param id ID of NFT token to be checked function checkMaxSupplyReached(uint256 id) view internal returns(bool){ if(tokenDetails[id].currentTokenSupply < tokenDetails[id].maxTokenSupply) return false; return true; } /// @dev This is the internal function to compare 2 strings /// @param s1 First string for comparing value /// @param s2 Second string for comparing value function compareStrings(string memory s1, string memory s2) internal pure returns (bool) { return (keccak256(abi.encodePacked(s1)) == keccak256(abi.encodePacked(s2))); } /// @dev This is the function to withdraw ethers from contract /// @dev Only the owner can call this function function withdrawEth() external override onlyOwner nonReentrant { uint256 amount = address(this).balance; address payable to = payable(msg.sender); require(amount > 0, "SxTCommunity: Zero ether balance"); to.transfer(amount); emit EtherWithdrawn( amount, to); } /// @dev This is the function to withdraw ERC20 Tokens from contract /// @dev Only the owner can call this function function withdrawERC20() external override onlyOwner nonReentrant { uint256 amount = sxtToken.balanceOf(address(this)); address to = msg.sender; require(amount > 0, "SxTCommunity: Zero ERC20 token balance"); bool sent = sxtToken.transfer(to, amount); require(sent, "Failed to send ERC20Token"); emit Erc20TokenWithdrawn(amount, to); } /// @dev This is the function to pause the contract function pause() external override onlyOwner { _pause(); } /// @dev This is the function to unpause the contract function unpause() external override onlyOwner { _unpause(); } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.7; import "../SxTCommunityStorage.sol"; interface ISxTCommunity { /// @dev This is the event to notify that price in ethers of an NFT is set /// @param id ID of NFT token for which token price is updated /// @param newTokenEthPrice New price in ethers set for the NFT token event TokenEthPriceSet(uint256 id, uint256 newTokenEthPrice); /// @dev This is the event to notify that price in ERC20 tokens of an NFT is set /// @param id ID of NFT token for which token price is updated /// @param newTokenERC20Price New price in ERC20 tokens set for the NFT token event TokenERC20PriceSet(uint256 id, uint256 newTokenERC20Price); /// @dev This is the event to notify that prices of an NFT are reset to zero /// @param id ID of NFT token for which token pricse are updated event TokenPriceReset(uint256 id); /// @dev This is the event to notify that an ERC20 token for buying NFTs is set. /// @param sXtToken Address of the ERC20 token set event Erc20TokenSet(IERC20 sXtToken); /// @dev This is the event to notify that an NFT token is bought free of cost. /// @param id ID of NFT token bought /// @param to Address of the NFT buyer event NftMinted(uint256 id, address to); /// @dev This is the event to notify that an NFT token is bought using ethers. /// @param id ID of NFT token bought /// @param to Address of the NFT buyer /// @param tokenPrice Price for the NFT token bought event NftMintedUsingEth(uint256 id, address to, uint256 tokenPrice); /// @dev This is the event to notify that an NFT token is bought using ERC20 tokens. /// @param id ID of NFT token bought /// @param to Address of the NFT buyer /// @param tokenPrice Price for the NFT token bought event NftMintedUsingERC20(uint256 id, address to, uint256 tokenPrice); /// @dev This is the event to notify that a new NFT token has been added in contract /// @param id ID of NFT token added event NewNFTAdded(uint256 id); /// @dev This is the event to notify that all ethers are withdrawn from contract by owner. /// @param amount Amount of ethers withdrawn /// @param to Address of the owner to which ethers are sent event EtherWithdrawn(uint256 amount, address payable to); /// @dev This is the event to notify that all ERC20 tokens are withdrawn from contract by owner. /// @param amount Amount of tokens withdrawn /// @param to Address of the owner to which ERC20 tokens are transferred event Erc20TokenWithdrawn(uint256 amount, address to); /// @dev This is the function to get the list of available or sold-out NFTs in a paginated JSON string response /// @param pageNumber Page number of the response required /// @param pageSize Size of each page of response required /// @param isAvailable Category of NFTs to get, true for available to mint NFTs, and false for sold out NFTs /// @return nftsResponseJSON Stringified JSON response having the list of NFT details according to page number, page size, isAvailable( Available for mint or sold-out) /// @return allAcceptableNFTsCount Count of all available or sold-out ( depending on isAvailable param passed) NFTs that the contract has function retrieveNFTs(uint256 pageNumber, uint256 pageSize, bool isAvailable) external view returns(string memory nftsResponseJSON, uint256 allAcceptableNFTsCount); /// @dev This is the function to set the price in ethers for an NFT token /// @dev Only the owner can call this function /// @param id ID of NFT token for which token price needs to be updated /// @param newTokenEthPrice New price in ethers for the NFT token function setTokenEthPrice(uint256 id, uint256 newTokenEthPrice) external; /// @dev This is the function to set the price in ERC20 tokens for an NFT token /// @dev Only the owner can call this function /// @param id ID of NFT token for which token price needs to be updated /// @param newTokenERC20Price New price in ERC20 tokens for the NFT token function setTokenERC20Price(uint256 id, uint256 newTokenERC20Price) external; /// @dev This is the function to reset the prices for an NFT token /// @dev Only the owner can call this function /// @param id ID of NFT token for which token prices need to be updated function resetTokenPrices(uint256 id) external; /// @dev This is the function to set the ERC20 token for accepting price of NFTs /// @dev Only the owner can call this function /// @param newSxtToken Address of the particular ERC20 token, for accepting price of NFTs in ERC20 tokens function setERC20Token(IERC20 newSxtToken) external; /// @dev This is the function to buy a new NFT token which is available free of cost /// @dev Only called when contract is unpaused /// @param id ID of NFT token to be bought /// @param to Address to which NFT token should be minted to function mintNFT(uint256 id, address to) external; /// @dev This is the function to buy a new NFT token using Ethers /// @dev Only called when contract is unpaused /// @dev If Token is buyable with Ether and ethPrice > 0, function will accept ethers /// @param id ID of NFT token to be bought /// @param to Address to which NFT token should be minted to function mintNFTUsingEth(uint256 id, address to) external payable; /// @dev This is the function to buy a new NFT token using ERC20 Token /// @dev Only called when contract is unpaused /// @dev If Token is buyable with ERC20 token and erc20Price > 0, function will transfer ERC20 tokens to contract /// @param id ID of NFT token to be bought /// @param to Address to which NFT token should be minted to function mintNFTUsingERC20(uint256 id, address to) external; /// @dev This is the function to add new NFT tokens in the contract /// @dev Only the owner can call this function /// @param newTokenURIs Array of URIs for NFTs to be added /// @param maxNewTokenSupplies Array of maximum possible supplies for NFTs to be added /// @param hasPrices Array of boolean flags representing whether the NFT token has any price or not /// @param newEthPrices Array of prices in Ethers for NFTs to be added /// @param newERC20Prices Array of prices in ERC20 Tokens for NFTs to be added function addNewNFTs(string [] memory newTokenURIs, bool [] memory hasPrices, uint256 [] memory newEthPrices, uint256 [] memory newERC20Prices, uint256 [] memory maxNewTokenSupplies) external; /// @dev This is the function to withdraw ethers from contract /// @dev Only the owner can call this function function withdrawEth() external; /// @dev This is the function to withdraw ERC20 Tokens from contract /// @dev Only the owner can call this function function withdrawERC20() external; /// @dev This is the function to pause the contract function pause() external; /// @dev This is the function to unpause the contract function unpause() external; }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.7; import "@openzeppelin/contracts/token/ERC1155/ERC1155.sol"; import "@openzeppelin/contracts/utils/Counters.sol"; import "@openzeppelin/contracts/access/Ownable.sol"; import "@openzeppelin/contracts/security/ReentrancyGuard.sol"; import "@openzeppelin/contracts/security/Pausable.sol"; import "@openzeppelin/contracts/token/ERC20/IERC20.sol"; import "@openzeppelin/contracts/utils/Strings.sol"; contract SxTCommunityStorage { using Strings for uint256; // Constant denoting zero address address constant ZERO_ADDRESS = address(0); // Amount of tokens that can be bought at a time uint8 constant AMOUNT_BUYABLE = 1; // Name of ERC1155 token string public name; // Symbol of ERC1155 token string public symbol; // IERC20 token instance for accepting NFT token's price in ERC20 tokens IERC20 public sxtToken; // Structure of NFT token struct Token { string tokenUri; bool hasPrice; uint256 id; uint256 ethPrice; uint256 erc20Price; uint256 maxTokenSupply; uint256 currentTokenSupply; } /// @dev This function returns stringified JSON form of a struct /// @param nftToken Detailed structure instance of an NFT /// @return nftJSONString Stringified JSON response generated from struct function getJSONfromStruct(Token memory nftToken) internal pure returns (string memory) { string memory hasPrice = nftToken.hasPrice ? "true": "false"; string memory nftJSONString = string(abi.encodePacked( "{\"tokenUri\":\"",nftToken.tokenUri, "\",\"hasPrice\":\"",hasPrice, "\",\"id\":\"",nftToken.id.toString(), "\",\"erc20Price\":\"",nftToken.erc20Price.toString(), "\",\"ethPrice\":\"",nftToken.ethPrice.toString(), "\",\"maxTokenSupply\":\"",nftToken.maxTokenSupply.toString(), "\",\"currentTokenSupply\":\"",nftToken.currentTokenSupply.toString(), "\"}" )); return string(abi.encodePacked( bytes(nftJSONString) )); } /// @dev This function returns stringified JSON form of an array of structs /// @param nftTokens Array of structs of NFTs /// @return nftsJSONString Stringified JSON response generated from struct array function getJSONResponse(Token [] memory nftTokens) internal pure returns (string memory) { string memory nftsJSONString; for (uint256 index = 0; index < nftTokens.length; index++){ if(keccak256(abi.encodePacked(nftTokens[index].tokenUri)) != keccak256(abi.encodePacked(""))) { string memory nftJSONString = getJSONfromStruct(nftTokens[index]); if(index != 0 ) nftsJSONString = string(abi.encodePacked( nftsJSONString, ",")); nftsJSONString = string(abi.encodePacked(nftsJSONString, nftJSONString)); } else { break; } } nftsJSONString = string(abi.encodePacked("[", nftsJSONString, "]")); return nftsJSONString; } // Mapping for maintaining NFT token ID mapping(uint256 => Token) public tokenDetails; // Mapping for maintaing whether an address had minted a particular NFT from the contract previously mapping(uint256 => mapping(address => bool)) public isPreviouslyMintedFrom; }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/introspection/IERC165.sol) pragma solidity ^0.8.0; /** * @dev Interface of the ERC165 standard, as defined in the * https://eips.ethereum.org/EIPS/eip-165[EIP]. * * Implementers can declare support of contract interfaces, which can then be * queried by others ({ERC165Checker}). * * For an implementation, see {ERC165}. */ interface IERC165 { /** * @dev Returns true if this contract implements the interface defined by * `interfaceId`. See the corresponding * https://eips.ethereum.org/EIPS/eip-165#how-interfaces-are-identified[EIP section] * to learn more about how these ids are created. * * This function call must use less than 30 000 gas. */ function supportsInterface(bytes4 interfaceId) external view returns (bool); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/introspection/ERC165.sol) pragma solidity ^0.8.0; import "./IERC165.sol"; /** * @dev Implementation of the {IERC165} interface. * * Contracts that want to implement ERC165 should inherit from this contract and override {supportsInterface} to check * for the additional interface id that will be supported. For example: * * ```solidity * function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) { * return interfaceId == type(MyInterface).interfaceId || super.supportsInterface(interfaceId); * } * ``` * * Alternatively, {ERC165Storage} provides an easier to use but more expensive implementation. */ abstract contract ERC165 is IERC165 { /** * @dev See {IERC165-supportsInterface}. */ function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) { return interfaceId == type(IERC165).interfaceId; } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.7.0) (utils/Strings.sol) pragma solidity ^0.8.0; /** * @dev String operations. */ library Strings { bytes16 private constant _HEX_SYMBOLS = "0123456789abcdef"; uint8 private constant _ADDRESS_LENGTH = 20; /** * @dev Converts a `uint256` to its ASCII `string` decimal representation. */ function toString(uint256 value) internal pure returns (string memory) { // Inspired by OraclizeAPI's implementation - MIT licence // https://github.com/oraclize/ethereum-api/blob/b42146b063c7d6ee1358846c198246239e9360e8/oraclizeAPI_0.4.25.sol if (value == 0) { return "0"; } uint256 temp = value; uint256 digits; while (temp != 0) { digits++; temp /= 10; } bytes memory buffer = new bytes(digits); while (value != 0) { digits -= 1; buffer[digits] = bytes1(uint8(48 + uint256(value % 10))); value /= 10; } return string(buffer); } /** * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation. */ function toHexString(uint256 value) internal pure returns (string memory) { if (value == 0) { return "0x00"; } uint256 temp = value; uint256 length = 0; while (temp != 0) { length++; temp >>= 8; } return toHexString(value, length); } /** * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation with fixed length. */ function toHexString(uint256 value, uint256 length) internal pure returns (string memory) { bytes memory buffer = new bytes(2 * length + 2); buffer[0] = "0"; buffer[1] = "x"; for (uint256 i = 2 * length + 1; i > 1; --i) { buffer[i] = _HEX_SYMBOLS[value & 0xf]; value >>= 4; } require(value == 0, "Strings: hex length insufficient"); return string(buffer); } /** * @dev Converts an `address` with fixed length of 20 bytes to its not checksummed ASCII `string` hexadecimal representation. */ function toHexString(address addr) internal pure returns (string memory) { return toHexString(uint256(uint160(addr)), _ADDRESS_LENGTH); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/Counters.sol) pragma solidity ^0.8.0; /** * @title Counters * @author Matt Condon (@shrugs) * @dev Provides counters that can only be incremented, decremented or reset. This can be used e.g. to track the number * of elements in a mapping, issuing ERC721 ids, or counting request ids. * * Include with `using Counters for Counters.Counter;` */ library Counters { struct Counter { // This variable should never be directly accessed by users of the library: interactions must be restricted to // the library's function. As of Solidity v0.5.2, this cannot be enforced, though there is a proposal to add // this feature: see https://github.com/ethereum/solidity/issues/4637 uint256 _value; // default: 0 } function current(Counter storage counter) internal view returns (uint256) { return counter._value; } function increment(Counter storage counter) internal { unchecked { counter._value += 1; } } function decrement(Counter storage counter) internal { uint256 value = counter._value; require(value > 0, "Counter: decrement overflow"); unchecked { counter._value = value - 1; } } function reset(Counter storage counter) internal { counter._value = 0; } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/Context.sol) pragma solidity ^0.8.0; /** * @dev Provides information about the current execution context, including the * sender of the transaction and its data. While these are generally available * via msg.sender and msg.data, they should not be accessed in such a direct * manner, since when dealing with meta-transactions the account sending and * paying for execution may not be the actual sender (as far as an application * is concerned). * * This contract is only required for intermediate, library-like contracts. */ abstract contract Context { function _msgSender() internal view virtual returns (address) { return msg.sender; } function _msgData() internal view virtual returns (bytes calldata) { return msg.data; } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.7.0) (utils/Address.sol) pragma solidity ^0.8.1; /** * @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 * ==== * * [IMPORTANT] * ==== * You shouldn't rely on `isContract` to protect against flash loan attacks! * * Preventing calls from contracts is highly discouraged. It breaks composability, breaks support for smart wallets * like Gnosis Safe, and does not provide security since it can be circumvented by calling from a contract * constructor. * ==== */ function isContract(address account) internal view returns (bool) { // This method relies on extcodesize/address.code.length, which returns 0 // for contracts in construction, since the code is only stored at the end // of the constructor execution. return account.code.length > 0; } /** * @dev Replacement for Solidity's `transfer`: sends `amount` wei to * `recipient`, forwarding all available gas and reverting on errors. * * https://eips.ethereum.org/EIPS/eip-1884[EIP1884] increases the gas cost * of certain opcodes, possibly making contracts go over the 2300 gas limit * imposed by `transfer`, making them unable to receive funds via * `transfer`. {sendValue} removes this limitation. * * https://diligence.consensys.net/posts/2019/09/stop-using-soliditys-transfer-now/[Learn more]. * * IMPORTANT: because control is transferred to `recipient`, care must be * taken to not create reentrancy vulnerabilities. Consider using * {ReentrancyGuard} or the * https://solidity.readthedocs.io/en/v0.5.11/security-considerations.html#use-the-checks-effects-interactions-pattern[checks-effects-interactions pattern]. */ function sendValue(address payable recipient, uint256 amount) internal { require(address(this).balance >= amount, "Address: insufficient balance"); (bool success, ) = recipient.call{value: amount}(""); require(success, "Address: unable to send value, recipient may have reverted"); } /** * @dev Performs a Solidity function call using a low level `call`. A * plain `call` is an unsafe replacement for a function call: use this * function instead. * * If `target` reverts with a revert reason, it is bubbled up by this * function (like regular Solidity function calls). * * Returns the raw returned data. To convert to the expected return value, * use https://solidity.readthedocs.io/en/latest/units-and-global-variables.html?highlight=abi.decode#abi-encoding-and-decoding-functions[`abi.decode`]. * * Requirements: * * - `target` must be a contract. * - calling `target` with `data` must not revert. * * _Available since v3.1._ */ function functionCall(address target, bytes memory data) internal returns (bytes memory) { return functionCall(target, data, "Address: low-level call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], but with * `errorMessage` as a fallback revert reason when `target` reverts. * * _Available since v3.1._ */ function functionCall( address target, bytes memory data, string memory errorMessage ) internal returns (bytes memory) { return functionCallWithValue(target, data, 0, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but also transferring `value` wei to `target`. * * Requirements: * * - the calling contract must have an ETH balance of at least `value`. * - the called Solidity function must be `payable`. * * _Available since v3.1._ */ function functionCallWithValue( address target, bytes memory data, uint256 value ) internal returns (bytes memory) { return functionCallWithValue(target, data, value, "Address: low-level call with value failed"); } /** * @dev Same as {xref-Address-functionCallWithValue-address-bytes-uint256-}[`functionCallWithValue`], but * with `errorMessage` as a fallback revert reason when `target` reverts. * * _Available since v3.1._ */ function functionCallWithValue( address target, bytes memory data, uint256 value, string memory errorMessage ) internal returns (bytes memory) { require(address(this).balance >= value, "Address: insufficient balance for call"); require(isContract(target), "Address: call to non-contract"); (bool success, bytes memory returndata) = target.call{value: value}(data); return verifyCallResult(success, returndata, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but performing a static call. * * _Available since v3.3._ */ function functionStaticCall(address target, bytes memory data) internal view returns (bytes memory) { return functionStaticCall(target, data, "Address: low-level static call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`], * but performing a static call. * * _Available since v3.3._ */ function functionStaticCall( address target, bytes memory data, string memory errorMessage ) internal view returns (bytes memory) { require(isContract(target), "Address: static call to non-contract"); (bool success, bytes memory returndata) = target.staticcall(data); return verifyCallResult(success, returndata, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but performing a delegate call. * * _Available since v3.4._ */ function functionDelegateCall(address target, bytes memory data) internal returns (bytes memory) { return functionDelegateCall(target, data, "Address: low-level delegate call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`], * but performing a delegate call. * * _Available since v3.4._ */ function functionDelegateCall( address target, bytes memory data, string memory errorMessage ) internal returns (bytes memory) { require(isContract(target), "Address: delegate call to non-contract"); (bool success, bytes memory returndata) = target.delegatecall(data); return verifyCallResult(success, returndata, errorMessage); } /** * @dev Tool to verifies that a low level call was successful, and revert if it wasn't, either by bubbling the * revert reason using the provided one. * * _Available since v4.3._ */ function verifyCallResult( bool success, bytes memory returndata, string memory errorMessage ) internal pure returns (bytes memory) { if (success) { return returndata; } else { // Look for revert reason and bubble it up if present if (returndata.length > 0) { // The easiest way to bubble the revert reason is using memory via assembly /// @solidity memory-safe-assembly assembly { let returndata_size := mload(returndata) revert(add(32, returndata), returndata_size) } } else { revert(errorMessage); } } } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.6.0) (token/ERC20/IERC20.sol) pragma solidity ^0.8.0; /** * @dev Interface of the ERC20 standard as defined in the EIP. */ interface IERC20 { /** * @dev Emitted when `value` tokens are moved from one account (`from`) to * another (`to`). * * Note that `value` may be zero. */ event Transfer(address indexed from, address indexed to, uint256 value); /** * @dev Emitted when the allowance of a `spender` for an `owner` is set by * a call to {approve}. `value` is the new allowance. */ event Approval(address indexed owner, address indexed spender, uint256 value); /** * @dev Returns the amount of tokens in existence. */ function totalSupply() external view returns (uint256); /** * @dev Returns the amount of tokens owned by `account`. */ function balanceOf(address account) external view returns (uint256); /** * @dev Moves `amount` tokens from the caller's account to `to`. * * Returns a boolean value indicating whether the operation succeeded. * * Emits a {Transfer} event. */ function transfer(address to, uint256 amount) external returns (bool); /** * @dev Returns the remaining number of tokens that `spender` will be * allowed to spend on behalf of `owner` through {transferFrom}. This is * zero by default. * * This value changes when {approve} or {transferFrom} are called. */ function allowance(address owner, address spender) external view returns (uint256); /** * @dev Sets `amount` as the allowance of `spender` over the caller's tokens. * * Returns a boolean value indicating whether the operation succeeded. * * IMPORTANT: Beware that changing an allowance with this method brings the risk * that someone may use both the old and the new allowance by unfortunate * transaction ordering. One possible solution to mitigate this race * condition is to first reduce the spender's allowance to 0 and set the * desired value afterwards: * https://github.com/ethereum/EIPs/issues/20#issuecomment-263524729 * * Emits an {Approval} event. */ function approve(address spender, uint256 amount) external returns (bool); /** * @dev Moves `amount` tokens from `from` to `to` using the * allowance mechanism. `amount` is then deducted from the caller's * allowance. * * Returns a boolean value indicating whether the operation succeeded. * * Emits a {Transfer} event. */ function transferFrom( address from, address to, uint256 amount ) external returns (bool); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (token/ERC1155/extensions/IERC1155MetadataURI.sol) pragma solidity ^0.8.0; import "../IERC1155.sol"; /** * @dev Interface of the optional ERC1155MetadataExtension interface, as defined * in the https://eips.ethereum.org/EIPS/eip-1155#metadata-extensions[EIP]. * * _Available since v3.1._ */ interface IERC1155MetadataURI is IERC1155 { /** * @dev Returns the URI for token type `id`. * * If the `\{id\}` substring is present in the URI, it must be replaced by * clients with the actual token type ID. */ function uri(uint256 id) external view returns (string memory); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.5.0) (token/ERC1155/IERC1155Receiver.sol) pragma solidity ^0.8.0; import "../../utils/introspection/IERC165.sol"; /** * @dev _Available since v3.1._ */ interface IERC1155Receiver is IERC165 { /** * @dev Handles the receipt of a single ERC1155 token type. This function is * called at the end of a `safeTransferFrom` after the balance has been updated. * * NOTE: To accept the transfer, this must return * `bytes4(keccak256("onERC1155Received(address,address,uint256,uint256,bytes)"))` * (i.e. 0xf23a6e61, or its own function selector). * * @param operator The address which initiated the transfer (i.e. msg.sender) * @param from The address which previously owned the token * @param id The ID of the token being transferred * @param value The amount of tokens being transferred * @param data Additional data with no specified format * @return `bytes4(keccak256("onERC1155Received(address,address,uint256,uint256,bytes)"))` if transfer is allowed */ function onERC1155Received( address operator, address from, uint256 id, uint256 value, bytes calldata data ) external returns (bytes4); /** * @dev Handles the receipt of a multiple ERC1155 token types. This function * is called at the end of a `safeBatchTransferFrom` after the balances have * been updated. * * NOTE: To accept the transfer(s), this must return * `bytes4(keccak256("onERC1155BatchReceived(address,address,uint256[],uint256[],bytes)"))` * (i.e. 0xbc197c81, or its own function selector). * * @param operator The address which initiated the batch transfer (i.e. msg.sender) * @param from The address which previously owned the token * @param ids An array containing ids of each token being transferred (order and length must match values array) * @param values An array containing amounts of each token being transferred (order and length must match ids array) * @param data Additional data with no specified format * @return `bytes4(keccak256("onERC1155BatchReceived(address,address,uint256[],uint256[],bytes)"))` if transfer is allowed */ function onERC1155BatchReceived( address operator, address from, uint256[] calldata ids, uint256[] calldata values, bytes calldata data ) external returns (bytes4); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.7.0) (token/ERC1155/IERC1155.sol) pragma solidity ^0.8.0; import "../../utils/introspection/IERC165.sol"; /** * @dev Required interface of an ERC1155 compliant contract, as defined in the * https://eips.ethereum.org/EIPS/eip-1155[EIP]. * * _Available since v3.1._ */ interface IERC1155 is IERC165 { /** * @dev Emitted when `value` tokens of token type `id` are transferred from `from` to `to` by `operator`. */ event TransferSingle(address indexed operator, address indexed from, address indexed to, uint256 id, uint256 value); /** * @dev Equivalent to multiple {TransferSingle} events, where `operator`, `from` and `to` are the same for all * transfers. */ event TransferBatch( address indexed operator, address indexed from, address indexed to, uint256[] ids, uint256[] values ); /** * @dev Emitted when `account` grants or revokes permission to `operator` to transfer their tokens, according to * `approved`. */ event ApprovalForAll(address indexed account, address indexed operator, bool approved); /** * @dev Emitted when the URI for token type `id` changes to `value`, if it is a non-programmatic URI. * * If an {URI} event was emitted for `id`, the standard * https://eips.ethereum.org/EIPS/eip-1155#metadata-extensions[guarantees] that `value` will equal the value * returned by {IERC1155MetadataURI-uri}. */ event URI(string value, uint256 indexed id); /** * @dev Returns the amount of tokens of token type `id` owned by `account`. * * Requirements: * * - `account` cannot be the zero address. */ function balanceOf(address account, uint256 id) external view returns (uint256); /** * @dev xref:ROOT:erc1155.adoc#batch-operations[Batched] version of {balanceOf}. * * Requirements: * * - `accounts` and `ids` must have the same length. */ function balanceOfBatch(address[] calldata accounts, uint256[] calldata ids) external view returns (uint256[] memory); /** * @dev Grants or revokes permission to `operator` to transfer the caller's tokens, according to `approved`, * * Emits an {ApprovalForAll} event. * * Requirements: * * - `operator` cannot be the caller. */ function setApprovalForAll(address operator, bool approved) external; /** * @dev Returns true if `operator` is approved to transfer ``account``'s tokens. * * See {setApprovalForAll}. */ function isApprovedForAll(address account, address operator) external view returns (bool); /** * @dev Transfers `amount` tokens of token type `id` from `from` to `to`. * * Emits a {TransferSingle} event. * * Requirements: * * - `to` cannot be the zero address. * - If the caller is not `from`, it must have been approved to spend ``from``'s tokens via {setApprovalForAll}. * - `from` must have a balance of tokens of type `id` of at least `amount`. * - If `to` refers to a smart contract, it must implement {IERC1155Receiver-onERC1155Received} and return the * acceptance magic value. */ function safeTransferFrom( address from, address to, uint256 id, uint256 amount, bytes calldata data ) external; /** * @dev xref:ROOT:erc1155.adoc#batch-operations[Batched] version of {safeTransferFrom}. * * Emits a {TransferBatch} event. * * Requirements: * * - `ids` and `amounts` must have the same length. * - If `to` refers to a smart contract, it must implement {IERC1155Receiver-onERC1155BatchReceived} and return the * acceptance magic value. */ function safeBatchTransferFrom( address from, address to, uint256[] calldata ids, uint256[] calldata amounts, bytes calldata data ) external; }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.7.0) (token/ERC1155/ERC1155.sol) pragma solidity ^0.8.0; import "./IERC1155.sol"; import "./IERC1155Receiver.sol"; import "./extensions/IERC1155MetadataURI.sol"; import "../../utils/Address.sol"; import "../../utils/Context.sol"; import "../../utils/introspection/ERC165.sol"; /** * @dev Implementation of the basic standard multi-token. * See https://eips.ethereum.org/EIPS/eip-1155 * Originally based on code by Enjin: https://github.com/enjin/erc-1155 * * _Available since v3.1._ */ contract ERC1155 is Context, ERC165, IERC1155, IERC1155MetadataURI { using Address for address; // Mapping from token ID to account balances mapping(uint256 => mapping(address => uint256)) private _balances; // Mapping from account to operator approvals mapping(address => mapping(address => bool)) private _operatorApprovals; // Used as the URI for all token types by relying on ID substitution, e.g. https://token-cdn-domain/{id}.json string private _uri; /** * @dev See {_setURI}. */ constructor(string memory uri_) { _setURI(uri_); } /** * @dev See {IERC165-supportsInterface}. */ function supportsInterface(bytes4 interfaceId) public view virtual override(ERC165, IERC165) returns (bool) { return interfaceId == type(IERC1155).interfaceId || interfaceId == type(IERC1155MetadataURI).interfaceId || super.supportsInterface(interfaceId); } /** * @dev See {IERC1155MetadataURI-uri}. * * This implementation returns the same URI for *all* token types. It relies * on the token type ID substitution mechanism * https://eips.ethereum.org/EIPS/eip-1155#metadata[defined in the EIP]. * * Clients calling this function must replace the `\{id\}` substring with the * actual token type ID. */ function uri(uint256) public view virtual override returns (string memory) { return _uri; } /** * @dev See {IERC1155-balanceOf}. * * Requirements: * * - `account` cannot be the zero address. */ function balanceOf(address account, uint256 id) public view virtual override returns (uint256) { require(account != address(0), "ERC1155: address zero is not a valid owner"); return _balances[id][account]; } /** * @dev See {IERC1155-balanceOfBatch}. * * Requirements: * * - `accounts` and `ids` must have the same length. */ function balanceOfBatch(address[] memory accounts, uint256[] memory ids) public view virtual override returns (uint256[] memory) { require(accounts.length == ids.length, "ERC1155: accounts and ids length mismatch"); uint256[] memory batchBalances = new uint256[](accounts.length); for (uint256 i = 0; i < accounts.length; ++i) { batchBalances[i] = balanceOf(accounts[i], ids[i]); } return batchBalances; } /** * @dev See {IERC1155-setApprovalForAll}. */ function setApprovalForAll(address operator, bool approved) public virtual override { _setApprovalForAll(_msgSender(), operator, approved); } /** * @dev See {IERC1155-isApprovedForAll}. */ function isApprovedForAll(address account, address operator) public view virtual override returns (bool) { return _operatorApprovals[account][operator]; } /** * @dev See {IERC1155-safeTransferFrom}. */ function safeTransferFrom( address from, address to, uint256 id, uint256 amount, bytes memory data ) public virtual override { require( from == _msgSender() || isApprovedForAll(from, _msgSender()), "ERC1155: caller is not token owner nor approved" ); _safeTransferFrom(from, to, id, amount, data); } /** * @dev See {IERC1155-safeBatchTransferFrom}. */ function safeBatchTransferFrom( address from, address to, uint256[] memory ids, uint256[] memory amounts, bytes memory data ) public virtual override { require( from == _msgSender() || isApprovedForAll(from, _msgSender()), "ERC1155: caller is not token owner nor approved" ); _safeBatchTransferFrom(from, to, ids, amounts, data); } /** * @dev Transfers `amount` tokens of token type `id` from `from` to `to`. * * Emits a {TransferSingle} event. * * Requirements: * * - `to` cannot be the zero address. * - `from` must have a balance of tokens of type `id` of at least `amount`. * - If `to` refers to a smart contract, it must implement {IERC1155Receiver-onERC1155Received} and return the * acceptance magic value. */ function _safeTransferFrom( address from, address to, uint256 id, uint256 amount, bytes memory data ) internal virtual { require(to != address(0), "ERC1155: transfer to the zero address"); address operator = _msgSender(); uint256[] memory ids = _asSingletonArray(id); uint256[] memory amounts = _asSingletonArray(amount); _beforeTokenTransfer(operator, from, to, ids, amounts, data); uint256 fromBalance = _balances[id][from]; require(fromBalance >= amount, "ERC1155: insufficient balance for transfer"); unchecked { _balances[id][from] = fromBalance - amount; } _balances[id][to] += amount; emit TransferSingle(operator, from, to, id, amount); _afterTokenTransfer(operator, from, to, ids, amounts, data); _doSafeTransferAcceptanceCheck(operator, from, to, id, amount, data); } /** * @dev xref:ROOT:erc1155.adoc#batch-operations[Batched] version of {_safeTransferFrom}. * * Emits a {TransferBatch} event. * * Requirements: * * - If `to` refers to a smart contract, it must implement {IERC1155Receiver-onERC1155BatchReceived} and return the * acceptance magic value. */ function _safeBatchTransferFrom( address from, address to, uint256[] memory ids, uint256[] memory amounts, bytes memory data ) internal virtual { require(ids.length == amounts.length, "ERC1155: ids and amounts length mismatch"); require(to != address(0), "ERC1155: transfer to the zero address"); address operator = _msgSender(); _beforeTokenTransfer(operator, from, to, ids, amounts, data); for (uint256 i = 0; i < ids.length; ++i) { uint256 id = ids[i]; uint256 amount = amounts[i]; uint256 fromBalance = _balances[id][from]; require(fromBalance >= amount, "ERC1155: insufficient balance for transfer"); unchecked { _balances[id][from] = fromBalance - amount; } _balances[id][to] += amount; } emit TransferBatch(operator, from, to, ids, amounts); _afterTokenTransfer(operator, from, to, ids, amounts, data); _doSafeBatchTransferAcceptanceCheck(operator, from, to, ids, amounts, data); } /** * @dev Sets a new URI for all token types, by relying on the token type ID * substitution mechanism * https://eips.ethereum.org/EIPS/eip-1155#metadata[defined in the EIP]. * * By this mechanism, any occurrence of the `\{id\}` substring in either the * URI or any of the amounts in the JSON file at said URI will be replaced by * clients with the token type ID. * * For example, the `https://token-cdn-domain/\{id\}.json` URI would be * interpreted by clients as * `https://token-cdn-domain/000000000000000000000000000000000000000000000000000000000004cce0.json` * for token type ID 0x4cce0. * * See {uri}. * * Because these URIs cannot be meaningfully represented by the {URI} event, * this function emits no events. */ function _setURI(string memory newuri) internal virtual { _uri = newuri; } /** * @dev Creates `amount` tokens of token type `id`, and assigns them to `to`. * * Emits a {TransferSingle} event. * * Requirements: * * - `to` cannot be the zero address. * - If `to` refers to a smart contract, it must implement {IERC1155Receiver-onERC1155Received} and return the * acceptance magic value. */ function _mint( address to, uint256 id, uint256 amount, bytes memory data ) internal virtual { require(to != address(0), "ERC1155: mint to the zero address"); address operator = _msgSender(); uint256[] memory ids = _asSingletonArray(id); uint256[] memory amounts = _asSingletonArray(amount); _beforeTokenTransfer(operator, address(0), to, ids, amounts, data); _balances[id][to] += amount; emit TransferSingle(operator, address(0), to, id, amount); _afterTokenTransfer(operator, address(0), to, ids, amounts, data); _doSafeTransferAcceptanceCheck(operator, address(0), to, id, amount, data); } /** * @dev xref:ROOT:erc1155.adoc#batch-operations[Batched] version of {_mint}. * * Emits a {TransferBatch} event. * * Requirements: * * - `ids` and `amounts` must have the same length. * - If `to` refers to a smart contract, it must implement {IERC1155Receiver-onERC1155BatchReceived} and return the * acceptance magic value. */ function _mintBatch( address to, uint256[] memory ids, uint256[] memory amounts, bytes memory data ) internal virtual { require(to != address(0), "ERC1155: mint to the zero address"); require(ids.length == amounts.length, "ERC1155: ids and amounts length mismatch"); address operator = _msgSender(); _beforeTokenTransfer(operator, address(0), to, ids, amounts, data); for (uint256 i = 0; i < ids.length; i++) { _balances[ids[i]][to] += amounts[i]; } emit TransferBatch(operator, address(0), to, ids, amounts); _afterTokenTransfer(operator, address(0), to, ids, amounts, data); _doSafeBatchTransferAcceptanceCheck(operator, address(0), to, ids, amounts, data); } /** * @dev Destroys `amount` tokens of token type `id` from `from` * * Emits a {TransferSingle} event. * * Requirements: * * - `from` cannot be the zero address. * - `from` must have at least `amount` tokens of token type `id`. */ function _burn( address from, uint256 id, uint256 amount ) internal virtual { require(from != address(0), "ERC1155: burn from the zero address"); address operator = _msgSender(); uint256[] memory ids = _asSingletonArray(id); uint256[] memory amounts = _asSingletonArray(amount); _beforeTokenTransfer(operator, from, address(0), ids, amounts, ""); uint256 fromBalance = _balances[id][from]; require(fromBalance >= amount, "ERC1155: burn amount exceeds balance"); unchecked { _balances[id][from] = fromBalance - amount; } emit TransferSingle(operator, from, address(0), id, amount); _afterTokenTransfer(operator, from, address(0), ids, amounts, ""); } /** * @dev xref:ROOT:erc1155.adoc#batch-operations[Batched] version of {_burn}. * * Emits a {TransferBatch} event. * * Requirements: * * - `ids` and `amounts` must have the same length. */ function _burnBatch( address from, uint256[] memory ids, uint256[] memory amounts ) internal virtual { require(from != address(0), "ERC1155: burn from the zero address"); require(ids.length == amounts.length, "ERC1155: ids and amounts length mismatch"); address operator = _msgSender(); _beforeTokenTransfer(operator, from, address(0), ids, amounts, ""); for (uint256 i = 0; i < ids.length; i++) { uint256 id = ids[i]; uint256 amount = amounts[i]; uint256 fromBalance = _balances[id][from]; require(fromBalance >= amount, "ERC1155: burn amount exceeds balance"); unchecked { _balances[id][from] = fromBalance - amount; } } emit TransferBatch(operator, from, address(0), ids, amounts); _afterTokenTransfer(operator, from, address(0), ids, amounts, ""); } /** * @dev Approve `operator` to operate on all of `owner` tokens * * Emits an {ApprovalForAll} event. */ function _setApprovalForAll( address owner, address operator, bool approved ) internal virtual { require(owner != operator, "ERC1155: setting approval status for self"); _operatorApprovals[owner][operator] = approved; emit ApprovalForAll(owner, operator, approved); } /** * @dev Hook that is called before any token transfer. This includes minting * and burning, as well as batched variants. * * The same hook is called on both single and batched variants. For single * transfers, the length of the `ids` and `amounts` arrays will be 1. * * Calling conditions (for each `id` and `amount` pair): * * - When `from` and `to` are both non-zero, `amount` of ``from``'s tokens * of token type `id` will be transferred to `to`. * - When `from` is zero, `amount` tokens of token type `id` will be minted * for `to`. * - when `to` is zero, `amount` of ``from``'s tokens of token type `id` * will be burned. * - `from` and `to` are never both zero. * - `ids` and `amounts` have the same, non-zero length. * * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks]. */ function _beforeTokenTransfer( address operator, address from, address to, uint256[] memory ids, uint256[] memory amounts, bytes memory data ) internal virtual {} /** * @dev Hook that is called after any token transfer. This includes minting * and burning, as well as batched variants. * * The same hook is called on both single and batched variants. For single * transfers, the length of the `id` and `amount` arrays will be 1. * * Calling conditions (for each `id` and `amount` pair): * * - When `from` and `to` are both non-zero, `amount` of ``from``'s tokens * of token type `id` will be transferred to `to`. * - When `from` is zero, `amount` tokens of token type `id` will be minted * for `to`. * - when `to` is zero, `amount` of ``from``'s tokens of token type `id` * will be burned. * - `from` and `to` are never both zero. * - `ids` and `amounts` have the same, non-zero length. * * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks]. */ function _afterTokenTransfer( address operator, address from, address to, uint256[] memory ids, uint256[] memory amounts, bytes memory data ) internal virtual {} function _doSafeTransferAcceptanceCheck( address operator, address from, address to, uint256 id, uint256 amount, bytes memory data ) private { if (to.isContract()) { try IERC1155Receiver(to).onERC1155Received(operator, from, id, amount, data) returns (bytes4 response) { if (response != IERC1155Receiver.onERC1155Received.selector) { revert("ERC1155: ERC1155Receiver rejected tokens"); } } catch Error(string memory reason) { revert(reason); } catch { revert("ERC1155: transfer to non ERC1155Receiver implementer"); } } } function _doSafeBatchTransferAcceptanceCheck( address operator, address from, address to, uint256[] memory ids, uint256[] memory amounts, bytes memory data ) private { if (to.isContract()) { try IERC1155Receiver(to).onERC1155BatchReceived(operator, from, ids, amounts, data) returns ( bytes4 response ) { if (response != IERC1155Receiver.onERC1155BatchReceived.selector) { revert("ERC1155: ERC1155Receiver rejected tokens"); } } catch Error(string memory reason) { revert(reason); } catch { revert("ERC1155: transfer to non ERC1155Receiver implementer"); } } } function _asSingletonArray(uint256 element) private pure returns (uint256[] memory) { uint256[] memory array = new uint256[](1); array[0] = element; return array; } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (security/ReentrancyGuard.sol) pragma solidity ^0.8.0; /** * @dev Contract module that helps prevent reentrant calls to a function. * * Inheriting from `ReentrancyGuard` will make the {nonReentrant} modifier * available, which can be applied to functions to make sure there are no nested * (reentrant) calls to them. * * Note that because there is a single `nonReentrant` guard, functions marked as * `nonReentrant` may not call one another. This can be worked around by making * those functions `private`, and then adding `external` `nonReentrant` entry * points to them. * * TIP: If you would like to learn more about reentrancy and alternative ways * to protect against it, check out our blog post * https://blog.openzeppelin.com/reentrancy-after-istanbul/[Reentrancy After Istanbul]. */ abstract contract ReentrancyGuard { // Booleans are more expensive than uint256 or any type that takes up a full // word because each write operation emits an extra SLOAD to first read the // slot's contents, replace the bits taken up by the boolean, and then write // back. This is the compiler's defense against contract upgrades and // pointer aliasing, and it cannot be disabled. // The values being non-zero value makes deployment a bit more expensive, // but in exchange the refund on every call to nonReentrant will be lower in // amount. Since refunds are capped to a percentage of the total // transaction's gas, it is best to keep them low in cases like this one, to // increase the likelihood of the full refund coming into effect. uint256 private constant _NOT_ENTERED = 1; uint256 private constant _ENTERED = 2; uint256 private _status; constructor() { _status = _NOT_ENTERED; } /** * @dev Prevents a contract from calling itself, directly or indirectly. * Calling a `nonReentrant` function from another `nonReentrant` * function is not supported. It is possible to prevent this from happening * by making the `nonReentrant` function external, and making it call a * `private` function that does the actual work. */ modifier nonReentrant() { // On the first call to nonReentrant, _notEntered will be true require(_status != _ENTERED, "ReentrancyGuard: reentrant call"); // Any calls to nonReentrant after this point will fail _status = _ENTERED; _; // By storing the original value once again, a refund is triggered (see // https://eips.ethereum.org/EIPS/eip-2200) _status = _NOT_ENTERED; } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.7.0) (security/Pausable.sol) pragma solidity ^0.8.0; import "../utils/Context.sol"; /** * @dev Contract module which allows children to implement an emergency stop * mechanism that can be triggered by an authorized account. * * This module is used through inheritance. It will make available the * modifiers `whenNotPaused` and `whenPaused`, which can be applied to * the functions of your contract. Note that they will not be pausable by * simply including this module, only once the modifiers are put in place. */ abstract contract Pausable is Context { /** * @dev Emitted when the pause is triggered by `account`. */ event Paused(address account); /** * @dev Emitted when the pause is lifted by `account`. */ event Unpaused(address account); bool private _paused; /** * @dev Initializes the contract in unpaused state. */ constructor() { _paused = false; } /** * @dev Modifier to make a function callable only when the contract is not paused. * * Requirements: * * - The contract must not be paused. */ modifier whenNotPaused() { _requireNotPaused(); _; } /** * @dev Modifier to make a function callable only when the contract is paused. * * Requirements: * * - The contract must be paused. */ modifier whenPaused() { _requirePaused(); _; } /** * @dev Returns true if the contract is paused, and false otherwise. */ function paused() public view virtual returns (bool) { return _paused; } /** * @dev Throws if the contract is paused. */ function _requireNotPaused() internal view virtual { require(!paused(), "Pausable: paused"); } /** * @dev Throws if the contract is not paused. */ function _requirePaused() internal view virtual { require(paused(), "Pausable: not paused"); } /** * @dev Triggers stopped state. * * Requirements: * * - The contract must not be paused. */ function _pause() internal virtual whenNotPaused { _paused = true; emit Paused(_msgSender()); } /** * @dev Returns to normal state. * * Requirements: * * - The contract must be paused. */ function _unpause() internal virtual whenPaused { _paused = false; emit Unpaused(_msgSender()); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.7.0) (access/Ownable.sol) pragma solidity ^0.8.0; import "../utils/Context.sol"; /** * @dev Contract module which provides a basic access control mechanism, where * there is an account (an owner) that can be granted exclusive access to * specific functions. * * By default, the owner account will be the one that deploys the contract. This * can later be changed with {transferOwnership}. * * This module is used through inheritance. It will make available the modifier * `onlyOwner`, which can be applied to your functions to restrict their use to * the owner. */ abstract contract Ownable is Context { address private _owner; event OwnershipTransferred(address indexed previousOwner, address indexed newOwner); /** * @dev Initializes the contract setting the deployer as the initial owner. */ constructor() { _transferOwnership(_msgSender()); } /** * @dev Throws if called by any account other than the owner. */ modifier onlyOwner() { _checkOwner(); _; } /** * @dev Returns the address of the current owner. */ function owner() public view virtual returns (address) { return _owner; } /** * @dev Throws if the sender is not the owner. */ function _checkOwner() internal view virtual { require(owner() == _msgSender(), "Ownable: caller is not the owner"); } /** * @dev Leaves the contract without owner. It will not be possible to call * `onlyOwner` functions anymore. Can only be called by the current owner. * * NOTE: Renouncing ownership will leave the contract without an owner, * thereby removing any functionality that is only available to the owner. */ function renounceOwnership() public virtual onlyOwner { _transferOwnership(address(0)); } /** * @dev Transfers ownership of the contract to a new account (`newOwner`). * Can only be called by the current owner. */ function transferOwnership(address newOwner) public virtual onlyOwner { require(newOwner != address(0), "Ownable: new owner is the zero address"); _transferOwnership(newOwner); } /** * @dev Transfers ownership of the contract to a new account (`newOwner`). * Internal function without access restriction. */ function _transferOwnership(address newOwner) internal virtual { address oldOwner = _owner; _owner = newOwner; emit OwnershipTransferred(oldOwner, newOwner); } }
{ "remappings": [], "optimizer": { "enabled": true, "runs": 200 }, "evmVersion": "london", "libraries": {}, "outputSelection": { "*": { "*": [ "evm.bytecode", "evm.deployedBytecode", "devdoc", "userdoc", "metadata", "abi" ] } } }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"inputs":[{"internalType":"string","name":"tokenName","type":"string"},{"internalType":"string","name":"tokenSymbol","type":"string"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"account","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":"contract IERC20","name":"sXtToken","type":"address"}],"name":"Erc20TokenSet","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"},{"indexed":false,"internalType":"address","name":"to","type":"address"}],"name":"Erc20TokenWithdrawn","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"},{"indexed":false,"internalType":"address payable","name":"to","type":"address"}],"name":"EtherWithdrawn","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"id","type":"uint256"}],"name":"NewNFTAdded","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"id","type":"uint256"},{"indexed":false,"internalType":"address","name":"to","type":"address"}],"name":"NftMinted","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"id","type":"uint256"},{"indexed":false,"internalType":"address","name":"to","type":"address"},{"indexed":false,"internalType":"uint256","name":"tokenPrice","type":"uint256"}],"name":"NftMintedUsingERC20","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"id","type":"uint256"},{"indexed":false,"internalType":"address","name":"to","type":"address"},{"indexed":false,"internalType":"uint256","name":"tokenPrice","type":"uint256"}],"name":"NftMintedUsingEth","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"account","type":"address"}],"name":"Paused","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"id","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"newTokenERC20Price","type":"uint256"}],"name":"TokenERC20PriceSet","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"id","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"newTokenEthPrice","type":"uint256"}],"name":"TokenEthPriceSet","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"id","type":"uint256"}],"name":"TokenPriceReset","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":false,"internalType":"uint256[]","name":"ids","type":"uint256[]"},{"indexed":false,"internalType":"uint256[]","name":"values","type":"uint256[]"}],"name":"TransferBatch","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":false,"internalType":"uint256","name":"id","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"value","type":"uint256"}],"name":"TransferSingle","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"string","name":"value","type":"string"},{"indexed":true,"internalType":"uint256","name":"id","type":"uint256"}],"name":"URI","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"account","type":"address"}],"name":"Unpaused","type":"event"},{"inputs":[{"internalType":"string[]","name":"newTokenURIs","type":"string[]"},{"internalType":"bool[]","name":"hasPrices","type":"bool[]"},{"internalType":"uint256[]","name":"newEthPrices","type":"uint256[]"},{"internalType":"uint256[]","name":"newERC20Prices","type":"uint256[]"},{"internalType":"uint256[]","name":"maxNewTokenSupplies","type":"uint256[]"}],"name":"addNewNFTs","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"},{"internalType":"uint256","name":"id","type":"uint256"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address[]","name":"accounts","type":"address[]"},{"internalType":"uint256[]","name":"ids","type":"uint256[]"}],"name":"balanceOfBatch","outputs":[{"internalType":"uint256[]","name":"","type":"uint256[]"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"currentTokenIndex","outputs":[{"internalType":"uint256","name":"_value","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"},{"internalType":"address","name":"operator","type":"address"}],"name":"isApprovedForAll","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"},{"internalType":"address","name":"","type":"address"}],"name":"isPreviouslyMintedFrom","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"id","type":"uint256"},{"internalType":"address","name":"to","type":"address"}],"name":"mintNFT","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"id","type":"uint256"},{"internalType":"address","name":"to","type":"address"}],"name":"mintNFTUsingERC20","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"id","type":"uint256"},{"internalType":"address","name":"to","type":"address"}],"name":"mintNFTUsingEth","outputs":[],"stateMutability":"payable","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":[],"name":"pause","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"paused","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"id","type":"uint256"}],"name":"resetTokenPrices","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"pageNumber","type":"uint256"},{"internalType":"uint256","name":"pageSize","type":"uint256"},{"internalType":"bool","name":"isAvailable","type":"bool"}],"name":"retrieveNFTs","outputs":[{"internalType":"string","name":"","type":"string"},{"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":"ids","type":"uint256[]"},{"internalType":"uint256[]","name":"amounts","type":"uint256[]"},{"internalType":"bytes","name":"data","type":"bytes"}],"name":"safeBatchTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"id","type":"uint256"},{"internalType":"uint256","name":"amount","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":"contract IERC20","name":"newSxtToken","type":"address"}],"name":"setERC20Token","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"id","type":"uint256"},{"internalType":"uint256","name":"newTokenERC20Price","type":"uint256"}],"name":"setTokenERC20Price","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"id","type":"uint256"},{"internalType":"uint256","name":"newTokenEthPrice","type":"uint256"}],"name":"setTokenEthPrice","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":"sxtToken","outputs":[{"internalType":"contract IERC20","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"tokenDetails","outputs":[{"internalType":"string","name":"tokenUri","type":"string"},{"internalType":"bool","name":"hasPrice","type":"bool"},{"internalType":"uint256","name":"id","type":"uint256"},{"internalType":"uint256","name":"ethPrice","type":"uint256"},{"internalType":"uint256","name":"erc20Price","type":"uint256"},{"internalType":"uint256","name":"maxTokenSupply","type":"uint256"},{"internalType":"uint256","name":"currentTokenSupply","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"unpause","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"id","type":"uint256"}],"name":"uri","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"withdrawERC20","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"withdrawEth","outputs":[],"stateMutability":"nonpayable","type":"function"}]
Contract Creation Code
60806040523480156200001157600080fd5b506040516200474c3803806200474c8339810160408190526200003491620003bc565b6040805160208101909152600081526200004e81620001bd565b506200005a33620001d6565b6001600955600a805460ff191690556040805160208101909152600081526200008590839062000228565b15620000f35760405162461bcd60e51b815260206004820152603260248201527f537854436f6d6d756e6974793a20546f6b656e206e616d652063616e6e6f7420604482015271626520616e20656d70747920737472696e6760701b60648201526084015b60405180910390fd5b6200011481604051806020016040528060008152506200022860201b60201c565b15620001895760405162461bcd60e51b815260206004820152603460248201527f537854436f6d6d756e6974793a20546f6b656e2073796d626f6c2063616e6e6f60448201527f7420626520616e20656d70747920737472696e670000000000000000000000006064820152608401620000ea565b81516200019e90600090602085019062000285565b508051620001b490600190602084019062000285565b505050620004ca565b8051620001d290600790602084019062000285565b5050565b600880546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b6000816040516020016200023d919062000426565b604051602081830303815290604052805190602001208360405160200162000266919062000426565b6040516020818303038152906040528051906020012014905092915050565b828054620002939062000477565b90600052602060002090601f016020900481019282620002b7576000855562000302565b82601f10620002d257805160ff191683800117855562000302565b8280016001018555821562000302579182015b8281111562000302578251825591602001919060010190620002e5565b506200031092915062000314565b5090565b5b8082111562000310576000815560010162000315565b600082601f8301126200033d57600080fd5b81516001600160401b03808211156200035a576200035a620004b4565b604051601f8301601f19908116603f01168101908282118183101715620003855762000385620004b4565b816040528381528660208588010111156200039f57600080fd5b620003b284602083016020890162000444565b9695505050505050565b60008060408385031215620003d057600080fd5b82516001600160401b0380821115620003e857600080fd5b620003f6868387016200032b565b935060208501519150808211156200040d57600080fd5b506200041c858286016200032b565b9150509250929050565b600082516200043a81846020870162000444565b9190910192915050565b60005b838110156200046157818101518382015260200162000447565b8381111562000471576000848401525b50505050565b600181811c908216806200048c57607f821691505b60208210811415620004ae57634e487b7160e01b600052602260045260246000fd5b50919050565b634e487b7160e01b600052604160045260246000fd5b61427280620004da6000396000f3fe6080604052600436106101d75760003560e01c80638456cb5911610102578063be8cb11811610095578063f242432a11610064578063f242432a1461057d578063f2fde38b1461059d578063fc314e31146105bd578063fdebc46b146105f057600080fd5b8063be8cb118146104d4578063d93e1081146104f4578063de56248714610514578063e985e9c51461053457600080fd5b8063a0ef91df116100d1578063a0ef91df1461045f578063a22cb46514610474578063abae430b14610494578063ba68cd24146104b457600080fd5b80638456cb59146103e35780638da5cb5b146103f85780638f2ab4b61461042a57806395d89b411461044a57600080fd5b806331bbcce71161017a57806350e281151161014957806350e28115146103835780635c975abb14610396578063669f5a51146103ae578063715018a6146103ce57600080fd5b806331bbcce7146102e6578063379561d0146103065780633f4ba83a146103415780634e1273f41461035657600080fd5b8063085b2a96116101b6578063085b2a96146102615780630e89341c1461028f5780632eb2c2d6146102af5780632ed6d5e8146102d157600080fd5b8062fdd58e146101dc57806301ffc9a71461020f57806306fdde031461023f575b600080fd5b3480156101e857600080fd5b506101fc6101f736600461361d565b610607565b6040519081526020015b60405180910390f35b34801561021b57600080fd5b5061022f61022a3660046137fc565b61069f565b6040519015158152602001610206565b34801561024b57600080fd5b506102546106f1565b6040516102069190613c4d565b34801561026d57600080fd5b5061028161027c3660046138af565b61077f565b604051610206929190613ca4565b34801561029b57600080fd5b506102546102aa366004613836565b610a9b565b3480156102bb57600080fd5b506102cf6102ca3660046134da565b610c09565b005b3480156102dd57600080fd5b506102cf610c55565b3480156102f257600080fd5b506102cf610301366004613836565b610e82565b34801561031257600080fd5b5061022f610321366004613868565b600460209081526000928352604080842090915290825290205460ff1681565b34801561034d57600080fd5b506102cf610fa6565b34801561036257600080fd5b50610376610371366004613649565b610fb8565b6040516102069190613c0c565b6102cf610391366004613868565b6110e1565b3480156103a257600080fd5b50600a5460ff1661022f565b3480156103ba57600080fd5b506102cf6103c9366004613868565b61138a565b3480156103da57600080fd5b506102cf61157f565b3480156103ef57600080fd5b506102cf611591565b34801561040457600080fd5b506008546001600160a01b03165b6040516001600160a01b039091168152602001610206565b34801561043657600080fd5b506102cf610445366004613868565b6115a1565b34801561045657600080fd5b50610254611a45565b34801561046b57600080fd5b506102cf611a52565b34801561048057600080fd5b506102cf61048f3660046135ef565b611b52565b3480156104a057600080fd5b506102cf6104af36600461388d565b611b61565b3480156104c057600080fd5b506102cf6104cf36600461388d565b611c5c565b3480156104e057600080fd5b506102cf6104ef36600461371b565b611d4d565b34801561050057600080fd5b50600254610412906001600160a01b031681565b34801561052057600080fd5b506102cf61052f366004613484565b612172565b34801561054057600080fd5b5061022f61054f3660046134a1565b6001600160a01b03918216600090815260066020908152604080832093909416825291909152205460ff1690565b34801561058957600080fd5b506102cf610598366004613587565b612325565b3480156105a957600080fd5b506102cf6105b8366004613484565b61236a565b3480156105c957600080fd5b506105dd6105d8366004613836565b6123e3565b6040516102069796959493929190613c60565b3480156105fc57600080fd5b50600b546101fc9081565b60006001600160a01b0383166106775760405162461bcd60e51b815260206004820152602a60248201527f455243313135353a2061646472657373207a65726f206973206e6f742061207660448201526930b634b21037bbb732b960b11b60648201526084015b60405180910390fd5b5060009081526005602090815260408083206001600160a01b03949094168352929052205490565b60006001600160e01b03198216636cdb3d1360e11b14806106d057506001600160e01b031982166303a24d0760e21b145b806106eb57506301ffc9a760e01b6001600160e01b03198316145b92915050565b600080546106fe90614070565b80601f016020809104026020016040519081016040528092919081815260200182805461072a90614070565b80156107775780601f1061074c57610100808354040283529160200191610777565b820191906000526020600020905b81548152906001019060200180831161075a57829003601f168201915b505050505081565b6040805180820190915260028152615b5d60f01b60208201526060906000908180866001600160401b038111156107b8576107b8614148565b6040519080825280602002602001820160405280156107f157816020015b6107de61318f565b8152602001906001900390816107d65790505b50905060006107ff600b5490565b6001600160401b0381111561081657610816614148565b60405190808252806020026020018201604052801561084f57816020015b61083c61318f565b8152602001906001900390816108345790505b509050600061085d600b5490565b90505b80156109ab5761086f816124ac565b1515881515146109995760008181526003602052604090819020815160e0810190925280549091908290829082906108a690614070565b80601f01602080910402602001604051908101604052809291908181526020018280546108d290614070565b801561091f5780601f106108f45761010080835404028352916020019161091f565b820191906000526020600020905b81548152906001019060200180831161090257829003601f168201915b5050509183525050600182015460ff1615156020820152600282015460408201526003820154606082015260048201546080820152600582015460a082015260069091015460c090910152835184908790811061097e5761097e614132565b60200260200101819052508480610994906140d7565b955050505b806109a381614059565b915050610860565b508815806109b7575087155b156109c957509193509150610a939050565b6000886109d760018c614012565b6109e19190613ff3565b905060006109ef8a83613fc7565b90506109fa600b5490565b8210610a105750939550919350610a9392505050565b600b54811115610a1f5750600b545b815b81811015610a7e57838181518110610a3b57610a3b614132565b6020026020010151858483610a509190614012565b81518110610a6057610a60614132565b60200260200101819052508080610a76906140d7565b915050610a21565b50610a88846124db565b975093955050505050505b935093915050565b60008181526003602052604090208054606091610b4e91610abb90614070565b80601f0160208091040260200160405190810160405280929190818152602001828054610ae790614070565b8015610b345780601f10610b0957610100808354040283529160200191610b34565b820191906000526020600020905b815481529060010190602001808311610b1757829003601f168201915b505050505060405180602001604052806000815250612601565b15610b6b5760405162461bcd60e51b815260040161066e90613f61565b60008281526003602052604090208054610b8490614070565b80601f0160208091040260200160405190810160405280929190818152602001828054610bb090614070565b8015610bfd5780601f10610bd257610100808354040283529160200191610bfd565b820191906000526020600020905b815481529060010190602001808311610be057829003601f168201915b50505050509050919050565b6001600160a01b038516331480610c255750610c25853361054f565b610c415760405162461bcd60e51b815260040161066e90613cc6565b610c4e858585858561265a565b5050505050565b610c5d612832565b60026009541415610c805760405162461bcd60e51b815260040161066e90613ee1565b60026009819055546040516370a0823160e01b81523060048201526000916001600160a01b0316906370a082319060240160206040518083038186803b158015610cc957600080fd5b505afa158015610cdd573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610d01919061384f565b90503381610d605760405162461bcd60e51b815260206004820152602660248201527f537854436f6d6d756e6974793a205a65726f20455243323020746f6b656e2062604482015265616c616e636560d01b606482015260840161066e565b60025460405163a9059cbb60e01b81526001600160a01b03838116600483015260248201859052600092169063a9059cbb90604401602060405180830381600087803b158015610daf57600080fd5b505af1158015610dc3573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610de791906137df565b905080610e365760405162461bcd60e51b815260206004820152601960248201527f4661696c656420746f2073656e64204552433230546f6b656e00000000000000604482015260640161066e565b604080518481526001600160a01b03841660208201527f9dd889bfb47dad59f5d3a00ed85521686faf86a34727e3b51abf623363883fde91015b60405180910390a15050600160095550565b610e8a612832565b60008181526003602052604090208054610ea89190610abb90614070565b15610ec55760405162461bcd60e51b815260040161066e90613f61565b60008181526003602052604090206001015460ff16610f455760405162461bcd60e51b815260206004820152603660248201527f537854436f6d6d756e6974793a205468697320746f6b656e20697320616c726560448201527561647920617661696c61626c6520666f72206672656560501b606482015260840161066e565b600081815260036020818152604080842060018101805460ff191690556004810185905592830193909355915183815290917fffc028359f6576562ecdbeff481c1e1ba76ff707ba06c311517114118b46a0bb910160405180910390a15050565b610fae612832565b610fb661288c565b565b6060815183511461101d5760405162461bcd60e51b815260206004820152602960248201527f455243313135353a206163636f756e747320616e6420696473206c656e677468604482015268040dad2e6dac2e8c6d60bb1b606482015260840161066e565b600083516001600160401b0381111561103857611038614148565b604051908082528060200260200182016040528015611061578160200160208202803683370190505b50905060005b84518110156110d9576110ac85828151811061108557611085614132565b602002602001015185838151811061109f5761109f614132565b6020026020010151610607565b8282815181106110be576110be614132565b60209081029190910101526110d2816140d7565b9050611067565b509392505050565b6110e96128de565b6002600954141561110c5760405162461bcd60e51b815260040161066e90613ee1565b60026009556000828152600360205260409020805461112f9190610abb90614070565b1561114c5760405162461bcd60e51b815260040161066e90613f61565b60008281526003602052604090206001015460ff16801561117e57506000828152600360208190526040909120015415155b6111dc5760405162461bcd60e51b815260206004820152602960248201527f537854436f6d6d756e6974793a20546f6b656e20457468205072696365206e6f6044820152681d081e595d081cd95d60ba1b606482015260840161066e565b6111e5826124ac565b156112025760405162461bcd60e51b815260040161066e90613e32565b60008281526004602090815260408083206001600160a01b038516845290915290205460ff16156112455760405162461bcd60e51b815260040161066e90613e84565b600082815260036020819052604090912001543410156112b65760405162461bcd60e51b815260206004820152602660248201527f537854436f6d6d756e6974793a20496e73756666696369656e742045746865726044820152651cc81cd95b9d60d21b606482015260840161066e565b60008281526004602090815260408083206001600160a01b03851684528252808320805460ff191660019081179091558584526003909252822060068101805491939091611305908490613fc7565b9250508190555061132b8284600160ff1660405180602001604052806000815250612924565b600083815260036020819052604091829020015490517fbdf629bff5c2b312167e9c4ffadc8ea736adf39021d9eaab09d6cddc1b91535f91610e7091869186919283526001600160a01b03919091166020830152604082015260600190565b6113926128de565b600260095414156113b55760405162461bcd60e51b815260040161066e90613ee1565b6002600955600082815260036020526040902080546113d89190610abb90614070565b156113f55760405162461bcd60e51b815260040161066e90613f61565b60008281526003602052604090206001015460ff16156114635760405162461bcd60e51b8152602060048201526024808201527f537854436f6d6d756e6974793a205468697320746f6b656e206973206e6f74206044820152636672656560e01b606482015260840161066e565b61146c826124ac565b156114895760405162461bcd60e51b815260040161066e90613e32565b60008281526004602090815260408083206001600160a01b038516845290915290205460ff16156114cc5760405162461bcd60e51b815260040161066e90613e84565b60008281526004602090815260408083206001600160a01b03851684528252808320805460ff19166001908117909155858452600390925282206006810180549193909161151b908490613fc7565b925050819055506115418284600160ff1660405180602001604052806000815250612924565b604080518481526001600160a01b03841660208201527f769eff512f395b679667e0062a0e31dad5d22dbc7e6b87f16c3de7e85e6634609101610e70565b611587612832565b610fb66000612a3a565b611599612832565b610fb6612a8c565b6115a96128de565b600260095414156115cc5760405162461bcd60e51b815260040161066e90613ee1565b60026009819055546001600160a01b03166116405760405162461bcd60e51b815260206004820152602e60248201527f537854436f6d6d756e6974793a20455243323020546f6b656e206e6f7420796560448201526d3a1039b2ba10313c9037bbb732b960911b606482015260840161066e565b6000828152600360205260409020805461165e9190610abb90614070565b1561167b5760405162461bcd60e51b815260040161066e90613f61565b60008281526003602052604090206001015460ff1680156116ac575060008281526003602052604090206004015415155b61170c5760405162461bcd60e51b815260206004820152602b60248201527f537854436f6d6d756e6974793a20546f6b656e2045524332302050726963652060448201526a1b9bdd081e595d081cd95d60aa1b606482015260840161066e565b611715826124ac565b156117325760405162461bcd60e51b815260040161066e90613e32565b60008281526004602090815260408083206001600160a01b038516845290915290205460ff16156117755760405162461bcd60e51b815260040161066e90613e84565b6000828152600360205260409081902060049081015460025492516370a0823160e01b81523392810192909252916001600160a01b0316906370a082319060240160206040518083038186803b1580156117ce57600080fd5b505afa1580156117e2573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611806919061384f565b101561186b5760405162461bcd60e51b815260206004820152602e60248201527f537854436f6d6d756e6974793a20496e73756666696369656e7420455243323060448201526d20746f6b656e2062616c616e636560901b606482015260840161066e565b60008281526004602081815260408084206001600160a01b038681168652908352818520805460ff19166001179055600254878652600390935281852084015491516323b872dd60e01b81523394810194909452306024850152604484019190915216906323b872dd90606401602060405180830381600087803b1580156118f257600080fd5b505af1158015611906573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061192a91906137df565b9050806119895760405162461bcd60e51b815260206004820152602760248201527f537854436f6d6d756e6974793a204661696c656420746f2073656e642045524360448201526619182a37b5b2b760c91b606482015260840161066e565b600083815260036020526040812060068101805491926001926119ad908490613fc7565b925050819055506119d38385600160ff1660405180602001604052806000815250612924565b600084815260036020526040908190206004015490517f254a90100a283a873dd53b808704b715f0959446a35fd99ecd4cae6eb5ba9bcd91611a3291879187919283526001600160a01b03919091166020830152604082015260600190565b60405180910390a1505060016009555050565b600180546106fe90614070565b611a5a612832565b60026009541415611a7d5760405162461bcd60e51b815260040161066e90613ee1565b6002600955473381611ad15760405162461bcd60e51b815260206004820181905260248201527f537854436f6d6d756e6974793a205a65726f2065746865722062616c616e6365604482015260640161066e565b6040516001600160a01b0382169083156108fc029084906000818181858888f19350505050158015611b07573d6000803e3d6000fd5b50604080518381526001600160a01b03831660208201527f92aaa935187e7c0907206c355867fcab23c08924924dac7b2265c534fc7b312f910160405180910390a150506001600955565b611b5d338383612ac9565b5050565b611b69612832565b60008281526003602052604090208054611b879190610abb90614070565b15611ba45760405162461bcd60e51b815260040161066e90613f61565b60008281526003602081905260409091200154811415611bd65760405162461bcd60e51b815260040161066e90613f18565b60008111611bf65760405162461bcd60e51b815260040161066e90613d5d565b6000828152600360208181526040928390206001808201805460ff19169091179055918201849055825185815290810184905290917f7d47003660a5faba6c74848f1332c033ee1a38e3a35df32667f9b0c03002dd1591015b60405180910390a1505050565b611c64612832565b60008281526003602052604090208054611c829190610abb90614070565b15611c9f5760405162461bcd60e51b815260040161066e90613f61565b600082815260036020526040902060040154811415611cd05760405162461bcd60e51b815260040161066e90613f18565b60008111611cf05760405162461bcd60e51b815260040161066e90613d5d565b6000828152600360209081526040918290206001808201805460ff19169091179055600481018490558251858152918201849052917f5638420d738c287bd1ab096ffc47c685940800208d34825665d18333386f27ce9101611c4f565b611d55612832565b80518551148015611d67575083518151145b8015611d74575082518451145b8015611d81575081518351145b611de05760405162461bcd60e51b815260206004820152602a60248201527f537854436f6d6d756e6974793a204172726179206c656e677468732073686f756044820152696c642062652073616d6560b01b606482015260840161066e565b60005b815181101561216a57611df461318f565b6000838381518110611e0857611e08614132565b602002602001015111611e6e5760405162461bcd60e51b815260206004820152602860248201527f537854436f6d6d756e6974793a204d6178696d756d20737570706c792063616e60448201526706e6f7420626520360c41b606482015260840161066e565b611ea0878381518110611e8357611e83614132565b602002602001015160405180602001604052806000815250612601565b15611efe5760405162461bcd60e51b815260206004820152602860248201527f537854436f6d6d756e6974793a205552492063616e6e6f7420626520656d70746044820152677920737472696e6760c01b606482015260840161066e565b611f0c600b80546001019055565b6000611f17600b5490565b905080826040018181525050878381518110611f3557611f35614132565b60200260200101518260000181905250838381518110611f5757611f57614132565b60200260200101518260a0018181525050868381518110611f7a57611f7a614132565b6020908102919091018101511515908301528651879084908110611fa057611fa0614132565b6020026020010151156120a9576000868481518110611fc157611fc1614132565b60200260200101511180611fee57506000858481518110611fe457611fe4614132565b6020026020010151115b612062576040805162461bcd60e51b81526020600482015260248101919091527f537854436f6d6d756e6974793a20426f7468207072696365732063616e6e6f7460448201527f20626520302073696e6365204e46542068617350726963652069732074727565606482015260840161066e565b85838151811061207457612074614132565b602002602001015182606001818152505084838151811061209757612097614132565b60200260200101518260800181815250505b60008181526003602090815260409091208351805185936120ce9284929101906131ce565b50602082015160018201805491151560ff199092169190911790556040808301516002830155606083015160038301556080830151600483015560a0830151600583015560c090920151600690910155517e98f4fb78bdc8bccbbac848ff3857a91330ff90a4420c32cd2e58f5c5809f329061214d9083815260200190565b60405180910390a150508080612162906140d7565b915050611de3565b505050505050565b61217a612832565b6001600160a01b0381166121e55760405162461bcd60e51b815260206004820152602c60248201527f537854436f6d6d756e6974793a20416464726573732043616e6e6f742062652060448201526b5a65726f204164647265737360a01b606482015260840161066e565b60025460405160609190911b6bffffffffffffffffffffffff191660208201526034016040516020818303038152906040528051906020012081604051602001612247919060609190911b6bffffffffffffffffffffffff1916815260140190565b6040516020818303038152906040528051906020012014156122d15760405162461bcd60e51b815260206004820152603d60248201527f537854436f6d6d756e6974793a2043757272656e7420746f6b656e206973206160448201527f6c7265616479207768617420796f7520686176652073656c6563746564000000606482015260840161066e565b600280546001600160a01b0319166001600160a01b0383169081179091556040519081527fc39d200e834b6a0921b363f1f3d3b53c7cb5f4d5da6946e328fc5aee73aeb4ff9060200160405180910390a150565b6001600160a01b0385163314806123415750612341853361054f565b61235d5760405162461bcd60e51b815260040161066e90613cc6565b610c4e8585858585612baa565b612372612832565b6001600160a01b0381166123d75760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b606482015260840161066e565b6123e081612a3a565b50565b6003602052600090815260409020805481906123fe90614070565b80601f016020809104026020016040519081016040528092919081815260200182805461242a90614070565b80156124775780601f1061244c57610100808354040283529160200191612477565b820191906000526020600020905b81548152906001019060200180831161245a57829003601f168201915b50505060018401546002850154600386015460048701546005880154600690980154969760ff90941696929550909350919087565b6000818152600360205260408120600581015460069091015410156124d357506000919050565b506001919050565b60608060005b83518110156125d85760408051600081526020810191829052519020845185908390811061251157612511614132565b60200260200101516000015160405160200161252d919061396b565b60405160208183030381529060405280519060200120146125c157600061256c85838151811061255f5761255f614132565b6020026020010151612cd8565b90508115612597578260405160200161258591906139b6565b60405160208183030381529060405292505b82816040516020016125aa929190613987565b6040516020818303038152906040529250506125c6565b6125d8565b806125d0816140d7565b9150506124e1565b50806040516020016125ea9190613b35565b60408051601f198184030181529190529392505050565b600081604051602001612614919061396b565b604051602081830303815290604052805190602001208360405160200161263b919061396b565b6040516020818303038152906040528051906020012014905092915050565b81518351146126bc5760405162461bcd60e51b815260206004820152602860248201527f455243313135353a2069647320616e6420616d6f756e7473206c656e677468206044820152670dad2e6dac2e8c6d60c31b606482015260840161066e565b6001600160a01b0384166126e25760405162461bcd60e51b815260040161066e90613da3565b3360005b84518110156127cc57600085828151811061270357612703614132565b60200260200101519050600085838151811061272157612721614132565b60209081029190910181015160008481526005835260408082206001600160a01b038e1683529093529190912054909150818110156127725760405162461bcd60e51b815260040161066e90613de8565b60008381526005602090815260408083206001600160a01b038e8116855292528083208585039055908b168252812080548492906127b1908490613fc7565b92505081905550505050806127c5906140d7565b90506126e6565b50846001600160a01b0316866001600160a01b0316826001600160a01b03167f4a39dc06d4c0dbc64b70af90fd698a233a518aa5d07e595d983b8c0526c8f7fb878760405161281c929190613c1f565b60405180910390a461216a818787878787612dc1565b6008546001600160a01b03163314610fb65760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015260640161066e565b612894612f2c565b600a805460ff191690557f5db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa335b6040516001600160a01b03909116815260200160405180910390a1565b600a5460ff1615610fb65760405162461bcd60e51b815260206004820152601060248201526f14185d5cd8589b194e881c185d5cd95960821b604482015260640161066e565b6001600160a01b0384166129845760405162461bcd60e51b815260206004820152602160248201527f455243313135353a206d696e7420746f20746865207a65726f206164647265736044820152607360f81b606482015260840161066e565b33600061299085612f75565b9050600061299d85612f75565b905060008681526005602090815260408083206001600160a01b038b168452909152812080548792906129d1908490613fc7565b909155505060408051878152602081018790526001600160a01b03808a1692600092918716917fc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f62910160405180910390a4612a3183600089898989612fc0565b50505050505050565b600880546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b612a946128de565b600a805460ff191660011790557f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a2586128c13390565b816001600160a01b0316836001600160a01b03161415612b3d5760405162461bcd60e51b815260206004820152602960248201527f455243313135353a2073657474696e6720617070726f76616c20737461747573604482015268103337b91039b2b63360b91b606482015260840161066e565b6001600160a01b03838116600081815260066020908152604080832094871680845294825291829020805460ff191686151590811790915591519182527f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a3505050565b6001600160a01b038416612bd05760405162461bcd60e51b815260040161066e90613da3565b336000612bdc85612f75565b90506000612be985612f75565b905060008681526005602090815260408083206001600160a01b038c16845290915290205485811015612c2e5760405162461bcd60e51b815260040161066e90613de8565b60008781526005602090815260408083206001600160a01b038d8116855292528083208985039055908a16825281208054889290612c6d908490613fc7565b909155505060408051888152602081018890526001600160a01b03808b16928c821692918816917fc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f62910160405180910390a4612ccd848a8a8a8a8a612fc0565b505050505050505050565b606060008260200151612d08576040518060400160405280600581526020016466616c736560d81b815250612d26565b604051806040016040528060048152602001637472756560e01b8152505b90506000836000015182612d3d866040015161308a565b612d4a876080015161308a565b612d57886060015161308a565b612d648960a0015161308a565b612d718a60c0015161308a565b604051602001612d8797969594939291906139db565b604051602081830303815290604052905080604051602001612da9919061396b565b60405160208183030381529060405292505050919050565b6001600160a01b0384163b1561216a5760405163bc197c8160e01b81526001600160a01b0385169063bc197c8190612e059089908990889088908890600401613b69565b602060405180830381600087803b158015612e1f57600080fd5b505af1925050508015612e4f575060408051601f3d908101601f19168201909252612e4c91810190613819565b60015b612efc57612e5b61415e565b806308c379a01415612e955750612e7061417a565b80612e7b5750612e97565b8060405162461bcd60e51b815260040161066e9190613c4d565b505b60405162461bcd60e51b815260206004820152603460248201527f455243313135353a207472616e7366657220746f206e6f6e20455243313135356044820152732932b1b2b4bb32b91034b6b83632b6b2b73a32b960611b606482015260840161066e565b6001600160e01b0319811663bc197c8160e01b14612a315760405162461bcd60e51b815260040161066e90613d15565b600a5460ff16610fb65760405162461bcd60e51b815260206004820152601460248201527314185d5cd8589b194e881b9bdd081c185d5cd95960621b604482015260640161066e565b60408051600180825281830190925260609160009190602080830190803683370190505090508281600081518110612faf57612faf614132565b602090810291909101015292915050565b6001600160a01b0384163b1561216a5760405163f23a6e6160e01b81526001600160a01b0385169063f23a6e61906130049089908990889088908890600401613bc7565b602060405180830381600087803b15801561301e57600080fd5b505af192505050801561304e575060408051601f3d908101601f1916820190925261304b91810190613819565b60015b61305a57612e5b61415e565b6001600160e01b0319811663f23a6e6160e01b14612a315760405162461bcd60e51b815260040161066e90613d15565b6060816130ae5750506040805180820190915260018152600360fc1b602082015290565b8160005b81156130d857806130c2816140d7565b91506130d19050600a83613fdf565b91506130b2565b6000816001600160401b038111156130f2576130f2614148565b6040519080825280601f01601f19166020018201604052801561311c576020820181803683370190505b5090505b841561318757613131600183614012565b915061313e600a866140f2565b613149906030613fc7565b60f81b81838151811061315e5761315e614132565b60200101906001600160f81b031916908160001a905350613180600a86613fdf565b9450613120565b949350505050565b6040518060e001604052806060815260200160001515815260200160008152602001600081526020016000815260200160008152602001600081525090565b8280546131da90614070565b90600052602060002090601f0160209004810192826131fc5760008555613242565b82601f1061321557805160ff1916838001178555613242565b82800160010185558215613242579182015b82811115613242578251825591602001919060010190613227565b5061324e929150613252565b5090565b5b8082111561324e5760008155600101613253565b60006001600160401b0383111561328057613280614148565b604051613297601f8501601f1916602001826140ab565b8091508381528484840111156132ac57600080fd5b83836020830137600060208583010152509392505050565b600082601f8301126132d557600080fd5b813560206132e282613fa4565b6040516132ef82826140ab565b8381528281019150858301600585901b8701840188101561330f57600080fd5b60005b8581101561333757813561332581614218565b84529284019290840190600101613312565b5090979650505050505050565b600082601f83011261335557600080fd5b8135602061336282613fa4565b6040805161337083826140ab565b8481528381019250868401600586901b8801850189101561339057600080fd5b60005b868110156133e55781356001600160401b038111156133b157600080fd5b8901603f81018b136133c257600080fd5b6133d28b88830135878401613267565b8652509385019390850190600101613393565b509098975050505050505050565b600082601f83011261340457600080fd5b8135602061341182613fa4565b60405161341e82826140ab565b8381528281019150858301600585901b8701840188101561343e57600080fd5b60005b8581101561333757813584529284019290840190600101613441565b600082601f83011261346e57600080fd5b61347d83833560208501613267565b9392505050565b60006020828403121561349657600080fd5b813561347d81614203565b600080604083850312156134b457600080fd5b82356134bf81614203565b915060208301356134cf81614203565b809150509250929050565b600080600080600060a086880312156134f257600080fd5b85356134fd81614203565b9450602086013561350d81614203565b935060408601356001600160401b038082111561352957600080fd5b61353589838a016133f3565b9450606088013591508082111561354b57600080fd5b61355789838a016133f3565b9350608088013591508082111561356d57600080fd5b5061357a8882890161345d565b9150509295509295909350565b600080600080600060a0868803121561359f57600080fd5b85356135aa81614203565b945060208601356135ba81614203565b9350604086013592506060860135915060808601356001600160401b038111156135e357600080fd5b61357a8882890161345d565b6000806040838503121561360257600080fd5b823561360d81614203565b915060208301356134cf81614218565b6000806040838503121561363057600080fd5b823561363b81614203565b946020939093013593505050565b6000806040838503121561365c57600080fd5b82356001600160401b038082111561367357600080fd5b818501915085601f83011261368757600080fd5b8135602061369482613fa4565b6040516136a182826140ab565b8381528281019150858301600585901b870184018b10156136c157600080fd5b600096505b848710156136ed5780356136d981614203565b8352600196909601959183019183016136c6565b509650508601359250508082111561370457600080fd5b50613711858286016133f3565b9150509250929050565b600080600080600060a0868803121561373357600080fd5b85356001600160401b038082111561374a57600080fd5b61375689838a01613344565b9650602088013591508082111561376c57600080fd5b61377889838a016132c4565b9550604088013591508082111561378e57600080fd5b61379a89838a016133f3565b945060608801359150808211156137b057600080fd5b6137bc89838a016133f3565b935060808801359150808211156137d257600080fd5b5061357a888289016133f3565b6000602082840312156137f157600080fd5b815161347d81614218565b60006020828403121561380e57600080fd5b813561347d81614226565b60006020828403121561382b57600080fd5b815161347d81614226565b60006020828403121561384857600080fd5b5035919050565b60006020828403121561386157600080fd5b5051919050565b6000806040838503121561387b57600080fd5b8235915060208301356134cf81614203565b600080604083850312156138a057600080fd5b50508035926020909101359150565b6000806000606084860312156138c457600080fd5b833592506020840135915060408401356138dd81614218565b809150509250925092565b600081518084526020808501945080840160005b83811015613918578151875295820195908201906001016138fc565b509495945050505050565b6000815180845261393b816020860160208601614029565b601f01601f19169290920160200192915050565b60008151613961818560208601614029565b9290920192915050565b6000825161397d818460208701614029565b9190910192915050565b60008351613999818460208801614029565b8351908301906139ad818360208801614029565b01949350505050565b600082516139c8818460208701614029565b600b60fa1b920191825250600101919050565b6c3d913a37b5b2b72ab934911d1160991b81528751600090613a0481600d850160208d01614029565b6d1116113430b9a83934b1b2911d1160911b600d918401918201528851613a3281601b840160208d01614029565b6711161134b2111d1160c11b601b92909101918201528751613a5b816023840160208c01614029565b6f11161132b9319918283934b1b2911d1160811b602392909101918201528651613a8c816033840160208b01614029565b6d11161132ba34283934b1b2911d1160911b60339290910191820152613b27613b19613b13613aea613ae4613ac4604187018c61394f565b7311161136b0bc2a37b5b2b729bab838363c911d1160611b815260140190565b8961394f565b7f222c2263757272656e74546f6b656e537570706c79223a220000000000000000815260180190565b8661394f565b61227d60f01b815260020190565b9a9950505050505050505050565b605b60f81b815260008251613b51816001850160208701614029565b605d60f81b6001939091019283015250600201919050565b6001600160a01b0386811682528516602082015260a060408201819052600090613b95908301866138e8565b8281036060840152613ba781866138e8565b90508281036080840152613bbb8185613923565b98975050505050505050565b6001600160a01b03868116825285166020820152604081018490526060810183905260a060808201819052600090613c0190830184613923565b979650505050505050565b60208152600061347d60208301846138e8565b604081526000613c3260408301856138e8565b8281036020840152613c4481856138e8565b95945050505050565b60208152600061347d6020830184613923565b60e081526000613c7360e083018a613923565b97151560208301525060408101959095526060850193909352608084019190915260a083015260c090910152919050565b604081526000613cb76040830185613923565b90508260208301529392505050565b6020808252602f908201527f455243313135353a2063616c6c6572206973206e6f7420746f6b656e206f776e60408201526e195c881b9bdc88185c1c1c9bdd9959608a1b606082015260800190565b60208082526028908201527f455243313135353a204552433131353552656365697665722072656a656374656040820152676420746f6b656e7360c01b606082015260800190565b60208082526026908201527f537854436f6d6d756e6974793a204e65772070726963652063616e6e6f74206260408201526565207a65726f60d01b606082015260800190565b60208082526025908201527f455243313135353a207472616e7366657220746f20746865207a65726f206164604082015264647265737360d81b606082015260800190565b6020808252602a908201527f455243313135353a20696e73756666696369656e742062616c616e636520666f60408201526939103a3930b739b332b960b11b606082015260800190565b60208082526032908201527f537854436f6d6d756e6974793a20546f74616c20737570706c79206578636565604082015271646564206d6178696d756d20737570706c7960701b606082015260800190565b6020808252603a908201527f537854436f6d6d756e6974793a20416c7265616479206d696e7465642074686960408201527f73204e4654206f6e636520746f2074686973206163636f756e74000000000000606082015260800190565b6020808252601f908201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00604082015260600190565b60208082526029908201527f537854436f6d6d756e6974793a204e65772070726963652073616d65206173206040820152686f6c6420707269636560b81b606082015260800190565b60208082526023908201527f537854436f6d6d756e6974793a20555249206e6f6e6578697374656e7420746f60408201526235b2b760e91b606082015260800190565b60006001600160401b03821115613fbd57613fbd614148565b5060051b60200190565b60008219821115613fda57613fda614106565b500190565b600082613fee57613fee61411c565b500490565b600081600019048311821515161561400d5761400d614106565b500290565b60008282101561402457614024614106565b500390565b60005b8381101561404457818101518382015260200161402c565b83811115614053576000848401525b50505050565b60008161406857614068614106565b506000190190565b600181811c9082168061408457607f821691505b602082108114156140a557634e487b7160e01b600052602260045260246000fd5b50919050565b601f8201601f191681016001600160401b03811182821017156140d0576140d0614148565b6040525050565b60006000198214156140eb576140eb614106565b5060010190565b6000826141015761410161411c565b500690565b634e487b7160e01b600052601160045260246000fd5b634e487b7160e01b600052601260045260246000fd5b634e487b7160e01b600052603260045260246000fd5b634e487b7160e01b600052604160045260246000fd5b600060033d11156141775760046000803e5060005160e01c5b90565b600060443d10156141885790565b6040516003193d81016004833e81513d6001600160401b0381602484011181841117156141b757505050505090565b82850191508151818111156141cf5750505050505090565b843d87010160208285010111156141e95750505050505090565b6141f8602082860101876140ab565b509095945050505050565b6001600160a01b03811681146123e057600080fd5b80151581146123e057600080fd5b6001600160e01b0319811681146123e057600080fdfea2646970667358221220fbb9d552399dc00d7176f5da5c2664f0e22c9aa40fd95243beffb89292d3086f64736f6c6343000807003300000000000000000000000000000000000000000000000000000000000000400000000000000000000000000000000000000000000000000000000000000080000000000000000000000000000000000000000000000000000000000000000f537854436f6d6d756e6974794e4654000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000045378544300000000000000000000000000000000000000000000000000000000
Deployed Bytecode
0x6080604052600436106101d75760003560e01c80638456cb5911610102578063be8cb11811610095578063f242432a11610064578063f242432a1461057d578063f2fde38b1461059d578063fc314e31146105bd578063fdebc46b146105f057600080fd5b8063be8cb118146104d4578063d93e1081146104f4578063de56248714610514578063e985e9c51461053457600080fd5b8063a0ef91df116100d1578063a0ef91df1461045f578063a22cb46514610474578063abae430b14610494578063ba68cd24146104b457600080fd5b80638456cb59146103e35780638da5cb5b146103f85780638f2ab4b61461042a57806395d89b411461044a57600080fd5b806331bbcce71161017a57806350e281151161014957806350e28115146103835780635c975abb14610396578063669f5a51146103ae578063715018a6146103ce57600080fd5b806331bbcce7146102e6578063379561d0146103065780633f4ba83a146103415780634e1273f41461035657600080fd5b8063085b2a96116101b6578063085b2a96146102615780630e89341c1461028f5780632eb2c2d6146102af5780632ed6d5e8146102d157600080fd5b8062fdd58e146101dc57806301ffc9a71461020f57806306fdde031461023f575b600080fd5b3480156101e857600080fd5b506101fc6101f736600461361d565b610607565b6040519081526020015b60405180910390f35b34801561021b57600080fd5b5061022f61022a3660046137fc565b61069f565b6040519015158152602001610206565b34801561024b57600080fd5b506102546106f1565b6040516102069190613c4d565b34801561026d57600080fd5b5061028161027c3660046138af565b61077f565b604051610206929190613ca4565b34801561029b57600080fd5b506102546102aa366004613836565b610a9b565b3480156102bb57600080fd5b506102cf6102ca3660046134da565b610c09565b005b3480156102dd57600080fd5b506102cf610c55565b3480156102f257600080fd5b506102cf610301366004613836565b610e82565b34801561031257600080fd5b5061022f610321366004613868565b600460209081526000928352604080842090915290825290205460ff1681565b34801561034d57600080fd5b506102cf610fa6565b34801561036257600080fd5b50610376610371366004613649565b610fb8565b6040516102069190613c0c565b6102cf610391366004613868565b6110e1565b3480156103a257600080fd5b50600a5460ff1661022f565b3480156103ba57600080fd5b506102cf6103c9366004613868565b61138a565b3480156103da57600080fd5b506102cf61157f565b3480156103ef57600080fd5b506102cf611591565b34801561040457600080fd5b506008546001600160a01b03165b6040516001600160a01b039091168152602001610206565b34801561043657600080fd5b506102cf610445366004613868565b6115a1565b34801561045657600080fd5b50610254611a45565b34801561046b57600080fd5b506102cf611a52565b34801561048057600080fd5b506102cf61048f3660046135ef565b611b52565b3480156104a057600080fd5b506102cf6104af36600461388d565b611b61565b3480156104c057600080fd5b506102cf6104cf36600461388d565b611c5c565b3480156104e057600080fd5b506102cf6104ef36600461371b565b611d4d565b34801561050057600080fd5b50600254610412906001600160a01b031681565b34801561052057600080fd5b506102cf61052f366004613484565b612172565b34801561054057600080fd5b5061022f61054f3660046134a1565b6001600160a01b03918216600090815260066020908152604080832093909416825291909152205460ff1690565b34801561058957600080fd5b506102cf610598366004613587565b612325565b3480156105a957600080fd5b506102cf6105b8366004613484565b61236a565b3480156105c957600080fd5b506105dd6105d8366004613836565b6123e3565b6040516102069796959493929190613c60565b3480156105fc57600080fd5b50600b546101fc9081565b60006001600160a01b0383166106775760405162461bcd60e51b815260206004820152602a60248201527f455243313135353a2061646472657373207a65726f206973206e6f742061207660448201526930b634b21037bbb732b960b11b60648201526084015b60405180910390fd5b5060009081526005602090815260408083206001600160a01b03949094168352929052205490565b60006001600160e01b03198216636cdb3d1360e11b14806106d057506001600160e01b031982166303a24d0760e21b145b806106eb57506301ffc9a760e01b6001600160e01b03198316145b92915050565b600080546106fe90614070565b80601f016020809104026020016040519081016040528092919081815260200182805461072a90614070565b80156107775780601f1061074c57610100808354040283529160200191610777565b820191906000526020600020905b81548152906001019060200180831161075a57829003601f168201915b505050505081565b6040805180820190915260028152615b5d60f01b60208201526060906000908180866001600160401b038111156107b8576107b8614148565b6040519080825280602002602001820160405280156107f157816020015b6107de61318f565b8152602001906001900390816107d65790505b50905060006107ff600b5490565b6001600160401b0381111561081657610816614148565b60405190808252806020026020018201604052801561084f57816020015b61083c61318f565b8152602001906001900390816108345790505b509050600061085d600b5490565b90505b80156109ab5761086f816124ac565b1515881515146109995760008181526003602052604090819020815160e0810190925280549091908290829082906108a690614070565b80601f01602080910402602001604051908101604052809291908181526020018280546108d290614070565b801561091f5780601f106108f45761010080835404028352916020019161091f565b820191906000526020600020905b81548152906001019060200180831161090257829003601f168201915b5050509183525050600182015460ff1615156020820152600282015460408201526003820154606082015260048201546080820152600582015460a082015260069091015460c090910152835184908790811061097e5761097e614132565b60200260200101819052508480610994906140d7565b955050505b806109a381614059565b915050610860565b508815806109b7575087155b156109c957509193509150610a939050565b6000886109d760018c614012565b6109e19190613ff3565b905060006109ef8a83613fc7565b90506109fa600b5490565b8210610a105750939550919350610a9392505050565b600b54811115610a1f5750600b545b815b81811015610a7e57838181518110610a3b57610a3b614132565b6020026020010151858483610a509190614012565b81518110610a6057610a60614132565b60200260200101819052508080610a76906140d7565b915050610a21565b50610a88846124db565b975093955050505050505b935093915050565b60008181526003602052604090208054606091610b4e91610abb90614070565b80601f0160208091040260200160405190810160405280929190818152602001828054610ae790614070565b8015610b345780601f10610b0957610100808354040283529160200191610b34565b820191906000526020600020905b815481529060010190602001808311610b1757829003601f168201915b505050505060405180602001604052806000815250612601565b15610b6b5760405162461bcd60e51b815260040161066e90613f61565b60008281526003602052604090208054610b8490614070565b80601f0160208091040260200160405190810160405280929190818152602001828054610bb090614070565b8015610bfd5780601f10610bd257610100808354040283529160200191610bfd565b820191906000526020600020905b815481529060010190602001808311610be057829003601f168201915b50505050509050919050565b6001600160a01b038516331480610c255750610c25853361054f565b610c415760405162461bcd60e51b815260040161066e90613cc6565b610c4e858585858561265a565b5050505050565b610c5d612832565b60026009541415610c805760405162461bcd60e51b815260040161066e90613ee1565b60026009819055546040516370a0823160e01b81523060048201526000916001600160a01b0316906370a082319060240160206040518083038186803b158015610cc957600080fd5b505afa158015610cdd573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610d01919061384f565b90503381610d605760405162461bcd60e51b815260206004820152602660248201527f537854436f6d6d756e6974793a205a65726f20455243323020746f6b656e2062604482015265616c616e636560d01b606482015260840161066e565b60025460405163a9059cbb60e01b81526001600160a01b03838116600483015260248201859052600092169063a9059cbb90604401602060405180830381600087803b158015610daf57600080fd5b505af1158015610dc3573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610de791906137df565b905080610e365760405162461bcd60e51b815260206004820152601960248201527f4661696c656420746f2073656e64204552433230546f6b656e00000000000000604482015260640161066e565b604080518481526001600160a01b03841660208201527f9dd889bfb47dad59f5d3a00ed85521686faf86a34727e3b51abf623363883fde91015b60405180910390a15050600160095550565b610e8a612832565b60008181526003602052604090208054610ea89190610abb90614070565b15610ec55760405162461bcd60e51b815260040161066e90613f61565b60008181526003602052604090206001015460ff16610f455760405162461bcd60e51b815260206004820152603660248201527f537854436f6d6d756e6974793a205468697320746f6b656e20697320616c726560448201527561647920617661696c61626c6520666f72206672656560501b606482015260840161066e565b600081815260036020818152604080842060018101805460ff191690556004810185905592830193909355915183815290917fffc028359f6576562ecdbeff481c1e1ba76ff707ba06c311517114118b46a0bb910160405180910390a15050565b610fae612832565b610fb661288c565b565b6060815183511461101d5760405162461bcd60e51b815260206004820152602960248201527f455243313135353a206163636f756e747320616e6420696473206c656e677468604482015268040dad2e6dac2e8c6d60bb1b606482015260840161066e565b600083516001600160401b0381111561103857611038614148565b604051908082528060200260200182016040528015611061578160200160208202803683370190505b50905060005b84518110156110d9576110ac85828151811061108557611085614132565b602002602001015185838151811061109f5761109f614132565b6020026020010151610607565b8282815181106110be576110be614132565b60209081029190910101526110d2816140d7565b9050611067565b509392505050565b6110e96128de565b6002600954141561110c5760405162461bcd60e51b815260040161066e90613ee1565b60026009556000828152600360205260409020805461112f9190610abb90614070565b1561114c5760405162461bcd60e51b815260040161066e90613f61565b60008281526003602052604090206001015460ff16801561117e57506000828152600360208190526040909120015415155b6111dc5760405162461bcd60e51b815260206004820152602960248201527f537854436f6d6d756e6974793a20546f6b656e20457468205072696365206e6f6044820152681d081e595d081cd95d60ba1b606482015260840161066e565b6111e5826124ac565b156112025760405162461bcd60e51b815260040161066e90613e32565b60008281526004602090815260408083206001600160a01b038516845290915290205460ff16156112455760405162461bcd60e51b815260040161066e90613e84565b600082815260036020819052604090912001543410156112b65760405162461bcd60e51b815260206004820152602660248201527f537854436f6d6d756e6974793a20496e73756666696369656e742045746865726044820152651cc81cd95b9d60d21b606482015260840161066e565b60008281526004602090815260408083206001600160a01b03851684528252808320805460ff191660019081179091558584526003909252822060068101805491939091611305908490613fc7565b9250508190555061132b8284600160ff1660405180602001604052806000815250612924565b600083815260036020819052604091829020015490517fbdf629bff5c2b312167e9c4ffadc8ea736adf39021d9eaab09d6cddc1b91535f91610e7091869186919283526001600160a01b03919091166020830152604082015260600190565b6113926128de565b600260095414156113b55760405162461bcd60e51b815260040161066e90613ee1565b6002600955600082815260036020526040902080546113d89190610abb90614070565b156113f55760405162461bcd60e51b815260040161066e90613f61565b60008281526003602052604090206001015460ff16156114635760405162461bcd60e51b8152602060048201526024808201527f537854436f6d6d756e6974793a205468697320746f6b656e206973206e6f74206044820152636672656560e01b606482015260840161066e565b61146c826124ac565b156114895760405162461bcd60e51b815260040161066e90613e32565b60008281526004602090815260408083206001600160a01b038516845290915290205460ff16156114cc5760405162461bcd60e51b815260040161066e90613e84565b60008281526004602090815260408083206001600160a01b03851684528252808320805460ff19166001908117909155858452600390925282206006810180549193909161151b908490613fc7565b925050819055506115418284600160ff1660405180602001604052806000815250612924565b604080518481526001600160a01b03841660208201527f769eff512f395b679667e0062a0e31dad5d22dbc7e6b87f16c3de7e85e6634609101610e70565b611587612832565b610fb66000612a3a565b611599612832565b610fb6612a8c565b6115a96128de565b600260095414156115cc5760405162461bcd60e51b815260040161066e90613ee1565b60026009819055546001600160a01b03166116405760405162461bcd60e51b815260206004820152602e60248201527f537854436f6d6d756e6974793a20455243323020546f6b656e206e6f7420796560448201526d3a1039b2ba10313c9037bbb732b960911b606482015260840161066e565b6000828152600360205260409020805461165e9190610abb90614070565b1561167b5760405162461bcd60e51b815260040161066e90613f61565b60008281526003602052604090206001015460ff1680156116ac575060008281526003602052604090206004015415155b61170c5760405162461bcd60e51b815260206004820152602b60248201527f537854436f6d6d756e6974793a20546f6b656e2045524332302050726963652060448201526a1b9bdd081e595d081cd95d60aa1b606482015260840161066e565b611715826124ac565b156117325760405162461bcd60e51b815260040161066e90613e32565b60008281526004602090815260408083206001600160a01b038516845290915290205460ff16156117755760405162461bcd60e51b815260040161066e90613e84565b6000828152600360205260409081902060049081015460025492516370a0823160e01b81523392810192909252916001600160a01b0316906370a082319060240160206040518083038186803b1580156117ce57600080fd5b505afa1580156117e2573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611806919061384f565b101561186b5760405162461bcd60e51b815260206004820152602e60248201527f537854436f6d6d756e6974793a20496e73756666696369656e7420455243323060448201526d20746f6b656e2062616c616e636560901b606482015260840161066e565b60008281526004602081815260408084206001600160a01b038681168652908352818520805460ff19166001179055600254878652600390935281852084015491516323b872dd60e01b81523394810194909452306024850152604484019190915216906323b872dd90606401602060405180830381600087803b1580156118f257600080fd5b505af1158015611906573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061192a91906137df565b9050806119895760405162461bcd60e51b815260206004820152602760248201527f537854436f6d6d756e6974793a204661696c656420746f2073656e642045524360448201526619182a37b5b2b760c91b606482015260840161066e565b600083815260036020526040812060068101805491926001926119ad908490613fc7565b925050819055506119d38385600160ff1660405180602001604052806000815250612924565b600084815260036020526040908190206004015490517f254a90100a283a873dd53b808704b715f0959446a35fd99ecd4cae6eb5ba9bcd91611a3291879187919283526001600160a01b03919091166020830152604082015260600190565b60405180910390a1505060016009555050565b600180546106fe90614070565b611a5a612832565b60026009541415611a7d5760405162461bcd60e51b815260040161066e90613ee1565b6002600955473381611ad15760405162461bcd60e51b815260206004820181905260248201527f537854436f6d6d756e6974793a205a65726f2065746865722062616c616e6365604482015260640161066e565b6040516001600160a01b0382169083156108fc029084906000818181858888f19350505050158015611b07573d6000803e3d6000fd5b50604080518381526001600160a01b03831660208201527f92aaa935187e7c0907206c355867fcab23c08924924dac7b2265c534fc7b312f910160405180910390a150506001600955565b611b5d338383612ac9565b5050565b611b69612832565b60008281526003602052604090208054611b879190610abb90614070565b15611ba45760405162461bcd60e51b815260040161066e90613f61565b60008281526003602081905260409091200154811415611bd65760405162461bcd60e51b815260040161066e90613f18565b60008111611bf65760405162461bcd60e51b815260040161066e90613d5d565b6000828152600360208181526040928390206001808201805460ff19169091179055918201849055825185815290810184905290917f7d47003660a5faba6c74848f1332c033ee1a38e3a35df32667f9b0c03002dd1591015b60405180910390a1505050565b611c64612832565b60008281526003602052604090208054611c829190610abb90614070565b15611c9f5760405162461bcd60e51b815260040161066e90613f61565b600082815260036020526040902060040154811415611cd05760405162461bcd60e51b815260040161066e90613f18565b60008111611cf05760405162461bcd60e51b815260040161066e90613d5d565b6000828152600360209081526040918290206001808201805460ff19169091179055600481018490558251858152918201849052917f5638420d738c287bd1ab096ffc47c685940800208d34825665d18333386f27ce9101611c4f565b611d55612832565b80518551148015611d67575083518151145b8015611d74575082518451145b8015611d81575081518351145b611de05760405162461bcd60e51b815260206004820152602a60248201527f537854436f6d6d756e6974793a204172726179206c656e677468732073686f756044820152696c642062652073616d6560b01b606482015260840161066e565b60005b815181101561216a57611df461318f565b6000838381518110611e0857611e08614132565b602002602001015111611e6e5760405162461bcd60e51b815260206004820152602860248201527f537854436f6d6d756e6974793a204d6178696d756d20737570706c792063616e60448201526706e6f7420626520360c41b606482015260840161066e565b611ea0878381518110611e8357611e83614132565b602002602001015160405180602001604052806000815250612601565b15611efe5760405162461bcd60e51b815260206004820152602860248201527f537854436f6d6d756e6974793a205552492063616e6e6f7420626520656d70746044820152677920737472696e6760c01b606482015260840161066e565b611f0c600b80546001019055565b6000611f17600b5490565b905080826040018181525050878381518110611f3557611f35614132565b60200260200101518260000181905250838381518110611f5757611f57614132565b60200260200101518260a0018181525050868381518110611f7a57611f7a614132565b6020908102919091018101511515908301528651879084908110611fa057611fa0614132565b6020026020010151156120a9576000868481518110611fc157611fc1614132565b60200260200101511180611fee57506000858481518110611fe457611fe4614132565b6020026020010151115b612062576040805162461bcd60e51b81526020600482015260248101919091527f537854436f6d6d756e6974793a20426f7468207072696365732063616e6e6f7460448201527f20626520302073696e6365204e46542068617350726963652069732074727565606482015260840161066e565b85838151811061207457612074614132565b602002602001015182606001818152505084838151811061209757612097614132565b60200260200101518260800181815250505b60008181526003602090815260409091208351805185936120ce9284929101906131ce565b50602082015160018201805491151560ff199092169190911790556040808301516002830155606083015160038301556080830151600483015560a0830151600583015560c090920151600690910155517e98f4fb78bdc8bccbbac848ff3857a91330ff90a4420c32cd2e58f5c5809f329061214d9083815260200190565b60405180910390a150508080612162906140d7565b915050611de3565b505050505050565b61217a612832565b6001600160a01b0381166121e55760405162461bcd60e51b815260206004820152602c60248201527f537854436f6d6d756e6974793a20416464726573732043616e6e6f742062652060448201526b5a65726f204164647265737360a01b606482015260840161066e565b60025460405160609190911b6bffffffffffffffffffffffff191660208201526034016040516020818303038152906040528051906020012081604051602001612247919060609190911b6bffffffffffffffffffffffff1916815260140190565b6040516020818303038152906040528051906020012014156122d15760405162461bcd60e51b815260206004820152603d60248201527f537854436f6d6d756e6974793a2043757272656e7420746f6b656e206973206160448201527f6c7265616479207768617420796f7520686176652073656c6563746564000000606482015260840161066e565b600280546001600160a01b0319166001600160a01b0383169081179091556040519081527fc39d200e834b6a0921b363f1f3d3b53c7cb5f4d5da6946e328fc5aee73aeb4ff9060200160405180910390a150565b6001600160a01b0385163314806123415750612341853361054f565b61235d5760405162461bcd60e51b815260040161066e90613cc6565b610c4e8585858585612baa565b612372612832565b6001600160a01b0381166123d75760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b606482015260840161066e565b6123e081612a3a565b50565b6003602052600090815260409020805481906123fe90614070565b80601f016020809104026020016040519081016040528092919081815260200182805461242a90614070565b80156124775780601f1061244c57610100808354040283529160200191612477565b820191906000526020600020905b81548152906001019060200180831161245a57829003601f168201915b50505060018401546002850154600386015460048701546005880154600690980154969760ff90941696929550909350919087565b6000818152600360205260408120600581015460069091015410156124d357506000919050565b506001919050565b60608060005b83518110156125d85760408051600081526020810191829052519020845185908390811061251157612511614132565b60200260200101516000015160405160200161252d919061396b565b60405160208183030381529060405280519060200120146125c157600061256c85838151811061255f5761255f614132565b6020026020010151612cd8565b90508115612597578260405160200161258591906139b6565b60405160208183030381529060405292505b82816040516020016125aa929190613987565b6040516020818303038152906040529250506125c6565b6125d8565b806125d0816140d7565b9150506124e1565b50806040516020016125ea9190613b35565b60408051601f198184030181529190529392505050565b600081604051602001612614919061396b565b604051602081830303815290604052805190602001208360405160200161263b919061396b565b6040516020818303038152906040528051906020012014905092915050565b81518351146126bc5760405162461bcd60e51b815260206004820152602860248201527f455243313135353a2069647320616e6420616d6f756e7473206c656e677468206044820152670dad2e6dac2e8c6d60c31b606482015260840161066e565b6001600160a01b0384166126e25760405162461bcd60e51b815260040161066e90613da3565b3360005b84518110156127cc57600085828151811061270357612703614132565b60200260200101519050600085838151811061272157612721614132565b60209081029190910181015160008481526005835260408082206001600160a01b038e1683529093529190912054909150818110156127725760405162461bcd60e51b815260040161066e90613de8565b60008381526005602090815260408083206001600160a01b038e8116855292528083208585039055908b168252812080548492906127b1908490613fc7565b92505081905550505050806127c5906140d7565b90506126e6565b50846001600160a01b0316866001600160a01b0316826001600160a01b03167f4a39dc06d4c0dbc64b70af90fd698a233a518aa5d07e595d983b8c0526c8f7fb878760405161281c929190613c1f565b60405180910390a461216a818787878787612dc1565b6008546001600160a01b03163314610fb65760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015260640161066e565b612894612f2c565b600a805460ff191690557f5db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa335b6040516001600160a01b03909116815260200160405180910390a1565b600a5460ff1615610fb65760405162461bcd60e51b815260206004820152601060248201526f14185d5cd8589b194e881c185d5cd95960821b604482015260640161066e565b6001600160a01b0384166129845760405162461bcd60e51b815260206004820152602160248201527f455243313135353a206d696e7420746f20746865207a65726f206164647265736044820152607360f81b606482015260840161066e565b33600061299085612f75565b9050600061299d85612f75565b905060008681526005602090815260408083206001600160a01b038b168452909152812080548792906129d1908490613fc7565b909155505060408051878152602081018790526001600160a01b03808a1692600092918716917fc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f62910160405180910390a4612a3183600089898989612fc0565b50505050505050565b600880546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b612a946128de565b600a805460ff191660011790557f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a2586128c13390565b816001600160a01b0316836001600160a01b03161415612b3d5760405162461bcd60e51b815260206004820152602960248201527f455243313135353a2073657474696e6720617070726f76616c20737461747573604482015268103337b91039b2b63360b91b606482015260840161066e565b6001600160a01b03838116600081815260066020908152604080832094871680845294825291829020805460ff191686151590811790915591519182527f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a3505050565b6001600160a01b038416612bd05760405162461bcd60e51b815260040161066e90613da3565b336000612bdc85612f75565b90506000612be985612f75565b905060008681526005602090815260408083206001600160a01b038c16845290915290205485811015612c2e5760405162461bcd60e51b815260040161066e90613de8565b60008781526005602090815260408083206001600160a01b038d8116855292528083208985039055908a16825281208054889290612c6d908490613fc7565b909155505060408051888152602081018890526001600160a01b03808b16928c821692918816917fc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f62910160405180910390a4612ccd848a8a8a8a8a612fc0565b505050505050505050565b606060008260200151612d08576040518060400160405280600581526020016466616c736560d81b815250612d26565b604051806040016040528060048152602001637472756560e01b8152505b90506000836000015182612d3d866040015161308a565b612d4a876080015161308a565b612d57886060015161308a565b612d648960a0015161308a565b612d718a60c0015161308a565b604051602001612d8797969594939291906139db565b604051602081830303815290604052905080604051602001612da9919061396b565b60405160208183030381529060405292505050919050565b6001600160a01b0384163b1561216a5760405163bc197c8160e01b81526001600160a01b0385169063bc197c8190612e059089908990889088908890600401613b69565b602060405180830381600087803b158015612e1f57600080fd5b505af1925050508015612e4f575060408051601f3d908101601f19168201909252612e4c91810190613819565b60015b612efc57612e5b61415e565b806308c379a01415612e955750612e7061417a565b80612e7b5750612e97565b8060405162461bcd60e51b815260040161066e9190613c4d565b505b60405162461bcd60e51b815260206004820152603460248201527f455243313135353a207472616e7366657220746f206e6f6e20455243313135356044820152732932b1b2b4bb32b91034b6b83632b6b2b73a32b960611b606482015260840161066e565b6001600160e01b0319811663bc197c8160e01b14612a315760405162461bcd60e51b815260040161066e90613d15565b600a5460ff16610fb65760405162461bcd60e51b815260206004820152601460248201527314185d5cd8589b194e881b9bdd081c185d5cd95960621b604482015260640161066e565b60408051600180825281830190925260609160009190602080830190803683370190505090508281600081518110612faf57612faf614132565b602090810291909101015292915050565b6001600160a01b0384163b1561216a5760405163f23a6e6160e01b81526001600160a01b0385169063f23a6e61906130049089908990889088908890600401613bc7565b602060405180830381600087803b15801561301e57600080fd5b505af192505050801561304e575060408051601f3d908101601f1916820190925261304b91810190613819565b60015b61305a57612e5b61415e565b6001600160e01b0319811663f23a6e6160e01b14612a315760405162461bcd60e51b815260040161066e90613d15565b6060816130ae5750506040805180820190915260018152600360fc1b602082015290565b8160005b81156130d857806130c2816140d7565b91506130d19050600a83613fdf565b91506130b2565b6000816001600160401b038111156130f2576130f2614148565b6040519080825280601f01601f19166020018201604052801561311c576020820181803683370190505b5090505b841561318757613131600183614012565b915061313e600a866140f2565b613149906030613fc7565b60f81b81838151811061315e5761315e614132565b60200101906001600160f81b031916908160001a905350613180600a86613fdf565b9450613120565b949350505050565b6040518060e001604052806060815260200160001515815260200160008152602001600081526020016000815260200160008152602001600081525090565b8280546131da90614070565b90600052602060002090601f0160209004810192826131fc5760008555613242565b82601f1061321557805160ff1916838001178555613242565b82800160010185558215613242579182015b82811115613242578251825591602001919060010190613227565b5061324e929150613252565b5090565b5b8082111561324e5760008155600101613253565b60006001600160401b0383111561328057613280614148565b604051613297601f8501601f1916602001826140ab565b8091508381528484840111156132ac57600080fd5b83836020830137600060208583010152509392505050565b600082601f8301126132d557600080fd5b813560206132e282613fa4565b6040516132ef82826140ab565b8381528281019150858301600585901b8701840188101561330f57600080fd5b60005b8581101561333757813561332581614218565b84529284019290840190600101613312565b5090979650505050505050565b600082601f83011261335557600080fd5b8135602061336282613fa4565b6040805161337083826140ab565b8481528381019250868401600586901b8801850189101561339057600080fd5b60005b868110156133e55781356001600160401b038111156133b157600080fd5b8901603f81018b136133c257600080fd5b6133d28b88830135878401613267565b8652509385019390850190600101613393565b509098975050505050505050565b600082601f83011261340457600080fd5b8135602061341182613fa4565b60405161341e82826140ab565b8381528281019150858301600585901b8701840188101561343e57600080fd5b60005b8581101561333757813584529284019290840190600101613441565b600082601f83011261346e57600080fd5b61347d83833560208501613267565b9392505050565b60006020828403121561349657600080fd5b813561347d81614203565b600080604083850312156134b457600080fd5b82356134bf81614203565b915060208301356134cf81614203565b809150509250929050565b600080600080600060a086880312156134f257600080fd5b85356134fd81614203565b9450602086013561350d81614203565b935060408601356001600160401b038082111561352957600080fd5b61353589838a016133f3565b9450606088013591508082111561354b57600080fd5b61355789838a016133f3565b9350608088013591508082111561356d57600080fd5b5061357a8882890161345d565b9150509295509295909350565b600080600080600060a0868803121561359f57600080fd5b85356135aa81614203565b945060208601356135ba81614203565b9350604086013592506060860135915060808601356001600160401b038111156135e357600080fd5b61357a8882890161345d565b6000806040838503121561360257600080fd5b823561360d81614203565b915060208301356134cf81614218565b6000806040838503121561363057600080fd5b823561363b81614203565b946020939093013593505050565b6000806040838503121561365c57600080fd5b82356001600160401b038082111561367357600080fd5b818501915085601f83011261368757600080fd5b8135602061369482613fa4565b6040516136a182826140ab565b8381528281019150858301600585901b870184018b10156136c157600080fd5b600096505b848710156136ed5780356136d981614203565b8352600196909601959183019183016136c6565b509650508601359250508082111561370457600080fd5b50613711858286016133f3565b9150509250929050565b600080600080600060a0868803121561373357600080fd5b85356001600160401b038082111561374a57600080fd5b61375689838a01613344565b9650602088013591508082111561376c57600080fd5b61377889838a016132c4565b9550604088013591508082111561378e57600080fd5b61379a89838a016133f3565b945060608801359150808211156137b057600080fd5b6137bc89838a016133f3565b935060808801359150808211156137d257600080fd5b5061357a888289016133f3565b6000602082840312156137f157600080fd5b815161347d81614218565b60006020828403121561380e57600080fd5b813561347d81614226565b60006020828403121561382b57600080fd5b815161347d81614226565b60006020828403121561384857600080fd5b5035919050565b60006020828403121561386157600080fd5b5051919050565b6000806040838503121561387b57600080fd5b8235915060208301356134cf81614203565b600080604083850312156138a057600080fd5b50508035926020909101359150565b6000806000606084860312156138c457600080fd5b833592506020840135915060408401356138dd81614218565b809150509250925092565b600081518084526020808501945080840160005b83811015613918578151875295820195908201906001016138fc565b509495945050505050565b6000815180845261393b816020860160208601614029565b601f01601f19169290920160200192915050565b60008151613961818560208601614029565b9290920192915050565b6000825161397d818460208701614029565b9190910192915050565b60008351613999818460208801614029565b8351908301906139ad818360208801614029565b01949350505050565b600082516139c8818460208701614029565b600b60fa1b920191825250600101919050565b6c3d913a37b5b2b72ab934911d1160991b81528751600090613a0481600d850160208d01614029565b6d1116113430b9a83934b1b2911d1160911b600d918401918201528851613a3281601b840160208d01614029565b6711161134b2111d1160c11b601b92909101918201528751613a5b816023840160208c01614029565b6f11161132b9319918283934b1b2911d1160811b602392909101918201528651613a8c816033840160208b01614029565b6d11161132ba34283934b1b2911d1160911b60339290910191820152613b27613b19613b13613aea613ae4613ac4604187018c61394f565b7311161136b0bc2a37b5b2b729bab838363c911d1160611b815260140190565b8961394f565b7f222c2263757272656e74546f6b656e537570706c79223a220000000000000000815260180190565b8661394f565b61227d60f01b815260020190565b9a9950505050505050505050565b605b60f81b815260008251613b51816001850160208701614029565b605d60f81b6001939091019283015250600201919050565b6001600160a01b0386811682528516602082015260a060408201819052600090613b95908301866138e8565b8281036060840152613ba781866138e8565b90508281036080840152613bbb8185613923565b98975050505050505050565b6001600160a01b03868116825285166020820152604081018490526060810183905260a060808201819052600090613c0190830184613923565b979650505050505050565b60208152600061347d60208301846138e8565b604081526000613c3260408301856138e8565b8281036020840152613c4481856138e8565b95945050505050565b60208152600061347d6020830184613923565b60e081526000613c7360e083018a613923565b97151560208301525060408101959095526060850193909352608084019190915260a083015260c090910152919050565b604081526000613cb76040830185613923565b90508260208301529392505050565b6020808252602f908201527f455243313135353a2063616c6c6572206973206e6f7420746f6b656e206f776e60408201526e195c881b9bdc88185c1c1c9bdd9959608a1b606082015260800190565b60208082526028908201527f455243313135353a204552433131353552656365697665722072656a656374656040820152676420746f6b656e7360c01b606082015260800190565b60208082526026908201527f537854436f6d6d756e6974793a204e65772070726963652063616e6e6f74206260408201526565207a65726f60d01b606082015260800190565b60208082526025908201527f455243313135353a207472616e7366657220746f20746865207a65726f206164604082015264647265737360d81b606082015260800190565b6020808252602a908201527f455243313135353a20696e73756666696369656e742062616c616e636520666f60408201526939103a3930b739b332b960b11b606082015260800190565b60208082526032908201527f537854436f6d6d756e6974793a20546f74616c20737570706c79206578636565604082015271646564206d6178696d756d20737570706c7960701b606082015260800190565b6020808252603a908201527f537854436f6d6d756e6974793a20416c7265616479206d696e7465642074686960408201527f73204e4654206f6e636520746f2074686973206163636f756e74000000000000606082015260800190565b6020808252601f908201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00604082015260600190565b60208082526029908201527f537854436f6d6d756e6974793a204e65772070726963652073616d65206173206040820152686f6c6420707269636560b81b606082015260800190565b60208082526023908201527f537854436f6d6d756e6974793a20555249206e6f6e6578697374656e7420746f60408201526235b2b760e91b606082015260800190565b60006001600160401b03821115613fbd57613fbd614148565b5060051b60200190565b60008219821115613fda57613fda614106565b500190565b600082613fee57613fee61411c565b500490565b600081600019048311821515161561400d5761400d614106565b500290565b60008282101561402457614024614106565b500390565b60005b8381101561404457818101518382015260200161402c565b83811115614053576000848401525b50505050565b60008161406857614068614106565b506000190190565b600181811c9082168061408457607f821691505b602082108114156140a557634e487b7160e01b600052602260045260246000fd5b50919050565b601f8201601f191681016001600160401b03811182821017156140d0576140d0614148565b6040525050565b60006000198214156140eb576140eb614106565b5060010190565b6000826141015761410161411c565b500690565b634e487b7160e01b600052601160045260246000fd5b634e487b7160e01b600052601260045260246000fd5b634e487b7160e01b600052603260045260246000fd5b634e487b7160e01b600052604160045260246000fd5b600060033d11156141775760046000803e5060005160e01c5b90565b600060443d10156141885790565b6040516003193d81016004833e81513d6001600160401b0381602484011181841117156141b757505050505090565b82850191508151818111156141cf5750505050505090565b843d87010160208285010111156141e95750505050505090565b6141f8602082860101876140ab565b509095945050505050565b6001600160a01b03811681146123e057600080fd5b80151581146123e057600080fd5b6001600160e01b0319811681146123e057600080fdfea2646970667358221220fbb9d552399dc00d7176f5da5c2664f0e22c9aa40fd95243beffb89292d3086f64736f6c63430008070033
Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)
00000000000000000000000000000000000000000000000000000000000000400000000000000000000000000000000000000000000000000000000000000080000000000000000000000000000000000000000000000000000000000000000f537854436f6d6d756e6974794e4654000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000045378544300000000000000000000000000000000000000000000000000000000
-----Decoded View---------------
Arg [0] : tokenName (string): SxTCommunityNFT
Arg [1] : tokenSymbol (string): SxTC
-----Encoded View---------------
6 Constructor Arguments found :
Arg [0] : 0000000000000000000000000000000000000000000000000000000000000040
Arg [1] : 0000000000000000000000000000000000000000000000000000000000000080
Arg [2] : 000000000000000000000000000000000000000000000000000000000000000f
Arg [3] : 537854436f6d6d756e6974794e46540000000000000000000000000000000000
Arg [4] : 0000000000000000000000000000000000000000000000000000000000000004
Arg [5] : 5378544300000000000000000000000000000000000000000000000000000000
Loading...
Loading
Loading...
Loading
[ Download: CSV Export ]
[ Download: CSV Export ]
A token is a representation of an on-chain or off-chain asset. The token page shows information such as price, total supply, holders, transfers and social links. Learn more about this page in our Knowledge Base.