ERC-1155
Overview
Max Total Supply
363 HNFT
Holders
331
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:
HelloWeb3
Compiler Version
v0.8.4+commit.c7e474f2
Optimization Enabled:
Yes with 1000 runs
Other Settings:
default evmVersion
Contract Source Code (Solidity Standard Json-Input format)
// SPDX-License-Identifier: MIT pragma solidity 0.8.4; import "./FOMOPASS.sol"; import "./RoyaltySplits.sol"; /// @author FOMOLOL (fomolol.com) /** * * ██╗░░██╗███████╗██╗░░░░░██╗░░░░░░█████╗░███╗░░██╗███████╗████████╗██╗ * ██║░░██║██╔════╝██║░░░░░██║░░░░░██╔══██╗████╗░██║██╔════╝╚══██╔══╝██║ * ███████║█████╗░░██║░░░░░██║░░░░░██║░░██║██╔██╗██║█████╗░░░░░██║░░░██║ * ██╔══██║██╔══╝░░██║░░░░░██║░░░░░██║░░██║██║╚████║██╔══╝░░░░░██║░░░╚═╝ * ██║░░██║███████╗███████╗███████╗╚█████╔╝██║░╚███║██║░░░░░░░░██║░░░██╗ * ╚═╝░░╚═╝╚══════╝╚══════╝╚══════╝░╚════╝░╚═╝░░╚══╝╚═╝░░░░░░░░╚═╝░░░╚═╝ * @title HELLO NFT! */ contract HelloWeb3 is RoyaltySplits, FOMOPASS { constructor( string memory _symbol, string memory _name, string memory _uri ) FOMOPASS(_symbol, _name, _uri, addresses, splits) {} } /* * * Permission is hereby granted, free of charge, to any person obtaining a copy of this...HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF * CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER...SOFTWARE. * * Art by EON (@Colette00000), and concept by Jiwon (@dimanchelunch) and Youngsun (@youngsunlive) * Twitter @hello_web3 * * Smart contract developed for Hello NFT! by FOMOLOL LLC */
// SPDX-License-Identifier: MIT pragma solidity 0.8.4; /// @author FOMOLOL (fomolol.com) import "./libs/BetterBoolean.sol"; import "./libs/SafeAddress.sol"; import "./libs/ABDKMath64x64.sol"; import "./security/ContractGuardian.sol"; import "./finance/LockedPaymentSplitter.sol"; import "@openzeppelin/contracts/interfaces/IERC2981.sol"; import "@openzeppelin/contracts/token/ERC1155/ERC1155.sol"; import "@openzeppelin/contracts/token/ERC1155/extensions/ERC1155Supply.sol"; import "@openzeppelin/contracts/access/Ownable.sol"; import "@openzeppelin/contracts/security/Pausable.sol"; import "@openzeppelin/contracts/utils/Context.sol"; import "@openzeppelin/contracts/utils/introspection/ERC165.sol"; import "@openzeppelin/contracts/security/ReentrancyGuard.sol"; import "@openzeppelin/contracts/utils/cryptography/ECDSA.sol"; /// @dev Errors /** * @notice Token is not free. Needed `amount` to be more than zero. * @param amount total mint price. */ error NotFree(uint256 amount); /** * @notice Insufficient balance for transfer. Needed `required` but only `available` available. * @param available balance available. * @param required requested amount to transfer. */ error InsufficientBalance(uint256 available, uint256 required); /** * @notice Maximum mints exceeded. Allowed `allowed` but trying to mint `trying`. * @param trying total trying to mint. * @param allowed allowed amount to mint per wallet. */ error MaxPerWalletCap(uint256 trying, uint256 allowed); /** * @notice Maximum supply exceeded. Allowed `allowed` but trying to mint `trying`. * @param trying total trying to mint. * @param allowed allowed amount to mint per wallet. */ error MaxSupplyExceeded(uint256 trying, uint256 allowed); /** * @notice Not allowed. Address is not allowed. * @param _address wallet address checked. */ error NotAllowed(address _address); /** * @notice Token does not exist. * @param tokenId token id checked. */ error DoesNotExist(uint256 tokenId); /** * @title FOMOPASS * @author FOMOLOL (fomolol.com) * @dev Standard ERC1155 implementation * * ERC1155 NFT contract, with reserves, payment splitting and paid token features. * * In addition to using ERC1155, gas is optimized via boolean packing * and use of constants where possible. */ /// @custom:security-contact [email protected] abstract contract FOMOPASS is ERC1155, IERC2981, Ownable, Pausable, ERC1155Supply, ContractGuardian, ReentrancyGuard, LockedPaymentSplitter { enum Status { Pending, PublicSale, Finished } using SafeAddress for address; using ABDKMath64x64 for uint; using BetterBoolean for uint256; using Strings for uint256; using ECDSA for bytes32; Status public status; string private name_; string private symbol_; address private _recipient; uint256 public constant MAX_PER_WALLET_LIMIT = 50; uint256 public constant PASS_ALL_ACCESS_ID = 0; uint256 public constant PASS_EVENTS_ONLY_ID = 1; uint256 public tokensReserved; bool public metadataRevealed; bool public metadataFinalised; mapping(uint256 => string) private _uris; mapping(uint256 => uint256) private _costs; mapping(uint256 => uint256) private _maxSupplies; mapping(uint256 => uint256) private _maxBatchSizes; /// @dev Events event PermanentURI(string _value, uint256 indexed _id); event TokensMinted( address indexed mintedBy, uint256 indexed id, uint256 indexed quantity ); event BaseUriUpdated(string oldBaseUri, string newBaseUri); event CostUpdated(uint256 oldCost, uint256 newCost); event ReservedToken(address minter, address recipient, uint256 amount); event StatusChanged(Status status); constructor( string memory _symbol, string memory _name, string memory __uri, address[] memory __addresses, uint256[] memory __splits ) ERC1155(__uri) SlimPaymentSplitter(__addresses, __splits) { name_ = _name; symbol_ = _symbol; // Set royalty recipient _recipient = owner(); // All Access Pass _costs[PASS_ALL_ACCESS_ID] = 0.1 ether; _uris[ PASS_ALL_ACCESS_ID ] = "ipfs://QmUvDi6gUZ8HLazUuuzij4bi3GoJWoLEg2bL95AH3r7qih/0.json"; _maxSupplies[PASS_ALL_ACCESS_ID] = 200; _maxBatchSizes[PASS_ALL_ACCESS_ID] = 25; // Events Only Pass _costs[PASS_EVENTS_ONLY_ID] = 0.05 ether; _uris[ PASS_EVENTS_ONLY_ID ] = "ipfs://QmUvDi6gUZ8HLazUuuzij4bi3GoJWoLEg2bL95AH3r7qih/1.json"; _maxSupplies[PASS_EVENTS_ONLY_ID] = 300; _maxBatchSizes[PASS_EVENTS_ONLY_ID] = 25; } /** * @dev Throws if amount if less than zero. */ function _isNotFree(uint256 amount) internal pure { if (amount <= 0) { revert NotFree(amount); } } /** * @dev Throws if public sale is NOT active. */ function _isPublicSaleActive() internal view { if (_msgSender() != owner()) { require(status == Status.PublicSale, "Public sale is not active."); } } /** * @dev Throws if max tokens per wallet * @param id token id to check * @param quantity quantity to check */ function _isMaxTokensPerWallet(uint256 id, uint256 quantity) internal view { if (_msgSender() != owner()) { uint256 mintedBalance = balanceOf(_msgSender(), id); uint256 currentMintingAmount = mintedBalance + quantity; if (currentMintingAmount > MAX_PER_WALLET_LIMIT) { revert MaxPerWalletCap( currentMintingAmount, MAX_PER_WALLET_LIMIT ); } } } /** * @dev Throws if the amount sent is not equal to the total cost. * @param id token id to check * @param quantity quantity to check */ function _isCorrectAmountProvided(uint256 id, uint256 quantity) internal view { uint256 mintCost = _costs[id]; uint256 totalCost = quantity * mintCost; if (msg.value < totalCost && _msgSender() != owner()) { revert InsufficientBalance(msg.value, totalCost); } } /** * @dev Throws if the claim size is not valid * @param id token id to check * @param count total to check */ function _isValidBatchSize(uint256 id, uint256 count) internal view { require( 0 < count && count <= _maxBatchSizes[id], "Max tokens per batch exceeded" ); } /** * @dev Throws if the total token number being minted is zero */ function _isMintingOne(uint256 quantity) internal pure { require(quantity > 0, "Must mint at least 1 token"); } /** * @dev Throws if the total being minted is greater than the max supply */ function _isLessThanMaxSupply(uint256 id, uint256 quantity) internal view { uint256 _maxSupply = _maxSupplies[id]; if (totalSupply(id) + quantity > _maxSupply) { revert MaxSupplyExceeded(totalSupply(id) + quantity, _maxSupply); } } /** * @dev Mint function for reserved tokens. * @param minter is the address minting the token(s). * @param quantity is total tokens to mint. */ function _internalMintTokens( address minter, uint256 id, uint256 quantity ) internal { _isLessThanMaxSupply(id, quantity); _mint(minter, id, quantity, ""); } /** * @dev Allows us to specify the collection name. */ function name() public view returns (string memory) { return name_; } /** * @dev Allows us to specify the token symbol. */ function symbol() public view returns (string memory) { return symbol_; } /** * @dev Pause the contract */ function pause() public onlyOwner { _pause(); } /** * @dev Unpause the contract */ function unpause() public onlyOwner { _unpause(); } /** * @notice Reserve token(s) to multiple team members. * * @param frens addresses to send tokens to * @param quantity the number of tokens to mint. */ function reserve( address[] memory frens, uint256 id, uint256 quantity ) external onlyOwner { _isMintingOne(quantity); _isValidBatchSize(id, quantity); _isLessThanMaxSupply(id, quantity); uint256 idx; for (idx = 0; idx < frens.length; idx++) { require(frens[idx] != address(0), "Zero address"); _internalMintTokens(frens[idx], id, quantity); tokensReserved += quantity; emit ReservedToken(_msgSender(), frens[idx], quantity); } } /** * @notice Reserve multiple tokens to a single team member. * * @param fren Address to send tokens to * @param id Token id to mint * @param quantity Number of tokens to mint */ function reserveSingle( address fren, uint256 id, uint256 quantity ) external onlyOwner { _isMintingOne(quantity); _isValidBatchSize(id, quantity); _isLessThanMaxSupply(id, quantity); uint256 _maxBatchSize = _maxBatchSizes[id]; uint256 multiple = quantity / _maxBatchSize; for (uint256 i = 0; i < multiple; i++) { _internalMintTokens(fren, id, _maxBatchSize); } uint256 remainder = quantity % _maxBatchSize; if (remainder != 0) { _internalMintTokens(fren, id, remainder); } tokensReserved += quantity; emit ReservedToken(_msgSender(), fren, quantity); } /** * @dev The public mint function. * @param id Token id to mint. * @param quantity Total number of tokens to mint. */ function mint(uint256 id, uint256 quantity) public payable nonReentrant onlyUsers { _isPublicSaleActive(); _isMaxTokensPerWallet(id, quantity); _isCorrectAmountProvided(id, quantity); _isMintingOne(quantity); _isLessThanMaxSupply(id, quantity); _mint(_msgSender(), id, quantity, ""); emit TokensMinted(_msgSender(), id, quantity); } /** * @notice This is a mint cost override (must be in wei) * @dev Handles setting the mint cost * @param id token id to set the cost for * @param _cost new cost to associate with minting tokens (in wei) */ function setMintCost(uint256 id, uint256 _cost) public onlyOwner { _isNotFree(_cost); uint256 currentCost = _costs[id]; _costs[id] = _cost; // in wei emit CostUpdated(currentCost, _cost); } /** * @dev Handles updating the status */ function setStatus(Status _status) external onlyOwner { status = _status; emit StatusChanged(_status); } /** * @dev override for before token transfer method */ function _beforeTokenTransfer( address operator, address from, address to, uint256[] memory ids, uint256[] memory amounts, bytes memory data ) internal override(ERC1155, ERC1155Supply) whenNotPaused { super._beforeTokenTransfer(operator, from, to, ids, amounts, data); require(!paused(), "token transfer while paused"); } /** * @dev override for the uri that allows IPFS to be used * @param id token id to update uri for */ function uri(uint256 id) public view override returns (string memory) { return (_uris[id]); } /** * @dev handles returning the cost for a token * @param id token id to update uri for */ function cost(uint256 id) public view returns (uint256) { return (_costs[id]); } /** * @dev override for the uri that allows IPFS to be used * @param id token id to update uri for * @param _uri uri for token id */ function setTokenUri(uint256 id, string memory _uri) public onlyOwner { _uris[id] = _uri; } /** * @dev handles returning the max supply for a token * @param id token id to update uri for */ function maxSupply(uint256 id) public view returns (uint256) { return (_maxSupplies[id]); } /** * @dev handles returning the max batch size for a token * @param id token id to update uri for */ function maxBatchSize(uint256 id) public view returns (uint256) { return (_maxBatchSizes[id]); } /** * @dev handles adjusting the max supply * @param id token id to update uri for * @param quantity to change the max supply to */ function setMaxSupply(uint256 id, uint256 quantity) public onlyOwner { _maxSupplies[id] = quantity; } /** * @dev handles adjusting the max batch size * @param id token id to update uri for * @param quantity to change the max supply to */ function setMaxBatchSize(uint256 id, uint256 quantity) public onlyOwner { _maxBatchSizes[id] = quantity; } /** @dev EIP2981 royalties implementation. */ // Maintain flexibility to modify royalties recipient (could also add basis points). function _setRoyalties(address newRecipient) internal { require(newRecipient != address(0), "royalty recipient zero address"); _recipient = newRecipient; } function setRoyalties(address newRecipient) external onlyOwner { _setRoyalties(newRecipient); } // EIP2981 standard royalties return. function royaltyInfo(uint256 _tokenId, uint256 _salePrice) external view override returns (address receiver, uint256 royaltyAmount) { return (_recipient, (_salePrice * 500) / 10000); // 5% (500 basis points) } // EIP2981 standard Interface return. Adds to ERC1155 and ERC165 Interface returns. function supportsInterface(bytes4 interfaceId) public view virtual override(ERC1155, IERC165) returns (bool) { return (interfaceId == type(IERC2981).interfaceId || super.supportsInterface(interfaceId)); } }
// SPDX-License-Identifier: MIT pragma solidity 0.8.4; /// @author FOMOLOL (fomolol.com) contract RoyaltySplits { address[] internal addresses = [ 0xb1759409c127De32974b14c6390738920c74847e // founder ]; uint256[] internal splits = [100]; }
// SPDX-License-Identifier: MIT pragma solidity 0.8.4; /** * @title BetterBoolean * @author FOMOLOL (fomolol.com) * @dev Credit to Zimri Leijen * See https://ethereum.stackexchange.com/a/92235 */ library BetterBoolean { function getBoolean(uint256 _packedBools, uint256 _columnNumber) internal pure returns (bool) { uint256 flag = (_packedBools >> _columnNumber) & uint256(1); return (flag == 1 ? true : false); } function setBoolean( uint256 _packedBools, uint256 _columnNumber, bool _value ) internal pure returns (uint256) { if (_value) { _packedBools = _packedBools | (uint256(1) << _columnNumber); return _packedBools; } else { _packedBools = _packedBools & ~(uint256(1) << _columnNumber); return _packedBools; } } }
// SPDX-License-Identifier: BSD-4-Clause /* * Handles ensuring that the contract is being called by a user and not a contract. */ pragma solidity 0.8.4; library SafeAddress { function isContract(address account) internal view returns (bool) { uint size; assembly { size := extcodesize(account) } return size > 0; } }
// SPDX-License-Identifier: BSD-4-Clause /* * ABDK Math 64.64 Smart Contract Library. Copyright © 2019 by ABDK Consulting. * Author: Mikhail Vladimirov <[email protected]> */ pragma solidity 0.8.4; /** * Smart contract library of mathematical functions operating with signed * 64.64-bit fixed point numbers. Signed 64.64-bit fixed point number is * basically a simple fraction whose numerator is signed 128-bit integer and * denominator is 2^64. As long as denominator is always the same, there is no * need to store it, thus in Solidity signed 64.64-bit fixed point numbers are * represented by int128 type holding only the numerator. */ library ABDKMath64x64 { /* * Minimum value signed 64.64-bit fixed point number may have. */ int128 private constant MIN_64x64 = -0x80000000000000000000000000000000; /* * Maximum value signed 64.64-bit fixed point number may have. */ int128 private constant MAX_64x64 = 0x7FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF; /** * Convert signed 256-bit integer number into signed 64.64-bit fixed point * number. Revert on overflow. * * @param x signed 256-bit integer number * @return signed 64.64-bit fixed point number */ function fromInt(int256 x) internal pure returns (int128) { unchecked { require(x >= -0x8000000000000000 && x <= 0x7FFFFFFFFFFFFFFF); return int128(x << 64); } } /** * Convert signed 64.64 fixed point number into signed 64-bit integer number * rounding down. * * @param x signed 64.64-bit fixed point number * @return signed 64-bit integer number */ function toInt(int128 x) internal pure returns (int64) { unchecked { return int64(x >> 64); } } /** * Convert unsigned 256-bit integer number into signed 64.64-bit fixed point * number. Revert on overflow. * * @param x unsigned 256-bit integer number * @return signed 64.64-bit fixed point number */ function fromUInt(uint256 x) internal pure returns (int128) { unchecked { require(x <= 0x7FFFFFFFFFFFFFFF); return int128(int256(x << 64)); } } /** * Convert signed 64.64 fixed point number into unsigned 64-bit integer * number rounding down. Revert on underflow. * * @param x signed 64.64-bit fixed point number * @return unsigned 64-bit integer number */ function toUInt(int128 x) internal pure returns (uint64) { unchecked { require(x >= 0); return uint64(uint128(x >> 64)); } } /** * Convert signed 128.128 fixed point number into signed 64.64-bit fixed point * number rounding down. Revert on overflow. * * @param x signed 128.128-bin fixed point number * @return signed 64.64-bit fixed point number */ function from128x128(int256 x) internal pure returns (int128) { unchecked { int256 result = x >> 64; require(result >= MIN_64x64 && result <= MAX_64x64); return int128(result); } } /** * Convert signed 64.64 fixed point number into signed 128.128 fixed point * number. * * @param x signed 64.64-bit fixed point number * @return signed 128.128 fixed point number */ function to128x128(int128 x) internal pure returns (int256) { unchecked { return int256(x) << 64; } } /** * Calculate x + y. Revert on overflow. * * @param x signed 64.64-bit fixed point number * @param y signed 64.64-bit fixed point number * @return signed 64.64-bit fixed point number */ function add(int128 x, int128 y) internal pure returns (int128) { unchecked { int256 result = int256(x) + y; require(result >= MIN_64x64 && result <= MAX_64x64); return int128(result); } } /** * Calculate x - y. Revert on overflow. * * @param x signed 64.64-bit fixed point number * @param y signed 64.64-bit fixed point number * @return signed 64.64-bit fixed point number */ function sub(int128 x, int128 y) internal pure returns (int128) { unchecked { int256 result = int256(x) - y; require(result >= MIN_64x64 && result <= MAX_64x64); return int128(result); } } /** * Calculate x * y rounding down. Revert on overflow. * * @param x signed 64.64-bit fixed point number * @param y signed 64.64-bit fixed point number * @return signed 64.64-bit fixed point number */ function mul(int128 x, int128 y) internal pure returns (int128) { unchecked { int256 result = (int256(x) * y) >> 64; require(result >= MIN_64x64 && result <= MAX_64x64); return int128(result); } } /** * Calculate x * y rounding towards zero, where x is signed 64.64 fixed point * number and y is signed 256-bit integer number. Revert on overflow. * * @param x signed 64.64 fixed point number * @param y signed 256-bit integer number * @return signed 256-bit integer number */ function muli(int128 x, int256 y) internal pure returns (int256) { unchecked { if (x == MIN_64x64) { require( y >= -0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF && y <= 0x1000000000000000000000000000000000000000000000000 ); return -y << 63; } else { bool negativeResult = false; if (x < 0) { x = -x; negativeResult = true; } if (y < 0) { y = -y; // We rely on overflow behavior here negativeResult = !negativeResult; } uint256 absoluteResult = mulu(x, uint256(y)); if (negativeResult) { require( absoluteResult <= 0x8000000000000000000000000000000000000000000000000000000000000000 ); return -int256(absoluteResult); // We rely on overflow behavior here } else { require( absoluteResult <= 0x7FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF ); return int256(absoluteResult); } } } } /** * Calculate x * y rounding down, where x is signed 64.64 fixed point number * and y is unsigned 256-bit integer number. Revert on overflow. * * @param x signed 64.64 fixed point number * @param y unsigned 256-bit integer number * @return unsigned 256-bit integer number */ function mulu(int128 x, uint256 y) internal pure returns (uint256) { unchecked { if (y == 0) return 0; require(x >= 0); uint256 lo = (uint256(int256(x)) * (y & 0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF)) >> 64; uint256 hi = uint256(int256(x)) * (y >> 128); require(hi <= 0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF); hi <<= 64; require( hi <= 0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF - lo ); return hi + lo; } } /** * Calculate x / y rounding towards zero. Revert on overflow or when y is * zero. * * @param x signed 64.64-bit fixed point number * @param y signed 64.64-bit fixed point number * @return signed 64.64-bit fixed point number */ function div(int128 x, int128 y) internal pure returns (int128) { unchecked { require(y != 0); int256 result = (int256(x) << 64) / y; require(result >= MIN_64x64 && result <= MAX_64x64); return int128(result); } } /** * Calculate x / y rounding towards zero, where x and y are signed 256-bit * integer numbers. Revert on overflow or when y is zero. * * @param x signed 256-bit integer number * @param y signed 256-bit integer number * @return signed 64.64-bit fixed point number */ function divi(int256 x, int256 y) internal pure returns (int128) { unchecked { require(y != 0); bool negativeResult = false; if (x < 0) { x = -x; // We rely on overflow behavior here negativeResult = true; } if (y < 0) { y = -y; // We rely on overflow behavior here negativeResult = !negativeResult; } uint128 absoluteResult = divuu(uint256(x), uint256(y)); if (negativeResult) { require(absoluteResult <= 0x80000000000000000000000000000000); return -int128(absoluteResult); // We rely on overflow behavior here } else { require(absoluteResult <= 0x7FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF); return int128(absoluteResult); // We rely on overflow behavior here } } } /** * Calculate x / y rounding towards zero, where x and y are unsigned 256-bit * integer numbers. Revert on overflow or when y is zero. * * @param x unsigned 256-bit integer number * @param y unsigned 256-bit integer number * @return signed 64.64-bit fixed point number */ function divu(uint256 x, uint256 y) internal pure returns (int128) { unchecked { require(y != 0); uint128 result = divuu(x, y); require(result <= uint128(MAX_64x64)); return int128(result); } } /** * Calculate -x. Revert on overflow. * * @param x signed 64.64-bit fixed point number * @return signed 64.64-bit fixed point number */ function neg(int128 x) internal pure returns (int128) { unchecked { require(x != MIN_64x64); return -x; } } /** * Calculate |x|. Revert on overflow. * * @param x signed 64.64-bit fixed point number * @return signed 64.64-bit fixed point number */ function abs(int128 x) internal pure returns (int128) { unchecked { require(x != MIN_64x64); return x < 0 ? -x : x; } } /** * Calculate 1 / x rounding towards zero. Revert on overflow or when x is * zero. * * @param x signed 64.64-bit fixed point number * @return signed 64.64-bit fixed point number */ function inv(int128 x) internal pure returns (int128) { unchecked { require(x != 0); int256 result = int256(0x100000000000000000000000000000000) / x; require(result >= MIN_64x64 && result <= MAX_64x64); return int128(result); } } /** * Calculate arithmetics average of x and y, i.e. (x + y) / 2 rounding down. * * @param x signed 64.64-bit fixed point number * @param y signed 64.64-bit fixed point number * @return signed 64.64-bit fixed point number */ function avg(int128 x, int128 y) internal pure returns (int128) { unchecked { return int128((int256(x) + int256(y)) >> 1); } } /** * Calculate geometric average of x and y, i.e. sqrt (x * y) rounding down. * Revert on overflow or in case x * y is negative. * * @param x signed 64.64-bit fixed point number * @param y signed 64.64-bit fixed point number * @return signed 64.64-bit fixed point number */ function gavg(int128 x, int128 y) internal pure returns (int128) { unchecked { int256 m = int256(x) * int256(y); require(m >= 0); require( m < 0x4000000000000000000000000000000000000000000000000000000000000000 ); return int128(sqrtu(uint256(m))); } } /** * Calculate x^y assuming 0^0 is 1, where x is signed 64.64 fixed point number * and y is unsigned 256-bit integer number. Revert on overflow. * * @param x signed 64.64-bit fixed point number * @param y uint256 value * @return signed 64.64-bit fixed point number */ function pow(int128 x, uint256 y) internal pure returns (int128) { unchecked { bool negative = x < 0 && y & 1 == 1; uint256 absX = uint128(x < 0 ? -x : x); uint256 absResult; absResult = 0x100000000000000000000000000000000; if (absX <= 0x10000000000000000) { absX <<= 63; while (y != 0) { if (y & 0x1 != 0) { absResult = (absResult * absX) >> 127; } absX = (absX * absX) >> 127; if (y & 0x2 != 0) { absResult = (absResult * absX) >> 127; } absX = (absX * absX) >> 127; if (y & 0x4 != 0) { absResult = (absResult * absX) >> 127; } absX = (absX * absX) >> 127; if (y & 0x8 != 0) { absResult = (absResult * absX) >> 127; } absX = (absX * absX) >> 127; y >>= 4; } absResult >>= 64; } else { uint256 absXShift = 63; if (absX < 0x1000000000000000000000000) { absX <<= 32; absXShift -= 32; } if (absX < 0x10000000000000000000000000000) { absX <<= 16; absXShift -= 16; } if (absX < 0x1000000000000000000000000000000) { absX <<= 8; absXShift -= 8; } if (absX < 0x10000000000000000000000000000000) { absX <<= 4; absXShift -= 4; } if (absX < 0x40000000000000000000000000000000) { absX <<= 2; absXShift -= 2; } if (absX < 0x80000000000000000000000000000000) { absX <<= 1; absXShift -= 1; } uint256 resultShift = 0; while (y != 0) { require(absXShift < 64); if (y & 0x1 != 0) { absResult = (absResult * absX) >> 127; resultShift += absXShift; if (absResult > 0x100000000000000000000000000000000) { absResult >>= 1; resultShift += 1; } } absX = (absX * absX) >> 127; absXShift <<= 1; if (absX >= 0x100000000000000000000000000000000) { absX >>= 1; absXShift += 1; } y >>= 1; } require(resultShift < 64); absResult >>= 64 - resultShift; } int256 result = negative ? -int256(absResult) : int256(absResult); require(result >= MIN_64x64 && result <= MAX_64x64); return int128(result); } } /** * Calculate sqrt (x) rounding down. Revert if x < 0. * * @param x signed 64.64-bit fixed point number * @return signed 64.64-bit fixed point number */ function sqrt(int128 x) internal pure returns (int128) { unchecked { require(x >= 0); return int128(sqrtu(uint256(int256(x)) << 64)); } } /** * Calculate binary logarithm of x. Revert if x <= 0. * * @param x signed 64.64-bit fixed point number * @return signed 64.64-bit fixed point number */ function log_2(int128 x) internal pure returns (int128) { unchecked { require(x > 0); int256 msb = 0; int256 xc = x; if (xc >= 0x10000000000000000) { xc >>= 64; msb += 64; } if (xc >= 0x100000000) { xc >>= 32; msb += 32; } if (xc >= 0x10000) { xc >>= 16; msb += 16; } if (xc >= 0x100) { xc >>= 8; msb += 8; } if (xc >= 0x10) { xc >>= 4; msb += 4; } if (xc >= 0x4) { xc >>= 2; msb += 2; } if (xc >= 0x2) msb += 1; // No need to shift xc anymore int256 result = (msb - 64) << 64; uint256 ux = uint256(int256(x)) << uint256(127 - msb); for (int256 bit = 0x8000000000000000; bit > 0; bit >>= 1) { ux *= ux; uint256 b = ux >> 255; ux >>= 127 + b; result += bit * int256(b); } return int128(result); } } /** * Calculate natural logarithm of x. Revert if x <= 0. * * @param x signed 64.64-bit fixed point number * @return signed 64.64-bit fixed point number */ function ln(int128 x) internal pure returns (int128) { unchecked { require(x > 0); return int128( int256( (uint256(int256(log_2(x))) * 0xB17217F7D1CF79ABC9E3B39803F2F6AF) >> 128 ) ); } } /** * Calculate binary exponent of x. Revert on overflow. * * @param x signed 64.64-bit fixed point number * @return signed 64.64-bit fixed point number */ function exp_2(int128 x) internal pure returns (int128) { unchecked { require(x < 0x400000000000000000); // Overflow if (x < -0x400000000000000000) return 0; // Underflow uint256 result = 0x80000000000000000000000000000000; if (x & 0x8000000000000000 > 0) result = (result * 0x16A09E667F3BCC908B2FB1366EA957D3E) >> 128; if (x & 0x4000000000000000 > 0) result = (result * 0x1306FE0A31B7152DE8D5A46305C85EDEC) >> 128; if (x & 0x2000000000000000 > 0) result = (result * 0x1172B83C7D517ADCDF7C8C50EB14A791F) >> 128; if (x & 0x1000000000000000 > 0) result = (result * 0x10B5586CF9890F6298B92B71842A98363) >> 128; if (x & 0x800000000000000 > 0) result = (result * 0x1059B0D31585743AE7C548EB68CA417FD) >> 128; if (x & 0x400000000000000 > 0) result = (result * 0x102C9A3E778060EE6F7CACA4F7A29BDE8) >> 128; if (x & 0x200000000000000 > 0) result = (result * 0x10163DA9FB33356D84A66AE336DCDFA3F) >> 128; if (x & 0x100000000000000 > 0) result = (result * 0x100B1AFA5ABCBED6129AB13EC11DC9543) >> 128; if (x & 0x80000000000000 > 0) result = (result * 0x10058C86DA1C09EA1FF19D294CF2F679B) >> 128; if (x & 0x40000000000000 > 0) result = (result * 0x1002C605E2E8CEC506D21BFC89A23A00F) >> 128; if (x & 0x20000000000000 > 0) result = (result * 0x100162F3904051FA128BCA9C55C31E5DF) >> 128; if (x & 0x10000000000000 > 0) result = (result * 0x1000B175EFFDC76BA38E31671CA939725) >> 128; if (x & 0x8000000000000 > 0) result = (result * 0x100058BA01FB9F96D6CACD4B180917C3D) >> 128; if (x & 0x4000000000000 > 0) result = (result * 0x10002C5CC37DA9491D0985C348C68E7B3) >> 128; if (x & 0x2000000000000 > 0) result = (result * 0x1000162E525EE054754457D5995292026) >> 128; if (x & 0x1000000000000 > 0) result = (result * 0x10000B17255775C040618BF4A4ADE83FC) >> 128; if (x & 0x800000000000 > 0) result = (result * 0x1000058B91B5BC9AE2EED81E9B7D4CFAB) >> 128; if (x & 0x400000000000 > 0) result = (result * 0x100002C5C89D5EC6CA4D7C8ACC017B7C9) >> 128; if (x & 0x200000000000 > 0) result = (result * 0x10000162E43F4F831060E02D839A9D16D) >> 128; if (x & 0x100000000000 > 0) result = (result * 0x100000B1721BCFC99D9F890EA06911763) >> 128; if (x & 0x80000000000 > 0) result = (result * 0x10000058B90CF1E6D97F9CA14DBCC1628) >> 128; if (x & 0x40000000000 > 0) result = (result * 0x1000002C5C863B73F016468F6BAC5CA2B) >> 128; if (x & 0x20000000000 > 0) result = (result * 0x100000162E430E5A18F6119E3C02282A5) >> 128; if (x & 0x10000000000 > 0) result = (result * 0x1000000B1721835514B86E6D96EFD1BFE) >> 128; if (x & 0x8000000000 > 0) result = (result * 0x100000058B90C0B48C6BE5DF846C5B2EF) >> 128; if (x & 0x4000000000 > 0) result = (result * 0x10000002C5C8601CC6B9E94213C72737A) >> 128; if (x & 0x2000000000 > 0) result = (result * 0x1000000162E42FFF037DF38AA2B219F06) >> 128; if (x & 0x1000000000 > 0) result = (result * 0x10000000B17217FBA9C739AA5819F44F9) >> 128; if (x & 0x800000000 > 0) result = (result * 0x1000000058B90BFCDEE5ACD3C1CEDC823) >> 128; if (x & 0x400000000 > 0) result = (result * 0x100000002C5C85FE31F35A6A30DA1BE50) >> 128; if (x & 0x200000000 > 0) result = (result * 0x10000000162E42FF0999CE3541B9FFFCF) >> 128; if (x & 0x100000000 > 0) result = (result * 0x100000000B17217F80F4EF5AADDA45554) >> 128; if (x & 0x80000000 > 0) result = (result * 0x10000000058B90BFBF8479BD5A81B51AD) >> 128; if (x & 0x40000000 > 0) result = (result * 0x1000000002C5C85FDF84BD62AE30A74CC) >> 128; if (x & 0x20000000 > 0) result = (result * 0x100000000162E42FEFB2FED257559BDAA) >> 128; if (x & 0x10000000 > 0) result = (result * 0x1000000000B17217F7D5A7716BBA4A9AE) >> 128; if (x & 0x8000000 > 0) result = (result * 0x100000000058B90BFBE9DDBAC5E109CCE) >> 128; if (x & 0x4000000 > 0) result = (result * 0x10000000002C5C85FDF4B15DE6F17EB0D) >> 128; if (x & 0x2000000 > 0) result = (result * 0x1000000000162E42FEFA494F1478FDE05) >> 128; if (x & 0x1000000 > 0) result = (result * 0x10000000000B17217F7D20CF927C8E94C) >> 128; if (x & 0x800000 > 0) result = (result * 0x1000000000058B90BFBE8F71CB4E4B33D) >> 128; if (x & 0x400000 > 0) result = (result * 0x100000000002C5C85FDF477B662B26945) >> 128; if (x & 0x200000 > 0) result = (result * 0x10000000000162E42FEFA3AE53369388C) >> 128; if (x & 0x100000 > 0) result = (result * 0x100000000000B17217F7D1D351A389D40) >> 128; if (x & 0x80000 > 0) result = (result * 0x10000000000058B90BFBE8E8B2D3D4EDE) >> 128; if (x & 0x40000 > 0) result = (result * 0x1000000000002C5C85FDF4741BEA6E77E) >> 128; if (x & 0x20000 > 0) result = (result * 0x100000000000162E42FEFA39FE95583C2) >> 128; if (x & 0x10000 > 0) result = (result * 0x1000000000000B17217F7D1CFB72B45E1) >> 128; if (x & 0x8000 > 0) result = (result * 0x100000000000058B90BFBE8E7CC35C3F0) >> 128; if (x & 0x4000 > 0) result = (result * 0x10000000000002C5C85FDF473E242EA38) >> 128; if (x & 0x2000 > 0) result = (result * 0x1000000000000162E42FEFA39F02B772C) >> 128; if (x & 0x1000 > 0) result = (result * 0x10000000000000B17217F7D1CF7D83C1A) >> 128; if (x & 0x800 > 0) result = (result * 0x1000000000000058B90BFBE8E7BDCBE2E) >> 128; if (x & 0x400 > 0) result = (result * 0x100000000000002C5C85FDF473DEA871F) >> 128; if (x & 0x200 > 0) result = (result * 0x10000000000000162E42FEFA39EF44D91) >> 128; if (x & 0x100 > 0) result = (result * 0x100000000000000B17217F7D1CF79E949) >> 128; if (x & 0x80 > 0) result = (result * 0x10000000000000058B90BFBE8E7BCE544) >> 128; if (x & 0x40 > 0) result = (result * 0x1000000000000002C5C85FDF473DE6ECA) >> 128; if (x & 0x20 > 0) result = (result * 0x100000000000000162E42FEFA39EF366F) >> 128; if (x & 0x10 > 0) result = (result * 0x1000000000000000B17217F7D1CF79AFA) >> 128; if (x & 0x8 > 0) result = (result * 0x100000000000000058B90BFBE8E7BCD6D) >> 128; if (x & 0x4 > 0) result = (result * 0x10000000000000002C5C85FDF473DE6B2) >> 128; if (x & 0x2 > 0) result = (result * 0x1000000000000000162E42FEFA39EF358) >> 128; if (x & 0x1 > 0) result = (result * 0x10000000000000000B17217F7D1CF79AB) >> 128; result >>= uint256(int256(63 - (x >> 64))); require(result <= uint256(int256(MAX_64x64))); return int128(int256(result)); } } /** * Calculate natural exponent of x. Revert on overflow. * * @param x signed 64.64-bit fixed point number * @return signed 64.64-bit fixed point number */ function exp(int128 x) internal pure returns (int128) { unchecked { require(x < 0x400000000000000000); // Overflow if (x < -0x400000000000000000) return 0; // Underflow return exp_2( int128( (int256(x) * 0x171547652B82FE1777D0FFDA0D23A7D12) >> 128 ) ); } } /** * Calculate x / y rounding towards zero, where x and y are unsigned 256-bit * integer numbers. Revert on overflow or when y is zero. * * @param x unsigned 256-bit integer number * @param y unsigned 256-bit integer number * @return unsigned 64.64-bit fixed point number */ function divuu(uint256 x, uint256 y) private pure returns (uint128) { unchecked { require(y != 0); uint256 result; if (x <= 0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF) result = (x << 64) / y; else { uint256 msb = 192; uint256 xc = x >> 192; if (xc >= 0x100000000) { xc >>= 32; msb += 32; } if (xc >= 0x10000) { xc >>= 16; msb += 16; } if (xc >= 0x100) { xc >>= 8; msb += 8; } if (xc >= 0x10) { xc >>= 4; msb += 4; } if (xc >= 0x4) { xc >>= 2; msb += 2; } if (xc >= 0x2) msb += 1; // No need to shift xc anymore result = (x << (255 - msb)) / (((y - 1) >> (msb - 191)) + 1); require(result <= 0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF); uint256 hi = result * (y >> 128); uint256 lo = result * (y & 0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF); uint256 xh = x >> 192; uint256 xl = x << 64; if (xl < lo) xh -= 1; xl -= lo; // We rely on overflow behavior here lo = hi << 128; if (xl < lo) xh -= 1; xl -= lo; // We rely on overflow behavior here assert(xh == hi >> 128); result += xl / y; } require(result <= 0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF); return uint128(result); } } /** * Calculate sqrt (x) rounding down, where x is unsigned 256-bit integer * number. * * @param x unsigned 256-bit integer number * @return unsigned 128-bit integer number */ function sqrtu(uint256 x) private pure returns (uint128) { unchecked { if (x == 0) return 0; else { uint256 xx = x; uint256 r = 1; if (xx >= 0x100000000000000000000000000000000) { xx >>= 128; r <<= 64; } if (xx >= 0x10000000000000000) { xx >>= 64; r <<= 32; } if (xx >= 0x100000000) { xx >>= 32; r <<= 16; } if (xx >= 0x10000) { xx >>= 16; r <<= 8; } if (xx >= 0x100) { xx >>= 8; r <<= 4; } if (xx >= 0x10) { xx >>= 4; r <<= 2; } if (xx >= 0x8) { r <<= 1; } r = (r + x / r) >> 1; r = (r + x / r) >> 1; r = (r + x / r) >> 1; r = (r + x / r) >> 1; r = (r + x / r) >> 1; r = (r + x / r) >> 1; r = (r + x / r) >> 1; // Seven iterations should be enough uint256 r1 = x / r; return uint128(r < r1 ? r : r1); } } } }
// SPDX-License-Identifier: MIT pragma solidity 0.8.4; /** * @title ContractGuardian * @dev Helper contract to help protect against contract based mint spamming attacks. */ abstract contract ContractGuardian { modifier onlyUsers() { require(tx.origin == msg.sender, "Must be user"); _; } }
// SPDX-License-Identifier: MIT pragma solidity 0.8.4; import "./SlimPaymentSplitter.sol"; import "@openzeppelin/contracts/access/Ownable.sol"; /** * @title LockedPaymentSplitter * @author @NiftyMike, NFT Culture * @dev A wrapper around SlimPaymentSplitter which adds on security elements. * * Based on OpenZeppelin Contracts v4.4.1 (finance/PaymentSplitter.sol) */ abstract contract LockedPaymentSplitter is SlimPaymentSplitter, Ownable { /** * @dev Overrides release() method, so that it can only be called by owner. * @notice Owner: Release funds to a specific address. * * @param account Payable address that will receive funds. */ function release(address payable account) public override onlyOwner { super.release(account); } /** * @dev Triggers a transfer to caller's address of the amount of Ether they are owed, according to their percentage of the * total shares and their previous withdrawals. * @notice Sender: request payment. */ function releaseToSelf() public { super.release(payable(msg.sender)); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (interfaces/IERC2981.sol) pragma solidity ^0.8.0; import "./IERC165.sol"; /** * @dev Interface for the NFT Royalty Standard */ interface IERC2981 is IERC165 { /** * @dev Called with the sale price to determine how much royalty is owed and to whom. * @param tokenId - the NFT asset queried for royalty information * @param salePrice - the sale price of the NFT asset specified by `tokenId` * @return receiver - address of who should be sent the royalty payment * @return royaltyAmount - the royalty payment amount for `salePrice` */ function royaltyInfo(uint256 tokenId, uint256 salePrice) external view returns (address receiver, uint256 royaltyAmount); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (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: balance query for the zero address"); 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 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: transfer caller is not 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(); _beforeTokenTransfer(operator, from, to, _asSingletonArray(id), _asSingletonArray(amount), 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); _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); _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(); _beforeTokenTransfer(operator, address(0), to, _asSingletonArray(id), _asSingletonArray(amount), data); _balances[id][to] += amount; emit TransferSingle(operator, address(0), to, id, amount); _doSafeTransferAcceptanceCheck(operator, address(0), to, id, amount, data); } /** * @dev xref:ROOT:erc1155.adoc#batch-operations[Batched] version of {_mint}. * * 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); _doSafeBatchTransferAcceptanceCheck(operator, address(0), to, ids, amounts, data); } /** * @dev Destroys `amount` tokens of token type `id` from `from` * * 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(); _beforeTokenTransfer(operator, from, address(0), _asSingletonArray(id), _asSingletonArray(amount), ""); 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); } /** * @dev xref:ROOT:erc1155.adoc#batch-operations[Batched] version of {_burn}. * * 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); } /** * @dev Approve `operator` to operate on all of `owner` tokens * * Emits a {ApprovalForAll} event. */ function _setApprovalForAll( address owner, address operator, bool approved ) internal virtual { require(owner != operator, "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 `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 _beforeTokenTransfer( 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 (token/ERC1155/extensions/ERC1155Supply.sol) pragma solidity ^0.8.0; import "../ERC1155.sol"; /** * @dev Extension of ERC1155 that adds tracking of total supply per id. * * Useful for scenarios where Fungible and Non-fungible tokens have to be * clearly identified. Note: While a totalSupply of 1 might mean the * corresponding is an NFT, there is no guarantees that no other token with the * same id are not going to be minted. */ abstract contract ERC1155Supply is ERC1155 { mapping(uint256 => uint256) private _totalSupply; /** * @dev Total amount of tokens in with a given id. */ function totalSupply(uint256 id) public view virtual returns (uint256) { return _totalSupply[id]; } /** * @dev Indicates whether any token exist with a given id, or not. */ function exists(uint256 id) public view virtual returns (bool) { return ERC1155Supply.totalSupply(id) > 0; } /** * @dev See {ERC1155-_beforeTokenTransfer}. */ function _beforeTokenTransfer( address operator, address from, address to, uint256[] memory ids, uint256[] memory amounts, bytes memory data ) internal virtual override { super._beforeTokenTransfer(operator, from, to, ids, amounts, data); if (from == address(0)) { for (uint256 i = 0; i < ids.length; ++i) { _totalSupply[ids[i]] += amounts[i]; } } if (to == address(0)) { for (uint256 i = 0; i < ids.length; ++i) { _totalSupply[ids[i]] -= amounts[i]; } } } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (access/Ownable.sol) pragma solidity ^0.8.0; import "../utils/Context.sol"; /** * @dev Contract module which provides a basic access control mechanism, where * there is an account (an owner) that can be granted exclusive access to * specific functions. * * By default, the owner account will be the one that deploys the contract. This * can later be changed with {transferOwnership}. * * This module is used through inheritance. It will make available the modifier * `onlyOwner`, which can be applied to your functions to restrict their use to * the owner. */ abstract contract Ownable is Context { address private _owner; event OwnershipTransferred(address indexed previousOwner, address indexed newOwner); /** * @dev Initializes the contract setting the deployer as the initial owner. */ constructor() { _transferOwnership(_msgSender()); } /** * @dev Returns the address of the current owner. */ function owner() public view virtual returns (address) { return _owner; } /** * @dev Throws if called by any account other than the owner. */ modifier onlyOwner() { require(owner() == _msgSender(), "Ownable: caller is not the owner"); _; } /** * @dev Leaves the contract without owner. It will not be possible to call * `onlyOwner` functions anymore. Can only be called by the current owner. * * NOTE: Renouncing ownership will leave the contract without an owner, * thereby removing any functionality that is only available to the owner. */ function renounceOwnership() public virtual onlyOwner { _transferOwnership(address(0)); } /** * @dev Transfers ownership of the contract to a new account (`newOwner`). * Can only be called by the current owner. */ function transferOwnership(address newOwner) public virtual onlyOwner { require(newOwner != address(0), "Ownable: new owner is the zero address"); _transferOwnership(newOwner); } /** * @dev Transfers ownership of the contract to a new account (`newOwner`). * Internal function without access restriction. */ function _transferOwnership(address newOwner) internal virtual { address oldOwner = _owner; _owner = newOwner; emit OwnershipTransferred(oldOwner, newOwner); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (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 Returns true if the contract is paused, and false otherwise. */ function paused() public view virtual returns (bool) { return _paused; } /** * @dev Modifier to make a function callable only when the contract is not paused. * * Requirements: * * - The contract must not be paused. */ modifier whenNotPaused() { require(!paused(), "Pausable: paused"); _; } /** * @dev Modifier to make a function callable only when the contract is paused. * * Requirements: * * - The contract must be paused. */ modifier whenPaused() { 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 v4.4.1 (utils/Context.sol) pragma solidity ^0.8.0; /** * @dev Provides information about the current execution context, including the * sender of the transaction and its data. While these are generally available * via msg.sender and msg.data, they should not be accessed in such a direct * manner, since when dealing with meta-transactions the account sending and * paying for execution may not be the actual sender (as far as an application * is concerned). * * This contract is only required for intermediate, library-like contracts. */ abstract contract Context { function _msgSender() internal view virtual returns (address) { return msg.sender; } function _msgData() internal view virtual returns (bytes calldata) { return msg.data; } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/introspection/ERC165.sol) pragma solidity ^0.8.0; import "./IERC165.sol"; /** * @dev Implementation of the {IERC165} interface. * * Contracts that want to implement ERC165 should inherit from this contract and override {supportsInterface} to check * for the additional interface id that will be supported. For example: * * ```solidity * function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) { * return interfaceId == type(MyInterface).interfaceId || super.supportsInterface(interfaceId); * } * ``` * * Alternatively, {ERC165Storage} provides an easier to use but more expensive implementation. */ abstract contract ERC165 is IERC165 { /** * @dev See {IERC165-supportsInterface}. */ function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) { return interfaceId == type(IERC165).interfaceId; } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.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 v4.4.1 (utils/cryptography/ECDSA.sol) pragma solidity ^0.8.0; import "../Strings.sol"; /** * @dev Elliptic Curve Digital Signature Algorithm (ECDSA) operations. * * These functions can be used to verify that a message was signed by the holder * of the private keys of a given address. */ library ECDSA { enum RecoverError { NoError, InvalidSignature, InvalidSignatureLength, InvalidSignatureS, InvalidSignatureV } function _throwError(RecoverError error) private pure { if (error == RecoverError.NoError) { return; // no error: do nothing } else if (error == RecoverError.InvalidSignature) { revert("ECDSA: invalid signature"); } else if (error == RecoverError.InvalidSignatureLength) { revert("ECDSA: invalid signature length"); } else if (error == RecoverError.InvalidSignatureS) { revert("ECDSA: invalid signature 's' value"); } else if (error == RecoverError.InvalidSignatureV) { revert("ECDSA: invalid signature 'v' value"); } } /** * @dev Returns the address that signed a hashed message (`hash`) with * `signature` or error string. This address can then be used for verification purposes. * * The `ecrecover` EVM opcode allows for malleable (non-unique) signatures: * this function rejects them by requiring the `s` value to be in the lower * half order, and the `v` value to be either 27 or 28. * * IMPORTANT: `hash` _must_ be the result of a hash operation for the * verification to be secure: it is possible to craft signatures that * recover to arbitrary addresses for non-hashed data. A safe way to ensure * this is by receiving a hash of the original message (which may otherwise * be too long), and then calling {toEthSignedMessageHash} on it. * * Documentation for signature generation: * - with https://web3js.readthedocs.io/en/v1.3.4/web3-eth-accounts.html#sign[Web3.js] * - with https://docs.ethers.io/v5/api/signer/#Signer-signMessage[ethers] * * _Available since v4.3._ */ function tryRecover(bytes32 hash, bytes memory signature) internal pure returns (address, RecoverError) { // Check the signature length // - case 65: r,s,v signature (standard) // - case 64: r,vs signature (cf https://eips.ethereum.org/EIPS/eip-2098) _Available since v4.1._ if (signature.length == 65) { bytes32 r; bytes32 s; uint8 v; // ecrecover takes the signature parameters, and the only way to get them // currently is to use assembly. assembly { r := mload(add(signature, 0x20)) s := mload(add(signature, 0x40)) v := byte(0, mload(add(signature, 0x60))) } return tryRecover(hash, v, r, s); } else if (signature.length == 64) { bytes32 r; bytes32 vs; // ecrecover takes the signature parameters, and the only way to get them // currently is to use assembly. assembly { r := mload(add(signature, 0x20)) vs := mload(add(signature, 0x40)) } return tryRecover(hash, r, vs); } else { return (address(0), RecoverError.InvalidSignatureLength); } } /** * @dev Returns the address that signed a hashed message (`hash`) with * `signature`. This address can then be used for verification purposes. * * The `ecrecover` EVM opcode allows for malleable (non-unique) signatures: * this function rejects them by requiring the `s` value to be in the lower * half order, and the `v` value to be either 27 or 28. * * IMPORTANT: `hash` _must_ be the result of a hash operation for the * verification to be secure: it is possible to craft signatures that * recover to arbitrary addresses for non-hashed data. A safe way to ensure * this is by receiving a hash of the original message (which may otherwise * be too long), and then calling {toEthSignedMessageHash} on it. */ function recover(bytes32 hash, bytes memory signature) internal pure returns (address) { (address recovered, RecoverError error) = tryRecover(hash, signature); _throwError(error); return recovered; } /** * @dev Overload of {ECDSA-tryRecover} that receives the `r` and `vs` short-signature fields separately. * * See https://eips.ethereum.org/EIPS/eip-2098[EIP-2098 short signatures] * * _Available since v4.3._ */ function tryRecover( bytes32 hash, bytes32 r, bytes32 vs ) internal pure returns (address, RecoverError) { bytes32 s; uint8 v; assembly { s := and(vs, 0x7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff) v := add(shr(255, vs), 27) } return tryRecover(hash, v, r, s); } /** * @dev Overload of {ECDSA-recover} that receives the `r and `vs` short-signature fields separately. * * _Available since v4.2._ */ function recover( bytes32 hash, bytes32 r, bytes32 vs ) internal pure returns (address) { (address recovered, RecoverError error) = tryRecover(hash, r, vs); _throwError(error); return recovered; } /** * @dev Overload of {ECDSA-tryRecover} that receives the `v`, * `r` and `s` signature fields separately. * * _Available since v4.3._ */ function tryRecover( bytes32 hash, uint8 v, bytes32 r, bytes32 s ) internal pure returns (address, RecoverError) { // EIP-2 still allows signature malleability for ecrecover(). Remove this possibility and make the signature // unique. Appendix F in the Ethereum Yellow paper (https://ethereum.github.io/yellowpaper/paper.pdf), defines // the valid range for s in (301): 0 < s < secp256k1n ÷ 2 + 1, and for v in (302): v ∈ {27, 28}. Most // signatures from current libraries generate a unique signature with an s-value in the lower half order. // // If your library generates malleable signatures, such as s-values in the upper range, calculate a new s-value // with 0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFEBAAEDCE6AF48A03BBFD25E8CD0364141 - s1 and flip v from 27 to 28 or // vice versa. If your library also generates signatures with 0/1 for v instead 27/28, add 27 to v to accept // these malleable signatures as well. if (uint256(s) > 0x7FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF5D576E7357A4501DDFE92F46681B20A0) { return (address(0), RecoverError.InvalidSignatureS); } if (v != 27 && v != 28) { return (address(0), RecoverError.InvalidSignatureV); } // If the signature is valid (and not malleable), return the signer address address signer = ecrecover(hash, v, r, s); if (signer == address(0)) { return (address(0), RecoverError.InvalidSignature); } return (signer, RecoverError.NoError); } /** * @dev Overload of {ECDSA-recover} that receives the `v`, * `r` and `s` signature fields separately. */ function recover( bytes32 hash, uint8 v, bytes32 r, bytes32 s ) internal pure returns (address) { (address recovered, RecoverError error) = tryRecover(hash, v, r, s); _throwError(error); return recovered; } /** * @dev Returns an Ethereum Signed Message, created from a `hash`. This * produces hash corresponding to the one signed with the * https://eth.wiki/json-rpc/API#eth_sign[`eth_sign`] * JSON-RPC method as part of EIP-191. * * See {recover}. */ function toEthSignedMessageHash(bytes32 hash) internal pure returns (bytes32) { // 32 is the length in bytes of hash, // enforced by the type signature above return keccak256(abi.encodePacked("\x19Ethereum Signed Message:\n32", hash)); } /** * @dev Returns an Ethereum Signed Message, created from `s`. This * produces hash corresponding to the one signed with the * https://eth.wiki/json-rpc/API#eth_sign[`eth_sign`] * JSON-RPC method as part of EIP-191. * * See {recover}. */ function toEthSignedMessageHash(bytes memory s) internal pure returns (bytes32) { return keccak256(abi.encodePacked("\x19Ethereum Signed Message:\n", Strings.toString(s.length), s)); } /** * @dev Returns an Ethereum Signed Typed Data, created from a * `domainSeparator` and a `structHash`. This produces hash corresponding * to the one signed with the * https://eips.ethereum.org/EIPS/eip-712[`eth_signTypedData`] * JSON-RPC method as part of EIP-712. * * See {recover}. */ function toTypedDataHash(bytes32 domainSeparator, bytes32 structHash) internal pure returns (bytes32) { return keccak256(abi.encodePacked("\x19\x01", domainSeparator, structHash)); } }
// SPDX-License-Identifier: MIT pragma solidity 0.8.4; import "@openzeppelin/contracts/utils/Address.sol"; import "@openzeppelin/contracts/utils/Context.sol"; /** * @title SlimPaymentSplitter * @author @NiftyMike, NFT Culture (original) * @dev A drop-in slim replacement version of OZ's Payment Splitter. All ERC-20 token functionality removed. * * Based on OpenZeppelin Contracts v4.4.1 (finance/PaymentSplitter.sol) */ contract SlimPaymentSplitter is Context { event PayeeAdded(address account, uint256 shares); event PaymentReleased(address to, uint256 amount); event AllPaymentsReleased(address[] to, uint256[] amount); event PaymentReceived(address from, uint256 amount); uint256 private _totalShares; uint256 private _totalReleased; mapping(address => uint256) private _shares; mapping(address => uint256) private _released; address[] private _payees; /** * @dev Creates an instance of `PaymentSplitter` where each account in `payees` is assigned the number of shares at * the matching position in the `shares` array. * * All addresses in `payees` must be non-zero. Both arrays must have the same non-zero length, and there must be no * duplicates in `payees`. */ constructor(address[] memory payees, uint256[] memory shares_) payable { require(payees.length == shares_.length, "payees and shares mismatch"); require(payees.length > 0, "no payees"); for (uint256 i = 0; i < payees.length; i++) { _addPayee(payees[i], shares_[i]); } } /** * @dev The Ether received will be logged with {PaymentReceived} events. Note that these events are not fully * reliable: it's possible for a contract to receive Ether without triggering this function. This only affects the * reliability of the events, and not the actual splitting of Ether. * * To learn more about this see the Solidity documentation for * https://solidity.readthedocs.io/en/latest/contracts.html#fallback-function[fallback * functions]. */ receive() external payable virtual { emit PaymentReceived(_msgSender(), msg.value); } /** * @dev Getter for the total shares held by payees. */ function totalShares() public view returns (uint256) { return _totalShares; } /** * @dev Getter for the total amount of Ether already released. */ function totalReleased() public view returns (uint256) { return _totalReleased; } /** * @dev Getter for the total number of payees. */ function totalPayees() public view returns (uint256) { return _payees.length; } /** * @dev Getter for the amount of shares held by an account. */ function shares(address account) public view returns (uint256) { return _shares[account]; } /** * @dev Getter for the amount of Ether already released to a payee. */ function released(address account) public view returns (uint256) { return _released[account]; } /** * @dev Getter for the address of the payee number `index`. */ function payee(uint256 index) public view returns (address) { return _payees[index]; } /** * @dev Triggers a transfer to `account` of the amount of Ether they are owed, according to their percentage of the * total shares and their previous withdrawals. */ function release(address payable account) public virtual { require(_shares[account] > 0, "account has no shares"); uint256 totalReceived = address(this).balance + totalReleased(); uint256 payment = _pendingPayment( account, totalReceived, released(account) ); require(payment != 0, "account is not due payment"); _released[account] += payment; _totalReleased += payment; Address.sendValue(account, payment); emit PaymentReleased(account, payment); } /** * @dev Triggers a release for all of the accounts in the royalty pool. */ function releaseAll() public { uint256 total = totalPayees(); address[] memory _tos = new address[](total); uint256[] memory _amounts = new uint256[](total); for (uint256 i = 0; i < total; i++) { address payable to = payable(_payees[i]); uint256 amount = _shares[to]; require(amount != uint256(0), "Share amount is zero"); _amounts[i] = amount; _tos[i] = to; release(to); } emit AllPaymentsReleased(_tos, _amounts); } /** * @dev internal logic for computing the pending payment of an `account` given the token historical balances and * already released amounts. */ function _pendingPayment( address account, uint256 totalReceived, uint256 alreadyReleased ) private view returns (uint256) { return (totalReceived * _shares[account]) / _totalShares - alreadyReleased; } /** * @dev Add a new payee to the contract. * @param account The address of the payee to add. * @param shares_ The number of shares owned by the payee. */ function _addPayee(address account, uint256 shares_) private { require(account != address(0), "account is the zero address"); require(shares_ > 0, "shares are 0"); require(_shares[account] == 0, "account already has shares"); _payees.push(account); _shares[account] = shares_; _totalShares = _totalShares + shares_; emit PayeeAdded(account, shares_); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/Address.sol) pragma solidity ^0.8.0; /** * @dev Collection of functions related to the address type */ library Address { /** * @dev Returns true if `account` is a contract. * * [IMPORTANT] * ==== * It is unsafe to assume that an address for which this function returns * false is an externally-owned account (EOA) and not a contract. * * Among others, `isContract` will return false for the following * types of addresses: * * - an externally-owned account * - a contract in construction * - an address where a contract will be created * - an address where a contract lived, but was destroyed * ==== */ function isContract(address account) internal view returns (bool) { // This method relies on extcodesize, which returns 0 for contracts in // construction, since the code is only stored at the end of the // constructor execution. uint256 size; assembly { size := extcodesize(account) } return size > 0; } /** * @dev Replacement for Solidity's `transfer`: sends `amount` wei to * `recipient`, forwarding all available gas and reverting on errors. * * https://eips.ethereum.org/EIPS/eip-1884[EIP1884] increases the gas cost * of certain opcodes, possibly making contracts go over the 2300 gas limit * imposed by `transfer`, making them unable to receive funds via * `transfer`. {sendValue} removes this limitation. * * https://diligence.consensys.net/posts/2019/09/stop-using-soliditys-transfer-now/[Learn more]. * * IMPORTANT: because control is transferred to `recipient`, care must be * taken to not create reentrancy vulnerabilities. Consider using * {ReentrancyGuard} or the * https://solidity.readthedocs.io/en/v0.5.11/security-considerations.html#use-the-checks-effects-interactions-pattern[checks-effects-interactions pattern]. */ function sendValue(address payable recipient, uint256 amount) internal { require(address(this).balance >= amount, "Address: insufficient balance"); (bool success, ) = recipient.call{value: amount}(""); require(success, "Address: unable to send value, recipient may have reverted"); } /** * @dev Performs a Solidity function call using a low level `call`. A * plain `call` is an unsafe replacement for a function call: use this * function instead. * * If `target` reverts with a revert reason, it is bubbled up by this * function (like regular Solidity function calls). * * Returns the raw returned data. To convert to the expected return value, * use https://solidity.readthedocs.io/en/latest/units-and-global-variables.html?highlight=abi.decode#abi-encoding-and-decoding-functions[`abi.decode`]. * * Requirements: * * - `target` must be a contract. * - calling `target` with `data` must not revert. * * _Available since v3.1._ */ function functionCall(address target, bytes memory data) internal returns (bytes memory) { return functionCall(target, data, "Address: low-level call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], but with * `errorMessage` as a fallback revert reason when `target` reverts. * * _Available since v3.1._ */ function functionCall( address target, bytes memory data, string memory errorMessage ) internal returns (bytes memory) { return functionCallWithValue(target, data, 0, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but also transferring `value` wei to `target`. * * Requirements: * * - the calling contract must have an ETH balance of at least `value`. * - the called Solidity function must be `payable`. * * _Available since v3.1._ */ function functionCallWithValue( address target, bytes memory data, uint256 value ) internal returns (bytes memory) { return functionCallWithValue(target, data, value, "Address: low-level call with value failed"); } /** * @dev Same as {xref-Address-functionCallWithValue-address-bytes-uint256-}[`functionCallWithValue`], but * with `errorMessage` as a fallback revert reason when `target` reverts. * * _Available since v3.1._ */ function functionCallWithValue( address target, bytes memory data, uint256 value, string memory errorMessage ) internal returns (bytes memory) { require(address(this).balance >= value, "Address: insufficient balance for call"); require(isContract(target), "Address: call to non-contract"); (bool success, bytes memory returndata) = target.call{value: value}(data); return verifyCallResult(success, returndata, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but performing a static call. * * _Available since v3.3._ */ function functionStaticCall(address target, bytes memory data) internal view returns (bytes memory) { return functionStaticCall(target, data, "Address: low-level static call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`], * but performing a static call. * * _Available since v3.3._ */ function functionStaticCall( address target, bytes memory data, string memory errorMessage ) internal view returns (bytes memory) { require(isContract(target), "Address: static call to non-contract"); (bool success, bytes memory returndata) = target.staticcall(data); return verifyCallResult(success, returndata, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but performing a delegate call. * * _Available since v3.4._ */ function functionDelegateCall(address target, bytes memory data) internal returns (bytes memory) { return functionDelegateCall(target, data, "Address: low-level delegate call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`], * but performing a delegate call. * * _Available since v3.4._ */ function functionDelegateCall( address target, bytes memory data, string memory errorMessage ) internal returns (bytes memory) { require(isContract(target), "Address: delegate call to non-contract"); (bool success, bytes memory returndata) = target.delegatecall(data); return verifyCallResult(success, returndata, errorMessage); } /** * @dev Tool to verifies that a low level call was successful, and revert if it wasn't, either by bubbling the * revert reason using the provided one. * * _Available since v4.3._ */ function verifyCallResult( bool success, bytes memory returndata, string memory errorMessage ) internal pure returns (bytes memory) { if (success) { return returndata; } else { // Look for revert reason and bubble it up if present if (returndata.length > 0) { // The easiest way to bubble the revert reason is using memory via assembly assembly { let returndata_size := mload(returndata) revert(add(32, returndata), returndata_size) } } else { revert(errorMessage); } } } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (interfaces/IERC165.sol) pragma solidity ^0.8.0; import "../utils/introspection/IERC165.sol";
// 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 (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 be 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 v4.4.1 (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. 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. 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 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 v4.4.1 (utils/Strings.sol) pragma solidity ^0.8.0; /** * @dev String operations. */ library Strings { bytes16 private constant _HEX_SYMBOLS = "0123456789abcdef"; /** * @dev Converts a `uint256` to its ASCII `string` decimal representation. */ function toString(uint256 value) internal pure returns (string memory) { // Inspired by OraclizeAPI's implementation - MIT licence // https://github.com/oraclize/ethereum-api/blob/b42146b063c7d6ee1358846c198246239e9360e8/oraclizeAPI_0.4.25.sol if (value == 0) { return "0"; } uint256 temp = value; uint256 digits; while (temp != 0) { digits++; temp /= 10; } bytes memory buffer = new bytes(digits); while (value != 0) { digits -= 1; buffer[digits] = bytes1(uint8(48 + uint256(value % 10))); value /= 10; } return string(buffer); } /** * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation. */ function toHexString(uint256 value) internal pure returns (string memory) { if (value == 0) { return "0x00"; } uint256 temp = value; uint256 length = 0; while (temp != 0) { length++; temp >>= 8; } return toHexString(value, length); } /** * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation with fixed length. */ function toHexString(uint256 value, uint256 length) internal pure returns (string memory) { bytes memory buffer = new bytes(2 * length + 2); buffer[0] = "0"; buffer[1] = "x"; for (uint256 i = 2 * length + 1; i > 1; --i) { buffer[i] = _HEX_SYMBOLS[value & 0xf]; value >>= 4; } require(value == 0, "Strings: hex length insufficient"); return string(buffer); } }
{ "optimizer": { "enabled": true, "runs": 1000 }, "outputSelection": { "*": { "*": [ "evm.bytecode", "evm.deployedBytecode", "devdoc", "userdoc", "metadata", "abi" ] } }, "libraries": {} }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"inputs":[{"internalType":"string","name":"_symbol","type":"string"},{"internalType":"string","name":"_name","type":"string"},{"internalType":"string","name":"_uri","type":"string"}],"stateMutability":"nonpayable","type":"constructor"},{"inputs":[{"internalType":"uint256","name":"available","type":"uint256"},{"internalType":"uint256","name":"required","type":"uint256"}],"name":"InsufficientBalance","type":"error"},{"inputs":[{"internalType":"uint256","name":"trying","type":"uint256"},{"internalType":"uint256","name":"allowed","type":"uint256"}],"name":"MaxPerWalletCap","type":"error"},{"inputs":[{"internalType":"uint256","name":"trying","type":"uint256"},{"internalType":"uint256","name":"allowed","type":"uint256"}],"name":"MaxSupplyExceeded","type":"error"},{"inputs":[{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"NotFree","type":"error"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address[]","name":"to","type":"address[]"},{"indexed":false,"internalType":"uint256[]","name":"amount","type":"uint256[]"}],"name":"AllPaymentsReleased","type":"event"},{"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":"string","name":"oldBaseUri","type":"string"},{"indexed":false,"internalType":"string","name":"newBaseUri","type":"string"}],"name":"BaseUriUpdated","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"oldCost","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"newCost","type":"uint256"}],"name":"CostUpdated","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":"address","name":"account","type":"address"},{"indexed":false,"internalType":"uint256","name":"shares","type":"uint256"}],"name":"PayeeAdded","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"from","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"PaymentReceived","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"to","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"PaymentReleased","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"string","name":"_value","type":"string"},{"indexed":true,"internalType":"uint256","name":"_id","type":"uint256"}],"name":"PermanentURI","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"minter","type":"address"},{"indexed":false,"internalType":"address","name":"recipient","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"ReservedToken","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"enum FOMOPASS.Status","name":"status","type":"uint8"}],"name":"StatusChanged","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"mintedBy","type":"address"},{"indexed":true,"internalType":"uint256","name":"id","type":"uint256"},{"indexed":true,"internalType":"uint256","name":"quantity","type":"uint256"}],"name":"TokensMinted","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":[],"name":"MAX_PER_WALLET_LIMIT","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"PASS_ALL_ACCESS_ID","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"PASS_EVENTS_ONLY_ID","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","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":[{"internalType":"uint256","name":"id","type":"uint256"}],"name":"cost","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"id","type":"uint256"}],"name":"exists","outputs":[{"internalType":"bool","name":"","type":"bool"}],"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":"id","type":"uint256"}],"name":"maxBatchSize","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"id","type":"uint256"}],"name":"maxSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"metadataFinalised","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"metadataRevealed","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"id","type":"uint256"},{"internalType":"uint256","name":"quantity","type":"uint256"}],"name":"mint","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":[{"internalType":"uint256","name":"index","type":"uint256"}],"name":"payee","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address payable","name":"account","type":"address"}],"name":"release","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"releaseAll","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"releaseToSelf","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"released","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address[]","name":"frens","type":"address[]"},{"internalType":"uint256","name":"id","type":"uint256"},{"internalType":"uint256","name":"quantity","type":"uint256"}],"name":"reserve","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"fren","type":"address"},{"internalType":"uint256","name":"id","type":"uint256"},{"internalType":"uint256","name":"quantity","type":"uint256"}],"name":"reserveSingle","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_tokenId","type":"uint256"},{"internalType":"uint256","name":"_salePrice","type":"uint256"}],"name":"royaltyInfo","outputs":[{"internalType":"address","name":"receiver","type":"address"},{"internalType":"uint256","name":"royaltyAmount","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":"uint256","name":"id","type":"uint256"},{"internalType":"uint256","name":"quantity","type":"uint256"}],"name":"setMaxBatchSize","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"id","type":"uint256"},{"internalType":"uint256","name":"quantity","type":"uint256"}],"name":"setMaxSupply","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"id","type":"uint256"},{"internalType":"uint256","name":"_cost","type":"uint256"}],"name":"setMintCost","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newRecipient","type":"address"}],"name":"setRoyalties","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"enum FOMOPASS.Status","name":"_status","type":"uint8"}],"name":"setStatus","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"id","type":"uint256"},{"internalType":"string","name":"_uri","type":"string"}],"name":"setTokenUri","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"shares","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"status","outputs":[{"internalType":"enum FOMOPASS.Status","name":"","type":"uint8"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes4","name":"interfaceId","type":"bytes4"}],"name":"supportsInterface","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"tokensReserved","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalPayees","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalReleased","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalShares","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"id","type":"uint256"}],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","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"},{"stateMutability":"payable","type":"receive"}]
Contract Creation Code
60a060405273b1759409c127de32974b14c6390738920c74847e60809081526200002e906000906001620006c4565b506040805160208101909152606481526200004d90600190816200072e565b503480156200005b57600080fd5b50604051620042ed380380620042ed8339810160408190526200007e91620008b8565b8282826000805480602002602001604051908101604052809291908181526020018280548015620000d957602002820191906000526020600020905b81546001600160a01b03168152600190910190602001808311620000ba575b505050505060018054806020026020016040519081016040528092919081815260200182805480156200012c57602002820191906000526020600020905b81548152602001906001019080831162000117575b50505050508181846200014581620004a160201b60201c565b5080518251146200019d5760405162461bcd60e51b815260206004820152601a60248201527f70617965657320616e6420736861726573206d69736d6174636800000000000060448201526064015b60405180910390fd5b6000825111620001dc5760405162461bcd60e51b81526020600482015260096024820152686e6f2070617965657360b81b604482015260640162000194565b60005b825181101562000260576200024b8382815181106200020e57634e487b7160e01b600052603260045260246000fd5b60200260200101518383815181106200023757634e487b7160e01b600052603260045260246000fd5b6020026020010151620004ba60201b60201c565b8062000257816200099d565b915050620001df565b5050506200027d620002776200066e60201b60201c565b62000672565b600a805460ff60a01b191690556001600c558351620002a490600e90602087019062000771565b508451620002ba90600f90602088019062000771565b50600a54601080546001600160a01b0319166001600160a01b03909216919091179055600080526014602090815267016345785d8a00007f4f26c3876aa9f4b92579780beea1161a61f87ebf1ec6ee865b299e447ecba99c556040805160608101909152603c808252909162004275908301396000805260136020908152815162000369927f8fa6efc3be94b5b348b21fea823fe8d100408cee9b7f90524494500445d8ff6c92019062000771565b5060c87fa31547ce6245cdb9ecea19cf8c7eb9f5974025bb4075011409251ae855b30aed5560197f0263c2b778d062355049effc2dece97bc6547ff8a88a3258daa512061c2153dd5560016000526014602090815266b1a2bc2ec500007fb6c61a840592cc84133e4b25bd509abf4659307c57b160799b38490a5aa48f2c556040805160608101909152603c8082529091620042b19083013960016000526013602090815281516200043f927f4155c2f711f2cdd34f8262ab8fb9b7020a700fe7b6948222152f7670d1fdf34d92019062000771565b50506001600052505061012c7f27739e4bb5e6f8b5e4b57a047dca8767cc9b982a011081e086cbb0dfa9de818d5550506016602052505060197f4c4dc693d7db52f85fe052106f4b4b920e78e8ef37dee82878a60ab8585faf495550620009e7565b8051620004b690600490602084019062000771565b5050565b6001600160a01b038216620005125760405162461bcd60e51b815260206004820152601b60248201527f6163636f756e7420697320746865207a65726f20616464726573730000000000604482015260640162000194565b60008111620005535760405162461bcd60e51b815260206004820152600c60248201526b07368617265732061726520360a41b604482015260640162000194565b6001600160a01b03821660009081526007602052604090205415620005bb5760405162461bcd60e51b815260206004820152601a60248201527f6163636f756e7420616c72656164792068617320736861726573000000000000604482015260640162000194565b60098054600181019091557f6e1540171b6c0c960b71a7020d9f60077f6af931a8bbf590da0223dacf75c7af0180546001600160a01b0319166001600160a01b03841690811790915560009081526007602052604090208190556005546200062590829062000945565b600555604080516001600160a01b0384168152602081018390527f40c340f65e17194d14ddddb073d3c9f888e3cb52b5aae0c6c7706b4fbc905fac910160405180910390a15050565b3390565b600a80546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b8280548282559060005260206000209081019282156200071c579160200282015b828111156200071c57825182546001600160a01b0319166001600160a01b03909116178255602090920191600190910190620006e5565b506200072a929150620007ee565b5090565b8280548282559060005260206000209081019282156200071c579160200282015b828111156200071c578251829060ff169055916020019190600101906200074f565b8280546200077f9062000960565b90600052602060002090601f016020900481019282620007a357600085556200071c565b82601f10620007be57805160ff19168380011785556200071c565b828001600101855582156200071c579182015b828111156200071c578251825591602001919060010190620007d1565b5b808211156200072a5760008155600101620007ef565b600082601f83011262000816578081fd5b81516001600160401b0380821115620008335762000833620009d1565b604051601f8301601f19908116603f011681019082821181831017156200085e576200085e620009d1565b816040528381526020925086838588010111156200087a578485fd5b8491505b838210156200089d57858201830151818301840152908201906200087e565b83821115620008ae57848385830101525b9695505050505050565b600080600060608486031215620008cd578283fd5b83516001600160401b0380821115620008e4578485fd5b620008f28783880162000805565b9450602086015191508082111562000908578384fd5b620009168783880162000805565b935060408601519150808211156200092c578283fd5b506200093b8682870162000805565b9150509250925092565b600082198211156200095b576200095b620009bb565b500190565b600181811c908216806200097557607f821691505b602082108114156200099757634e487b7160e01b600052602260045260246000fd5b50919050565b6000600019821415620009b457620009b4620009bb565b5060010190565b634e487b7160e01b600052601160045260246000fd5b634e487b7160e01b600052604160045260246000fd5b61387e80620009f76000396000f3fe60806040526004361061030b5760003560e01c80635cf894861161019a57806395d89b41116100e1578063dcc7ba241161008a578063e985e9c511610064578063e985e9c514610915578063f242432a1461095e578063f2fde38b1461097e57600080fd5b8063dcc7ba24146108d1578063e228c6fe146108eb578063e33b7de31461090057600080fd5b8063bc5387e4116100bb578063bc5387e414610859578063bd85b0391461086e578063ce7c2ac21461089b57600080fd5b806395d89b41146107ee5780639852595c14610803578063a22cb4651461083957600080fd5b80638456cb59116101435780638da5cb5b1161011d5780638da5cb5b146107835780639097548d146107a157806394a50fae146107ce57600080fd5b80638456cb5914610709578063869f75941461071e5780638b83209b1461074b57600080fd5b8063773b27ff11610174578063773b27ff146106b55780637c86bcb8146106d557806380b0f684146106f457600080fd5b80635cf894861461066b578063715018a61461068b57806371b5bba6146106a057600080fd5b80632eb2c2d61161025e5780634f558e79116102075780635b701c97116101e15780635b701c97146106175780635be7fde8146106375780635c975abb1461064c57600080fd5b80634f558e79146105b3578063537d3e0e146105e257806357f7789e146105f757600080fd5b80633f4ba83a116102385780633f4ba83a1461055b578063433adb05146105705780634e1273f41461058657600080fd5b80632eb2c2d61461050657806337da577c146105265780633a98ef391461054657600080fd5b806319165587116102c05780632a55205a1161029a5780632a55205a146104875780632a9e63c6146104c65780632e49d78b146104e657600080fd5b8063191655871461042b5780631b2ef1ca1461044d578063200d2ed21461046057600080fd5b806306fdde03116102f157806306fdde03146103bc5780630e89341c146103de578063171aa5e2146103fe57600080fd5b8062fdd58e1461035957806301ffc9a71461038c57600080fd5b36610354577f6ef95f06320e7a25a04a175ca677b7052bdd97131872c2192525a629f51be77033604080516001600160a01b0390921682523460208301520160405180910390a1005b600080fd5b34801561036557600080fd5b50610379610374366004613210565b61099e565b6040519081526020015b60405180910390f35b34801561039857600080fd5b506103ac6103a736600461331c565b610a49565b6040519015158152602001610383565b3480156103c857600080fd5b506103d1610a8d565b60405161038391906135e9565b3480156103ea57600080fd5b506103d16103f9366004613373565b610b1f565b34801561040a57600080fd5b50610379610419366004613373565b60009081526016602052604090205490565b34801561043757600080fd5b5061044b61044636600461307a565b610bc1565b005b61044b61045b3660046133d9565b610c15565b34801561046c57600080fd5b50600d5461047a9060ff1681565b60405161038391906135c1565b34801561049357600080fd5b506104a76104a23660046133d9565b610d3e565b604080516001600160a01b039093168352602083019190915201610383565b3480156104d257600080fd5b5061044b6104e136600461307a565b610d73565b3480156104f257600080fd5b5061044b610501366004613354565b610dc4565b34801561051257600080fd5b5061044b6105213660046130ce565b610e78565b34801561053257600080fd5b5061044b6105413660046133d9565b610f1a565b34801561055257600080fd5b50600554610379565b34801561056757600080fd5b5061044b610f74565b34801561057c57600080fd5b5061037960115481565b34801561059257600080fd5b506105a66105a136600461326f565b610fc6565b6040516103839190613580565b3480156105bf57600080fd5b506103ac6105ce366004613373565b6000908152600b6020526040902054151590565b3480156105ee57600080fd5b50610379603281565b34801561060357600080fd5b5061044b61061236600461338b565b61113c565b34801561062357600080fd5b5061044b6106323660046133d9565b6111a8565b34801561064357600080fd5b5061044b61124e565b34801561065857600080fd5b50600a54600160a01b900460ff166103ac565b34801561067757600080fd5b5061044b6106863660046133d9565b611466565b34801561069757600080fd5b5061044b6114c0565b3480156106ac57600080fd5b50600954610379565b3480156106c157600080fd5b5061044b6106d03660046132d0565b611512565b3480156106e157600080fd5b506012546103ac90610100900460ff1681565b34801561070057600080fd5b50610379600081565b34801561071557600080fd5b5061044b6116f0565b34801561072a57600080fd5b50610379610739366004613373565b60009081526015602052604090205490565b34801561075757600080fd5b5061076b610766366004613373565b611740565b6040516001600160a01b039091168152602001610383565b34801561078f57600080fd5b50600a546001600160a01b031661076b565b3480156107ad57600080fd5b506103796107bc366004613373565b60009081526014602052604090205490565b3480156107da57600080fd5b5061044b6107e936600461323b565b61177e565b3480156107fa57600080fd5b506103d16118ae565b34801561080f57600080fd5b5061037961081e36600461307a565b6001600160a01b031660009081526008602052604090205490565b34801561084557600080fd5b5061044b6108543660046131df565b6118bd565b34801561086557600080fd5b50610379600181565b34801561087a57600080fd5b50610379610889366004613373565b6000908152600b602052604090205490565b3480156108a757600080fd5b506103796108b636600461307a565b6001600160a01b031660009081526007602052604090205490565b3480156108dd57600080fd5b506012546103ac9060ff1681565b3480156108f757600080fd5b5061044b6118cc565b34801561090c57600080fd5b50600654610379565b34801561092157600080fd5b506103ac610930366004613096565b6001600160a01b03918216600090815260036020908152604080832093909416825291909152205460ff1690565b34801561096a57600080fd5b5061044b610979366004613178565b6118d5565b34801561098a57600080fd5b5061044b61099936600461307a565b611970565b60006001600160a01b038316610a215760405162461bcd60e51b815260206004820152602b60248201527f455243313135353a2062616c616e636520717565727920666f7220746865207a60448201527f65726f206164647265737300000000000000000000000000000000000000000060648201526084015b60405180910390fd5b5060009081526002602090815260408083206001600160a01b03949094168352929052205490565b60006001600160e01b031982167f2a55205a000000000000000000000000000000000000000000000000000000001480610a875750610a8782611a3d565b92915050565b6060600e8054610a9c90613682565b80601f0160208091040260200160405190810160405280929190818152602001828054610ac890613682565b8015610b155780601f10610aea57610100808354040283529160200191610b15565b820191906000526020600020905b815481529060010190602001808311610af857829003601f168201915b5050505050905090565b6000818152601360205260409020805460609190610b3c90613682565b80601f0160208091040260200160405190810160405280929190818152602001828054610b6890613682565b8015610bb55780601f10610b8a57610100808354040283529160200191610bb5565b820191906000526020600020905b815481529060010190602001808311610b9857829003601f168201915b50505050509050919050565b600a546001600160a01b03163314610c095760405162461bcd60e51b815260206004820181905260248201526000805160206138298339815191526044820152606401610a18565b610c1281611ad8565b50565b6002600c541415610c685760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c006044820152606401610a18565b6002600c55323314610cbc5760405162461bcd60e51b815260206004820152600c60248201527f4d757374206265207573657200000000000000000000000000000000000000006044820152606401610a18565b610cc4611c5e565b610cce8282611ce4565b610cd88282611d57565b610ce181611dcd565b610ceb8282611e1d565b610d0633838360405180602001604052806000815250611eab565b6040518190839033907f2e8ac5177a616f2aec08c3048f5021e4e9743ece034e8d83ba5caf76688bb47590600090a450506001600c55565b60105460009081906001600160a01b0316612710610d5e856101f461364c565b610d689190613638565b915091509250929050565b600a546001600160a01b03163314610dbb5760405162461bcd60e51b815260206004820181905260248201526000805160206138298339815191526044820152606401610a18565b610c1281611fd9565b600a546001600160a01b03163314610e0c5760405162461bcd60e51b815260206004820181905260248201526000805160206138298339815191526044820152606401610a18565b600d805482919060ff19166001836002811115610e3957634e487b7160e01b600052602160045260246000fd5b02179055507fafa725e7f44cadb687a7043853fa1a7e7b8f0da74ce87ec546e9420f04da8c1e81604051610e6d91906135c1565b60405180910390a150565b6001600160a01b038516331480610e945750610e948533610930565b610f065760405162461bcd60e51b815260206004820152603260248201527f455243313135353a207472616e736665722063616c6c6572206973206e6f742060448201527f6f776e6572206e6f7220617070726f76656400000000000000000000000000006064820152608401610a18565b610f13858585858561205e565b5050505050565b600a546001600160a01b03163314610f625760405162461bcd60e51b815260206004820181905260248201526000805160206138298339815191526044820152606401610a18565b60009182526015602052604090912055565b600a546001600160a01b03163314610fbc5760405162461bcd60e51b815260206004820181905260248201526000805160206138298339815191526044820152606401610a18565b610fc46122fe565b565b6060815183511461103f5760405162461bcd60e51b815260206004820152602960248201527f455243313135353a206163636f756e747320616e6420696473206c656e67746860448201527f206d69736d6174636800000000000000000000000000000000000000000000006064820152608401610a18565b6000835167ffffffffffffffff81111561106957634e487b7160e01b600052604160045260246000fd5b604051908082528060200260200182016040528015611092578160200160208202803683370190505b50905060005b8451811015611134576110f98582815181106110c457634e487b7160e01b600052603260045260246000fd5b60200260200101518583815181106110ec57634e487b7160e01b600052603260045260246000fd5b602002602001015161099e565b82828151811061111957634e487b7160e01b600052603260045260246000fd5b602090810291909101015261112d816136ea565b9050611098565b509392505050565b600a546001600160a01b031633146111845760405162461bcd60e51b815260206004820181905260248201526000805160206138298339815191526044820152606401610a18565b600082815260136020908152604090912082516111a392840190612e79565b505050565b600a546001600160a01b031633146111f05760405162461bcd60e51b815260206004820181905260248201526000805160206138298339815191526044820152606401610a18565b6111f9816123a4565b6000828152601460209081526040918290208054908490558251818152918201849052917f09dec0a03ec247fc6eb57462f0c95194f19a7126f4a1dcd0468afc039dd629c791015b60405180910390a1505050565b600061125960095490565b905060008167ffffffffffffffff81111561128457634e487b7160e01b600052604160045260246000fd5b6040519080825280602002602001820160405280156112ad578160200160208202803683370190505b50905060008267ffffffffffffffff8111156112d957634e487b7160e01b600052604160045260246000fd5b604051908082528060200260200182016040528015611302578160200160208202803683370190505b50905060005b838110156114345760006009828154811061133357634e487b7160e01b600052603260045260246000fd5b60009182526020808320909101546001600160a01b03168083526007909152604090912054909150806113a85760405162461bcd60e51b815260206004820152601460248201527f536861726520616d6f756e74206973207a65726f0000000000000000000000006044820152606401610a18565b808484815181106113c957634e487b7160e01b600052603260045260246000fd5b602002602001018181525050818584815181106113f657634e487b7160e01b600052603260045260246000fd5b60200260200101906001600160a01b031690816001600160a01b03168152505061141f82610bc1565b5050808061142c906136ea565b915050611308565b507f7e6ea35d693233e59d454de0669d56220324db428f2609d801a47a1329f46bbb8282604051611241929190613520565b600a546001600160a01b031633146114ae5760405162461bcd60e51b815260206004820181905260248201526000805160206138298339815191526044820152606401610a18565b60009182526016602052604090912055565b600a546001600160a01b031633146115085760405162461bcd60e51b815260206004820181905260248201526000805160206138298339815191526044820152606401610a18565b610fc460006123e1565b600a546001600160a01b0316331461155a5760405162461bcd60e51b815260206004820181905260248201526000805160206138298339815191526044820152606401610a18565b61156381611dcd565b61156d8282612440565b6115778282611e1d565b60005b83518110156116ea5760006001600160a01b03168482815181106115ae57634e487b7160e01b600052603260045260246000fd5b60200260200101516001600160a01b0316141561160d5760405162461bcd60e51b815260206004820152600c60248201527f5a65726f206164647265737300000000000000000000000000000000000000006044820152606401610a18565b61163f84828151811061163057634e487b7160e01b600052603260045260246000fd5b602002602001015184846124aa565b81601160008282546116519190613620565b909155507fd729ebd340be850113adba35e3218ac6bd77c375ce35c256e3493fdf30b99f3e90503385838151811061169957634e487b7160e01b600052603260045260246000fd5b6020026020010151846040516116d0939291906001600160a01b039384168152919092166020820152604081019190915260600190565b60405180910390a1806116e2816136ea565b91505061157a565b50505050565b600a546001600160a01b031633146117385760405162461bcd60e51b815260206004820181905260248201526000805160206138298339815191526044820152606401610a18565b610fc46124cf565b60006009828154811061176357634e487b7160e01b600052603260045260246000fd5b6000918252602090912001546001600160a01b031692915050565b600a546001600160a01b031633146117c65760405162461bcd60e51b815260206004820181905260248201526000805160206138298339815191526044820152606401610a18565b6117cf81611dcd565b6117d98282612440565b6117e38282611e1d565b600082815260166020526040812054906117fd8284613638565b905060005b81811015611827576118158686856124aa565b8061181f816136ea565b915050611802565b5060006118348385613705565b90508015611847576118478686836124aa565b83601160008282546118599190613620565b9091555050604080513381526001600160a01b038816602082015280820186905290517fd729ebd340be850113adba35e3218ac6bd77c375ce35c256e3493fdf30b99f3e9181900360600190a1505050505050565b6060600f8054610a9c90613682565b6118c8338383612564565b5050565b610fc433611ad8565b6001600160a01b0385163314806118f157506118f18533610930565b6119635760405162461bcd60e51b815260206004820152602960248201527f455243313135353a2063616c6c6572206973206e6f74206f776e6572206e6f7260448201527f20617070726f76656400000000000000000000000000000000000000000000006064820152608401610a18565b610f138585858585612659565b600a546001600160a01b031633146119b85760405162461bcd60e51b815260206004820181905260248201526000805160206138298339815191526044820152606401610a18565b6001600160a01b038116611a345760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201527f64647265737300000000000000000000000000000000000000000000000000006064820152608401610a18565b610c12816123e1565b60006001600160e01b031982167fd9b67a26000000000000000000000000000000000000000000000000000000001480611aa057506001600160e01b031982167f0e89341c00000000000000000000000000000000000000000000000000000000145b80610a8757507f01ffc9a7000000000000000000000000000000000000000000000000000000006001600160e01b0319831614610a87565b6001600160a01b038116600090815260076020526040902054611b3d5760405162461bcd60e51b815260206004820152601560248201527f6163636f756e7420686173206e6f2073686172657300000000000000000000006044820152606401610a18565b6000611b4860065490565b611b529047613620565b90506000611b7f8383611b7a866001600160a01b031660009081526008602052604090205490565b6127fb565b905080611bce5760405162461bcd60e51b815260206004820152601a60248201527f6163636f756e74206973206e6f7420647565207061796d656e740000000000006044820152606401610a18565b6001600160a01b03831660009081526008602052604081208054839290611bf6908490613620565b925050819055508060066000828254611c0f9190613620565b90915550611c1f90508382612841565b604080516001600160a01b0385168152602081018390527fdf20fd1e76bc69d672e4814fafb2c449bba3a5369d8359adf9e05e6fde87b0569101611241565b600a546001600160a01b03163314610fc4576001600d5460ff166002811115611c9757634e487b7160e01b600052602160045260246000fd5b14610fc45760405162461bcd60e51b815260206004820152601a60248201527f5075626c69632073616c65206973206e6f74206163746976652e0000000000006044820152606401610a18565b600a546001600160a01b031633146118c8576000611d02338461099e565b90506000611d108383613620565b905060328111156116ea576040517f1a9bb2540000000000000000000000000000000000000000000000000000000081526004810182905260326024820152604401610a18565b60008281526014602052604081205490611d71828461364c565b90508034108015611d8d5750600a546001600160a01b03163314155b156116ea576040517fcf47918100000000000000000000000000000000000000000000000000000000815234600482015260248101829052604401610a18565b60008111610c125760405162461bcd60e51b815260206004820152601a60248201527f4d757374206d696e74206174206c65617374203120746f6b656e0000000000006044820152606401610a18565b6000828152601560205260409020548082611e44856000908152600b602052604090205490565b611e4e9190613620565b11156111a3576000838152600b6020526040902054611e6e908390613620565b6040517fea058246000000000000000000000000000000000000000000000000000000008152600481019190915260248101829052604401610a18565b6001600160a01b038416611f275760405162461bcd60e51b815260206004820152602160248201527f455243313135353a206d696e7420746f20746865207a65726f2061646472657360448201527f73000000000000000000000000000000000000000000000000000000000000006064820152608401610a18565b33611f4781600087611f388861295a565b611f418861295a565b876129b3565b60008481526002602090815260408083206001600160a01b038916845290915281208054859290611f79908490613620565b909155505060408051858152602081018590526001600160a01b0380881692600092918516917fc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f62910160405180910390a4610f1381600087878787612a75565b6001600160a01b03811661202f5760405162461bcd60e51b815260206004820152601e60248201527f726f79616c747920726563697069656e74207a65726f206164647265737300006044820152606401610a18565b6010805473ffffffffffffffffffffffffffffffffffffffff19166001600160a01b0392909216919091179055565b81518351146120d55760405162461bcd60e51b815260206004820152602860248201527f455243313135353a2069647320616e6420616d6f756e7473206c656e6774682060448201527f6d69736d617463680000000000000000000000000000000000000000000000006064820152608401610a18565b6001600160a01b0384166121395760405162461bcd60e51b815260206004820152602560248201527f455243313135353a207472616e7366657220746f20746865207a65726f206164604482015264647265737360d81b6064820152608401610a18565b336121488187878787876129b3565b60005b845181101561229057600085828151811061217657634e487b7160e01b600052603260045260246000fd5b6020026020010151905060008583815181106121a257634e487b7160e01b600052603260045260246000fd5b60209081029190910181015160008481526002835260408082206001600160a01b038e1683529093529190912054909150818110156122365760405162461bcd60e51b815260206004820152602a60248201527f455243313135353a20696e73756666696369656e742062616c616e636520666f60448201526939103a3930b739b332b960b11b6064820152608401610a18565b60008381526002602090815260408083206001600160a01b038e8116855292528083208585039055908b16825281208054849290612275908490613620565b9250508190555050505080612289906136ea565b905061214b565b50846001600160a01b0316866001600160a01b0316826001600160a01b03167f4a39dc06d4c0dbc64b70af90fd698a233a518aa5d07e595d983b8c0526c8f7fb87876040516122e0929190613593565b60405180910390a46122f6818787878787612c2a565b505050505050565b600a54600160a01b900460ff166123575760405162461bcd60e51b815260206004820152601460248201527f5061757361626c653a206e6f74207061757365640000000000000000000000006044820152606401610a18565b600a805460ff60a01b191690557f5db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa335b6040516001600160a01b03909116815260200160405180910390a1565b60008111610c12576040517f2a3c244800000000000000000000000000000000000000000000000000000000815260048101829052602401610a18565b600a80546001600160a01b0383811673ffffffffffffffffffffffffffffffffffffffff19831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b80600010801561245e57506000828152601660205260409020548111155b6118c85760405162461bcd60e51b815260206004820152601d60248201527f4d617820746f6b656e73207065722062617463682065786365656465640000006044820152606401610a18565b6124b48282611e1d565b6111a383838360405180602001604052806000815250611eab565b600a54600160a01b900460ff16156125295760405162461bcd60e51b815260206004820152601060248201527f5061757361626c653a20706175736564000000000000000000000000000000006044820152606401610a18565b600a805460ff60a01b1916600160a01b1790557f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a2586123873390565b816001600160a01b0316836001600160a01b031614156125ec5760405162461bcd60e51b815260206004820152602960248201527f455243313135353a2073657474696e6720617070726f76616c2073746174757360448201527f20666f722073656c6600000000000000000000000000000000000000000000006064820152608401610a18565b6001600160a01b03838116600081815260036020908152604080832094871680845294825291829020805460ff191686151590811790915591519182527f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a3505050565b6001600160a01b0384166126bd5760405162461bcd60e51b815260206004820152602560248201527f455243313135353a207472616e7366657220746f20746865207a65726f206164604482015264647265737360d81b6064820152608401610a18565b336126cd818787611f388861295a565b60008481526002602090815260408083206001600160a01b038a168452909152902054838110156127535760405162461bcd60e51b815260206004820152602a60248201527f455243313135353a20696e73756666696369656e742062616c616e636520666f60448201526939103a3930b739b332b960b11b6064820152608401610a18565b60008581526002602090815260408083206001600160a01b038b8116855292528083208785039055908816825281208054869290612792908490613620565b909155505060408051868152602081018690526001600160a01b03808916928a821692918616917fc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f62910160405180910390a46127f2828888888888612a75565b50505050505050565b6005546001600160a01b03841660009081526007602052604081205490918391612825908661364c565b61282f9190613638565b612839919061366b565b949350505050565b804710156128915760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a20696e73756666696369656e742062616c616e63650000006044820152606401610a18565b6000826001600160a01b03168260405160006040518083038185875af1925050503d80600081146128de576040519150601f19603f3d011682016040523d82523d6000602084013e6128e3565b606091505b50509050806111a35760405162461bcd60e51b815260206004820152603a60248201527f416464726573733a20756e61626c6520746f2073656e642076616c75652c207260448201527f6563697069656e74206d617920686176652072657665727465640000000000006064820152608401610a18565b604080516001808252818301909252606091600091906020808301908036833701905050905082816000815181106129a257634e487b7160e01b600052603260045260246000fd5b602090810291909101015292915050565b600a54600160a01b900460ff1615612a0d5760405162461bcd60e51b815260206004820152601060248201527f5061757361626c653a20706175736564000000000000000000000000000000006044820152606401610a18565b612a1b868686868686612d35565b600a54600160a01b900460ff16156122f65760405162461bcd60e51b815260206004820152601b60248201527f746f6b656e207472616e73666572207768696c652070617573656400000000006044820152606401610a18565b6001600160a01b0384163b156122f65760405163f23a6e6160e01b81526001600160a01b0385169063f23a6e6190612ab990899089908890889088906004016134dd565b602060405180830381600087803b158015612ad357600080fd5b505af1925050508015612b03575060408051601f3d908101601f19168201909252612b0091810190613338565b60015b612bb957612b0f61375b565b806308c379a01415612b495750612b24613773565b80612b2f5750612b4b565b8060405162461bcd60e51b8152600401610a1891906135e9565b505b60405162461bcd60e51b815260206004820152603460248201527f455243313135353a207472616e7366657220746f206e6f6e204552433131353560448201527f526563656976657220696d706c656d656e7465720000000000000000000000006064820152608401610a18565b6001600160e01b0319811663f23a6e6160e01b146127f25760405162461bcd60e51b815260206004820152602860248201527f455243313135353a204552433131353552656365697665722072656a656374656044820152676420746f6b656e7360c01b6064820152608401610a18565b6001600160a01b0384163b156122f65760405163bc197c8160e01b81526001600160a01b0385169063bc197c8190612c6e908990899088908890889060040161347f565b602060405180830381600087803b158015612c8857600080fd5b505af1925050508015612cb8575060408051601f3d908101601f19168201909252612cb591810190613338565b60015b612cc457612b0f61375b565b6001600160e01b0319811663bc197c8160e01b146127f25760405162461bcd60e51b815260206004820152602860248201527f455243313135353a204552433131353552656365697665722072656a656374656044820152676420746f6b656e7360c01b6064820152608401610a18565b6001600160a01b038516612dd85760005b8351811015612dd657828181518110612d6f57634e487b7160e01b600052603260045260246000fd5b6020026020010151600b6000868481518110612d9b57634e487b7160e01b600052603260045260246000fd5b602002602001015181526020019081526020016000206000828254612dc09190613620565b90915550612dcf9050816136ea565b9050612d46565b505b6001600160a01b0384166122f65760005b83518110156127f257828181518110612e1257634e487b7160e01b600052603260045260246000fd5b6020026020010151600b6000868481518110612e3e57634e487b7160e01b600052603260045260246000fd5b602002602001015181526020019081526020016000206000828254612e63919061366b565b90915550612e729050816136ea565b9050612de9565b828054612e8590613682565b90600052602060002090601f016020900481019282612ea75760008555612eed565b82601f10612ec057805160ff1916838001178555612eed565b82800160010185558215612eed579182015b82811115612eed578251825591602001919060010190612ed2565b50612ef9929150612efd565b5090565b5b80821115612ef95760008155600101612efe565b600067ffffffffffffffff831115612f2c57612f2c613745565b604051612f43601f8501601f1916602001826136bd565b809150838152848484011115612f5857600080fd5b83836020830137600060208583010152509392505050565b600082601f830112612f80578081fd5b81356020612f8d826135fc565b604051612f9a82826136bd565b8381528281019150858301600585901b87018401881015612fb9578586fd5b855b85811015612fe0578135612fce816137fd565b84529284019290840190600101612fbb565b5090979650505050505050565b600082601f830112612ffd578081fd5b8135602061300a826135fc565b60405161301782826136bd565b8381528281019150858301600585901b87018401881015613036578586fd5b855b85811015612fe057813584529284019290840190600101613038565b600082601f830112613064578081fd5b61307383833560208501612f12565b9392505050565b60006020828403121561308b578081fd5b8135613073816137fd565b600080604083850312156130a8578081fd5b82356130b3816137fd565b915060208301356130c3816137fd565b809150509250929050565b600080600080600060a086880312156130e5578081fd5b85356130f0816137fd565b94506020860135613100816137fd565b9350604086013567ffffffffffffffff8082111561311c578283fd5b61312889838a01612fed565b9450606088013591508082111561313d578283fd5b61314989838a01612fed565b9350608088013591508082111561315e578283fd5b5061316b88828901613054565b9150509295509295909350565b600080600080600060a0868803121561318f578081fd5b853561319a816137fd565b945060208601356131aa816137fd565b93506040860135925060608601359150608086013567ffffffffffffffff8111156131d3578182fd5b61316b88828901613054565b600080604083850312156131f1578182fd5b82356131fc816137fd565b9150602083013580151581146130c3578182fd5b60008060408385031215613222578182fd5b823561322d816137fd565b946020939093013593505050565b60008060006060848603121561324f578081fd5b833561325a816137fd565b95602085013595506040909401359392505050565b60008060408385031215613281578182fd5b823567ffffffffffffffff80821115613298578384fd5b6132a486838701612f70565b935060208501359150808211156132b9578283fd5b506132c685828601612fed565b9150509250929050565b6000806000606084860312156132e4578081fd5b833567ffffffffffffffff8111156132fa578182fd5b61330686828701612f70565b9660208601359650604090950135949350505050565b60006020828403121561332d578081fd5b813561307381613812565b600060208284031215613349578081fd5b815161307381613812565b600060208284031215613365578081fd5b813560038110613073578182fd5b600060208284031215613384578081fd5b5035919050565b6000806040838503121561339d578182fd5b82359150602083013567ffffffffffffffff8111156133ba578182fd5b8301601f810185136133ca578182fd5b6132c685823560208401612f12565b600080604083850312156133eb578182fd5b50508035926020909101359150565b6000815180845260208085019450808401835b838110156134295781518752958201959082019060010161340d565b509495945050505050565b60008151808452815b818110156134595760208185018101518683018201520161343d565b8181111561346a5782602083870101525b50601f01601f19169290920160200192915050565b60006001600160a01b03808816835280871660208401525060a060408301526134ab60a08301866133fa565b82810360608401526134bd81866133fa565b905082810360808401526134d18185613434565b98975050505050505050565b60006001600160a01b03808816835280871660208401525084604083015283606083015260a0608083015261351560a0830184613434565b979650505050505050565b604080825283519082018190526000906020906060840190828701845b828110156135625781516001600160a01b03168452928401929084019060010161353d565b5050508381038285015261357681866133fa565b9695505050505050565b60208152600061307360208301846133fa565b6040815260006135a660408301856133fa565b82810360208401526135b881856133fa565b95945050505050565b60208101600383106135e357634e487b7160e01b600052602160045260246000fd5b91905290565b6020815260006130736020830184613434565b600067ffffffffffffffff82111561361657613616613745565b5060051b60200190565b6000821982111561363357613633613719565b500190565b6000826136475761364761372f565b500490565b600081600019048311821515161561366657613666613719565b500290565b60008282101561367d5761367d613719565b500390565b600181811c9082168061369657607f821691505b602082108114156136b757634e487b7160e01b600052602260045260246000fd5b50919050565b601f8201601f1916810167ffffffffffffffff811182821017156136e3576136e3613745565b6040525050565b60006000198214156136fe576136fe613719565b5060010190565b6000826137145761371461372f565b500690565b634e487b7160e01b600052601160045260246000fd5b634e487b7160e01b600052601260045260246000fd5b634e487b7160e01b600052604160045260246000fd5b600060033d111561377057600481823e5160e01c5b90565b600060443d10156137815790565b6040516003193d81016004833e81513d67ffffffffffffffff81602484011181841117156137b157505050505090565b82850191508151818111156137c95750505050505090565b843d87010160208285010111156137e35750505050505090565b6137f2602082860101876136bd565b509095945050505050565b6001600160a01b0381168114610c1257600080fd5b6001600160e01b031981168114610c1257600080fdfe4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572a264697066735822122035c61ad8ab738d613da24a4c22d23509cac0db41f128d3ff0dacca6c90a8f55964736f6c63430008040033697066733a2f2f516d557644693667555a38484c617a5575757a696a34626933476f4a576f4c456732624c393541483372377169682f302e6a736f6e697066733a2f2f516d557644693667555a38484c617a5575757a696a34626933476f4a576f4c456732624c393541483372377169682f312e6a736f6e000000000000000000000000000000000000000000000000000000000000006000000000000000000000000000000000000000000000000000000000000000a000000000000000000000000000000000000000000000000000000000000000e00000000000000000000000000000000000000000000000000000000000000004484e465400000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000a48454c4c4f204e46542100000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000003f697066733a2f2f516d557644693667555a38484c617a5575757a696a34626933476f4a576f4c456732624c393541483372377169682f7b69647d2e6a736f6e00
Deployed Bytecode
0x60806040526004361061030b5760003560e01c80635cf894861161019a57806395d89b41116100e1578063dcc7ba241161008a578063e985e9c511610064578063e985e9c514610915578063f242432a1461095e578063f2fde38b1461097e57600080fd5b8063dcc7ba24146108d1578063e228c6fe146108eb578063e33b7de31461090057600080fd5b8063bc5387e4116100bb578063bc5387e414610859578063bd85b0391461086e578063ce7c2ac21461089b57600080fd5b806395d89b41146107ee5780639852595c14610803578063a22cb4651461083957600080fd5b80638456cb59116101435780638da5cb5b1161011d5780638da5cb5b146107835780639097548d146107a157806394a50fae146107ce57600080fd5b80638456cb5914610709578063869f75941461071e5780638b83209b1461074b57600080fd5b8063773b27ff11610174578063773b27ff146106b55780637c86bcb8146106d557806380b0f684146106f457600080fd5b80635cf894861461066b578063715018a61461068b57806371b5bba6146106a057600080fd5b80632eb2c2d61161025e5780634f558e79116102075780635b701c97116101e15780635b701c97146106175780635be7fde8146106375780635c975abb1461064c57600080fd5b80634f558e79146105b3578063537d3e0e146105e257806357f7789e146105f757600080fd5b80633f4ba83a116102385780633f4ba83a1461055b578063433adb05146105705780634e1273f41461058657600080fd5b80632eb2c2d61461050657806337da577c146105265780633a98ef391461054657600080fd5b806319165587116102c05780632a55205a1161029a5780632a55205a146104875780632a9e63c6146104c65780632e49d78b146104e657600080fd5b8063191655871461042b5780631b2ef1ca1461044d578063200d2ed21461046057600080fd5b806306fdde03116102f157806306fdde03146103bc5780630e89341c146103de578063171aa5e2146103fe57600080fd5b8062fdd58e1461035957806301ffc9a71461038c57600080fd5b36610354577f6ef95f06320e7a25a04a175ca677b7052bdd97131872c2192525a629f51be77033604080516001600160a01b0390921682523460208301520160405180910390a1005b600080fd5b34801561036557600080fd5b50610379610374366004613210565b61099e565b6040519081526020015b60405180910390f35b34801561039857600080fd5b506103ac6103a736600461331c565b610a49565b6040519015158152602001610383565b3480156103c857600080fd5b506103d1610a8d565b60405161038391906135e9565b3480156103ea57600080fd5b506103d16103f9366004613373565b610b1f565b34801561040a57600080fd5b50610379610419366004613373565b60009081526016602052604090205490565b34801561043757600080fd5b5061044b61044636600461307a565b610bc1565b005b61044b61045b3660046133d9565b610c15565b34801561046c57600080fd5b50600d5461047a9060ff1681565b60405161038391906135c1565b34801561049357600080fd5b506104a76104a23660046133d9565b610d3e565b604080516001600160a01b039093168352602083019190915201610383565b3480156104d257600080fd5b5061044b6104e136600461307a565b610d73565b3480156104f257600080fd5b5061044b610501366004613354565b610dc4565b34801561051257600080fd5b5061044b6105213660046130ce565b610e78565b34801561053257600080fd5b5061044b6105413660046133d9565b610f1a565b34801561055257600080fd5b50600554610379565b34801561056757600080fd5b5061044b610f74565b34801561057c57600080fd5b5061037960115481565b34801561059257600080fd5b506105a66105a136600461326f565b610fc6565b6040516103839190613580565b3480156105bf57600080fd5b506103ac6105ce366004613373565b6000908152600b6020526040902054151590565b3480156105ee57600080fd5b50610379603281565b34801561060357600080fd5b5061044b61061236600461338b565b61113c565b34801561062357600080fd5b5061044b6106323660046133d9565b6111a8565b34801561064357600080fd5b5061044b61124e565b34801561065857600080fd5b50600a54600160a01b900460ff166103ac565b34801561067757600080fd5b5061044b6106863660046133d9565b611466565b34801561069757600080fd5b5061044b6114c0565b3480156106ac57600080fd5b50600954610379565b3480156106c157600080fd5b5061044b6106d03660046132d0565b611512565b3480156106e157600080fd5b506012546103ac90610100900460ff1681565b34801561070057600080fd5b50610379600081565b34801561071557600080fd5b5061044b6116f0565b34801561072a57600080fd5b50610379610739366004613373565b60009081526015602052604090205490565b34801561075757600080fd5b5061076b610766366004613373565b611740565b6040516001600160a01b039091168152602001610383565b34801561078f57600080fd5b50600a546001600160a01b031661076b565b3480156107ad57600080fd5b506103796107bc366004613373565b60009081526014602052604090205490565b3480156107da57600080fd5b5061044b6107e936600461323b565b61177e565b3480156107fa57600080fd5b506103d16118ae565b34801561080f57600080fd5b5061037961081e36600461307a565b6001600160a01b031660009081526008602052604090205490565b34801561084557600080fd5b5061044b6108543660046131df565b6118bd565b34801561086557600080fd5b50610379600181565b34801561087a57600080fd5b50610379610889366004613373565b6000908152600b602052604090205490565b3480156108a757600080fd5b506103796108b636600461307a565b6001600160a01b031660009081526007602052604090205490565b3480156108dd57600080fd5b506012546103ac9060ff1681565b3480156108f757600080fd5b5061044b6118cc565b34801561090c57600080fd5b50600654610379565b34801561092157600080fd5b506103ac610930366004613096565b6001600160a01b03918216600090815260036020908152604080832093909416825291909152205460ff1690565b34801561096a57600080fd5b5061044b610979366004613178565b6118d5565b34801561098a57600080fd5b5061044b61099936600461307a565b611970565b60006001600160a01b038316610a215760405162461bcd60e51b815260206004820152602b60248201527f455243313135353a2062616c616e636520717565727920666f7220746865207a60448201527f65726f206164647265737300000000000000000000000000000000000000000060648201526084015b60405180910390fd5b5060009081526002602090815260408083206001600160a01b03949094168352929052205490565b60006001600160e01b031982167f2a55205a000000000000000000000000000000000000000000000000000000001480610a875750610a8782611a3d565b92915050565b6060600e8054610a9c90613682565b80601f0160208091040260200160405190810160405280929190818152602001828054610ac890613682565b8015610b155780601f10610aea57610100808354040283529160200191610b15565b820191906000526020600020905b815481529060010190602001808311610af857829003601f168201915b5050505050905090565b6000818152601360205260409020805460609190610b3c90613682565b80601f0160208091040260200160405190810160405280929190818152602001828054610b6890613682565b8015610bb55780601f10610b8a57610100808354040283529160200191610bb5565b820191906000526020600020905b815481529060010190602001808311610b9857829003601f168201915b50505050509050919050565b600a546001600160a01b03163314610c095760405162461bcd60e51b815260206004820181905260248201526000805160206138298339815191526044820152606401610a18565b610c1281611ad8565b50565b6002600c541415610c685760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c006044820152606401610a18565b6002600c55323314610cbc5760405162461bcd60e51b815260206004820152600c60248201527f4d757374206265207573657200000000000000000000000000000000000000006044820152606401610a18565b610cc4611c5e565b610cce8282611ce4565b610cd88282611d57565b610ce181611dcd565b610ceb8282611e1d565b610d0633838360405180602001604052806000815250611eab565b6040518190839033907f2e8ac5177a616f2aec08c3048f5021e4e9743ece034e8d83ba5caf76688bb47590600090a450506001600c55565b60105460009081906001600160a01b0316612710610d5e856101f461364c565b610d689190613638565b915091509250929050565b600a546001600160a01b03163314610dbb5760405162461bcd60e51b815260206004820181905260248201526000805160206138298339815191526044820152606401610a18565b610c1281611fd9565b600a546001600160a01b03163314610e0c5760405162461bcd60e51b815260206004820181905260248201526000805160206138298339815191526044820152606401610a18565b600d805482919060ff19166001836002811115610e3957634e487b7160e01b600052602160045260246000fd5b02179055507fafa725e7f44cadb687a7043853fa1a7e7b8f0da74ce87ec546e9420f04da8c1e81604051610e6d91906135c1565b60405180910390a150565b6001600160a01b038516331480610e945750610e948533610930565b610f065760405162461bcd60e51b815260206004820152603260248201527f455243313135353a207472616e736665722063616c6c6572206973206e6f742060448201527f6f776e6572206e6f7220617070726f76656400000000000000000000000000006064820152608401610a18565b610f13858585858561205e565b5050505050565b600a546001600160a01b03163314610f625760405162461bcd60e51b815260206004820181905260248201526000805160206138298339815191526044820152606401610a18565b60009182526015602052604090912055565b600a546001600160a01b03163314610fbc5760405162461bcd60e51b815260206004820181905260248201526000805160206138298339815191526044820152606401610a18565b610fc46122fe565b565b6060815183511461103f5760405162461bcd60e51b815260206004820152602960248201527f455243313135353a206163636f756e747320616e6420696473206c656e67746860448201527f206d69736d6174636800000000000000000000000000000000000000000000006064820152608401610a18565b6000835167ffffffffffffffff81111561106957634e487b7160e01b600052604160045260246000fd5b604051908082528060200260200182016040528015611092578160200160208202803683370190505b50905060005b8451811015611134576110f98582815181106110c457634e487b7160e01b600052603260045260246000fd5b60200260200101518583815181106110ec57634e487b7160e01b600052603260045260246000fd5b602002602001015161099e565b82828151811061111957634e487b7160e01b600052603260045260246000fd5b602090810291909101015261112d816136ea565b9050611098565b509392505050565b600a546001600160a01b031633146111845760405162461bcd60e51b815260206004820181905260248201526000805160206138298339815191526044820152606401610a18565b600082815260136020908152604090912082516111a392840190612e79565b505050565b600a546001600160a01b031633146111f05760405162461bcd60e51b815260206004820181905260248201526000805160206138298339815191526044820152606401610a18565b6111f9816123a4565b6000828152601460209081526040918290208054908490558251818152918201849052917f09dec0a03ec247fc6eb57462f0c95194f19a7126f4a1dcd0468afc039dd629c791015b60405180910390a1505050565b600061125960095490565b905060008167ffffffffffffffff81111561128457634e487b7160e01b600052604160045260246000fd5b6040519080825280602002602001820160405280156112ad578160200160208202803683370190505b50905060008267ffffffffffffffff8111156112d957634e487b7160e01b600052604160045260246000fd5b604051908082528060200260200182016040528015611302578160200160208202803683370190505b50905060005b838110156114345760006009828154811061133357634e487b7160e01b600052603260045260246000fd5b60009182526020808320909101546001600160a01b03168083526007909152604090912054909150806113a85760405162461bcd60e51b815260206004820152601460248201527f536861726520616d6f756e74206973207a65726f0000000000000000000000006044820152606401610a18565b808484815181106113c957634e487b7160e01b600052603260045260246000fd5b602002602001018181525050818584815181106113f657634e487b7160e01b600052603260045260246000fd5b60200260200101906001600160a01b031690816001600160a01b03168152505061141f82610bc1565b5050808061142c906136ea565b915050611308565b507f7e6ea35d693233e59d454de0669d56220324db428f2609d801a47a1329f46bbb8282604051611241929190613520565b600a546001600160a01b031633146114ae5760405162461bcd60e51b815260206004820181905260248201526000805160206138298339815191526044820152606401610a18565b60009182526016602052604090912055565b600a546001600160a01b031633146115085760405162461bcd60e51b815260206004820181905260248201526000805160206138298339815191526044820152606401610a18565b610fc460006123e1565b600a546001600160a01b0316331461155a5760405162461bcd60e51b815260206004820181905260248201526000805160206138298339815191526044820152606401610a18565b61156381611dcd565b61156d8282612440565b6115778282611e1d565b60005b83518110156116ea5760006001600160a01b03168482815181106115ae57634e487b7160e01b600052603260045260246000fd5b60200260200101516001600160a01b0316141561160d5760405162461bcd60e51b815260206004820152600c60248201527f5a65726f206164647265737300000000000000000000000000000000000000006044820152606401610a18565b61163f84828151811061163057634e487b7160e01b600052603260045260246000fd5b602002602001015184846124aa565b81601160008282546116519190613620565b909155507fd729ebd340be850113adba35e3218ac6bd77c375ce35c256e3493fdf30b99f3e90503385838151811061169957634e487b7160e01b600052603260045260246000fd5b6020026020010151846040516116d0939291906001600160a01b039384168152919092166020820152604081019190915260600190565b60405180910390a1806116e2816136ea565b91505061157a565b50505050565b600a546001600160a01b031633146117385760405162461bcd60e51b815260206004820181905260248201526000805160206138298339815191526044820152606401610a18565b610fc46124cf565b60006009828154811061176357634e487b7160e01b600052603260045260246000fd5b6000918252602090912001546001600160a01b031692915050565b600a546001600160a01b031633146117c65760405162461bcd60e51b815260206004820181905260248201526000805160206138298339815191526044820152606401610a18565b6117cf81611dcd565b6117d98282612440565b6117e38282611e1d565b600082815260166020526040812054906117fd8284613638565b905060005b81811015611827576118158686856124aa565b8061181f816136ea565b915050611802565b5060006118348385613705565b90508015611847576118478686836124aa565b83601160008282546118599190613620565b9091555050604080513381526001600160a01b038816602082015280820186905290517fd729ebd340be850113adba35e3218ac6bd77c375ce35c256e3493fdf30b99f3e9181900360600190a1505050505050565b6060600f8054610a9c90613682565b6118c8338383612564565b5050565b610fc433611ad8565b6001600160a01b0385163314806118f157506118f18533610930565b6119635760405162461bcd60e51b815260206004820152602960248201527f455243313135353a2063616c6c6572206973206e6f74206f776e6572206e6f7260448201527f20617070726f76656400000000000000000000000000000000000000000000006064820152608401610a18565b610f138585858585612659565b600a546001600160a01b031633146119b85760405162461bcd60e51b815260206004820181905260248201526000805160206138298339815191526044820152606401610a18565b6001600160a01b038116611a345760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201527f64647265737300000000000000000000000000000000000000000000000000006064820152608401610a18565b610c12816123e1565b60006001600160e01b031982167fd9b67a26000000000000000000000000000000000000000000000000000000001480611aa057506001600160e01b031982167f0e89341c00000000000000000000000000000000000000000000000000000000145b80610a8757507f01ffc9a7000000000000000000000000000000000000000000000000000000006001600160e01b0319831614610a87565b6001600160a01b038116600090815260076020526040902054611b3d5760405162461bcd60e51b815260206004820152601560248201527f6163636f756e7420686173206e6f2073686172657300000000000000000000006044820152606401610a18565b6000611b4860065490565b611b529047613620565b90506000611b7f8383611b7a866001600160a01b031660009081526008602052604090205490565b6127fb565b905080611bce5760405162461bcd60e51b815260206004820152601a60248201527f6163636f756e74206973206e6f7420647565207061796d656e740000000000006044820152606401610a18565b6001600160a01b03831660009081526008602052604081208054839290611bf6908490613620565b925050819055508060066000828254611c0f9190613620565b90915550611c1f90508382612841565b604080516001600160a01b0385168152602081018390527fdf20fd1e76bc69d672e4814fafb2c449bba3a5369d8359adf9e05e6fde87b0569101611241565b600a546001600160a01b03163314610fc4576001600d5460ff166002811115611c9757634e487b7160e01b600052602160045260246000fd5b14610fc45760405162461bcd60e51b815260206004820152601a60248201527f5075626c69632073616c65206973206e6f74206163746976652e0000000000006044820152606401610a18565b600a546001600160a01b031633146118c8576000611d02338461099e565b90506000611d108383613620565b905060328111156116ea576040517f1a9bb2540000000000000000000000000000000000000000000000000000000081526004810182905260326024820152604401610a18565b60008281526014602052604081205490611d71828461364c565b90508034108015611d8d5750600a546001600160a01b03163314155b156116ea576040517fcf47918100000000000000000000000000000000000000000000000000000000815234600482015260248101829052604401610a18565b60008111610c125760405162461bcd60e51b815260206004820152601a60248201527f4d757374206d696e74206174206c65617374203120746f6b656e0000000000006044820152606401610a18565b6000828152601560205260409020548082611e44856000908152600b602052604090205490565b611e4e9190613620565b11156111a3576000838152600b6020526040902054611e6e908390613620565b6040517fea058246000000000000000000000000000000000000000000000000000000008152600481019190915260248101829052604401610a18565b6001600160a01b038416611f275760405162461bcd60e51b815260206004820152602160248201527f455243313135353a206d696e7420746f20746865207a65726f2061646472657360448201527f73000000000000000000000000000000000000000000000000000000000000006064820152608401610a18565b33611f4781600087611f388861295a565b611f418861295a565b876129b3565b60008481526002602090815260408083206001600160a01b038916845290915281208054859290611f79908490613620565b909155505060408051858152602081018590526001600160a01b0380881692600092918516917fc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f62910160405180910390a4610f1381600087878787612a75565b6001600160a01b03811661202f5760405162461bcd60e51b815260206004820152601e60248201527f726f79616c747920726563697069656e74207a65726f206164647265737300006044820152606401610a18565b6010805473ffffffffffffffffffffffffffffffffffffffff19166001600160a01b0392909216919091179055565b81518351146120d55760405162461bcd60e51b815260206004820152602860248201527f455243313135353a2069647320616e6420616d6f756e7473206c656e6774682060448201527f6d69736d617463680000000000000000000000000000000000000000000000006064820152608401610a18565b6001600160a01b0384166121395760405162461bcd60e51b815260206004820152602560248201527f455243313135353a207472616e7366657220746f20746865207a65726f206164604482015264647265737360d81b6064820152608401610a18565b336121488187878787876129b3565b60005b845181101561229057600085828151811061217657634e487b7160e01b600052603260045260246000fd5b6020026020010151905060008583815181106121a257634e487b7160e01b600052603260045260246000fd5b60209081029190910181015160008481526002835260408082206001600160a01b038e1683529093529190912054909150818110156122365760405162461bcd60e51b815260206004820152602a60248201527f455243313135353a20696e73756666696369656e742062616c616e636520666f60448201526939103a3930b739b332b960b11b6064820152608401610a18565b60008381526002602090815260408083206001600160a01b038e8116855292528083208585039055908b16825281208054849290612275908490613620565b9250508190555050505080612289906136ea565b905061214b565b50846001600160a01b0316866001600160a01b0316826001600160a01b03167f4a39dc06d4c0dbc64b70af90fd698a233a518aa5d07e595d983b8c0526c8f7fb87876040516122e0929190613593565b60405180910390a46122f6818787878787612c2a565b505050505050565b600a54600160a01b900460ff166123575760405162461bcd60e51b815260206004820152601460248201527f5061757361626c653a206e6f74207061757365640000000000000000000000006044820152606401610a18565b600a805460ff60a01b191690557f5db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa335b6040516001600160a01b03909116815260200160405180910390a1565b60008111610c12576040517f2a3c244800000000000000000000000000000000000000000000000000000000815260048101829052602401610a18565b600a80546001600160a01b0383811673ffffffffffffffffffffffffffffffffffffffff19831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b80600010801561245e57506000828152601660205260409020548111155b6118c85760405162461bcd60e51b815260206004820152601d60248201527f4d617820746f6b656e73207065722062617463682065786365656465640000006044820152606401610a18565b6124b48282611e1d565b6111a383838360405180602001604052806000815250611eab565b600a54600160a01b900460ff16156125295760405162461bcd60e51b815260206004820152601060248201527f5061757361626c653a20706175736564000000000000000000000000000000006044820152606401610a18565b600a805460ff60a01b1916600160a01b1790557f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a2586123873390565b816001600160a01b0316836001600160a01b031614156125ec5760405162461bcd60e51b815260206004820152602960248201527f455243313135353a2073657474696e6720617070726f76616c2073746174757360448201527f20666f722073656c6600000000000000000000000000000000000000000000006064820152608401610a18565b6001600160a01b03838116600081815260036020908152604080832094871680845294825291829020805460ff191686151590811790915591519182527f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a3505050565b6001600160a01b0384166126bd5760405162461bcd60e51b815260206004820152602560248201527f455243313135353a207472616e7366657220746f20746865207a65726f206164604482015264647265737360d81b6064820152608401610a18565b336126cd818787611f388861295a565b60008481526002602090815260408083206001600160a01b038a168452909152902054838110156127535760405162461bcd60e51b815260206004820152602a60248201527f455243313135353a20696e73756666696369656e742062616c616e636520666f60448201526939103a3930b739b332b960b11b6064820152608401610a18565b60008581526002602090815260408083206001600160a01b038b8116855292528083208785039055908816825281208054869290612792908490613620565b909155505060408051868152602081018690526001600160a01b03808916928a821692918616917fc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f62910160405180910390a46127f2828888888888612a75565b50505050505050565b6005546001600160a01b03841660009081526007602052604081205490918391612825908661364c565b61282f9190613638565b612839919061366b565b949350505050565b804710156128915760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a20696e73756666696369656e742062616c616e63650000006044820152606401610a18565b6000826001600160a01b03168260405160006040518083038185875af1925050503d80600081146128de576040519150601f19603f3d011682016040523d82523d6000602084013e6128e3565b606091505b50509050806111a35760405162461bcd60e51b815260206004820152603a60248201527f416464726573733a20756e61626c6520746f2073656e642076616c75652c207260448201527f6563697069656e74206d617920686176652072657665727465640000000000006064820152608401610a18565b604080516001808252818301909252606091600091906020808301908036833701905050905082816000815181106129a257634e487b7160e01b600052603260045260246000fd5b602090810291909101015292915050565b600a54600160a01b900460ff1615612a0d5760405162461bcd60e51b815260206004820152601060248201527f5061757361626c653a20706175736564000000000000000000000000000000006044820152606401610a18565b612a1b868686868686612d35565b600a54600160a01b900460ff16156122f65760405162461bcd60e51b815260206004820152601b60248201527f746f6b656e207472616e73666572207768696c652070617573656400000000006044820152606401610a18565b6001600160a01b0384163b156122f65760405163f23a6e6160e01b81526001600160a01b0385169063f23a6e6190612ab990899089908890889088906004016134dd565b602060405180830381600087803b158015612ad357600080fd5b505af1925050508015612b03575060408051601f3d908101601f19168201909252612b0091810190613338565b60015b612bb957612b0f61375b565b806308c379a01415612b495750612b24613773565b80612b2f5750612b4b565b8060405162461bcd60e51b8152600401610a1891906135e9565b505b60405162461bcd60e51b815260206004820152603460248201527f455243313135353a207472616e7366657220746f206e6f6e204552433131353560448201527f526563656976657220696d706c656d656e7465720000000000000000000000006064820152608401610a18565b6001600160e01b0319811663f23a6e6160e01b146127f25760405162461bcd60e51b815260206004820152602860248201527f455243313135353a204552433131353552656365697665722072656a656374656044820152676420746f6b656e7360c01b6064820152608401610a18565b6001600160a01b0384163b156122f65760405163bc197c8160e01b81526001600160a01b0385169063bc197c8190612c6e908990899088908890889060040161347f565b602060405180830381600087803b158015612c8857600080fd5b505af1925050508015612cb8575060408051601f3d908101601f19168201909252612cb591810190613338565b60015b612cc457612b0f61375b565b6001600160e01b0319811663bc197c8160e01b146127f25760405162461bcd60e51b815260206004820152602860248201527f455243313135353a204552433131353552656365697665722072656a656374656044820152676420746f6b656e7360c01b6064820152608401610a18565b6001600160a01b038516612dd85760005b8351811015612dd657828181518110612d6f57634e487b7160e01b600052603260045260246000fd5b6020026020010151600b6000868481518110612d9b57634e487b7160e01b600052603260045260246000fd5b602002602001015181526020019081526020016000206000828254612dc09190613620565b90915550612dcf9050816136ea565b9050612d46565b505b6001600160a01b0384166122f65760005b83518110156127f257828181518110612e1257634e487b7160e01b600052603260045260246000fd5b6020026020010151600b6000868481518110612e3e57634e487b7160e01b600052603260045260246000fd5b602002602001015181526020019081526020016000206000828254612e63919061366b565b90915550612e729050816136ea565b9050612de9565b828054612e8590613682565b90600052602060002090601f016020900481019282612ea75760008555612eed565b82601f10612ec057805160ff1916838001178555612eed565b82800160010185558215612eed579182015b82811115612eed578251825591602001919060010190612ed2565b50612ef9929150612efd565b5090565b5b80821115612ef95760008155600101612efe565b600067ffffffffffffffff831115612f2c57612f2c613745565b604051612f43601f8501601f1916602001826136bd565b809150838152848484011115612f5857600080fd5b83836020830137600060208583010152509392505050565b600082601f830112612f80578081fd5b81356020612f8d826135fc565b604051612f9a82826136bd565b8381528281019150858301600585901b87018401881015612fb9578586fd5b855b85811015612fe0578135612fce816137fd565b84529284019290840190600101612fbb565b5090979650505050505050565b600082601f830112612ffd578081fd5b8135602061300a826135fc565b60405161301782826136bd565b8381528281019150858301600585901b87018401881015613036578586fd5b855b85811015612fe057813584529284019290840190600101613038565b600082601f830112613064578081fd5b61307383833560208501612f12565b9392505050565b60006020828403121561308b578081fd5b8135613073816137fd565b600080604083850312156130a8578081fd5b82356130b3816137fd565b915060208301356130c3816137fd565b809150509250929050565b600080600080600060a086880312156130e5578081fd5b85356130f0816137fd565b94506020860135613100816137fd565b9350604086013567ffffffffffffffff8082111561311c578283fd5b61312889838a01612fed565b9450606088013591508082111561313d578283fd5b61314989838a01612fed565b9350608088013591508082111561315e578283fd5b5061316b88828901613054565b9150509295509295909350565b600080600080600060a0868803121561318f578081fd5b853561319a816137fd565b945060208601356131aa816137fd565b93506040860135925060608601359150608086013567ffffffffffffffff8111156131d3578182fd5b61316b88828901613054565b600080604083850312156131f1578182fd5b82356131fc816137fd565b9150602083013580151581146130c3578182fd5b60008060408385031215613222578182fd5b823561322d816137fd565b946020939093013593505050565b60008060006060848603121561324f578081fd5b833561325a816137fd565b95602085013595506040909401359392505050565b60008060408385031215613281578182fd5b823567ffffffffffffffff80821115613298578384fd5b6132a486838701612f70565b935060208501359150808211156132b9578283fd5b506132c685828601612fed565b9150509250929050565b6000806000606084860312156132e4578081fd5b833567ffffffffffffffff8111156132fa578182fd5b61330686828701612f70565b9660208601359650604090950135949350505050565b60006020828403121561332d578081fd5b813561307381613812565b600060208284031215613349578081fd5b815161307381613812565b600060208284031215613365578081fd5b813560038110613073578182fd5b600060208284031215613384578081fd5b5035919050565b6000806040838503121561339d578182fd5b82359150602083013567ffffffffffffffff8111156133ba578182fd5b8301601f810185136133ca578182fd5b6132c685823560208401612f12565b600080604083850312156133eb578182fd5b50508035926020909101359150565b6000815180845260208085019450808401835b838110156134295781518752958201959082019060010161340d565b509495945050505050565b60008151808452815b818110156134595760208185018101518683018201520161343d565b8181111561346a5782602083870101525b50601f01601f19169290920160200192915050565b60006001600160a01b03808816835280871660208401525060a060408301526134ab60a08301866133fa565b82810360608401526134bd81866133fa565b905082810360808401526134d18185613434565b98975050505050505050565b60006001600160a01b03808816835280871660208401525084604083015283606083015260a0608083015261351560a0830184613434565b979650505050505050565b604080825283519082018190526000906020906060840190828701845b828110156135625781516001600160a01b03168452928401929084019060010161353d565b5050508381038285015261357681866133fa565b9695505050505050565b60208152600061307360208301846133fa565b6040815260006135a660408301856133fa565b82810360208401526135b881856133fa565b95945050505050565b60208101600383106135e357634e487b7160e01b600052602160045260246000fd5b91905290565b6020815260006130736020830184613434565b600067ffffffffffffffff82111561361657613616613745565b5060051b60200190565b6000821982111561363357613633613719565b500190565b6000826136475761364761372f565b500490565b600081600019048311821515161561366657613666613719565b500290565b60008282101561367d5761367d613719565b500390565b600181811c9082168061369657607f821691505b602082108114156136b757634e487b7160e01b600052602260045260246000fd5b50919050565b601f8201601f1916810167ffffffffffffffff811182821017156136e3576136e3613745565b6040525050565b60006000198214156136fe576136fe613719565b5060010190565b6000826137145761371461372f565b500690565b634e487b7160e01b600052601160045260246000fd5b634e487b7160e01b600052601260045260246000fd5b634e487b7160e01b600052604160045260246000fd5b600060033d111561377057600481823e5160e01c5b90565b600060443d10156137815790565b6040516003193d81016004833e81513d67ffffffffffffffff81602484011181841117156137b157505050505090565b82850191508151818111156137c95750505050505090565b843d87010160208285010111156137e35750505050505090565b6137f2602082860101876136bd565b509095945050505050565b6001600160a01b0381168114610c1257600080fd5b6001600160e01b031981168114610c1257600080fdfe4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572a264697066735822122035c61ad8ab738d613da24a4c22d23509cac0db41f128d3ff0dacca6c90a8f55964736f6c63430008040033
Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)
000000000000000000000000000000000000000000000000000000000000006000000000000000000000000000000000000000000000000000000000000000a000000000000000000000000000000000000000000000000000000000000000e00000000000000000000000000000000000000000000000000000000000000004484e465400000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000a48454c4c4f204e46542100000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000003f697066733a2f2f516d557644693667555a38484c617a5575757a696a34626933476f4a576f4c456732624c393541483372377169682f7b69647d2e6a736f6e00
-----Decoded View---------------
Arg [0] : _symbol (string): HNFT
Arg [1] : _name (string): HELLO NFT!
Arg [2] : _uri (string): ipfs://QmUvDi6gUZ8HLazUuuzij4bi3GoJWoLEg2bL95AH3r7qih/{id}.json
-----Encoded View---------------
10 Constructor Arguments found :
Arg [0] : 0000000000000000000000000000000000000000000000000000000000000060
Arg [1] : 00000000000000000000000000000000000000000000000000000000000000a0
Arg [2] : 00000000000000000000000000000000000000000000000000000000000000e0
Arg [3] : 0000000000000000000000000000000000000000000000000000000000000004
Arg [4] : 484e465400000000000000000000000000000000000000000000000000000000
Arg [5] : 000000000000000000000000000000000000000000000000000000000000000a
Arg [6] : 48454c4c4f204e46542100000000000000000000000000000000000000000000
Arg [7] : 000000000000000000000000000000000000000000000000000000000000003f
Arg [8] : 697066733a2f2f516d557644693667555a38484c617a5575757a696a34626933
Arg [9] : 476f4a576f4c456732624c393541483372377169682f7b69647d2e6a736f6e00
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.