Feature Tip: Add private address tag to any address under My Name Tag !
ERC-721
Overview
Max Total Supply
0 KCBC
Holders
3,431
Market
Volume (24H)
N/A
Min Price (24H)
N/A
Max Price (24H)
N/A
Other Info
Token Contract
Balance
2 KCBCLoading...
Loading
Loading...
Loading
Loading...
Loading
# | Exchange | Pair | Price | 24H Volume | % Volume |
---|
Contract Name:
KillaChroniclesSBT
Compiler Version
v0.8.17+commit.8df45f5f
Optimization Enabled:
Yes with 200 runs
Other Settings:
default evmVersion
Contract Source Code (Solidity Standard Json-Input format)
// SPDX-License-Identifier: MIT pragma solidity ^0.8.17; import "@openzeppelin/contracts/access/Ownable.sol"; import "./StaticNFT.sol"; /* ------------ Interfaces ------------ */ interface IKillaChronicles { function mint(uint256 tokenId, address recipient, uint256 qty) external; } /* ---------- Contract ---------- */ contract KillaChroniclesSBT is Ownable, StaticNFT("KillaChronicles Burn Card", "KCBC") { using Strings for uint256; IKillaChronicles immutable chroniclesContract; uint256[] public volumeIds; mapping(uint256 => uint256) thresholds; mapping(uint256 => uint256) bonusIds; mapping(address => bool) public authorities; mapping(address => mapping(uint256 => uint256)) public balances; mapping(address => mapping(uint256 => bool)) public hidden; error NotAllowed(); error VolumeNotFound(); constructor(address chronicles) { chroniclesContract = IKillaChronicles(chronicles); } modifier onlyAuthority() { if (!authorities[msg.sender]) revert NotAllowed(); _; } /// @dev Tracks new burns for a given volume, mints tokens if needed function increaseBalance( address recipient, uint256 volumeId, uint256 qty ) external onlyAuthority { uint256 threshold = thresholds[volumeId]; if (threshold == 0) revert VolumeNotFound(); if (qty == 0) revert NotAllowed(); uint256 oldBalance = balances[recipient][volumeId]; uint256 newBalance = oldBalance + qty; balances[recipient][volumeId] = newBalance; if (oldBalance == 0) { emit Transfer( address(0), recipient, getTokenId(recipient, volumeId) ); } uint256 goalpost = oldBalance + threshold - (oldBalance % threshold); while (newBalance >= goalpost) { chroniclesContract.mint(bonusIds[volumeId], recipient, 1); goalpost += threshold; } } /// @notice Sends a tracker token to null address. Tracking functionality will still work. function hide(uint256 volumeId) external { if (balances[msg.sender][volumeId] == 0) revert NotAllowed(); if (hidden[msg.sender][volumeId]) revert NotAllowed(); hidden[msg.sender][volumeId] = true; emit Transfer(msg.sender, address(0), getTokenId(msg.sender, volumeId)); } /// @notice Sends a tracker token back from the null address function unhide(uint256 volumeId) external { if (balances[msg.sender][volumeId] == 0) revert NotAllowed(); if (!hidden[msg.sender][volumeId]) revert NotAllowed(); hidden[msg.sender][volumeId] = false; emit Transfer(address(0), msg.sender, getTokenId(msg.sender, volumeId)); } /// @dev Gets a token ID function getTokenId( address owner, uint256 volumeId ) public pure returns (uint256) { return (volumeId << 160) | uint160(owner); } /* ------- Admin ------- */ /// @notice Toggles an authority contract on or off function toggleAuthority(address addr, bool enabled) external onlyOwner { authorities[addr] = enabled; } /// @notice Adds or updates a volume function setupVolume( uint256 volumeId, uint256 threshold, uint256 bonusId ) external onlyOwner { thresholds[volumeId] = threshold; bonusIds[volumeId] = bonusId; bool found = false; for (uint256 i = 0; i < volumeIds.length; i++) { if (volumeIds[i] == volumeId) { found = true; break; } } if (!found) volumeIds.push(volumeId); } /// @notice Sets the base URI function setBaseURI(string calldata uri) external onlyOwner { baseURI = uri; } /* -------- Others -------- */ /// @dev used by StaticNFT base contract function getBalance(address addr) internal view override returns (uint256) { uint256 amount = 0; for (uint256 i = 0; i < volumeIds.length; i++) { uint256 volumeId = volumeIds[i]; if (balances[addr][volumeId] > 0 && !hidden[addr][volumeId]) amount++; } return amount; } /// @dev used by StaticNFT base contract function getOwner( uint256 tokenId ) internal view override returns (address) { address owner = address(uint160(tokenId & ((2 ** 160) - 1))); uint256 volumeId = tokenId >> 160; if (hidden[owner][volumeId]) revert NonExistentToken(); uint256 balance = balances[owner][volumeId]; if (balance == 0) revert NonExistentToken(); return owner; } /// @dev Gets the URI for a given token function tokenURI( uint256 tokenId ) external view override returns (string memory) { address owner = address(uint160(tokenId & ((2 ** 160) - 1))); uint256 volumeId = (tokenId >> 160); uint256 balance = balances[owner][volumeId]; if (hidden[owner][volumeId]) { return bytes(baseURI).length > 0 ? string( abi.encodePacked( string(baseURI), volumeId.toString(), "/", balance.toString(), "/hidden" ) ) : ""; } return bytes(baseURI).length > 0 ? string( abi.encodePacked( string(baseURI), volumeId.toString(), "/", balance.toString() ) ) : ""; } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.16; import "@openzeppelin/contracts/token/ERC721/IERC721.sol"; import "@openzeppelin/contracts/utils/Strings.sol"; abstract contract StaticNFT is IERC721 { using Strings for uint256; string public name; string public symbol; string public baseURI; error TransferNotAllowed(); error InvalidOwner(); error NonExistentToken(); constructor(string memory _name, string memory _symbol) { name = _name; symbol = _symbol; } function getBalance(address) internal view virtual returns (uint256); function getOwner(uint256) internal view virtual returns (address); function balanceOf(address owner) external view override returns (uint256) { if (owner == address(0)) revert InvalidOwner(); return getBalance(owner); } function ownerOf(uint256 tokenId) external view override returns (address) { address owner = getOwner(tokenId); if (owner == address(0)) revert NonExistentToken(); return owner; } function safeTransferFrom( address, address, uint256, bytes memory ) external pure override { revert TransferNotAllowed(); } function safeTransferFrom( address, address, uint256 ) external pure override { revert TransferNotAllowed(); } function transferFrom( address, address, uint256 ) external pure override { revert TransferNotAllowed(); } function approve(address, uint256) external pure override { revert TransferNotAllowed(); } function setApprovalForAll(address, bool) external pure override { revert TransferNotAllowed(); } function getApproved(uint256) external pure override returns (address) { return address(0); } function isApprovedForAll(address, address) external pure override returns (bool) { return false; } function tokenURI(uint256 tokenId) external view virtual returns (string memory) { if (getOwner(tokenId) == address(0)) revert NonExistentToken(); return bytes(baseURI).length > 0 ? string(abi.encodePacked(baseURI, tokenId.toString())) : ""; } function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) { return interfaceId == 0x01ffc9a7 || // ERC165 Interface ID for ERC165 interfaceId == 0x80ac58cd || // ERC165 Interface ID for ERC721 interfaceId == 0x5b5e139f; // ERC165 Interface ID for ERC721Metadata; } }
// 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.8.0) (token/ERC721/IERC721.sol) pragma solidity ^0.8.0; import "../../utils/introspection/IERC165.sol"; /** * @dev Required interface of an ERC721 compliant contract. */ interface IERC721 is IERC165 { /** * @dev Emitted when `tokenId` token is transferred from `from` to `to`. */ event Transfer(address indexed from, address indexed to, uint256 indexed tokenId); /** * @dev Emitted when `owner` enables `approved` to manage the `tokenId` token. */ event Approval(address indexed owner, address indexed approved, uint256 indexed tokenId); /** * @dev Emitted when `owner` enables or disables (`approved`) `operator` to manage all of its assets. */ event ApprovalForAll(address indexed owner, address indexed operator, bool approved); /** * @dev Returns the number of tokens in ``owner``'s account. */ function balanceOf(address owner) external view returns (uint256 balance); /** * @dev Returns the owner of the `tokenId` token. * * Requirements: * * - `tokenId` must exist. */ function ownerOf(uint256 tokenId) external view returns (address owner); /** * @dev Safely transfers `tokenId` token from `from` to `to`. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must exist and be owned by `from`. * - If the caller is not `from`, it must be approved to move this token by either {approve} or {setApprovalForAll}. * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */ function safeTransferFrom( address from, address to, uint256 tokenId, bytes calldata data ) external; /** * @dev Safely transfers `tokenId` token from `from` to `to`, checking first that contract recipients * are aware of the ERC721 protocol to prevent tokens from being forever locked. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must exist and be owned by `from`. * - If the caller is not `from`, it must have been allowed to move this token by either {approve} or {setApprovalForAll}. * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */ function safeTransferFrom( address from, address to, uint256 tokenId ) external; /** * @dev Transfers `tokenId` token from `from` to `to`. * * WARNING: Note that the caller is responsible to confirm that the recipient is capable of receiving ERC721 * or else they may be permanently lost. Usage of {safeTransferFrom} prevents loss, though the caller must * understand this adds an external call which potentially creates a reentrancy vulnerability. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must be owned by `from`. * - If the caller is not `from`, it must be approved to move this token by either {approve} or {setApprovalForAll}. * * Emits a {Transfer} event. */ function transferFrom( address from, address to, uint256 tokenId ) external; /** * @dev Gives permission to `to` to transfer `tokenId` token to another account. * The approval is cleared when the token is transferred. * * Only a single account can be approved at a time, so approving the zero address clears previous approvals. * * Requirements: * * - The caller must own the token or be an approved operator. * - `tokenId` must exist. * * Emits an {Approval} event. */ function approve(address to, uint256 tokenId) external; /** * @dev Approve or remove `operator` as an operator for the caller. * Operators can call {transferFrom} or {safeTransferFrom} for any token owned by the caller. * * Requirements: * * - The `operator` cannot be the caller. * * Emits an {ApprovalForAll} event. */ function setApprovalForAll(address operator, bool _approved) external; /** * @dev Returns the account approved for `tokenId` token. * * Requirements: * * - `tokenId` must exist. */ function getApproved(uint256 tokenId) external view returns (address operator); /** * @dev Returns if the `operator` is allowed to manage all of the assets of `owner`. * * See {setApprovalForAll} */ function isApprovedForAll(address owner, address operator) external view returns (bool); }
// 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: 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; } }
{ "optimizer": { "enabled": true, "runs": 200 }, "outputSelection": { "*": { "*": [ "evm.bytecode", "evm.deployedBytecode", "devdoc", "userdoc", "metadata", "abi" ] } }, "libraries": {} }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"inputs":[{"internalType":"address","name":"chronicles","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"inputs":[],"name":"InvalidOwner","type":"error"},{"inputs":[],"name":"NonExistentToken","type":"error"},{"inputs":[],"name":"NotAllowed","type":"error"},{"inputs":[],"name":"TransferNotAllowed","type":"error"},{"inputs":[],"name":"VolumeNotFound","type":"error"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"approved","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":false,"internalType":"bool","name":"approved","type":"bool"}],"name":"ApprovalForAll","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Transfer","type":"event"},{"inputs":[{"internalType":"address","name":"","type":"address"},{"internalType":"uint256","name":"","type":"uint256"}],"name":"approve","outputs":[],"stateMutability":"pure","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"authorities","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"},{"internalType":"uint256","name":"","type":"uint256"}],"name":"balances","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":"getApproved","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"pure","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"uint256","name":"volumeId","type":"uint256"}],"name":"getTokenId","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"pure","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"},{"internalType":"uint256","name":"","type":"uint256"}],"name":"hidden","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"volumeId","type":"uint256"}],"name":"hide","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"recipient","type":"address"},{"internalType":"uint256","name":"volumeId","type":"uint256"},{"internalType":"uint256","name":"qty","type":"uint256"}],"name":"increaseBalance","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"},{"internalType":"address","name":"","type":"address"}],"name":"isApprovedForAll","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"pure","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"ownerOf","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"},{"internalType":"address","name":"","type":"address"},{"internalType":"uint256","name":"","type":"uint256"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"pure","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"},{"internalType":"address","name":"","type":"address"},{"internalType":"uint256","name":"","type":"uint256"},{"internalType":"bytes","name":"","type":"bytes"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"pure","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"},{"internalType":"bool","name":"","type":"bool"}],"name":"setApprovalForAll","outputs":[],"stateMutability":"pure","type":"function"},{"inputs":[{"internalType":"string","name":"uri","type":"string"}],"name":"setBaseURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"volumeId","type":"uint256"},{"internalType":"uint256","name":"threshold","type":"uint256"},{"internalType":"uint256","name":"bonusId","type":"uint256"}],"name":"setupVolume","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":"address","name":"addr","type":"address"},{"internalType":"bool","name":"enabled","type":"bool"}],"name":"toggleAuthority","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"tokenURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"},{"internalType":"address","name":"","type":"address"},{"internalType":"uint256","name":"","type":"uint256"}],"name":"transferFrom","outputs":[],"stateMutability":"pure","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"volumeId","type":"uint256"}],"name":"unhide","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"volumeIds","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"}]
Contract Creation Code
60a06040523480156200001157600080fd5b50604051620018d4380380620018d4833981016040819052620000349162000127565b6040518060400160405280601981526020017f4b696c6c614368726f6e69636c6573204275726e204361726400000000000000815250604051806040016040528060048152602001634b43424360e01b815250620000a16200009b620000d360201b60201c565b620000d7565b6001620000af8382620001fe565b506002620000be8282620001fe565b5050506001600160a01b0316608052620002ca565b3390565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b6000602082840312156200013a57600080fd5b81516001600160a01b03811681146200015257600080fd5b9392505050565b634e487b7160e01b600052604160045260246000fd5b600181811c908216806200018457607f821691505b602082108103620001a557634e487b7160e01b600052602260045260246000fd5b50919050565b601f821115620001f957600081815260208120601f850160051c81016020861015620001d45750805b601f850160051c820191505b81811015620001f557828155600101620001e0565b5050505b505050565b81516001600160401b038111156200021a576200021a62000159565b62000232816200022b84546200016f565b84620001ab565b602080601f8311600181146200026a5760008415620002515750858301515b600019600386901b1c1916600185901b178555620001f5565b600085815260208120601f198616915b828110156200029b578886015182559484019460019091019084016200027a565b5085821015620002ba5787850151600019600388901b60f8161c191681555b5050505050600190811b01905550565b6080516115ee620002e660003960006106cf01526115ee6000f3fe608060405234801561001057600080fd5b50600436106101c45760003560e01c8063715018a6116100f9578063c87b56dd11610097578063e543d3ad11610071578063e543d3ad146103c5578063e985e9c5146103d8578063f2fde38b146103ee578063fd632fb81461040157600080fd5b8063c87b56dd14610374578063cbf1304d14610387578063e5283cc7146103b257600080fd5b806391223d69116100d357806391223d691461032d57806395d89b4114610350578063a22cb46514610358578063b88d4fde1461036657600080fd5b8063715018a6146103015780637b52e9cf146103095780638da5cb5b1461031c57600080fd5b806329f99b9f1161016657806355f804b31161014057806355f804b3146102c05780636352211e146102d35780636c0360eb146102e657806370a08231146102ee57600080fd5b806329f99b9f1461028957806342842e0e1461027b578063520477f8146102ad57600080fd5b8063095ea7b3116101a2578063095ea7b31461023257806314898815146102475780631e9f7a9b1461026857806323b872dd1461027b57600080fd5b806301ffc9a7146101c957806306fdde03146101f1578063081812fc14610206575b600080fd5b6101dc6101d7366004610f5f565b61042f565b60405190151581526020015b60405180910390f35b6101f9610481565b6040516101e89190610fb4565b61021a610214366004610fe7565b50600090565b6040516001600160a01b0390911681526020016101e8565b61024561024036600461101c565b61050f565b005b61025a610255366004610fe7565b610528565b6040519081526020016101e8565b610245610276366004611046565b610549565b610245610240366004611079565b61025a61029736600461101c565b60a081901b6001600160a01b0383161792915050565b6102456102bb3660046110b5565b610747565b6102456102ce3660046110f1565b61077a565b61021a6102e1366004610fe7565b610794565b6101f96107c9565b61025a6102fc366004611163565b6107d6565b610245610808565b610245610317366004610fe7565b61081c565b6000546001600160a01b031661021a565b6101dc61033b366004611163565b60076020526000908152604090205460ff1681565b6101f96108e9565b6102456102403660046110b5565b610245610240366004611194565b6101f9610382366004610fe7565b6108f6565b61025a61039536600461101c565b600860209081526000928352604080842090915290825290205481565b6102456103c0366004610fe7565b6109fc565b6102456103d3366004611270565b610acd565b6101dc6103e636600461129c565b600092915050565b6102456103fc366004611163565b610b80565b6101dc61040f36600461101c565b600960209081526000928352604080842090915290825290205460ff1681565b60006301ffc9a760e01b6001600160e01b03198316148061046057506380ac58cd60e01b6001600160e01b03198316145b8061047b5750635b5e139f60e01b6001600160e01b03198316145b92915050565b6001805461048e906112cf565b80601f01602080910402602001604051908101604052809291908181526020018280546104ba906112cf565b80156105075780601f106104dc57610100808354040283529160200191610507565b820191906000526020600020905b8154815290600101906020018083116104ea57829003601f168201915b505050505081565b604051638cd22d1960e01b815260040160405180910390fd5b6004818154811061053857600080fd5b600091825260209091200154905081565b3360009081526007602052604090205460ff1661057957604051631eb49d6d60e11b815260040160405180910390fd5b600082815260056020526040812054908190036105a9576040516307399f7960e01b815260040160405180910390fd5b816000036105ca57604051631eb49d6d60e11b815260040160405180910390fd5b6001600160a01b0384166000908152600860209081526040808320868452909152812054906105f9848361131f565b6001600160a01b03871660009081526008602090815260408083208984529091528120829055909150829003610667576040516001600160a01b03871660a087901b8117916000907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45b60006106738484611332565b61067d858561131f565b6106879190611354565b90505b80821061073e576000868152600660205260409081902054905163020da84160e61b815260048101919091526001600160a01b038881166024830152600160448301527f0000000000000000000000000000000000000000000000000000000000000000169063836a104090606401600060405180830381600087803b15801561071357600080fd5b505af1158015610727573d6000803e3d6000fd5b505050508381610737919061131f565b905061068a565b50505050505050565b61074f610bfe565b6001600160a01b03919091166000908152600760205260409020805460ff1916911515919091179055565b610782610bfe565b600361078f8284836113b5565b505050565b6000806107a083610c58565b90506001600160a01b03811661047b57604051634a1850bf60e11b815260040160405180910390fd5b6003805461048e906112cf565b60006001600160a01b0382166107ff576040516349e27cff60e01b815260040160405180910390fd5b61047b82610cf2565b610810610bfe565b61081a6000610da4565b565b336000908152600860209081526040808320848452909152812054900361085657604051631eb49d6d60e11b815260040160405180910390fd5b33600090815260096020908152604080832084845290915290205460ff1661089157604051631eb49d6d60e11b815260040160405180910390fd5b3360008181526009602090815260408083208584529091529020805460ff1916905560a082901b1760405133906000907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a450565b6002805461048e906112cf565b6001600160a01b038116600081815260086020908152604080832060a086901c808552908352818420548585526009845282852082865290935292205460609392919060ff16156109ab57600060038054610950906112cf565b90501161096c57604051806020016040528060008152506109a2565b600361097783610df4565b61098083610df4565b604051602001610992939291906114e9565b6040516020818303038152906040525b95945050505050565b6000600380546109ba906112cf565b9050116109d657604051806020016040528060008152506109a2565b60036109e183610df4565b6109ea83610df4565b60405160200161099293929190611543565b3360009081526008602090815260408083208484529091528120549003610a3657604051631eb49d6d60e11b815260040160405180910390fd5b33600090815260096020908152604080832084845290915290205460ff1615610a7257604051631eb49d6d60e11b815260040160405180910390fd5b3360008181526009602090815260408083208584529091529020805460ff1916600117905560a082901b1760405160009033907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908390a450565b610ad5610bfe565b600083815260056020908152604080832085905560069091528120829055805b600454811015610b3e578460048281548110610b1357610b13611589565b906000526020600020015403610b2c5760019150610b3e565b80610b368161159f565b915050610af5565b5080610b7a57600480546001810182556000919091527f8a35acfbc15ff81a39ae7d344fd709f28e8600b4aa8c65c6b64bfe7fe36bd19b018490555b50505050565b610b88610bfe565b6001600160a01b038116610bf25760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b60648201526084015b60405180910390fd5b610bfb81610da4565b50565b6000546001600160a01b0316331461081a5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610be9565b6001600160a01b038116600081815260096020908152604080832060a086901c808552925282205491929160ff1615610ca457604051634a1850bf60e11b815260040160405180910390fd5b6001600160a01b038216600090815260086020908152604080832084845290915281205490819003610ce957604051634a1850bf60e11b815260040160405180910390fd5b50909392505050565b600080805b600454811015610d9d57600060048281548110610d1657610d16611589565b60009182526020808320909101546001600160a01b038816835260088252604080842082855290925291205490915015801590610d7757506001600160a01b038516600090815260096020908152604080832084845290915290205460ff16155b15610d8a5782610d868161159f565b9350505b5080610d958161159f565b915050610cf7565b5092915050565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b60606000610e0183610e87565b600101905060008167ffffffffffffffff811115610e2157610e2161117e565b6040519080825280601f01601f191660200182016040528015610e4b576020820181803683370190505b5090508181016020015b600019016f181899199a1a9b1b9c1cb0b131b232b360811b600a86061a8153600a8504945084610e5557509392505050565b60008072184f03e93ff9f4daa797ed6e38ed64bf6a1f0160401b8310610ec65772184f03e93ff9f4daa797ed6e38ed64bf6a1f0160401b830492506040015b6d04ee2d6d415b85acef81000000008310610ef2576d04ee2d6d415b85acef8100000000830492506020015b662386f26fc100008310610f1057662386f26fc10000830492506010015b6305f5e1008310610f28576305f5e100830492506008015b6127108310610f3c57612710830492506004015b60648310610f4e576064830492506002015b600a831061047b5760010192915050565b600060208284031215610f7157600080fd5b81356001600160e01b031981168114610f8957600080fd5b9392505050565b60005b83811015610fab578181015183820152602001610f93565b50506000910152565b6020815260008251806020840152610fd3816040850160208701610f90565b601f01601f19169190910160400192915050565b600060208284031215610ff957600080fd5b5035919050565b80356001600160a01b038116811461101757600080fd5b919050565b6000806040838503121561102f57600080fd5b61103883611000565b946020939093013593505050565b60008060006060848603121561105b57600080fd5b61106484611000565b95602085013595506040909401359392505050565b60008060006060848603121561108e57600080fd5b61109784611000565b92506110a560208501611000565b9150604084013590509250925092565b600080604083850312156110c857600080fd5b6110d183611000565b9150602083013580151581146110e657600080fd5b809150509250929050565b6000806020838503121561110457600080fd5b823567ffffffffffffffff8082111561111c57600080fd5b818501915085601f83011261113057600080fd5b81358181111561113f57600080fd5b86602082850101111561115157600080fd5b60209290920196919550909350505050565b60006020828403121561117557600080fd5b610f8982611000565b634e487b7160e01b600052604160045260246000fd5b600080600080608085870312156111aa57600080fd5b6111b385611000565b93506111c160208601611000565b925060408501359150606085013567ffffffffffffffff808211156111e557600080fd5b818701915087601f8301126111f957600080fd5b81358181111561120b5761120b61117e565b604051601f8201601f19908116603f011681019083821181831017156112335761123361117e565b816040528281528a602084870101111561124c57600080fd5b82602086016020830137600060208483010152809550505050505092959194509250565b60008060006060848603121561128557600080fd5b505081359360208301359350604090920135919050565b600080604083850312156112af57600080fd5b6112b883611000565b91506112c660208401611000565b90509250929050565b600181811c908216806112e357607f821691505b60208210810361130357634e487b7160e01b600052602260045260246000fd5b50919050565b634e487b7160e01b600052601160045260246000fd5b8082018082111561047b5761047b611309565b60008261134f57634e487b7160e01b600052601260045260246000fd5b500690565b8181038181111561047b5761047b611309565b601f82111561078f57600081815260208120601f850160051c8101602086101561138e5750805b601f850160051c820191505b818110156113ad5782815560010161139a565b505050505050565b67ffffffffffffffff8311156113cd576113cd61117e565b6113e1836113db83546112cf565b83611367565b6000601f84116001811461141557600085156113fd5750838201355b600019600387901b1c1916600186901b17835561146f565b600083815260209020601f19861690835b828110156114465786850135825560209485019460019092019101611426565b50868210156114635760001960f88860031b161c19848701351681555b505060018560011b0183555b5050505050565b60008154611483816112cf565b6001828116801561149b57600181146114b0576114df565b60ff19841687528215158302870194506114df565b8560005260208060002060005b858110156114d65781548a8201529084019082016114bd565b50505082870194505b5050505092915050565b60006114f58286611476565b8451611505818360208901610f90565b602f60f81b91019081528351611522816001840160208801610f90565b6617b434b23232b760c91b6001929091019182015260080195945050505050565b600061154f8286611476565b845161155f818360208901610f90565b602f60f81b9101908152835161157c816001840160208801610f90565b0160010195945050505050565b634e487b7160e01b600052603260045260246000fd5b6000600182016115b1576115b1611309565b506001019056fea2646970667358221220be6141071570f70736c1e8ced2a2e64d792029ad3d44efc94aa6f8650fc30ad564736f6c634300081100330000000000000000000000009fff0b1a6e9e9554baf3f8a39b6353fda9c30054
Deployed Bytecode
0x608060405234801561001057600080fd5b50600436106101c45760003560e01c8063715018a6116100f9578063c87b56dd11610097578063e543d3ad11610071578063e543d3ad146103c5578063e985e9c5146103d8578063f2fde38b146103ee578063fd632fb81461040157600080fd5b8063c87b56dd14610374578063cbf1304d14610387578063e5283cc7146103b257600080fd5b806391223d69116100d357806391223d691461032d57806395d89b4114610350578063a22cb46514610358578063b88d4fde1461036657600080fd5b8063715018a6146103015780637b52e9cf146103095780638da5cb5b1461031c57600080fd5b806329f99b9f1161016657806355f804b31161014057806355f804b3146102c05780636352211e146102d35780636c0360eb146102e657806370a08231146102ee57600080fd5b806329f99b9f1461028957806342842e0e1461027b578063520477f8146102ad57600080fd5b8063095ea7b3116101a2578063095ea7b31461023257806314898815146102475780631e9f7a9b1461026857806323b872dd1461027b57600080fd5b806301ffc9a7146101c957806306fdde03146101f1578063081812fc14610206575b600080fd5b6101dc6101d7366004610f5f565b61042f565b60405190151581526020015b60405180910390f35b6101f9610481565b6040516101e89190610fb4565b61021a610214366004610fe7565b50600090565b6040516001600160a01b0390911681526020016101e8565b61024561024036600461101c565b61050f565b005b61025a610255366004610fe7565b610528565b6040519081526020016101e8565b610245610276366004611046565b610549565b610245610240366004611079565b61025a61029736600461101c565b60a081901b6001600160a01b0383161792915050565b6102456102bb3660046110b5565b610747565b6102456102ce3660046110f1565b61077a565b61021a6102e1366004610fe7565b610794565b6101f96107c9565b61025a6102fc366004611163565b6107d6565b610245610808565b610245610317366004610fe7565b61081c565b6000546001600160a01b031661021a565b6101dc61033b366004611163565b60076020526000908152604090205460ff1681565b6101f96108e9565b6102456102403660046110b5565b610245610240366004611194565b6101f9610382366004610fe7565b6108f6565b61025a61039536600461101c565b600860209081526000928352604080842090915290825290205481565b6102456103c0366004610fe7565b6109fc565b6102456103d3366004611270565b610acd565b6101dc6103e636600461129c565b600092915050565b6102456103fc366004611163565b610b80565b6101dc61040f36600461101c565b600960209081526000928352604080842090915290825290205460ff1681565b60006301ffc9a760e01b6001600160e01b03198316148061046057506380ac58cd60e01b6001600160e01b03198316145b8061047b5750635b5e139f60e01b6001600160e01b03198316145b92915050565b6001805461048e906112cf565b80601f01602080910402602001604051908101604052809291908181526020018280546104ba906112cf565b80156105075780601f106104dc57610100808354040283529160200191610507565b820191906000526020600020905b8154815290600101906020018083116104ea57829003601f168201915b505050505081565b604051638cd22d1960e01b815260040160405180910390fd5b6004818154811061053857600080fd5b600091825260209091200154905081565b3360009081526007602052604090205460ff1661057957604051631eb49d6d60e11b815260040160405180910390fd5b600082815260056020526040812054908190036105a9576040516307399f7960e01b815260040160405180910390fd5b816000036105ca57604051631eb49d6d60e11b815260040160405180910390fd5b6001600160a01b0384166000908152600860209081526040808320868452909152812054906105f9848361131f565b6001600160a01b03871660009081526008602090815260408083208984529091528120829055909150829003610667576040516001600160a01b03871660a087901b8117916000907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45b60006106738484611332565b61067d858561131f565b6106879190611354565b90505b80821061073e576000868152600660205260409081902054905163020da84160e61b815260048101919091526001600160a01b038881166024830152600160448301527f0000000000000000000000009fff0b1a6e9e9554baf3f8a39b6353fda9c30054169063836a104090606401600060405180830381600087803b15801561071357600080fd5b505af1158015610727573d6000803e3d6000fd5b505050508381610737919061131f565b905061068a565b50505050505050565b61074f610bfe565b6001600160a01b03919091166000908152600760205260409020805460ff1916911515919091179055565b610782610bfe565b600361078f8284836113b5565b505050565b6000806107a083610c58565b90506001600160a01b03811661047b57604051634a1850bf60e11b815260040160405180910390fd5b6003805461048e906112cf565b60006001600160a01b0382166107ff576040516349e27cff60e01b815260040160405180910390fd5b61047b82610cf2565b610810610bfe565b61081a6000610da4565b565b336000908152600860209081526040808320848452909152812054900361085657604051631eb49d6d60e11b815260040160405180910390fd5b33600090815260096020908152604080832084845290915290205460ff1661089157604051631eb49d6d60e11b815260040160405180910390fd5b3360008181526009602090815260408083208584529091529020805460ff1916905560a082901b1760405133906000907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a450565b6002805461048e906112cf565b6001600160a01b038116600081815260086020908152604080832060a086901c808552908352818420548585526009845282852082865290935292205460609392919060ff16156109ab57600060038054610950906112cf565b90501161096c57604051806020016040528060008152506109a2565b600361097783610df4565b61098083610df4565b604051602001610992939291906114e9565b6040516020818303038152906040525b95945050505050565b6000600380546109ba906112cf565b9050116109d657604051806020016040528060008152506109a2565b60036109e183610df4565b6109ea83610df4565b60405160200161099293929190611543565b3360009081526008602090815260408083208484529091528120549003610a3657604051631eb49d6d60e11b815260040160405180910390fd5b33600090815260096020908152604080832084845290915290205460ff1615610a7257604051631eb49d6d60e11b815260040160405180910390fd5b3360008181526009602090815260408083208584529091529020805460ff1916600117905560a082901b1760405160009033907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908390a450565b610ad5610bfe565b600083815260056020908152604080832085905560069091528120829055805b600454811015610b3e578460048281548110610b1357610b13611589565b906000526020600020015403610b2c5760019150610b3e565b80610b368161159f565b915050610af5565b5080610b7a57600480546001810182556000919091527f8a35acfbc15ff81a39ae7d344fd709f28e8600b4aa8c65c6b64bfe7fe36bd19b018490555b50505050565b610b88610bfe565b6001600160a01b038116610bf25760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b60648201526084015b60405180910390fd5b610bfb81610da4565b50565b6000546001600160a01b0316331461081a5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610be9565b6001600160a01b038116600081815260096020908152604080832060a086901c808552925282205491929160ff1615610ca457604051634a1850bf60e11b815260040160405180910390fd5b6001600160a01b038216600090815260086020908152604080832084845290915281205490819003610ce957604051634a1850bf60e11b815260040160405180910390fd5b50909392505050565b600080805b600454811015610d9d57600060048281548110610d1657610d16611589565b60009182526020808320909101546001600160a01b038816835260088252604080842082855290925291205490915015801590610d7757506001600160a01b038516600090815260096020908152604080832084845290915290205460ff16155b15610d8a5782610d868161159f565b9350505b5080610d958161159f565b915050610cf7565b5092915050565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b60606000610e0183610e87565b600101905060008167ffffffffffffffff811115610e2157610e2161117e565b6040519080825280601f01601f191660200182016040528015610e4b576020820181803683370190505b5090508181016020015b600019016f181899199a1a9b1b9c1cb0b131b232b360811b600a86061a8153600a8504945084610e5557509392505050565b60008072184f03e93ff9f4daa797ed6e38ed64bf6a1f0160401b8310610ec65772184f03e93ff9f4daa797ed6e38ed64bf6a1f0160401b830492506040015b6d04ee2d6d415b85acef81000000008310610ef2576d04ee2d6d415b85acef8100000000830492506020015b662386f26fc100008310610f1057662386f26fc10000830492506010015b6305f5e1008310610f28576305f5e100830492506008015b6127108310610f3c57612710830492506004015b60648310610f4e576064830492506002015b600a831061047b5760010192915050565b600060208284031215610f7157600080fd5b81356001600160e01b031981168114610f8957600080fd5b9392505050565b60005b83811015610fab578181015183820152602001610f93565b50506000910152565b6020815260008251806020840152610fd3816040850160208701610f90565b601f01601f19169190910160400192915050565b600060208284031215610ff957600080fd5b5035919050565b80356001600160a01b038116811461101757600080fd5b919050565b6000806040838503121561102f57600080fd5b61103883611000565b946020939093013593505050565b60008060006060848603121561105b57600080fd5b61106484611000565b95602085013595506040909401359392505050565b60008060006060848603121561108e57600080fd5b61109784611000565b92506110a560208501611000565b9150604084013590509250925092565b600080604083850312156110c857600080fd5b6110d183611000565b9150602083013580151581146110e657600080fd5b809150509250929050565b6000806020838503121561110457600080fd5b823567ffffffffffffffff8082111561111c57600080fd5b818501915085601f83011261113057600080fd5b81358181111561113f57600080fd5b86602082850101111561115157600080fd5b60209290920196919550909350505050565b60006020828403121561117557600080fd5b610f8982611000565b634e487b7160e01b600052604160045260246000fd5b600080600080608085870312156111aa57600080fd5b6111b385611000565b93506111c160208601611000565b925060408501359150606085013567ffffffffffffffff808211156111e557600080fd5b818701915087601f8301126111f957600080fd5b81358181111561120b5761120b61117e565b604051601f8201601f19908116603f011681019083821181831017156112335761123361117e565b816040528281528a602084870101111561124c57600080fd5b82602086016020830137600060208483010152809550505050505092959194509250565b60008060006060848603121561128557600080fd5b505081359360208301359350604090920135919050565b600080604083850312156112af57600080fd5b6112b883611000565b91506112c660208401611000565b90509250929050565b600181811c908216806112e357607f821691505b60208210810361130357634e487b7160e01b600052602260045260246000fd5b50919050565b634e487b7160e01b600052601160045260246000fd5b8082018082111561047b5761047b611309565b60008261134f57634e487b7160e01b600052601260045260246000fd5b500690565b8181038181111561047b5761047b611309565b601f82111561078f57600081815260208120601f850160051c8101602086101561138e5750805b601f850160051c820191505b818110156113ad5782815560010161139a565b505050505050565b67ffffffffffffffff8311156113cd576113cd61117e565b6113e1836113db83546112cf565b83611367565b6000601f84116001811461141557600085156113fd5750838201355b600019600387901b1c1916600186901b17835561146f565b600083815260209020601f19861690835b828110156114465786850135825560209485019460019092019101611426565b50868210156114635760001960f88860031b161c19848701351681555b505060018560011b0183555b5050505050565b60008154611483816112cf565b6001828116801561149b57600181146114b0576114df565b60ff19841687528215158302870194506114df565b8560005260208060002060005b858110156114d65781548a8201529084019082016114bd565b50505082870194505b5050505092915050565b60006114f58286611476565b8451611505818360208901610f90565b602f60f81b91019081528351611522816001840160208801610f90565b6617b434b23232b760c91b6001929091019182015260080195945050505050565b600061154f8286611476565b845161155f818360208901610f90565b602f60f81b9101908152835161157c816001840160208801610f90565b0160010195945050505050565b634e487b7160e01b600052603260045260246000fd5b6000600182016115b1576115b1611309565b506001019056fea2646970667358221220be6141071570f70736c1e8ced2a2e64d792029ad3d44efc94aa6f8650fc30ad564736f6c63430008110033
Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)
0000000000000000000000009fff0b1a6e9e9554baf3f8a39b6353fda9c30054
-----Decoded View---------------
Arg [0] : chronicles (address): 0x9fff0b1a6e9e9554BAf3f8A39B6353FdA9C30054
-----Encoded View---------------
1 Constructor Arguments found :
Arg [0] : 0000000000000000000000009fff0b1a6e9e9554baf3f8a39b6353fda9c30054
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.