ERC-721
Overview
Max Total Supply
455 COMPANION
Holders
140
Market
Volume (24H)
N/A
Min Price (24H)
N/A
Max Price (24H)
N/A
Other Info
Token Contract
Balance
2 COMPANIONLoading...
Loading
Loading...
Loading
Loading...
Loading
# | Exchange | Pair | Price | 24H Volume | % Volume |
---|
Contract Name:
SoulcopsCompanion
Compiler Version
v0.8.7+commit.e28d00a7
Optimization Enabled:
Yes with 1000 runs
Other Settings:
default evmVersion
Contract Source Code (Solidity Standard Json-Input format)
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; /** MMMMMMMMMM0;...,:dKWMMMMMMMMMMMMMMMMMK:...;0MMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMNo....dWMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMXc...,OMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMM MMMMMMMMMM0;......,xNMMMMMMMMMMMMMMMMK:...;0MMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMNo....dWMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMXc...,OMMMMMMMMMMMMMMMMMMMMMMMMMMMMMW0xxxkKMMMMMMMMMMMMMMMMMMMMMMMMMM MMMMMMMMMMNkl,.....'dNMMMMMMMMMMMMMMMK:...;0MMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMNo....dWMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMXc...,OMMMMMMMMMMMMMMMMMMMMMMMMMMMMMNl...'xWMMMMMMMMMMMMMMMMMMMMMMMMM NXNMMWXKKKK0o'.......oXMMMMMMMMMMMMMMK:...;0MMMMMMWXXXXNMMWNXKKKKXNMMMMMMMMMNo....dWMWNXK0KKXWMMMMMMMMMMMMMMMMWNKKKKXNWMMNXXXXNMMMMXc...,OMMMMMMMMMMMWNXK0KKXWMMMMMMMMMNl...'dXXXXNWMMMMMMWNXKK0KKXNWMMM :,c0Xl,'''''..........lXMMMMMMMMMMMMMK:...;0MMMMMWk;,,;x0dc;,'''',:lxKWMMMMMNo....oOdc;,'''',:oONMMMMMMMMMWXko:;,''',;cdOd,,,;xWMMMXc...,OMMMMMMMMXOoc;,'''',:lxKWMMMMMNl....',;;;c0MMMN0dl;,''''',;:lxK lcdKXxc::,.....,dd,....lKMMMMMMMMMMMMK:...;0MMMMMWx'...''...'','.....,oKWMMMNo....'....'''......c0WMMMMMMXd;.....',,'...''....dWMMMXc...,OMMMMMMXx;....,;:;,'...,l0WMMMNl.....'''':OMMKl'....,;;;,'...cK NKKXXK00k:....,xWWk;....cKMMMMMMMMMMMK:...;0MMMMMWx'.....;ok0KKKOd:....;OWMMNo.....'cxOKKKOd;....;0MMMMW0:....;oOKXXKOd:......dWMMMXc...,OMMMMMKc...'lkKNNNX0d;...;kWMMNl....oKKKKXWMXl...'o0XXNNXKOxxKM :,,,,,,,'....,kWMMWO;....:0MMMMMMMMMMK:...;0MMMMMWx'....lKWMMMMMMMXo'...:0MMNo....,xNMMMMMMMKc....oNMMMXc....lKWMMMMMMMXd'....dWMMMXc...,OMMMMXc...,kWMMMMMMMW0:...;0MMNl...'xWMMMMMMK:...,xXWWMMMMMMMMM c;;;;;'.....;OWMMMMW0:....:0WMMMMMMMMK:...;0MMMMMWx'...:KMMMMMMMMMMXl....dWMNo....oNMMMMMMMMWx'...lXMMMk,...:KMMMMMMMMMMNl....dWMMMXc...,OMMMMk'...lXXX0Okxdoc:,....dWMNl...'xWMMMMMMNx'....,:lodxk0KNMM NKK00x,....;OWMMMMMMW0:....;OWMMMMMMMK:...;0MMMMMWx'...lNMMMMMMMMMMWd....oNMNo....dWMMMMMMMMMk'...lXMMWx'...lXMMMMMMMMMMWd....dWMMMXc...,OMMMWx'...,;;,'....',;clodxKWMNl...'xWMMMMMMMW0o:,.........,:xX :;,,,'....:0WMMMMMMMMMKc....,kWMMMMMMK:...;0MMMMMWx'...:0MMMMMMMMMMKc...'xWMNo....dWMMMMMMMMWk'...lXMMMO,...;0MMMMMMMMMMXc....dWMMMXc...,OMMMMO,....,clodxO0KXNWMMMMMMMNl...'xWMMMMMMMMMWNK0kxdolc,....c c;,......cKWMMMNXXNWMMMKc....,o0NWMMMK:...,OMMMMMWx'....c0WMMMMMMW0c....cKMMNo....dWMMMMMMMMMk'...cXMMMXo....:OWMMMMMMW0l.....dWMMMXc...'kMMMMNo....c0WMMMMMMMWXKNMMMMMNl....dWMMMMMMMWXNMMMMMMMMW0c...' WN0:....cKMMMWk:,,:kNMMMXl.....':lOWMXl....:k00KNWx'.....'cxkO0Oxl,....c0WMMNo....dWMMMMMMMMMk'...lXMMMMXl'...'cdkOOkdl,......dWMMMNo....:x00KNXo'...,cdkO0Okxl;'cOWMMMWx'...,dO0Ok0WNx;:ldkO0K00ko,...; MMNd'..lKMMMMKc....:KMMMMXd,......dWMMKl.......:0Wx'...,;...........':xXMMMMNo....dWMMMMMMMMMk'...lXMMMMMNkc'...........;;....dWMMMMXo'......;OMNOl,.............;xNMMMMNd,.....'..;OO:.......''.....,l0 MMMNkcdXMMMMMWOc;;cOWMMMMMWXkl:;,;xWMMMNOoc;;;;oKWx'...lKOdc:;;;;clx0NMMMMMMWk:::cOWMMMMMMMMM0l:::xNMMMMMMMN0xoc:;;;:cokXOl::cOWMMMMMN0dc;;;;l0MMMWKkdl:;;,;;:ldOXWMMMMMMWKxl:;;;:cdKNKkdoc:;;;;;:cokKWM MMMMMWWMMMMMMMMWNNWMMMMMMMMMMMWNXXNMMMMMMMWNNNNWMWx'...lNMMWNNXNNWMMMMMMMMMMMWWWWWWMMMMMMMMMMWWWWWWMMMMMMMMMMMMWNNNNNWMMMMWWWWWMMMMMMMMMWNNNNWMMMMMMMMMWNXXNNWMMMMMMMMMMMMMMWNNXNNWMMMMMMMWWNNXNNWWMMMMM MMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMWx'...lNMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMM MMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMWx'...lNMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMM MMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMWx'...lNMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMM */ import "./ERC721EnumerableM.sol"; import "@openzeppelin/contracts/access/Ownable.sol"; import "@openzeppelin/contracts/utils/Strings.sol"; import "@openzeppelin/contracts/utils/cryptography/MerkleProof.sol"; contract SoulcopsCompanion is ERC721EnumerableM, Ownable { using Strings for uint256; enum Stage { Shutdown, Aidrop, Publicsale } Stage public stage; bytes32 public root; uint256 public constant MAX_PER_TX = 6; // 5 maximum, use 6 reduce aritmatic gas uint256 public constant MAX_AIRDROP = 3000; uint256 public constant TOTAL = 10000; uint256 public PRICE; uint256 public airdropQtyMinted; mapping(address => uint256) public addressAirdopMinted; string private _contractURI; string private _baseTokenURI; string private _defaultTokenURI; address SOULCOPS_WALLET = 0x71D54d6Dd26339B4d69C5cd922C4846aC6fb5E95; constructor( string memory defaultTokenURI, bytes32 merkleroot ) ERC721M("Soulcops Companion", "COMPANION") { _defaultTokenURI = defaultTokenURI; root = merkleroot; } function setPrice(uint256 _price) external onlyOwner { require(_price>=0, "Price cannot negative."); PRICE = _price; } function setMerkleRoot(bytes32 merkleroot) external onlyOwner { root = merkleroot; } function airdropMint(uint256 count, uint256 allowance, bytes32[] calldata proof) external { uint256 totalSupply = _owners.length; require(_verify(_leaf(_msgSender(), allowance), proof), "Invalid merkle proof."); require(stage == Stage.Aidrop, "The airdop not active."); require(airdropQtyMinted + count <= MAX_AIRDROP, "Minting would exceed the airdrop allocation."); require(totalSupply + count <= TOTAL, "Minting would exceed the sale allocation."); require(addressAirdopMinted[_msgSender()] + count <= allowance, "You can not mint exceeds maximum NFT."); addressAirdopMinted[_msgSender()] += count; for (uint i = 0; i < count; i++) { airdropQtyMinted++; _mint(_msgSender(), totalSupply + i); } } // public mint function publicMint(uint256 count) external payable { uint256 totalSupply = _owners.length; require(stage == Stage.Publicsale, "The sale not active."); require(count < MAX_PER_TX, "Exceeds max per transaction."); require(totalSupply + count <= TOTAL, "Minting would exceed the sale allocation."); require(PRICE * count == msg.value, "ETH sent not match with total purchase."); for (uint i = 0; i < count; i++) { _mint(_msgSender(), totalSupply + i); } } // get all token by owner addresss function tokensOfOwner(address _owner) external view returns(uint256[] memory) { uint256 tokenCount = balanceOf(_owner); uint256[] memory tokensId = new uint256[](tokenCount); for(uint256 i; i < tokenCount; i++){ tokensId[i] = tokenOfOwnerByIndex(_owner, i); } return tokensId; } function withdraw() external onlyOwner { Address.sendValue(payable(SOULCOPS_WALLET), address(this).balance); } // get address minted count function airdopMintedCount(address addr) external view returns (uint256) { return addressAirdopMinted[addr]; } // change stage airdrop, and shutdown function setStage(Stage _stage) external onlyOwner{ require(_stage!=Stage.Publicsale, "Public sale must with set price."); stage = _stage; } // change stage to public mint and set price function setPublicSale(uint256 _price) external onlyOwner { stage = Stage.Publicsale; PRICE = _price; } function setContractURI(string calldata URI) external onlyOwner { _contractURI = URI; } function setBaseURI(string calldata URI) external onlyOwner { _baseTokenURI = URI; } function setDefaultTokenURI(string calldata URI) external onlyOwner { _defaultTokenURI = URI; } function contractURI() public view returns (string memory) { return _contractURI; } function baseURI() public view returns (string memory) { return _baseTokenURI; } // get tokenURI by index, add default base uri function tokenURI(uint256 tokenId) external override view returns (string memory) { require(_exists(tokenId), "ERC721Metadata: URI query for nonexistent token."); string memory _baseURI = baseURI(); return bytes(_baseURI).length > 0 ? string(abi.encodePacked(_baseURI, tokenId.toString())) : _defaultTokenURI; } function _leaf(address account, uint256 allowance)internal pure returns (bytes32){ return keccak256(abi.encodePacked(account,allowance)); } function _verify(bytes32 leaf, bytes32[] memory proof) internal view returns (bool){ return MerkleProof.verify(proof, root, leaf); } function _mint(address to, uint256 tokenId) internal virtual override { _owners.push(to); emit Transfer(address(0), to, tokenId); } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import "./ERC721M.sol"; import "@openzeppelin/contracts/token/ERC721/extensions/IERC721Enumerable.sol"; /** * @dev This implements an optional extension of {ERC721} defined in the EIP that adds * enumerability of all the token ids in the contract as well as all token ids owned by each * account. */ abstract contract ERC721EnumerableM is ERC721M, IERC721Enumerable { /** * @dev See {IERC165-supportsInterface}. */ function supportsInterface(bytes4 interfaceId) public view virtual override(IERC165, ERC721M) returns (bool) { return interfaceId == type(IERC721Enumerable).interfaceId || super.supportsInterface(interfaceId); } /** * @dev See {IERC721Enumerable-tokenOfOwnerByIndex}. */ function tokenOfOwnerByIndex(address owner, uint256 index) public view virtual override returns (uint256 tokenId) { require(index < ERC721M.balanceOf(owner), "ERC721Enumerable: owner index out of bounds"); uint count; for( uint i; i < _owners.length; ++i ){ if( owner == _owners[i] ){ if( count == index ) return i; else ++count; } } require(false, "ERC721Enumerable: owner index out of bounds"); } /** * @dev See {IERC721Enumerable-totalSupply}. */ function totalSupply() public view virtual override returns (uint256) { return _owners.length; } /** * @dev See {IERC721Enumerable-tokenByIndex}. */ function tokenByIndex(uint256 index) public view virtual override returns (uint256) { require(index < ERC721EnumerableM.totalSupply(), "ERC721Enumerable: global index out of bounds"); return index; } }
// SPDX-License-Identifier: MIT 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() { _setOwner(_msgSender()); } /** * @dev Returns the address of the current owner. */ function owner() public view virtual returns (address) { return _owner; } /** * @dev Throws if called by any account other than the owner. */ modifier onlyOwner() { require(owner() == _msgSender(), "Ownable: caller is not the owner"); _; } /** * @dev Leaves the contract without owner. It will not be possible to call * `onlyOwner` functions anymore. Can only be called by the current owner. * * NOTE: Renouncing ownership will leave the contract without an owner, * thereby removing any functionality that is only available to the owner. */ function renounceOwnership() public virtual onlyOwner { _setOwner(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"); _setOwner(newOwner); } function _setOwner(address newOwner) private { address oldOwner = _owner; _owner = newOwner; emit OwnershipTransferred(oldOwner, newOwner); } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; /** * @dev String operations. */ library Strings { bytes16 private constant _HEX_SYMBOLS = "0123456789abcdef"; /** * @dev Converts a `uint256` to its ASCII `string` decimal representation. */ function toString(uint256 value) internal pure returns (string memory) { // Inspired by OraclizeAPI's implementation - MIT licence // https://github.com/oraclize/ethereum-api/blob/b42146b063c7d6ee1358846c198246239e9360e8/oraclizeAPI_0.4.25.sol if (value == 0) { return "0"; } uint256 temp = value; uint256 digits; while (temp != 0) { digits++; temp /= 10; } bytes memory buffer = new bytes(digits); while (value != 0) { digits -= 1; buffer[digits] = bytes1(uint8(48 + uint256(value % 10))); value /= 10; } return string(buffer); } /** * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation. */ function toHexString(uint256 value) internal pure returns (string memory) { if (value == 0) { return "0x00"; } uint256 temp = value; uint256 length = 0; while (temp != 0) { length++; temp >>= 8; } return toHexString(value, length); } /** * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation with fixed length. */ function toHexString(uint256 value, uint256 length) internal pure returns (string memory) { bytes memory buffer = new bytes(2 * length + 2); buffer[0] = "0"; buffer[1] = "x"; for (uint256 i = 2 * length + 1; i > 1; --i) { buffer[i] = _HEX_SYMBOLS[value & 0xf]; value >>= 4; } require(value == 0, "Strings: hex length insufficient"); return string(buffer); } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; /** * @dev These functions deal with verification of Merkle Trees proofs. * * The proofs can be generated using the JavaScript library * https://github.com/miguelmota/merkletreejs[merkletreejs]. * Note: the hashing algorithm should be keccak256 and pair sorting should be enabled. * * See `test/utils/cryptography/MerkleProof.test.js` for some examples. */ library MerkleProof { /** * @dev Returns true if a `leaf` can be proved to be a part of a Merkle tree * defined by `root`. For this, a `proof` must be provided, containing * sibling hashes on the branch from the leaf to the root of the tree. Each * pair of leaves and each pair of pre-images are assumed to be sorted. */ function verify( bytes32[] memory proof, bytes32 root, bytes32 leaf ) internal pure returns (bool) { bytes32 computedHash = leaf; for (uint256 i = 0; i < proof.length; i++) { bytes32 proofElement = proof[i]; if (computedHash <= proofElement) { // Hash(current computed hash + current element of the proof) computedHash = keccak256(abi.encodePacked(computedHash, proofElement)); } else { // Hash(current element of the proof + current computed hash) computedHash = keccak256(abi.encodePacked(proofElement, computedHash)); } } // Check if the computed hash (root) is equal to the provided root return computedHash == root; } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import "@openzeppelin/contracts/token/ERC721/IERC721.sol"; import "@openzeppelin/contracts/token/ERC721/IERC721Receiver.sol"; import "@openzeppelin/contracts/token/ERC721/extensions/IERC721Metadata.sol"; import "@openzeppelin/contracts/utils/Address.sol"; import "@openzeppelin/contracts/utils/Context.sol"; import "@openzeppelin/contracts/utils/introspection/ERC165.sol"; /** * @dev Implementation of https://eips.ethereum.org/EIPS/eip-721[ERC721] Non-Fungible Token Standard, including * the Metadata extension, but not including the Enumerable extension, which is available separately as * {ERC721Enumerable}. */ abstract contract ERC721M is Context, ERC165, IERC721, IERC721Metadata { using Address for address; // Token name string private _name; // Token symbol string private _symbol; // Mapping from token ID to owner address address[] internal _owners; // Mapping from token ID to approved address mapping(uint256 => address) private _tokenApprovals; // Mapping from owner to operator approvals mapping(address => mapping(address => bool)) private _operatorApprovals; /** * @dev Initializes the contract by setting a `name` and a `symbol` to the token collection. */ constructor(string memory name_, string memory symbol_) { _name = name_; _symbol = symbol_; } /** * @dev See {IERC165-supportsInterface}. */ function supportsInterface(bytes4 interfaceId) public view virtual override(ERC165, IERC165) returns (bool) { return interfaceId == type(IERC721).interfaceId || interfaceId == type(IERC721Metadata).interfaceId || super.supportsInterface(interfaceId); } /** * @dev See {IERC721-balanceOf}. */ function balanceOf(address owner) public view virtual override returns (uint256) { require(owner != address(0), "ERC721: balance query for the zero address"); uint count = 0; for( uint i = 0; i < _owners.length; i++ ){ if( owner == _owners[i] ){ count++; } } return count; } /** * @dev See {IERC721-ownerOf}. */ function ownerOf(uint256 tokenId) public view virtual override returns (address) { address owner = _owners[tokenId]; require(owner != address(0), "ERC721: owner query for nonexistent token"); return owner; } /** * @dev See {IERC721Metadata-name}. */ function name() public view virtual override returns (string memory) { return _name; } /** * @dev See {IERC721Metadata-symbol}. */ function symbol() public view virtual override returns (string memory) { return _symbol; } /** * @dev See {IERC721-approve}. */ function approve(address to, uint256 tokenId) public virtual override { address owner = ERC721M.ownerOf(tokenId); require(to != owner, "ERC721: approval to current owner"); require( _msgSender() == owner || isApprovedForAll(owner, _msgSender()), "ERC721: approve caller is not owner nor approved for all" ); _approve(to, tokenId); } /** * @dev See {IERC721-getApproved}. */ function getApproved(uint256 tokenId) public view virtual override returns (address) { require(_exists(tokenId), "ERC721: approved query for nonexistent token"); return _tokenApprovals[tokenId]; } /** * @dev See {IERC721-setApprovalForAll}. */ function setApprovalForAll(address operator, bool approved) public virtual override { require(operator != _msgSender(), "ERC721: approve to caller"); _operatorApprovals[_msgSender()][operator] = approved; emit ApprovalForAll(_msgSender(), operator, approved); } /** * @dev See {IERC721-isApprovedForAll}. */ function isApprovedForAll(address owner, address operator) public view virtual override returns (bool) { return _operatorApprovals[owner][operator]; } /** * @dev See {IERC721-transferFrom}. */ function transferFrom( address from, address to, uint256 tokenId ) public virtual override { //solhint-disable-next-line max-line-length require(_isApprovedOrOwner(_msgSender(), tokenId), "ERC721: transfer caller is not owner nor approved"); _transfer(from, to, tokenId); } /** * @dev See {IERC721-safeTransferFrom}. */ function safeTransferFrom( address from, address to, uint256 tokenId ) public virtual override { safeTransferFrom(from, to, tokenId, ""); } /** * @dev See {IERC721-safeTransferFrom}. */ function safeTransferFrom( address from, address to, uint256 tokenId, bytes memory _data ) public virtual override { require(_isApprovedOrOwner(_msgSender(), tokenId), "ERC721: transfer caller is not owner nor approved"); _safeTransfer(from, to, tokenId, _data); } /** * @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. * * `_data` is additional data, it has no specified format and it is sent in call to `to`. * * This internal function is equivalent to {safeTransferFrom}, and can be used to e.g. * implement alternative mechanisms to perform token transfer, such as signature-based. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must exist and be owned by `from`. * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */ function _safeTransfer( address from, address to, uint256 tokenId, bytes memory _data ) internal virtual { _transfer(from, to, tokenId); require(_checkOnERC721Received(from, to, tokenId, _data), "ERC721: transfer to non ERC721Receiver implementer"); } /** * @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 (`_mint`), * and stop existing when they are burned (`_burn`). */ function _exists(uint256 tokenId) internal view virtual returns (bool) { return tokenId < _owners.length && _owners[tokenId] != address(0); } /** * @dev Returns whether `spender` is allowed to manage `tokenId`. * * Requirements: * * - `tokenId` must exist. */ function _isApprovedOrOwner(address spender, uint256 tokenId) internal view virtual returns (bool) { require(_exists(tokenId), "ERC721: operator query for nonexistent token"); address owner = ERC721M.ownerOf(tokenId); return (spender == owner || getApproved(tokenId) == spender || isApprovedForAll(owner, spender)); } /** * @dev Safely mints `tokenId` and transfers it to `to`. * * Requirements: * * - `tokenId` must not exist. * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */ function _safeMint(address to, uint256 tokenId) internal virtual { _safeMint(to, tokenId, ""); } /** * @dev Same as {xref-ERC721-_safeMint-address-uint256-}[`_safeMint`], with an additional `data` parameter which is * forwarded in {IERC721Receiver-onERC721Received} to contract recipients. */ function _safeMint( address to, uint256 tokenId, bytes memory _data ) internal virtual { _mint(to, tokenId); require( _checkOnERC721Received(address(0), to, tokenId, _data), "ERC721: transfer to non ERC721Receiver implementer" ); } /** * @dev Mints `tokenId` and transfers it to `to`. * * WARNING: Usage of this method is discouraged, use {_safeMint} whenever possible * * Requirements: * * - `tokenId` must not exist. * - `to` cannot be the zero address. * * Emits a {Transfer} event. */ function _mint(address to, uint256 tokenId) internal virtual { require(to != address(0), "ERC721: mint to the zero address"); require(!_exists(tokenId), "ERC721: token already minted"); _beforeTokenTransfer(address(0), to, tokenId); _owners.push(to); emit Transfer(address(0), to, tokenId); } /** * @dev Destroys `tokenId`. * The approval is cleared when the token is burned. * * Requirements: * * - `tokenId` must exist. * * Emits a {Transfer} event. */ function _burn(uint256 tokenId) internal virtual { address owner = ERC721M.ownerOf(tokenId); _beforeTokenTransfer(owner, address(0), tokenId); // Clear approvals _approve(address(0), tokenId); _owners[tokenId] = address(0); emit Transfer(owner, address(0), tokenId); } /** * @dev Transfers `tokenId` from `from` to `to`. * As opposed to {transferFrom}, this imposes no restrictions on msg.sender. * * Requirements: * * - `to` cannot be the zero address. * - `tokenId` token must be owned by `from`. * * Emits a {Transfer} event. */ function _transfer( address from, address to, uint256 tokenId ) internal virtual { require(ERC721M.ownerOf(tokenId) == from, "ERC721: transfer of token that is not own"); require(to != address(0), "ERC721: transfer to the zero address"); _beforeTokenTransfer(from, to, tokenId); // Clear approvals from the previous owner _approve(address(0), tokenId); _owners[tokenId] = to; emit Transfer(from, to, tokenId); } /** * @dev Approve `to` to operate on `tokenId` * * Emits a {Approval} event. */ function _approve(address to, uint256 tokenId) internal virtual { _tokenApprovals[tokenId] = to; emit Approval(ERC721M.ownerOf(tokenId), to, tokenId); } /** * @dev Internal function to invoke {IERC721Receiver-onERC721Received} on a target address. * The call is not executed if the target address is not a contract. * * @param from address representing the previous owner of the given token ID * @param to target address that will receive the tokens * @param tokenId uint256 ID of the token to be transferred * @param _data bytes optional data to send along with the call * @return bool whether the call correctly returned the expected magic value */ function _checkOnERC721Received( address from, address to, uint256 tokenId, bytes memory _data ) private returns (bool) { if (to.isContract()) { try IERC721Receiver(to).onERC721Received(_msgSender(), from, tokenId, _data) returns (bytes4 retval) { return retval == IERC721Receiver.onERC721Received.selector; } catch (bytes memory reason) { if (reason.length == 0) { revert("ERC721: transfer to non ERC721Receiver implementer"); } else { assembly { revert(add(32, reason), mload(reason)) } } } } else { return true; } } /** * @dev Hook that is called before any token transfer. This includes minting * and burning. * * 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, ``from``'s `tokenId` will be burned. * - `from` and `to` are never both zero. * * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks]. */ function _beforeTokenTransfer( address from, address to, uint256 tokenId ) internal virtual {} }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import "../IERC721.sol"; /** * @title ERC-721 Non-Fungible Token Standard, optional enumeration extension * @dev See https://eips.ethereum.org/EIPS/eip-721 */ interface IERC721Enumerable is IERC721 { /** * @dev Returns the total amount of tokens stored by the contract. */ function totalSupply() external view returns (uint256); /** * @dev Returns a token ID owned by `owner` at a given `index` of its token list. * Use along with {balanceOf} to enumerate all of ``owner``'s tokens. */ function tokenOfOwnerByIndex(address owner, uint256 index) external view returns (uint256 tokenId); /** * @dev Returns a token ID at a given `index` of all the tokens stored by the contract. * Use along with {totalSupply} to enumerate all tokens. */ function tokenByIndex(uint256 index) external view returns (uint256); }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import "../../utils/introspection/IERC165.sol"; /** * @dev Required interface of an ERC721 compliant contract. */ interface IERC721 is IERC165 { /** * @dev Emitted when `tokenId` token is transferred from `from` to `to`. */ event Transfer(address indexed from, address indexed to, uint256 indexed tokenId); /** * @dev Emitted when `owner` enables `approved` to manage the `tokenId` token. */ event Approval(address indexed owner, address indexed approved, uint256 indexed tokenId); /** * @dev Emitted when `owner` enables or disables (`approved`) `operator` to manage all of its assets. */ event ApprovalForAll(address indexed owner, address indexed operator, bool approved); /** * @dev Returns the number of tokens in ``owner``'s account. */ function balanceOf(address owner) external view returns (uint256 balance); /** * @dev Returns the owner of the `tokenId` token. * * Requirements: * * - `tokenId` must exist. */ function ownerOf(uint256 tokenId) external view returns (address owner); /** * @dev Safely transfers `tokenId` token from `from` to `to`, 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 ) external; /** * @dev Transfers `tokenId` token from `from` to `to`. * * WARNING: Usage of this method is discouraged, use {safeTransferFrom} whenever possible. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must be owned by `from`. * - If the caller is not `from`, it must be approved to move this token by either {approve} or {setApprovalForAll}. * * Emits a {Transfer} event. */ function transferFrom( address from, address to, uint256 tokenId ) external; /** * @dev Gives permission to `to` to transfer `tokenId` token to another account. * The approval is cleared when the token is transferred. * * Only a single account can be approved at a time, so approving the zero address clears previous approvals. * * Requirements: * * - The caller must own the token or be an approved operator. * - `tokenId` must exist. * * Emits an {Approval} event. */ function approve(address to, uint256 tokenId) external; /** * @dev Returns the account approved for `tokenId` token. * * Requirements: * * - `tokenId` must exist. */ function getApproved(uint256 tokenId) external view returns (address operator); /** * @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 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); /** * @dev Safely transfers `tokenId` token from `from` to `to`. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must exist and be owned by `from`. * - If the caller is not `from`, it must be approved to move this token by either {approve} or {setApprovalForAll}. * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */ function safeTransferFrom( address from, address to, uint256 tokenId, bytes calldata data ) external; }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; /** * @title ERC721 token receiver interface * @dev Interface for any contract that wants to support safeTransfers * from ERC721 asset contracts. */ interface IERC721Receiver { /** * @dev Whenever an {IERC721} `tokenId` token is transferred to this contract via {IERC721-safeTransferFrom} * by `operator` from `from`, this function is called. * * It must return its Solidity selector to confirm the token transfer. * If any other value is returned or the interface is not implemented by the recipient, the transfer will be reverted. * * The selector can be obtained in Solidity with `IERC721.onERC721Received.selector`. */ function onERC721Received( address operator, address from, uint256 tokenId, bytes calldata data ) external returns (bytes4); }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import "../IERC721.sol"; /** * @title ERC-721 Non-Fungible Token Standard, optional metadata extension * @dev See https://eips.ethereum.org/EIPS/eip-721 */ interface IERC721Metadata is IERC721 { /** * @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); }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; /** * @dev Collection of functions related to the address type */ library Address { /** * @dev Returns true if `account` is a contract. * * [IMPORTANT] * ==== * It is unsafe to assume that an address for which this function returns * false is an externally-owned account (EOA) and not a contract. * * Among others, `isContract` will return false for the following * types of addresses: * * - an externally-owned account * - a contract in construction * - an address where a contract will be created * - an address where a contract lived, but was destroyed * ==== */ function isContract(address account) internal view returns (bool) { // This method relies on extcodesize, which returns 0 for contracts in // construction, since the code is only stored at the end of the // constructor execution. uint256 size; assembly { size := extcodesize(account) } return size > 0; } /** * @dev Replacement for Solidity's `transfer`: sends `amount` wei to * `recipient`, forwarding all available gas and reverting on errors. * * https://eips.ethereum.org/EIPS/eip-1884[EIP1884] increases the gas cost * of certain opcodes, possibly making contracts go over the 2300 gas limit * imposed by `transfer`, making them unable to receive funds via * `transfer`. {sendValue} removes this limitation. * * https://diligence.consensys.net/posts/2019/09/stop-using-soliditys-transfer-now/[Learn more]. * * IMPORTANT: because control is transferred to `recipient`, care must be * taken to not create reentrancy vulnerabilities. Consider using * {ReentrancyGuard} or the * https://solidity.readthedocs.io/en/v0.5.11/security-considerations.html#use-the-checks-effects-interactions-pattern[checks-effects-interactions pattern]. */ function sendValue(address payable recipient, uint256 amount) internal { require(address(this).balance >= amount, "Address: insufficient balance"); (bool success, ) = recipient.call{value: amount}(""); require(success, "Address: unable to send value, recipient may have reverted"); } /** * @dev Performs a Solidity function call using a low level `call`. A * plain `call` is an unsafe replacement for a function call: use this * function instead. * * If `target` reverts with a revert reason, it is bubbled up by this * function (like regular Solidity function calls). * * Returns the raw returned data. To convert to the expected return value, * use https://solidity.readthedocs.io/en/latest/units-and-global-variables.html?highlight=abi.decode#abi-encoding-and-decoding-functions[`abi.decode`]. * * Requirements: * * - `target` must be a contract. * - calling `target` with `data` must not revert. * * _Available since v3.1._ */ function functionCall(address target, bytes memory data) internal returns (bytes memory) { return functionCall(target, data, "Address: low-level call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], but with * `errorMessage` as a fallback revert reason when `target` reverts. * * _Available since v3.1._ */ function functionCall( address target, bytes memory data, string memory errorMessage ) internal returns (bytes memory) { return functionCallWithValue(target, data, 0, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but also transferring `value` wei to `target`. * * Requirements: * * - the calling contract must have an ETH balance of at least `value`. * - the called Solidity function must be `payable`. * * _Available since v3.1._ */ function functionCallWithValue( address target, bytes memory data, uint256 value ) internal returns (bytes memory) { return functionCallWithValue(target, data, value, "Address: low-level call with value failed"); } /** * @dev Same as {xref-Address-functionCallWithValue-address-bytes-uint256-}[`functionCallWithValue`], but * with `errorMessage` as a fallback revert reason when `target` reverts. * * _Available since v3.1._ */ function functionCallWithValue( address target, bytes memory data, uint256 value, string memory errorMessage ) internal returns (bytes memory) { require(address(this).balance >= value, "Address: insufficient balance for call"); require(isContract(target), "Address: call to non-contract"); (bool success, bytes memory returndata) = target.call{value: value}(data); return verifyCallResult(success, returndata, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but performing a static call. * * _Available since v3.3._ */ function functionStaticCall(address target, bytes memory data) internal view returns (bytes memory) { return functionStaticCall(target, data, "Address: low-level static call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`], * but performing a static call. * * _Available since v3.3._ */ function functionStaticCall( address target, bytes memory data, string memory errorMessage ) internal view returns (bytes memory) { require(isContract(target), "Address: static call to non-contract"); (bool success, bytes memory returndata) = target.staticcall(data); return verifyCallResult(success, returndata, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but performing a delegate call. * * _Available since v3.4._ */ function functionDelegateCall(address target, bytes memory data) internal returns (bytes memory) { return functionDelegateCall(target, data, "Address: low-level delegate call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`], * but performing a delegate call. * * _Available since v3.4._ */ function functionDelegateCall( address target, bytes memory data, string memory errorMessage ) internal returns (bytes memory) { require(isContract(target), "Address: delegate call to non-contract"); (bool success, bytes memory returndata) = target.delegatecall(data); return verifyCallResult(success, returndata, errorMessage); } /** * @dev Tool to verifies that a low level call was successful, and revert if it wasn't, either by bubbling the * revert reason using the provided one. * * _Available since v4.3._ */ function verifyCallResult( bool success, bytes memory returndata, string memory errorMessage ) internal pure returns (bytes memory) { if (success) { return returndata; } else { // Look for revert reason and bubble it up if present if (returndata.length > 0) { // The easiest way to bubble the revert reason is using memory via assembly assembly { let returndata_size := mload(returndata) revert(add(32, returndata), returndata_size) } } else { revert(errorMessage); } } } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; /** * @dev Provides information about the current execution context, including the * sender of the transaction and its data. While these are generally available * via msg.sender and msg.data, they should not be accessed in such a direct * manner, since when dealing with meta-transactions the account sending and * paying for execution may not be the actual sender (as far as an application * is concerned). * * This contract is only required for intermediate, library-like contracts. */ abstract contract Context { function _msgSender() internal view virtual returns (address) { return msg.sender; } function _msgData() internal view virtual returns (bytes calldata) { return msg.data; } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import "./IERC165.sol"; /** * @dev Implementation of the {IERC165} interface. * * Contracts that want to implement ERC165 should inherit from this contract and override {supportsInterface} to check * for the additional interface id that will be supported. For example: * * ```solidity * function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) { * return interfaceId == type(MyInterface).interfaceId || super.supportsInterface(interfaceId); * } * ``` * * Alternatively, {ERC165Storage} provides an easier to use but more expensive implementation. */ abstract contract ERC165 is IERC165 { /** * @dev See {IERC165-supportsInterface}. */ function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) { return interfaceId == type(IERC165).interfaceId; } }
// SPDX-License-Identifier: MIT 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); }
{ "optimizer": { "enabled": true, "runs": 1000 }, "outputSelection": { "*": { "*": [ "evm.bytecode", "evm.deployedBytecode", "devdoc", "userdoc", "metadata", "abi" ] } }, "libraries": {} }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"inputs":[{"internalType":"string","name":"defaultTokenURI","type":"string"},{"internalType":"bytes32","name":"merkleroot","type":"bytes32"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"approved","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":false,"internalType":"bool","name":"approved","type":"bool"}],"name":"ApprovalForAll","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Transfer","type":"event"},{"inputs":[],"name":"MAX_AIRDROP","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"MAX_PER_TX","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"PRICE","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"TOTAL","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"addressAirdopMinted","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"addr","type":"address"}],"name":"airdopMintedCount","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"count","type":"uint256"},{"internalType":"uint256","name":"allowance","type":"uint256"},{"internalType":"bytes32[]","name":"proof","type":"bytes32[]"}],"name":"airdropMint","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"airdropQtyMinted","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"approve","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"baseURI","outputs":[{"internalType":"string","name":"","type":"string"}],"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":[{"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":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"ownerOf","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"count","type":"uint256"}],"name":"publicMint","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"root","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"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":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"bytes","name":"_data","type":"bytes"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"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":"string","name":"URI","type":"string"}],"name":"setContractURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"URI","type":"string"}],"name":"setDefaultTokenURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"merkleroot","type":"bytes32"}],"name":"setMerkleRoot","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_price","type":"uint256"}],"name":"setPrice","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_price","type":"uint256"}],"name":"setPublicSale","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"enum SoulcopsCompanion.Stage","name":"_stage","type":"uint8"}],"name":"setStage","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"stage","outputs":[{"internalType":"enum SoulcopsCompanion.Stage","name":"","type":"uint8"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes4","name":"interfaceId","type":"bytes4"}],"name":"supportsInterface","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"index","type":"uint256"}],"name":"tokenByIndex","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"uint256","name":"index","type":"uint256"}],"name":"tokenOfOwnerByIndex","outputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"tokenURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_owner","type":"address"}],"name":"tokensOfOwner","outputs":[{"internalType":"uint256[]","name":"","type":"uint256[]"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"transferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"withdraw","outputs":[],"stateMutability":"nonpayable","type":"function"}]
Contract Creation Code
6080604052600d80546001600160a01b0319167371d54d6dd26339b4d69c5cd922c4846ac6fb5e951790553480156200003757600080fd5b5060405162002faf38038062002faf8339810160408190526200005a9162000204565b604080518082018252601281527129b7bab631b7b8399021b7b6b830b734b7b760711b60208083019182528351808501909452600984526821a7a6a820a724a7a760b91b908401528151919291620000b5916000916200015e565b508051620000cb9060019060208401906200015e565b505050620000e8620000e26200010860201b60201c565b6200010c565b8151620000fd90600c9060208501906200015e565b50600655506200033c565b3390565b600580546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b8280546200016c90620002e9565b90600052602060002090601f016020900481019282620001905760008555620001db565b82601f10620001ab57805160ff1916838001178555620001db565b82800160010185558215620001db579182015b82811115620001db578251825591602001919060010190620001be565b50620001e9929150620001ed565b5090565b5b80821115620001e95760008155600101620001ee565b600080604083850312156200021857600080fd5b82516001600160401b03808211156200023057600080fd5b818501915085601f8301126200024557600080fd5b8151818111156200025a576200025a62000326565b604051601f8201601f19908116603f0116810190838211818310171562000285576200028562000326565b81604052828152602093508884848701011115620002a257600080fd5b600091505b82821015620002c65784820184015181830185015290830190620002a7565b82821115620002d85760008484830101525b969092015195979596505050505050565b600181811c90821680620002fe57607f821691505b602082108114156200032057634e487b7160e01b600052602260045260246000fd5b50919050565b634e487b7160e01b600052604160045260246000fd5b612c63806200034c6000396000f3fe6080604052600436106102c65760003560e01c80637cb6475911610179578063c040e6b8116100d6578063e3e184eb1161008a578063ebf0c71711610064578063ebf0c717146107b4578063f2fde38b146107ca578063f43a22dc146107ea57600080fd5b8063e3e184eb14610736578063e8a3d48514610756578063e985e9c51461076b57600080fd5b8063ce3cd997116100bb578063ce3cd997146106d3578063df219767146106f3578063df93315d1461072057600080fd5b8063c040e6b814610685578063c87b56dd146106b357600080fd5b8063938e3d7b1161012d578063a125c82411610112578063a125c82414610625578063a22cb46514610645578063b88d4fde1461066557600080fd5b8063938e3d7b146105f057806395d89b411461061057600080fd5b80638d859f3e1161015e5780638d859f3e1461059c5780638da5cb5b146105b257806391b7f5ed146105d057600080fd5b80637cb647591461054f5780638462151c1461056f57600080fd5b806342842e0e116102275780636352211e116101db5780636c0360eb116101c05780636c0360eb1461050557806370a082311461051a578063715018a61461053a57600080fd5b80636352211e146104c557806365fedeae146104e557600080fd5b80634f6ccce71161020c5780634f6ccce71461046f57806355f804b31461048f5780635b0defc7146104af57600080fd5b806342842e0e1461041957806342e362141461043957600080fd5b806323b872dd1161027e5780632db11544116102635780632db11544146103d15780632f745c59146103e45780633ccfd60b1461040457600080fd5b806323b872dd1461039b57806327efc086146103bb57600080fd5b8063081812fc116102af578063081812fc14610322578063095ea7b31461035a57806318160ddd1461037c57600080fd5b806301ffc9a7146102cb57806306fdde0314610300575b600080fd5b3480156102d757600080fd5b506102eb6102e636600461284b565b6107ff565b60405190151581526020015b60405180910390f35b34801561030c57600080fd5b50610315610843565b6040516102f79190612a9e565b34801561032e57600080fd5b5061034261033d366004612832565b6108d5565b6040516001600160a01b0390911681526020016102f7565b34801561036657600080fd5b5061037a610375366004612808565b610962565b005b34801561038857600080fd5b506002545b6040519081526020016102f7565b3480156103a757600080fd5b5061037a6103b63660046126b4565b610a94565b3480156103c757600080fd5b5061038d61271081565b61037a6103df366004612832565b610b1b565b3480156103f057600080fd5b5061038d6103ff366004612808565b610cfb565b34801561041057600080fd5b5061037a610e32565b34801561042557600080fd5b5061037a6104343660046126b4565b610ea4565b34801561044557600080fd5b5061038d610454366004612666565b6001600160a01b031660009081526009602052604090205490565b34801561047b57600080fd5b5061038d61048a366004612832565b610ebf565b34801561049b57600080fd5b5061037a6104aa3660046128a6565b610f42565b3480156104bb57600080fd5b5061038d60085481565b3480156104d157600080fd5b506103426104e0366004612832565b610fa8565b3480156104f157600080fd5b5061037a610500366004612918565b611048565b34801561051157600080fd5b5061031561136c565b34801561052657600080fd5b5061038d610535366004612666565b61137b565b34801561054657600080fd5b5061037a611460565b34801561055b57600080fd5b5061037a61056a366004612832565b6114c4565b34801561057b57600080fd5b5061058f61058a366004612666565b611523565b6040516102f79190612a32565b3480156105a857600080fd5b5061038d60075481565b3480156105be57600080fd5b506005546001600160a01b0316610342565b3480156105dc57600080fd5b5061037a6105eb366004612832565b6115c5565b3480156105fc57600080fd5b5061037a61060b3660046128a6565b611624565b34801561061c57600080fd5b5061031561168a565b34801561063157600080fd5b5061037a6106403660046128a6565b611699565b34801561065157600080fd5b5061037a6106603660046127cc565b6116ff565b34801561067157600080fd5b5061037a6106803660046126f0565b6117c4565b34801561069157600080fd5b506005546106a690600160a01b900460ff1681565b6040516102f79190612a76565b3480156106bf57600080fd5b506103156106ce366004612832565b611852565b3480156106df57600080fd5b5061037a6106ee366004612885565b6119a6565b3480156106ff57600080fd5b5061038d61070e366004612666565b60096020526000908152604090205481565b34801561072c57600080fd5b5061038d610bb881565b34801561074257600080fd5b5061037a610751366004612832565b611a8f565b34801561076257600080fd5b50610315611b12565b34801561077757600080fd5b506102eb610786366004612681565b6001600160a01b03918216600090815260046020908152604080832093909416825291909152205460ff1690565b3480156107c057600080fd5b5061038d60065481565b3480156107d657600080fd5b5061037a6107e5366004612666565b611b21565b3480156107f657600080fd5b5061038d600681565b60006001600160e01b031982167f780e9d6300000000000000000000000000000000000000000000000000000000148061083d575061083d82611c03565b92915050565b60606000805461085290612b3f565b80601f016020809104026020016040519081016040528092919081815260200182805461087e90612b3f565b80156108cb5780601f106108a0576101008083540402835291602001916108cb565b820191906000526020600020905b8154815290600101906020018083116108ae57829003601f168201915b5050505050905090565b60006108e082611c9e565b6109465760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a20617070726f76656420717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b60648201526084015b60405180910390fd5b506000908152600360205260409020546001600160a01b031690565b600061096d82610fa8565b9050806001600160a01b0316836001600160a01b031614156109f75760405162461bcd60e51b815260206004820152602160248201527f4552433732313a20617070726f76616c20746f2063757272656e74206f776e6560448201527f7200000000000000000000000000000000000000000000000000000000000000606482015260840161093d565b336001600160a01b0382161480610a135750610a138133610786565b610a855760405162461bcd60e51b815260206004820152603860248201527f4552433732313a20617070726f76652063616c6c6572206973206e6f74206f7760448201527f6e6572206e6f7220617070726f76656420666f7220616c6c0000000000000000606482015260840161093d565b610a8f8383611ce8565b505050565b610a9e3382611d63565b610b105760405162461bcd60e51b815260206004820152603160248201527f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f60448201527f776e6572206e6f7220617070726f766564000000000000000000000000000000606482015260840161093d565b610a8f838383611e4d565b6002805490600554600160a01b900460ff166002811115610b3e57610b3e612bd5565b14610b8b5760405162461bcd60e51b815260206004820152601460248201527f5468652073616c65206e6f74206163746976652e000000000000000000000000604482015260640161093d565b60068210610bdb5760405162461bcd60e51b815260206004820152601c60248201527f45786365656473206d617820706572207472616e73616374696f6e2e00000000604482015260640161093d565b612710610be88383612ab1565b1115610c485760405162461bcd60e51b815260206004820152602960248201527f4d696e74696e6720776f756c6420657863656564207468652073616c6520616c6044820152683637b1b0ba34b7b71760b91b606482015260840161093d565b3482600754610c579190612add565b14610cca5760405162461bcd60e51b815260206004820152602760248201527f4554482073656e74206e6f74206d61746368207769746820746f74616c20707560448201527f7263686173652e00000000000000000000000000000000000000000000000000606482015260840161093d565b60005b82811015610a8f57610ce9335b610ce48385612ab1565b611fdd565b80610cf381612b7a565b915050610ccd565b6000610d068361137b565b8210610d685760405162461bcd60e51b815260206004820152602b60248201527f455243373231456e756d657261626c653a206f776e657220696e646578206f7560448201526a74206f6620626f756e647360a81b606482015260840161093d565b6000805b600254811015610dd55760028181548110610d8957610d89612beb565b6000918252602090912001546001600160a01b0386811691161415610dc55783821415610db957915061083d9050565b610dc282612b7a565b91505b610dce81612b7a565b9050610d6c565b5060405162461bcd60e51b815260206004820152602b60248201527f455243373231456e756d657261626c653a206f776e657220696e646578206f7560448201526a74206f6620626f756e647360a81b606482015260840161093d565b6005546001600160a01b03163314610e8c5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015260640161093d565b600d54610ea2906001600160a01b031647612066565b565b610a8f838383604051806020016040528060008152506117c4565b6000610eca60025490565b8210610f3e5760405162461bcd60e51b815260206004820152602c60248201527f455243373231456e756d657261626c653a20676c6f62616c20696e646578206f60448201527f7574206f6620626f756e64730000000000000000000000000000000000000000606482015260840161093d565b5090565b6005546001600160a01b03163314610f9c5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015260640161093d565b610a8f600b83836125ba565b60008060028381548110610fbe57610fbe612beb565b6000918252602090912001546001600160a01b031690508061083d5760405162461bcd60e51b815260206004820152602960248201527f4552433732313a206f776e657220717565727920666f72206e6f6e657869737460448201527f656e7420746f6b656e0000000000000000000000000000000000000000000000606482015260840161093d565b600254604080513360601b6bffffffffffffffffffffffff1916602080830191909152603480830188905283518084039091018152605490920190925280519101206110c79084848080602002602001604051908101604052809392919081815260200183836020028082843760009201919091525061217f92505050565b6111135760405162461bcd60e51b815260206004820152601560248201527f496e76616c6964206d65726b6c652070726f6f662e0000000000000000000000604482015260640161093d565b6001600554600160a01b900460ff16600281111561113357611133612bd5565b146111805760405162461bcd60e51b815260206004820152601660248201527f54686520616972646f70206e6f74206163746976652e00000000000000000000604482015260640161093d565b610bb8856008546111919190612ab1565b11156112055760405162461bcd60e51b815260206004820152602c60248201527f4d696e74696e6720776f756c6420657863656564207468652061697264726f7060448201527f20616c6c6f636174696f6e2e0000000000000000000000000000000000000000606482015260840161093d565b6127106112128683612ab1565b11156112725760405162461bcd60e51b815260206004820152602960248201527f4d696e74696e6720776f756c6420657863656564207468652073616c6520616c6044820152683637b1b0ba34b7b71760b91b606482015260840161093d565b33600090815260096020526040902054849061128f908790612ab1565b11156113035760405162461bcd60e51b815260206004820152602560248201527f596f752063616e206e6f74206d696e742065786365656473206d6178696d756d60448201527f204e46542e000000000000000000000000000000000000000000000000000000606482015260840161093d565b3360009081526009602052604081208054879290611322908490612ab1565b90915550600090505b85811015611364576008805490600061134383612b7a565b9190505550611352610cda3390565b8061135c81612b7a565b91505061132b565b505050505050565b6060600b805461085290612b3f565b60006001600160a01b0382166113f95760405162461bcd60e51b815260206004820152602a60248201527f4552433732313a2062616c616e636520717565727920666f7220746865207a6560448201527f726f206164647265737300000000000000000000000000000000000000000000606482015260840161093d565b6000805b600254811015611459576002818154811061141a5761141a612beb565b6000918252602090912001546001600160a01b0385811691161415611447578161144381612b7a565b9250505b8061145181612b7a565b9150506113fd565b5092915050565b6005546001600160a01b031633146114ba5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015260640161093d565b610ea2600061218e565b6005546001600160a01b0316331461151e5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015260640161093d565b600655565b606060006115308361137b565b905060008167ffffffffffffffff81111561154d5761154d612c01565b604051908082528060200260200182016040528015611576578160200160208202803683370190505b50905060005b828110156115bd5761158e8582610cfb565b8282815181106115a0576115a0612beb565b6020908102919091010152806115b581612b7a565b91505061157c565b509392505050565b6005546001600160a01b0316331461161f5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015260640161093d565b600755565b6005546001600160a01b0316331461167e5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015260640161093d565b610a8f600a83836125ba565b60606001805461085290612b3f565b6005546001600160a01b031633146116f35760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015260640161093d565b610a8f600c83836125ba565b6001600160a01b0382163314156117585760405162461bcd60e51b815260206004820152601960248201527f4552433732313a20617070726f766520746f2063616c6c657200000000000000604482015260640161093d565b3360008181526004602090815260408083206001600160a01b03871680855290835292819020805460ff191686151590811790915590519081529192917f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a35050565b6117ce3383611d63565b6118405760405162461bcd60e51b815260206004820152603160248201527f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f60448201527f776e6572206e6f7220617070726f766564000000000000000000000000000000606482015260840161093d565b61184c848484846121ed565b50505050565b606061185d82611c9e565b6118cf5760405162461bcd60e51b815260206004820152603060248201527f4552433732314d657461646174613a2055524920717565727920666f72206e6f60448201527f6e6578697374656e7420746f6b656e2e00000000000000000000000000000000606482015260840161093d565b60006118d961136c565b9050600081511161197457600c80546118f190612b3f565b80601f016020809104026020016040519081016040528092919081815260200182805461191d90612b3f565b801561196a5780601f1061193f5761010080835404028352916020019161196a565b820191906000526020600020905b81548152906001019060200180831161194d57829003601f168201915b505050505061199f565b8061197e84612276565b60405160200161198f9291906129c7565b6040516020818303038152906040525b9392505050565b6005546001600160a01b03163314611a005760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015260640161093d565b6002816002811115611a1457611a14612bd5565b1415611a625760405162461bcd60e51b815260206004820181905260248201527f5075626c69632073616c65206d7573742077697468207365742070726963652e604482015260640161093d565b6005805482919060ff60a01b1916600160a01b836002811115611a8757611a87612bd5565b021790555050565b6005546001600160a01b03163314611ae95760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015260640161093d565b6005805460ff60a01b191674020000000000000000000000000000000000000000179055600755565b6060600a805461085290612b3f565b6005546001600160a01b03163314611b7b5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015260640161093d565b6001600160a01b038116611bf75760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201527f6464726573730000000000000000000000000000000000000000000000000000606482015260840161093d565b611c008161218e565b50565b60006001600160e01b031982167f80ac58cd000000000000000000000000000000000000000000000000000000001480611c6657506001600160e01b031982167f5b5e139f00000000000000000000000000000000000000000000000000000000145b8061083d57507f01ffc9a7000000000000000000000000000000000000000000000000000000006001600160e01b031983161461083d565b6002546000908210801561083d575060006001600160a01b031660028381548110611ccb57611ccb612beb565b6000918252602090912001546001600160a01b0316141592915050565b6000818152600360205260409020805473ffffffffffffffffffffffffffffffffffffffff19166001600160a01b0384169081179091558190611d2a82610fa8565b6001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b6000611d6e82611c9e565b611dcf5760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a206f70657261746f7220717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b606482015260840161093d565b6000611dda83610fa8565b9050806001600160a01b0316846001600160a01b03161480611e155750836001600160a01b0316611e0a846108d5565b6001600160a01b0316145b80611e4557506001600160a01b0380821660009081526004602090815260408083209388168352929052205460ff165b949350505050565b826001600160a01b0316611e6082610fa8565b6001600160a01b031614611edc5760405162461bcd60e51b815260206004820152602960248201527f4552433732313a207472616e73666572206f6620746f6b656e2074686174206960448201527f73206e6f74206f776e0000000000000000000000000000000000000000000000606482015260840161093d565b6001600160a01b038216611f575760405162461bcd60e51b8152602060048201526024808201527f4552433732313a207472616e7366657220746f20746865207a65726f2061646460448201527f7265737300000000000000000000000000000000000000000000000000000000606482015260840161093d565b611f62600082611ce8565b8160028281548110611f7657611f76612beb565b60009182526020822001805473ffffffffffffffffffffffffffffffffffffffff19166001600160a01b03938416179055604051839285811692908716917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9190a4505050565b6002805460018101825560009182527f405787fa12a823e0f2b7631cc41b3ba8828b3321ca811111fa75cd3aa3bb5ace01805473ffffffffffffffffffffffffffffffffffffffff19166001600160a01b0385169081179091556040518392907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b804710156120b65760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a20696e73756666696369656e742062616c616e6365000000604482015260640161093d565b6000826001600160a01b03168260405160006040518083038185875af1925050503d8060008114612103576040519150601f19603f3d011682016040523d82523d6000602084013e612108565b606091505b5050905080610a8f5760405162461bcd60e51b815260206004820152603a60248201527f416464726573733a20756e61626c6520746f2073656e642076616c75652c207260448201527f6563697069656e74206d61792068617665207265766572746564000000000000606482015260840161093d565b600061199f82600654856123a8565b600580546001600160a01b0383811673ffffffffffffffffffffffffffffffffffffffff19831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b6121f8848484611e4d565b61220484848484612457565b61184c5760405162461bcd60e51b815260206004820152603260248201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560448201527f63656976657220696d706c656d656e7465720000000000000000000000000000606482015260840161093d565b6060816122b657505060408051808201909152600181527f3000000000000000000000000000000000000000000000000000000000000000602082015290565b8160005b81156122e057806122ca81612b7a565b91506122d99050600a83612ac9565b91506122ba565b60008167ffffffffffffffff8111156122fb576122fb612c01565b6040519080825280601f01601f191660200182016040528015612325576020820181803683370190505b5090505b8415611e455761233a600183612afc565b9150612347600a86612b95565b612352906030612ab1565b60f81b81838151811061236757612367612beb565b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a9053506123a1600a86612ac9565b9450612329565b600081815b855181101561244c5760008682815181106123ca576123ca612beb565b6020026020010151905080831161240c576040805160208101859052908101829052606001604051602081830303815290604052805190602001209250612439565b60408051602081018390529081018490526060016040516020818303038152906040528051906020012092505b508061244481612b7a565b9150506123ad565b509092149392505050565b60006001600160a01b0384163b156125af57604051630a85bd0160e11b81526001600160a01b0385169063150b7a029061249b9033908990889088906004016129f6565b602060405180830381600087803b1580156124b557600080fd5b505af19250505080156124e5575060408051601f3d908101601f191682019092526124e291810190612868565b60015b612595573d808015612513576040519150601f19603f3d011682016040523d82523d6000602084013e612518565b606091505b50805161258d5760405162461bcd60e51b815260206004820152603260248201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560448201527f63656976657220696d706c656d656e7465720000000000000000000000000000606482015260840161093d565b805181602001fd5b6001600160e01b031916630a85bd0160e11b149050611e45565b506001949350505050565b8280546125c690612b3f565b90600052602060002090601f0160209004810192826125e8576000855561262e565b82601f106126015782800160ff1982351617855561262e565b8280016001018555821561262e579182015b8281111561262e578235825591602001919060010190612613565b50610f3e9291505b80821115610f3e5760008155600101612636565b80356001600160a01b038116811461266157600080fd5b919050565b60006020828403121561267857600080fd5b61199f8261264a565b6000806040838503121561269457600080fd5b61269d8361264a565b91506126ab6020840161264a565b90509250929050565b6000806000606084860312156126c957600080fd5b6126d28461264a565b92506126e06020850161264a565b9150604084013590509250925092565b6000806000806080858703121561270657600080fd5b61270f8561264a565b935061271d6020860161264a565b925060408501359150606085013567ffffffffffffffff8082111561274157600080fd5b818701915087601f83011261275557600080fd5b81358181111561276757612767612c01565b604051601f8201601f19908116603f0116810190838211818310171561278f5761278f612c01565b816040528281528a60208487010111156127a857600080fd5b82602086016020830137600060208483010152809550505050505092959194509250565b600080604083850312156127df57600080fd5b6127e88361264a565b9150602083013580151581146127fd57600080fd5b809150509250929050565b6000806040838503121561281b57600080fd5b6128248361264a565b946020939093013593505050565b60006020828403121561284457600080fd5b5035919050565b60006020828403121561285d57600080fd5b813561199f81612c17565b60006020828403121561287a57600080fd5b815161199f81612c17565b60006020828403121561289757600080fd5b81356003811061199f57600080fd5b600080602083850312156128b957600080fd5b823567ffffffffffffffff808211156128d157600080fd5b818501915085601f8301126128e557600080fd5b8135818111156128f457600080fd5b86602082850101111561290657600080fd5b60209290920196919550909350505050565b6000806000806060858703121561292e57600080fd5b8435935060208501359250604085013567ffffffffffffffff8082111561295457600080fd5b818701915087601f83011261296857600080fd5b81358181111561297757600080fd5b8860208260051b850101111561298c57600080fd5b95989497505060200194505050565b600081518084526129b3816020860160208601612b13565b601f01601f19169290920160200192915050565b600083516129d9818460208801612b13565b8351908301906129ed818360208801612b13565b01949350505050565b60006001600160a01b03808716835280861660208401525083604083015260806060830152612a28608083018461299b565b9695505050505050565b6020808252825182820181905260009190848201906040850190845b81811015612a6a57835183529284019291840191600101612a4e565b50909695505050505050565b6020810160038310612a9857634e487b7160e01b600052602160045260246000fd5b91905290565b60208152600061199f602083018461299b565b60008219821115612ac457612ac4612ba9565b500190565b600082612ad857612ad8612bbf565b500490565b6000816000190483118215151615612af757612af7612ba9565b500290565b600082821015612b0e57612b0e612ba9565b500390565b60005b83811015612b2e578181015183820152602001612b16565b8381111561184c5750506000910152565b600181811c90821680612b5357607f821691505b60208210811415612b7457634e487b7160e01b600052602260045260246000fd5b50919050565b6000600019821415612b8e57612b8e612ba9565b5060010190565b600082612ba457612ba4612bbf565b500690565b634e487b7160e01b600052601160045260246000fd5b634e487b7160e01b600052601260045260246000fd5b634e487b7160e01b600052602160045260246000fd5b634e487b7160e01b600052603260045260246000fd5b634e487b7160e01b600052604160045260246000fd5b6001600160e01b031981168114611c0057600080fdfea26469706673582212209cfe0d0ed07c5301d190fb31d0b3748e961434727507bdcd6d88f639d7ff6f0264736f6c63430008070033000000000000000000000000000000000000000000000000000000000000004093771aeb176d1d41921cd47465c331f862f068f10d8a4543e52399670d001c770000000000000000000000000000000000000000000000000000000000000027687474703a2f2f6d657461646174612e736f756c636f70732e636f6d2f636f6d70616e696f6e2f00000000000000000000000000000000000000000000000000
Deployed Bytecode
0x6080604052600436106102c65760003560e01c80637cb6475911610179578063c040e6b8116100d6578063e3e184eb1161008a578063ebf0c71711610064578063ebf0c717146107b4578063f2fde38b146107ca578063f43a22dc146107ea57600080fd5b8063e3e184eb14610736578063e8a3d48514610756578063e985e9c51461076b57600080fd5b8063ce3cd997116100bb578063ce3cd997146106d3578063df219767146106f3578063df93315d1461072057600080fd5b8063c040e6b814610685578063c87b56dd146106b357600080fd5b8063938e3d7b1161012d578063a125c82411610112578063a125c82414610625578063a22cb46514610645578063b88d4fde1461066557600080fd5b8063938e3d7b146105f057806395d89b411461061057600080fd5b80638d859f3e1161015e5780638d859f3e1461059c5780638da5cb5b146105b257806391b7f5ed146105d057600080fd5b80637cb647591461054f5780638462151c1461056f57600080fd5b806342842e0e116102275780636352211e116101db5780636c0360eb116101c05780636c0360eb1461050557806370a082311461051a578063715018a61461053a57600080fd5b80636352211e146104c557806365fedeae146104e557600080fd5b80634f6ccce71161020c5780634f6ccce71461046f57806355f804b31461048f5780635b0defc7146104af57600080fd5b806342842e0e1461041957806342e362141461043957600080fd5b806323b872dd1161027e5780632db11544116102635780632db11544146103d15780632f745c59146103e45780633ccfd60b1461040457600080fd5b806323b872dd1461039b57806327efc086146103bb57600080fd5b8063081812fc116102af578063081812fc14610322578063095ea7b31461035a57806318160ddd1461037c57600080fd5b806301ffc9a7146102cb57806306fdde0314610300575b600080fd5b3480156102d757600080fd5b506102eb6102e636600461284b565b6107ff565b60405190151581526020015b60405180910390f35b34801561030c57600080fd5b50610315610843565b6040516102f79190612a9e565b34801561032e57600080fd5b5061034261033d366004612832565b6108d5565b6040516001600160a01b0390911681526020016102f7565b34801561036657600080fd5b5061037a610375366004612808565b610962565b005b34801561038857600080fd5b506002545b6040519081526020016102f7565b3480156103a757600080fd5b5061037a6103b63660046126b4565b610a94565b3480156103c757600080fd5b5061038d61271081565b61037a6103df366004612832565b610b1b565b3480156103f057600080fd5b5061038d6103ff366004612808565b610cfb565b34801561041057600080fd5b5061037a610e32565b34801561042557600080fd5b5061037a6104343660046126b4565b610ea4565b34801561044557600080fd5b5061038d610454366004612666565b6001600160a01b031660009081526009602052604090205490565b34801561047b57600080fd5b5061038d61048a366004612832565b610ebf565b34801561049b57600080fd5b5061037a6104aa3660046128a6565b610f42565b3480156104bb57600080fd5b5061038d60085481565b3480156104d157600080fd5b506103426104e0366004612832565b610fa8565b3480156104f157600080fd5b5061037a610500366004612918565b611048565b34801561051157600080fd5b5061031561136c565b34801561052657600080fd5b5061038d610535366004612666565b61137b565b34801561054657600080fd5b5061037a611460565b34801561055b57600080fd5b5061037a61056a366004612832565b6114c4565b34801561057b57600080fd5b5061058f61058a366004612666565b611523565b6040516102f79190612a32565b3480156105a857600080fd5b5061038d60075481565b3480156105be57600080fd5b506005546001600160a01b0316610342565b3480156105dc57600080fd5b5061037a6105eb366004612832565b6115c5565b3480156105fc57600080fd5b5061037a61060b3660046128a6565b611624565b34801561061c57600080fd5b5061031561168a565b34801561063157600080fd5b5061037a6106403660046128a6565b611699565b34801561065157600080fd5b5061037a6106603660046127cc565b6116ff565b34801561067157600080fd5b5061037a6106803660046126f0565b6117c4565b34801561069157600080fd5b506005546106a690600160a01b900460ff1681565b6040516102f79190612a76565b3480156106bf57600080fd5b506103156106ce366004612832565b611852565b3480156106df57600080fd5b5061037a6106ee366004612885565b6119a6565b3480156106ff57600080fd5b5061038d61070e366004612666565b60096020526000908152604090205481565b34801561072c57600080fd5b5061038d610bb881565b34801561074257600080fd5b5061037a610751366004612832565b611a8f565b34801561076257600080fd5b50610315611b12565b34801561077757600080fd5b506102eb610786366004612681565b6001600160a01b03918216600090815260046020908152604080832093909416825291909152205460ff1690565b3480156107c057600080fd5b5061038d60065481565b3480156107d657600080fd5b5061037a6107e5366004612666565b611b21565b3480156107f657600080fd5b5061038d600681565b60006001600160e01b031982167f780e9d6300000000000000000000000000000000000000000000000000000000148061083d575061083d82611c03565b92915050565b60606000805461085290612b3f565b80601f016020809104026020016040519081016040528092919081815260200182805461087e90612b3f565b80156108cb5780601f106108a0576101008083540402835291602001916108cb565b820191906000526020600020905b8154815290600101906020018083116108ae57829003601f168201915b5050505050905090565b60006108e082611c9e565b6109465760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a20617070726f76656420717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b60648201526084015b60405180910390fd5b506000908152600360205260409020546001600160a01b031690565b600061096d82610fa8565b9050806001600160a01b0316836001600160a01b031614156109f75760405162461bcd60e51b815260206004820152602160248201527f4552433732313a20617070726f76616c20746f2063757272656e74206f776e6560448201527f7200000000000000000000000000000000000000000000000000000000000000606482015260840161093d565b336001600160a01b0382161480610a135750610a138133610786565b610a855760405162461bcd60e51b815260206004820152603860248201527f4552433732313a20617070726f76652063616c6c6572206973206e6f74206f7760448201527f6e6572206e6f7220617070726f76656420666f7220616c6c0000000000000000606482015260840161093d565b610a8f8383611ce8565b505050565b610a9e3382611d63565b610b105760405162461bcd60e51b815260206004820152603160248201527f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f60448201527f776e6572206e6f7220617070726f766564000000000000000000000000000000606482015260840161093d565b610a8f838383611e4d565b6002805490600554600160a01b900460ff166002811115610b3e57610b3e612bd5565b14610b8b5760405162461bcd60e51b815260206004820152601460248201527f5468652073616c65206e6f74206163746976652e000000000000000000000000604482015260640161093d565b60068210610bdb5760405162461bcd60e51b815260206004820152601c60248201527f45786365656473206d617820706572207472616e73616374696f6e2e00000000604482015260640161093d565b612710610be88383612ab1565b1115610c485760405162461bcd60e51b815260206004820152602960248201527f4d696e74696e6720776f756c6420657863656564207468652073616c6520616c6044820152683637b1b0ba34b7b71760b91b606482015260840161093d565b3482600754610c579190612add565b14610cca5760405162461bcd60e51b815260206004820152602760248201527f4554482073656e74206e6f74206d61746368207769746820746f74616c20707560448201527f7263686173652e00000000000000000000000000000000000000000000000000606482015260840161093d565b60005b82811015610a8f57610ce9335b610ce48385612ab1565b611fdd565b80610cf381612b7a565b915050610ccd565b6000610d068361137b565b8210610d685760405162461bcd60e51b815260206004820152602b60248201527f455243373231456e756d657261626c653a206f776e657220696e646578206f7560448201526a74206f6620626f756e647360a81b606482015260840161093d565b6000805b600254811015610dd55760028181548110610d8957610d89612beb565b6000918252602090912001546001600160a01b0386811691161415610dc55783821415610db957915061083d9050565b610dc282612b7a565b91505b610dce81612b7a565b9050610d6c565b5060405162461bcd60e51b815260206004820152602b60248201527f455243373231456e756d657261626c653a206f776e657220696e646578206f7560448201526a74206f6620626f756e647360a81b606482015260840161093d565b6005546001600160a01b03163314610e8c5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015260640161093d565b600d54610ea2906001600160a01b031647612066565b565b610a8f838383604051806020016040528060008152506117c4565b6000610eca60025490565b8210610f3e5760405162461bcd60e51b815260206004820152602c60248201527f455243373231456e756d657261626c653a20676c6f62616c20696e646578206f60448201527f7574206f6620626f756e64730000000000000000000000000000000000000000606482015260840161093d565b5090565b6005546001600160a01b03163314610f9c5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015260640161093d565b610a8f600b83836125ba565b60008060028381548110610fbe57610fbe612beb565b6000918252602090912001546001600160a01b031690508061083d5760405162461bcd60e51b815260206004820152602960248201527f4552433732313a206f776e657220717565727920666f72206e6f6e657869737460448201527f656e7420746f6b656e0000000000000000000000000000000000000000000000606482015260840161093d565b600254604080513360601b6bffffffffffffffffffffffff1916602080830191909152603480830188905283518084039091018152605490920190925280519101206110c79084848080602002602001604051908101604052809392919081815260200183836020028082843760009201919091525061217f92505050565b6111135760405162461bcd60e51b815260206004820152601560248201527f496e76616c6964206d65726b6c652070726f6f662e0000000000000000000000604482015260640161093d565b6001600554600160a01b900460ff16600281111561113357611133612bd5565b146111805760405162461bcd60e51b815260206004820152601660248201527f54686520616972646f70206e6f74206163746976652e00000000000000000000604482015260640161093d565b610bb8856008546111919190612ab1565b11156112055760405162461bcd60e51b815260206004820152602c60248201527f4d696e74696e6720776f756c6420657863656564207468652061697264726f7060448201527f20616c6c6f636174696f6e2e0000000000000000000000000000000000000000606482015260840161093d565b6127106112128683612ab1565b11156112725760405162461bcd60e51b815260206004820152602960248201527f4d696e74696e6720776f756c6420657863656564207468652073616c6520616c6044820152683637b1b0ba34b7b71760b91b606482015260840161093d565b33600090815260096020526040902054849061128f908790612ab1565b11156113035760405162461bcd60e51b815260206004820152602560248201527f596f752063616e206e6f74206d696e742065786365656473206d6178696d756d60448201527f204e46542e000000000000000000000000000000000000000000000000000000606482015260840161093d565b3360009081526009602052604081208054879290611322908490612ab1565b90915550600090505b85811015611364576008805490600061134383612b7a565b9190505550611352610cda3390565b8061135c81612b7a565b91505061132b565b505050505050565b6060600b805461085290612b3f565b60006001600160a01b0382166113f95760405162461bcd60e51b815260206004820152602a60248201527f4552433732313a2062616c616e636520717565727920666f7220746865207a6560448201527f726f206164647265737300000000000000000000000000000000000000000000606482015260840161093d565b6000805b600254811015611459576002818154811061141a5761141a612beb565b6000918252602090912001546001600160a01b0385811691161415611447578161144381612b7a565b9250505b8061145181612b7a565b9150506113fd565b5092915050565b6005546001600160a01b031633146114ba5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015260640161093d565b610ea2600061218e565b6005546001600160a01b0316331461151e5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015260640161093d565b600655565b606060006115308361137b565b905060008167ffffffffffffffff81111561154d5761154d612c01565b604051908082528060200260200182016040528015611576578160200160208202803683370190505b50905060005b828110156115bd5761158e8582610cfb565b8282815181106115a0576115a0612beb565b6020908102919091010152806115b581612b7a565b91505061157c565b509392505050565b6005546001600160a01b0316331461161f5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015260640161093d565b600755565b6005546001600160a01b0316331461167e5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015260640161093d565b610a8f600a83836125ba565b60606001805461085290612b3f565b6005546001600160a01b031633146116f35760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015260640161093d565b610a8f600c83836125ba565b6001600160a01b0382163314156117585760405162461bcd60e51b815260206004820152601960248201527f4552433732313a20617070726f766520746f2063616c6c657200000000000000604482015260640161093d565b3360008181526004602090815260408083206001600160a01b03871680855290835292819020805460ff191686151590811790915590519081529192917f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a35050565b6117ce3383611d63565b6118405760405162461bcd60e51b815260206004820152603160248201527f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f60448201527f776e6572206e6f7220617070726f766564000000000000000000000000000000606482015260840161093d565b61184c848484846121ed565b50505050565b606061185d82611c9e565b6118cf5760405162461bcd60e51b815260206004820152603060248201527f4552433732314d657461646174613a2055524920717565727920666f72206e6f60448201527f6e6578697374656e7420746f6b656e2e00000000000000000000000000000000606482015260840161093d565b60006118d961136c565b9050600081511161197457600c80546118f190612b3f565b80601f016020809104026020016040519081016040528092919081815260200182805461191d90612b3f565b801561196a5780601f1061193f5761010080835404028352916020019161196a565b820191906000526020600020905b81548152906001019060200180831161194d57829003601f168201915b505050505061199f565b8061197e84612276565b60405160200161198f9291906129c7565b6040516020818303038152906040525b9392505050565b6005546001600160a01b03163314611a005760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015260640161093d565b6002816002811115611a1457611a14612bd5565b1415611a625760405162461bcd60e51b815260206004820181905260248201527f5075626c69632073616c65206d7573742077697468207365742070726963652e604482015260640161093d565b6005805482919060ff60a01b1916600160a01b836002811115611a8757611a87612bd5565b021790555050565b6005546001600160a01b03163314611ae95760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015260640161093d565b6005805460ff60a01b191674020000000000000000000000000000000000000000179055600755565b6060600a805461085290612b3f565b6005546001600160a01b03163314611b7b5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015260640161093d565b6001600160a01b038116611bf75760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201527f6464726573730000000000000000000000000000000000000000000000000000606482015260840161093d565b611c008161218e565b50565b60006001600160e01b031982167f80ac58cd000000000000000000000000000000000000000000000000000000001480611c6657506001600160e01b031982167f5b5e139f00000000000000000000000000000000000000000000000000000000145b8061083d57507f01ffc9a7000000000000000000000000000000000000000000000000000000006001600160e01b031983161461083d565b6002546000908210801561083d575060006001600160a01b031660028381548110611ccb57611ccb612beb565b6000918252602090912001546001600160a01b0316141592915050565b6000818152600360205260409020805473ffffffffffffffffffffffffffffffffffffffff19166001600160a01b0384169081179091558190611d2a82610fa8565b6001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b6000611d6e82611c9e565b611dcf5760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a206f70657261746f7220717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b606482015260840161093d565b6000611dda83610fa8565b9050806001600160a01b0316846001600160a01b03161480611e155750836001600160a01b0316611e0a846108d5565b6001600160a01b0316145b80611e4557506001600160a01b0380821660009081526004602090815260408083209388168352929052205460ff165b949350505050565b826001600160a01b0316611e6082610fa8565b6001600160a01b031614611edc5760405162461bcd60e51b815260206004820152602960248201527f4552433732313a207472616e73666572206f6620746f6b656e2074686174206960448201527f73206e6f74206f776e0000000000000000000000000000000000000000000000606482015260840161093d565b6001600160a01b038216611f575760405162461bcd60e51b8152602060048201526024808201527f4552433732313a207472616e7366657220746f20746865207a65726f2061646460448201527f7265737300000000000000000000000000000000000000000000000000000000606482015260840161093d565b611f62600082611ce8565b8160028281548110611f7657611f76612beb565b60009182526020822001805473ffffffffffffffffffffffffffffffffffffffff19166001600160a01b03938416179055604051839285811692908716917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9190a4505050565b6002805460018101825560009182527f405787fa12a823e0f2b7631cc41b3ba8828b3321ca811111fa75cd3aa3bb5ace01805473ffffffffffffffffffffffffffffffffffffffff19166001600160a01b0385169081179091556040518392907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b804710156120b65760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a20696e73756666696369656e742062616c616e6365000000604482015260640161093d565b6000826001600160a01b03168260405160006040518083038185875af1925050503d8060008114612103576040519150601f19603f3d011682016040523d82523d6000602084013e612108565b606091505b5050905080610a8f5760405162461bcd60e51b815260206004820152603a60248201527f416464726573733a20756e61626c6520746f2073656e642076616c75652c207260448201527f6563697069656e74206d61792068617665207265766572746564000000000000606482015260840161093d565b600061199f82600654856123a8565b600580546001600160a01b0383811673ffffffffffffffffffffffffffffffffffffffff19831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b6121f8848484611e4d565b61220484848484612457565b61184c5760405162461bcd60e51b815260206004820152603260248201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560448201527f63656976657220696d706c656d656e7465720000000000000000000000000000606482015260840161093d565b6060816122b657505060408051808201909152600181527f3000000000000000000000000000000000000000000000000000000000000000602082015290565b8160005b81156122e057806122ca81612b7a565b91506122d99050600a83612ac9565b91506122ba565b60008167ffffffffffffffff8111156122fb576122fb612c01565b6040519080825280601f01601f191660200182016040528015612325576020820181803683370190505b5090505b8415611e455761233a600183612afc565b9150612347600a86612b95565b612352906030612ab1565b60f81b81838151811061236757612367612beb565b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a9053506123a1600a86612ac9565b9450612329565b600081815b855181101561244c5760008682815181106123ca576123ca612beb565b6020026020010151905080831161240c576040805160208101859052908101829052606001604051602081830303815290604052805190602001209250612439565b60408051602081018390529081018490526060016040516020818303038152906040528051906020012092505b508061244481612b7a565b9150506123ad565b509092149392505050565b60006001600160a01b0384163b156125af57604051630a85bd0160e11b81526001600160a01b0385169063150b7a029061249b9033908990889088906004016129f6565b602060405180830381600087803b1580156124b557600080fd5b505af19250505080156124e5575060408051601f3d908101601f191682019092526124e291810190612868565b60015b612595573d808015612513576040519150601f19603f3d011682016040523d82523d6000602084013e612518565b606091505b50805161258d5760405162461bcd60e51b815260206004820152603260248201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560448201527f63656976657220696d706c656d656e7465720000000000000000000000000000606482015260840161093d565b805181602001fd5b6001600160e01b031916630a85bd0160e11b149050611e45565b506001949350505050565b8280546125c690612b3f565b90600052602060002090601f0160209004810192826125e8576000855561262e565b82601f106126015782800160ff1982351617855561262e565b8280016001018555821561262e579182015b8281111561262e578235825591602001919060010190612613565b50610f3e9291505b80821115610f3e5760008155600101612636565b80356001600160a01b038116811461266157600080fd5b919050565b60006020828403121561267857600080fd5b61199f8261264a565b6000806040838503121561269457600080fd5b61269d8361264a565b91506126ab6020840161264a565b90509250929050565b6000806000606084860312156126c957600080fd5b6126d28461264a565b92506126e06020850161264a565b9150604084013590509250925092565b6000806000806080858703121561270657600080fd5b61270f8561264a565b935061271d6020860161264a565b925060408501359150606085013567ffffffffffffffff8082111561274157600080fd5b818701915087601f83011261275557600080fd5b81358181111561276757612767612c01565b604051601f8201601f19908116603f0116810190838211818310171561278f5761278f612c01565b816040528281528a60208487010111156127a857600080fd5b82602086016020830137600060208483010152809550505050505092959194509250565b600080604083850312156127df57600080fd5b6127e88361264a565b9150602083013580151581146127fd57600080fd5b809150509250929050565b6000806040838503121561281b57600080fd5b6128248361264a565b946020939093013593505050565b60006020828403121561284457600080fd5b5035919050565b60006020828403121561285d57600080fd5b813561199f81612c17565b60006020828403121561287a57600080fd5b815161199f81612c17565b60006020828403121561289757600080fd5b81356003811061199f57600080fd5b600080602083850312156128b957600080fd5b823567ffffffffffffffff808211156128d157600080fd5b818501915085601f8301126128e557600080fd5b8135818111156128f457600080fd5b86602082850101111561290657600080fd5b60209290920196919550909350505050565b6000806000806060858703121561292e57600080fd5b8435935060208501359250604085013567ffffffffffffffff8082111561295457600080fd5b818701915087601f83011261296857600080fd5b81358181111561297757600080fd5b8860208260051b850101111561298c57600080fd5b95989497505060200194505050565b600081518084526129b3816020860160208601612b13565b601f01601f19169290920160200192915050565b600083516129d9818460208801612b13565b8351908301906129ed818360208801612b13565b01949350505050565b60006001600160a01b03808716835280861660208401525083604083015260806060830152612a28608083018461299b565b9695505050505050565b6020808252825182820181905260009190848201906040850190845b81811015612a6a57835183529284019291840191600101612a4e565b50909695505050505050565b6020810160038310612a9857634e487b7160e01b600052602160045260246000fd5b91905290565b60208152600061199f602083018461299b565b60008219821115612ac457612ac4612ba9565b500190565b600082612ad857612ad8612bbf565b500490565b6000816000190483118215151615612af757612af7612ba9565b500290565b600082821015612b0e57612b0e612ba9565b500390565b60005b83811015612b2e578181015183820152602001612b16565b8381111561184c5750506000910152565b600181811c90821680612b5357607f821691505b60208210811415612b7457634e487b7160e01b600052602260045260246000fd5b50919050565b6000600019821415612b8e57612b8e612ba9565b5060010190565b600082612ba457612ba4612bbf565b500690565b634e487b7160e01b600052601160045260246000fd5b634e487b7160e01b600052601260045260246000fd5b634e487b7160e01b600052602160045260246000fd5b634e487b7160e01b600052603260045260246000fd5b634e487b7160e01b600052604160045260246000fd5b6001600160e01b031981168114611c0057600080fdfea26469706673582212209cfe0d0ed07c5301d190fb31d0b3748e961434727507bdcd6d88f639d7ff6f0264736f6c63430008070033
Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)
000000000000000000000000000000000000000000000000000000000000004093771aeb176d1d41921cd47465c331f862f068f10d8a4543e52399670d001c770000000000000000000000000000000000000000000000000000000000000027687474703a2f2f6d657461646174612e736f756c636f70732e636f6d2f636f6d70616e696f6e2f00000000000000000000000000000000000000000000000000
-----Decoded View---------------
Arg [0] : defaultTokenURI (string): http://metadata.soulcops.com/companion/
Arg [1] : merkleroot (bytes32): 0x93771aeb176d1d41921cd47465c331f862f068f10d8a4543e52399670d001c77
-----Encoded View---------------
5 Constructor Arguments found :
Arg [0] : 0000000000000000000000000000000000000000000000000000000000000040
Arg [1] : 93771aeb176d1d41921cd47465c331f862f068f10d8a4543e52399670d001c77
Arg [2] : 0000000000000000000000000000000000000000000000000000000000000027
Arg [3] : 687474703a2f2f6d657461646174612e736f756c636f70732e636f6d2f636f6d
Arg [4] : 70616e696f6e2f00000000000000000000000000000000000000000000000000
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.