Feature Tip: Add private address tag to any address under My Name Tag !
Overview
TokenID
71
Total Transfers
-
Market
Onchain Market Cap
$0.00
Circulating Supply Market Cap
-
Other Info
Token Contract
Loading...
Loading
Loading...
Loading
Loading...
Loading
# | Exchange | Pair | Price | 24H Volume | % Volume |
---|
Contract Name:
MERGE
Compiler Version
v0.8.15+commit.e14f2714
Optimization Enabled:
No with 200 runs
Other Settings:
default evmVersion
Contract Source Code (Solidity Standard Json-Input format)
// SPDX-License-Identifier: MIT pragma solidity ^0.8.15; import "./lib/Drop.sol"; import "./lib/AlbumMetadata.sol"; import "./lib/FundsReceiver.sol"; import "./lib/TheMerge.sol"; contract MERGE is AlbumMetadata, Drop, FundsReceiver, TheMerge { /// @notice total difficulty when ethereum transitions to proof-of-stake uint256 immutable MERGE_TTD = 58750000000000000000000; constructor( uint64 _publicSaleStart, string[] memory _musicMetadata, address payable _liquidSplit ) AlbumMetadata(_musicMetadata) Drop("The Merge", "SAD", _publicSaleStart) FundsReceiver(_liquidSplit) { singlePrice = MERGE_TTD / 1000000; } /// @notice This allows the user to purchase a edition edition /// at the given price in the contract. function purchase(uint256 _quantity) external payable onlyPublicSaleActive onlyValidPrice(singlePrice, _quantity) returns (uint256) { _checkIfMerged(); uint256 firstMintedTokenId = _purchase(_quantity); return firstMintedTokenId; } /// @notice Returns the Uniform Resource Identifier (URI) for `tokenId` token. function tokenURI(uint256 tokenId) public view virtual override returns (string memory) { if (!_exists(tokenId)) revert URIQueryForNonexistentToken(); uint8 songId = currentSong(); return songURI(songId); } /// @notice updates price & end time for first proof-of-work purchase. function _checkIfMerged() internal { if (merged()) { uint256 preMergePrice = MERGE_TTD / 1000000; bool isFirstProofOfWorkPurchase = (singlePrice == preMergePrice); if (isFirstProofOfWorkPurchase) { _activatePostMerge(); } } } }
// 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) (token/ERC20/IERC20.sol) pragma solidity ^0.8.0; /** * @dev Interface of the ERC20 standard as defined in the EIP. */ interface IERC20 { /** * @dev Emitted when `value` tokens are moved from one account (`from`) to * another (`to`). * * Note that `value` may be zero. */ event Transfer(address indexed from, address indexed to, uint256 value); /** * @dev Emitted when the allowance of a `spender` for an `owner` is set by * a call to {approve}. `value` is the new allowance. */ event Approval(address indexed owner, address indexed spender, uint256 value); /** * @dev Returns the amount of tokens in existence. */ function totalSupply() external view returns (uint256); /** * @dev Returns the amount of tokens owned by `account`. */ function balanceOf(address account) external view returns (uint256); /** * @dev Moves `amount` tokens from the caller's account to `to`. * * Returns a boolean value indicating whether the operation succeeded. * * Emits a {Transfer} event. */ function transfer(address to, uint256 amount) external returns (bool); /** * @dev Returns the remaining number of tokens that `spender` will be * allowed to spend on behalf of `owner` through {transferFrom}. This is * zero by default. * * This value changes when {approve} or {transferFrom} are called. */ function allowance(address owner, address spender) external view returns (uint256); /** * @dev Sets `amount` as the allowance of `spender` over the caller's tokens. * * Returns a boolean value indicating whether the operation succeeded. * * IMPORTANT: Beware that changing an allowance with this method brings the risk * that someone may use both the old and the new allowance by unfortunate * transaction ordering. One possible solution to mitigate this race * condition is to first reduce the spender's allowance to 0 and set the * desired value afterwards: * https://github.com/ethereum/EIPs/issues/20#issuecomment-263524729 * * Emits an {Approval} event. */ function approve(address spender, uint256 amount) external returns (bool); /** * @dev Moves `amount` tokens from `from` to `to` using the * allowance mechanism. `amount` is then deducted from the caller's * allowance. * * Returns a boolean value indicating whether the operation succeeded. * * Emits a {Transfer} event. */ function transferFrom( address from, address to, uint256 amount ) external returns (bool); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (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 pragma solidity ^0.8.15; interface IDrop { /// @notice Return value for sales details to use with front-ends struct SaleDetails { // Synthesized status variables for sale and presale bool publicSaleActive; bool presaleActive; // Price for public sale uint256 publicSalePrice; // Timed sale actions for public sale uint64 publicSaleStart; uint64 publicSaleEnd; // Timed sale actions for presale uint64 presaleStart; uint64 presaleEnd; // Merkle root (includes address, quantity, and price data for each entry) bytes32 presaleMerkleRoot; // Limit public sale to a specific number of mints per wallet uint256 maxSalePurchasePerAddress; // Information about the rest of the supply // Total that have been minted uint256 totalMinted; // The total supply available uint256 maxSupply; } /// @notice Event emitted for each sale /// @param to address sale was made to /// @param quantity quantity of the minted nfts /// @param pricePerToken price for each token /// @param firstPurchasedTokenId first purchased token ID (to get range add to quantity for max) event Sale( address indexed to, uint256 indexed quantity, uint256 indexed pricePerToken, uint256 firstPurchasedTokenId ); }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.15; interface ILiquidSplit { /// @notice Return value for sales details to use with front-ends function withdraw() external; }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.15; contract AlbumMetadata { /// @notice mapping from songId to songMetadataURI string[] internal songURIs; constructor(string[] memory _trackList) { songURIs = _trackList; } /// @notice Returns the Uniform Resource Identifier (URI) for `tokenId` token. function songURI(uint8 _songId) public view returns (string memory) { return songURIs[_songId]; } /// @notice returns current song URI based on current block timestamp. function currentSong() public view returns (uint8) { return uint8(block.timestamp % songURIs.length); } /// @notice contract metadata. /// @dev follows OpenSea standard: https://docs.opensea.io/docs/contract-level-metadata function contractURI() public pure returns (string memory) { return "ipfs://bafkreihxpyin5kuq4t6swxjzbxugviupperdtmyiimkzdrkco3neo5zq3y"; } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.15; import "erc721a/contracts/ERC721A.sol"; import "@openzeppelin/contracts/access/Ownable.sol"; import "../interfaces/IDrop.sol"; contract Drop is ERC721A, IDrop, Ownable { /// @notice Price for Single uint256 singlePrice; /// @notice Public Sale Start Time uint64 public publicSaleStart = 0; /// @notice Public Sale End Time uint64 public publicSaleEnd = 1692974064; /// @notice Initial length of sale. uint64 HALF_LENGTH_OF_SALE = 60 * 60 * 24 * 2; /// @notice Half length of sale. uint64 LENGTH_OF_SALE = HALF_LENGTH_OF_SALE * 2; /// @notice Sale is inactive error Sale_Inactive(); /// @notice Wrong price for purchase error Purchase_WrongPrice(uint256 correctPrice); constructor( string memory _name, string memory _symbol, uint64 _publicSaleStart ) ERC721A(_name, _symbol) Ownable() { publicSaleStart = _publicSaleStart; publicSaleEnd = _publicSaleStart + LENGTH_OF_SALE; } /// @notice Current price. Changes once the merge happens. function price() public view returns (uint256) { return singlePrice; } /// @notice Public sale active modifier onlyPublicSaleActive() { if (!_publicSaleActive()) { revert Sale_Inactive(); } _; } /// @notice Public sale active modifier onlyValidPrice(uint256 _price, uint256 _quantity) { if (msg.value != _price * _quantity) { revert Purchase_WrongPrice(_price * _quantity); } _; } /// @notice This allows the user to purchase a edition edition /// at the given price in the contract. function _purchase(uint256 quantity) internal returns (uint256) { uint256 start = _nextTokenId(); _mint(msg.sender, quantity); emit Sale({ to: msg.sender, quantity: quantity, pricePerToken: singlePrice, firstPurchasedTokenId: start }); return start; } /// @notice Returns the starting token ID. function _startTokenId() internal pure override returns (uint256) { return 1; } /// @notice Public sale active function _publicSaleActive() internal view returns (bool) { return publicSaleStart <= block.timestamp && publicSaleEnd > block.timestamp; } /// @notice Sale details /// @return IERC721Drop.SaleDetails sale information details function saleDetails() external view returns (SaleDetails memory) { return SaleDetails({ publicSaleActive: _publicSaleActive(), presaleActive: false, publicSalePrice: singlePrice, publicSaleStart: publicSaleStart, publicSaleEnd: publicSaleEnd, presaleStart: 0, presaleEnd: 0, presaleMerkleRoot: 0x0000000000000000000000000000000000000000000000000000000000000000, totalMinted: _totalMinted(), maxSupply: 1000000, maxSalePurchasePerAddress: 0 }); } /// @notice updates price & end time on first purchase with proof-of-stake function _activatePostMerge() internal { /// @dev converts block.number ~0.155 ETH uint256 scale = 10000000000; _setPrice(block.number * scale); _setPublicSaleEnd(uint64(block.timestamp) + HALF_LENGTH_OF_SALE); } /// @notice used in case of special "MERGE" block number we want to set the price to. function setPrice(uint256 _newWeiPrice) external onlyOwner { _setPrice(_newWeiPrice); } /// @notice updates price. function _setPrice(uint256 _newWeiPrice) internal { singlePrice = _newWeiPrice; } /// @notice used in case of unforseen delays in the merge requiring change to endTime. function setPublicSaleEnd(uint64 _publicSaleEnd) external onlyPublicSaleActive onlyOwner { _setPublicSaleEnd(_publicSaleEnd); } /// @notice updates publicSaleEnd. function _setPublicSaleEnd(uint64 _publicSaleEnd) internal { publicSaleEnd = _publicSaleEnd; } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.10; import "@openzeppelin/contracts/token/ERC20/IERC20.sol"; import "../interfaces/ILiquidSplit.sol"; contract FundsReceiver { /// @notice recipient of funds from primary sale (25%). address payable public immutable liquidSplit; /// @notice All Core Dev team who made The Merge happen (25%). address payable public constant coreDevs = payable(0xF29Ff96aaEa6C9A1fBa851f74737f3c069d4f1a9); /// @notice SongaDAO (45%). address payable public constant songaDao = payable(0x2a2C412c440Dfb0E7cae46EFF581e3E26aFd1Cd0); /// @notice sweetman.eth - the music nft engineer (5%). address payable public constant engineer = payable(0xcfBf34d385EA2d5Eb947063b67eA226dcDA3DC38); /// @notice event for funds received. event FundsReceived(address indexed source, uint256 amount); constructor(address payable _liquidSplit) { liquidSplit = _liquidSplit; } /// @notice receive ETH receive() external payable { emit FundsReceived(msg.sender, msg.value); } /// @notice withdraw balance of ETH function withdraw() public { uint256 balance = address(this).balance; coreDevs.transfer(uint256(balance / 4)); songaDao.transfer(uint256((balance * 9) / 20)); engineer.transfer(uint256(balance / 20)); liquidSplit.transfer(address(this).balance); } /// @notice activate liquid split function withdrawLiquidSplit() public { ILiquidSplit(liquidSplit).withdraw(); } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.15; contract TheMerge { uint72 private constant DIFFICULTY_THRESHOLD = 2**64; /** * @dev A difficulty value greater than `2**64` indicates that a transaction is * being executed in a PoS block. Also note that the `DIFFICULTY` opcode (0x44) * is renamed to `PREVRANDAO` post-merge. * * For further information, see here: https://eips.ethereum.org/EIPS/eip-4399. */ function merged() public view returns (bool) { return block.difficulty > DIFFICULTY_THRESHOLD; } }
// SPDX-License-Identifier: MIT // ERC721A Contracts v4.2.2 // Creator: Chiru Labs pragma solidity ^0.8.4; import './IERC721A.sol'; /** * @dev Interface of ERC721 token receiver. */ interface ERC721A__IERC721Receiver { function onERC721Received( address operator, address from, uint256 tokenId, bytes calldata data ) external returns (bytes4); } /** * @title ERC721A * * @dev Implementation of the [ERC721](https://eips.ethereum.org/EIPS/eip-721) * Non-Fungible Token Standard, including the Metadata extension. * Optimized for lower gas during batch mints. * * Token IDs are minted in sequential order (e.g. 0, 1, 2, 3, ...) * starting from `_startTokenId()`. * * Assumptions: * * - An owner cannot have more than 2**64 - 1 (max value of uint64) of supply. * - The maximum token ID cannot exceed 2**256 - 1 (max value of uint256). */ contract ERC721A is IERC721A { // Reference type for token approval. struct TokenApprovalRef { address value; } // ============================================================= // CONSTANTS // ============================================================= // Mask of an entry in packed address data. uint256 private constant _BITMASK_ADDRESS_DATA_ENTRY = (1 << 64) - 1; // The bit position of `numberMinted` in packed address data. uint256 private constant _BITPOS_NUMBER_MINTED = 64; // The bit position of `numberBurned` in packed address data. uint256 private constant _BITPOS_NUMBER_BURNED = 128; // The bit position of `aux` in packed address data. uint256 private constant _BITPOS_AUX = 192; // Mask of all 256 bits in packed address data except the 64 bits for `aux`. uint256 private constant _BITMASK_AUX_COMPLEMENT = (1 << 192) - 1; // The bit position of `startTimestamp` in packed ownership. uint256 private constant _BITPOS_START_TIMESTAMP = 160; // The bit mask of the `burned` bit in packed ownership. uint256 private constant _BITMASK_BURNED = 1 << 224; // The bit position of the `nextInitialized` bit in packed ownership. uint256 private constant _BITPOS_NEXT_INITIALIZED = 225; // The bit mask of the `nextInitialized` bit in packed ownership. uint256 private constant _BITMASK_NEXT_INITIALIZED = 1 << 225; // The bit position of `extraData` in packed ownership. uint256 private constant _BITPOS_EXTRA_DATA = 232; // Mask of all 256 bits in a packed ownership except the 24 bits for `extraData`. uint256 private constant _BITMASK_EXTRA_DATA_COMPLEMENT = (1 << 232) - 1; // The mask of the lower 160 bits for addresses. uint256 private constant _BITMASK_ADDRESS = (1 << 160) - 1; // The maximum `quantity` that can be minted with {_mintERC2309}. // This limit is to prevent overflows on the address data entries. // For a limit of 5000, a total of 3.689e15 calls to {_mintERC2309} // is required to cause an overflow, which is unrealistic. uint256 private constant _MAX_MINT_ERC2309_QUANTITY_LIMIT = 5000; // The `Transfer` event signature is given by: // `keccak256(bytes("Transfer(address,address,uint256)"))`. bytes32 private constant _TRANSFER_EVENT_SIGNATURE = 0xddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef; // ============================================================= // STORAGE // ============================================================= // The next token ID to be minted. uint256 private _currentIndex; // The number of tokens burned. uint256 private _burnCounter; // Token name string private _name; // Token symbol string private _symbol; // Mapping from token ID to ownership details // An empty struct value does not necessarily mean the token is unowned. // See {_packedOwnershipOf} implementation for details. // // Bits Layout: // - [0..159] `addr` // - [160..223] `startTimestamp` // - [224] `burned` // - [225] `nextInitialized` // - [232..255] `extraData` mapping(uint256 => uint256) private _packedOwnerships; // Mapping owner address to address data. // // Bits Layout: // - [0..63] `balance` // - [64..127] `numberMinted` // - [128..191] `numberBurned` // - [192..255] `aux` mapping(address => uint256) private _packedAddressData; // Mapping from token ID to approved address. mapping(uint256 => TokenApprovalRef) private _tokenApprovals; // Mapping from owner to operator approvals mapping(address => mapping(address => bool)) private _operatorApprovals; // ============================================================= // CONSTRUCTOR // ============================================================= constructor(string memory name_, string memory symbol_) { _name = name_; _symbol = symbol_; _currentIndex = _startTokenId(); } // ============================================================= // TOKEN COUNTING OPERATIONS // ============================================================= /** * @dev Returns the starting token ID. * To change the starting token ID, please override this function. */ function _startTokenId() internal view virtual returns (uint256) { return 0; } /** * @dev Returns the next token ID to be minted. */ function _nextTokenId() internal view virtual returns (uint256) { return _currentIndex; } /** * @dev Returns the total number of tokens in existence. * Burned tokens will reduce the count. * To get the total number of tokens minted, please see {_totalMinted}. */ function totalSupply() public view virtual override returns (uint256) { // Counter underflow is impossible as _burnCounter cannot be incremented // more than `_currentIndex - _startTokenId()` times. unchecked { return _currentIndex - _burnCounter - _startTokenId(); } } /** * @dev Returns the total amount of tokens minted in the contract. */ function _totalMinted() internal view virtual returns (uint256) { // Counter underflow is impossible as `_currentIndex` does not decrement, // and it is initialized to `_startTokenId()`. unchecked { return _currentIndex - _startTokenId(); } } /** * @dev Returns the total number of tokens burned. */ function _totalBurned() internal view virtual returns (uint256) { return _burnCounter; } // ============================================================= // ADDRESS DATA OPERATIONS // ============================================================= /** * @dev Returns the number of tokens in `owner`'s account. */ function balanceOf(address owner) public view virtual override returns (uint256) { if (owner == address(0)) revert BalanceQueryForZeroAddress(); return _packedAddressData[owner] & _BITMASK_ADDRESS_DATA_ENTRY; } /** * Returns the number of tokens minted by `owner`. */ function _numberMinted(address owner) internal view returns (uint256) { return (_packedAddressData[owner] >> _BITPOS_NUMBER_MINTED) & _BITMASK_ADDRESS_DATA_ENTRY; } /** * Returns the number of tokens burned by or on behalf of `owner`. */ function _numberBurned(address owner) internal view returns (uint256) { return (_packedAddressData[owner] >> _BITPOS_NUMBER_BURNED) & _BITMASK_ADDRESS_DATA_ENTRY; } /** * Returns the auxiliary data for `owner`. (e.g. number of whitelist mint slots used). */ function _getAux(address owner) internal view returns (uint64) { return uint64(_packedAddressData[owner] >> _BITPOS_AUX); } /** * Sets the auxiliary data for `owner`. (e.g. number of whitelist mint slots used). * If there are multiple variables, please pack them into a uint64. */ function _setAux(address owner, uint64 aux) internal virtual { uint256 packed = _packedAddressData[owner]; uint256 auxCasted; // Cast `aux` with assembly to avoid redundant masking. assembly { auxCasted := aux } packed = (packed & _BITMASK_AUX_COMPLEMENT) | (auxCasted << _BITPOS_AUX); _packedAddressData[owner] = packed; } // ============================================================= // IERC165 // ============================================================= /** * @dev Returns true if this contract implements the interface defined by * `interfaceId`. See the corresponding * [EIP section](https://eips.ethereum.org/EIPS/eip-165#how-interfaces-are-identified) * to learn more about how these ids are created. * * This function call must use less than 30000 gas. */ function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) { // The interface IDs are constants representing the first 4 bytes // of the XOR of all function selectors in the interface. // See: [ERC165](https://eips.ethereum.org/EIPS/eip-165) // (e.g. `bytes4(i.functionA.selector ^ i.functionB.selector ^ ...)`) return interfaceId == 0x01ffc9a7 || // ERC165 interface ID for ERC165. interfaceId == 0x80ac58cd || // ERC165 interface ID for ERC721. interfaceId == 0x5b5e139f; // ERC165 interface ID for ERC721Metadata. } // ============================================================= // IERC721Metadata // ============================================================= /** * @dev Returns the token collection name. */ function name() public view virtual override returns (string memory) { return _name; } /** * @dev Returns the token collection symbol. */ function symbol() public view virtual override returns (string memory) { return _symbol; } /** * @dev Returns the Uniform Resource Identifier (URI) for `tokenId` token. */ function tokenURI(uint256 tokenId) public view virtual override returns (string memory) { if (!_exists(tokenId)) revert URIQueryForNonexistentToken(); string memory baseURI = _baseURI(); return bytes(baseURI).length != 0 ? string(abi.encodePacked(baseURI, _toString(tokenId))) : ''; } /** * @dev Base URI for computing {tokenURI}. If set, the resulting URI for each * token will be the concatenation of the `baseURI` and the `tokenId`. Empty * by default, it can be overridden in child contracts. */ function _baseURI() internal view virtual returns (string memory) { return ''; } // ============================================================= // OWNERSHIPS OPERATIONS // ============================================================= /** * @dev Returns the owner of the `tokenId` token. * * Requirements: * * - `tokenId` must exist. */ function ownerOf(uint256 tokenId) public view virtual override returns (address) { return address(uint160(_packedOwnershipOf(tokenId))); } /** * @dev Gas spent here starts off proportional to the maximum mint batch size. * It gradually moves to O(1) as tokens get transferred around over time. */ function _ownershipOf(uint256 tokenId) internal view virtual returns (TokenOwnership memory) { return _unpackedOwnership(_packedOwnershipOf(tokenId)); } /** * @dev Returns the unpacked `TokenOwnership` struct at `index`. */ function _ownershipAt(uint256 index) internal view virtual returns (TokenOwnership memory) { return _unpackedOwnership(_packedOwnerships[index]); } /** * @dev Initializes the ownership slot minted at `index` for efficiency purposes. */ function _initializeOwnershipAt(uint256 index) internal virtual { if (_packedOwnerships[index] == 0) { _packedOwnerships[index] = _packedOwnershipOf(index); } } /** * Returns the packed ownership data of `tokenId`. */ function _packedOwnershipOf(uint256 tokenId) private view returns (uint256) { uint256 curr = tokenId; unchecked { if (_startTokenId() <= curr) if (curr < _currentIndex) { uint256 packed = _packedOwnerships[curr]; // If not burned. if (packed & _BITMASK_BURNED == 0) { // Invariant: // There will always be an initialized ownership slot // (i.e. `ownership.addr != address(0) && ownership.burned == false`) // before an unintialized ownership slot // (i.e. `ownership.addr == address(0) && ownership.burned == false`) // Hence, `curr` will not underflow. // // We can directly compare the packed value. // If the address is zero, packed will be zero. while (packed == 0) { packed = _packedOwnerships[--curr]; } return packed; } } } revert OwnerQueryForNonexistentToken(); } /** * @dev Returns the unpacked `TokenOwnership` struct from `packed`. */ function _unpackedOwnership(uint256 packed) private pure returns (TokenOwnership memory ownership) { ownership.addr = address(uint160(packed)); ownership.startTimestamp = uint64(packed >> _BITPOS_START_TIMESTAMP); ownership.burned = packed & _BITMASK_BURNED != 0; ownership.extraData = uint24(packed >> _BITPOS_EXTRA_DATA); } /** * @dev Packs ownership data into a single uint256. */ function _packOwnershipData(address owner, uint256 flags) private view returns (uint256 result) { assembly { // Mask `owner` to the lower 160 bits, in case the upper bits somehow aren't clean. owner := and(owner, _BITMASK_ADDRESS) // `owner | (block.timestamp << _BITPOS_START_TIMESTAMP) | flags`. result := or(owner, or(shl(_BITPOS_START_TIMESTAMP, timestamp()), flags)) } } /** * @dev Returns the `nextInitialized` flag set if `quantity` equals 1. */ function _nextInitializedFlag(uint256 quantity) private pure returns (uint256 result) { // For branchless setting of the `nextInitialized` flag. assembly { // `(quantity == 1) << _BITPOS_NEXT_INITIALIZED`. result := shl(_BITPOS_NEXT_INITIALIZED, eq(quantity, 1)) } } // ============================================================= // APPROVAL OPERATIONS // ============================================================= /** * @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) public virtual override { address owner = ownerOf(tokenId); if (_msgSenderERC721A() != owner) if (!isApprovedForAll(owner, _msgSenderERC721A())) { revert ApprovalCallerNotOwnerNorApproved(); } _tokenApprovals[tokenId].value = to; emit Approval(owner, to, tokenId); } /** * @dev Returns the account approved for `tokenId` token. * * Requirements: * * - `tokenId` must exist. */ function getApproved(uint256 tokenId) public view virtual override returns (address) { if (!_exists(tokenId)) revert ApprovalQueryForNonexistentToken(); return _tokenApprovals[tokenId].value; } /** * @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) public virtual override { if (operator == _msgSenderERC721A()) revert ApproveToCaller(); _operatorApprovals[_msgSenderERC721A()][operator] = approved; emit ApprovalForAll(_msgSenderERC721A(), operator, approved); } /** * @dev Returns if the `operator` is allowed to manage all of the assets of `owner`. * * See {setApprovalForAll}. */ function isApprovedForAll(address owner, address operator) public view virtual override returns (bool) { return _operatorApprovals[owner][operator]; } /** * @dev Returns whether `tokenId` exists. * * Tokens can be managed by their owner or approved accounts via {approve} or {setApprovalForAll}. * * Tokens start existing when they are minted. See {_mint}. */ function _exists(uint256 tokenId) internal view virtual returns (bool) { return _startTokenId() <= tokenId && tokenId < _currentIndex && // If within bounds, _packedOwnerships[tokenId] & _BITMASK_BURNED == 0; // and not burned. } /** * @dev Returns whether `msgSender` is equal to `approvedAddress` or `owner`. */ function _isSenderApprovedOrOwner( address approvedAddress, address owner, address msgSender ) private pure returns (bool result) { assembly { // Mask `owner` to the lower 160 bits, in case the upper bits somehow aren't clean. owner := and(owner, _BITMASK_ADDRESS) // Mask `msgSender` to the lower 160 bits, in case the upper bits somehow aren't clean. msgSender := and(msgSender, _BITMASK_ADDRESS) // `msgSender == owner || msgSender == approvedAddress`. result := or(eq(msgSender, owner), eq(msgSender, approvedAddress)) } } /** * @dev Returns the storage slot and value for the approved address of `tokenId`. */ function _getApprovedSlotAndAddress(uint256 tokenId) private view returns (uint256 approvedAddressSlot, address approvedAddress) { TokenApprovalRef storage tokenApproval = _tokenApprovals[tokenId]; // The following is equivalent to `approvedAddress = _tokenApprovals[tokenId]`. assembly { approvedAddressSlot := tokenApproval.slot approvedAddress := sload(approvedAddressSlot) } } // ============================================================= // TRANSFER OPERATIONS // ============================================================= /** * @dev Transfers `tokenId` from `from` to `to`. * * 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 ) public virtual override { uint256 prevOwnershipPacked = _packedOwnershipOf(tokenId); if (address(uint160(prevOwnershipPacked)) != from) revert TransferFromIncorrectOwner(); (uint256 approvedAddressSlot, address approvedAddress) = _getApprovedSlotAndAddress(tokenId); // The nested ifs save around 20+ gas over a compound boolean condition. if (!_isSenderApprovedOrOwner(approvedAddress, from, _msgSenderERC721A())) if (!isApprovedForAll(from, _msgSenderERC721A())) revert TransferCallerNotOwnerNorApproved(); if (to == address(0)) revert TransferToZeroAddress(); _beforeTokenTransfers(from, to, tokenId, 1); // Clear approvals from the previous owner. assembly { if approvedAddress { // This is equivalent to `delete _tokenApprovals[tokenId]`. sstore(approvedAddressSlot, 0) } } // Underflow of the sender's balance is impossible because we check for // ownership above and the recipient's balance can't realistically overflow. // Counter overflow is incredibly unrealistic as `tokenId` would have to be 2**256. unchecked { // We can directly increment and decrement the balances. --_packedAddressData[from]; // Updates: `balance -= 1`. ++_packedAddressData[to]; // Updates: `balance += 1`. // Updates: // - `address` to the next owner. // - `startTimestamp` to the timestamp of transfering. // - `burned` to `false`. // - `nextInitialized` to `true`. _packedOwnerships[tokenId] = _packOwnershipData( to, _BITMASK_NEXT_INITIALIZED | _nextExtraData(from, to, prevOwnershipPacked) ); // If the next slot may not have been initialized (i.e. `nextInitialized == false`) . if (prevOwnershipPacked & _BITMASK_NEXT_INITIALIZED == 0) { uint256 nextTokenId = tokenId + 1; // If the next slot's address is zero and not burned (i.e. packed value is zero). if (_packedOwnerships[nextTokenId] == 0) { // If the next slot is within bounds. if (nextTokenId != _currentIndex) { // Initialize the next slot to maintain correctness for `ownerOf(tokenId + 1)`. _packedOwnerships[nextTokenId] = prevOwnershipPacked; } } } } emit Transfer(from, to, tokenId); _afterTokenTransfers(from, to, tokenId, 1); } /** * @dev Equivalent to `safeTransferFrom(from, to, tokenId, '')`. */ function safeTransferFrom( address from, address to, uint256 tokenId ) public virtual override { safeTransferFrom(from, to, tokenId, ''); } /** * @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 memory _data ) public virtual override { transferFrom(from, to, tokenId); if (to.code.length != 0) if (!_checkContractOnERC721Received(from, to, tokenId, _data)) { revert TransferToNonERC721ReceiverImplementer(); } } /** * @dev Hook that is called before a set of serially-ordered token IDs * are about to be transferred. This includes minting. * And also called before burning one token. * * `startTokenId` - the first token ID to be transferred. * `quantity` - the amount to be transferred. * * Calling conditions: * * - When `from` and `to` are both non-zero, `from`'s `tokenId` will be * transferred to `to`. * - When `from` is zero, `tokenId` will be minted for `to`. * - When `to` is zero, `tokenId` will be burned by `from`. * - `from` and `to` are never both zero. */ function _beforeTokenTransfers( address from, address to, uint256 startTokenId, uint256 quantity ) internal virtual {} /** * @dev Hook that is called after a set of serially-ordered token IDs * have been transferred. This includes minting. * And also called after one token has been burned. * * `startTokenId` - the first token ID to be transferred. * `quantity` - the amount to be transferred. * * Calling conditions: * * - When `from` and `to` are both non-zero, `from`'s `tokenId` has been * transferred to `to`. * - When `from` is zero, `tokenId` has been minted for `to`. * - When `to` is zero, `tokenId` has been burned by `from`. * - `from` and `to` are never both zero. */ function _afterTokenTransfers( address from, address to, uint256 startTokenId, uint256 quantity ) internal virtual {} /** * @dev Private function to invoke {IERC721Receiver-onERC721Received} on a target contract. * * `from` - Previous owner of the given token ID. * `to` - Target address that will receive the token. * `tokenId` - Token ID to be transferred. * `_data` - Optional data to send along with the call. * * Returns whether the call correctly returned the expected magic value. */ function _checkContractOnERC721Received( address from, address to, uint256 tokenId, bytes memory _data ) private returns (bool) { try ERC721A__IERC721Receiver(to).onERC721Received(_msgSenderERC721A(), from, tokenId, _data) returns ( bytes4 retval ) { return retval == ERC721A__IERC721Receiver(to).onERC721Received.selector; } catch (bytes memory reason) { if (reason.length == 0) { revert TransferToNonERC721ReceiverImplementer(); } else { assembly { revert(add(32, reason), mload(reason)) } } } } // ============================================================= // MINT OPERATIONS // ============================================================= /** * @dev Mints `quantity` tokens and transfers them to `to`. * * Requirements: * * - `to` cannot be the zero address. * - `quantity` must be greater than 0. * * Emits a {Transfer} event for each mint. */ function _mint(address to, uint256 quantity) internal virtual { uint256 startTokenId = _currentIndex; if (quantity == 0) revert MintZeroQuantity(); _beforeTokenTransfers(address(0), to, startTokenId, quantity); // Overflows are incredibly unrealistic. // `balance` and `numberMinted` have a maximum limit of 2**64. // `tokenId` has a maximum limit of 2**256. unchecked { // Updates: // - `balance += quantity`. // - `numberMinted += quantity`. // // We can directly add to the `balance` and `numberMinted`. _packedAddressData[to] += quantity * ((1 << _BITPOS_NUMBER_MINTED) | 1); // Updates: // - `address` to the owner. // - `startTimestamp` to the timestamp of minting. // - `burned` to `false`. // - `nextInitialized` to `quantity == 1`. _packedOwnerships[startTokenId] = _packOwnershipData( to, _nextInitializedFlag(quantity) | _nextExtraData(address(0), to, 0) ); uint256 toMasked; uint256 end = startTokenId + quantity; // Use assembly to loop and emit the `Transfer` event for gas savings. assembly { // Mask `to` to the lower 160 bits, in case the upper bits somehow aren't clean. toMasked := and(to, _BITMASK_ADDRESS) // Emit the `Transfer` event. log4( 0, // Start of data (0, since no data). 0, // End of data (0, since no data). _TRANSFER_EVENT_SIGNATURE, // Signature. 0, // `address(0)`. toMasked, // `to`. startTokenId // `tokenId`. ) for { let tokenId := add(startTokenId, 1) } iszero(eq(tokenId, end)) { tokenId := add(tokenId, 1) } { // Emit the `Transfer` event. Similar to above. log4(0, 0, _TRANSFER_EVENT_SIGNATURE, 0, toMasked, tokenId) } } if (toMasked == 0) revert MintToZeroAddress(); _currentIndex = end; } _afterTokenTransfers(address(0), to, startTokenId, quantity); } /** * @dev Mints `quantity` tokens and transfers them to `to`. * * This function is intended for efficient minting only during contract creation. * * It emits only one {ConsecutiveTransfer} as defined in * [ERC2309](https://eips.ethereum.org/EIPS/eip-2309), * instead of a sequence of {Transfer} event(s). * * Calling this function outside of contract creation WILL make your contract * non-compliant with the ERC721 standard. * For full ERC721 compliance, substituting ERC721 {Transfer} event(s) with the ERC2309 * {ConsecutiveTransfer} event is only permissible during contract creation. * * Requirements: * * - `to` cannot be the zero address. * - `quantity` must be greater than 0. * * Emits a {ConsecutiveTransfer} event. */ function _mintERC2309(address to, uint256 quantity) internal virtual { uint256 startTokenId = _currentIndex; if (to == address(0)) revert MintToZeroAddress(); if (quantity == 0) revert MintZeroQuantity(); if (quantity > _MAX_MINT_ERC2309_QUANTITY_LIMIT) revert MintERC2309QuantityExceedsLimit(); _beforeTokenTransfers(address(0), to, startTokenId, quantity); // Overflows are unrealistic due to the above check for `quantity` to be below the limit. unchecked { // Updates: // - `balance += quantity`. // - `numberMinted += quantity`. // // We can directly add to the `balance` and `numberMinted`. _packedAddressData[to] += quantity * ((1 << _BITPOS_NUMBER_MINTED) | 1); // Updates: // - `address` to the owner. // - `startTimestamp` to the timestamp of minting. // - `burned` to `false`. // - `nextInitialized` to `quantity == 1`. _packedOwnerships[startTokenId] = _packOwnershipData( to, _nextInitializedFlag(quantity) | _nextExtraData(address(0), to, 0) ); emit ConsecutiveTransfer(startTokenId, startTokenId + quantity - 1, address(0), to); _currentIndex = startTokenId + quantity; } _afterTokenTransfers(address(0), to, startTokenId, quantity); } /** * @dev Safely mints `quantity` tokens and transfers them to `to`. * * Requirements: * * - If `to` refers to a smart contract, it must implement * {IERC721Receiver-onERC721Received}, which is called for each safe transfer. * - `quantity` must be greater than 0. * * See {_mint}. * * Emits a {Transfer} event for each mint. */ function _safeMint( address to, uint256 quantity, bytes memory _data ) internal virtual { _mint(to, quantity); unchecked { if (to.code.length != 0) { uint256 end = _currentIndex; uint256 index = end - quantity; do { if (!_checkContractOnERC721Received(address(0), to, index++, _data)) { revert TransferToNonERC721ReceiverImplementer(); } } while (index < end); // Reentrancy protection. if (_currentIndex != end) revert(); } } } /** * @dev Equivalent to `_safeMint(to, quantity, '')`. */ function _safeMint(address to, uint256 quantity) internal virtual { _safeMint(to, quantity, ''); } // ============================================================= // BURN OPERATIONS // ============================================================= /** * @dev Equivalent to `_burn(tokenId, false)`. */ function _burn(uint256 tokenId) internal virtual { _burn(tokenId, false); } /** * @dev Destroys `tokenId`. * The approval is cleared when the token is burned. * * Requirements: * * - `tokenId` must exist. * * Emits a {Transfer} event. */ function _burn(uint256 tokenId, bool approvalCheck) internal virtual { uint256 prevOwnershipPacked = _packedOwnershipOf(tokenId); address from = address(uint160(prevOwnershipPacked)); (uint256 approvedAddressSlot, address approvedAddress) = _getApprovedSlotAndAddress(tokenId); if (approvalCheck) { // The nested ifs save around 20+ gas over a compound boolean condition. if (!_isSenderApprovedOrOwner(approvedAddress, from, _msgSenderERC721A())) if (!isApprovedForAll(from, _msgSenderERC721A())) revert TransferCallerNotOwnerNorApproved(); } _beforeTokenTransfers(from, address(0), tokenId, 1); // Clear approvals from the previous owner. assembly { if approvedAddress { // This is equivalent to `delete _tokenApprovals[tokenId]`. sstore(approvedAddressSlot, 0) } } // Underflow of the sender's balance is impossible because we check for // ownership above and the recipient's balance can't realistically overflow. // Counter overflow is incredibly unrealistic as `tokenId` would have to be 2**256. unchecked { // Updates: // - `balance -= 1`. // - `numberBurned += 1`. // // We can directly decrement the balance, and increment the number burned. // This is equivalent to `packed -= 1; packed += 1 << _BITPOS_NUMBER_BURNED;`. _packedAddressData[from] += (1 << _BITPOS_NUMBER_BURNED) - 1; // Updates: // - `address` to the last owner. // - `startTimestamp` to the timestamp of burning. // - `burned` to `true`. // - `nextInitialized` to `true`. _packedOwnerships[tokenId] = _packOwnershipData( from, (_BITMASK_BURNED | _BITMASK_NEXT_INITIALIZED) | _nextExtraData(from, address(0), prevOwnershipPacked) ); // If the next slot may not have been initialized (i.e. `nextInitialized == false`) . if (prevOwnershipPacked & _BITMASK_NEXT_INITIALIZED == 0) { uint256 nextTokenId = tokenId + 1; // If the next slot's address is zero and not burned (i.e. packed value is zero). if (_packedOwnerships[nextTokenId] == 0) { // If the next slot is within bounds. if (nextTokenId != _currentIndex) { // Initialize the next slot to maintain correctness for `ownerOf(tokenId + 1)`. _packedOwnerships[nextTokenId] = prevOwnershipPacked; } } } } emit Transfer(from, address(0), tokenId); _afterTokenTransfers(from, address(0), tokenId, 1); // Overflow not possible, as _burnCounter cannot be exceed _currentIndex times. unchecked { _burnCounter++; } } // ============================================================= // EXTRA DATA OPERATIONS // ============================================================= /** * @dev Directly sets the extra data for the ownership data `index`. */ function _setExtraDataAt(uint256 index, uint24 extraData) internal virtual { uint256 packed = _packedOwnerships[index]; if (packed == 0) revert OwnershipNotInitializedForExtraData(); uint256 extraDataCasted; // Cast `extraData` with assembly to avoid redundant masking. assembly { extraDataCasted := extraData } packed = (packed & _BITMASK_EXTRA_DATA_COMPLEMENT) | (extraDataCasted << _BITPOS_EXTRA_DATA); _packedOwnerships[index] = packed; } /** * @dev Called during each token transfer to set the 24bit `extraData` field. * Intended to be overridden by the cosumer contract. * * `previousExtraData` - the value of `extraData` before transfer. * * Calling conditions: * * - When `from` and `to` are both non-zero, `from`'s `tokenId` will be * transferred to `to`. * - When `from` is zero, `tokenId` will be minted for `to`. * - When `to` is zero, `tokenId` will be burned by `from`. * - `from` and `to` are never both zero. */ function _extraData( address from, address to, uint24 previousExtraData ) internal view virtual returns (uint24) {} /** * @dev Returns the next extra data for the packed ownership data. * The returned result is shifted into position. */ function _nextExtraData( address from, address to, uint256 prevOwnershipPacked ) private view returns (uint256) { uint24 extraData = uint24(prevOwnershipPacked >> _BITPOS_EXTRA_DATA); return uint256(_extraData(from, to, extraData)) << _BITPOS_EXTRA_DATA; } // ============================================================= // OTHER OPERATIONS // ============================================================= /** * @dev Returns the message sender (defaults to `msg.sender`). * * If you are writing GSN compatible contracts, you need to override this function. */ function _msgSenderERC721A() internal view virtual returns (address) { return msg.sender; } /** * @dev Converts a uint256 to its ASCII string decimal representation. */ function _toString(uint256 value) internal pure virtual returns (string memory str) { assembly { // The maximum value of a uint256 contains 78 digits (1 byte per digit), // but we allocate 0x80 bytes to keep the free memory pointer 32-byte word aliged. // We will need 1 32-byte word to store the length, // and 3 32-byte words to store a maximum of 78 digits. Total: 0x20 + 3 * 0x20 = 0x80. str := add(mload(0x40), 0x80) // Update the free memory pointer to allocate. mstore(0x40, str) // Cache the end of the memory to calculate the length later. let end := str // We write the string from rightmost digit to leftmost digit. // The following is essentially a do-while loop that also handles the zero case. // prettier-ignore for { let temp := value } 1 {} { str := sub(str, 1) // Write the character to the pointer. // The ASCII index of the '0' character is 48. mstore8(str, add(48, mod(temp, 10))) // Keep dividing `temp` until zero. temp := div(temp, 10) // prettier-ignore if iszero(temp) { break } } let length := sub(end, str) // Move the pointer 32 bytes leftwards to make room for the length. str := sub(str, 0x20) // Store the length. mstore(str, length) } } }
// SPDX-License-Identifier: MIT // ERC721A Contracts v4.2.2 // Creator: Chiru Labs pragma solidity ^0.8.4; /** * @dev Interface of ERC721A. */ interface IERC721A { /** * The caller must own the token or be an approved operator. */ error ApprovalCallerNotOwnerNorApproved(); /** * The token does not exist. */ error ApprovalQueryForNonexistentToken(); /** * The caller cannot approve to their own address. */ error ApproveToCaller(); /** * Cannot query the balance for the zero address. */ error BalanceQueryForZeroAddress(); /** * Cannot mint to the zero address. */ error MintToZeroAddress(); /** * The quantity of tokens minted must be more than zero. */ error MintZeroQuantity(); /** * The token does not exist. */ error OwnerQueryForNonexistentToken(); /** * The caller must own the token or be an approved operator. */ error TransferCallerNotOwnerNorApproved(); /** * The token must be owned by `from`. */ error TransferFromIncorrectOwner(); /** * Cannot safely transfer to a contract that does not implement the * ERC721Receiver interface. */ error TransferToNonERC721ReceiverImplementer(); /** * Cannot transfer to the zero address. */ error TransferToZeroAddress(); /** * The token does not exist. */ error URIQueryForNonexistentToken(); /** * The `quantity` minted with ERC2309 exceeds the safety limit. */ error MintERC2309QuantityExceedsLimit(); /** * The `extraData` cannot be set on an unintialized ownership slot. */ error OwnershipNotInitializedForExtraData(); // ============================================================= // STRUCTS // ============================================================= struct TokenOwnership { // The address of the owner. address addr; // Stores the start time of ownership with minimal overhead for tokenomics. uint64 startTimestamp; // Whether the token has been burned. bool burned; // Arbitrary data similar to `startTimestamp` that can be set via {_extraData}. uint24 extraData; } // ============================================================= // TOKEN COUNTERS // ============================================================= /** * @dev Returns the total number of tokens in existence. * Burned tokens will reduce the count. * To get the total number of tokens minted, please see {_totalMinted}. */ function totalSupply() external view returns (uint256); // ============================================================= // IERC165 // ============================================================= /** * @dev Returns true if this contract implements the interface defined by * `interfaceId`. See the corresponding * [EIP section](https://eips.ethereum.org/EIPS/eip-165#how-interfaces-are-identified) * to learn more about how these ids are created. * * This function call must use less than 30000 gas. */ function supportsInterface(bytes4 interfaceId) external view returns (bool); // ============================================================= // IERC721 // ============================================================= /** * @dev Emitted when `tokenId` token is transferred from `from` to `to`. */ event Transfer(address indexed from, address indexed to, uint256 indexed tokenId); /** * @dev Emitted when `owner` enables `approved` to manage the `tokenId` token. */ event Approval(address indexed owner, address indexed approved, uint256 indexed tokenId); /** * @dev Emitted when `owner` enables or disables * (`approved`) `operator` to manage all of its assets. */ event ApprovalForAll(address indexed owner, address indexed operator, bool approved); /** * @dev Returns the number of tokens in `owner`'s account. */ function balanceOf(address owner) external view returns (uint256 balance); /** * @dev Returns the owner of the `tokenId` token. * * Requirements: * * - `tokenId` must exist. */ function ownerOf(uint256 tokenId) external view returns (address owner); /** * @dev Safely transfers `tokenId` token from `from` to `to`, * checking first that contract recipients are aware of the ERC721 protocol * to prevent tokens from being forever locked. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must exist and be owned by `from`. * - If the caller is not `from`, it must be have been allowed to move * this token by either {approve} or {setApprovalForAll}. * - If `to` refers to a smart contract, it must implement * {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */ function safeTransferFrom( address from, address to, uint256 tokenId, bytes calldata data ) external; /** * @dev Equivalent to `safeTransferFrom(from, to, tokenId, '')`. */ function safeTransferFrom( address from, address to, uint256 tokenId ) external; /** * @dev Transfers `tokenId` from `from` to `to`. * * WARNING: Usage of this method is discouraged, use {safeTransferFrom} * whenever possible. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must be owned by `from`. * - If the caller is not `from`, it must be approved to move this token * by either {approve} or {setApprovalForAll}. * * Emits a {Transfer} event. */ function transferFrom( address from, address to, uint256 tokenId ) external; /** * @dev Gives permission to `to` to transfer `tokenId` token to another account. * The approval is cleared when the token is transferred. * * Only a single account can be approved at a time, so approving the * zero address clears previous approvals. * * Requirements: * * - The caller must own the token or be an approved operator. * - `tokenId` must exist. * * Emits an {Approval} event. */ function approve(address to, uint256 tokenId) external; /** * @dev 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); // ============================================================= // IERC721Metadata // ============================================================= /** * @dev Returns the token collection name. */ function name() external view returns (string memory); /** * @dev Returns the token collection symbol. */ function symbol() external view returns (string memory); /** * @dev Returns the Uniform Resource Identifier (URI) for `tokenId` token. */ function tokenURI(uint256 tokenId) external view returns (string memory); // ============================================================= // IERC2309 // ============================================================= /** * @dev Emitted when tokens in `fromTokenId` to `toTokenId` * (inclusive) is transferred from `from` to `to`, as defined in the * [ERC2309](https://eips.ethereum.org/EIPS/eip-2309) standard. * * See {_mintERC2309} for more details. */ event ConsecutiveTransfer(uint256 indexed fromTokenId, uint256 toTokenId, address indexed from, address indexed to); }
{ "optimizer": { "enabled": false, "runs": 200 }, "evmVersion": "london", "remappings": [], "outputSelection": { "*": { "*": [ "evm.bytecode", "evm.deployedBytecode", "devdoc", "userdoc", "metadata", "abi" ] } } }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"inputs":[{"internalType":"uint64","name":"_publicSaleStart","type":"uint64"},{"internalType":"string[]","name":"_musicMetadata","type":"string[]"},{"internalType":"address payable","name":"_liquidSplit","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"inputs":[],"name":"ApprovalCallerNotOwnerNorApproved","type":"error"},{"inputs":[],"name":"ApprovalQueryForNonexistentToken","type":"error"},{"inputs":[],"name":"ApproveToCaller","type":"error"},{"inputs":[],"name":"BalanceQueryForZeroAddress","type":"error"},{"inputs":[],"name":"MintERC2309QuantityExceedsLimit","type":"error"},{"inputs":[],"name":"MintToZeroAddress","type":"error"},{"inputs":[],"name":"MintZeroQuantity","type":"error"},{"inputs":[],"name":"OwnerQueryForNonexistentToken","type":"error"},{"inputs":[],"name":"OwnershipNotInitializedForExtraData","type":"error"},{"inputs":[{"internalType":"uint256","name":"correctPrice","type":"uint256"}],"name":"Purchase_WrongPrice","type":"error"},{"inputs":[],"name":"Sale_Inactive","type":"error"},{"inputs":[],"name":"TransferCallerNotOwnerNorApproved","type":"error"},{"inputs":[],"name":"TransferFromIncorrectOwner","type":"error"},{"inputs":[],"name":"TransferToNonERC721ReceiverImplementer","type":"error"},{"inputs":[],"name":"TransferToZeroAddress","type":"error"},{"inputs":[],"name":"URIQueryForNonexistentToken","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":"uint256","name":"fromTokenId","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"toTokenId","type":"uint256"},{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"}],"name":"ConsecutiveTransfer","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"source","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"FundsReceived","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":"to","type":"address"},{"indexed":true,"internalType":"uint256","name":"quantity","type":"uint256"},{"indexed":true,"internalType":"uint256","name":"pricePerToken","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"firstPurchasedTokenId","type":"uint256"}],"name":"Sale","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":"to","type":"address"},{"internalType":"uint256","name":"tokenId","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":"contractURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"pure","type":"function"},{"inputs":[],"name":"coreDevs","outputs":[{"internalType":"address payable","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"currentSong","outputs":[{"internalType":"uint8","name":"","type":"uint8"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"engineer","outputs":[{"internalType":"address payable","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getApproved","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"operator","type":"address"}],"name":"isApprovedForAll","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"liquidSplit","outputs":[{"internalType":"address payable","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"merged","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"ownerOf","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"price","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"publicSaleEnd","outputs":[{"internalType":"uint64","name":"","type":"uint64"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"publicSaleStart","outputs":[{"internalType":"uint64","name":"","type":"uint64"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_quantity","type":"uint256"}],"name":"purchase","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"bytes","name":"_data","type":"bytes"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"saleDetails","outputs":[{"components":[{"internalType":"bool","name":"publicSaleActive","type":"bool"},{"internalType":"bool","name":"presaleActive","type":"bool"},{"internalType":"uint256","name":"publicSalePrice","type":"uint256"},{"internalType":"uint64","name":"publicSaleStart","type":"uint64"},{"internalType":"uint64","name":"publicSaleEnd","type":"uint64"},{"internalType":"uint64","name":"presaleStart","type":"uint64"},{"internalType":"uint64","name":"presaleEnd","type":"uint64"},{"internalType":"bytes32","name":"presaleMerkleRoot","type":"bytes32"},{"internalType":"uint256","name":"maxSalePurchasePerAddress","type":"uint256"},{"internalType":"uint256","name":"totalMinted","type":"uint256"},{"internalType":"uint256","name":"maxSupply","type":"uint256"}],"internalType":"struct IDrop.SaleDetails","name":"","type":"tuple"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"operator","type":"address"},{"internalType":"bool","name":"approved","type":"bool"}],"name":"setApprovalForAll","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_newWeiPrice","type":"uint256"}],"name":"setPrice","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint64","name":"_publicSaleEnd","type":"uint64"}],"name":"setPublicSaleEnd","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint8","name":"_songId","type":"uint8"}],"name":"songURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"songaDao","outputs":[{"internalType":"address payable","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes4","name":"interfaceId","type":"bytes4"}],"name":"supportsInterface","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"tokenURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"transferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"withdraw","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"withdrawLiquidSplit","outputs":[],"stateMutability":"nonpayable","type":"function"},{"stateMutability":"payable","type":"receive"}]
Contract Creation Code
60c06040526000600b60006101000a81548167ffffffffffffffff021916908367ffffffffffffffff1602179055506364e8bbf0600b60086101000a81548167ffffffffffffffff021916908367ffffffffffffffff1602179055506202a300600b60106101000a81548167ffffffffffffffff021916908367ffffffffffffffff1602179055506002600b60109054906101000a900467ffffffffffffffff16620000ac9190620004d5565b600b60186101000a81548167ffffffffffffffff021916908367ffffffffffffffff160217905550690c70d808a128d738000060a090815250348015620000f257600080fd5b5060405162003b9638038062003b9683398181016040528101906200011891906200084d565b806040518060400160405280600981526020017f546865204d6572676500000000000000000000000000000000000000000000008152506040518060400160405280600381526020017f5341440000000000000000000000000000000000000000000000000000000000815250858282878060009080519060200190620001a1929190620003a5565b50508160039081620001b4919062000b13565b508060049081620001c6919062000b13565b50620001d7620002ce60201b60201c565b6001819055505050620001ff620001f3620002d760201b60201c565b620002df60201b60201c565b80600b60006101000a81548167ffffffffffffffff021916908367ffffffffffffffff160217905550600b60189054906101000a900467ffffffffffffffff16816200024c919062000bfa565b600b60086101000a81548167ffffffffffffffff021916908367ffffffffffffffff1602179055505050508073ffffffffffffffffffffffffffffffffffffffff1660808173ffffffffffffffffffffffffffffffffffffffff168152505050620f424060a051620002bf919062000c6e565b600a8190555050505062000ca6565b60006001905090565b600033905090565b6000600960009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905081600960006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b828054828255906000526020600020908101928215620003f2579160200282015b82811115620003f1578251829081620003e0919062000b13565b5091602001919060010190620003c6565b5b50905062000401919062000405565b5090565b5b808211156200042957600081816200041f91906200042d565b5060010162000406565b5090565b5080546200043b9062000902565b6000825580601f106200044f575062000470565b601f0160209004906000526020600020908101906200046f919062000473565b5b50565b5b808211156200048e57600081600090555060010162000474565b5090565b600067ffffffffffffffff82169050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b6000620004e28262000492565b9150620004ef8362000492565b92508167ffffffffffffffff0483118215151615620005135762000512620004a6565b5b828202905092915050565b6000604051905090565b600080fd5b600080fd5b6200053d8162000492565b81146200054957600080fd5b50565b6000815190506200055d8162000532565b92915050565b600080fd5b6000601f19601f8301169050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b620005b38262000568565b810181811067ffffffffffffffff82111715620005d557620005d462000579565b5b80604052505050565b6000620005ea6200051e565b9050620005f88282620005a8565b919050565b600067ffffffffffffffff8211156200061b576200061a62000579565b5b602082029050602081019050919050565b600080fd5b600080fd5b600067ffffffffffffffff82111562000654576200065362000579565b5b6200065f8262000568565b9050602081019050919050565b60005b838110156200068c5780820151818401526020810190506200066f565b838111156200069c576000848401525b50505050565b6000620006b9620006b38462000636565b620005de565b905082815260208101848484011115620006d857620006d762000631565b5b620006e58482856200066c565b509392505050565b600082601f83011262000705576200070462000563565b5b815162000717848260208601620006a2565b91505092915050565b6000620007376200073184620005fd565b620005de565b905080838252602082019050602084028301858111156200075d576200075c6200062c565b5b835b81811015620007ab57805167ffffffffffffffff81111562000786576200078562000563565b5b808601620007958982620006ed565b855260208501945050506020810190506200075f565b5050509392505050565b600082601f830112620007cd57620007cc62000563565b5b8151620007df84826020860162000720565b91505092915050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b60006200081582620007e8565b9050919050565b620008278162000808565b81146200083357600080fd5b50565b60008151905062000847816200081c565b92915050565b60008060006060848603121562000869576200086862000528565b5b600062000879868287016200054c565b935050602084015167ffffffffffffffff8111156200089d576200089c6200052d565b5b620008ab86828701620007b5565b9250506040620008be8682870162000836565b9150509250925092565b600081519050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b600060028204905060018216806200091b57607f821691505b602082108103620009315762000930620008d3565b5b50919050565b60008190508160005260206000209050919050565b60006020601f8301049050919050565b600082821b905092915050565b6000600883026200099b7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff826200095c565b620009a786836200095c565b95508019841693508086168417925050509392505050565b6000819050919050565b6000819050919050565b6000620009f4620009ee620009e884620009bf565b620009c9565b620009bf565b9050919050565b6000819050919050565b62000a1083620009d3565b62000a2862000a1f82620009fb565b84845462000969565b825550505050565b600090565b62000a3f62000a30565b62000a4c81848462000a05565b505050565b5b8181101562000a745762000a6860008262000a35565b60018101905062000a52565b5050565b601f82111562000ac35762000a8d8162000937565b62000a98846200094c565b8101602085101562000aa8578190505b62000ac062000ab7856200094c565b83018262000a51565b50505b505050565b600082821c905092915050565b600062000ae86000198460080262000ac8565b1980831691505092915050565b600062000b03838362000ad5565b9150826002028217905092915050565b62000b1e82620008c8565b67ffffffffffffffff81111562000b3a5762000b3962000579565b5b62000b46825462000902565b62000b5382828562000a78565b600060209050601f83116001811462000b8b576000841562000b76578287015190505b62000b82858262000af5565b86555062000bf2565b601f19841662000b9b8662000937565b60005b8281101562000bc55784890151825560018201915060208501945060208101905062000b9e565b8683101562000be5578489015162000be1601f89168262000ad5565b8355505b6001600288020188555050505b505050505050565b600062000c078262000492565b915062000c148362000492565b92508267ffffffffffffffff0382111562000c345762000c33620004a6565b5b828201905092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b600062000c7b82620009bf565b915062000c8883620009bf565b92508262000c9b5762000c9a62000c3f565b5b828204905092915050565b60805160a051612ebc62000cda6000396000611e9e015260008181611091015281816111af01526114b50152612ebc6000f3fe6080604052600436106101fd5760003560e01c806370a082311161010d578063a22cb465116100a0578063e985e9c51161006f578063e985e9c514610758578063ec9b5cb214610795578063efef39a1146107c0578063f2fde38b146107f0578063f92e79951461081957610252565b8063a22cb4651461069e578063b88d4fde146106c7578063c87b56dd146106f0578063e8a3d4851461072d57610252565b806391b7f5ed116100dc57806391b7f5ed146105f457806395d89b411461061d5780639cdbe5ad14610648578063a035b1fe1461067357610252565b806370a0823114610538578063715018a6146105755780638da5cb5b1461058c57806390a2d678146105b757610252565b80633ccfd60b11610190578063603a552e1161015f578063603a552e146104635780636352211e1461048e57806366659465146104cb5780636bc1fb53146104e25780636c2bc0581461050d57610252565b80633ccfd60b146103cf57806342842e0e146103e6578063519ea94e1461040f5780635865db6c1461043857610252565b806318160ddd116101cc57806318160ddd1461032557806323b872dd146103505780633360caa0146103795780633474a4a6146103a457610252565b806301ffc9a71461025757806306fdde0314610294578063081812fc146102bf578063095ea7b3146102fc57610252565b36610252573373ffffffffffffffffffffffffffffffffffffffff167f8e47b87b0ef542cdfa1659c551d88bad38aa7f452d2bbb349ab7530dfec8be8f34604051610248919061222c565b60405180910390a2005b600080fd5b34801561026357600080fd5b5061027e600480360381019061027991906122b3565b610844565b60405161028b91906122fb565b60405180910390f35b3480156102a057600080fd5b506102a96108d6565b6040516102b691906123af565b60405180910390f35b3480156102cb57600080fd5b506102e660048036038101906102e191906123fd565b610968565b6040516102f3919061246b565b60405180910390f35b34801561030857600080fd5b50610323600480360381019061031e91906124b2565b6109e7565b005b34801561033157600080fd5b5061033a610b2b565b604051610347919061222c565b60405180910390f35b34801561035c57600080fd5b50610377600480360381019061037291906124f2565b610b42565b005b34801561038557600080fd5b5061038e610e64565b60405161039b9190612568565b60405180910390f35b3480156103b057600080fd5b506103b9610e7e565b6040516103c691906126aa565b60405180910390f35b3480156103db57600080fd5b506103e4610f49565b005b3480156103f257600080fd5b5061040d600480360381019061040891906124f2565b6110f9565b005b34801561041b57600080fd5b50610436600480360381019061043191906126f2565b611119565b005b34801561044457600080fd5b5061044d61116b565b60405161045a9190612740565b60405180910390f35b34801561046f57600080fd5b50610478611183565b6040516104859190612740565b60405180910390f35b34801561049a57600080fd5b506104b560048036038101906104b091906123fd565b61119b565b6040516104c2919061246b565b60405180910390f35b3480156104d757600080fd5b506104e06111ad565b005b3480156104ee57600080fd5b506104f761122f565b60405161050491906122fb565b60405180910390f35b34801561051957600080fd5b5061052261124d565b60405161052f9190612777565b60405180910390f35b34801561054457600080fd5b5061055f600480360381019061055a9190612792565b611264565b60405161056c919061222c565b60405180910390f35b34801561058157600080fd5b5061058a61131c565b005b34801561059857600080fd5b506105a1611330565b6040516105ae919061246b565b60405180910390f35b3480156105c357600080fd5b506105de60048036038101906105d991906127eb565b61135a565b6040516105eb91906123af565b60405180910390f35b34801561060057600080fd5b5061061b600480360381019061061691906123fd565b61140d565b005b34801561062957600080fd5b50610632611421565b60405161063f91906123af565b60405180910390f35b34801561065457600080fd5b5061065d6114b3565b60405161066a9190612740565b60405180910390f35b34801561067f57600080fd5b506106886114d7565b604051610695919061222c565b60405180910390f35b3480156106aa57600080fd5b506106c560048036038101906106c09190612844565b6114e1565b005b3480156106d357600080fd5b506106ee60048036038101906106e991906129b9565b611658565b005b3480156106fc57600080fd5b50610717600480360381019061071291906123fd565b6116cb565b60405161072491906123af565b60405180910390f35b34801561073957600080fd5b50610742611729565b60405161074f91906123af565b60405180910390f35b34801561076457600080fd5b5061077f600480360381019061077a9190612a3c565b611749565b60405161078c91906122fb565b60405180910390f35b3480156107a157600080fd5b506107aa6117dd565b6040516107b79190612568565b60405180910390f35b6107da60048036038101906107d591906123fd565b6117f7565b6040516107e7919061222c565b60405180910390f35b3480156107fc57600080fd5b5061081760048036038101906108129190612792565b6118b5565b005b34801561082557600080fd5b5061082e611938565b60405161083b9190612740565b60405180910390f35b60006301ffc9a760e01b827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916148061089f57506380ac58cd60e01b827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b806108cf5750635b5e139f60e01b827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b9050919050565b6060600380546108e590612aab565b80601f016020809104026020016040519081016040528092919081815260200182805461091190612aab565b801561095e5780601f106109335761010080835404028352916020019161095e565b820191906000526020600020905b81548152906001019060200180831161094157829003601f168201915b5050505050905090565b600061097382611950565b6109a9576040517fcf4700e400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6007600083815260200190815260200160002060000160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050919050565b60006109f28261119b565b90508073ffffffffffffffffffffffffffffffffffffffff16610a136119af565b73ffffffffffffffffffffffffffffffffffffffff1614610a7657610a3f81610a3a6119af565b611749565b610a75576040517fcfb3b94200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5b826007600084815260200190815260200160002060000160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550818373ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a4505050565b6000610b356119b7565b6002546001540303905090565b6000610b4d826119c0565b90508373ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1614610bb4576040517fa114810000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600080610bc084611a8c565b91509150610bd68187610bd16119af565b611ab3565b610c2257610beb86610be66119af565b611749565b610c21576040517f59c896be00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5b600073ffffffffffffffffffffffffffffffffffffffff168573ffffffffffffffffffffffffffffffffffffffff1603610c88576040517fea553b3400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b610c958686866001611af7565b8015610ca057600082555b600660008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600081546001900391905081905550600660008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000815460010191905081905550610d6e85610d4a888887611afd565b7c020000000000000000000000000000000000000000000000000000000017611b25565b600560008681526020019081526020016000208190555060007c0200000000000000000000000000000000000000000000000000000000841603610df45760006001850190506000600560008381526020019081526020016000205403610df2576001548114610df1578360056000838152602001908152602001600020819055505b5b505b838573ffffffffffffffffffffffffffffffffffffffff168773ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a4610e5c8686866001611b50565b505050505050565b600b60009054906101000a900467ffffffffffffffff1681565b610e8661218a565b604051806101600160405280610e9a611b56565b15158152602001600015158152602001600a548152602001600b60009054906101000a900467ffffffffffffffff1667ffffffffffffffff168152602001600b60089054906101000a900467ffffffffffffffff1667ffffffffffffffff168152602001600067ffffffffffffffff168152602001600067ffffffffffffffff1681526020016000801b815260200160008152602001610f38611bac565b8152602001620f4240815250905090565b600047905073f29ff96aaea6c9a1fba851f74737f3c069d4f1a973ffffffffffffffffffffffffffffffffffffffff166108fc600483610f899190612b3a565b9081150290604051600060405180830381858888f19350505050158015610fb4573d6000803e3d6000fd5b50732a2c412c440dfb0e7cae46eff581e3e26afd1cd073ffffffffffffffffffffffffffffffffffffffff166108fc6014600984610ff29190612b6b565b610ffc9190612b3a565b9081150290604051600060405180830381858888f19350505050158015611027573d6000803e3d6000fd5b5073cfbf34d385ea2d5eb947063b67ea226dcda3dc3873ffffffffffffffffffffffffffffffffffffffff166108fc6014836110639190612b3a565b9081150290604051600060405180830381858888f1935050505015801561108e573d6000803e3d6000fd5b507f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff166108fc479081150290604051600060405180830381858888f193505050501580156110f5573d6000803e3d6000fd5b5050565b61111483838360405180602001604052806000815250611658565b505050565b611121611b56565b611157576040517ff12dcc7f00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b61115f611bbf565b61116881611c3d565b50565b732a2c412c440dfb0e7cae46eff581e3e26afd1cd081565b73cfbf34d385ea2d5eb947063b67ea226dcda3dc3881565b60006111a6826119c0565b9050919050565b7f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff16633ccfd60b6040518163ffffffff1660e01b8152600401600060405180830381600087803b15801561121557600080fd5b505af1158015611229573d6000803e3d6000fd5b50505050565b60006801000000000000000068ffffffffffffffffff164411905090565b600080805490504261125f9190612bc5565b905090565b60008073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff16036112cb576040517f8f4eb60400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b67ffffffffffffffff600660008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054169050919050565b611324611bbf565b61132e6000611c69565b565b6000600960009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b606060008260ff168154811061137357611372612bf6565b5b90600052602060002001805461138890612aab565b80601f01602080910402602001604051908101604052809291908181526020018280546113b490612aab565b80156114015780601f106113d657610100808354040283529160200191611401565b820191906000526020600020905b8154815290600101906020018083116113e457829003601f168201915b50505050509050919050565b611415611bbf565b61141e81611d2f565b50565b60606004805461143090612aab565b80601f016020809104026020016040519081016040528092919081815260200182805461145c90612aab565b80156114a95780601f1061147e576101008083540402835291602001916114a9565b820191906000526020600020905b81548152906001019060200180831161148c57829003601f168201915b5050505050905090565b7f000000000000000000000000000000000000000000000000000000000000000081565b6000600a54905090565b6114e96119af565b73ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff160361154d576040517fb06307db00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b806008600061155a6119af565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055508173ffffffffffffffffffffffffffffffffffffffff166116076119af565b73ffffffffffffffffffffffffffffffffffffffff167f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c318360405161164c91906122fb565b60405180910390a35050565b611663848484610b42565b60008373ffffffffffffffffffffffffffffffffffffffff163b146116c55761168e84848484611d39565b6116c4576040517fd1a57ed600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5b50505050565b60606116d682611950565b61170c576040517fa14c4b5000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600061171661124d565b90506117218161135a565b915050919050565b6060604051806080016040528060428152602001612e4560429139905090565b6000600860008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16905092915050565b600b60089054906101000a900467ffffffffffffffff1681565b6000611801611b56565b611837576040517ff12dcc7f00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600a548280826118479190612b6b565b34146118955780826118599190612b6b565b6040517f6a1c179e00000000000000000000000000000000000000000000000000000000815260040161188c919061222c565b60405180910390fd5b61189d611e89565b60006118a885611ee6565b9050809350505050919050565b6118bd611bbf565b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff160361192c576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161192390612c97565b60405180910390fd5b61193581611c69565b50565b73f29ff96aaea6c9a1fba851f74737f3c069d4f1a981565b60008161195b6119b7565b1115801561196a575060015482105b80156119a8575060007c0100000000000000000000000000000000000000000000000000000000600560008581526020019081526020016000205416145b9050919050565b600033905090565b60006001905090565b600080829050806119cf6119b7565b11611a5557600154811015611a545760006005600083815260200190815260200160002054905060007c0100000000000000000000000000000000000000000000000000000000821603611a52575b60008103611a48576005600083600190039350838152602001908152602001600020549050611a1e565b8092505050611a87565b505b5b6040517fdf2d9b4200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b919050565b60008060006007600085815260200190815260200160002090508092508254915050915091565b600073ffffffffffffffffffffffffffffffffffffffff8316925073ffffffffffffffffffffffffffffffffffffffff821691508382148383141790509392505050565b50505050565b60008060e883901c905060e8611b14868684611f58565b62ffffff16901b9150509392505050565b600073ffffffffffffffffffffffffffffffffffffffff83169250814260a01b178317905092915050565b50505050565b600042600b60009054906101000a900467ffffffffffffffff1667ffffffffffffffff1611158015611ba7575042600b60089054906101000a900467ffffffffffffffff1667ffffffffffffffff16115b905090565b6000611bb66119b7565b60015403905090565b611bc7611f61565b73ffffffffffffffffffffffffffffffffffffffff16611be5611330565b73ffffffffffffffffffffffffffffffffffffffff1614611c3b576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611c3290612d03565b60405180910390fd5b565b80600b60086101000a81548167ffffffffffffffff021916908367ffffffffffffffff16021790555050565b6000600960009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905081600960006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b80600a8190555050565b60008373ffffffffffffffffffffffffffffffffffffffff1663150b7a02611d5f6119af565b8786866040518563ffffffff1660e01b8152600401611d819493929190612d78565b6020604051808303816000875af1925050508015611dbd57506040513d601f19601f82011682018060405250810190611dba9190612dd9565b60015b611e36573d8060008114611ded576040519150601f19603f3d011682016040523d82523d6000602084013e611df2565b606091505b506000815103611e2e576040517fd1a57ed600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b805181602001fd5b63150b7a0260e01b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916817bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614915050949350505050565b611e9161122f565b15611ee4576000620f42407f0000000000000000000000000000000000000000000000000000000000000000611ec79190612b3a565b9050600081600a541490508015611ee157611ee0611f69565b5b50505b565b600080611ef1611fb4565b9050611efd3384611fbe565b600a54833373ffffffffffffffffffffffffffffffffffffffff167f4e26b0356a15833a75d497ecc40ebbb716b99466ed0dba9454f1fff451e25a9084604051611f47919061222c565b60405180910390a480915050919050565b60009392505050565b600033905090565b60006402540be4009050611f878143611f829190612b6b565b611d2f565b611fb1600b60109054906101000a900467ffffffffffffffff1642611fac9190612e06565b611c3d565b50565b6000600154905090565b6000600154905060008203611fff576040517fb562e8dd00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b61200c6000848385611af7565b600160406001901b178202600660008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008282540192505081905550612083836120746000866000611afd565b61207d8561217a565b17611b25565b6005600083815260200190815260200160002081905550600080838301905073ffffffffffffffffffffffffffffffffffffffff85169150828260007fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef600080a4600183015b81811461212457808360007fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef600080a46001810190506120e9565b506000820361215f576040517f2e07630000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b8060018190555050506121756000848385611b50565b505050565b60006001821460e11b9050919050565b60405180610160016040528060001515815260200160001515815260200160008152602001600067ffffffffffffffff168152602001600067ffffffffffffffff168152602001600067ffffffffffffffff168152602001600067ffffffffffffffff168152602001600080191681526020016000815260200160008152602001600081525090565b6000819050919050565b61222681612213565b82525050565b6000602082019050612241600083018461221d565b92915050565b6000604051905090565b600080fd5b600080fd5b60007fffffffff0000000000000000000000000000000000000000000000000000000082169050919050565b6122908161225b565b811461229b57600080fd5b50565b6000813590506122ad81612287565b92915050565b6000602082840312156122c9576122c8612251565b5b60006122d78482850161229e565b91505092915050565b60008115159050919050565b6122f5816122e0565b82525050565b600060208201905061231060008301846122ec565b92915050565b600081519050919050565b600082825260208201905092915050565b60005b83811015612350578082015181840152602081019050612335565b8381111561235f576000848401525b50505050565b6000601f19601f8301169050919050565b600061238182612316565b61238b8185612321565b935061239b818560208601612332565b6123a481612365565b840191505092915050565b600060208201905081810360008301526123c98184612376565b905092915050565b6123da81612213565b81146123e557600080fd5b50565b6000813590506123f7816123d1565b92915050565b60006020828403121561241357612412612251565b5b6000612421848285016123e8565b91505092915050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b60006124558261242a565b9050919050565b6124658161244a565b82525050565b6000602082019050612480600083018461245c565b92915050565b61248f8161244a565b811461249a57600080fd5b50565b6000813590506124ac81612486565b92915050565b600080604083850312156124c9576124c8612251565b5b60006124d78582860161249d565b92505060206124e8858286016123e8565b9150509250929050565b60008060006060848603121561250b5761250a612251565b5b60006125198682870161249d565b935050602061252a8682870161249d565b925050604061253b868287016123e8565b9150509250925092565b600067ffffffffffffffff82169050919050565b61256281612545565b82525050565b600060208201905061257d6000830184612559565b92915050565b61258c816122e0565b82525050565b61259b81612213565b82525050565b6125aa81612545565b82525050565b6000819050919050565b6125c3816125b0565b82525050565b610160820160008201516125e06000850182612583565b5060208201516125f36020850182612583565b5060408201516126066040850182612592565b50606082015161261960608501826125a1565b50608082015161262c60808501826125a1565b5060a082015161263f60a08501826125a1565b5060c082015161265260c08501826125a1565b5060e082015161266560e08501826125ba565b5061010082015161267a610100850182612592565b5061012082015161268f610120850182612592565b506101408201516126a4610140850182612592565b50505050565b6000610160820190506126c060008301846125c9565b92915050565b6126cf81612545565b81146126da57600080fd5b50565b6000813590506126ec816126c6565b92915050565b60006020828403121561270857612707612251565b5b6000612716848285016126dd565b91505092915050565b600061272a8261242a565b9050919050565b61273a8161271f565b82525050565b60006020820190506127556000830184612731565b92915050565b600060ff82169050919050565b6127718161275b565b82525050565b600060208201905061278c6000830184612768565b92915050565b6000602082840312156127a8576127a7612251565b5b60006127b68482850161249d565b91505092915050565b6127c88161275b565b81146127d357600080fd5b50565b6000813590506127e5816127bf565b92915050565b60006020828403121561280157612800612251565b5b600061280f848285016127d6565b91505092915050565b612821816122e0565b811461282c57600080fd5b50565b60008135905061283e81612818565b92915050565b6000806040838503121561285b5761285a612251565b5b60006128698582860161249d565b925050602061287a8582860161282f565b9150509250929050565b600080fd5b600080fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b6128c682612365565b810181811067ffffffffffffffff821117156128e5576128e461288e565b5b80604052505050565b60006128f8612247565b905061290482826128bd565b919050565b600067ffffffffffffffff8211156129245761292361288e565b5b61292d82612365565b9050602081019050919050565b82818337600083830152505050565b600061295c61295784612909565b6128ee565b90508281526020810184848401111561297857612977612889565b5b61298384828561293a565b509392505050565b600082601f8301126129a05761299f612884565b5b81356129b0848260208601612949565b91505092915050565b600080600080608085870312156129d3576129d2612251565b5b60006129e18782880161249d565b94505060206129f28782880161249d565b9350506040612a03878288016123e8565b925050606085013567ffffffffffffffff811115612a2457612a23612256565b5b612a308782880161298b565b91505092959194509250565b60008060408385031215612a5357612a52612251565b5b6000612a618582860161249d565b9250506020612a728582860161249d565b9150509250929050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b60006002820490506001821680612ac357607f821691505b602082108103612ad657612ad5612a7c565b5b50919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b6000612b4582612213565b9150612b5083612213565b925082612b6057612b5f612adc565b5b828204905092915050565b6000612b7682612213565b9150612b8183612213565b9250817fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0483118215151615612bba57612bb9612b0b565b5b828202905092915050565b6000612bd082612213565b9150612bdb83612213565b925082612beb57612bea612adc565b5b828206905092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b7f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160008201527f6464726573730000000000000000000000000000000000000000000000000000602082015250565b6000612c81602683612321565b9150612c8c82612c25565b604082019050919050565b60006020820190508181036000830152612cb081612c74565b9050919050565b7f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572600082015250565b6000612ced602083612321565b9150612cf882612cb7565b602082019050919050565b60006020820190508181036000830152612d1c81612ce0565b9050919050565b600081519050919050565b600082825260208201905092915050565b6000612d4a82612d23565b612d548185612d2e565b9350612d64818560208601612332565b612d6d81612365565b840191505092915050565b6000608082019050612d8d600083018761245c565b612d9a602083018661245c565b612da7604083018561221d565b8181036060830152612db98184612d3f565b905095945050505050565b600081519050612dd381612287565b92915050565b600060208284031215612def57612dee612251565b5b6000612dfd84828501612dc4565b91505092915050565b6000612e1182612545565b9150612e1c83612545565b92508267ffffffffffffffff03821115612e3957612e38612b0b565b5b82820190509291505056fe697066733a2f2f6261666b72656968787079696e356b75713474367377786a7a627875677669757070657264746d7969696d6b7a64726b636f336e656f357a713379a2646970667358221220903d89f166cc49e00ca4f5d526271df3d341d72aa4356893d9a409a42f6dae4264736f6c634300080f0033000000000000000000000000000000000000000000000000000000006320286c000000000000000000000000000000000000000000000000000000000000006000000000000000000000000086d80d18890f694dc75e78703360085140fa51fd000000000000000000000000000000000000000000000000000000000000000c000000000000000000000000000000000000000000000000000000000000018000000000000000000000000000000000000000000000000000000000000001e0000000000000000000000000000000000000000000000000000000000000024000000000000000000000000000000000000000000000000000000000000002a0000000000000000000000000000000000000000000000000000000000000032000000000000000000000000000000000000000000000000000000000000003a0000000000000000000000000000000000000000000000000000000000000042000000000000000000000000000000000000000000000000000000000000004a0000000000000000000000000000000000000000000000000000000000000052000000000000000000000000000000000000000000000000000000000000005a0000000000000000000000000000000000000000000000000000000000000062000000000000000000000000000000000000000000000000000000000000006a0000000000000000000000000000000000000000000000000000000000000003a697066733a2f2f516d6239583779426b35694b7a676e53357066416652654654384656614c636637634a4778785546577a524d796b2f34353232000000000000000000000000000000000000000000000000000000000000000000000000003a697066733a2f2f516d6239583779426b35694b7a676e53357066416652654654384656614c636637634a4778785546577a524d796b2f34363832000000000000000000000000000000000000000000000000000000000000000000000000003a697066733a2f2f516d6239583779426b35694b7a676e53357066416652654654384656614c636637634a4778785546577a524d796b2f343639360000000000000000000000000000000000000000000000000000000000000000000000000042697066733a2f2f6261666b726569677a7667346f626675667a376a716e647a783436776177687079796c626b687135746a733236356d33616965786b7177777878340000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000042697066733a2f2f6261666b7265696266656c6671746663727663746b79626c6570776a367967626132773533336b6364726a6a66666871787a6d7468336270616b750000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000042697066733a2f2f6261666b726569626e757a7a70637737366178766a7977616e79733673757a6e3567726e7969716c6934737937706e7972666c6a74737735746c340000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000042697066733a2f2f6261666b726569686b36327a6e3535726d6974726c657a636b6971356b6f3379363764737275737a34756c35366d6f326c6277726c3268653778750000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000042697066733a2f2f6261666b726569666c7078373664666f347073753377677464787a336b6b71796e6c34626936747968637032746734367a70787673636733647a650000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000042697066733a2f2f6261666b726569646272696d6b346c377237636b3270756a3764637a7962327036643676716663726a62726a6c32646d63773670617a6f6f3464710000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000042697066733a2f2f6261666b72656961727168343276697565626d6979376a6a757a6b7278696c68756b336d6f67347674337a706b3464796762376a677a36376b78750000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000042697066733a2f2f6261666b726569656e6d69696364347a707a7867766b6870726d7a627635723573736d72326b363672376d69736e756168726f787562786836696d0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000042697066733a2f2f6261666b726569666b743570746437686f69616d63677371356c6733327a7367676671716670656a6a746b7a6f7662796c6d7a717a74796a647a65000000000000000000000000000000000000000000000000000000000000
Deployed Bytecode
0x6080604052600436106101fd5760003560e01c806370a082311161010d578063a22cb465116100a0578063e985e9c51161006f578063e985e9c514610758578063ec9b5cb214610795578063efef39a1146107c0578063f2fde38b146107f0578063f92e79951461081957610252565b8063a22cb4651461069e578063b88d4fde146106c7578063c87b56dd146106f0578063e8a3d4851461072d57610252565b806391b7f5ed116100dc57806391b7f5ed146105f457806395d89b411461061d5780639cdbe5ad14610648578063a035b1fe1461067357610252565b806370a0823114610538578063715018a6146105755780638da5cb5b1461058c57806390a2d678146105b757610252565b80633ccfd60b11610190578063603a552e1161015f578063603a552e146104635780636352211e1461048e57806366659465146104cb5780636bc1fb53146104e25780636c2bc0581461050d57610252565b80633ccfd60b146103cf57806342842e0e146103e6578063519ea94e1461040f5780635865db6c1461043857610252565b806318160ddd116101cc57806318160ddd1461032557806323b872dd146103505780633360caa0146103795780633474a4a6146103a457610252565b806301ffc9a71461025757806306fdde0314610294578063081812fc146102bf578063095ea7b3146102fc57610252565b36610252573373ffffffffffffffffffffffffffffffffffffffff167f8e47b87b0ef542cdfa1659c551d88bad38aa7f452d2bbb349ab7530dfec8be8f34604051610248919061222c565b60405180910390a2005b600080fd5b34801561026357600080fd5b5061027e600480360381019061027991906122b3565b610844565b60405161028b91906122fb565b60405180910390f35b3480156102a057600080fd5b506102a96108d6565b6040516102b691906123af565b60405180910390f35b3480156102cb57600080fd5b506102e660048036038101906102e191906123fd565b610968565b6040516102f3919061246b565b60405180910390f35b34801561030857600080fd5b50610323600480360381019061031e91906124b2565b6109e7565b005b34801561033157600080fd5b5061033a610b2b565b604051610347919061222c565b60405180910390f35b34801561035c57600080fd5b50610377600480360381019061037291906124f2565b610b42565b005b34801561038557600080fd5b5061038e610e64565b60405161039b9190612568565b60405180910390f35b3480156103b057600080fd5b506103b9610e7e565b6040516103c691906126aa565b60405180910390f35b3480156103db57600080fd5b506103e4610f49565b005b3480156103f257600080fd5b5061040d600480360381019061040891906124f2565b6110f9565b005b34801561041b57600080fd5b50610436600480360381019061043191906126f2565b611119565b005b34801561044457600080fd5b5061044d61116b565b60405161045a9190612740565b60405180910390f35b34801561046f57600080fd5b50610478611183565b6040516104859190612740565b60405180910390f35b34801561049a57600080fd5b506104b560048036038101906104b091906123fd565b61119b565b6040516104c2919061246b565b60405180910390f35b3480156104d757600080fd5b506104e06111ad565b005b3480156104ee57600080fd5b506104f761122f565b60405161050491906122fb565b60405180910390f35b34801561051957600080fd5b5061052261124d565b60405161052f9190612777565b60405180910390f35b34801561054457600080fd5b5061055f600480360381019061055a9190612792565b611264565b60405161056c919061222c565b60405180910390f35b34801561058157600080fd5b5061058a61131c565b005b34801561059857600080fd5b506105a1611330565b6040516105ae919061246b565b60405180910390f35b3480156105c357600080fd5b506105de60048036038101906105d991906127eb565b61135a565b6040516105eb91906123af565b60405180910390f35b34801561060057600080fd5b5061061b600480360381019061061691906123fd565b61140d565b005b34801561062957600080fd5b50610632611421565b60405161063f91906123af565b60405180910390f35b34801561065457600080fd5b5061065d6114b3565b60405161066a9190612740565b60405180910390f35b34801561067f57600080fd5b506106886114d7565b604051610695919061222c565b60405180910390f35b3480156106aa57600080fd5b506106c560048036038101906106c09190612844565b6114e1565b005b3480156106d357600080fd5b506106ee60048036038101906106e991906129b9565b611658565b005b3480156106fc57600080fd5b50610717600480360381019061071291906123fd565b6116cb565b60405161072491906123af565b60405180910390f35b34801561073957600080fd5b50610742611729565b60405161074f91906123af565b60405180910390f35b34801561076457600080fd5b5061077f600480360381019061077a9190612a3c565b611749565b60405161078c91906122fb565b60405180910390f35b3480156107a157600080fd5b506107aa6117dd565b6040516107b79190612568565b60405180910390f35b6107da60048036038101906107d591906123fd565b6117f7565b6040516107e7919061222c565b60405180910390f35b3480156107fc57600080fd5b5061081760048036038101906108129190612792565b6118b5565b005b34801561082557600080fd5b5061082e611938565b60405161083b9190612740565b60405180910390f35b60006301ffc9a760e01b827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916148061089f57506380ac58cd60e01b827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b806108cf5750635b5e139f60e01b827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b9050919050565b6060600380546108e590612aab565b80601f016020809104026020016040519081016040528092919081815260200182805461091190612aab565b801561095e5780601f106109335761010080835404028352916020019161095e565b820191906000526020600020905b81548152906001019060200180831161094157829003601f168201915b5050505050905090565b600061097382611950565b6109a9576040517fcf4700e400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6007600083815260200190815260200160002060000160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050919050565b60006109f28261119b565b90508073ffffffffffffffffffffffffffffffffffffffff16610a136119af565b73ffffffffffffffffffffffffffffffffffffffff1614610a7657610a3f81610a3a6119af565b611749565b610a75576040517fcfb3b94200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5b826007600084815260200190815260200160002060000160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550818373ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a4505050565b6000610b356119b7565b6002546001540303905090565b6000610b4d826119c0565b90508373ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1614610bb4576040517fa114810000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600080610bc084611a8c565b91509150610bd68187610bd16119af565b611ab3565b610c2257610beb86610be66119af565b611749565b610c21576040517f59c896be00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5b600073ffffffffffffffffffffffffffffffffffffffff168573ffffffffffffffffffffffffffffffffffffffff1603610c88576040517fea553b3400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b610c958686866001611af7565b8015610ca057600082555b600660008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600081546001900391905081905550600660008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000815460010191905081905550610d6e85610d4a888887611afd565b7c020000000000000000000000000000000000000000000000000000000017611b25565b600560008681526020019081526020016000208190555060007c0200000000000000000000000000000000000000000000000000000000841603610df45760006001850190506000600560008381526020019081526020016000205403610df2576001548114610df1578360056000838152602001908152602001600020819055505b5b505b838573ffffffffffffffffffffffffffffffffffffffff168773ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a4610e5c8686866001611b50565b505050505050565b600b60009054906101000a900467ffffffffffffffff1681565b610e8661218a565b604051806101600160405280610e9a611b56565b15158152602001600015158152602001600a548152602001600b60009054906101000a900467ffffffffffffffff1667ffffffffffffffff168152602001600b60089054906101000a900467ffffffffffffffff1667ffffffffffffffff168152602001600067ffffffffffffffff168152602001600067ffffffffffffffff1681526020016000801b815260200160008152602001610f38611bac565b8152602001620f4240815250905090565b600047905073f29ff96aaea6c9a1fba851f74737f3c069d4f1a973ffffffffffffffffffffffffffffffffffffffff166108fc600483610f899190612b3a565b9081150290604051600060405180830381858888f19350505050158015610fb4573d6000803e3d6000fd5b50732a2c412c440dfb0e7cae46eff581e3e26afd1cd073ffffffffffffffffffffffffffffffffffffffff166108fc6014600984610ff29190612b6b565b610ffc9190612b3a565b9081150290604051600060405180830381858888f19350505050158015611027573d6000803e3d6000fd5b5073cfbf34d385ea2d5eb947063b67ea226dcda3dc3873ffffffffffffffffffffffffffffffffffffffff166108fc6014836110639190612b3a565b9081150290604051600060405180830381858888f1935050505015801561108e573d6000803e3d6000fd5b507f00000000000000000000000086d80d18890f694dc75e78703360085140fa51fd73ffffffffffffffffffffffffffffffffffffffff166108fc479081150290604051600060405180830381858888f193505050501580156110f5573d6000803e3d6000fd5b5050565b61111483838360405180602001604052806000815250611658565b505050565b611121611b56565b611157576040517ff12dcc7f00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b61115f611bbf565b61116881611c3d565b50565b732a2c412c440dfb0e7cae46eff581e3e26afd1cd081565b73cfbf34d385ea2d5eb947063b67ea226dcda3dc3881565b60006111a6826119c0565b9050919050565b7f00000000000000000000000086d80d18890f694dc75e78703360085140fa51fd73ffffffffffffffffffffffffffffffffffffffff16633ccfd60b6040518163ffffffff1660e01b8152600401600060405180830381600087803b15801561121557600080fd5b505af1158015611229573d6000803e3d6000fd5b50505050565b60006801000000000000000068ffffffffffffffffff164411905090565b600080805490504261125f9190612bc5565b905090565b60008073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff16036112cb576040517f8f4eb60400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b67ffffffffffffffff600660008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054169050919050565b611324611bbf565b61132e6000611c69565b565b6000600960009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b606060008260ff168154811061137357611372612bf6565b5b90600052602060002001805461138890612aab565b80601f01602080910402602001604051908101604052809291908181526020018280546113b490612aab565b80156114015780601f106113d657610100808354040283529160200191611401565b820191906000526020600020905b8154815290600101906020018083116113e457829003601f168201915b50505050509050919050565b611415611bbf565b61141e81611d2f565b50565b60606004805461143090612aab565b80601f016020809104026020016040519081016040528092919081815260200182805461145c90612aab565b80156114a95780601f1061147e576101008083540402835291602001916114a9565b820191906000526020600020905b81548152906001019060200180831161148c57829003601f168201915b5050505050905090565b7f00000000000000000000000086d80d18890f694dc75e78703360085140fa51fd81565b6000600a54905090565b6114e96119af565b73ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff160361154d576040517fb06307db00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b806008600061155a6119af565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055508173ffffffffffffffffffffffffffffffffffffffff166116076119af565b73ffffffffffffffffffffffffffffffffffffffff167f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c318360405161164c91906122fb565b60405180910390a35050565b611663848484610b42565b60008373ffffffffffffffffffffffffffffffffffffffff163b146116c55761168e84848484611d39565b6116c4576040517fd1a57ed600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5b50505050565b60606116d682611950565b61170c576040517fa14c4b5000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600061171661124d565b90506117218161135a565b915050919050565b6060604051806080016040528060428152602001612e4560429139905090565b6000600860008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16905092915050565b600b60089054906101000a900467ffffffffffffffff1681565b6000611801611b56565b611837576040517ff12dcc7f00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600a548280826118479190612b6b565b34146118955780826118599190612b6b565b6040517f6a1c179e00000000000000000000000000000000000000000000000000000000815260040161188c919061222c565b60405180910390fd5b61189d611e89565b60006118a885611ee6565b9050809350505050919050565b6118bd611bbf565b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff160361192c576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161192390612c97565b60405180910390fd5b61193581611c69565b50565b73f29ff96aaea6c9a1fba851f74737f3c069d4f1a981565b60008161195b6119b7565b1115801561196a575060015482105b80156119a8575060007c0100000000000000000000000000000000000000000000000000000000600560008581526020019081526020016000205416145b9050919050565b600033905090565b60006001905090565b600080829050806119cf6119b7565b11611a5557600154811015611a545760006005600083815260200190815260200160002054905060007c0100000000000000000000000000000000000000000000000000000000821603611a52575b60008103611a48576005600083600190039350838152602001908152602001600020549050611a1e565b8092505050611a87565b505b5b6040517fdf2d9b4200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b919050565b60008060006007600085815260200190815260200160002090508092508254915050915091565b600073ffffffffffffffffffffffffffffffffffffffff8316925073ffffffffffffffffffffffffffffffffffffffff821691508382148383141790509392505050565b50505050565b60008060e883901c905060e8611b14868684611f58565b62ffffff16901b9150509392505050565b600073ffffffffffffffffffffffffffffffffffffffff83169250814260a01b178317905092915050565b50505050565b600042600b60009054906101000a900467ffffffffffffffff1667ffffffffffffffff1611158015611ba7575042600b60089054906101000a900467ffffffffffffffff1667ffffffffffffffff16115b905090565b6000611bb66119b7565b60015403905090565b611bc7611f61565b73ffffffffffffffffffffffffffffffffffffffff16611be5611330565b73ffffffffffffffffffffffffffffffffffffffff1614611c3b576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611c3290612d03565b60405180910390fd5b565b80600b60086101000a81548167ffffffffffffffff021916908367ffffffffffffffff16021790555050565b6000600960009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905081600960006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b80600a8190555050565b60008373ffffffffffffffffffffffffffffffffffffffff1663150b7a02611d5f6119af565b8786866040518563ffffffff1660e01b8152600401611d819493929190612d78565b6020604051808303816000875af1925050508015611dbd57506040513d601f19601f82011682018060405250810190611dba9190612dd9565b60015b611e36573d8060008114611ded576040519150601f19603f3d011682016040523d82523d6000602084013e611df2565b606091505b506000815103611e2e576040517fd1a57ed600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b805181602001fd5b63150b7a0260e01b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916817bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614915050949350505050565b611e9161122f565b15611ee4576000620f42407f000000000000000000000000000000000000000000000c70d808a128d7380000611ec79190612b3a565b9050600081600a541490508015611ee157611ee0611f69565b5b50505b565b600080611ef1611fb4565b9050611efd3384611fbe565b600a54833373ffffffffffffffffffffffffffffffffffffffff167f4e26b0356a15833a75d497ecc40ebbb716b99466ed0dba9454f1fff451e25a9084604051611f47919061222c565b60405180910390a480915050919050565b60009392505050565b600033905090565b60006402540be4009050611f878143611f829190612b6b565b611d2f565b611fb1600b60109054906101000a900467ffffffffffffffff1642611fac9190612e06565b611c3d565b50565b6000600154905090565b6000600154905060008203611fff576040517fb562e8dd00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b61200c6000848385611af7565b600160406001901b178202600660008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008282540192505081905550612083836120746000866000611afd565b61207d8561217a565b17611b25565b6005600083815260200190815260200160002081905550600080838301905073ffffffffffffffffffffffffffffffffffffffff85169150828260007fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef600080a4600183015b81811461212457808360007fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef600080a46001810190506120e9565b506000820361215f576040517f2e07630000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b8060018190555050506121756000848385611b50565b505050565b60006001821460e11b9050919050565b60405180610160016040528060001515815260200160001515815260200160008152602001600067ffffffffffffffff168152602001600067ffffffffffffffff168152602001600067ffffffffffffffff168152602001600067ffffffffffffffff168152602001600080191681526020016000815260200160008152602001600081525090565b6000819050919050565b61222681612213565b82525050565b6000602082019050612241600083018461221d565b92915050565b6000604051905090565b600080fd5b600080fd5b60007fffffffff0000000000000000000000000000000000000000000000000000000082169050919050565b6122908161225b565b811461229b57600080fd5b50565b6000813590506122ad81612287565b92915050565b6000602082840312156122c9576122c8612251565b5b60006122d78482850161229e565b91505092915050565b60008115159050919050565b6122f5816122e0565b82525050565b600060208201905061231060008301846122ec565b92915050565b600081519050919050565b600082825260208201905092915050565b60005b83811015612350578082015181840152602081019050612335565b8381111561235f576000848401525b50505050565b6000601f19601f8301169050919050565b600061238182612316565b61238b8185612321565b935061239b818560208601612332565b6123a481612365565b840191505092915050565b600060208201905081810360008301526123c98184612376565b905092915050565b6123da81612213565b81146123e557600080fd5b50565b6000813590506123f7816123d1565b92915050565b60006020828403121561241357612412612251565b5b6000612421848285016123e8565b91505092915050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b60006124558261242a565b9050919050565b6124658161244a565b82525050565b6000602082019050612480600083018461245c565b92915050565b61248f8161244a565b811461249a57600080fd5b50565b6000813590506124ac81612486565b92915050565b600080604083850312156124c9576124c8612251565b5b60006124d78582860161249d565b92505060206124e8858286016123e8565b9150509250929050565b60008060006060848603121561250b5761250a612251565b5b60006125198682870161249d565b935050602061252a8682870161249d565b925050604061253b868287016123e8565b9150509250925092565b600067ffffffffffffffff82169050919050565b61256281612545565b82525050565b600060208201905061257d6000830184612559565b92915050565b61258c816122e0565b82525050565b61259b81612213565b82525050565b6125aa81612545565b82525050565b6000819050919050565b6125c3816125b0565b82525050565b610160820160008201516125e06000850182612583565b5060208201516125f36020850182612583565b5060408201516126066040850182612592565b50606082015161261960608501826125a1565b50608082015161262c60808501826125a1565b5060a082015161263f60a08501826125a1565b5060c082015161265260c08501826125a1565b5060e082015161266560e08501826125ba565b5061010082015161267a610100850182612592565b5061012082015161268f610120850182612592565b506101408201516126a4610140850182612592565b50505050565b6000610160820190506126c060008301846125c9565b92915050565b6126cf81612545565b81146126da57600080fd5b50565b6000813590506126ec816126c6565b92915050565b60006020828403121561270857612707612251565b5b6000612716848285016126dd565b91505092915050565b600061272a8261242a565b9050919050565b61273a8161271f565b82525050565b60006020820190506127556000830184612731565b92915050565b600060ff82169050919050565b6127718161275b565b82525050565b600060208201905061278c6000830184612768565b92915050565b6000602082840312156127a8576127a7612251565b5b60006127b68482850161249d565b91505092915050565b6127c88161275b565b81146127d357600080fd5b50565b6000813590506127e5816127bf565b92915050565b60006020828403121561280157612800612251565b5b600061280f848285016127d6565b91505092915050565b612821816122e0565b811461282c57600080fd5b50565b60008135905061283e81612818565b92915050565b6000806040838503121561285b5761285a612251565b5b60006128698582860161249d565b925050602061287a8582860161282f565b9150509250929050565b600080fd5b600080fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b6128c682612365565b810181811067ffffffffffffffff821117156128e5576128e461288e565b5b80604052505050565b60006128f8612247565b905061290482826128bd565b919050565b600067ffffffffffffffff8211156129245761292361288e565b5b61292d82612365565b9050602081019050919050565b82818337600083830152505050565b600061295c61295784612909565b6128ee565b90508281526020810184848401111561297857612977612889565b5b61298384828561293a565b509392505050565b600082601f8301126129a05761299f612884565b5b81356129b0848260208601612949565b91505092915050565b600080600080608085870312156129d3576129d2612251565b5b60006129e18782880161249d565b94505060206129f28782880161249d565b9350506040612a03878288016123e8565b925050606085013567ffffffffffffffff811115612a2457612a23612256565b5b612a308782880161298b565b91505092959194509250565b60008060408385031215612a5357612a52612251565b5b6000612a618582860161249d565b9250506020612a728582860161249d565b9150509250929050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b60006002820490506001821680612ac357607f821691505b602082108103612ad657612ad5612a7c565b5b50919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b6000612b4582612213565b9150612b5083612213565b925082612b6057612b5f612adc565b5b828204905092915050565b6000612b7682612213565b9150612b8183612213565b9250817fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0483118215151615612bba57612bb9612b0b565b5b828202905092915050565b6000612bd082612213565b9150612bdb83612213565b925082612beb57612bea612adc565b5b828206905092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b7f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160008201527f6464726573730000000000000000000000000000000000000000000000000000602082015250565b6000612c81602683612321565b9150612c8c82612c25565b604082019050919050565b60006020820190508181036000830152612cb081612c74565b9050919050565b7f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572600082015250565b6000612ced602083612321565b9150612cf882612cb7565b602082019050919050565b60006020820190508181036000830152612d1c81612ce0565b9050919050565b600081519050919050565b600082825260208201905092915050565b6000612d4a82612d23565b612d548185612d2e565b9350612d64818560208601612332565b612d6d81612365565b840191505092915050565b6000608082019050612d8d600083018761245c565b612d9a602083018661245c565b612da7604083018561221d565b8181036060830152612db98184612d3f565b905095945050505050565b600081519050612dd381612287565b92915050565b600060208284031215612def57612dee612251565b5b6000612dfd84828501612dc4565b91505092915050565b6000612e1182612545565b9150612e1c83612545565b92508267ffffffffffffffff03821115612e3957612e38612b0b565b5b82820190509291505056fe697066733a2f2f6261666b72656968787079696e356b75713474367377786a7a627875677669757070657264746d7969696d6b7a64726b636f336e656f357a713379a2646970667358221220903d89f166cc49e00ca4f5d526271df3d341d72aa4356893d9a409a42f6dae4264736f6c634300080f0033
Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)
000000000000000000000000000000000000000000000000000000006320286c000000000000000000000000000000000000000000000000000000000000006000000000000000000000000086d80d18890f694dc75e78703360085140fa51fd000000000000000000000000000000000000000000000000000000000000000c000000000000000000000000000000000000000000000000000000000000018000000000000000000000000000000000000000000000000000000000000001e0000000000000000000000000000000000000000000000000000000000000024000000000000000000000000000000000000000000000000000000000000002a0000000000000000000000000000000000000000000000000000000000000032000000000000000000000000000000000000000000000000000000000000003a0000000000000000000000000000000000000000000000000000000000000042000000000000000000000000000000000000000000000000000000000000004a0000000000000000000000000000000000000000000000000000000000000052000000000000000000000000000000000000000000000000000000000000005a0000000000000000000000000000000000000000000000000000000000000062000000000000000000000000000000000000000000000000000000000000006a0000000000000000000000000000000000000000000000000000000000000003a697066733a2f2f516d6239583779426b35694b7a676e53357066416652654654384656614c636637634a4778785546577a524d796b2f34353232000000000000000000000000000000000000000000000000000000000000000000000000003a697066733a2f2f516d6239583779426b35694b7a676e53357066416652654654384656614c636637634a4778785546577a524d796b2f34363832000000000000000000000000000000000000000000000000000000000000000000000000003a697066733a2f2f516d6239583779426b35694b7a676e53357066416652654654384656614c636637634a4778785546577a524d796b2f343639360000000000000000000000000000000000000000000000000000000000000000000000000042697066733a2f2f6261666b726569677a7667346f626675667a376a716e647a783436776177687079796c626b687135746a733236356d33616965786b7177777878340000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000042697066733a2f2f6261666b7265696266656c6671746663727663746b79626c6570776a367967626132773533336b6364726a6a66666871787a6d7468336270616b750000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000042697066733a2f2f6261666b726569626e757a7a70637737366178766a7977616e79733673757a6e3567726e7969716c6934737937706e7972666c6a74737735746c340000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000042697066733a2f2f6261666b726569686b36327a6e3535726d6974726c657a636b6971356b6f3379363764737275737a34756c35366d6f326c6277726c3268653778750000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000042697066733a2f2f6261666b726569666c7078373664666f347073753377677464787a336b6b71796e6c34626936747968637032746734367a70787673636733647a650000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000042697066733a2f2f6261666b726569646272696d6b346c377237636b3270756a3764637a7962327036643676716663726a62726a6c32646d63773670617a6f6f3464710000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000042697066733a2f2f6261666b72656961727168343276697565626d6979376a6a757a6b7278696c68756b336d6f67347674337a706b3464796762376a677a36376b78750000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000042697066733a2f2f6261666b726569656e6d69696364347a707a7867766b6870726d7a627635723573736d72326b363672376d69736e756168726f787562786836696d0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000042697066733a2f2f6261666b726569666b743570746437686f69616d63677371356c6733327a7367676671716670656a6a746b7a6f7662796c6d7a717a74796a647a65000000000000000000000000000000000000000000000000000000000000
-----Decoded View---------------
Arg [0] : _publicSaleStart (uint64): 1663051884
Arg [1] : _musicMetadata (string[]): ipfs://Qmb9X7yBk5iKzgnS5pfAfReFT8FVaLcf7cJGxxUFWzRMyk/4522,ipfs://Qmb9X7yBk5iKzgnS5pfAfReFT8FVaLcf7cJGxxUFWzRMyk/4682,ipfs://Qmb9X7yBk5iKzgnS5pfAfReFT8FVaLcf7cJGxxUFWzRMyk/4696,ipfs://bafkreigzvg4obfufz7jqndzx46wawhpyylbkhq5tjs265m3aiexkqwwxx4,ipfs://bafkreibfelfqtfcrvctkyblepwj6ygba2w533kcdrjjffhqxzmth3bpaku,ipfs://bafkreibnuzzpcw76axvjywanys6suzn5grnyiqli4sy7pnyrfljtsw5tl4,ipfs://bafkreihk62zn55rmitrlezckiq5ko3y67dsrusz4ul56mo2lbwrl2he7xu,ipfs://bafkreiflpx76dfo4psu3wgtdxz3kkqynl4bi6tyhcp2tg46zpxvscg3dze,ipfs://bafkreidbrimk4l7r7ck2puj7dczyb2p6d6vqfcrjbrjl2dmcw6pazoo4dq,ipfs://bafkreiarqh42viuebmiy7jjuzkrxilhuk3mog4vt3zpk4dygb7jgz67kxu,ipfs://bafkreienmiicd4zpzxgvkhprmzbv5r5ssmr2k66r7misnuahroxubxh6im,ipfs://bafkreifkt5ptd7hoiamcgsq5lg32zsggfqqfpejjtkzovbylmzqztyjdze
Arg [2] : _liquidSplit (address): 0x86d80d18890F694dC75e78703360085140Fa51Fd
-----Encoded View---------------
61 Constructor Arguments found :
Arg [0] : 000000000000000000000000000000000000000000000000000000006320286c
Arg [1] : 0000000000000000000000000000000000000000000000000000000000000060
Arg [2] : 00000000000000000000000086d80d18890f694dc75e78703360085140fa51fd
Arg [3] : 000000000000000000000000000000000000000000000000000000000000000c
Arg [4] : 0000000000000000000000000000000000000000000000000000000000000180
Arg [5] : 00000000000000000000000000000000000000000000000000000000000001e0
Arg [6] : 0000000000000000000000000000000000000000000000000000000000000240
Arg [7] : 00000000000000000000000000000000000000000000000000000000000002a0
Arg [8] : 0000000000000000000000000000000000000000000000000000000000000320
Arg [9] : 00000000000000000000000000000000000000000000000000000000000003a0
Arg [10] : 0000000000000000000000000000000000000000000000000000000000000420
Arg [11] : 00000000000000000000000000000000000000000000000000000000000004a0
Arg [12] : 0000000000000000000000000000000000000000000000000000000000000520
Arg [13] : 00000000000000000000000000000000000000000000000000000000000005a0
Arg [14] : 0000000000000000000000000000000000000000000000000000000000000620
Arg [15] : 00000000000000000000000000000000000000000000000000000000000006a0
Arg [16] : 000000000000000000000000000000000000000000000000000000000000003a
Arg [17] : 697066733a2f2f516d6239583779426b35694b7a676e53357066416652654654
Arg [18] : 384656614c636637634a4778785546577a524d796b2f34353232000000000000
Arg [19] : 000000000000000000000000000000000000000000000000000000000000003a
Arg [20] : 697066733a2f2f516d6239583779426b35694b7a676e53357066416652654654
Arg [21] : 384656614c636637634a4778785546577a524d796b2f34363832000000000000
Arg [22] : 000000000000000000000000000000000000000000000000000000000000003a
Arg [23] : 697066733a2f2f516d6239583779426b35694b7a676e53357066416652654654
Arg [24] : 384656614c636637634a4778785546577a524d796b2f34363936000000000000
Arg [25] : 0000000000000000000000000000000000000000000000000000000000000042
Arg [26] : 697066733a2f2f6261666b726569677a7667346f626675667a376a716e647a78
Arg [27] : 3436776177687079796c626b687135746a733236356d33616965786b71777778
Arg [28] : 7834000000000000000000000000000000000000000000000000000000000000
Arg [29] : 0000000000000000000000000000000000000000000000000000000000000042
Arg [30] : 697066733a2f2f6261666b7265696266656c6671746663727663746b79626c65
Arg [31] : 70776a367967626132773533336b6364726a6a66666871787a6d746833627061
Arg [32] : 6b75000000000000000000000000000000000000000000000000000000000000
Arg [33] : 0000000000000000000000000000000000000000000000000000000000000042
Arg [34] : 697066733a2f2f6261666b726569626e757a7a70637737366178766a7977616e
Arg [35] : 79733673757a6e3567726e7969716c6934737937706e7972666c6a7473773574
Arg [36] : 6c34000000000000000000000000000000000000000000000000000000000000
Arg [37] : 0000000000000000000000000000000000000000000000000000000000000042
Arg [38] : 697066733a2f2f6261666b726569686b36327a6e3535726d6974726c657a636b
Arg [39] : 6971356b6f3379363764737275737a34756c35366d6f326c6277726c32686537
Arg [40] : 7875000000000000000000000000000000000000000000000000000000000000
Arg [41] : 0000000000000000000000000000000000000000000000000000000000000042
Arg [42] : 697066733a2f2f6261666b726569666c7078373664666f347073753377677464
Arg [43] : 787a336b6b71796e6c34626936747968637032746734367a7078767363673364
Arg [44] : 7a65000000000000000000000000000000000000000000000000000000000000
Arg [45] : 0000000000000000000000000000000000000000000000000000000000000042
Arg [46] : 697066733a2f2f6261666b726569646272696d6b346c377237636b3270756a37
Arg [47] : 64637a7962327036643676716663726a62726a6c32646d63773670617a6f6f34
Arg [48] : 6471000000000000000000000000000000000000000000000000000000000000
Arg [49] : 0000000000000000000000000000000000000000000000000000000000000042
Arg [50] : 697066733a2f2f6261666b72656961727168343276697565626d6979376a6a75
Arg [51] : 7a6b7278696c68756b336d6f67347674337a706b3464796762376a677a36376b
Arg [52] : 7875000000000000000000000000000000000000000000000000000000000000
Arg [53] : 0000000000000000000000000000000000000000000000000000000000000042
Arg [54] : 697066733a2f2f6261666b726569656e6d69696364347a707a7867766b687072
Arg [55] : 6d7a627635723573736d72326b363672376d69736e756168726f787562786836
Arg [56] : 696d000000000000000000000000000000000000000000000000000000000000
Arg [57] : 0000000000000000000000000000000000000000000000000000000000000042
Arg [58] : 697066733a2f2f6261666b726569666b743570746437686f69616d6367737135
Arg [59] : 6c6733327a7367676671716670656a6a746b7a6f7662796c6d7a717a74796a64
Arg [60] : 7a65000000000000000000000000000000000000000000000000000000000000
Loading...
Loading
Loading...
Loading
[ Download: CSV Export ]
A token is a representation of an on-chain or off-chain asset. The token page shows information such as price, total supply, holders, transfers and social links. Learn more about this page in our Knowledge Base.