Feature Tip: Add private address tag to any address under My Name Tag !
ERC-721
Overview
Max Total Supply
1,000 SURVIVOR-SERIES-2
Holders
193
Market
Volume (24H)
N/A
Min Price (24H)
N/A
Max Price (24H)
N/A
Other Info
Token Contract
Balance
2 SURVIVOR-SERIES-2Loading...
Loading
Loading...
Loading
Loading...
Loading
# | Exchange | Pair | Price | 24H Volume | % Volume |
---|
Contract Name:
SurvivorSeries2
Compiler Version
v0.8.17+commit.8df45f5f
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.9; import { ReentrancyGuard } from "@openzeppelin/contracts/security/ReentrancyGuard.sol"; import { SafeTransferLib } from "solmate/src/utils/SafeTransferLib.sol"; import { CometDrop } from "../extensions/CometDrop.sol"; interface ERC721 { function balanceOf(address _owner) external view returns (uint256); } interface RandomNumberGenerator { function requestRandomWords( address partnerContract, uint32 totalEntries, uint32 totalSelections, string calldata title ) external; function getSender() external view returns (address); } contract SurvivorSeries2 is CometDrop, ReentrancyGuard { /** * @notice A struct defining the token receiver. * * @param to The address to receive the token. * @param tokenId The token ID. */ struct TokenReceiver { address to; uint256 tokenId; } struct PhaseConfig { uint256 phaseIndex; uint256 minQuantity; uint256 price; uint256 startTime; uint256 endTime; bool isPublic; } /// @notice The Crossmint admin for credit card processing. address private _crossmintAdmin; /// @notice The VRF admin for VRF. address private _vrfAdmin; /// @notice The partner contract address. address private _vrfCoordinatorAddress; /// @notice If we want to override the current phase index. uint256 private _currentPhaseOverride; /// @notice the available phase indexes. uint256[] private _phaseArray; /// @notice The partner contract. ERC721 private _partnerContract; /// @notice The random number generator contract. RandomNumberGenerator private _randomNumberGenerator; mapping(uint256 => PhaseConfig) private _phases; event CrossmintAdministratorUpdated(address wallet); event PartnerContractUpdated(address contractAddress); event VRFAdministratorUpdated(address newWallet); event VRFCoordinatorUpdated(address contractAddress); error NewAdministratorIsZeroAddress(); error OnlyCrossmintAdministrator(); error AccessMintNotAllowed(uint256 balance, uint256 required); error PublicSaleNotActive(); error SaleNotActive(); modifier onlyCrossmintAdministrator() virtual { if (msg.sender != _crossmintAdmin) { revert OnlyCrossmintAdministrator(); } _; } modifier onlyOwnerOrVRFAdministrator() virtual { if (msg.sender != owner()) { if (msg.sender != _vrfAdmin) { revert OnlyOwnerOrAdministrator(); } } _; } /** * @notice SurvivorSeries2 constructor. * * @param name The token name. * @param symbol The token symbol. * @param maxSupply The max supply of the token. * @param baseTokenURI The base token URI. * @param contractURI The contract URI. * @param royalties The royalties wallet. * @param crossmintAdmin The Crossmint admin wallet. */ constructor( string memory name, string memory symbol, uint256 maxSupply, string memory baseTokenURI, string memory contractURI, address royalties, address crossmintAdmin ) CometDrop(name, symbol) { // Initial maxSupply _maxSupply = maxSupply; // Initial token base URI _baseTokenURI = baseTokenURI; // Initial contract URI _contractURI = contractURI; // Initial royalties wallet _royalties = royalties; // Initial beneficiary wallet _beneficiary = royalties; // Initial Crossmint admin wallet _crossmintAdmin = crossmintAdmin; } /** * @notice Set the partner contract address. * * @param contractAddress The address of the contract. */ function setPartnerContractAddress( address contractAddress ) external onlyOwner { _partnerContract = ERC721(contractAddress); emit PartnerContractUpdated(contractAddress); } /** * @notice Set the partner contract address. * * @param contractAddress The address of the contract. */ function setVRFCoordinatorAddress( address contractAddress ) external onlyOwner { _vrfCoordinatorAddress = contractAddress; _randomNumberGenerator = RandomNumberGenerator(contractAddress); emit VRFCoordinatorUpdated(contractAddress); } /** * @notice Set the Crossmint administrator. * * @param newCrossmintAdministrator The address of the administrator. */ function setCrossmintAdministrator( address newCrossmintAdministrator ) external onlyOwner { _crossmintAdmin = newCrossmintAdministrator; emit CrossmintAdministratorUpdated(newCrossmintAdministrator); } /** * @notice Set the VRF administrator. * * @param newWallet The address of the administrator. */ function setVRFAdministrator(address newWallet) external onlyOwner { _vrfAdmin = newWallet; emit VRFAdministratorUpdated(newWallet); } function requestRandomWords( address partnerContract, uint32 totalEntries, uint32 totalSelections, string calldata title ) external onlyOwnerOrVRFAdministrator { _randomNumberGenerator.requestRandomWords( partnerContract, totalEntries, totalSelections, title ); } function setPhases( PhaseConfig[] memory phaseConfigs ) external onlyOwnerOrAdministrator { uint256[] memory tempPhaseArray = new uint256[](phaseConfigs.length); for (uint256 i = 0; i < phaseConfigs.length; i++) { PhaseConfig memory config = phaseConfigs[i]; _phases[config.phaseIndex] = config; tempPhaseArray[i] = config.phaseIndex; } _phaseArray = tempPhaseArray; } /** * @notice Update phase config. * * @param config Update a single phase. */ function updatePhase( PhaseConfig memory config ) external onlyOwnerOrAdministrator { _phases[config.phaseIndex] = config; } /** * @notice Get the sender's balance of the access contract. * * @return uint256 The number of owned tokens. */ function getPartnerBalance() public view returns (uint256) { address sender = _msgSender(); return _partnerContract.balanceOf(sender); } /** * @notice Get the current phase of the contract. * * @return PhaseConfig The phase config. */ function getCurrentPhase() public view returns (PhaseConfig memory) { for (uint256 i = 0; i < _phaseArray.length; i++) { PhaseConfig memory config = _phases[i + 1]; if ( block.timestamp >= config.startTime && block.timestamp < config.endTime ) { return config; } } // Default phase if none active return PhaseConfig(0, 1, 0, 0, 0, false); } /** * @notice Get all phases in the config. * * @return PhaseConfig[] The phases. */ function getPhases() public view returns (PhaseConfig[] memory) { uint256[] memory arr = _phaseArray; uint256 n = arr.length; uint256 temp; PhaseConfig[] memory configs = new PhaseConfig[](n); // sort the array by phase index for (uint256 i = 0; i < n - 1; i++) { for (uint256 j = 0; j < n - i - 1; j++) { if (arr[j] > arr[j + 1]) { temp = arr[j]; arr[j] = arr[j + 1]; arr[j + 1] = temp; } } } for (uint256 i = 0; i < n; i++) { configs[i] = _phases[arr[i]]; } return configs; } /** * @notice Mint if user holds access pass. * * @param quantity The quantity to mint. */ function mintAccessPass(uint256 quantity) external payable nonReentrant { address sender = _msgSender(); // Check the ERC721 balance of the sender in the partner contract uint256 partnerBalance = _partnerContract.balanceOf(sender); PhaseConfig memory config = getCurrentPhase(); if (config.phaseIndex == 0) { revert SaleNotActive(); } if (partnerBalance < config.minQuantity) { revert AccessMintNotAllowed(partnerBalance, config.minQuantity); } // Run checks and mint the tokens _checkAndMint(quantity, config.price, sender, msg.value); // Emit event on successful mint emit AccessMint(sender, address(_partnerContract), quantity, msg.value); } /** * @notice Mint public if sale is active. * * @param quantity The quantity to mint. */ function mint(uint256 quantity) external payable nonReentrant { address sender = _msgSender(); PhaseConfig memory config = getCurrentPhase(); if (config.phaseIndex == 0) { revert SaleNotActive(); } if (!config.isPublic) { revert PublicSaleNotActive(); } // Run checks and mint the tokens _checkAndMint(quantity, config.price, sender, msg.value); // Emit event on successful mint emit PublicMint(sender, quantity, msg.value); } /** * @notice Mint to address through Crossmint proxy. This function handles * both access pass and public mints * * @param quantity The quantity to mint. * @param to The address to mint to. */ function mintTo( uint256 quantity, address to ) external payable nonReentrant onlyCrossmintAdministrator { address sender = to; // Check the ERC721 balance of the sender in the partner contract uint256 partnerBalance = _partnerContract.balanceOf(sender); PhaseConfig memory config = getCurrentPhase(); if (config.phaseIndex == 0) { revert SaleNotActive(); } if (partnerBalance < config.minQuantity) { revert AccessMintNotAllowed(partnerBalance, config.minQuantity); } // Run checks and mint the tokens _checkAndMint(quantity, config.price, sender, msg.value); // Emit event on successful mint if (config.isPublic) { emit PublicMint(to, quantity, msg.value); } else { emit AccessMint(to, address(_partnerContract), quantity, msg.value); } } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.7.0) (access/Ownable.sol) pragma solidity ^0.8.0; import "../utils/Context.sol"; /** * @dev Contract module which provides a basic access control mechanism, where * there is an account (an owner) that can be granted exclusive access to * specific functions. * * By default, the owner account will be the one that deploys the contract. This * can later be changed with {transferOwnership}. * * This module is used through inheritance. It will make available the modifier * `onlyOwner`, which can be applied to your functions to restrict their use to * the owner. */ abstract contract Ownable is Context { address private _owner; event OwnershipTransferred(address indexed previousOwner, address indexed newOwner); /** * @dev Initializes the contract setting the deployer as the initial owner. */ constructor() { _transferOwnership(_msgSender()); } /** * @dev Throws if called by any account other than the owner. */ modifier onlyOwner() { _checkOwner(); _; } /** * @dev Returns the address of the current owner. */ function owner() public view virtual returns (address) { return _owner; } /** * @dev Throws if the sender is not the owner. */ function _checkOwner() internal view virtual { require(owner() == _msgSender(), "Ownable: caller is not the owner"); } /** * @dev Leaves the contract without owner. It will not be possible to call * `onlyOwner` functions anymore. Can only be called by the current owner. * * NOTE: Renouncing ownership will leave the contract without an owner, * thereby removing any functionality that is only available to the owner. */ function renounceOwnership() public virtual onlyOwner { _transferOwnership(address(0)); } /** * @dev Transfers ownership of the contract to a new account (`newOwner`). * Can only be called by the current owner. */ function transferOwnership(address newOwner) public virtual onlyOwner { require(newOwner != address(0), "Ownable: new owner is the zero address"); _transferOwnership(newOwner); } /** * @dev Transfers ownership of the contract to a new account (`newOwner`). * Internal function without access restriction. */ function _transferOwnership(address newOwner) internal virtual { address oldOwner = _owner; _owner = newOwner; emit OwnershipTransferred(oldOwner, newOwner); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.6.0) (interfaces/IERC2981.sol) pragma solidity ^0.8.0; import "../utils/introspection/IERC165.sol"; /** * @dev Interface for the NFT Royalty Standard. * * A standardized way to retrieve royalty payment information for non-fungible tokens (NFTs) to enable universal * support for royalty payments across all NFT marketplaces and ecosystem participants. * * _Available since v4.5._ */ interface IERC2981 is IERC165 { /** * @dev Returns how much royalty is owed and to whom, based on a sale price that may be denominated in any unit of * exchange. The royalty amount is denominated and should be paid in that same unit of exchange. */ function royaltyInfo(uint256 tokenId, uint256 salePrice) external view returns (address receiver, uint256 royaltyAmount); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (security/ReentrancyGuard.sol) pragma solidity ^0.8.0; /** * @dev Contract module that helps prevent reentrant calls to a function. * * Inheriting from `ReentrancyGuard` will make the {nonReentrant} modifier * available, which can be applied to functions to make sure there are no nested * (reentrant) calls to them. * * Note that because there is a single `nonReentrant` guard, functions marked as * `nonReentrant` may not call one another. This can be worked around by making * those functions `private`, and then adding `external` `nonReentrant` entry * points to them. * * TIP: If you would like to learn more about reentrancy and alternative ways * to protect against it, check out our blog post * https://blog.openzeppelin.com/reentrancy-after-istanbul/[Reentrancy After Istanbul]. */ abstract contract ReentrancyGuard { // Booleans are more expensive than uint256 or any type that takes up a full // word because each write operation emits an extra SLOAD to first read the // slot's contents, replace the bits taken up by the boolean, and then write // back. This is the compiler's defense against contract upgrades and // pointer aliasing, and it cannot be disabled. // The values being non-zero value makes deployment a bit more expensive, // but in exchange the refund on every call to nonReentrant will be lower in // amount. Since refunds are capped to a percentage of the total // transaction's gas, it is best to keep them low in cases like this one, to // increase the likelihood of the full refund coming into effect. uint256 private constant _NOT_ENTERED = 1; uint256 private constant _ENTERED = 2; uint256 private _status; constructor() { _status = _NOT_ENTERED; } /** * @dev Prevents a contract from calling itself, directly or indirectly. * Calling a `nonReentrant` function from another `nonReentrant` * function is not supported. It is possible to prevent this from happening * by making the `nonReentrant` function external, and making it call a * `private` function that does the actual work. */ modifier nonReentrant() { // On the first call to nonReentrant, _notEntered will be true require(_status != _ENTERED, "ReentrancyGuard: reentrant call"); // Any calls to nonReentrant after this point will fail _status = _ENTERED; _; // By storing the original value once again, a refund is triggered (see // https://eips.ethereum.org/EIPS/eip-2200) _status = _NOT_ENTERED; } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/Context.sol) pragma solidity ^0.8.0; /** * @dev Provides information about the current execution context, including the * sender of the transaction and its data. While these are generally available * via msg.sender and msg.data, they should not be accessed in such a direct * manner, since when dealing with meta-transactions the account sending and * paying for execution may not be the actual sender (as far as an application * is concerned). * * This contract is only required for intermediate, library-like contracts. */ abstract contract Context { function _msgSender() internal view virtual returns (address) { return msg.sender; } function _msgData() internal view virtual returns (bytes calldata) { return msg.data; } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/introspection/IERC165.sol) pragma solidity ^0.8.0; /** * @dev Interface of the ERC165 standard, as defined in the * https://eips.ethereum.org/EIPS/eip-165[EIP]. * * Implementers can declare support of contract interfaces, which can then be * queried by others ({ERC165Checker}). * * For an implementation, see {ERC165}. */ interface IERC165 { /** * @dev Returns true if this contract implements the interface defined by * `interfaceId`. See the corresponding * https://eips.ethereum.org/EIPS/eip-165#how-interfaces-are-identified[EIP section] * to learn more about how these ids are created. * * This function call must use less than 30 000 gas. */ function supportsInterface(bytes4 interfaceId) external view returns (bool); }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.9; library MessageConstants { string public constant MAX_SUPPLY = "Max supply will be exceeded"; }
/* ╭━━━╮╱╱╱╱╱╱╱╱╱╱╱╱╱╱╭━━━╮╱╱╱╱╱╱╱╱╭╮ ┃╭━╮┃╱╱╱╱╱╱╱╱╱╱╱╱╱╱┃╭━╮┃╱╱╱╱╱╱╱╭╯╰╮ ┃┃╱┃┣━┳━━┳━╮╭━━┳━━╮┃┃╱╰╋━━┳╮╭┳━┻╮╭╯ ┃┃╱┃┃╭┫╭╮┃╭╮┫╭╮┃┃━┫┃┃╱╭┫╭╮┃╰╯┃┃━┫┃ ┃╰━╯┃┃┃╭╮┃┃┃┃╰╯┃┃━┫┃╰━╯┃╰╯┃┃┃┃┃━┫╰╮ ╰━━━┻╯╰╯╰┻╯╰┻━╮┣━━╯╰━━━┻━━┻┻┻┻━━┻━╯ ╱╱╱╱╱╱╱╱╱╱╱╱╭━╯┃ ╱╱╱╱╱╱╱╱╱╱╱╱╰━━╯ */ // SPDX-License-Identifier: MIT pragma solidity ^0.8.9; import "erc721a/contracts/ERC721A.sol"; import { IERC2981, IERC165 } from "@openzeppelin/contracts/interfaces/IERC2981.sol"; import "./utils/Uri.sol"; import "./interfaces/ICometEvents.sol"; /** * @title ERC721Comet * @author Orange Comet * * @notice Orange Comet standard ERC721 contract */ abstract contract ERC721Comet is ERC721A, Uri, ICometEvents, IERC2981 { /// @notice The provenanceHash bytes32 internal _provenanceHash; // The royalty percentage as a percent (e.g. 10 for 10%) uint256 internal _royaltyPercent; // The max supply of tokens in this contract. uint256 internal _maxSupply; // The beneficiary wallet. address internal _beneficiary; // The royalties wallet. address internal _royalties; /** * @notice ERC721 Auctionable constructor. * * @param name The token name. * @param symbol The token symbol. */ constructor( string memory name, string memory symbol ) ERC721A(name, symbol) { // set default royalty percent to 10; _royaltyPercent = 10; // set the default royalty payout to the owner for safety _royalties = owner(); // set the default beneficiary payout to the owner for safety _beneficiary = owner(); } /** * @notice Sets the provenance hash. * * @param value The provenance hash. */ function setProvenanceHash(bytes32 value) external onlyOwner { _provenanceHash = value; } /** * @notice Returns the provenance hash. */ function provenanceHash() external view returns (bytes32) { return _provenanceHash; } /** * @notice Returns the beneficiary. */ function beneficiary() external view returns (address) { return _beneficiary; } /** * @notice Returns the royalties wallet. */ function royalties() external view returns (address) { return _royalties; } /** * @notice Returns the maxSupply of the contract. */ function maxSupply() external view returns (uint256) { return _maxSupply; } /** * @notice Sets the beneficiary wallet address. * * @param wallet The new wallet address. */ function setBeneficiary(address wallet) public onlyOwner { _beneficiary = wallet; } /** * @notice Sets the max supply of tokens. * * @param value The max supply. */ function setMaxSupply(uint256 value) public onlyOwner { _maxSupply = value; emit MaxSupplyUpdated(value); } /** * @notice Sets the royalties wallet address. * * @param wallet The new wallet address. */ function setRoyalties(address wallet) public onlyOwner { _royalties = wallet; } /** * @notice Sets the royalty percentage. * * @param value The value as an integer (e.g. 10 for 10%). */ function setRoyaltyPercent(uint256 value) external onlyOwner { _royaltyPercent = value; } /** * @notice Sets the drop config in a single call. * * @param newMaxSupply The max supply of the contract. * @param newRoyalties The address of the royatlies wallet. * @param newBeneficiary The address of the beneficiary wallet. * @param newBaseURI The metadata baseURI. * @param newContractURI The metadata contractURI. */ function setConfig( uint256 newMaxSupply, address newRoyalties, address newBeneficiary, string memory newBaseURI, string memory newContractURI ) external onlyOwner { require( _totalMinted() == 0, "Cannot set config after minting has begun" ); setMaxSupply(newMaxSupply); setRoyalties(newRoyalties); setBeneficiary(newBeneficiary); setBaseURI(newBaseURI); setContractURI(newContractURI); emit ContractConfigUpdated( newMaxSupply, newRoyalties, newBeneficiary, newBaseURI, newContractURI ); } /** * @notice Supporting ERC721, IER165 * https://eips.ethereum.org/EIPS/eip-165 * @param interfaceId The interface identifier, as specified in ERC-165 * @return `true` if the contract implements `interfaceId` */ function supportsInterface( bytes4 interfaceId ) public view virtual override(ERC721A, IERC165) returns (bool) { return interfaceId == type(IERC2981).interfaceId || super.supportsInterface(interfaceId); } /** * @notice Gets the Base URI of the token API. */ function _baseURI() internal view override returns (string memory) { return _baseTokenURI; } /** * @notice Override start token ID with #1. */ function _startTokenId() internal pure virtual override returns (uint256) { return 1; } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.9; import "operator-filter-registry/src/DefaultOperatorFilterer.sol"; import "./ERC721Comet.sol"; /** * @title ERC721OperatorFilter * * @notice Implementation of the OpenSea OperatorFilter for ERC721. * This is now required to deploy a contract and receive * royatlies when trading on OpenSea. */ abstract contract ERC721OperatorFilter is ERC721Comet, DefaultOperatorFilterer { /** * @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 override onlyAllowedOperatorApproval(operator) { super.setApprovalForAll(operator, approved); } /** * @dev Equivalent to `_approve(to, tokenId, false)`. */ function approve(address operator, uint256 tokenId) public payable override onlyAllowedOperatorApproval(operator) { super.approve(operator, tokenId); } /** * @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 payable override onlyAllowedOperator(from) { super.transferFrom(from, to, tokenId); } /** * @dev Equivalent to `safeTransferFrom(from, to, tokenId, '')`. */ function safeTransferFrom( address from, address to, uint256 tokenId ) public payable override onlyAllowedOperator(from) { super.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 payable override onlyAllowedOperator(from) { super.safeTransferFrom(from, to, tokenId, data); } }
// SPDX-License-Identifier: MIT pragma solidity 0.8.17; interface DropEvents { /** * @dev An event with details of an access pass mint. * * @param minter The minter. * @param partnerContract The partner contract used for access * @param quantity The number of tokens minted. * @param value The amount paid for each token. */ event AccessMint( address indexed minter, address indexed partnerContract, uint256 quantity, uint256 value ); /** * @dev An event with details of a mint. * * @param minter The minter. * @param quantity The number of tokens minted. * @param value The amount paid for each token. */ event PublicMint(address indexed minter, uint256 quantity, uint256 value); }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.17; import { ERC721A } from "erc721a/contracts/ERC721A.sol"; import { SafeTransferLib } from "solmate/src/utils/SafeTransferLib.sol"; import "./ICometDrop.sol"; import "./IERC721Auctionable.sol"; import "../ERC721OperatorFilter.sol"; import "../constants/MessageConstants.sol"; /** * @dev This implements an optional extension of {ERC721A} defined in the EIP. */ abstract contract CometDrop is ICometDrop, ERC721OperatorFilter, IERC721Auctionable { // A token receiver struct Receiver { address to; uint256 quantity; } /// @notice Administrator wallet. address internal _administrator; /// @notice Fires an administrator wallet updated event. event AdministratorUpdated(address wallet); /** * @dev Revert with an error if the received payment is incorrect. */ error IncorrectPayment(uint256 got, uint256 want); /** * @dev Revert with error if address not owner or administrator. */ error OnlyOwnerOrAdministrator(); modifier onlyOwnerOrAdministrator() virtual { if (msg.sender != owner()) { if (msg.sender != _administrator) { revert OnlyOwnerOrAdministrator(); } } _; } /** * @notice ERC721 Airdrop constructor. * * @param name The token name. * @param symbol The token symbol. */ constructor( string memory name, string memory symbol ) ERC721Comet(name, symbol) {} /** * @notice Set the administrator. * * @param wallet The address of the administrator. */ function setAdministrator(address wallet) external onlyOwner { _administrator = wallet; emit AdministratorUpdated(wallet); } /** * @notice Owner can mint to specified address * * @param to The address to mint to. * @param quantity The number of tokens to mint. */ function ownerMint(address to, uint256 quantity) external onlyOwner { _internalMint(to, quantity); } /** * @notice Airdrop to multiple receivers. * * @param receivers - the receiver tuple with to address and quantity. */ function airDrop(Receiver[] memory receivers) external onlyOwner { uint256 amount = _totalQuantity(receivers); require( totalSupply() + amount <= _maxSupply, MessageConstants.MAX_SUPPLY ); for (uint256 i = 0; i < receivers.length; i++) { _internalMint(receivers[i].to, receivers[i].quantity); } } /** * @notice Called with the sale price to determine how much royalty * is owed and to whom. * @param _tokenId - the NFT asset queried for royalty information * @param _salePrice - the sale price of the NFT asset specified by _tokenId * @return receiver - address of who should be sent the royalty payment * @return royaltyAmount - the royalty payment amount for _salePrice */ function royaltyInfo( uint256 _tokenId, uint256 _salePrice ) external view returns (address, uint256 royaltyAmount) { // Silence solc unused parameter warning. // All tokens have the same royalty. _tokenId; royaltyAmount = (_salePrice / 100) * _royaltyPercent; return (_royalties, royaltyAmount); } /** * @notice Mint next available token(s) to addres using ERC721A _safeMint * * @param to The address to mint to. * @param quantity The number of tokens to mint. */ function _internalMint(address to, uint256 quantity) internal { require( totalSupply() + quantity <= _maxSupply, MessageConstants.MAX_SUPPLY ); _safeMint(to, quantity); } /** * @notice Revert if the payment is incorrect. * * @param quantity The quantity of tokens to mint. * @param price The mint price per token. */ function _checkPayment(uint256 quantity, uint256 price) internal view { // Revert if the math isn't right. if (msg.value != quantity * price) { revert IncorrectPayment(msg.value, quantity * price); } } /** * @notice Mint next available token(s) to addres using ERC721A _safeMint * * @param quantity The number of tokens to mint. * @param price The mint price per token. * @param to The address to mint to. * @param value The value in WEI passed to the mint. */ function _checkAndMint( uint256 quantity, uint256 price, address to, uint256 value ) internal { // Check for correct payment. _checkPayment(quantity, price); // Safe mint checks total supply. _internalMint(to, quantity); // Transfer value immediately SafeTransferLib.safeTransferETH(_beneficiary, value); } /** * @notice Return total quantity of tokens from an array of receivers. * * @return uint256 - the total quantity within the receivers array */ function _totalQuantity( Receiver[] memory receivers ) private pure returns (uint256) { uint256 totalQuantity = 0; for (uint256 i = 0; i < receivers.length; i++) { totalQuantity += receivers[i].quantity; } return totalQuantity; } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.17; import { DropEvents } from "../events/DropEvents.sol"; interface ICometDrop is DropEvents { /** * @notice Set the administrator. * * @param wallet The address of the administrator. */ function setAdministrator(address wallet) external; }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.9; import "erc721a/contracts/IERC721A.sol"; /** * @title ERC-721 Non-Fungible Token Standard, optional enumeration extension * @dev See https://eips.ethereum.org/EIPS/eip-721 */ interface IERC721Auctionable { /** * @notice Owner can mint to specified address * * @param to The address to mint to. * @param quantity The number of tokens to mint */ function ownerMint(address to, uint256 quantity) external; }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.9; interface ICometEvents { /** * @dev Emit an event when the contract configuration is updated. */ event ContractConfigUpdated( uint256 maxSupply, address royalties, address beneficiary, string baseURI, string contractURI ); /** * @dev Emit an event when the max supply is updated. */ event MaxSupplyUpdated(uint256 maxSupply); }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.9; import "@openzeppelin/contracts/access/Ownable.sol"; abstract contract Uri is Ownable { // The token metadata base URI string _baseTokenURI; // The contract base URI string _contractURI; /** * @notice Token metadata base URI. */ function baseURI() external view returns (string memory) { return _baseTokenURI; } /** * @notice Sets the Base URI for the token API. "public" modifier is used * so internal methods can call. * @param uri The new URI to set */ function setBaseURI(string memory uri) public onlyOwner { _baseTokenURI = uri; } /** * @notice Sets the Contract URI for marketplace APIs. * @param uri The new URI to set */ function setContractURI(string memory uri) public onlyOwner { _contractURI = uri; } /** * @notice OpenSea contract level metdata standard for displaying on * storefront. * Reference: https://docs.opensea.io/docs/contract-level-metadata */ function contractURI() public view returns (string memory) { return _contractURI; } }
// SPDX-License-Identifier: MIT // ERC721A Contracts v4.2.3 // 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 { // Bypass for a `--via-ir` bug (https://github.com/chiru-labs/ERC721A/pull/364). 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 payable 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 { _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].value`. 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 payable 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 payable 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 payable 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. // The duplicated `log4` removes an extra check and reduces stack juggling. // The assembly, together with the surrounding Solidity code, have been // delicately arranged to nudge the compiler into producing optimized opcodes. 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`. ) // The `iszero(eq(,))` check ensures that large values of `quantity` // that overflows uint256 will make the loop run out of gas. // The compiler will optimize the `iszero` away for performance. 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 0xa0 bytes to keep the free memory pointer 32-byte word aligned. // We will need 1 word for the trailing zeros padding, 1 word for the length, // and 3 words for a maximum of 78 digits. Total: 5 * 0x20 = 0xa0. let m := add(mload(0x40), 0xa0) // Update the free memory pointer to allocate. mstore(0x40, m) // Assign the `str` to the end. str := sub(m, 0x20) // Zeroize the slot after the string. mstore(str, 0) // 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.3 // 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(); /** * 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 payable; /** * @dev Equivalent to `safeTransferFrom(from, to, tokenId, '')`. */ function safeTransferFrom( address from, address to, uint256 tokenId ) external payable; /** * @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 payable; /** * @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 payable; /** * @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); }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.13; import {OperatorFilterer} from "./OperatorFilterer.sol"; /** * @title DefaultOperatorFilterer * @notice Inherits from OperatorFilterer and automatically subscribes to the default OpenSea subscription. */ abstract contract DefaultOperatorFilterer is OperatorFilterer { address constant DEFAULT_SUBSCRIPTION = address(0x3cc6CddA760b79bAfa08dF41ECFA224f810dCeB6); constructor() OperatorFilterer(DEFAULT_SUBSCRIPTION, true) {} }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.13; interface IOperatorFilterRegistry { function isOperatorAllowed(address registrant, address operator) external view returns (bool); function register(address registrant) external; function registerAndSubscribe(address registrant, address subscription) external; function registerAndCopyEntries(address registrant, address registrantToCopy) external; function unregister(address addr) external; function updateOperator(address registrant, address operator, bool filtered) external; function updateOperators(address registrant, address[] calldata operators, bool filtered) external; function updateCodeHash(address registrant, bytes32 codehash, bool filtered) external; function updateCodeHashes(address registrant, bytes32[] calldata codeHashes, bool filtered) external; function subscribe(address registrant, address registrantToSubscribe) external; function unsubscribe(address registrant, bool copyExistingEntries) external; function subscriptionOf(address addr) external returns (address registrant); function subscribers(address registrant) external returns (address[] memory); function subscriberAt(address registrant, uint256 index) external returns (address); function copyEntriesOf(address registrant, address registrantToCopy) external; function isOperatorFiltered(address registrant, address operator) external returns (bool); function isCodeHashOfFiltered(address registrant, address operatorWithCode) external returns (bool); function isCodeHashFiltered(address registrant, bytes32 codeHash) external returns (bool); function filteredOperators(address addr) external returns (address[] memory); function filteredCodeHashes(address addr) external returns (bytes32[] memory); function filteredOperatorAt(address registrant, uint256 index) external returns (address); function filteredCodeHashAt(address registrant, uint256 index) external returns (bytes32); function isRegistered(address addr) external returns (bool); function codeHashOf(address addr) external returns (bytes32); }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.13; import {IOperatorFilterRegistry} from "./IOperatorFilterRegistry.sol"; /** * @title OperatorFilterer * @notice Abstract contract whose constructor automatically registers and optionally subscribes to or copies another * registrant's entries in the OperatorFilterRegistry. * @dev This smart contract is meant to be inherited by token contracts so they can use the following: * - `onlyAllowedOperator` modifier for `transferFrom` and `safeTransferFrom` methods. * - `onlyAllowedOperatorApproval` modifier for `approve` and `setApprovalForAll` methods. */ abstract contract OperatorFilterer { error OperatorNotAllowed(address operator); IOperatorFilterRegistry public constant OPERATOR_FILTER_REGISTRY = IOperatorFilterRegistry(0x000000000000AAeB6D7670E522A718067333cd4E); constructor(address subscriptionOrRegistrantToCopy, bool subscribe) { // If an inheriting token contract is deployed to a network without the registry deployed, the modifier // will not revert, but the contract will need to be registered with the registry once it is deployed in // order for the modifier to filter addresses. if (address(OPERATOR_FILTER_REGISTRY).code.length > 0) { if (subscribe) { OPERATOR_FILTER_REGISTRY.registerAndSubscribe(address(this), subscriptionOrRegistrantToCopy); } else { if (subscriptionOrRegistrantToCopy != address(0)) { OPERATOR_FILTER_REGISTRY.registerAndCopyEntries(address(this), subscriptionOrRegistrantToCopy); } else { OPERATOR_FILTER_REGISTRY.register(address(this)); } } } } modifier onlyAllowedOperator(address from) virtual { // Allow spending tokens from addresses with balance // Note that this still allows listings and marketplaces with escrow to transfer tokens if transferred // from an EOA. if (from != msg.sender) { _checkFilterOperator(msg.sender); } _; } modifier onlyAllowedOperatorApproval(address operator) virtual { _checkFilterOperator(operator); _; } function _checkFilterOperator(address operator) internal view virtual { // Check registry code length to facilitate testing in environments without a deployed registry. if (address(OPERATOR_FILTER_REGISTRY).code.length > 0) { if (!OPERATOR_FILTER_REGISTRY.isOperatorAllowed(address(this), operator)) { revert OperatorNotAllowed(operator); } } } }
// SPDX-License-Identifier: AGPL-3.0-only pragma solidity >=0.8.0; /// @notice Modern and gas efficient ERC20 + EIP-2612 implementation. /// @author Solmate (https://github.com/transmissions11/solmate/blob/main/src/tokens/ERC20.sol) /// @author Modified from Uniswap (https://github.com/Uniswap/uniswap-v2-core/blob/master/contracts/UniswapV2ERC20.sol) /// @dev Do not manually set balances without updating totalSupply, as the sum of all user balances must not exceed it. abstract contract ERC20 { /*////////////////////////////////////////////////////////////// EVENTS //////////////////////////////////////////////////////////////*/ event Transfer(address indexed from, address indexed to, uint256 amount); event Approval(address indexed owner, address indexed spender, uint256 amount); /*////////////////////////////////////////////////////////////// METADATA STORAGE //////////////////////////////////////////////////////////////*/ string public name; string public symbol; uint8 public immutable decimals; /*////////////////////////////////////////////////////////////// ERC20 STORAGE //////////////////////////////////////////////////////////////*/ uint256 public totalSupply; mapping(address => uint256) public balanceOf; mapping(address => mapping(address => uint256)) public allowance; /*////////////////////////////////////////////////////////////// EIP-2612 STORAGE //////////////////////////////////////////////////////////////*/ uint256 internal immutable INITIAL_CHAIN_ID; bytes32 internal immutable INITIAL_DOMAIN_SEPARATOR; mapping(address => uint256) public nonces; /*////////////////////////////////////////////////////////////// CONSTRUCTOR //////////////////////////////////////////////////////////////*/ constructor( string memory _name, string memory _symbol, uint8 _decimals ) { name = _name; symbol = _symbol; decimals = _decimals; INITIAL_CHAIN_ID = block.chainid; INITIAL_DOMAIN_SEPARATOR = computeDomainSeparator(); } /*////////////////////////////////////////////////////////////// ERC20 LOGIC //////////////////////////////////////////////////////////////*/ function approve(address spender, uint256 amount) public virtual returns (bool) { allowance[msg.sender][spender] = amount; emit Approval(msg.sender, spender, amount); return true; } function transfer(address to, uint256 amount) public virtual returns (bool) { balanceOf[msg.sender] -= amount; // Cannot overflow because the sum of all user // balances can't exceed the max uint256 value. unchecked { balanceOf[to] += amount; } emit Transfer(msg.sender, to, amount); return true; } function transferFrom( address from, address to, uint256 amount ) public virtual returns (bool) { uint256 allowed = allowance[from][msg.sender]; // Saves gas for limited approvals. if (allowed != type(uint256).max) allowance[from][msg.sender] = allowed - amount; balanceOf[from] -= amount; // Cannot overflow because the sum of all user // balances can't exceed the max uint256 value. unchecked { balanceOf[to] += amount; } emit Transfer(from, to, amount); return true; } /*////////////////////////////////////////////////////////////// EIP-2612 LOGIC //////////////////////////////////////////////////////////////*/ function permit( address owner, address spender, uint256 value, uint256 deadline, uint8 v, bytes32 r, bytes32 s ) public virtual { require(deadline >= block.timestamp, "PERMIT_DEADLINE_EXPIRED"); // Unchecked because the only math done is incrementing // the owner's nonce which cannot realistically overflow. unchecked { address recoveredAddress = ecrecover( keccak256( abi.encodePacked( "\x19\x01", DOMAIN_SEPARATOR(), keccak256( abi.encode( keccak256( "Permit(address owner,address spender,uint256 value,uint256 nonce,uint256 deadline)" ), owner, spender, value, nonces[owner]++, deadline ) ) ) ), v, r, s ); require(recoveredAddress != address(0) && recoveredAddress == owner, "INVALID_SIGNER"); allowance[recoveredAddress][spender] = value; } emit Approval(owner, spender, value); } function DOMAIN_SEPARATOR() public view virtual returns (bytes32) { return block.chainid == INITIAL_CHAIN_ID ? INITIAL_DOMAIN_SEPARATOR : computeDomainSeparator(); } function computeDomainSeparator() internal view virtual returns (bytes32) { return keccak256( abi.encode( keccak256("EIP712Domain(string name,string version,uint256 chainId,address verifyingContract)"), keccak256(bytes(name)), keccak256("1"), block.chainid, address(this) ) ); } /*////////////////////////////////////////////////////////////// INTERNAL MINT/BURN LOGIC //////////////////////////////////////////////////////////////*/ function _mint(address to, uint256 amount) internal virtual { totalSupply += amount; // Cannot overflow because the sum of all user // balances can't exceed the max uint256 value. unchecked { balanceOf[to] += amount; } emit Transfer(address(0), to, amount); } function _burn(address from, uint256 amount) internal virtual { balanceOf[from] -= amount; // Cannot underflow because a user's balance // will never be larger than the total supply. unchecked { totalSupply -= amount; } emit Transfer(from, address(0), amount); } }
// SPDX-License-Identifier: AGPL-3.0-only pragma solidity >=0.8.0; import {ERC20} from "../tokens/ERC20.sol"; /// @notice Safe ETH and ERC20 transfer library that gracefully handles missing return values. /// @author Solmate (https://github.com/transmissions11/solmate/blob/main/src/utils/SafeTransferLib.sol) /// @dev Use with caution! Some functions in this library knowingly create dirty bits at the destination of the free memory pointer. /// @dev Note that none of the functions in this library check that a token has code at all! That responsibility is delegated to the caller. library SafeTransferLib { /*////////////////////////////////////////////////////////////// ETH OPERATIONS //////////////////////////////////////////////////////////////*/ function safeTransferETH(address to, uint256 amount) internal { bool success; /// @solidity memory-safe-assembly assembly { // Transfer the ETH and store if it succeeded or not. success := call(gas(), to, amount, 0, 0, 0, 0) } require(success, "ETH_TRANSFER_FAILED"); } /*////////////////////////////////////////////////////////////// ERC20 OPERATIONS //////////////////////////////////////////////////////////////*/ function safeTransferFrom( ERC20 token, address from, address to, uint256 amount ) internal { bool success; /// @solidity memory-safe-assembly assembly { // Get a pointer to some free memory. let freeMemoryPointer := mload(0x40) // Write the abi-encoded calldata into memory, beginning with the function selector. mstore(freeMemoryPointer, 0x23b872dd00000000000000000000000000000000000000000000000000000000) mstore(add(freeMemoryPointer, 4), from) // Append the "from" argument. mstore(add(freeMemoryPointer, 36), to) // Append the "to" argument. mstore(add(freeMemoryPointer, 68), amount) // Append the "amount" argument. success := and( // Set success to whether the call reverted, if not we check it either // returned exactly 1 (can't just be non-zero data), or had no return data. or(and(eq(mload(0), 1), gt(returndatasize(), 31)), iszero(returndatasize())), // We use 100 because the length of our calldata totals up like so: 4 + 32 * 3. // We use 0 and 32 to copy up to 32 bytes of return data into the scratch space. // Counterintuitively, this call must be positioned second to the or() call in the // surrounding and() call or else returndatasize() will be zero during the computation. call(gas(), token, 0, freeMemoryPointer, 100, 0, 32) ) } require(success, "TRANSFER_FROM_FAILED"); } function safeTransfer( ERC20 token, address to, uint256 amount ) internal { bool success; /// @solidity memory-safe-assembly assembly { // Get a pointer to some free memory. let freeMemoryPointer := mload(0x40) // Write the abi-encoded calldata into memory, beginning with the function selector. mstore(freeMemoryPointer, 0xa9059cbb00000000000000000000000000000000000000000000000000000000) mstore(add(freeMemoryPointer, 4), to) // Append the "to" argument. mstore(add(freeMemoryPointer, 36), amount) // Append the "amount" argument. success := and( // Set success to whether the call reverted, if not we check it either // returned exactly 1 (can't just be non-zero data), or had no return data. or(and(eq(mload(0), 1), gt(returndatasize(), 31)), iszero(returndatasize())), // We use 68 because the length of our calldata totals up like so: 4 + 32 * 2. // We use 0 and 32 to copy up to 32 bytes of return data into the scratch space. // Counterintuitively, this call must be positioned second to the or() call in the // surrounding and() call or else returndatasize() will be zero during the computation. call(gas(), token, 0, freeMemoryPointer, 68, 0, 32) ) } require(success, "TRANSFER_FAILED"); } function safeApprove( ERC20 token, address to, uint256 amount ) internal { bool success; /// @solidity memory-safe-assembly assembly { // Get a pointer to some free memory. let freeMemoryPointer := mload(0x40) // Write the abi-encoded calldata into memory, beginning with the function selector. mstore(freeMemoryPointer, 0x095ea7b300000000000000000000000000000000000000000000000000000000) mstore(add(freeMemoryPointer, 4), to) // Append the "to" argument. mstore(add(freeMemoryPointer, 36), amount) // Append the "amount" argument. success := and( // Set success to whether the call reverted, if not we check it either // returned exactly 1 (can't just be non-zero data), or had no return data. or(and(eq(mload(0), 1), gt(returndatasize(), 31)), iszero(returndatasize())), // We use 68 because the length of our calldata totals up like so: 4 + 32 * 2. // We use 0 and 32 to copy up to 32 bytes of return data into the scratch space. // Counterintuitively, this call must be positioned second to the or() call in the // surrounding and() call or else returndatasize() will be zero during the computation. call(gas(), token, 0, freeMemoryPointer, 68, 0, 32) ) } require(success, "APPROVE_FAILED"); } }
{ "optimizer": { "enabled": false, "runs": 200 }, "outputSelection": { "*": { "*": [ "evm.bytecode", "evm.deployedBytecode", "devdoc", "userdoc", "metadata", "abi" ] } }, "libraries": {} }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"inputs":[{"internalType":"string","name":"name","type":"string"},{"internalType":"string","name":"symbol","type":"string"},{"internalType":"uint256","name":"maxSupply","type":"uint256"},{"internalType":"string","name":"baseTokenURI","type":"string"},{"internalType":"string","name":"contractURI","type":"string"},{"internalType":"address","name":"royalties","type":"address"},{"internalType":"address","name":"crossmintAdmin","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"inputs":[{"internalType":"uint256","name":"balance","type":"uint256"},{"internalType":"uint256","name":"required","type":"uint256"}],"name":"AccessMintNotAllowed","type":"error"},{"inputs":[],"name":"ApprovalCallerNotOwnerNorApproved","type":"error"},{"inputs":[],"name":"ApprovalQueryForNonexistentToken","type":"error"},{"inputs":[],"name":"BalanceQueryForZeroAddress","type":"error"},{"inputs":[{"internalType":"uint256","name":"got","type":"uint256"},{"internalType":"uint256","name":"want","type":"uint256"}],"name":"IncorrectPayment","type":"error"},{"inputs":[],"name":"MintERC2309QuantityExceedsLimit","type":"error"},{"inputs":[],"name":"MintToZeroAddress","type":"error"},{"inputs":[],"name":"MintZeroQuantity","type":"error"},{"inputs":[],"name":"NewAdministratorIsZeroAddress","type":"error"},{"inputs":[],"name":"OnlyCrossmintAdministrator","type":"error"},{"inputs":[],"name":"OnlyOwnerOrAdministrator","type":"error"},{"inputs":[{"internalType":"address","name":"operator","type":"address"}],"name":"OperatorNotAllowed","type":"error"},{"inputs":[],"name":"OwnerQueryForNonexistentToken","type":"error"},{"inputs":[],"name":"OwnershipNotInitializedForExtraData","type":"error"},{"inputs":[],"name":"PublicSaleNotActive","type":"error"},{"inputs":[],"name":"SaleNotActive","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":"minter","type":"address"},{"indexed":true,"internalType":"address","name":"partnerContract","type":"address"},{"indexed":false,"internalType":"uint256","name":"quantity","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"value","type":"uint256"}],"name":"AccessMint","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"wallet","type":"address"}],"name":"AdministratorUpdated","type":"event"},{"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":false,"internalType":"uint256","name":"maxSupply","type":"uint256"},{"indexed":false,"internalType":"address","name":"royalties","type":"address"},{"indexed":false,"internalType":"address","name":"beneficiary","type":"address"},{"indexed":false,"internalType":"string","name":"baseURI","type":"string"},{"indexed":false,"internalType":"string","name":"contractURI","type":"string"}],"name":"ContractConfigUpdated","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"wallet","type":"address"}],"name":"CrossmintAdministratorUpdated","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"maxSupply","type":"uint256"}],"name":"MaxSupplyUpdated","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"contractAddress","type":"address"}],"name":"PartnerContractUpdated","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"minter","type":"address"},{"indexed":false,"internalType":"uint256","name":"quantity","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"value","type":"uint256"}],"name":"PublicMint","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"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"newWallet","type":"address"}],"name":"VRFAdministratorUpdated","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"contractAddress","type":"address"}],"name":"VRFCoordinatorUpdated","type":"event"},{"inputs":[],"name":"OPERATOR_FILTER_REGISTRY","outputs":[{"internalType":"contract IOperatorFilterRegistry","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"components":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"quantity","type":"uint256"}],"internalType":"struct CometDrop.Receiver[]","name":"receivers","type":"tuple[]"}],"name":"airDrop","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"operator","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"approve","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"baseURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"beneficiary","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"contractURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getApproved","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getCurrentPhase","outputs":[{"components":[{"internalType":"uint256","name":"phaseIndex","type":"uint256"},{"internalType":"uint256","name":"minQuantity","type":"uint256"},{"internalType":"uint256","name":"price","type":"uint256"},{"internalType":"uint256","name":"startTime","type":"uint256"},{"internalType":"uint256","name":"endTime","type":"uint256"},{"internalType":"bool","name":"isPublic","type":"bool"}],"internalType":"struct SurvivorSeries2.PhaseConfig","name":"","type":"tuple"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getPartnerBalance","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getPhases","outputs":[{"components":[{"internalType":"uint256","name":"phaseIndex","type":"uint256"},{"internalType":"uint256","name":"minQuantity","type":"uint256"},{"internalType":"uint256","name":"price","type":"uint256"},{"internalType":"uint256","name":"startTime","type":"uint256"},{"internalType":"uint256","name":"endTime","type":"uint256"},{"internalType":"bool","name":"isPublic","type":"bool"}],"internalType":"struct SurvivorSeries2.PhaseConfig[]","name":"","type":"tuple[]"}],"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":"maxSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"quantity","type":"uint256"}],"name":"mint","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"uint256","name":"quantity","type":"uint256"}],"name":"mintAccessPass","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"uint256","name":"quantity","type":"uint256"},{"internalType":"address","name":"to","type":"address"}],"name":"mintTo","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"quantity","type":"uint256"}],"name":"ownerMint","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"ownerOf","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"provenanceHash","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"partnerContract","type":"address"},{"internalType":"uint32","name":"totalEntries","type":"uint32"},{"internalType":"uint32","name":"totalSelections","type":"uint32"},{"internalType":"string","name":"title","type":"string"}],"name":"requestRandomWords","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"royalties","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_tokenId","type":"uint256"},{"internalType":"uint256","name":"_salePrice","type":"uint256"}],"name":"royaltyInfo","outputs":[{"internalType":"address","name":"","type":"address"},{"internalType":"uint256","name":"royaltyAmount","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"payable","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":"payable","type":"function"},{"inputs":[{"internalType":"address","name":"wallet","type":"address"}],"name":"setAdministrator","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"operator","type":"address"},{"internalType":"bool","name":"approved","type":"bool"}],"name":"setApprovalForAll","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"uri","type":"string"}],"name":"setBaseURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"wallet","type":"address"}],"name":"setBeneficiary","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"newMaxSupply","type":"uint256"},{"internalType":"address","name":"newRoyalties","type":"address"},{"internalType":"address","name":"newBeneficiary","type":"address"},{"internalType":"string","name":"newBaseURI","type":"string"},{"internalType":"string","name":"newContractURI","type":"string"}],"name":"setConfig","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"uri","type":"string"}],"name":"setContractURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newCrossmintAdministrator","type":"address"}],"name":"setCrossmintAdministrator","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"value","type":"uint256"}],"name":"setMaxSupply","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"contractAddress","type":"address"}],"name":"setPartnerContractAddress","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"components":[{"internalType":"uint256","name":"phaseIndex","type":"uint256"},{"internalType":"uint256","name":"minQuantity","type":"uint256"},{"internalType":"uint256","name":"price","type":"uint256"},{"internalType":"uint256","name":"startTime","type":"uint256"},{"internalType":"uint256","name":"endTime","type":"uint256"},{"internalType":"bool","name":"isPublic","type":"bool"}],"internalType":"struct SurvivorSeries2.PhaseConfig[]","name":"phaseConfigs","type":"tuple[]"}],"name":"setPhases","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"value","type":"bytes32"}],"name":"setProvenanceHash","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"wallet","type":"address"}],"name":"setRoyalties","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"value","type":"uint256"}],"name":"setRoyaltyPercent","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newWallet","type":"address"}],"name":"setVRFAdministrator","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"contractAddress","type":"address"}],"name":"setVRFCoordinatorAddress","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes4","name":"interfaceId","type":"bytes4"}],"name":"supportsInterface","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"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":"payable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"components":[{"internalType":"uint256","name":"phaseIndex","type":"uint256"},{"internalType":"uint256","name":"minQuantity","type":"uint256"},{"internalType":"uint256","name":"price","type":"uint256"},{"internalType":"uint256","name":"startTime","type":"uint256"},{"internalType":"uint256","name":"endTime","type":"uint256"},{"internalType":"bool","name":"isPublic","type":"bool"}],"internalType":"struct SurvivorSeries2.PhaseConfig","name":"config","type":"tuple"}],"name":"updatePhase","outputs":[],"stateMutability":"nonpayable","type":"function"}]
Contract Creation Code
60806040523480156200001157600080fd5b506040516200607a3803806200607a83398181016040528101906200003791906200078a565b8686733cc6cdda760b79bafa08df41ecfa224f810dceb6600183838181816002908162000065919062000afa565b50806003908162000077919062000afa565b50620000886200045660201b60201c565b6000819055505050620000b0620000a46200045f60201b60201c565b6200046760201b60201c565b600a600c81905550620000c86200052d60201b60201c565b600f60006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550620001186200052d60201b60201c565b600e60006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550505060006daaeb6d7670e522a718067333cd4e73ffffffffffffffffffffffffffffffffffffffff163b11156200034f57801562000215576daaeb6d7670e522a718067333cd4e73ffffffffffffffffffffffffffffffffffffffff16637d3e3dbe30846040518363ffffffff1660e01b8152600401620001db92919062000bf2565b600060405180830381600087803b158015620001f657600080fd5b505af11580156200020b573d6000803e3d6000fd5b505050506200034e565b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1614620002cf576daaeb6d7670e522a718067333cd4e73ffffffffffffffffffffffffffffffffffffffff1663a0af290330846040518363ffffffff1660e01b81526004016200029592919062000bf2565b600060405180830381600087803b158015620002b057600080fd5b505af1158015620002c5573d6000803e3d6000fd5b505050506200034d565b6daaeb6d7670e522a718067333cd4e73ffffffffffffffffffffffffffffffffffffffff16634420e486306040518263ffffffff1660e01b815260040162000318919062000c1f565b600060405180830381600087803b1580156200033357600080fd5b505af115801562000348573d6000803e3d6000fd5b505050505b5b5b50505050600160118190555084600d81905550836009908162000373919062000afa565b5082600a908162000385919062000afa565b5081600f60006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555081600e60006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555080601260006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055505050505050505062000c3c565b60006001905090565b600033905090565b6000600860009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905081600860006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b6000600860009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b6000604051905090565b600080fd5b600080fd5b600080fd5b600080fd5b6000601f19601f8301169050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b620005c08262000575565b810181811067ffffffffffffffff82111715620005e257620005e162000586565b5b80604052505050565b6000620005f762000557565b9050620006058282620005b5565b919050565b600067ffffffffffffffff82111562000628576200062762000586565b5b620006338262000575565b9050602081019050919050565b60005b838110156200066057808201518184015260208101905062000643565b60008484015250505050565b6000620006836200067d846200060a565b620005eb565b905082815260208101848484011115620006a257620006a162000570565b5b620006af84828562000640565b509392505050565b600082601f830112620006cf57620006ce6200056b565b5b8151620006e18482602086016200066c565b91505092915050565b6000819050919050565b620006ff81620006ea565b81146200070b57600080fd5b50565b6000815190506200071f81620006f4565b92915050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000620007528262000725565b9050919050565b620007648162000745565b81146200077057600080fd5b50565b600081519050620007848162000759565b92915050565b600080600080600080600060e0888a031215620007ac57620007ab62000561565b5b600088015167ffffffffffffffff811115620007cd57620007cc62000566565b5b620007db8a828b01620006b7565b975050602088015167ffffffffffffffff811115620007ff57620007fe62000566565b5b6200080d8a828b01620006b7565b9650506040620008208a828b016200070e565b955050606088015167ffffffffffffffff81111562000844576200084362000566565b5b620008528a828b01620006b7565b945050608088015167ffffffffffffffff81111562000876576200087562000566565b5b620008848a828b01620006b7565b93505060a0620008978a828b0162000773565b92505060c0620008aa8a828b0162000773565b91505092959891949750929550565b600081519050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b600060028204905060018216806200090c57607f821691505b602082108103620009225762000921620008c4565b5b50919050565b60008190508160005260206000209050919050565b60006020601f8301049050919050565b600082821b905092915050565b6000600883026200098c7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff826200094d565b6200099886836200094d565b95508019841693508086168417925050509392505050565b6000819050919050565b6000620009db620009d5620009cf84620006ea565b620009b0565b620006ea565b9050919050565b6000819050919050565b620009f783620009ba565b62000a0f62000a0682620009e2565b8484546200095a565b825550505050565b600090565b62000a2662000a17565b62000a33818484620009ec565b505050565b5b8181101562000a5b5762000a4f60008262000a1c565b60018101905062000a39565b5050565b601f82111562000aaa5762000a748162000928565b62000a7f846200093d565b8101602085101562000a8f578190505b62000aa762000a9e856200093d565b83018262000a38565b50505b505050565b600082821c905092915050565b600062000acf6000198460080262000aaf565b1980831691505092915050565b600062000aea838362000abc565b9150826002028217905092915050565b62000b0582620008b9565b67ffffffffffffffff81111562000b215762000b2062000586565b5b62000b2d8254620008f3565b62000b3a82828562000a5f565b600060209050601f83116001811462000b72576000841562000b5d578287015190505b62000b69858262000adc565b86555062000bd9565b601f19841662000b828662000928565b60005b8281101562000bac5784890151825560018201915060208501945060208101905062000b85565b8683101562000bcc578489015162000bc8601f89168262000abc565b8355505b6001600288020188555050505b505050505050565b62000bec8162000745565b82525050565b600060408201905062000c09600083018562000be1565b62000c18602083018462000be1565b9392505050565b600060208201905062000c36600083018462000be1565b92915050565b61542e8062000c4c6000396000f3fe6080604052600436106102ae5760003560e01c8063715018a611610175578063b88d4fde116100dc578063da23f33211610095578063e985e9c51161006f578063e985e9c514610a0e578063ef1b7f6914610a4b578063f053dc5c14610a74578063f2fde38b14610a9f576102ae565b8063da23f33214610991578063df8089ef146109ba578063e8a3d485146109e3576102ae565b8063b88d4fde14610890578063b98c27e6146108ac578063ba729e9e146108d5578063c6ab67a3146108fe578063c87b56dd14610929578063d5abeb0114610966576102ae565b8063a0712d681161012e578063a0712d68146107bd578063a22cb465146107d9578063a3a40ea514610802578063a7f3997a1461082d578063ae9de7f614610858578063b723b34e14610874576102ae565b8063715018a6146106d557806372f44142146106ec5780638da5cb5b14610715578063938e3d7b1461074057806395d89b41146107695780639a4fc64014610794576102ae565b806338af3eed1161021957806354df98ad116101d257806354df98ad146105b557806355f804b3146105de5780636352211e146106075780636c0360eb146106445780636f8b44b01461066f57806370a0823114610698576102ae565b806338af3eed146104c85780634111406f146104f357806341b55ef31461051c57806341f434341461054557806342842e0e14610570578063484b973c1461058c576102ae565b806318ca4b141161026b57806318ca4b14146103c85780631c31f710146103f357806323b872dd1461041c5780632a55205a146104385780632a9e63c6146104765780632f9122691461049f576102ae565b806301ffc9a7146102b357806306fdde03146102f0578063081812fc1461031b578063095ea7b314610358578063099b6bfa1461037457806318160ddd1461039d575b600080fd5b3480156102bf57600080fd5b506102da60048036038101906102d59190613b0f565b610ac8565b6040516102e79190613b57565b60405180910390f35b3480156102fc57600080fd5b50610305610b42565b6040516103129190613c02565b60405180910390f35b34801561032757600080fd5b50610342600480360381019061033d9190613c5a565b610bd4565b60405161034f9190613cc8565b60405180910390f35b610372600480360381019061036d9190613d0f565b610c53565b005b34801561038057600080fd5b5061039b60048036038101906103969190613d85565b610c6c565b005b3480156103a957600080fd5b506103b2610c7e565b6040516103bf9190613dc1565b60405180910390f35b3480156103d457600080fd5b506103dd610c95565b6040516103ea9190613dc1565b60405180910390f35b3480156103ff57600080fd5b5061041a60048036038101906104159190613ddc565b610d44565b005b61043660048036038101906104319190613e09565b610d90565b005b34801561044457600080fd5b5061045f600480360381019061045a9190613e5c565b610ddf565b60405161046d929190613e9c565b60405180910390f35b34801561048257600080fd5b5061049d60048036038101906104989190613ddc565b610e2a565b005b3480156104ab57600080fd5b506104c660048036038101906104c19190614011565b610e76565b005b3480156104d457600080fd5b506104dd610fa8565b6040516104ea9190613cc8565b60405180910390f35b3480156104ff57600080fd5b5061051a60048036038101906105159190613ddc565b610fd2565b005b34801561052857600080fd5b50610543600480360381019061053e919061410b565b611055565b005b34801561055157600080fd5b5061055a611251565b60405161056791906141b3565b60405180910390f35b61058a60048036038101906105859190613e09565b611263565b005b34801561059857600080fd5b506105b360048036038101906105ae9190613d0f565b6112b2565b005b3480156105c157600080fd5b506105dc60048036038101906105d79190613ddc565b6112c8565b005b3480156105ea57600080fd5b5061060560048036038101906106009190614283565b61134b565b005b34801561061357600080fd5b5061062e60048036038101906106299190613c5a565b611366565b60405161063b9190613cc8565b60405180910390f35b34801561065057600080fd5b50610659611378565b6040516106669190613c02565b60405180910390f35b34801561067b57600080fd5b5061069660048036038101906106919190613c5a565b61140a565b005b3480156106a457600080fd5b506106bf60048036038101906106ba9190613ddc565b611453565b6040516106cc9190613dc1565b60405180910390f35b3480156106e157600080fd5b506106ea61150b565b005b3480156106f857600080fd5b50610713600480360381019061070e9190613ddc565b61151f565b005b34801561072157600080fd5b5061072a6115a2565b6040516107379190613cc8565b60405180910390f35b34801561074c57600080fd5b5061076760048036038101906107629190614283565b6115cc565b005b34801561077557600080fd5b5061077e6115e7565b60405161078b9190613c02565b60405180910390f35b3480156107a057600080fd5b506107bb60048036038101906107b69190613c5a565b611679565b005b6107d760048036038101906107d29190613c5a565b61168b565b005b3480156107e557600080fd5b5061080060048036038101906107fb91906142cc565b6117d6565b005b34801561080e57600080fd5b506108176117ef565b60405161082491906143a5565b60405180910390f35b34801561083957600080fd5b506108426118f8565b60405161084f91906144ea565b60405180910390f35b610872600480360381019061086d9190613c5a565b611bb3565b005b61088e6004803603810190610889919061450c565b611dec565b005b6108aa60048036038101906108a591906145ed565b612106565b005b3480156108b857600080fd5b506108d360048036038101906108ce9190614783565b612157565b005b3480156108e157600080fd5b506108fc60048036038101906108f79190614863565b612266565b005b34801561090a57600080fd5b506109136123c4565b60405161092091906148fa565b60405180910390f35b34801561093557600080fd5b50610950600480360381019061094b9190613c5a565b6123ce565b60405161095d9190613c02565b60405180910390f35b34801561097257600080fd5b5061097b61246c565b6040516109889190613dc1565b60405180910390f35b34801561099d57600080fd5b506109b860048036038101906109b39190613ddc565b612476565b005b3480156109c657600080fd5b506109e160048036038101906109dc9190613ddc565b61253a565b005b3480156109ef57600080fd5b506109f86125bd565b604051610a059190613c02565b60405180910390f35b348015610a1a57600080fd5b50610a356004803603810190610a309190614915565b61264f565b604051610a429190613b57565b60405180910390f35b348015610a5757600080fd5b50610a726004803603810190610a6d9190614955565b6126e3565b005b348015610a8057600080fd5b50610a896127a8565b604051610a969190613cc8565b60405180910390f35b348015610aab57600080fd5b50610ac66004803603810190610ac19190613ddc565b6127d2565b005b60007f2a55205a000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19161480610b3b5750610b3a82612855565b5b9050919050565b606060028054610b5190614a37565b80601f0160208091040260200160405190810160405280929190818152602001828054610b7d90614a37565b8015610bca5780601f10610b9f57610100808354040283529160200191610bca565b820191906000526020600020905b815481529060010190602001808311610bad57829003601f168201915b5050505050905090565b6000610bdf826128e7565b610c15576040517fcf4700e400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6006600083815260200190815260200160002060000160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050919050565b81610c5d81612946565b610c678383612a43565b505050565b610c74612b87565b80600b8190555050565b6000610c88612c05565b6001546000540303905090565b600080610ca0612c0e565b9050601760009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166370a08231826040518263ffffffff1660e01b8152600401610cfd9190613cc8565b602060405180830381865afa158015610d1a573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610d3e9190614a7d565b91505090565b610d4c612b87565b80600e60006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b823373ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1614610dce57610dcd33612946565b5b610dd9848484612c16565b50505050565b600080600c54606484610df29190614b08565b610dfc9190614b39565b9050600f60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1691509250929050565b610e32612b87565b80600f60006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b610e7e6115a2565b73ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614610f3857601060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614610f37576040517f59d9793700000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5b806019600083600001518152602001908152602001600020600082015181600001556020820151816001015560408201518160020155606082015181600301556080820151816004015560a08201518160050160006101000a81548160ff02191690831515021790555090505050565b6000600e60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b610fda612b87565b80601260006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055507fc12a7e0d304d2c26d3bcfa3f0ecfadf0def1357903b022333a099d0825fa5ed28160405161104a9190613cc8565b60405180910390a150565b61105d6115a2565b73ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff161461111757601060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614611116576040517f59d9793700000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5b6000815167ffffffffffffffff81111561113457611133613eca565b5b6040519080825280602002602001820160405280156111625781602001602082028036833780820191505090505b50905060005b825181101561123557600083828151811061118657611185614b7b565b5b60200260200101519050806019600083600001518152602001908152602001600020600082015181600001556020820151816001015560408201518160020155606082015181600301556080820151816004015560a08201518160050160006101000a81548160ff021916908315150217905550905050806000015183838151811061121557611214614b7b565b5b60200260200101818152505050808061122d90614baa565b915050611168565b50806016908051906020019061124c929190613a01565b505050565b6daaeb6d7670e522a718067333cd4e81565b823373ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16146112a1576112a033612946565b5b6112ac848484612f38565b50505050565b6112ba612b87565b6112c48282612f58565b5050565b6112d0612b87565b80601760006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055507f41e56a7e7230a7e8ae4ca046a6960d4df3d819b0fd163990a28879b38b64cfcd816040516113409190613cc8565b60405180910390a150565b611353612b87565b80600990816113629190614d94565b5050565b600061137182612ff6565b9050919050565b60606009805461138790614a37565b80601f01602080910402602001604051908101604052809291908181526020018280546113b390614a37565b80156114005780601f106113d557610100808354040283529160200191611400565b820191906000526020600020905b8154815290600101906020018083116113e357829003601f168201915b5050505050905090565b611412612b87565b80600d819055507f7810bd47de260c3e9ee10061cf438099dd12256c79485f12f94dbccc981e806c816040516114489190613dc1565b60405180910390a150565b60008073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff16036114ba576040517f8f4eb60400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b67ffffffffffffffff600560008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054169050919050565b611513612b87565b61151d60006130c2565b565b611527612b87565b80601360006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055507f1d22d5a48eadfb5647b91d018e04c89c10631473eea44257385ad7e9c8e0af50816040516115979190613cc8565b60405180910390a150565b6000600860009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b6115d4612b87565b80600a90816115e39190614d94565b5050565b6060600380546115f690614a37565b80601f016020809104026020016040519081016040528092919081815260200182805461162290614a37565b801561166f5780601f106116445761010080835404028352916020019161166f565b820191906000526020600020905b81548152906001019060200180831161165257829003601f168201915b5050505050905090565b611681612b87565b80600c8190555050565b6002601154036116d0576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016116c790614eb2565b60405180910390fd5b600260118190555060006116e2612c0e565b905060006116ee6117ef565b9050600081600001510361172e576040517fb7b2409700000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b8060a00151611769576040517fc7d08f0400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6117798382604001518434613188565b8173ffffffffffffffffffffffffffffffffffffffff167f819f7e30541f2ed7e36c92ce039f5eb2d66b7dc094b33f416910e8fde56b80dc84346040516117c1929190614ed2565b60405180910390a25050600160118190555050565b816117e081612946565b6117ea83836131ce565b505050565b6117f7613a4e565b60005b6016805490508110156118bc5760006019600060018461181a9190614efb565b81526020019081526020016000206040518060c001604052908160008201548152602001600182015481526020016002820154815260200160038201548152602001600482015481526020016005820160009054906101000a900460ff1615151515815250509050806060015142101580156118995750806080015142105b156118a85780925050506118f5565b5080806118b490614baa565b9150506117fa565b506040518060c0016040528060008152602001600181526020016000815260200160008152602001600081526020016000151581525090505b90565b60606000601680548060200260200160405190810160405280929190818152602001828054801561194857602002820191906000526020600020905b815481526020019060010190808311611934575b505050505090506000815190506000808267ffffffffffffffff81111561197257611971613eca565b5b6040519080825280602002602001820160405280156119ab57816020015b611998613a4e565b8152602001906001900390816119905790505b50905060005b6001846119be9190614f2f565b811015611ae65760005b600182866119d69190614f2f565b6119e09190614f2f565b811015611ad257856001826119f59190614efb565b81518110611a0657611a05614b7b565b5b6020026020010151868281518110611a2157611a20614b7b565b5b60200260200101511115611abf57858181518110611a4257611a41614b7b565b5b6020026020010151935085600182611a5a9190614efb565b81518110611a6b57611a6a614b7b565b5b6020026020010151868281518110611a8657611a85614b7b565b5b6020026020010181815250508386600183611aa19190614efb565b81518110611ab257611ab1614b7b565b5b6020026020010181815250505b8080611aca90614baa565b9150506119c8565b508080611ade90614baa565b9150506119b1565b5060005b83811015611ba85760196000868381518110611b0957611b08614b7b565b5b602002602001015181526020019081526020016000206040518060c001604052908160008201548152602001600182015481526020016002820154815260200160038201548152602001600482015481526020016005820160009054906101000a900460ff161515151581525050828281518110611b8a57611b89614b7b565b5b60200260200101819052508080611ba090614baa565b915050611aea565b508094505050505090565b600260115403611bf8576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611bef90614eb2565b60405180910390fd5b60026011819055506000611c0a612c0e565b90506000601760009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166370a08231836040518263ffffffff1660e01b8152600401611c699190613cc8565b602060405180830381865afa158015611c86573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611caa9190614a7d565b90506000611cb66117ef565b90506000816000015103611cf6576040517fb7b2409700000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b8060200151821015611d45578181602001516040517f81aaf9d5000000000000000000000000000000000000000000000000000000008152600401611d3c929190614ed2565b60405180910390fd5b611d558482604001518534613188565b601760009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff167fd784b0f9b8a9e7cda2027fb08548583cb3927167bc2ff874cae6c0d8b2b6a2608634604051611dd6929190614ed2565b60405180910390a3505050600160118190555050565b600260115403611e31576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611e2890614eb2565b60405180910390fd5b6002601181905550601260009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614611ec0576040517f752e5a0600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b60008190506000601760009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166370a08231836040518263ffffffff1660e01b8152600401611f229190613cc8565b602060405180830381865afa158015611f3f573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611f639190614a7d565b90506000611f6f6117ef565b90506000816000015103611faf576040517fb7b2409700000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b8060200151821015611ffe578181602001516040517f81aaf9d5000000000000000000000000000000000000000000000000000000008152600401611ff5929190614ed2565b60405180910390fd5b61200e8582604001518534613188565b8060a001511561206d578373ffffffffffffffffffffffffffffffffffffffff167f819f7e30541f2ed7e36c92ce039f5eb2d66b7dc094b33f416910e8fde56b80dc8634604051612060929190614ed2565b60405180910390a26120f7565b601760009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff167fd784b0f9b8a9e7cda2027fb08548583cb3927167bc2ff874cae6c0d8b2b6a26087346040516120ee929190614ed2565b60405180910390a35b50505060016011819055505050565b833373ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16146121445761214333612946565b5b612150858585856132d9565b5050505050565b61215f612b87565b600061216a8261334c565b9050600d5481612178610c7e565b6121829190614efb565b11156040518060400160405280601b81526020017f4d617820737570706c792077696c6c2062652065786365656465640000000000815250906121fb576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016121f29190613c02565b60405180910390fd5b5060005b82518110156122615761224e83828151811061221e5761221d614b7b565b5b60200260200101516000015184838151811061223d5761223c614b7b565b5b602002602001015160200151612f58565b808061225990614baa565b9150506121ff565b505050565b61226e6115a2565b73ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff161461232857601360009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614612327576040517f59d9793700000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5b601860009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663ba729e9e86868686866040518663ffffffff1660e01b815260040161238b959493929190614f9f565b600060405180830381600087803b1580156123a557600080fd5b505af11580156123b9573d6000803e3d6000fd5b505050505050505050565b6000600b54905090565b60606123d9826128e7565b61240f576040517fa14c4b5000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b60006124196133a8565b905060008151036124395760405180602001604052806000815250612464565b806124438461343a565b604051602001612454929190615029565b6040516020818303038152906040525b915050919050565b6000600d54905090565b61247e612b87565b80601460006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555080601860006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055507fc903d20b27aa099c90f699723020bef0d98d9108ec4c006832a319fd100c68fb8160405161252f9190613cc8565b60405180910390a150565b612542612b87565b80601060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055507f8a99bb12510d87c60fe05e5000ed6cd7dd6e1ccc3c11ab703562b101807f3d7c816040516125b29190613cc8565b60405180910390a150565b6060600a80546125cc90614a37565b80601f01602080910402602001604051908101604052809291908181526020018280546125f890614a37565b80156126455780601f1061261a57610100808354040283529160200191612645565b820191906000526020600020905b81548152906001019060200180831161262857829003601f168201915b5050505050905090565b6000600760008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16905092915050565b6126eb612b87565b60006126f561348a565b14612735576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161272c906150bf565b60405180910390fd5b61273e8561140a565b61274784610e2a565b61275083610d44565b6127598261134b565b612762816115cc565b7facf9cef4a200d5fe543321e9664ea8b4fe21c59ecbf1506f1155e3316442487285858585856040516127999594939291906150df565b60405180910390a15050505050565b6000600f60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b6127da612b87565b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1603612849576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612840906151b2565b60405180910390fd5b612852816130c2565b50565b60006301ffc9a760e01b827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614806128b057506380ac58cd60e01b827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b806128e05750635b5e139f60e01b827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b9050919050565b6000816128f2612c05565b11158015612901575060005482105b801561293f575060007c0100000000000000000000000000000000000000000000000000000000600460008581526020019081526020016000205416145b9050919050565b60006daaeb6d7670e522a718067333cd4e73ffffffffffffffffffffffffffffffffffffffff163b1115612a40576daaeb6d7670e522a718067333cd4e73ffffffffffffffffffffffffffffffffffffffff1663c617113430836040518363ffffffff1660e01b81526004016129bd9291906151d2565b602060405180830381865afa1580156129da573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906129fe9190615210565b612a3f57806040517fede71dcc000000000000000000000000000000000000000000000000000000008152600401612a369190613cc8565b60405180910390fd5b5b50565b6000612a4e82611366565b90508073ffffffffffffffffffffffffffffffffffffffff16612a6f61349d565b73ffffffffffffffffffffffffffffffffffffffff1614612ad257612a9b81612a9661349d565b61264f565b612ad1576040517fcfb3b94200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5b826006600084815260200190815260200160002060000160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550818373ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a4505050565b612b8f612c0e565b73ffffffffffffffffffffffffffffffffffffffff16612bad6115a2565b73ffffffffffffffffffffffffffffffffffffffff1614612c03576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612bfa90615289565b60405180910390fd5b565b60006001905090565b600033905090565b6000612c2182612ff6565b90508373ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1614612c88576040517fa114810000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600080612c94846134a5565b91509150612caa8187612ca561349d565b6134cc565b612cf657612cbf86612cba61349d565b61264f565b612cf5576040517f59c896be00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5b600073ffffffffffffffffffffffffffffffffffffffff168573ffffffffffffffffffffffffffffffffffffffff1603612d5c576040517fea553b3400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b612d698686866001613510565b8015612d7457600082555b600560008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600081546001900391905081905550600560008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000815460010191905081905550612e4285612e1e888887613516565b7c02000000000000000000000000000000000000000000000000000000001761353e565b600460008681526020019081526020016000208190555060007c0200000000000000000000000000000000000000000000000000000000841603612ec85760006001850190506000600460008381526020019081526020016000205403612ec6576000548114612ec5578360046000838152602001908152602001600020819055505b5b505b838573ffffffffffffffffffffffffffffffffffffffff168773ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a4612f308686866001613569565b505050505050565b612f5383838360405180602001604052806000815250612106565b505050565b600d5481612f64610c7e565b612f6e9190614efb565b11156040518060400160405280601b81526020017f4d617820737570706c792077696c6c206265206578636565646564000000000081525090612fe7576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612fde9190613c02565b60405180910390fd5b50612ff2828261356f565b5050565b60008082905080613005612c05565b1161308b5760005481101561308a5760006004600083815260200190815260200160002054905060007c0100000000000000000000000000000000000000000000000000000000821603613088575b6000810361307e576004600083600190039350838152602001908152602001600020549050613054565b80925050506130bd565b505b5b6040517fdf2d9b4200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b919050565b6000600860009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905081600860006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b613192848461358d565b61319c8285612f58565b6131c8600e60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16826135ed565b50505050565b80600760006131db61349d565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055508173ffffffffffffffffffffffffffffffffffffffff1661328861349d565b73ffffffffffffffffffffffffffffffffffffffff167f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31836040516132cd9190613b57565b60405180910390a35050565b6132e4848484610d90565b60008373ffffffffffffffffffffffffffffffffffffffff163b146133465761330f84848484613640565b613345576040517fd1a57ed600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5b50505050565b6000806000905060005b835181101561339e5783818151811061337257613371614b7b565b5b602002602001015160200151826133899190614efb565b9150808061339690614baa565b915050613356565b5080915050919050565b6060600980546133b790614a37565b80601f01602080910402602001604051908101604052809291908181526020018280546133e390614a37565b80156134305780601f1061340557610100808354040283529160200191613430565b820191906000526020600020905b81548152906001019060200180831161341357829003601f168201915b5050505050905090565b606060a060405101806040526020810391506000825281835b60011561347557600184039350600a81066030018453600a8104905080613453575b50828103602084039350808452505050919050565b6000613494612c05565b60005403905090565b600033905090565b60008060006006600085815260200190815260200160002090508092508254915050915091565b600073ffffffffffffffffffffffffffffffffffffffff8316925073ffffffffffffffffffffffffffffffffffffffff821691508382148383141790509392505050565b50505050565b60008060e883901c905060e861352d868684613790565b62ffffff16901b9150509392505050565b600073ffffffffffffffffffffffffffffffffffffffff83169250814260a01b178317905092915050565b50505050565b613589828260405180602001604052806000815250613799565b5050565b80826135999190614b39565b34146135e9573481836135ac9190614b39565b6040517f0d35e9210000000000000000000000000000000000000000000000000000000081526004016135e0929190614ed2565b60405180910390fd5b5050565b600080600080600085875af190508061363b576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401613632906152f5565b60405180910390fd5b505050565b60008373ffffffffffffffffffffffffffffffffffffffff1663150b7a0261366661349d565b8786866040518563ffffffff1660e01b8152600401613688949392919061536a565b6020604051808303816000875af19250505080156136c457506040513d601f19601f820116820180604052508101906136c191906153cb565b60015b61373d573d80600081146136f4576040519150601f19603f3d011682016040523d82523d6000602084013e6136f9565b606091505b506000815103613735576040517fd1a57ed600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b805181602001fd5b63150b7a0260e01b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916817bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614915050949350505050565b60009392505050565b6137a38383613836565b60008373ffffffffffffffffffffffffffffffffffffffff163b1461383157600080549050600083820390505b6137e36000868380600101945086613640565b613819576040517fd1a57ed600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b8181106137d057816000541461382e57600080fd5b50505b505050565b60008054905060008203613876576040517fb562e8dd00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6138836000848385613510565b600160406001901b178202600560008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600082825401925050819055506138fa836138eb6000866000613516565b6138f4856139f1565b1761353e565b6004600083815260200190815260200160002081905550600080838301905073ffffffffffffffffffffffffffffffffffffffff85169150828260007fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef600080a4600183015b81811461399b57808360007fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef600080a4600181019050613960565b50600082036139d6576040517f2e07630000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b8060008190555050506139ec6000848385613569565b505050565b60006001821460e11b9050919050565b828054828255906000526020600020908101928215613a3d579160200282015b82811115613a3c578251825591602001919060010190613a21565b5b509050613a4a9190613a86565b5090565b6040518060c0016040528060008152602001600081526020016000815260200160008152602001600081526020016000151581525090565b5b80821115613a9f576000816000905550600101613a87565b5090565b6000604051905090565b600080fd5b600080fd5b60007fffffffff0000000000000000000000000000000000000000000000000000000082169050919050565b613aec81613ab7565b8114613af757600080fd5b50565b600081359050613b0981613ae3565b92915050565b600060208284031215613b2557613b24613aad565b5b6000613b3384828501613afa565b91505092915050565b60008115159050919050565b613b5181613b3c565b82525050565b6000602082019050613b6c6000830184613b48565b92915050565b600081519050919050565b600082825260208201905092915050565b60005b83811015613bac578082015181840152602081019050613b91565b60008484015250505050565b6000601f19601f8301169050919050565b6000613bd482613b72565b613bde8185613b7d565b9350613bee818560208601613b8e565b613bf781613bb8565b840191505092915050565b60006020820190508181036000830152613c1c8184613bc9565b905092915050565b6000819050919050565b613c3781613c24565b8114613c4257600080fd5b50565b600081359050613c5481613c2e565b92915050565b600060208284031215613c7057613c6f613aad565b5b6000613c7e84828501613c45565b91505092915050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000613cb282613c87565b9050919050565b613cc281613ca7565b82525050565b6000602082019050613cdd6000830184613cb9565b92915050565b613cec81613ca7565b8114613cf757600080fd5b50565b600081359050613d0981613ce3565b92915050565b60008060408385031215613d2657613d25613aad565b5b6000613d3485828601613cfa565b9250506020613d4585828601613c45565b9150509250929050565b6000819050919050565b613d6281613d4f565b8114613d6d57600080fd5b50565b600081359050613d7f81613d59565b92915050565b600060208284031215613d9b57613d9a613aad565b5b6000613da984828501613d70565b91505092915050565b613dbb81613c24565b82525050565b6000602082019050613dd66000830184613db2565b92915050565b600060208284031215613df257613df1613aad565b5b6000613e0084828501613cfa565b91505092915050565b600080600060608486031215613e2257613e21613aad565b5b6000613e3086828701613cfa565b9350506020613e4186828701613cfa565b9250506040613e5286828701613c45565b9150509250925092565b60008060408385031215613e7357613e72613aad565b5b6000613e8185828601613c45565b9250506020613e9285828601613c45565b9150509250929050565b6000604082019050613eb16000830185613cb9565b613ebe6020830184613db2565b9392505050565b600080fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b613f0282613bb8565b810181811067ffffffffffffffff82111715613f2157613f20613eca565b5b80604052505050565b6000613f34613aa3565b9050613f408282613ef9565b919050565b613f4e81613b3c565b8114613f5957600080fd5b50565b600081359050613f6b81613f45565b92915050565b600060c08284031215613f8757613f86613ec5565b5b613f9160c0613f2a565b90506000613fa184828501613c45565b6000830152506020613fb584828501613c45565b6020830152506040613fc984828501613c45565b6040830152506060613fdd84828501613c45565b6060830152506080613ff184828501613c45565b60808301525060a061400584828501613f5c565b60a08301525092915050565b600060c0828403121561402757614026613aad565b5b600061403584828501613f71565b91505092915050565b600080fd5b600067ffffffffffffffff82111561405e5761405d613eca565b5b602082029050602081019050919050565b600080fd5b600061408761408284614043565b613f2a565b90508083825260208201905060c084028301858111156140aa576140a961406f565b5b835b818110156140d357806140bf8882613f71565b84526020840193505060c0810190506140ac565b5050509392505050565b600082601f8301126140f2576140f161403e565b5b8135614102848260208601614074565b91505092915050565b60006020828403121561412157614120613aad565b5b600082013567ffffffffffffffff81111561413f5761413e613ab2565b5b61414b848285016140dd565b91505092915050565b6000819050919050565b600061417961417461416f84613c87565b614154565b613c87565b9050919050565b600061418b8261415e565b9050919050565b600061419d82614180565b9050919050565b6141ad81614192565b82525050565b60006020820190506141c860008301846141a4565b92915050565b600080fd5b600067ffffffffffffffff8211156141ee576141ed613eca565b5b6141f782613bb8565b9050602081019050919050565b82818337600083830152505050565b6000614226614221846141d3565b613f2a565b905082815260208101848484011115614242576142416141ce565b5b61424d848285614204565b509392505050565b600082601f83011261426a5761426961403e565b5b813561427a848260208601614213565b91505092915050565b60006020828403121561429957614298613aad565b5b600082013567ffffffffffffffff8111156142b7576142b6613ab2565b5b6142c384828501614255565b91505092915050565b600080604083850312156142e3576142e2613aad565b5b60006142f185828601613cfa565b925050602061430285828601613f5c565b9150509250929050565b61431581613c24565b82525050565b61432481613b3c565b82525050565b60c082016000820151614340600085018261430c565b506020820151614353602085018261430c565b506040820151614366604085018261430c565b506060820151614379606085018261430c565b50608082015161438c608085018261430c565b5060a082015161439f60a085018261431b565b50505050565b600060c0820190506143ba600083018461432a565b92915050565b600081519050919050565b600082825260208201905092915050565b6000819050602082019050919050565b60c082016000820151614402600085018261430c565b506020820151614415602085018261430c565b506040820151614428604085018261430c565b50606082015161443b606085018261430c565b50608082015161444e608085018261430c565b5060a082015161446160a085018261431b565b50505050565b600061447383836143ec565b60c08301905092915050565b6000602082019050919050565b6000614497826143c0565b6144a181856143cb565b93506144ac836143dc565b8060005b838110156144dd5781516144c48882614467565b97506144cf8361447f565b9250506001810190506144b0565b5085935050505092915050565b60006020820190508181036000830152614504818461448c565b905092915050565b6000806040838503121561452357614522613aad565b5b600061453185828601613c45565b925050602061454285828601613cfa565b9150509250929050565b600067ffffffffffffffff82111561456757614566613eca565b5b61457082613bb8565b9050602081019050919050565b600061459061458b8461454c565b613f2a565b9050828152602081018484840111156145ac576145ab6141ce565b5b6145b7848285614204565b509392505050565b600082601f8301126145d4576145d361403e565b5b81356145e484826020860161457d565b91505092915050565b6000806000806080858703121561460757614606613aad565b5b600061461587828801613cfa565b945050602061462687828801613cfa565b935050604061463787828801613c45565b925050606085013567ffffffffffffffff81111561465857614657613ab2565b5b614664878288016145bf565b91505092959194509250565b600067ffffffffffffffff82111561468b5761468a613eca565b5b602082029050602081019050919050565b6000604082840312156146b2576146b1613ec5565b5b6146bc6040613f2a565b905060006146cc84828501613cfa565b60008301525060206146e084828501613c45565b60208301525092915050565b60006146ff6146fa84614670565b613f2a565b905080838252602082019050604084028301858111156147225761472161406f565b5b835b8181101561474b5780614737888261469c565b845260208401935050604081019050614724565b5050509392505050565b600082601f83011261476a5761476961403e565b5b813561477a8482602086016146ec565b91505092915050565b60006020828403121561479957614798613aad565b5b600082013567ffffffffffffffff8111156147b7576147b6613ab2565b5b6147c384828501614755565b91505092915050565b600063ffffffff82169050919050565b6147e5816147cc565b81146147f057600080fd5b50565b600081359050614802816147dc565b92915050565b600080fd5b60008083601f8401126148235761482261403e565b5b8235905067ffffffffffffffff8111156148405761483f614808565b5b60208301915083600182028301111561485c5761485b61406f565b5b9250929050565b60008060008060006080868803121561487f5761487e613aad565b5b600061488d88828901613cfa565b955050602061489e888289016147f3565b94505060406148af888289016147f3565b935050606086013567ffffffffffffffff8111156148d0576148cf613ab2565b5b6148dc8882890161480d565b92509250509295509295909350565b6148f481613d4f565b82525050565b600060208201905061490f60008301846148eb565b92915050565b6000806040838503121561492c5761492b613aad565b5b600061493a85828601613cfa565b925050602061494b85828601613cfa565b9150509250929050565b600080600080600060a0868803121561497157614970613aad565b5b600061497f88828901613c45565b955050602061499088828901613cfa565b94505060406149a188828901613cfa565b935050606086013567ffffffffffffffff8111156149c2576149c1613ab2565b5b6149ce88828901614255565b925050608086013567ffffffffffffffff8111156149ef576149ee613ab2565b5b6149fb88828901614255565b9150509295509295909350565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b60006002820490506001821680614a4f57607f821691505b602082108103614a6257614a61614a08565b5b50919050565b600081519050614a7781613c2e565b92915050565b600060208284031215614a9357614a92613aad565b5b6000614aa184828501614a68565b91505092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b6000614b1382613c24565b9150614b1e83613c24565b925082614b2e57614b2d614aaa565b5b828204905092915050565b6000614b4482613c24565b9150614b4f83613c24565b9250828202614b5d81613c24565b91508282048414831517614b7457614b73614ad9565b5b5092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b6000614bb582613c24565b91507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff8203614be757614be6614ad9565b5b600182019050919050565b60008190508160005260206000209050919050565b60006020601f8301049050919050565b600082821b905092915050565b600060088302614c547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff82614c17565b614c5e8683614c17565b95508019841693508086168417925050509392505050565b6000614c91614c8c614c8784613c24565b614154565b613c24565b9050919050565b6000819050919050565b614cab83614c76565b614cbf614cb782614c98565b848454614c24565b825550505050565b600090565b614cd4614cc7565b614cdf818484614ca2565b505050565b5b81811015614d0357614cf8600082614ccc565b600181019050614ce5565b5050565b601f821115614d4857614d1981614bf2565b614d2284614c07565b81016020851015614d31578190505b614d45614d3d85614c07565b830182614ce4565b50505b505050565b600082821c905092915050565b6000614d6b60001984600802614d4d565b1980831691505092915050565b6000614d848383614d5a565b9150826002028217905092915050565b614d9d82613b72565b67ffffffffffffffff811115614db657614db5613eca565b5b614dc08254614a37565b614dcb828285614d07565b600060209050601f831160018114614dfe5760008415614dec578287015190505b614df68582614d78565b865550614e5e565b601f198416614e0c86614bf2565b60005b82811015614e3457848901518255600182019150602085019450602081019050614e0f565b86831015614e515784890151614e4d601f891682614d5a565b8355505b6001600288020188555050505b505050505050565b7f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00600082015250565b6000614e9c601f83613b7d565b9150614ea782614e66565b602082019050919050565b60006020820190508181036000830152614ecb81614e8f565b9050919050565b6000604082019050614ee76000830185613db2565b614ef46020830184613db2565b9392505050565b6000614f0682613c24565b9150614f1183613c24565b9250828201905080821115614f2957614f28614ad9565b5b92915050565b6000614f3a82613c24565b9150614f4583613c24565b9250828203905081811115614f5d57614f5c614ad9565b5b92915050565b614f6c816147cc565b82525050565b6000614f7e8385613b7d565b9350614f8b838584614204565b614f9483613bb8565b840190509392505050565b6000608082019050614fb46000830188613cb9565b614fc16020830187614f63565b614fce6040830186614f63565b8181036060830152614fe1818486614f72565b90509695505050505050565b600081905092915050565b600061500382613b72565b61500d8185614fed565b935061501d818560208601613b8e565b80840191505092915050565b60006150358285614ff8565b91506150418284614ff8565b91508190509392505050565b7f43616e6e6f742073657420636f6e666967206166746572206d696e74696e672060008201527f68617320626567756e0000000000000000000000000000000000000000000000602082015250565b60006150a9602983613b7d565b91506150b48261504d565b604082019050919050565b600060208201905081810360008301526150d88161509c565b9050919050565b600060a0820190506150f46000830188613db2565b6151016020830187613cb9565b61510e6040830186613cb9565b81810360608301526151208185613bc9565b905081810360808301526151348184613bc9565b90509695505050505050565b7f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160008201527f6464726573730000000000000000000000000000000000000000000000000000602082015250565b600061519c602683613b7d565b91506151a782615140565b604082019050919050565b600060208201905081810360008301526151cb8161518f565b9050919050565b60006040820190506151e76000830185613cb9565b6151f46020830184613cb9565b9392505050565b60008151905061520a81613f45565b92915050565b60006020828403121561522657615225613aad565b5b6000615234848285016151fb565b91505092915050565b7f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572600082015250565b6000615273602083613b7d565b915061527e8261523d565b602082019050919050565b600060208201905081810360008301526152a281615266565b9050919050565b7f4554485f5452414e534645525f4641494c454400000000000000000000000000600082015250565b60006152df601383613b7d565b91506152ea826152a9565b602082019050919050565b6000602082019050818103600083015261530e816152d2565b9050919050565b600081519050919050565b600082825260208201905092915050565b600061533c82615315565b6153468185615320565b9350615356818560208601613b8e565b61535f81613bb8565b840191505092915050565b600060808201905061537f6000830187613cb9565b61538c6020830186613cb9565b6153996040830185613db2565b81810360608301526153ab8184615331565b905095945050505050565b6000815190506153c581613ae3565b92915050565b6000602082840312156153e1576153e0613aad565b5b60006153ef848285016153b6565b9150509291505056fea26469706673582212202af71b439b720531cc85ad1b6d7a8ea285b32f3e8cc955eb4c2ba2d6c007830e64736f6c6343000811003300000000000000000000000000000000000000000000000000000000000000e0000000000000000000000000000000000000000000000000000000000000012000000000000000000000000000000000000000000000000000000000000009c4000000000000000000000000000000000000000000000000000000000000016000000000000000000000000000000000000000000000000000000000000001e0000000000000000000000000ad87b6f80686f5c797f89edcba27f1325afc2718000000000000000000000000dab1a1854214684ace522439684a145e6250523300000000000000000000000000000000000000000000000000000000000000115375727669766f7220536572696573203200000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000115355525649564f522d5345524945532d32000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000004268747470733a2f2f6170692e6f72616e6765636f6d65742e696f2f636f6c6c65637469626c652d6d657461646174612f7375727669766f722d7365726965732d322f000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000004a68747470733a2f2f6170692e6f72616e6765636f6d65742e696f2f636f6c6c65637469626c652d636f6e7472616374732f7375727669766f722d7365726965732d322f6f70656e73656100000000000000000000000000000000000000000000
Deployed Bytecode
0x6080604052600436106102ae5760003560e01c8063715018a611610175578063b88d4fde116100dc578063da23f33211610095578063e985e9c51161006f578063e985e9c514610a0e578063ef1b7f6914610a4b578063f053dc5c14610a74578063f2fde38b14610a9f576102ae565b8063da23f33214610991578063df8089ef146109ba578063e8a3d485146109e3576102ae565b8063b88d4fde14610890578063b98c27e6146108ac578063ba729e9e146108d5578063c6ab67a3146108fe578063c87b56dd14610929578063d5abeb0114610966576102ae565b8063a0712d681161012e578063a0712d68146107bd578063a22cb465146107d9578063a3a40ea514610802578063a7f3997a1461082d578063ae9de7f614610858578063b723b34e14610874576102ae565b8063715018a6146106d557806372f44142146106ec5780638da5cb5b14610715578063938e3d7b1461074057806395d89b41146107695780639a4fc64014610794576102ae565b806338af3eed1161021957806354df98ad116101d257806354df98ad146105b557806355f804b3146105de5780636352211e146106075780636c0360eb146106445780636f8b44b01461066f57806370a0823114610698576102ae565b806338af3eed146104c85780634111406f146104f357806341b55ef31461051c57806341f434341461054557806342842e0e14610570578063484b973c1461058c576102ae565b806318ca4b141161026b57806318ca4b14146103c85780631c31f710146103f357806323b872dd1461041c5780632a55205a146104385780632a9e63c6146104765780632f9122691461049f576102ae565b806301ffc9a7146102b357806306fdde03146102f0578063081812fc1461031b578063095ea7b314610358578063099b6bfa1461037457806318160ddd1461039d575b600080fd5b3480156102bf57600080fd5b506102da60048036038101906102d59190613b0f565b610ac8565b6040516102e79190613b57565b60405180910390f35b3480156102fc57600080fd5b50610305610b42565b6040516103129190613c02565b60405180910390f35b34801561032757600080fd5b50610342600480360381019061033d9190613c5a565b610bd4565b60405161034f9190613cc8565b60405180910390f35b610372600480360381019061036d9190613d0f565b610c53565b005b34801561038057600080fd5b5061039b60048036038101906103969190613d85565b610c6c565b005b3480156103a957600080fd5b506103b2610c7e565b6040516103bf9190613dc1565b60405180910390f35b3480156103d457600080fd5b506103dd610c95565b6040516103ea9190613dc1565b60405180910390f35b3480156103ff57600080fd5b5061041a60048036038101906104159190613ddc565b610d44565b005b61043660048036038101906104319190613e09565b610d90565b005b34801561044457600080fd5b5061045f600480360381019061045a9190613e5c565b610ddf565b60405161046d929190613e9c565b60405180910390f35b34801561048257600080fd5b5061049d60048036038101906104989190613ddc565b610e2a565b005b3480156104ab57600080fd5b506104c660048036038101906104c19190614011565b610e76565b005b3480156104d457600080fd5b506104dd610fa8565b6040516104ea9190613cc8565b60405180910390f35b3480156104ff57600080fd5b5061051a60048036038101906105159190613ddc565b610fd2565b005b34801561052857600080fd5b50610543600480360381019061053e919061410b565b611055565b005b34801561055157600080fd5b5061055a611251565b60405161056791906141b3565b60405180910390f35b61058a60048036038101906105859190613e09565b611263565b005b34801561059857600080fd5b506105b360048036038101906105ae9190613d0f565b6112b2565b005b3480156105c157600080fd5b506105dc60048036038101906105d79190613ddc565b6112c8565b005b3480156105ea57600080fd5b5061060560048036038101906106009190614283565b61134b565b005b34801561061357600080fd5b5061062e60048036038101906106299190613c5a565b611366565b60405161063b9190613cc8565b60405180910390f35b34801561065057600080fd5b50610659611378565b6040516106669190613c02565b60405180910390f35b34801561067b57600080fd5b5061069660048036038101906106919190613c5a565b61140a565b005b3480156106a457600080fd5b506106bf60048036038101906106ba9190613ddc565b611453565b6040516106cc9190613dc1565b60405180910390f35b3480156106e157600080fd5b506106ea61150b565b005b3480156106f857600080fd5b50610713600480360381019061070e9190613ddc565b61151f565b005b34801561072157600080fd5b5061072a6115a2565b6040516107379190613cc8565b60405180910390f35b34801561074c57600080fd5b5061076760048036038101906107629190614283565b6115cc565b005b34801561077557600080fd5b5061077e6115e7565b60405161078b9190613c02565b60405180910390f35b3480156107a057600080fd5b506107bb60048036038101906107b69190613c5a565b611679565b005b6107d760048036038101906107d29190613c5a565b61168b565b005b3480156107e557600080fd5b5061080060048036038101906107fb91906142cc565b6117d6565b005b34801561080e57600080fd5b506108176117ef565b60405161082491906143a5565b60405180910390f35b34801561083957600080fd5b506108426118f8565b60405161084f91906144ea565b60405180910390f35b610872600480360381019061086d9190613c5a565b611bb3565b005b61088e6004803603810190610889919061450c565b611dec565b005b6108aa60048036038101906108a591906145ed565b612106565b005b3480156108b857600080fd5b506108d360048036038101906108ce9190614783565b612157565b005b3480156108e157600080fd5b506108fc60048036038101906108f79190614863565b612266565b005b34801561090a57600080fd5b506109136123c4565b60405161092091906148fa565b60405180910390f35b34801561093557600080fd5b50610950600480360381019061094b9190613c5a565b6123ce565b60405161095d9190613c02565b60405180910390f35b34801561097257600080fd5b5061097b61246c565b6040516109889190613dc1565b60405180910390f35b34801561099d57600080fd5b506109b860048036038101906109b39190613ddc565b612476565b005b3480156109c657600080fd5b506109e160048036038101906109dc9190613ddc565b61253a565b005b3480156109ef57600080fd5b506109f86125bd565b604051610a059190613c02565b60405180910390f35b348015610a1a57600080fd5b50610a356004803603810190610a309190614915565b61264f565b604051610a429190613b57565b60405180910390f35b348015610a5757600080fd5b50610a726004803603810190610a6d9190614955565b6126e3565b005b348015610a8057600080fd5b50610a896127a8565b604051610a969190613cc8565b60405180910390f35b348015610aab57600080fd5b50610ac66004803603810190610ac19190613ddc565b6127d2565b005b60007f2a55205a000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19161480610b3b5750610b3a82612855565b5b9050919050565b606060028054610b5190614a37565b80601f0160208091040260200160405190810160405280929190818152602001828054610b7d90614a37565b8015610bca5780601f10610b9f57610100808354040283529160200191610bca565b820191906000526020600020905b815481529060010190602001808311610bad57829003601f168201915b5050505050905090565b6000610bdf826128e7565b610c15576040517fcf4700e400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6006600083815260200190815260200160002060000160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050919050565b81610c5d81612946565b610c678383612a43565b505050565b610c74612b87565b80600b8190555050565b6000610c88612c05565b6001546000540303905090565b600080610ca0612c0e565b9050601760009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166370a08231826040518263ffffffff1660e01b8152600401610cfd9190613cc8565b602060405180830381865afa158015610d1a573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610d3e9190614a7d565b91505090565b610d4c612b87565b80600e60006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b823373ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1614610dce57610dcd33612946565b5b610dd9848484612c16565b50505050565b600080600c54606484610df29190614b08565b610dfc9190614b39565b9050600f60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1691509250929050565b610e32612b87565b80600f60006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b610e7e6115a2565b73ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614610f3857601060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614610f37576040517f59d9793700000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5b806019600083600001518152602001908152602001600020600082015181600001556020820151816001015560408201518160020155606082015181600301556080820151816004015560a08201518160050160006101000a81548160ff02191690831515021790555090505050565b6000600e60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b610fda612b87565b80601260006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055507fc12a7e0d304d2c26d3bcfa3f0ecfadf0def1357903b022333a099d0825fa5ed28160405161104a9190613cc8565b60405180910390a150565b61105d6115a2565b73ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff161461111757601060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614611116576040517f59d9793700000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5b6000815167ffffffffffffffff81111561113457611133613eca565b5b6040519080825280602002602001820160405280156111625781602001602082028036833780820191505090505b50905060005b825181101561123557600083828151811061118657611185614b7b565b5b60200260200101519050806019600083600001518152602001908152602001600020600082015181600001556020820151816001015560408201518160020155606082015181600301556080820151816004015560a08201518160050160006101000a81548160ff021916908315150217905550905050806000015183838151811061121557611214614b7b565b5b60200260200101818152505050808061122d90614baa565b915050611168565b50806016908051906020019061124c929190613a01565b505050565b6daaeb6d7670e522a718067333cd4e81565b823373ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16146112a1576112a033612946565b5b6112ac848484612f38565b50505050565b6112ba612b87565b6112c48282612f58565b5050565b6112d0612b87565b80601760006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055507f41e56a7e7230a7e8ae4ca046a6960d4df3d819b0fd163990a28879b38b64cfcd816040516113409190613cc8565b60405180910390a150565b611353612b87565b80600990816113629190614d94565b5050565b600061137182612ff6565b9050919050565b60606009805461138790614a37565b80601f01602080910402602001604051908101604052809291908181526020018280546113b390614a37565b80156114005780601f106113d557610100808354040283529160200191611400565b820191906000526020600020905b8154815290600101906020018083116113e357829003601f168201915b5050505050905090565b611412612b87565b80600d819055507f7810bd47de260c3e9ee10061cf438099dd12256c79485f12f94dbccc981e806c816040516114489190613dc1565b60405180910390a150565b60008073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff16036114ba576040517f8f4eb60400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b67ffffffffffffffff600560008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054169050919050565b611513612b87565b61151d60006130c2565b565b611527612b87565b80601360006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055507f1d22d5a48eadfb5647b91d018e04c89c10631473eea44257385ad7e9c8e0af50816040516115979190613cc8565b60405180910390a150565b6000600860009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b6115d4612b87565b80600a90816115e39190614d94565b5050565b6060600380546115f690614a37565b80601f016020809104026020016040519081016040528092919081815260200182805461162290614a37565b801561166f5780601f106116445761010080835404028352916020019161166f565b820191906000526020600020905b81548152906001019060200180831161165257829003601f168201915b5050505050905090565b611681612b87565b80600c8190555050565b6002601154036116d0576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016116c790614eb2565b60405180910390fd5b600260118190555060006116e2612c0e565b905060006116ee6117ef565b9050600081600001510361172e576040517fb7b2409700000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b8060a00151611769576040517fc7d08f0400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6117798382604001518434613188565b8173ffffffffffffffffffffffffffffffffffffffff167f819f7e30541f2ed7e36c92ce039f5eb2d66b7dc094b33f416910e8fde56b80dc84346040516117c1929190614ed2565b60405180910390a25050600160118190555050565b816117e081612946565b6117ea83836131ce565b505050565b6117f7613a4e565b60005b6016805490508110156118bc5760006019600060018461181a9190614efb565b81526020019081526020016000206040518060c001604052908160008201548152602001600182015481526020016002820154815260200160038201548152602001600482015481526020016005820160009054906101000a900460ff1615151515815250509050806060015142101580156118995750806080015142105b156118a85780925050506118f5565b5080806118b490614baa565b9150506117fa565b506040518060c0016040528060008152602001600181526020016000815260200160008152602001600081526020016000151581525090505b90565b60606000601680548060200260200160405190810160405280929190818152602001828054801561194857602002820191906000526020600020905b815481526020019060010190808311611934575b505050505090506000815190506000808267ffffffffffffffff81111561197257611971613eca565b5b6040519080825280602002602001820160405280156119ab57816020015b611998613a4e565b8152602001906001900390816119905790505b50905060005b6001846119be9190614f2f565b811015611ae65760005b600182866119d69190614f2f565b6119e09190614f2f565b811015611ad257856001826119f59190614efb565b81518110611a0657611a05614b7b565b5b6020026020010151868281518110611a2157611a20614b7b565b5b60200260200101511115611abf57858181518110611a4257611a41614b7b565b5b6020026020010151935085600182611a5a9190614efb565b81518110611a6b57611a6a614b7b565b5b6020026020010151868281518110611a8657611a85614b7b565b5b6020026020010181815250508386600183611aa19190614efb565b81518110611ab257611ab1614b7b565b5b6020026020010181815250505b8080611aca90614baa565b9150506119c8565b508080611ade90614baa565b9150506119b1565b5060005b83811015611ba85760196000868381518110611b0957611b08614b7b565b5b602002602001015181526020019081526020016000206040518060c001604052908160008201548152602001600182015481526020016002820154815260200160038201548152602001600482015481526020016005820160009054906101000a900460ff161515151581525050828281518110611b8a57611b89614b7b565b5b60200260200101819052508080611ba090614baa565b915050611aea565b508094505050505090565b600260115403611bf8576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611bef90614eb2565b60405180910390fd5b60026011819055506000611c0a612c0e565b90506000601760009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166370a08231836040518263ffffffff1660e01b8152600401611c699190613cc8565b602060405180830381865afa158015611c86573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611caa9190614a7d565b90506000611cb66117ef565b90506000816000015103611cf6576040517fb7b2409700000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b8060200151821015611d45578181602001516040517f81aaf9d5000000000000000000000000000000000000000000000000000000008152600401611d3c929190614ed2565b60405180910390fd5b611d558482604001518534613188565b601760009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff167fd784b0f9b8a9e7cda2027fb08548583cb3927167bc2ff874cae6c0d8b2b6a2608634604051611dd6929190614ed2565b60405180910390a3505050600160118190555050565b600260115403611e31576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611e2890614eb2565b60405180910390fd5b6002601181905550601260009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614611ec0576040517f752e5a0600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b60008190506000601760009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166370a08231836040518263ffffffff1660e01b8152600401611f229190613cc8565b602060405180830381865afa158015611f3f573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611f639190614a7d565b90506000611f6f6117ef565b90506000816000015103611faf576040517fb7b2409700000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b8060200151821015611ffe578181602001516040517f81aaf9d5000000000000000000000000000000000000000000000000000000008152600401611ff5929190614ed2565b60405180910390fd5b61200e8582604001518534613188565b8060a001511561206d578373ffffffffffffffffffffffffffffffffffffffff167f819f7e30541f2ed7e36c92ce039f5eb2d66b7dc094b33f416910e8fde56b80dc8634604051612060929190614ed2565b60405180910390a26120f7565b601760009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff167fd784b0f9b8a9e7cda2027fb08548583cb3927167bc2ff874cae6c0d8b2b6a26087346040516120ee929190614ed2565b60405180910390a35b50505060016011819055505050565b833373ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16146121445761214333612946565b5b612150858585856132d9565b5050505050565b61215f612b87565b600061216a8261334c565b9050600d5481612178610c7e565b6121829190614efb565b11156040518060400160405280601b81526020017f4d617820737570706c792077696c6c2062652065786365656465640000000000815250906121fb576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016121f29190613c02565b60405180910390fd5b5060005b82518110156122615761224e83828151811061221e5761221d614b7b565b5b60200260200101516000015184838151811061223d5761223c614b7b565b5b602002602001015160200151612f58565b808061225990614baa565b9150506121ff565b505050565b61226e6115a2565b73ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff161461232857601360009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614612327576040517f59d9793700000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5b601860009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663ba729e9e86868686866040518663ffffffff1660e01b815260040161238b959493929190614f9f565b600060405180830381600087803b1580156123a557600080fd5b505af11580156123b9573d6000803e3d6000fd5b505050505050505050565b6000600b54905090565b60606123d9826128e7565b61240f576040517fa14c4b5000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b60006124196133a8565b905060008151036124395760405180602001604052806000815250612464565b806124438461343a565b604051602001612454929190615029565b6040516020818303038152906040525b915050919050565b6000600d54905090565b61247e612b87565b80601460006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555080601860006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055507fc903d20b27aa099c90f699723020bef0d98d9108ec4c006832a319fd100c68fb8160405161252f9190613cc8565b60405180910390a150565b612542612b87565b80601060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055507f8a99bb12510d87c60fe05e5000ed6cd7dd6e1ccc3c11ab703562b101807f3d7c816040516125b29190613cc8565b60405180910390a150565b6060600a80546125cc90614a37565b80601f01602080910402602001604051908101604052809291908181526020018280546125f890614a37565b80156126455780601f1061261a57610100808354040283529160200191612645565b820191906000526020600020905b81548152906001019060200180831161262857829003601f168201915b5050505050905090565b6000600760008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16905092915050565b6126eb612b87565b60006126f561348a565b14612735576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161272c906150bf565b60405180910390fd5b61273e8561140a565b61274784610e2a565b61275083610d44565b6127598261134b565b612762816115cc565b7facf9cef4a200d5fe543321e9664ea8b4fe21c59ecbf1506f1155e3316442487285858585856040516127999594939291906150df565b60405180910390a15050505050565b6000600f60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b6127da612b87565b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1603612849576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612840906151b2565b60405180910390fd5b612852816130c2565b50565b60006301ffc9a760e01b827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614806128b057506380ac58cd60e01b827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b806128e05750635b5e139f60e01b827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b9050919050565b6000816128f2612c05565b11158015612901575060005482105b801561293f575060007c0100000000000000000000000000000000000000000000000000000000600460008581526020019081526020016000205416145b9050919050565b60006daaeb6d7670e522a718067333cd4e73ffffffffffffffffffffffffffffffffffffffff163b1115612a40576daaeb6d7670e522a718067333cd4e73ffffffffffffffffffffffffffffffffffffffff1663c617113430836040518363ffffffff1660e01b81526004016129bd9291906151d2565b602060405180830381865afa1580156129da573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906129fe9190615210565b612a3f57806040517fede71dcc000000000000000000000000000000000000000000000000000000008152600401612a369190613cc8565b60405180910390fd5b5b50565b6000612a4e82611366565b90508073ffffffffffffffffffffffffffffffffffffffff16612a6f61349d565b73ffffffffffffffffffffffffffffffffffffffff1614612ad257612a9b81612a9661349d565b61264f565b612ad1576040517fcfb3b94200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5b826006600084815260200190815260200160002060000160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550818373ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a4505050565b612b8f612c0e565b73ffffffffffffffffffffffffffffffffffffffff16612bad6115a2565b73ffffffffffffffffffffffffffffffffffffffff1614612c03576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612bfa90615289565b60405180910390fd5b565b60006001905090565b600033905090565b6000612c2182612ff6565b90508373ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1614612c88576040517fa114810000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600080612c94846134a5565b91509150612caa8187612ca561349d565b6134cc565b612cf657612cbf86612cba61349d565b61264f565b612cf5576040517f59c896be00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5b600073ffffffffffffffffffffffffffffffffffffffff168573ffffffffffffffffffffffffffffffffffffffff1603612d5c576040517fea553b3400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b612d698686866001613510565b8015612d7457600082555b600560008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600081546001900391905081905550600560008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000815460010191905081905550612e4285612e1e888887613516565b7c02000000000000000000000000000000000000000000000000000000001761353e565b600460008681526020019081526020016000208190555060007c0200000000000000000000000000000000000000000000000000000000841603612ec85760006001850190506000600460008381526020019081526020016000205403612ec6576000548114612ec5578360046000838152602001908152602001600020819055505b5b505b838573ffffffffffffffffffffffffffffffffffffffff168773ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a4612f308686866001613569565b505050505050565b612f5383838360405180602001604052806000815250612106565b505050565b600d5481612f64610c7e565b612f6e9190614efb565b11156040518060400160405280601b81526020017f4d617820737570706c792077696c6c206265206578636565646564000000000081525090612fe7576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612fde9190613c02565b60405180910390fd5b50612ff2828261356f565b5050565b60008082905080613005612c05565b1161308b5760005481101561308a5760006004600083815260200190815260200160002054905060007c0100000000000000000000000000000000000000000000000000000000821603613088575b6000810361307e576004600083600190039350838152602001908152602001600020549050613054565b80925050506130bd565b505b5b6040517fdf2d9b4200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b919050565b6000600860009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905081600860006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b613192848461358d565b61319c8285612f58565b6131c8600e60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16826135ed565b50505050565b80600760006131db61349d565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055508173ffffffffffffffffffffffffffffffffffffffff1661328861349d565b73ffffffffffffffffffffffffffffffffffffffff167f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31836040516132cd9190613b57565b60405180910390a35050565b6132e4848484610d90565b60008373ffffffffffffffffffffffffffffffffffffffff163b146133465761330f84848484613640565b613345576040517fd1a57ed600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5b50505050565b6000806000905060005b835181101561339e5783818151811061337257613371614b7b565b5b602002602001015160200151826133899190614efb565b9150808061339690614baa565b915050613356565b5080915050919050565b6060600980546133b790614a37565b80601f01602080910402602001604051908101604052809291908181526020018280546133e390614a37565b80156134305780601f1061340557610100808354040283529160200191613430565b820191906000526020600020905b81548152906001019060200180831161341357829003601f168201915b5050505050905090565b606060a060405101806040526020810391506000825281835b60011561347557600184039350600a81066030018453600a8104905080613453575b50828103602084039350808452505050919050565b6000613494612c05565b60005403905090565b600033905090565b60008060006006600085815260200190815260200160002090508092508254915050915091565b600073ffffffffffffffffffffffffffffffffffffffff8316925073ffffffffffffffffffffffffffffffffffffffff821691508382148383141790509392505050565b50505050565b60008060e883901c905060e861352d868684613790565b62ffffff16901b9150509392505050565b600073ffffffffffffffffffffffffffffffffffffffff83169250814260a01b178317905092915050565b50505050565b613589828260405180602001604052806000815250613799565b5050565b80826135999190614b39565b34146135e9573481836135ac9190614b39565b6040517f0d35e9210000000000000000000000000000000000000000000000000000000081526004016135e0929190614ed2565b60405180910390fd5b5050565b600080600080600085875af190508061363b576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401613632906152f5565b60405180910390fd5b505050565b60008373ffffffffffffffffffffffffffffffffffffffff1663150b7a0261366661349d565b8786866040518563ffffffff1660e01b8152600401613688949392919061536a565b6020604051808303816000875af19250505080156136c457506040513d601f19601f820116820180604052508101906136c191906153cb565b60015b61373d573d80600081146136f4576040519150601f19603f3d011682016040523d82523d6000602084013e6136f9565b606091505b506000815103613735576040517fd1a57ed600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b805181602001fd5b63150b7a0260e01b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916817bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614915050949350505050565b60009392505050565b6137a38383613836565b60008373ffffffffffffffffffffffffffffffffffffffff163b1461383157600080549050600083820390505b6137e36000868380600101945086613640565b613819576040517fd1a57ed600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b8181106137d057816000541461382e57600080fd5b50505b505050565b60008054905060008203613876576040517fb562e8dd00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6138836000848385613510565b600160406001901b178202600560008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600082825401925050819055506138fa836138eb6000866000613516565b6138f4856139f1565b1761353e565b6004600083815260200190815260200160002081905550600080838301905073ffffffffffffffffffffffffffffffffffffffff85169150828260007fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef600080a4600183015b81811461399b57808360007fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef600080a4600181019050613960565b50600082036139d6576040517f2e07630000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b8060008190555050506139ec6000848385613569565b505050565b60006001821460e11b9050919050565b828054828255906000526020600020908101928215613a3d579160200282015b82811115613a3c578251825591602001919060010190613a21565b5b509050613a4a9190613a86565b5090565b6040518060c0016040528060008152602001600081526020016000815260200160008152602001600081526020016000151581525090565b5b80821115613a9f576000816000905550600101613a87565b5090565b6000604051905090565b600080fd5b600080fd5b60007fffffffff0000000000000000000000000000000000000000000000000000000082169050919050565b613aec81613ab7565b8114613af757600080fd5b50565b600081359050613b0981613ae3565b92915050565b600060208284031215613b2557613b24613aad565b5b6000613b3384828501613afa565b91505092915050565b60008115159050919050565b613b5181613b3c565b82525050565b6000602082019050613b6c6000830184613b48565b92915050565b600081519050919050565b600082825260208201905092915050565b60005b83811015613bac578082015181840152602081019050613b91565b60008484015250505050565b6000601f19601f8301169050919050565b6000613bd482613b72565b613bde8185613b7d565b9350613bee818560208601613b8e565b613bf781613bb8565b840191505092915050565b60006020820190508181036000830152613c1c8184613bc9565b905092915050565b6000819050919050565b613c3781613c24565b8114613c4257600080fd5b50565b600081359050613c5481613c2e565b92915050565b600060208284031215613c7057613c6f613aad565b5b6000613c7e84828501613c45565b91505092915050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000613cb282613c87565b9050919050565b613cc281613ca7565b82525050565b6000602082019050613cdd6000830184613cb9565b92915050565b613cec81613ca7565b8114613cf757600080fd5b50565b600081359050613d0981613ce3565b92915050565b60008060408385031215613d2657613d25613aad565b5b6000613d3485828601613cfa565b9250506020613d4585828601613c45565b9150509250929050565b6000819050919050565b613d6281613d4f565b8114613d6d57600080fd5b50565b600081359050613d7f81613d59565b92915050565b600060208284031215613d9b57613d9a613aad565b5b6000613da984828501613d70565b91505092915050565b613dbb81613c24565b82525050565b6000602082019050613dd66000830184613db2565b92915050565b600060208284031215613df257613df1613aad565b5b6000613e0084828501613cfa565b91505092915050565b600080600060608486031215613e2257613e21613aad565b5b6000613e3086828701613cfa565b9350506020613e4186828701613cfa565b9250506040613e5286828701613c45565b9150509250925092565b60008060408385031215613e7357613e72613aad565b5b6000613e8185828601613c45565b9250506020613e9285828601613c45565b9150509250929050565b6000604082019050613eb16000830185613cb9565b613ebe6020830184613db2565b9392505050565b600080fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b613f0282613bb8565b810181811067ffffffffffffffff82111715613f2157613f20613eca565b5b80604052505050565b6000613f34613aa3565b9050613f408282613ef9565b919050565b613f4e81613b3c565b8114613f5957600080fd5b50565b600081359050613f6b81613f45565b92915050565b600060c08284031215613f8757613f86613ec5565b5b613f9160c0613f2a565b90506000613fa184828501613c45565b6000830152506020613fb584828501613c45565b6020830152506040613fc984828501613c45565b6040830152506060613fdd84828501613c45565b6060830152506080613ff184828501613c45565b60808301525060a061400584828501613f5c565b60a08301525092915050565b600060c0828403121561402757614026613aad565b5b600061403584828501613f71565b91505092915050565b600080fd5b600067ffffffffffffffff82111561405e5761405d613eca565b5b602082029050602081019050919050565b600080fd5b600061408761408284614043565b613f2a565b90508083825260208201905060c084028301858111156140aa576140a961406f565b5b835b818110156140d357806140bf8882613f71565b84526020840193505060c0810190506140ac565b5050509392505050565b600082601f8301126140f2576140f161403e565b5b8135614102848260208601614074565b91505092915050565b60006020828403121561412157614120613aad565b5b600082013567ffffffffffffffff81111561413f5761413e613ab2565b5b61414b848285016140dd565b91505092915050565b6000819050919050565b600061417961417461416f84613c87565b614154565b613c87565b9050919050565b600061418b8261415e565b9050919050565b600061419d82614180565b9050919050565b6141ad81614192565b82525050565b60006020820190506141c860008301846141a4565b92915050565b600080fd5b600067ffffffffffffffff8211156141ee576141ed613eca565b5b6141f782613bb8565b9050602081019050919050565b82818337600083830152505050565b6000614226614221846141d3565b613f2a565b905082815260208101848484011115614242576142416141ce565b5b61424d848285614204565b509392505050565b600082601f83011261426a5761426961403e565b5b813561427a848260208601614213565b91505092915050565b60006020828403121561429957614298613aad565b5b600082013567ffffffffffffffff8111156142b7576142b6613ab2565b5b6142c384828501614255565b91505092915050565b600080604083850312156142e3576142e2613aad565b5b60006142f185828601613cfa565b925050602061430285828601613f5c565b9150509250929050565b61431581613c24565b82525050565b61432481613b3c565b82525050565b60c082016000820151614340600085018261430c565b506020820151614353602085018261430c565b506040820151614366604085018261430c565b506060820151614379606085018261430c565b50608082015161438c608085018261430c565b5060a082015161439f60a085018261431b565b50505050565b600060c0820190506143ba600083018461432a565b92915050565b600081519050919050565b600082825260208201905092915050565b6000819050602082019050919050565b60c082016000820151614402600085018261430c565b506020820151614415602085018261430c565b506040820151614428604085018261430c565b50606082015161443b606085018261430c565b50608082015161444e608085018261430c565b5060a082015161446160a085018261431b565b50505050565b600061447383836143ec565b60c08301905092915050565b6000602082019050919050565b6000614497826143c0565b6144a181856143cb565b93506144ac836143dc565b8060005b838110156144dd5781516144c48882614467565b97506144cf8361447f565b9250506001810190506144b0565b5085935050505092915050565b60006020820190508181036000830152614504818461448c565b905092915050565b6000806040838503121561452357614522613aad565b5b600061453185828601613c45565b925050602061454285828601613cfa565b9150509250929050565b600067ffffffffffffffff82111561456757614566613eca565b5b61457082613bb8565b9050602081019050919050565b600061459061458b8461454c565b613f2a565b9050828152602081018484840111156145ac576145ab6141ce565b5b6145b7848285614204565b509392505050565b600082601f8301126145d4576145d361403e565b5b81356145e484826020860161457d565b91505092915050565b6000806000806080858703121561460757614606613aad565b5b600061461587828801613cfa565b945050602061462687828801613cfa565b935050604061463787828801613c45565b925050606085013567ffffffffffffffff81111561465857614657613ab2565b5b614664878288016145bf565b91505092959194509250565b600067ffffffffffffffff82111561468b5761468a613eca565b5b602082029050602081019050919050565b6000604082840312156146b2576146b1613ec5565b5b6146bc6040613f2a565b905060006146cc84828501613cfa565b60008301525060206146e084828501613c45565b60208301525092915050565b60006146ff6146fa84614670565b613f2a565b905080838252602082019050604084028301858111156147225761472161406f565b5b835b8181101561474b5780614737888261469c565b845260208401935050604081019050614724565b5050509392505050565b600082601f83011261476a5761476961403e565b5b813561477a8482602086016146ec565b91505092915050565b60006020828403121561479957614798613aad565b5b600082013567ffffffffffffffff8111156147b7576147b6613ab2565b5b6147c384828501614755565b91505092915050565b600063ffffffff82169050919050565b6147e5816147cc565b81146147f057600080fd5b50565b600081359050614802816147dc565b92915050565b600080fd5b60008083601f8401126148235761482261403e565b5b8235905067ffffffffffffffff8111156148405761483f614808565b5b60208301915083600182028301111561485c5761485b61406f565b5b9250929050565b60008060008060006080868803121561487f5761487e613aad565b5b600061488d88828901613cfa565b955050602061489e888289016147f3565b94505060406148af888289016147f3565b935050606086013567ffffffffffffffff8111156148d0576148cf613ab2565b5b6148dc8882890161480d565b92509250509295509295909350565b6148f481613d4f565b82525050565b600060208201905061490f60008301846148eb565b92915050565b6000806040838503121561492c5761492b613aad565b5b600061493a85828601613cfa565b925050602061494b85828601613cfa565b9150509250929050565b600080600080600060a0868803121561497157614970613aad565b5b600061497f88828901613c45565b955050602061499088828901613cfa565b94505060406149a188828901613cfa565b935050606086013567ffffffffffffffff8111156149c2576149c1613ab2565b5b6149ce88828901614255565b925050608086013567ffffffffffffffff8111156149ef576149ee613ab2565b5b6149fb88828901614255565b9150509295509295909350565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b60006002820490506001821680614a4f57607f821691505b602082108103614a6257614a61614a08565b5b50919050565b600081519050614a7781613c2e565b92915050565b600060208284031215614a9357614a92613aad565b5b6000614aa184828501614a68565b91505092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b6000614b1382613c24565b9150614b1e83613c24565b925082614b2e57614b2d614aaa565b5b828204905092915050565b6000614b4482613c24565b9150614b4f83613c24565b9250828202614b5d81613c24565b91508282048414831517614b7457614b73614ad9565b5b5092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b6000614bb582613c24565b91507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff8203614be757614be6614ad9565b5b600182019050919050565b60008190508160005260206000209050919050565b60006020601f8301049050919050565b600082821b905092915050565b600060088302614c547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff82614c17565b614c5e8683614c17565b95508019841693508086168417925050509392505050565b6000614c91614c8c614c8784613c24565b614154565b613c24565b9050919050565b6000819050919050565b614cab83614c76565b614cbf614cb782614c98565b848454614c24565b825550505050565b600090565b614cd4614cc7565b614cdf818484614ca2565b505050565b5b81811015614d0357614cf8600082614ccc565b600181019050614ce5565b5050565b601f821115614d4857614d1981614bf2565b614d2284614c07565b81016020851015614d31578190505b614d45614d3d85614c07565b830182614ce4565b50505b505050565b600082821c905092915050565b6000614d6b60001984600802614d4d565b1980831691505092915050565b6000614d848383614d5a565b9150826002028217905092915050565b614d9d82613b72565b67ffffffffffffffff811115614db657614db5613eca565b5b614dc08254614a37565b614dcb828285614d07565b600060209050601f831160018114614dfe5760008415614dec578287015190505b614df68582614d78565b865550614e5e565b601f198416614e0c86614bf2565b60005b82811015614e3457848901518255600182019150602085019450602081019050614e0f565b86831015614e515784890151614e4d601f891682614d5a565b8355505b6001600288020188555050505b505050505050565b7f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00600082015250565b6000614e9c601f83613b7d565b9150614ea782614e66565b602082019050919050565b60006020820190508181036000830152614ecb81614e8f565b9050919050565b6000604082019050614ee76000830185613db2565b614ef46020830184613db2565b9392505050565b6000614f0682613c24565b9150614f1183613c24565b9250828201905080821115614f2957614f28614ad9565b5b92915050565b6000614f3a82613c24565b9150614f4583613c24565b9250828203905081811115614f5d57614f5c614ad9565b5b92915050565b614f6c816147cc565b82525050565b6000614f7e8385613b7d565b9350614f8b838584614204565b614f9483613bb8565b840190509392505050565b6000608082019050614fb46000830188613cb9565b614fc16020830187614f63565b614fce6040830186614f63565b8181036060830152614fe1818486614f72565b90509695505050505050565b600081905092915050565b600061500382613b72565b61500d8185614fed565b935061501d818560208601613b8e565b80840191505092915050565b60006150358285614ff8565b91506150418284614ff8565b91508190509392505050565b7f43616e6e6f742073657420636f6e666967206166746572206d696e74696e672060008201527f68617320626567756e0000000000000000000000000000000000000000000000602082015250565b60006150a9602983613b7d565b91506150b48261504d565b604082019050919050565b600060208201905081810360008301526150d88161509c565b9050919050565b600060a0820190506150f46000830188613db2565b6151016020830187613cb9565b61510e6040830186613cb9565b81810360608301526151208185613bc9565b905081810360808301526151348184613bc9565b90509695505050505050565b7f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160008201527f6464726573730000000000000000000000000000000000000000000000000000602082015250565b600061519c602683613b7d565b91506151a782615140565b604082019050919050565b600060208201905081810360008301526151cb8161518f565b9050919050565b60006040820190506151e76000830185613cb9565b6151f46020830184613cb9565b9392505050565b60008151905061520a81613f45565b92915050565b60006020828403121561522657615225613aad565b5b6000615234848285016151fb565b91505092915050565b7f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572600082015250565b6000615273602083613b7d565b915061527e8261523d565b602082019050919050565b600060208201905081810360008301526152a281615266565b9050919050565b7f4554485f5452414e534645525f4641494c454400000000000000000000000000600082015250565b60006152df601383613b7d565b91506152ea826152a9565b602082019050919050565b6000602082019050818103600083015261530e816152d2565b9050919050565b600081519050919050565b600082825260208201905092915050565b600061533c82615315565b6153468185615320565b9350615356818560208601613b8e565b61535f81613bb8565b840191505092915050565b600060808201905061537f6000830187613cb9565b61538c6020830186613cb9565b6153996040830185613db2565b81810360608301526153ab8184615331565b905095945050505050565b6000815190506153c581613ae3565b92915050565b6000602082840312156153e1576153e0613aad565b5b60006153ef848285016153b6565b9150509291505056fea26469706673582212202af71b439b720531cc85ad1b6d7a8ea285b32f3e8cc955eb4c2ba2d6c007830e64736f6c63430008110033
Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)
00000000000000000000000000000000000000000000000000000000000000e0000000000000000000000000000000000000000000000000000000000000012000000000000000000000000000000000000000000000000000000000000009c4000000000000000000000000000000000000000000000000000000000000016000000000000000000000000000000000000000000000000000000000000001e0000000000000000000000000ad87b6f80686f5c797f89edcba27f1325afc2718000000000000000000000000dab1a1854214684ace522439684a145e6250523300000000000000000000000000000000000000000000000000000000000000115375727669766f7220536572696573203200000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000115355525649564f522d5345524945532d32000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000004268747470733a2f2f6170692e6f72616e6765636f6d65742e696f2f636f6c6c65637469626c652d6d657461646174612f7375727669766f722d7365726965732d322f000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000004a68747470733a2f2f6170692e6f72616e6765636f6d65742e696f2f636f6c6c65637469626c652d636f6e7472616374732f7375727669766f722d7365726965732d322f6f70656e73656100000000000000000000000000000000000000000000
-----Decoded View---------------
Arg [0] : name (string): Survivor Series 2
Arg [1] : symbol (string): SURVIVOR-SERIES-2
Arg [2] : maxSupply (uint256): 2500
Arg [3] : baseTokenURI (string): https://api.orangecomet.io/collectible-metadata/survivor-series-2/
Arg [4] : contractURI (string): https://api.orangecomet.io/collectible-contracts/survivor-series-2/opensea
Arg [5] : royalties (address): 0xAd87B6F80686f5c797F89edCbA27F1325aFc2718
Arg [6] : crossmintAdmin (address): 0xdAb1a1854214684acE522439684a145E62505233
-----Encoded View---------------
19 Constructor Arguments found :
Arg [0] : 00000000000000000000000000000000000000000000000000000000000000e0
Arg [1] : 0000000000000000000000000000000000000000000000000000000000000120
Arg [2] : 00000000000000000000000000000000000000000000000000000000000009c4
Arg [3] : 0000000000000000000000000000000000000000000000000000000000000160
Arg [4] : 00000000000000000000000000000000000000000000000000000000000001e0
Arg [5] : 000000000000000000000000ad87b6f80686f5c797f89edcba27f1325afc2718
Arg [6] : 000000000000000000000000dab1a1854214684ace522439684a145e62505233
Arg [7] : 0000000000000000000000000000000000000000000000000000000000000011
Arg [8] : 5375727669766f72205365726965732032000000000000000000000000000000
Arg [9] : 0000000000000000000000000000000000000000000000000000000000000011
Arg [10] : 5355525649564f522d5345524945532d32000000000000000000000000000000
Arg [11] : 0000000000000000000000000000000000000000000000000000000000000042
Arg [12] : 68747470733a2f2f6170692e6f72616e6765636f6d65742e696f2f636f6c6c65
Arg [13] : 637469626c652d6d657461646174612f7375727669766f722d7365726965732d
Arg [14] : 322f000000000000000000000000000000000000000000000000000000000000
Arg [15] : 000000000000000000000000000000000000000000000000000000000000004a
Arg [16] : 68747470733a2f2f6170692e6f72616e6765636f6d65742e696f2f636f6c6c65
Arg [17] : 637469626c652d636f6e7472616374732f7375727669766f722d736572696573
Arg [18] : 2d322f6f70656e73656100000000000000000000000000000000000000000000
Loading...
Loading
Loading...
Loading
[ Download: CSV Export ]
[ Download: CSV Export ]
A token is a representation of an on-chain or off-chain asset. The token page shows information such as price, total supply, holders, transfers and social links. Learn more about this page in our Knowledge Base.