ERC-721
Overview
Max Total Supply
0 BINGO
Holders
57
Market
Volume (24H)
N/A
Min Price (24H)
N/A
Max Price (24H)
N/A
Other Info
Token Contract
Balance
1 BINGOLoading...
Loading
Loading...
Loading
Loading...
Loading
# | Exchange | Pair | Price | 24H Volume | % Volume |
---|
Contract Name:
ArtistBingo
Compiler Version
v0.8.19+commit.7dd6d404
Optimization Enabled:
Yes with 200 runs
Other Settings:
default evmVersion
Contract Source Code (Solidity Standard Json-Input format)
// SPDX-License-Identifier: UNLICENSED pragma solidity ^0.8.19; import {ERC721} from "solmate/tokens/ERC721.sol"; import {IERC2981} from "openzeppelin-contracts/contracts/interfaces/IERC2981.sol"; import {Ownable} from "openzeppelin-contracts/contracts/access/Ownable.sol"; import {Strings} from "openzeppelin-contracts/contracts/utils/Strings.sol"; import {SafeTransferLib} from "solmate/utils/SafeTransferLib.sol"; interface MetadataRenderer { function contractURI() external view returns (string memory); function render(uint256 id) external view returns (string memory); } error ArtistsGottaSurvive(); error MaxSupply(); error NonExistentTokenURI(); contract ArtistBingo is ERC721, Ownable { uint256 public constant MAX_SUPPLY = 250; uint8 public constant TOTAL_ACTS = 128; uint256 public constant PRICE = 0.05 ether; uint256 public nextTokenIdToMint; // accomplishments is a bitfield of which acts have been accomplished uint256 public accomplishments; // a card is a uint256 in which each byte-length block holds an act id mapping(uint256 => uint256) public cards; // (initial) an off-chain baseUri for rendering metadata string public baseUri; // (optional) an on-chain renderer for a given token id MetadataRenderer public renderer; event AccomplishmentsUpdated( uint256 indexed change, uint256 accomplishments ); event MetadataRendererUpdated(MetadataRenderer renderer); constructor(string memory _baseUri) ERC721("Artist Bingo", "BINGO") { baseUri = _baseUri; // mint initial artist edition to deployer _safeMint(msg.sender, nextTokenIdToMint); unchecked { nextTokenIdToMint++; } } function mint(address to, uint256 amount) external payable { if (msg.value != amount * PRICE) revert ArtistsGottaSurvive(); if (nextTokenIdToMint + amount > MAX_SUPPLY) revert MaxSupply(); for (uint256 i = 0; i < amount; ) { _safeMint(to, nextTokenIdToMint); unchecked { nextTokenIdToMint++; i++; } } } function _mint(address to, uint256 id) internal virtual override { // generate pseudo-random card for this token id cards[id] = uint256( keccak256( abi.encodePacked( id, msg.sender, blockhash(block.number - 1), "shrugs wuz here" ) ) ); super._mint(to, id); } function getPalette(uint256 id) external view returns (uint8) { // the 25th slot is a palette id, [0, 255] uint8 seed = uint8(cards[id] >> (8 * (31 - 24))); if (seed < 61) return 0; // 23.82% if (seed < 102) return 1; // 16.01% if (seed < 143) return 2; // 16.01% if (seed < 169) return 3; // 10.15% if (seed < 195) return 4; // 10.15% if (seed < 220) return 5; // 09.76% if (seed < 236) return 6; // 06.25% if (seed < 252) return 7; // 06.25% return 8; // 01.56% } function getActs(uint256 id) external view returns (uint8[] memory) { uint256 squares = cards[id]; uint256 used; // bitmap that tracks whether a specific number has been seen uint8 counter; uint8 seed; uint8 act; uint8[] memory acts = new uint8[](24); for (uint256 i = 0; i < 24; i++) { // get byte `seed` from word `squares` seed = uint8(squares >> (8 * (31 - i))); // reset counter for loop counter = 0; // determine next non-duplicate act while (true) { // derive an act act = (seed + counter) % TOTAL_ACTS; // if the act has not been seen, break if ((used & (1 << act)) == 0) break; // otherwise, increment counter and loop counter++; } // an act has been found // mark act as seen used |= (1 << act); // include in acts acts[i] = act; } return acts; } function setBaseUri(string memory _baseUri) external onlyOwner { baseUri = _baseUri; } // this function strictly sets accomplishments to the provided argument // but also publishes the change from the current state as an audit trail function setAccomplishments(uint256 _accomplishments) external onlyOwner { emit AccomplishmentsUpdated( _accomplishments ^ accomplishments, _accomplishments ); accomplishments = _accomplishments; } function setMetadataRenderer( MetadataRenderer _renderer ) external onlyOwner { renderer = _renderer; emit MetadataRendererUpdated(_renderer); } function withdraw(address to) external onlyOwner { SafeTransferLib.safeTransferETH(to, address(this).balance); } function contractURI() public view returns (string memory) { if (address(renderer) != address(0)) return renderer.contractURI(); return string.concat(baseUri, "contract.json"); } function tokenURI( uint256 id ) public view virtual override returns (string memory) { if (ownerOf(id) == address(0)) revert NonExistentTokenURI(); if (address(renderer) != address(0)) return renderer.render(id); return string.concat(baseUri, Strings.toString(id)); } function royaltyInfo( uint256, uint256 salePrice ) external view returns (address receiver, uint256 royaltyAmount) { return (owner(), (salePrice * 5) / 100); // 5% royalties } function supportsInterface( bytes4 interfaceId ) public view virtual override(ERC721) returns (bool) { return interfaceId == type(IERC2981).interfaceId || super.supportsInterface(interfaceId); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.7.0) (access/Ownable.sol) pragma solidity ^0.8.0; import "../utils/Context.sol"; /** * @dev Contract module which provides a basic access control mechanism, where * there is an account (an owner) that can be granted exclusive access to * specific functions. * * By default, the owner account will be the one that deploys the contract. This * can later be changed with {transferOwnership}. * * This module is used through inheritance. It will make available the modifier * `onlyOwner`, which can be applied to your functions to restrict their use to * the owner. */ abstract contract Ownable is Context { address private _owner; event OwnershipTransferred(address indexed previousOwner, address indexed newOwner); /** * @dev Initializes the contract setting the deployer as the initial owner. */ constructor() { _transferOwnership(_msgSender()); } /** * @dev Throws if called by any account other than the owner. */ modifier onlyOwner() { _checkOwner(); _; } /** * @dev Returns the address of the current owner. */ function owner() public view virtual returns (address) { return _owner; } /** * @dev Throws if the sender is not the owner. */ function _checkOwner() internal view virtual { require(owner() == _msgSender(), "Ownable: caller is not the owner"); } /** * @dev Leaves the contract without owner. It will not be possible to call * `onlyOwner` functions anymore. Can only be called by the current owner. * * NOTE: Renouncing ownership will leave the contract without an owner, * thereby removing any functionality that is only available to the owner. */ function renounceOwnership() public virtual onlyOwner { _transferOwnership(address(0)); } /** * @dev Transfers ownership of the contract to a new account (`newOwner`). * Can only be called by the current owner. */ function transferOwnership(address newOwner) public virtual onlyOwner { require(newOwner != address(0), "Ownable: new owner is the zero address"); _transferOwnership(newOwner); } /** * @dev Transfers ownership of the contract to a new account (`newOwner`). * Internal function without access restriction. */ function _transferOwnership(address newOwner) internal virtual { address oldOwner = _owner; _owner = newOwner; emit OwnershipTransferred(oldOwner, newOwner); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.6.0) (interfaces/IERC2981.sol) pragma solidity ^0.8.0; import "../utils/introspection/IERC165.sol"; /** * @dev Interface for the NFT Royalty Standard. * * A standardized way to retrieve royalty payment information for non-fungible tokens (NFTs) to enable universal * support for royalty payments across all NFT marketplaces and ecosystem participants. * * _Available since v4.5._ */ interface IERC2981 is IERC165 { /** * @dev Returns how much royalty is owed and to whom, based on a sale price that may be denominated in any unit of * exchange. The royalty amount is denominated and should be paid in that same unit of exchange. */ function royaltyInfo(uint256 tokenId, uint256 salePrice) external view returns (address receiver, uint256 royaltyAmount); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/Context.sol) pragma solidity ^0.8.0; /** * @dev Provides information about the current execution context, including the * sender of the transaction and its data. While these are generally available * via msg.sender and msg.data, they should not be accessed in such a direct * manner, since when dealing with meta-transactions the account sending and * paying for execution may not be the actual sender (as far as an application * is concerned). * * This contract is only required for intermediate, library-like contracts. */ abstract contract Context { function _msgSender() internal view virtual returns (address) { return msg.sender; } function _msgData() internal view virtual returns (bytes calldata) { return msg.data; } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.8.0) (utils/Strings.sol) pragma solidity ^0.8.0; import "./math/Math.sol"; /** * @dev String operations. */ library Strings { bytes16 private constant _SYMBOLS = "0123456789abcdef"; uint8 private constant _ADDRESS_LENGTH = 20; /** * @dev Converts a `uint256` to its ASCII `string` decimal representation. */ function toString(uint256 value) internal pure returns (string memory) { unchecked { uint256 length = Math.log10(value) + 1; string memory buffer = new string(length); uint256 ptr; /// @solidity memory-safe-assembly assembly { ptr := add(buffer, add(32, length)) } while (true) { ptr--; /// @solidity memory-safe-assembly assembly { mstore8(ptr, byte(mod(value, 10), _SYMBOLS)) } value /= 10; if (value == 0) break; } return buffer; } } /** * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation. */ function toHexString(uint256 value) internal pure returns (string memory) { unchecked { return toHexString(value, Math.log256(value) + 1); } } /** * @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] = _SYMBOLS[value & 0xf]; value >>= 4; } require(value == 0, "Strings: hex length insufficient"); return string(buffer); } /** * @dev Converts an `address` with fixed length of 20 bytes to its not checksummed ASCII `string` hexadecimal representation. */ function toHexString(address addr) internal pure returns (string memory) { return toHexString(uint256(uint160(addr)), _ADDRESS_LENGTH); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/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 (last updated v4.8.0) (utils/math/Math.sol) pragma solidity ^0.8.0; /** * @dev Standard math utilities missing in the Solidity language. */ library Math { enum Rounding { Down, // Toward negative infinity Up, // Toward infinity Zero // Toward zero } /** * @dev Returns the largest of two numbers. */ function max(uint256 a, uint256 b) internal pure returns (uint256) { return a > b ? a : b; } /** * @dev Returns the smallest of two numbers. */ function min(uint256 a, uint256 b) internal pure returns (uint256) { return a < b ? a : b; } /** * @dev Returns the average of two numbers. The result is rounded towards * zero. */ function average(uint256 a, uint256 b) internal pure returns (uint256) { // (a + b) / 2 can overflow. return (a & b) + (a ^ b) / 2; } /** * @dev Returns the ceiling of the division of two numbers. * * This differs from standard division with `/` in that it rounds up instead * of rounding down. */ function ceilDiv(uint256 a, uint256 b) internal pure returns (uint256) { // (a + b - 1) / b can overflow on addition, so we distribute. return a == 0 ? 0 : (a - 1) / b + 1; } /** * @notice Calculates floor(x * y / denominator) with full precision. Throws if result overflows a uint256 or denominator == 0 * @dev Original credit to Remco Bloemen under MIT license (https://xn--2-umb.com/21/muldiv) * with further edits by Uniswap Labs also under MIT license. */ function mulDiv( uint256 x, uint256 y, uint256 denominator ) internal pure returns (uint256 result) { unchecked { // 512-bit multiply [prod1 prod0] = x * y. Compute the product mod 2^256 and mod 2^256 - 1, then use // use the Chinese Remainder Theorem to reconstruct the 512 bit result. The result is stored in two 256 // variables such that product = prod1 * 2^256 + prod0. uint256 prod0; // Least significant 256 bits of the product uint256 prod1; // Most significant 256 bits of the product assembly { let mm := mulmod(x, y, not(0)) prod0 := mul(x, y) prod1 := sub(sub(mm, prod0), lt(mm, prod0)) } // Handle non-overflow cases, 256 by 256 division. if (prod1 == 0) { return prod0 / denominator; } // Make sure the result is less than 2^256. Also prevents denominator == 0. require(denominator > prod1); /////////////////////////////////////////////// // 512 by 256 division. /////////////////////////////////////////////// // Make division exact by subtracting the remainder from [prod1 prod0]. uint256 remainder; assembly { // Compute remainder using mulmod. remainder := mulmod(x, y, denominator) // Subtract 256 bit number from 512 bit number. prod1 := sub(prod1, gt(remainder, prod0)) prod0 := sub(prod0, remainder) } // Factor powers of two out of denominator and compute largest power of two divisor of denominator. Always >= 1. // See https://cs.stackexchange.com/q/138556/92363. // Does not overflow because the denominator cannot be zero at this stage in the function. uint256 twos = denominator & (~denominator + 1); assembly { // Divide denominator by twos. denominator := div(denominator, twos) // Divide [prod1 prod0] by twos. prod0 := div(prod0, twos) // Flip twos such that it is 2^256 / twos. If twos is zero, then it becomes one. twos := add(div(sub(0, twos), twos), 1) } // Shift in bits from prod1 into prod0. prod0 |= prod1 * twos; // Invert denominator mod 2^256. Now that denominator is an odd number, it has an inverse modulo 2^256 such // that denominator * inv = 1 mod 2^256. Compute the inverse by starting with a seed that is correct for // four bits. That is, denominator * inv = 1 mod 2^4. uint256 inverse = (3 * denominator) ^ 2; // Use the Newton-Raphson iteration to improve the precision. Thanks to Hensel's lifting lemma, this also works // in modular arithmetic, doubling the correct bits in each step. inverse *= 2 - denominator * inverse; // inverse mod 2^8 inverse *= 2 - denominator * inverse; // inverse mod 2^16 inverse *= 2 - denominator * inverse; // inverse mod 2^32 inverse *= 2 - denominator * inverse; // inverse mod 2^64 inverse *= 2 - denominator * inverse; // inverse mod 2^128 inverse *= 2 - denominator * inverse; // inverse mod 2^256 // Because the division is now exact we can divide by multiplying with the modular inverse of denominator. // This will give us the correct result modulo 2^256. Since the preconditions guarantee that the outcome is // less than 2^256, this is the final result. We don't need to compute the high bits of the result and prod1 // is no longer required. result = prod0 * inverse; return result; } } /** * @notice Calculates x * y / denominator with full precision, following the selected rounding direction. */ function mulDiv( uint256 x, uint256 y, uint256 denominator, Rounding rounding ) internal pure returns (uint256) { uint256 result = mulDiv(x, y, denominator); if (rounding == Rounding.Up && mulmod(x, y, denominator) > 0) { result += 1; } return result; } /** * @dev Returns the square root of a number. If the number is not a perfect square, the value is rounded down. * * Inspired by Henry S. Warren, Jr.'s "Hacker's Delight" (Chapter 11). */ function sqrt(uint256 a) internal pure returns (uint256) { if (a == 0) { return 0; } // For our first guess, we get the biggest power of 2 which is smaller than the square root of the target. // // We know that the "msb" (most significant bit) of our target number `a` is a power of 2 such that we have // `msb(a) <= a < 2*msb(a)`. This value can be written `msb(a)=2**k` with `k=log2(a)`. // // This can be rewritten `2**log2(a) <= a < 2**(log2(a) + 1)` // → `sqrt(2**k) <= sqrt(a) < sqrt(2**(k+1))` // → `2**(k/2) <= sqrt(a) < 2**((k+1)/2) <= 2**(k/2 + 1)` // // Consequently, `2**(log2(a) / 2)` is a good first approximation of `sqrt(a)` with at least 1 correct bit. uint256 result = 1 << (log2(a) >> 1); // At this point `result` is an estimation with one bit of precision. We know the true value is a uint128, // since it is the square root of a uint256. Newton's method converges quadratically (precision doubles at // every iteration). We thus need at most 7 iteration to turn our partial result with one bit of precision // into the expected uint128 result. unchecked { result = (result + a / result) >> 1; result = (result + a / result) >> 1; result = (result + a / result) >> 1; result = (result + a / result) >> 1; result = (result + a / result) >> 1; result = (result + a / result) >> 1; result = (result + a / result) >> 1; return min(result, a / result); } } /** * @notice Calculates sqrt(a), following the selected rounding direction. */ function sqrt(uint256 a, Rounding rounding) internal pure returns (uint256) { unchecked { uint256 result = sqrt(a); return result + (rounding == Rounding.Up && result * result < a ? 1 : 0); } } /** * @dev Return the log in base 2, rounded down, of a positive value. * Returns 0 if given 0. */ function log2(uint256 value) internal pure returns (uint256) { uint256 result = 0; unchecked { if (value >> 128 > 0) { value >>= 128; result += 128; } if (value >> 64 > 0) { value >>= 64; result += 64; } if (value >> 32 > 0) { value >>= 32; result += 32; } if (value >> 16 > 0) { value >>= 16; result += 16; } if (value >> 8 > 0) { value >>= 8; result += 8; } if (value >> 4 > 0) { value >>= 4; result += 4; } if (value >> 2 > 0) { value >>= 2; result += 2; } if (value >> 1 > 0) { result += 1; } } return result; } /** * @dev Return the log in base 2, following the selected rounding direction, of a positive value. * Returns 0 if given 0. */ function log2(uint256 value, Rounding rounding) internal pure returns (uint256) { unchecked { uint256 result = log2(value); return result + (rounding == Rounding.Up && 1 << result < value ? 1 : 0); } } /** * @dev Return the log in base 10, rounded down, of a positive value. * Returns 0 if given 0. */ function log10(uint256 value) internal pure returns (uint256) { uint256 result = 0; unchecked { if (value >= 10**64) { value /= 10**64; result += 64; } if (value >= 10**32) { value /= 10**32; result += 32; } if (value >= 10**16) { value /= 10**16; result += 16; } if (value >= 10**8) { value /= 10**8; result += 8; } if (value >= 10**4) { value /= 10**4; result += 4; } if (value >= 10**2) { value /= 10**2; result += 2; } if (value >= 10**1) { result += 1; } } return result; } /** * @dev Return the log in base 10, following the selected rounding direction, of a positive value. * Returns 0 if given 0. */ function log10(uint256 value, Rounding rounding) internal pure returns (uint256) { unchecked { uint256 result = log10(value); return result + (rounding == Rounding.Up && 10**result < value ? 1 : 0); } } /** * @dev Return the log in base 256, rounded down, of a positive value. * Returns 0 if given 0. * * Adding one to the result gives the number of pairs of hex symbols needed to represent `value` as a hex string. */ function log256(uint256 value) internal pure returns (uint256) { uint256 result = 0; unchecked { if (value >> 128 > 0) { value >>= 128; result += 16; } if (value >> 64 > 0) { value >>= 64; result += 8; } if (value >> 32 > 0) { value >>= 32; result += 4; } if (value >> 16 > 0) { value >>= 16; result += 2; } if (value >> 8 > 0) { result += 1; } } return result; } /** * @dev Return the log in base 10, following the selected rounding direction, of a positive value. * Returns 0 if given 0. */ function log256(uint256 value, Rounding rounding) internal pure returns (uint256) { unchecked { uint256 result = log256(value); return result + (rounding == Rounding.Up && 1 << (result * 8) < value ? 1 : 0); } } }
// SPDX-License-Identifier: AGPL-3.0-only pragma solidity >=0.8.0; /// @notice Modern and gas efficient ERC20 + EIP-2612 implementation. /// @author Solmate (https://github.com/transmissions11/solmate/blob/main/src/tokens/ERC20.sol) /// @author Modified from Uniswap (https://github.com/Uniswap/uniswap-v2-core/blob/master/contracts/UniswapV2ERC20.sol) /// @dev Do not manually set balances without updating totalSupply, as the sum of all user balances must not exceed it. abstract contract ERC20 { /*////////////////////////////////////////////////////////////// EVENTS //////////////////////////////////////////////////////////////*/ event Transfer(address indexed from, address indexed to, uint256 amount); event Approval(address indexed owner, address indexed spender, uint256 amount); /*////////////////////////////////////////////////////////////// METADATA STORAGE //////////////////////////////////////////////////////////////*/ string public name; string public symbol; uint8 public immutable decimals; /*////////////////////////////////////////////////////////////// ERC20 STORAGE //////////////////////////////////////////////////////////////*/ uint256 public totalSupply; mapping(address => uint256) public balanceOf; mapping(address => mapping(address => uint256)) public allowance; /*////////////////////////////////////////////////////////////// EIP-2612 STORAGE //////////////////////////////////////////////////////////////*/ uint256 internal immutable INITIAL_CHAIN_ID; bytes32 internal immutable INITIAL_DOMAIN_SEPARATOR; mapping(address => uint256) public nonces; /*////////////////////////////////////////////////////////////// CONSTRUCTOR //////////////////////////////////////////////////////////////*/ constructor( string memory _name, string memory _symbol, uint8 _decimals ) { name = _name; symbol = _symbol; decimals = _decimals; INITIAL_CHAIN_ID = block.chainid; INITIAL_DOMAIN_SEPARATOR = computeDomainSeparator(); } /*////////////////////////////////////////////////////////////// ERC20 LOGIC //////////////////////////////////////////////////////////////*/ function approve(address spender, uint256 amount) public virtual returns (bool) { allowance[msg.sender][spender] = amount; emit Approval(msg.sender, spender, amount); return true; } function transfer(address to, uint256 amount) public virtual returns (bool) { balanceOf[msg.sender] -= amount; // Cannot overflow because the sum of all user // balances can't exceed the max uint256 value. unchecked { balanceOf[to] += amount; } emit Transfer(msg.sender, to, amount); return true; } function transferFrom( address from, address to, uint256 amount ) public virtual returns (bool) { uint256 allowed = allowance[from][msg.sender]; // Saves gas for limited approvals. if (allowed != type(uint256).max) allowance[from][msg.sender] = allowed - amount; balanceOf[from] -= amount; // Cannot overflow because the sum of all user // balances can't exceed the max uint256 value. unchecked { balanceOf[to] += amount; } emit Transfer(from, to, amount); return true; } /*////////////////////////////////////////////////////////////// EIP-2612 LOGIC //////////////////////////////////////////////////////////////*/ function permit( address owner, address spender, uint256 value, uint256 deadline, uint8 v, bytes32 r, bytes32 s ) public virtual { require(deadline >= block.timestamp, "PERMIT_DEADLINE_EXPIRED"); // Unchecked because the only math done is incrementing // the owner's nonce which cannot realistically overflow. unchecked { address recoveredAddress = ecrecover( keccak256( abi.encodePacked( "\x19\x01", DOMAIN_SEPARATOR(), keccak256( abi.encode( keccak256( "Permit(address owner,address spender,uint256 value,uint256 nonce,uint256 deadline)" ), owner, spender, value, nonces[owner]++, deadline ) ) ) ), v, r, s ); require(recoveredAddress != address(0) && recoveredAddress == owner, "INVALID_SIGNER"); allowance[recoveredAddress][spender] = value; } emit Approval(owner, spender, value); } function DOMAIN_SEPARATOR() public view virtual returns (bytes32) { return block.chainid == INITIAL_CHAIN_ID ? INITIAL_DOMAIN_SEPARATOR : computeDomainSeparator(); } function computeDomainSeparator() internal view virtual returns (bytes32) { return keccak256( abi.encode( keccak256("EIP712Domain(string name,string version,uint256 chainId,address verifyingContract)"), keccak256(bytes(name)), keccak256("1"), block.chainid, address(this) ) ); } /*////////////////////////////////////////////////////////////// INTERNAL MINT/BURN LOGIC //////////////////////////////////////////////////////////////*/ function _mint(address to, uint256 amount) internal virtual { totalSupply += amount; // Cannot overflow because the sum of all user // balances can't exceed the max uint256 value. unchecked { balanceOf[to] += amount; } emit Transfer(address(0), to, amount); } function _burn(address from, uint256 amount) internal virtual { balanceOf[from] -= amount; // Cannot underflow because a user's balance // will never be larger than the total supply. unchecked { totalSupply -= amount; } emit Transfer(from, address(0), amount); } }
// SPDX-License-Identifier: AGPL-3.0-only pragma solidity >=0.8.0; /// @notice Modern, minimalist, and gas efficient ERC-721 implementation. /// @author Solmate (https://github.com/transmissions11/solmate/blob/main/src/tokens/ERC721.sol) abstract contract ERC721 { /*////////////////////////////////////////////////////////////// EVENTS //////////////////////////////////////////////////////////////*/ event Transfer(address indexed from, address indexed to, uint256 indexed id); event Approval(address indexed owner, address indexed spender, uint256 indexed id); event ApprovalForAll(address indexed owner, address indexed operator, bool approved); /*////////////////////////////////////////////////////////////// METADATA STORAGE/LOGIC //////////////////////////////////////////////////////////////*/ string public name; string public symbol; function tokenURI(uint256 id) public view virtual returns (string memory); /*////////////////////////////////////////////////////////////// ERC721 BALANCE/OWNER STORAGE //////////////////////////////////////////////////////////////*/ mapping(uint256 => address) internal _ownerOf; mapping(address => uint256) internal _balanceOf; function ownerOf(uint256 id) public view virtual returns (address owner) { require((owner = _ownerOf[id]) != address(0), "NOT_MINTED"); } function balanceOf(address owner) public view virtual returns (uint256) { require(owner != address(0), "ZERO_ADDRESS"); return _balanceOf[owner]; } /*////////////////////////////////////////////////////////////// ERC721 APPROVAL STORAGE //////////////////////////////////////////////////////////////*/ mapping(uint256 => address) public getApproved; mapping(address => mapping(address => bool)) public isApprovedForAll; /*////////////////////////////////////////////////////////////// CONSTRUCTOR //////////////////////////////////////////////////////////////*/ constructor(string memory _name, string memory _symbol) { name = _name; symbol = _symbol; } /*////////////////////////////////////////////////////////////// ERC721 LOGIC //////////////////////////////////////////////////////////////*/ function approve(address spender, uint256 id) public virtual { address owner = _ownerOf[id]; require(msg.sender == owner || isApprovedForAll[owner][msg.sender], "NOT_AUTHORIZED"); getApproved[id] = spender; emit Approval(owner, spender, id); } function setApprovalForAll(address operator, bool approved) public virtual { isApprovedForAll[msg.sender][operator] = approved; emit ApprovalForAll(msg.sender, operator, approved); } function transferFrom( address from, address to, uint256 id ) public virtual { require(from == _ownerOf[id], "WRONG_FROM"); require(to != address(0), "INVALID_RECIPIENT"); require( msg.sender == from || isApprovedForAll[from][msg.sender] || msg.sender == getApproved[id], "NOT_AUTHORIZED" ); // Underflow of the sender's balance is impossible because we check for // ownership above and the recipient's balance can't realistically overflow. unchecked { _balanceOf[from]--; _balanceOf[to]++; } _ownerOf[id] = to; delete getApproved[id]; emit Transfer(from, to, id); } function safeTransferFrom( address from, address to, uint256 id ) public virtual { transferFrom(from, to, id); require( to.code.length == 0 || ERC721TokenReceiver(to).onERC721Received(msg.sender, from, id, "") == ERC721TokenReceiver.onERC721Received.selector, "UNSAFE_RECIPIENT" ); } function safeTransferFrom( address from, address to, uint256 id, bytes calldata data ) public virtual { transferFrom(from, to, id); require( to.code.length == 0 || ERC721TokenReceiver(to).onERC721Received(msg.sender, from, id, data) == ERC721TokenReceiver.onERC721Received.selector, "UNSAFE_RECIPIENT" ); } /*////////////////////////////////////////////////////////////// ERC165 LOGIC //////////////////////////////////////////////////////////////*/ function supportsInterface(bytes4 interfaceId) public view virtual returns (bool) { return interfaceId == 0x01ffc9a7 || // ERC165 Interface ID for ERC165 interfaceId == 0x80ac58cd || // ERC165 Interface ID for ERC721 interfaceId == 0x5b5e139f; // ERC165 Interface ID for ERC721Metadata } /*////////////////////////////////////////////////////////////// INTERNAL MINT/BURN LOGIC //////////////////////////////////////////////////////////////*/ function _mint(address to, uint256 id) internal virtual { require(to != address(0), "INVALID_RECIPIENT"); require(_ownerOf[id] == address(0), "ALREADY_MINTED"); // Counter overflow is incredibly unrealistic. unchecked { _balanceOf[to]++; } _ownerOf[id] = to; emit Transfer(address(0), to, id); } function _burn(uint256 id) internal virtual { address owner = _ownerOf[id]; require(owner != address(0), "NOT_MINTED"); // Ownership check above ensures no underflow. unchecked { _balanceOf[owner]--; } delete _ownerOf[id]; delete getApproved[id]; emit Transfer(owner, address(0), id); } /*////////////////////////////////////////////////////////////// INTERNAL SAFE MINT LOGIC //////////////////////////////////////////////////////////////*/ function _safeMint(address to, uint256 id) internal virtual { _mint(to, id); require( to.code.length == 0 || ERC721TokenReceiver(to).onERC721Received(msg.sender, address(0), id, "") == ERC721TokenReceiver.onERC721Received.selector, "UNSAFE_RECIPIENT" ); } function _safeMint( address to, uint256 id, bytes memory data ) internal virtual { _mint(to, id); require( to.code.length == 0 || ERC721TokenReceiver(to).onERC721Received(msg.sender, address(0), id, data) == ERC721TokenReceiver.onERC721Received.selector, "UNSAFE_RECIPIENT" ); } } /// @notice A generic interface for a contract which properly accepts ERC721 tokens. /// @author Solmate (https://github.com/transmissions11/solmate/blob/main/src/tokens/ERC721.sol) abstract contract ERC721TokenReceiver { function onERC721Received( address, address, uint256, bytes calldata ) external virtual returns (bytes4) { return ERC721TokenReceiver.onERC721Received.selector; } }
// SPDX-License-Identifier: AGPL-3.0-only pragma solidity >=0.8.0; import {ERC20} from "../tokens/ERC20.sol"; /// @notice Safe ETH and ERC20 transfer library that gracefully handles missing return values. /// @author Solmate (https://github.com/transmissions11/solmate/blob/main/src/utils/SafeTransferLib.sol) /// @dev Use with caution! Some functions in this library knowingly create dirty bits at the destination of the free memory pointer. /// @dev Note that none of the functions in this library check that a token has code at all! That responsibility is delegated to the caller. library SafeTransferLib { /*////////////////////////////////////////////////////////////// ETH OPERATIONS //////////////////////////////////////////////////////////////*/ function safeTransferETH(address to, uint256 amount) internal { bool success; /// @solidity memory-safe-assembly assembly { // Transfer the ETH and store if it succeeded or not. success := call(gas(), to, amount, 0, 0, 0, 0) } require(success, "ETH_TRANSFER_FAILED"); } /*////////////////////////////////////////////////////////////// ERC20 OPERATIONS //////////////////////////////////////////////////////////////*/ function safeTransferFrom( ERC20 token, address from, address to, uint256 amount ) internal { bool success; /// @solidity memory-safe-assembly assembly { // Get a pointer to some free memory. let freeMemoryPointer := mload(0x40) // Write the abi-encoded calldata into memory, beginning with the function selector. mstore(freeMemoryPointer, 0x23b872dd00000000000000000000000000000000000000000000000000000000) mstore(add(freeMemoryPointer, 4), from) // Append the "from" argument. mstore(add(freeMemoryPointer, 36), to) // Append the "to" argument. mstore(add(freeMemoryPointer, 68), amount) // Append the "amount" argument. success := and( // Set success to whether the call reverted, if not we check it either // returned exactly 1 (can't just be non-zero data), or had no return data. or(and(eq(mload(0), 1), gt(returndatasize(), 31)), iszero(returndatasize())), // We use 100 because the length of our calldata totals up like so: 4 + 32 * 3. // We use 0 and 32 to copy up to 32 bytes of return data into the scratch space. // Counterintuitively, this call must be positioned second to the or() call in the // surrounding and() call or else returndatasize() will be zero during the computation. call(gas(), token, 0, freeMemoryPointer, 100, 0, 32) ) } require(success, "TRANSFER_FROM_FAILED"); } function safeTransfer( ERC20 token, address to, uint256 amount ) internal { bool success; /// @solidity memory-safe-assembly assembly { // Get a pointer to some free memory. let freeMemoryPointer := mload(0x40) // Write the abi-encoded calldata into memory, beginning with the function selector. mstore(freeMemoryPointer, 0xa9059cbb00000000000000000000000000000000000000000000000000000000) mstore(add(freeMemoryPointer, 4), to) // Append the "to" argument. mstore(add(freeMemoryPointer, 36), amount) // Append the "amount" argument. success := and( // Set success to whether the call reverted, if not we check it either // returned exactly 1 (can't just be non-zero data), or had no return data. or(and(eq(mload(0), 1), gt(returndatasize(), 31)), iszero(returndatasize())), // We use 68 because the length of our calldata totals up like so: 4 + 32 * 2. // We use 0 and 32 to copy up to 32 bytes of return data into the scratch space. // Counterintuitively, this call must be positioned second to the or() call in the // surrounding and() call or else returndatasize() will be zero during the computation. call(gas(), token, 0, freeMemoryPointer, 68, 0, 32) ) } require(success, "TRANSFER_FAILED"); } function safeApprove( ERC20 token, address to, uint256 amount ) internal { bool success; /// @solidity memory-safe-assembly assembly { // Get a pointer to some free memory. let freeMemoryPointer := mload(0x40) // Write the abi-encoded calldata into memory, beginning with the function selector. mstore(freeMemoryPointer, 0x095ea7b300000000000000000000000000000000000000000000000000000000) mstore(add(freeMemoryPointer, 4), to) // Append the "to" argument. mstore(add(freeMemoryPointer, 36), amount) // Append the "amount" argument. success := and( // Set success to whether the call reverted, if not we check it either // returned exactly 1 (can't just be non-zero data), or had no return data. or(and(eq(mload(0), 1), gt(returndatasize(), 31)), iszero(returndatasize())), // We use 68 because the length of our calldata totals up like so: 4 + 32 * 2. // We use 0 and 32 to copy up to 32 bytes of return data into the scratch space. // Counterintuitively, this call must be positioned second to the or() call in the // surrounding and() call or else returndatasize() will be zero during the computation. call(gas(), token, 0, freeMemoryPointer, 68, 0, 32) ) } require(success, "APPROVE_FAILED"); } }
{ "optimizer": { "enabled": true, "runs": 200 }, "evmVersion": "paris", "remappings": [ ":ds-test/=lib/forge-std/lib/ds-test/src/", ":forge-std/=lib/forge-std/src/", ":openzeppelin-contracts/=lib/openzeppelin-contracts/", ":solmate/=lib/solmate/src/" ], "outputSelection": { "*": { "*": [ "evm.bytecode", "evm.deployedBytecode", "devdoc", "userdoc", "metadata", "abi" ] } } }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"inputs":[{"internalType":"string","name":"_baseUri","type":"string"}],"stateMutability":"nonpayable","type":"constructor"},{"inputs":[],"name":"ArtistsGottaSurvive","type":"error"},{"inputs":[],"name":"MaxSupply","type":"error"},{"inputs":[],"name":"NonExistentTokenURI","type":"error"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"uint256","name":"change","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"accomplishments","type":"uint256"}],"name":"AccomplishmentsUpdated","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"spender","type":"address"},{"indexed":true,"internalType":"uint256","name":"id","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":false,"internalType":"bool","name":"approved","type":"bool"}],"name":"ApprovalForAll","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"contract MetadataRenderer","name":"renderer","type":"address"}],"name":"MetadataRendererUpdated","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":true,"internalType":"uint256","name":"id","type":"uint256"}],"name":"Transfer","type":"event"},{"inputs":[],"name":"MAX_SUPPLY","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"PRICE","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"TOTAL_ACTS","outputs":[{"internalType":"uint8","name":"","type":"uint8"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"accomplishments","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"id","type":"uint256"}],"name":"approve","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"baseUri","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"cards","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"contractURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"id","type":"uint256"}],"name":"getActs","outputs":[{"internalType":"uint8[]","name":"","type":"uint8[]"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"getApproved","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"id","type":"uint256"}],"name":"getPalette","outputs":[{"internalType":"uint8","name":"","type":"uint8"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"},{"internalType":"address","name":"","type":"address"}],"name":"isApprovedForAll","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"mint","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"nextTokenIdToMint","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"id","type":"uint256"}],"name":"ownerOf","outputs":[{"internalType":"address","name":"owner","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renderer","outputs":[{"internalType":"contract MetadataRenderer","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"","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":"id","type":"uint256"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"id","type":"uint256"},{"internalType":"bytes","name":"data","type":"bytes"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_accomplishments","type":"uint256"}],"name":"setAccomplishments","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"operator","type":"address"},{"internalType":"bool","name":"approved","type":"bool"}],"name":"setApprovalForAll","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"_baseUri","type":"string"}],"name":"setBaseUri","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"contract MetadataRenderer","name":"_renderer","type":"address"}],"name":"setMetadataRenderer","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes4","name":"interfaceId","type":"bytes4"}],"name":"supportsInterface","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"id","type":"uint256"}],"name":"tokenURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"id","type":"uint256"}],"name":"transferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"}],"name":"withdraw","outputs":[],"stateMutability":"nonpayable","type":"function"}]
Contract Creation Code
60806040523480156200001157600080fd5b50604051620025b2380380620025b28339810160408190526200003491620003e5565b6040518060400160405280600c81526020016b4172746973742042696e676f60a01b8152506040518060400160405280600581526020016442494e474f60d81b815250816000908162000088919062000549565b50600162000097828262000549565b505050620000b4620000ae620000e760201b60201c565b620000eb565b600a620000c2828262000549565b50620000d7336007546200013d60201b60201c565b5060078054600101905562000670565b3390565b600680546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b6200014982826200023c565b6001600160a01b0382163b1580620001f35750604051630a85bd0160e11b80825233600483015260006024830181905260448301849052608060648401526084830152906001600160a01b0384169063150b7a029060a4016020604051808303816000875af1158015620001c1573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190620001e7919062000615565b6001600160e01b031916145b620002385760405162461bcd60e51b815260206004820152601060248201526f155394d0519157d49150d2541251539560821b60448201526064015b60405180910390fd5b5050565b80336200024b60014362000648565b40604051602001620002959392919092835260609190911b6001600160601b031916602083015260348201526e7368727567732077757a206865726560881b605482015260630190565b60408051601f198184030181529181528151602092830120600084815260099093529120556200023882826001600160a01b0382166200030c5760405162461bcd60e51b81526020600482015260116024820152701253959053125117d49150d25412515395607a1b60448201526064016200022f565b6000818152600260205260409020546001600160a01b031615620003645760405162461bcd60e51b815260206004820152600e60248201526d1053149150511657d3525395115160921b60448201526064016200022f565b6001600160a01b038216600081815260036020908152604080832080546001019055848352600290915280822080546001600160a01b0319168417905551839291907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b634e487b7160e01b600052604160045260246000fd5b60006020808385031215620003f957600080fd5b82516001600160401b03808211156200041157600080fd5b818501915085601f8301126200042657600080fd5b8151818111156200043b576200043b620003cf565b604051601f8201601f19908116603f01168101908382118183101715620004665762000466620003cf565b8160405282815288868487010111156200047f57600080fd5b600093505b82841015620004a3578484018601518185018701529285019262000484565b600086848301015280965050505050505092915050565b600181811c90821680620004cf57607f821691505b602082108103620004f057634e487b7160e01b600052602260045260246000fd5b50919050565b601f8211156200054457600081815260208120601f850160051c810160208610156200051f5750805b601f850160051c820191505b8181101562000540578281556001016200052b565b5050505b505050565b81516001600160401b03811115620005655762000565620003cf565b6200057d81620005768454620004ba565b84620004f6565b602080601f831160018114620005b557600084156200059c5750858301515b600019600386901b1c1916600185901b17855562000540565b600085815260208120601f198616915b82811015620005e657888601518255948401946001909101908401620005c5565b5085821015620006055787850151600019600388901b60f8161c191681555b5050505050600190811b01905550565b6000602082840312156200062857600080fd5b81516001600160e01b0319811681146200064157600080fd5b9392505050565b818103818111156200066a57634e487b7160e01b600052601160045260246000fd5b92915050565b611f3280620006806000396000f3fe6080604052600436106101ee5760003560e01c80638ada6b0f1161010d578063a22cb465116100a0578063d2aae16d1161006f578063d2aae16d146105bf578063e8a3d485146105d4578063e985e9c5146105e9578063f2fde38b14610624578063fd4fe8a81461064457600080fd5b8063a22cb4651461053f578063b88d4fde1461055f578063c87b56dd1461057f578063cff48f811461059f57600080fd5b806395376817116100dc57806395376817146104df57806395d89b41146104f55780639abc83201461050a578063a0bcfc7f1461051f57600080fd5b80638ada6b0f146104595780638d859f3e146104795780638da5cb5b146104945780638dc10768146104b257600080fd5b806340c10f19116101855780636352211e116101545780636352211e146103d757806370a08231146103f7578063715018a61461041757806384cb9bbe1461042c57600080fd5b806340c10f191461035257806342842e0e14610365578063505e570a1461038557806351cff8d9146103b757600080fd5b806323b872dd116101c157806323b872dd146102ba5780632a55205a146102da57806332cb6b0c146103195780633b1475a71461033c57600080fd5b806301ffc9a7146101f357806306fdde0314610228578063081812fc1461024a578063095ea7b314610298575b600080fd5b3480156101ff57600080fd5b5061021361020e366004611745565b610664565b60405190151581526020015b60405180910390f35b34801561023457600080fd5b5061023d61068f565b60405161021f919061178d565b34801561025657600080fd5b506102806102653660046117c0565b6004602052600090815260409020546001600160a01b031681565b6040516001600160a01b03909116815260200161021f565b3480156102a457600080fd5b506102b86102b33660046117ee565b61071d565b005b3480156102c657600080fd5b506102b86102d536600461181a565b610804565b3480156102e657600080fd5b506102fa6102f536600461185b565b6109cb565b604080516001600160a01b03909316835260208301919091520161021f565b34801561032557600080fd5b5061032e60fa81565b60405190815260200161021f565b34801561034857600080fd5b5061032e60075481565b6102b86103603660046117ee565b610a02565b34801561037157600080fd5b506102b861038036600461181a565b610a8f565b34801561039157600080fd5b506103a56103a03660046117c0565b610b5f565b60405160ff909116815260200161021f565b3480156103c357600080fd5b506102b86103d236600461187d565b610c22565b3480156103e357600080fd5b506102806103f23660046117c0565b610c37565b34801561040357600080fd5b5061032e61041236600461187d565b610c8e565b34801561042357600080fd5b506102b8610cf1565b34801561043857600080fd5b5061044c6104473660046117c0565b610d05565b60405161021f919061189a565b34801561046557600080fd5b50600b54610280906001600160a01b031681565b34801561048557600080fd5b5061032e66b1a2bc2ec5000081565b3480156104a057600080fd5b506006546001600160a01b0316610280565b3480156104be57600080fd5b5061032e6104cd3660046117c0565b60096020526000908152604090205481565b3480156104eb57600080fd5b5061032e60085481565b34801561050157600080fd5b5061023d610df6565b34801561051657600080fd5b5061023d610e03565b34801561052b57600080fd5b506102b861053a366004611950565b610e10565b34801561054b57600080fd5b506102b861055a3660046119d0565b610e28565b34801561056b57600080fd5b506102b861057a366004611a0e565b610e94565b34801561058b57600080fd5b5061023d61059a3660046117c0565b610f59565b3480156105ab57600080fd5b506102b86105ba3660046117c0565b611041565b3480156105cb57600080fd5b506103a5608081565b3480156105e057600080fd5b5061023d61108c565b3480156105f557600080fd5b50610213610604366004611aad565b600560209081526000928352604080842090915290825290205460ff1681565b34801561063057600080fd5b506102b861063f36600461187d565b611146565b34801561065057600080fd5b506102b861065f36600461187d565b6111bc565b60006001600160e01b0319821663152a902d60e11b1480610689575061068982611218565b92915050565b6000805461069c90611adb565b80601f01602080910402602001604051908101604052809291908181526020018280546106c890611adb565b80156107155780601f106106ea57610100808354040283529160200191610715565b820191906000526020600020905b8154815290600101906020018083116106f857829003601f168201915b505050505081565b6000818152600260205260409020546001600160a01b03163381148061076657506001600160a01b038116600090815260056020908152604080832033845290915290205460ff165b6107a85760405162461bcd60e51b815260206004820152600e60248201526d1393d517d055551213d49256915160921b60448201526064015b60405180910390fd5b60008281526004602052604080822080546001600160a01b0319166001600160a01b0387811691821790925591518593918516917f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92591a4505050565b6000818152600260205260409020546001600160a01b0384811691161461085a5760405162461bcd60e51b815260206004820152600a60248201526957524f4e475f46524f4d60b01b604482015260640161079f565b6001600160a01b0382166108a45760405162461bcd60e51b81526020600482015260116024820152701253959053125117d49150d25412515395607a1b604482015260640161079f565b336001600160a01b03841614806108de57506001600160a01b038316600090815260056020908152604080832033845290915290205460ff165b806108ff57506000818152600460205260409020546001600160a01b031633145b61093c5760405162461bcd60e51b815260206004820152600e60248201526d1393d517d055551213d49256915160921b604482015260640161079f565b6001600160a01b0380841660008181526003602090815260408083208054600019019055938616808352848320805460010190558583526002825284832080546001600160a01b03199081168317909155600490925284832080549092169091559251849392917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91a4505050565b6000806109e06006546001600160a01b031690565b60646109ed856005611b2b565b6109f79190611b58565b915091509250929050565b610a1366b1a2bc2ec5000082611b2b565b3414610a3257604051636d8da81760e11b815260040160405180910390fd5b60fa81600754610a429190611b6c565b1115610a6157604051632cdb04a160e21b815260040160405180910390fd5b60005b81811015610a8a57610a7883600754611266565b60078054600190810190915501610a64565b505050565b610a9a838383610804565b6001600160a01b0382163b1580610b435750604051630a85bd0160e11b8082523360048301526001600160a01b03858116602484015260448301849052608060648401526000608484015290919084169063150b7a029060a4016020604051808303816000875af1158015610b13573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610b379190611b7f565b6001600160e01b031916145b610a8a5760405162461bcd60e51b815260040161079f90611b9c565b60008181526009602052604081205460381c603d60ff82161015610b865750600092915050565b60668160ff161015610b9b5750600192915050565b608f8160ff161015610bb05750600292915050565b60a98160ff161015610bc55750600392915050565b60c38160ff161015610bda5750600492915050565b60dc8160ff161015610bef5750600592915050565b60ec8160ff161015610c045750600692915050565b60fc8160ff161015610c195750600792915050565b50600892915050565b610c2a611332565b610c34814761138c565b50565b6000818152600260205260409020546001600160a01b031680610c895760405162461bcd60e51b815260206004820152600a6024820152691393d517d3525395115160b21b604482015260640161079f565b919050565b60006001600160a01b038216610cd55760405162461bcd60e51b815260206004820152600c60248201526b5a45524f5f4144445245535360a01b604482015260640161079f565b506001600160a01b031660009081526003602052604090205490565b610cf9611332565b610d0360006113dd565b565b600081815260096020526040808220548151601880825261032082019093526060939192829182918291829181602001602082028036833701905050905060005b6018811015610dea57610d5a81601f611bc6565b610d65906008611b2b565b87901c9350600094505b6080610d7b8686611bd9565b610d859190611bf2565b9250600160ff84161b861615610da75784610d9f81611c14565b955050610d6f565b8260ff166001901b8617955082828281518110610dc657610dc6611c33565b60ff9092166020928302919091019091015280610de281611c49565b915050610d46565b50979650505050505050565b6001805461069c90611adb565b600a805461069c90611adb565b610e18611332565b600a610e248282611cb0565b5050565b3360008181526005602090815260408083206001600160a01b03871680855290835292819020805460ff191686151590811790915590519081529192917f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a35050565b610e9f858585610804565b6001600160a01b0384163b1580610f365750604051630a85bd0160e11b808252906001600160a01b0386169063150b7a0290610ee79033908a90899089908990600401611d70565b6020604051808303816000875af1158015610f06573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610f2a9190611b7f565b6001600160e01b031916145b610f525760405162461bcd60e51b815260040161079f90611b9c565b5050505050565b60606000610f6683610c37565b6001600160a01b031603610f8d5760405163d872946b60e01b815260040160405180910390fd5b600b546001600160a01b03161561100f57600b546040516330c8446360e21b8152600481018490526001600160a01b039091169063c321118c90602401600060405180830381865afa158015610fe7573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f191682016040526106899190810190611dc4565b600a61101a8361142f565b60405160200161102b929190611eae565b6040516020818303038152906040529050919050565b611049611332565b60085481187f3ebe155b68a43d9ac46762a2ea50b7829fc560e24de6407e2cc22bb4d42db0918260405161107f91815260200190565b60405180910390a2600855565b600b546060906001600160a01b03161561112057600b60009054906101000a90046001600160a01b03166001600160a01b031663e8a3d4856040518163ffffffff1660e01b8152600401600060405180830381865afa1580156110f3573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f1916820160405261111b9190810190611dc4565b905090565b600a6040516020016111329190611ed3565b604051602081830303815290604052905090565b61114e611332565b6001600160a01b0381166111b35760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b606482015260840161079f565b610c34816113dd565b6111c4611332565b600b80546001600160a01b0319166001600160a01b0383169081179091556040519081527f60a886c8dc324af9c6d6a1bf7369ffe7557ef345eb5717bceffb59beac879a0a9060200160405180910390a150565b60006301ffc9a760e01b6001600160e01b03198316148061124957506380ac58cd60e01b6001600160e01b03198316145b806106895750506001600160e01b031916635b5e139f60e01b1490565b61127082826114c2565b6001600160a01b0382163b15806113165750604051630a85bd0160e11b80825233600483015260006024830181905260448301849052608060648401526084830152906001600160a01b0384169063150b7a029060a4016020604051808303816000875af11580156112e6573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061130a9190611b7f565b6001600160e01b031916145b610e245760405162461bcd60e51b815260040161079f90611b9c565b6006546001600160a01b03163314610d035760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015260640161079f565b600080600080600085875af1905080610a8a5760405162461bcd60e51b815260206004820152601360248201527211551217d514905394d1915497d19052531151606a1b604482015260640161079f565b600680546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b6060600061143c8361154c565b600101905060008167ffffffffffffffff81111561145c5761145c6118e1565b6040519080825280601f01601f191660200182016040528015611486576020820181803683370190505b5090508181016020015b600019016f181899199a1a9b1b9c1cb0b131b232b360811b600a86061a8153600a850494508461149057509392505050565b80336114cf600143611bc6565b4060405160200161151d9392919092835260609190911b6bffffffffffffffffffffffff1916602083015260348201526e7368727567732077757a206865726560881b605482015260630190565b60408051601f19818403018152918152815160209283012060008481526009909352912055610e248282611624565b60008072184f03e93ff9f4daa797ed6e38ed64bf6a1f0160401b831061158b5772184f03e93ff9f4daa797ed6e38ed64bf6a1f0160401b830492506040015b6d04ee2d6d415b85acef810000000083106115b7576d04ee2d6d415b85acef8100000000830492506020015b662386f26fc1000083106115d557662386f26fc10000830492506010015b6305f5e10083106115ed576305f5e100830492506008015b612710831061160157612710830492506004015b60648310611613576064830492506002015b600a83106106895760010192915050565b6001600160a01b03821661166e5760405162461bcd60e51b81526020600482015260116024820152701253959053125117d49150d25412515395607a1b604482015260640161079f565b6000818152600260205260409020546001600160a01b0316156116c45760405162461bcd60e51b815260206004820152600e60248201526d1053149150511657d3525395115160921b604482015260640161079f565b6001600160a01b038216600081815260036020908152604080832080546001019055848352600290915280822080546001600160a01b0319168417905551839291907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b6001600160e01b031981168114610c3457600080fd5b60006020828403121561175757600080fd5b81356117628161172f565b9392505050565b60005b8381101561178457818101518382015260200161176c565b50506000910152565b60208152600082518060208401526117ac816040850160208701611769565b601f01601f19169190910160400192915050565b6000602082840312156117d257600080fd5b5035919050565b6001600160a01b0381168114610c3457600080fd5b6000806040838503121561180157600080fd5b823561180c816117d9565b946020939093013593505050565b60008060006060848603121561182f57600080fd5b833561183a816117d9565b9250602084013561184a816117d9565b929592945050506040919091013590565b6000806040838503121561186e57600080fd5b50508035926020909101359150565b60006020828403121561188f57600080fd5b8135611762816117d9565b6020808252825182820181905260009190848201906040850190845b818110156118d557835160ff16835292840192918401916001016118b6565b50909695505050505050565b634e487b7160e01b600052604160045260246000fd5b604051601f8201601f1916810167ffffffffffffffff81118282101715611920576119206118e1565b604052919050565b600067ffffffffffffffff821115611942576119426118e1565b50601f01601f191660200190565b60006020828403121561196257600080fd5b813567ffffffffffffffff81111561197957600080fd5b8201601f8101841361198a57600080fd5b803561199d61199882611928565b6118f7565b8181528560208385010111156119b257600080fd5b81602084016020830137600091810160200191909152949350505050565b600080604083850312156119e357600080fd5b82356119ee816117d9565b915060208301358015158114611a0357600080fd5b809150509250929050565b600080600080600060808688031215611a2657600080fd5b8535611a31816117d9565b94506020860135611a41816117d9565b935060408601359250606086013567ffffffffffffffff80821115611a6557600080fd5b818801915088601f830112611a7957600080fd5b813581811115611a8857600080fd5b896020828501011115611a9a57600080fd5b9699959850939650602001949392505050565b60008060408385031215611ac057600080fd5b8235611acb816117d9565b91506020830135611a03816117d9565b600181811c90821680611aef57607f821691505b602082108103611b0f57634e487b7160e01b600052602260045260246000fd5b50919050565b634e487b7160e01b600052601160045260246000fd5b808202811582820484141761068957610689611b15565b634e487b7160e01b600052601260045260246000fd5b600082611b6757611b67611b42565b500490565b8082018082111561068957610689611b15565b600060208284031215611b9157600080fd5b81516117628161172f565b60208082526010908201526f155394d0519157d49150d2541251539560821b604082015260600190565b8181038181111561068957610689611b15565b60ff818116838216019081111561068957610689611b15565b600060ff831680611c0557611c05611b42565b8060ff84160691505092915050565b600060ff821660ff8103611c2a57611c2a611b15565b60010192915050565b634e487b7160e01b600052603260045260246000fd5b600060018201611c5b57611c5b611b15565b5060010190565b601f821115610a8a57600081815260208120601f850160051c81016020861015611c895750805b601f850160051c820191505b81811015611ca857828155600101611c95565b505050505050565b815167ffffffffffffffff811115611cca57611cca6118e1565b611cde81611cd88454611adb565b84611c62565b602080601f831160018114611d135760008415611cfb5750858301515b600019600386901b1c1916600185901b178555611ca8565b600085815260208120601f198616915b82811015611d4257888601518255948401946001909101908401611d23565b5085821015611d605787850151600019600388901b60f8161c191681555b5050505050600190811b01905550565b6001600160a01b038681168252851660208201526040810184905260806060820181905281018290526000828460a0840137600060a0848401015260a0601f19601f85011683010190509695505050505050565b600060208284031215611dd657600080fd5b815167ffffffffffffffff811115611ded57600080fd5b8201601f81018413611dfe57600080fd5b8051611e0c61199882611928565b818152856020838501011115611e2157600080fd5b611e32826020830160208601611769565b95945050505050565b60008154611e4881611adb565b60018281168015611e605760018114611e7557611ea4565b60ff1984168752821515830287019450611ea4565b8560005260208060002060005b85811015611e9b5781548a820152908401908201611e82565b50505082870194505b5050505092915050565b6000611eba8285611e3b565b8351611eca818360208801611769565b01949350505050565b6000611edf8284611e3b565b6c31b7b73a3930b1ba173539b7b760991b8152600d01939250505056fea2646970667358221220b37e7426805c8ee516b7cbc184280c3979b648c1abf2aa730a77060073116dc964736f6c634300081300330000000000000000000000000000000000000000000000000000000000000020000000000000000000000000000000000000000000000000000000000000002668747470733a2f2f6170702e6172746973742e62696e676f2f6170692f6d657461646174612f0000000000000000000000000000000000000000000000000000
Deployed Bytecode
0x6080604052600436106101ee5760003560e01c80638ada6b0f1161010d578063a22cb465116100a0578063d2aae16d1161006f578063d2aae16d146105bf578063e8a3d485146105d4578063e985e9c5146105e9578063f2fde38b14610624578063fd4fe8a81461064457600080fd5b8063a22cb4651461053f578063b88d4fde1461055f578063c87b56dd1461057f578063cff48f811461059f57600080fd5b806395376817116100dc57806395376817146104df57806395d89b41146104f55780639abc83201461050a578063a0bcfc7f1461051f57600080fd5b80638ada6b0f146104595780638d859f3e146104795780638da5cb5b146104945780638dc10768146104b257600080fd5b806340c10f19116101855780636352211e116101545780636352211e146103d757806370a08231146103f7578063715018a61461041757806384cb9bbe1461042c57600080fd5b806340c10f191461035257806342842e0e14610365578063505e570a1461038557806351cff8d9146103b757600080fd5b806323b872dd116101c157806323b872dd146102ba5780632a55205a146102da57806332cb6b0c146103195780633b1475a71461033c57600080fd5b806301ffc9a7146101f357806306fdde0314610228578063081812fc1461024a578063095ea7b314610298575b600080fd5b3480156101ff57600080fd5b5061021361020e366004611745565b610664565b60405190151581526020015b60405180910390f35b34801561023457600080fd5b5061023d61068f565b60405161021f919061178d565b34801561025657600080fd5b506102806102653660046117c0565b6004602052600090815260409020546001600160a01b031681565b6040516001600160a01b03909116815260200161021f565b3480156102a457600080fd5b506102b86102b33660046117ee565b61071d565b005b3480156102c657600080fd5b506102b86102d536600461181a565b610804565b3480156102e657600080fd5b506102fa6102f536600461185b565b6109cb565b604080516001600160a01b03909316835260208301919091520161021f565b34801561032557600080fd5b5061032e60fa81565b60405190815260200161021f565b34801561034857600080fd5b5061032e60075481565b6102b86103603660046117ee565b610a02565b34801561037157600080fd5b506102b861038036600461181a565b610a8f565b34801561039157600080fd5b506103a56103a03660046117c0565b610b5f565b60405160ff909116815260200161021f565b3480156103c357600080fd5b506102b86103d236600461187d565b610c22565b3480156103e357600080fd5b506102806103f23660046117c0565b610c37565b34801561040357600080fd5b5061032e61041236600461187d565b610c8e565b34801561042357600080fd5b506102b8610cf1565b34801561043857600080fd5b5061044c6104473660046117c0565b610d05565b60405161021f919061189a565b34801561046557600080fd5b50600b54610280906001600160a01b031681565b34801561048557600080fd5b5061032e66b1a2bc2ec5000081565b3480156104a057600080fd5b506006546001600160a01b0316610280565b3480156104be57600080fd5b5061032e6104cd3660046117c0565b60096020526000908152604090205481565b3480156104eb57600080fd5b5061032e60085481565b34801561050157600080fd5b5061023d610df6565b34801561051657600080fd5b5061023d610e03565b34801561052b57600080fd5b506102b861053a366004611950565b610e10565b34801561054b57600080fd5b506102b861055a3660046119d0565b610e28565b34801561056b57600080fd5b506102b861057a366004611a0e565b610e94565b34801561058b57600080fd5b5061023d61059a3660046117c0565b610f59565b3480156105ab57600080fd5b506102b86105ba3660046117c0565b611041565b3480156105cb57600080fd5b506103a5608081565b3480156105e057600080fd5b5061023d61108c565b3480156105f557600080fd5b50610213610604366004611aad565b600560209081526000928352604080842090915290825290205460ff1681565b34801561063057600080fd5b506102b861063f36600461187d565b611146565b34801561065057600080fd5b506102b861065f36600461187d565b6111bc565b60006001600160e01b0319821663152a902d60e11b1480610689575061068982611218565b92915050565b6000805461069c90611adb565b80601f01602080910402602001604051908101604052809291908181526020018280546106c890611adb565b80156107155780601f106106ea57610100808354040283529160200191610715565b820191906000526020600020905b8154815290600101906020018083116106f857829003601f168201915b505050505081565b6000818152600260205260409020546001600160a01b03163381148061076657506001600160a01b038116600090815260056020908152604080832033845290915290205460ff165b6107a85760405162461bcd60e51b815260206004820152600e60248201526d1393d517d055551213d49256915160921b60448201526064015b60405180910390fd5b60008281526004602052604080822080546001600160a01b0319166001600160a01b0387811691821790925591518593918516917f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92591a4505050565b6000818152600260205260409020546001600160a01b0384811691161461085a5760405162461bcd60e51b815260206004820152600a60248201526957524f4e475f46524f4d60b01b604482015260640161079f565b6001600160a01b0382166108a45760405162461bcd60e51b81526020600482015260116024820152701253959053125117d49150d25412515395607a1b604482015260640161079f565b336001600160a01b03841614806108de57506001600160a01b038316600090815260056020908152604080832033845290915290205460ff165b806108ff57506000818152600460205260409020546001600160a01b031633145b61093c5760405162461bcd60e51b815260206004820152600e60248201526d1393d517d055551213d49256915160921b604482015260640161079f565b6001600160a01b0380841660008181526003602090815260408083208054600019019055938616808352848320805460010190558583526002825284832080546001600160a01b03199081168317909155600490925284832080549092169091559251849392917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91a4505050565b6000806109e06006546001600160a01b031690565b60646109ed856005611b2b565b6109f79190611b58565b915091509250929050565b610a1366b1a2bc2ec5000082611b2b565b3414610a3257604051636d8da81760e11b815260040160405180910390fd5b60fa81600754610a429190611b6c565b1115610a6157604051632cdb04a160e21b815260040160405180910390fd5b60005b81811015610a8a57610a7883600754611266565b60078054600190810190915501610a64565b505050565b610a9a838383610804565b6001600160a01b0382163b1580610b435750604051630a85bd0160e11b8082523360048301526001600160a01b03858116602484015260448301849052608060648401526000608484015290919084169063150b7a029060a4016020604051808303816000875af1158015610b13573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610b379190611b7f565b6001600160e01b031916145b610a8a5760405162461bcd60e51b815260040161079f90611b9c565b60008181526009602052604081205460381c603d60ff82161015610b865750600092915050565b60668160ff161015610b9b5750600192915050565b608f8160ff161015610bb05750600292915050565b60a98160ff161015610bc55750600392915050565b60c38160ff161015610bda5750600492915050565b60dc8160ff161015610bef5750600592915050565b60ec8160ff161015610c045750600692915050565b60fc8160ff161015610c195750600792915050565b50600892915050565b610c2a611332565b610c34814761138c565b50565b6000818152600260205260409020546001600160a01b031680610c895760405162461bcd60e51b815260206004820152600a6024820152691393d517d3525395115160b21b604482015260640161079f565b919050565b60006001600160a01b038216610cd55760405162461bcd60e51b815260206004820152600c60248201526b5a45524f5f4144445245535360a01b604482015260640161079f565b506001600160a01b031660009081526003602052604090205490565b610cf9611332565b610d0360006113dd565b565b600081815260096020526040808220548151601880825261032082019093526060939192829182918291829181602001602082028036833701905050905060005b6018811015610dea57610d5a81601f611bc6565b610d65906008611b2b565b87901c9350600094505b6080610d7b8686611bd9565b610d859190611bf2565b9250600160ff84161b861615610da75784610d9f81611c14565b955050610d6f565b8260ff166001901b8617955082828281518110610dc657610dc6611c33565b60ff9092166020928302919091019091015280610de281611c49565b915050610d46565b50979650505050505050565b6001805461069c90611adb565b600a805461069c90611adb565b610e18611332565b600a610e248282611cb0565b5050565b3360008181526005602090815260408083206001600160a01b03871680855290835292819020805460ff191686151590811790915590519081529192917f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a35050565b610e9f858585610804565b6001600160a01b0384163b1580610f365750604051630a85bd0160e11b808252906001600160a01b0386169063150b7a0290610ee79033908a90899089908990600401611d70565b6020604051808303816000875af1158015610f06573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610f2a9190611b7f565b6001600160e01b031916145b610f525760405162461bcd60e51b815260040161079f90611b9c565b5050505050565b60606000610f6683610c37565b6001600160a01b031603610f8d5760405163d872946b60e01b815260040160405180910390fd5b600b546001600160a01b03161561100f57600b546040516330c8446360e21b8152600481018490526001600160a01b039091169063c321118c90602401600060405180830381865afa158015610fe7573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f191682016040526106899190810190611dc4565b600a61101a8361142f565b60405160200161102b929190611eae565b6040516020818303038152906040529050919050565b611049611332565b60085481187f3ebe155b68a43d9ac46762a2ea50b7829fc560e24de6407e2cc22bb4d42db0918260405161107f91815260200190565b60405180910390a2600855565b600b546060906001600160a01b03161561112057600b60009054906101000a90046001600160a01b03166001600160a01b031663e8a3d4856040518163ffffffff1660e01b8152600401600060405180830381865afa1580156110f3573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f1916820160405261111b9190810190611dc4565b905090565b600a6040516020016111329190611ed3565b604051602081830303815290604052905090565b61114e611332565b6001600160a01b0381166111b35760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b606482015260840161079f565b610c34816113dd565b6111c4611332565b600b80546001600160a01b0319166001600160a01b0383169081179091556040519081527f60a886c8dc324af9c6d6a1bf7369ffe7557ef345eb5717bceffb59beac879a0a9060200160405180910390a150565b60006301ffc9a760e01b6001600160e01b03198316148061124957506380ac58cd60e01b6001600160e01b03198316145b806106895750506001600160e01b031916635b5e139f60e01b1490565b61127082826114c2565b6001600160a01b0382163b15806113165750604051630a85bd0160e11b80825233600483015260006024830181905260448301849052608060648401526084830152906001600160a01b0384169063150b7a029060a4016020604051808303816000875af11580156112e6573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061130a9190611b7f565b6001600160e01b031916145b610e245760405162461bcd60e51b815260040161079f90611b9c565b6006546001600160a01b03163314610d035760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015260640161079f565b600080600080600085875af1905080610a8a5760405162461bcd60e51b815260206004820152601360248201527211551217d514905394d1915497d19052531151606a1b604482015260640161079f565b600680546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b6060600061143c8361154c565b600101905060008167ffffffffffffffff81111561145c5761145c6118e1565b6040519080825280601f01601f191660200182016040528015611486576020820181803683370190505b5090508181016020015b600019016f181899199a1a9b1b9c1cb0b131b232b360811b600a86061a8153600a850494508461149057509392505050565b80336114cf600143611bc6565b4060405160200161151d9392919092835260609190911b6bffffffffffffffffffffffff1916602083015260348201526e7368727567732077757a206865726560881b605482015260630190565b60408051601f19818403018152918152815160209283012060008481526009909352912055610e248282611624565b60008072184f03e93ff9f4daa797ed6e38ed64bf6a1f0160401b831061158b5772184f03e93ff9f4daa797ed6e38ed64bf6a1f0160401b830492506040015b6d04ee2d6d415b85acef810000000083106115b7576d04ee2d6d415b85acef8100000000830492506020015b662386f26fc1000083106115d557662386f26fc10000830492506010015b6305f5e10083106115ed576305f5e100830492506008015b612710831061160157612710830492506004015b60648310611613576064830492506002015b600a83106106895760010192915050565b6001600160a01b03821661166e5760405162461bcd60e51b81526020600482015260116024820152701253959053125117d49150d25412515395607a1b604482015260640161079f565b6000818152600260205260409020546001600160a01b0316156116c45760405162461bcd60e51b815260206004820152600e60248201526d1053149150511657d3525395115160921b604482015260640161079f565b6001600160a01b038216600081815260036020908152604080832080546001019055848352600290915280822080546001600160a01b0319168417905551839291907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b6001600160e01b031981168114610c3457600080fd5b60006020828403121561175757600080fd5b81356117628161172f565b9392505050565b60005b8381101561178457818101518382015260200161176c565b50506000910152565b60208152600082518060208401526117ac816040850160208701611769565b601f01601f19169190910160400192915050565b6000602082840312156117d257600080fd5b5035919050565b6001600160a01b0381168114610c3457600080fd5b6000806040838503121561180157600080fd5b823561180c816117d9565b946020939093013593505050565b60008060006060848603121561182f57600080fd5b833561183a816117d9565b9250602084013561184a816117d9565b929592945050506040919091013590565b6000806040838503121561186e57600080fd5b50508035926020909101359150565b60006020828403121561188f57600080fd5b8135611762816117d9565b6020808252825182820181905260009190848201906040850190845b818110156118d557835160ff16835292840192918401916001016118b6565b50909695505050505050565b634e487b7160e01b600052604160045260246000fd5b604051601f8201601f1916810167ffffffffffffffff81118282101715611920576119206118e1565b604052919050565b600067ffffffffffffffff821115611942576119426118e1565b50601f01601f191660200190565b60006020828403121561196257600080fd5b813567ffffffffffffffff81111561197957600080fd5b8201601f8101841361198a57600080fd5b803561199d61199882611928565b6118f7565b8181528560208385010111156119b257600080fd5b81602084016020830137600091810160200191909152949350505050565b600080604083850312156119e357600080fd5b82356119ee816117d9565b915060208301358015158114611a0357600080fd5b809150509250929050565b600080600080600060808688031215611a2657600080fd5b8535611a31816117d9565b94506020860135611a41816117d9565b935060408601359250606086013567ffffffffffffffff80821115611a6557600080fd5b818801915088601f830112611a7957600080fd5b813581811115611a8857600080fd5b896020828501011115611a9a57600080fd5b9699959850939650602001949392505050565b60008060408385031215611ac057600080fd5b8235611acb816117d9565b91506020830135611a03816117d9565b600181811c90821680611aef57607f821691505b602082108103611b0f57634e487b7160e01b600052602260045260246000fd5b50919050565b634e487b7160e01b600052601160045260246000fd5b808202811582820484141761068957610689611b15565b634e487b7160e01b600052601260045260246000fd5b600082611b6757611b67611b42565b500490565b8082018082111561068957610689611b15565b600060208284031215611b9157600080fd5b81516117628161172f565b60208082526010908201526f155394d0519157d49150d2541251539560821b604082015260600190565b8181038181111561068957610689611b15565b60ff818116838216019081111561068957610689611b15565b600060ff831680611c0557611c05611b42565b8060ff84160691505092915050565b600060ff821660ff8103611c2a57611c2a611b15565b60010192915050565b634e487b7160e01b600052603260045260246000fd5b600060018201611c5b57611c5b611b15565b5060010190565b601f821115610a8a57600081815260208120601f850160051c81016020861015611c895750805b601f850160051c820191505b81811015611ca857828155600101611c95565b505050505050565b815167ffffffffffffffff811115611cca57611cca6118e1565b611cde81611cd88454611adb565b84611c62565b602080601f831160018114611d135760008415611cfb5750858301515b600019600386901b1c1916600185901b178555611ca8565b600085815260208120601f198616915b82811015611d4257888601518255948401946001909101908401611d23565b5085821015611d605787850151600019600388901b60f8161c191681555b5050505050600190811b01905550565b6001600160a01b038681168252851660208201526040810184905260806060820181905281018290526000828460a0840137600060a0848401015260a0601f19601f85011683010190509695505050505050565b600060208284031215611dd657600080fd5b815167ffffffffffffffff811115611ded57600080fd5b8201601f81018413611dfe57600080fd5b8051611e0c61199882611928565b818152856020838501011115611e2157600080fd5b611e32826020830160208601611769565b95945050505050565b60008154611e4881611adb565b60018281168015611e605760018114611e7557611ea4565b60ff1984168752821515830287019450611ea4565b8560005260208060002060005b85811015611e9b5781548a820152908401908201611e82565b50505082870194505b5050505092915050565b6000611eba8285611e3b565b8351611eca818360208801611769565b01949350505050565b6000611edf8284611e3b565b6c31b7b73a3930b1ba173539b7b760991b8152600d01939250505056fea2646970667358221220b37e7426805c8ee516b7cbc184280c3979b648c1abf2aa730a77060073116dc964736f6c63430008130033
Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)
0000000000000000000000000000000000000000000000000000000000000020000000000000000000000000000000000000000000000000000000000000002668747470733a2f2f6170702e6172746973742e62696e676f2f6170692f6d657461646174612f0000000000000000000000000000000000000000000000000000
-----Decoded View---------------
Arg [0] : _baseUri (string): https://app.artist.bingo/api/metadata/
-----Encoded View---------------
4 Constructor Arguments found :
Arg [0] : 0000000000000000000000000000000000000000000000000000000000000020
Arg [1] : 0000000000000000000000000000000000000000000000000000000000000026
Arg [2] : 68747470733a2f2f6170702e6172746973742e62696e676f2f6170692f6d6574
Arg [3] : 61646174612f0000000000000000000000000000000000000000000000000000
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.