Overview
ETH Balance
0 ETH
Eth Value
$0.00More Info
Private Name Tags
ContractCreator
TokenTracker
Latest 25 from a total of 6,297 transactions
Transaction Hash |
Method
|
Block
|
From
|
To
|
|||||
---|---|---|---|---|---|---|---|---|---|
Set Approval For... | 21256499 | 6 days ago | IN | 0 ETH | 0.00020593 | ||||
Set Approval For... | 21206182 | 13 days ago | IN | 0 ETH | 0.00043441 | ||||
Set Approval For... | 21104868 | 27 days ago | IN | 0 ETH | 0.00014942 | ||||
Set Approval For... | 21101740 | 27 days ago | IN | 0 ETH | 0.00021092 | ||||
Set Approval For... | 21004732 | 41 days ago | IN | 0 ETH | 0.00033192 | ||||
Safe Transfer Fr... | 21004705 | 41 days ago | IN | 0 ETH | 0.00030062 | ||||
Set Approval For... | 20997943 | 42 days ago | IN | 0 ETH | 0.00023562 | ||||
Set Approval For... | 20921276 | 52 days ago | IN | 0 ETH | 0.00136364 | ||||
Set Approval For... | 20523899 | 108 days ago | IN | 0 ETH | 0.00004789 | ||||
Set Approval For... | 20511668 | 109 days ago | IN | 0 ETH | 0.0001411 | ||||
Set Approval For... | 20319419 | 136 days ago | IN | 0 ETH | 0.00019709 | ||||
Safe Transfer Fr... | 20291868 | 140 days ago | IN | 0 ETH | 0.00018002 | ||||
Set Approval For... | 19944454 | 189 days ago | IN | 0 ETH | 0.0001914 | ||||
Set Approval For... | 19943859 | 189 days ago | IN | 0 ETH | 0.00019371 | ||||
Set Approval For... | 19707359 | 222 days ago | IN | 0 ETH | 0.00026863 | ||||
Set Approval For... | 19683145 | 225 days ago | IN | 0 ETH | 0.00099535 | ||||
Set Approval For... | 19626502 | 233 days ago | IN | 0 ETH | 0.00083037 | ||||
Set Approval For... | 19588095 | 239 days ago | IN | 0 ETH | 0.00038985 | ||||
Set Approval For... | 19481489 | 254 days ago | IN | 0 ETH | 0.00065282 | ||||
Set Approval For... | 19464332 | 256 days ago | IN | 0 ETH | 0.00189014 | ||||
Set Approval For... | 19461404 | 256 days ago | IN | 0 ETH | 0.00385645 | ||||
Set Approval For... | 19452059 | 258 days ago | IN | 0 ETH | 0.0005938 | ||||
Set Approval For... | 19382529 | 267 days ago | IN | 0 ETH | 0.00215949 | ||||
Set Approval For... | 19379649 | 268 days ago | IN | 0 ETH | 0.00167752 | ||||
Set Approval For... | 19337738 | 274 days ago | IN | 0 ETH | 0.00107179 |
Latest 1 internal transaction
Advanced mode:
Parent Transaction Hash | Block | From | To | |||
---|---|---|---|---|---|---|
15256441 | 851 days ago | 316.88 ETH |
Loading...
Loading
Contract Name:
Tajigen
Compiler Version
v0.8.15+commit.e14f2714
Optimization Enabled:
Yes with 800 runs
Other Settings:
default evmVersion
Contract Source Code (Solidity Standard Json-Input format)
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import "@openzeppelin/contracts/token/common/ERC2981.sol"; import "@openzeppelin/contracts/token/ERC20/IERC20.sol"; import "@openzeppelin/contracts/access/Ownable.sol"; import "@openzeppelin/contracts/utils/cryptography/ECDSA.sol"; import "@openzeppelin/contracts/utils/structs/BitMaps.sol"; import "@openzeppelin/contracts/utils/cryptography/SignatureChecker.sol"; import "./TinyERC721.sol"; import "./TokenSale.sol"; import "./ITokenRenderer.sol"; contract Tajigen is TinyERC721, ERC2981, Ownable, TokenSale { uint256 public constant MAX_SUPPLY = 7777; address private _rendererAddress; constructor() TinyERC721("Citizens of Tajigen", "TAJIGEN", 5) { _safeMint(_msgSender(), 1); } function _calculateAux( address from, address to, uint256 tokenId, bytes12 current ) internal view virtual override returns (bytes12) { return from == address(0) ? bytes12(keccak256(abi.encodePacked(tokenId, to, block.difficulty, block.timestamp))) : current; } function soulHash(uint256 tokenId) public view returns (bytes32) { return keccak256(abi.encodePacked(tokenId, _tokenData(tokenId).aux)); } function tokenURI(uint256 tokenId) public view virtual override returns (string memory) { require(_exists(tokenId), "Token does not exist"); return _rendererAddress != address(0) ? ITokenRenderer(_rendererAddress).tokenURI(tokenId, soulHash(tokenId)) : ""; } function setRendererAddress(address rendererAddress) external onlyOwner { require(rendererAddress != address(0), "Can't set to zero address"); _rendererAddress = rendererAddress; } function setRoyalty(address receiver, uint96 value) external onlyOwner { _setDefaultRoyalty(receiver, value); } function _guardMint(address, uint256 quantity) internal view virtual override { unchecked { require(tx.origin == msg.sender, "Can't mint from contract"); require(totalSupply() + quantity <= MAX_SUPPLY, "Exceeds max supply"); } } function _mintTokens(address to, uint256 quantity) internal virtual override { _mint(to, quantity); } function supportsInterface(bytes4 interfaceId) public view virtual override(TinyERC721, ERC2981) returns (bool) { return super.supportsInterface(interfaceId); } function withdraw(address receiver) external onlyOwner { (bool success, ) = receiver.call{value: address(this).balance}(""); require(success, "Withdrawal failed"); } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; interface ITokenRenderer { function tokenURI(uint256 tokenId, bytes32 soulHash) external view returns (string memory); }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import "@openzeppelin/contracts/token/common/ERC2981.sol"; import "@openzeppelin/contracts/token/ERC20/IERC20.sol"; import "@openzeppelin/contracts/access/Ownable.sol"; import "@openzeppelin/contracts/utils/cryptography/ECDSA.sol"; import "@openzeppelin/contracts/utils/cryptography/SignatureChecker.sol"; import "@openzeppelin/contracts/utils/structs/BitMaps.sol"; abstract contract TokenSale is Ownable { event SaleStatusChange(uint256 indexed saleId, bool enabled); using BitMaps for BitMaps.BitMap; uint256 constant PUBLIC_SALE = 0; struct SaleConfig { bool enabled; uint8 maxPerTransaction; uint64 unitPrice; address signerAddress; } mapping(uint256 => SaleConfig) private _saleConfig; mapping(uint256 => BitMaps.BitMap) private _allowlist; modifier canMint( uint256 saleId, address to, uint256 amount ) { _guardMint(to, amount); unchecked { SaleConfig memory saleConfig = _saleConfig[saleId]; require(saleConfig.enabled, "Sale not enabled"); require(amount <= saleConfig.maxPerTransaction, "Exceeds max per transaction"); require(amount * saleConfig.unitPrice == msg.value, "Invalid funds provided"); } _; } function allowlistMint( uint256 saleId, uint256 amount, uint256 nonce, bytes calldata signature ) external payable virtual canMint(saleId, _msgSender(), amount) { require(_validateSignature(saleId, nonce, signature), "Invalid signature"); require(_allowlist[saleId].get(nonce), "Nonce already used"); _allowlist[saleId].unset(nonce); _mintTokens(_msgSender(), amount); } function publicMint(uint256 amount) external payable virtual canMint(PUBLIC_SALE, _msgSender(), amount) { _mintTokens(_msgSender(), amount); } function devMint(uint256 amount) external virtual onlyOwner { _guardMint(_msgSender(), amount); _mintTokens(_msgSender(), amount); } function getPublicSaleConfig() external view returns (SaleConfig memory) { return _saleConfig[PUBLIC_SALE]; } function getSaleConfig(uint256 saleId) external view returns (SaleConfig memory) { return _saleConfig[saleId]; } function setPublicSaleConfig(uint256 maxPerTransaction, uint256 unitPrice) external onlyOwner { _saleConfig[PUBLIC_SALE].maxPerTransaction = uint8(maxPerTransaction); _saleConfig[PUBLIC_SALE].unitPrice = uint64(unitPrice); } function setSaleConfig( uint256 saleId, uint256 maxPerTransaction, uint256 unitPrice, address signerAddress ) external onlyOwner { _saleConfig[saleId].maxPerTransaction = uint8(maxPerTransaction); _saleConfig[saleId].unitPrice = uint64(unitPrice); _saleConfig[saleId].signerAddress = signerAddress; } function setPublicSaleStatus(bool enabled) external onlyOwner { if (_saleConfig[PUBLIC_SALE].enabled != enabled) { _saleConfig[PUBLIC_SALE].enabled = enabled; emit SaleStatusChange(PUBLIC_SALE, enabled); } } function setSaleStatus(uint256 saleId, bool enabled) external onlyOwner { if (_saleConfig[saleId].enabled != enabled) { _saleConfig[saleId].enabled = enabled; emit SaleStatusChange(saleId, enabled); } } function initAllowlist(uint256 saleId, uint256 size) external onlyOwner { BitMaps.BitMap storage allowlist = _allowlist[saleId]; uint256 buckets = size / 256 + 1; for (uint256 i; i < buckets; ++i) { allowlist._data[i] = ~uint256(0); // set every bit to 1 } } function getAllowlistNonceStatus(uint256 saleId, uint256 nonce) external view returns (bool) { BitMaps.BitMap storage allowlist = _allowlist[saleId]; return allowlist.get(nonce); } function setAllowlistNonceStatus( uint256 saleId, uint256 nonce, bool value ) external onlyOwner { BitMaps.BitMap storage allowlist = _allowlist[saleId]; allowlist.setTo(nonce, value); } function _validateSignature( uint256 saleId, uint256 nonce, bytes calldata signature ) internal view virtual returns (bool) { bytes32 dataHash = keccak256(abi.encodePacked(saleId, nonce, _msgSender())); bytes32 message = ECDSA.toEthSignedMessageHash(dataHash); return SignatureChecker.isValidSignatureNow(_saleConfig[saleId].signerAddress, message, signature); } function _guardMint(address to, uint256 quantity) internal view virtual {} function _mintTokens(address to, uint256 quantity) internal virtual; }
// 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/Strings.sol"; import "@openzeppelin/contracts/utils/introspection/ERC165.sol"; error ApprovalCallerNotOwnerNorApproved(); error ApprovalQueryForNonexistentToken(); error ApproveToCaller(); error ApprovalToCurrentOwner(); error BalanceQueryForZeroAddress(); error MintToZeroAddress(); error MintZeroQuantity(); error TokenDataQueryForNonexistentToken(); error OwnerQueryForNonexistentToken(); error OperatorQueryForNonexistentToken(); error TransferCallerNotOwnerNorApproved(); error TransferFromIncorrectOwner(); error TransferToNonERC721ReceiverImplementer(); error TransferToZeroAddress(); error URIQueryForNonexistentToken(); contract TinyERC721 is Context, ERC165, IERC721, IERC721Metadata { using Address for address; using Strings for uint256; struct TokenData { address owner; bytes12 aux; } uint256 private immutable _maxBatchSize; mapping(uint256 => TokenData) private _tokens; uint256 private _mintCounter; string private _name; string private _symbol; mapping(uint256 => address) private _tokenApprovals; mapping(address => mapping(address => bool)) private _operatorApprovals; constructor( string memory name_, string memory symbol_, uint256 maxBatchSize_ ) { _name = name_; _symbol = symbol_; _maxBatchSize = maxBatchSize_; } function totalSupply() public view virtual returns (uint256) { return _mintCounter; } function supportsInterface(bytes4 interfaceId) public view virtual override(ERC165, IERC165) returns (bool) { return interfaceId == type(IERC721).interfaceId || interfaceId == type(IERC721Metadata).interfaceId || super.supportsInterface(interfaceId); } function name() public view virtual override returns (string memory) { return _name; } function symbol() public view virtual override returns (string memory) { return _symbol; } function tokenURI(uint256 tokenId) public view virtual override returns (string memory) { if (!_exists(tokenId)) revert URIQueryForNonexistentToken(); string memory baseURI = _baseURI(); return bytes(baseURI).length > 0 ? string(abi.encodePacked(baseURI, tokenId.toString())) : ""; } function _baseURI() internal view virtual returns (string memory) { return ""; } function balanceOf(address owner) public view virtual override returns (uint256) { if (owner == address(0)) revert BalanceQueryForZeroAddress(); uint256 total = totalSupply(); uint256 count; address lastOwner; for (uint256 i; i < total; ++i) { address tokenOwner = _tokens[i].owner; if (tokenOwner != address(0)) lastOwner = tokenOwner; if (lastOwner == owner) ++count; } return count; } function _tokenData(uint256 tokenId) internal view returns (TokenData storage) { if (!_exists(tokenId)) revert TokenDataQueryForNonexistentToken(); TokenData storage token = _tokens[tokenId]; uint256 currentIndex = tokenId; while (token.owner == address(0)) { unchecked { --currentIndex; } token = _tokens[currentIndex]; } return token; } function ownerOf(uint256 tokenId) public view virtual override returns (address) { if (!_exists(tokenId)) revert OwnerQueryForNonexistentToken(); return _tokenData(tokenId).owner; } function approve(address to, uint256 tokenId) public virtual override { TokenData memory token = _tokenData(tokenId); address owner = token.owner; if (to == owner) revert ApprovalToCurrentOwner(); if (_msgSender() != owner && !isApprovedForAll(owner, _msgSender())) { revert ApprovalCallerNotOwnerNorApproved(); } _approve(to, tokenId, token); } function getApproved(uint256 tokenId) public view virtual override returns (address) { if (!_exists(tokenId)) revert ApprovalQueryForNonexistentToken(); return _tokenApprovals[tokenId]; } function setApprovalForAll(address operator, bool approved) public virtual override { if (operator == _msgSender()) revert ApproveToCaller(); _operatorApprovals[_msgSender()][operator] = approved; emit ApprovalForAll(_msgSender(), operator, approved); } function isApprovedForAll(address owner, address operator) public view virtual override returns (bool) { return _operatorApprovals[owner][operator]; } function transferFrom( address from, address to, uint256 tokenId ) public virtual override { TokenData memory token = _tokenData(tokenId); if (!_isApprovedOrOwner(_msgSender(), tokenId, token)) revert TransferCallerNotOwnerNorApproved(); _transfer(from, to, tokenId, token); } function safeTransferFrom( address from, address to, uint256 tokenId ) public virtual override { safeTransferFrom(from, to, tokenId, ""); } function safeTransferFrom( address from, address to, uint256 tokenId, bytes memory _data ) public virtual override { TokenData memory token = _tokenData(tokenId); if (!_isApprovedOrOwner(_msgSender(), tokenId, token)) revert TransferCallerNotOwnerNorApproved(); _safeTransfer(from, to, tokenId, token, _data); } function _safeTransfer( address from, address to, uint256 tokenId, TokenData memory token, bytes memory _data ) internal virtual { _transfer(from, to, tokenId, token); if (to.isContract() && !_checkOnERC721Received(from, to, tokenId, _data)) revert TransferToNonERC721ReceiverImplementer(); } function _exists(uint256 tokenId) internal view virtual returns (bool) { return tokenId < _mintCounter; } function _isApprovedOrOwner( address spender, uint256 tokenId, TokenData memory token ) internal view virtual returns (bool) { address owner = token.owner; return (spender == owner || isApprovedForAll(owner, spender) || getApproved(tokenId) == spender); } function _safeMint(address to, uint256 quantity) internal virtual { _safeMint(to, quantity, ""); } function _safeMint( address to, uint256 quantity, bytes memory _data ) internal virtual { uint256 startTokenId = _mintCounter; _mint(to, quantity); if (to.isContract()) { unchecked { for (uint256 i; i < quantity; ++i) { if (!_checkOnERC721Received(address(0), to, startTokenId + i, _data)) revert TransferToNonERC721ReceiverImplementer(); } } } } function _mint(address to, uint256 quantity) internal virtual { if (to == address(0)) revert MintToZeroAddress(); if (quantity == 0) revert MintZeroQuantity(); uint256 startTokenId = _mintCounter; _beforeTokenTransfers(address(0), to, startTokenId, quantity); unchecked { for (uint256 i; i < quantity; ++i) { if (_maxBatchSize == 0 ? i == 0 : i % _maxBatchSize == 0) { TokenData storage token = _tokens[startTokenId + i]; token.owner = to; token.aux = _calculateAux(address(0), to, startTokenId + i, 0); } emit Transfer(address(0), to, startTokenId + i); } _mintCounter += quantity; } _afterTokenTransfers(address(0), to, startTokenId, quantity); } function _transfer( address from, address to, uint256 tokenId, TokenData memory token ) internal virtual { if (token.owner != from) revert TransferFromIncorrectOwner(); if (to == address(0)) revert TransferToZeroAddress(); _beforeTokenTransfers(from, to, tokenId, 1); _approve(address(0), tokenId, token); unchecked { uint256 nextTokenId = tokenId + 1; if (_exists(nextTokenId)) { TokenData storage nextToken = _tokens[nextTokenId]; if (nextToken.owner == address(0)) { nextToken.owner = token.owner; nextToken.aux = token.aux; } } } TokenData storage newToken = _tokens[tokenId]; newToken.owner = to; newToken.aux = _calculateAux(from, to, tokenId, token.aux); emit Transfer(from, to, tokenId); _afterTokenTransfers(from, to, tokenId, 1); } function _calculateAux( address from, address to, uint256 tokenId, bytes12 current ) internal view virtual returns (bytes12) {} function _approve( address to, uint256 tokenId, TokenData memory token ) internal virtual { _tokenApprovals[tokenId] = to; emit Approval(token.owner, to, tokenId); } function _checkOnERC721Received( address from, address to, uint256 tokenId, bytes memory _data ) private returns (bool) { 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 TransferToNonERC721ReceiverImplementer(); } else { assembly { revert(add(32, reason), mload(reason)) } } } } function _beforeTokenTransfers( address from, address to, uint256 startTokenId, uint256 quantity ) internal virtual {} function _afterTokenTransfers( address from, address to, uint256 startTokenId, uint256 quantity ) internal virtual {} }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.5.0) (utils/cryptography/SignatureChecker.sol) pragma solidity ^0.8.0; import "./ECDSA.sol"; import "../Address.sol"; import "../../interfaces/IERC1271.sol"; /** * @dev Signature verification helper that can be used instead of `ECDSA.recover` to seamlessly support both ECDSA * signatures from externally owned accounts (EOAs) as well as ERC1271 signatures from smart contract wallets like * Argent and Gnosis Safe. * * _Available since v4.1._ */ library SignatureChecker { /** * @dev Checks if a signature is valid for a given signer and data hash. If the signer is a smart contract, the * signature is validated against that smart contract using ERC1271, otherwise it's validated using `ECDSA.recover`. * * NOTE: Unlike ECDSA signatures, contract signatures are revocable, and the outcome of this function can thus * change through time. It could return true at block N and false at block N+1 (or the opposite). */ function isValidSignatureNow( address signer, bytes32 hash, bytes memory signature ) internal view returns (bool) { (address recovered, ECDSA.RecoverError error) = ECDSA.tryRecover(hash, signature); if (error == ECDSA.RecoverError.NoError && recovered == signer) { return true; } (bool success, bytes memory result) = signer.staticcall( abi.encodeWithSelector(IERC1271.isValidSignature.selector, hash, signature) ); return (success && result.length == 32 && abi.decode(result, (bytes4)) == IERC1271.isValidSignature.selector); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/structs/BitMaps.sol) pragma solidity ^0.8.0; /** * @dev Library for managing uint256 to bool mapping in a compact and efficient way, providing the keys are sequential. * Largelly inspired by Uniswap's https://github.com/Uniswap/merkle-distributor/blob/master/contracts/MerkleDistributor.sol[merkle-distributor]. */ library BitMaps { struct BitMap { mapping(uint256 => uint256) _data; } /** * @dev Returns whether the bit at `index` is set. */ function get(BitMap storage bitmap, uint256 index) internal view returns (bool) { uint256 bucket = index >> 8; uint256 mask = 1 << (index & 0xff); return bitmap._data[bucket] & mask != 0; } /** * @dev Sets the bit at `index` to the boolean `value`. */ function setTo( BitMap storage bitmap, uint256 index, bool value ) internal { if (value) { set(bitmap, index); } else { unset(bitmap, index); } } /** * @dev Sets the bit at `index`. */ function set(BitMap storage bitmap, uint256 index) internal { uint256 bucket = index >> 8; uint256 mask = 1 << (index & 0xff); bitmap._data[bucket] |= mask; } /** * @dev Unsets the bit at `index`. */ function unset(BitMap storage bitmap, uint256 index) internal { uint256 bucket = index >> 8; uint256 mask = 1 << (index & 0xff); bitmap._data[bucket] &= ~mask; } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.7.0) (utils/cryptography/ECDSA.sol) pragma solidity ^0.8.0; import "../Strings.sol"; /** * @dev Elliptic Curve Digital Signature Algorithm (ECDSA) operations. * * These functions can be used to verify that a message was signed by the holder * of the private keys of a given address. */ library ECDSA { enum RecoverError { NoError, InvalidSignature, InvalidSignatureLength, InvalidSignatureS, InvalidSignatureV } function _throwError(RecoverError error) private pure { if (error == RecoverError.NoError) { return; // no error: do nothing } else if (error == RecoverError.InvalidSignature) { revert("ECDSA: invalid signature"); } else if (error == RecoverError.InvalidSignatureLength) { revert("ECDSA: invalid signature length"); } else if (error == RecoverError.InvalidSignatureS) { revert("ECDSA: invalid signature 's' value"); } else if (error == RecoverError.InvalidSignatureV) { revert("ECDSA: invalid signature 'v' value"); } } /** * @dev Returns the address that signed a hashed message (`hash`) with * `signature` or error string. This address can then be used for verification purposes. * * The `ecrecover` EVM opcode allows for malleable (non-unique) signatures: * this function rejects them by requiring the `s` value to be in the lower * half order, and the `v` value to be either 27 or 28. * * IMPORTANT: `hash` _must_ be the result of a hash operation for the * verification to be secure: it is possible to craft signatures that * recover to arbitrary addresses for non-hashed data. A safe way to ensure * this is by receiving a hash of the original message (which may otherwise * be too long), and then calling {toEthSignedMessageHash} on it. * * Documentation for signature generation: * - with https://web3js.readthedocs.io/en/v1.3.4/web3-eth-accounts.html#sign[Web3.js] * - with https://docs.ethers.io/v5/api/signer/#Signer-signMessage[ethers] * * _Available since v4.3._ */ function tryRecover(bytes32 hash, bytes memory signature) internal pure returns (address, RecoverError) { // Check the signature length // - case 65: r,s,v signature (standard) // - case 64: r,vs signature (cf https://eips.ethereum.org/EIPS/eip-2098) _Available since v4.1._ if (signature.length == 65) { bytes32 r; bytes32 s; uint8 v; // ecrecover takes the signature parameters, and the only way to get them // currently is to use assembly. /// @solidity memory-safe-assembly assembly { r := mload(add(signature, 0x20)) s := mload(add(signature, 0x40)) v := byte(0, mload(add(signature, 0x60))) } return tryRecover(hash, v, r, s); } else if (signature.length == 64) { bytes32 r; bytes32 vs; // ecrecover takes the signature parameters, and the only way to get them // currently is to use assembly. /// @solidity memory-safe-assembly assembly { r := mload(add(signature, 0x20)) vs := mload(add(signature, 0x40)) } return tryRecover(hash, r, vs); } else { return (address(0), RecoverError.InvalidSignatureLength); } } /** * @dev Returns the address that signed a hashed message (`hash`) with * `signature`. This address can then be used for verification purposes. * * The `ecrecover` EVM opcode allows for malleable (non-unique) signatures: * this function rejects them by requiring the `s` value to be in the lower * half order, and the `v` value to be either 27 or 28. * * IMPORTANT: `hash` _must_ be the result of a hash operation for the * verification to be secure: it is possible to craft signatures that * recover to arbitrary addresses for non-hashed data. A safe way to ensure * this is by receiving a hash of the original message (which may otherwise * be too long), and then calling {toEthSignedMessageHash} on it. */ function recover(bytes32 hash, bytes memory signature) internal pure returns (address) { (address recovered, RecoverError error) = tryRecover(hash, signature); _throwError(error); return recovered; } /** * @dev Overload of {ECDSA-tryRecover} that receives the `r` and `vs` short-signature fields separately. * * See https://eips.ethereum.org/EIPS/eip-2098[EIP-2098 short signatures] * * _Available since v4.3._ */ function tryRecover( bytes32 hash, bytes32 r, bytes32 vs ) internal pure returns (address, RecoverError) { bytes32 s = vs & bytes32(0x7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff); uint8 v = uint8((uint256(vs) >> 255) + 27); return tryRecover(hash, v, r, s); } /** * @dev Overload of {ECDSA-recover} that receives the `r and `vs` short-signature fields separately. * * _Available since v4.2._ */ function recover( bytes32 hash, bytes32 r, bytes32 vs ) internal pure returns (address) { (address recovered, RecoverError error) = tryRecover(hash, r, vs); _throwError(error); return recovered; } /** * @dev Overload of {ECDSA-tryRecover} that receives the `v`, * `r` and `s` signature fields separately. * * _Available since v4.3._ */ function tryRecover( bytes32 hash, uint8 v, bytes32 r, bytes32 s ) internal pure returns (address, RecoverError) { // EIP-2 still allows signature malleability for ecrecover(). Remove this possibility and make the signature // unique. Appendix F in the Ethereum Yellow paper (https://ethereum.github.io/yellowpaper/paper.pdf), defines // the valid range for s in (301): 0 < s < secp256k1n ÷ 2 + 1, and for v in (302): v ∈ {27, 28}. Most // signatures from current libraries generate a unique signature with an s-value in the lower half order. // // If your library generates malleable signatures, such as s-values in the upper range, calculate a new s-value // with 0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFEBAAEDCE6AF48A03BBFD25E8CD0364141 - s1 and flip v from 27 to 28 or // vice versa. If your library also generates signatures with 0/1 for v instead 27/28, add 27 to v to accept // these malleable signatures as well. if (uint256(s) > 0x7FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF5D576E7357A4501DDFE92F46681B20A0) { return (address(0), RecoverError.InvalidSignatureS); } if (v != 27 && v != 28) { return (address(0), RecoverError.InvalidSignatureV); } // If the signature is valid (and not malleable), return the signer address address signer = ecrecover(hash, v, r, s); if (signer == address(0)) { return (address(0), RecoverError.InvalidSignature); } return (signer, RecoverError.NoError); } /** * @dev Overload of {ECDSA-recover} that receives the `v`, * `r` and `s` signature fields separately. */ function recover( bytes32 hash, uint8 v, bytes32 r, bytes32 s ) internal pure returns (address) { (address recovered, RecoverError error) = tryRecover(hash, v, r, s); _throwError(error); return recovered; } /** * @dev Returns an Ethereum Signed Message, created from a `hash`. This * produces hash corresponding to the one signed with the * https://eth.wiki/json-rpc/API#eth_sign[`eth_sign`] * JSON-RPC method as part of EIP-191. * * See {recover}. */ function toEthSignedMessageHash(bytes32 hash) internal pure returns (bytes32) { // 32 is the length in bytes of hash, // enforced by the type signature above return keccak256(abi.encodePacked("\x19Ethereum Signed Message:\n32", hash)); } /** * @dev Returns an Ethereum Signed Message, created from `s`. This * produces hash corresponding to the one signed with the * https://eth.wiki/json-rpc/API#eth_sign[`eth_sign`] * JSON-RPC method as part of EIP-191. * * See {recover}. */ function toEthSignedMessageHash(bytes memory s) internal pure returns (bytes32) { return keccak256(abi.encodePacked("\x19Ethereum Signed Message:\n", Strings.toString(s.length), s)); } /** * @dev Returns an Ethereum Signed Typed Data, created from a * `domainSeparator` and a `structHash`. This produces hash corresponding * to the one signed with the * https://eips.ethereum.org/EIPS/eip-712[`eth_signTypedData`] * JSON-RPC method as part of EIP-712. * * See {recover}. */ function toTypedDataHash(bytes32 domainSeparator, bytes32 structHash) internal pure returns (bytes32) { return keccak256(abi.encodePacked("\x19\x01", domainSeparator, structHash)); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.7.0) (access/Ownable.sol) pragma solidity ^0.8.0; import "../utils/Context.sol"; /** * @dev Contract module which provides a basic access control mechanism, where * there is an account (an owner) that can be granted exclusive access to * specific functions. * * By default, the owner account will be the one that deploys the contract. This * can later be changed with {transferOwnership}. * * This module is used through inheritance. It will make available the modifier * `onlyOwner`, which can be applied to your functions to restrict their use to * the owner. */ abstract contract Ownable is Context { address private _owner; event OwnershipTransferred(address indexed previousOwner, address indexed newOwner); /** * @dev Initializes the contract setting the deployer as the initial owner. */ constructor() { _transferOwnership(_msgSender()); } /** * @dev Throws if called by any account other than the owner. */ modifier onlyOwner() { _checkOwner(); _; } /** * @dev Returns the address of the current owner. */ function owner() public view virtual returns (address) { return _owner; } /** * @dev Throws if the sender is not the owner. */ function _checkOwner() internal view virtual { require(owner() == _msgSender(), "Ownable: caller is not the owner"); } /** * @dev Leaves the contract without owner. It will not be possible to call * `onlyOwner` functions anymore. Can only be called by the current owner. * * NOTE: Renouncing ownership will leave the contract without an owner, * thereby removing any functionality that is only available to the owner. */ function renounceOwnership() public virtual onlyOwner { _transferOwnership(address(0)); } /** * @dev Transfers ownership of the contract to a new account (`newOwner`). * Can only be called by the current owner. */ function transferOwnership(address newOwner) public virtual onlyOwner { require(newOwner != address(0), "Ownable: new owner is the zero address"); _transferOwnership(newOwner); } /** * @dev Transfers ownership of the contract to a new account (`newOwner`). * Internal function without access restriction. */ function _transferOwnership(address newOwner) internal virtual { address oldOwner = _owner; _owner = newOwner; emit OwnershipTransferred(oldOwner, newOwner); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.6.0) (token/ERC20/IERC20.sol) pragma solidity ^0.8.0; /** * @dev Interface of the ERC20 standard as defined in the EIP. */ interface IERC20 { /** * @dev Emitted when `value` tokens are moved from one account (`from`) to * another (`to`). * * Note that `value` may be zero. */ event Transfer(address indexed from, address indexed to, uint256 value); /** * @dev Emitted when the allowance of a `spender` for an `owner` is set by * a call to {approve}. `value` is the new allowance. */ event Approval(address indexed owner, address indexed spender, uint256 value); /** * @dev Returns the amount of tokens in existence. */ function totalSupply() external view returns (uint256); /** * @dev Returns the amount of tokens owned by `account`. */ function balanceOf(address account) external view returns (uint256); /** * @dev Moves `amount` tokens from the caller's account to `to`. * * Returns a boolean value indicating whether the operation succeeded. * * Emits a {Transfer} event. */ function transfer(address to, uint256 amount) external returns (bool); /** * @dev Returns the remaining number of tokens that `spender` will be * allowed to spend on behalf of `owner` through {transferFrom}. This is * zero by default. * * This value changes when {approve} or {transferFrom} are called. */ function allowance(address owner, address spender) external view returns (uint256); /** * @dev Sets `amount` as the allowance of `spender` over the caller's tokens. * * Returns a boolean value indicating whether the operation succeeded. * * IMPORTANT: Beware that changing an allowance with this method brings the risk * that someone may use both the old and the new allowance by unfortunate * transaction ordering. One possible solution to mitigate this race * condition is to first reduce the spender's allowance to 0 and set the * desired value afterwards: * https://github.com/ethereum/EIPs/issues/20#issuecomment-263524729 * * Emits an {Approval} event. */ function approve(address spender, uint256 amount) external returns (bool); /** * @dev Moves `amount` tokens from `from` to `to` using the * allowance mechanism. `amount` is then deducted from the caller's * allowance. * * Returns a boolean value indicating whether the operation succeeded. * * Emits a {Transfer} event. */ function transferFrom( address from, address to, uint256 amount ) external returns (bool); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.7.0) (token/common/ERC2981.sol) pragma solidity ^0.8.0; import "../../interfaces/IERC2981.sol"; import "../../utils/introspection/ERC165.sol"; /** * @dev Implementation of the NFT Royalty Standard, a standardized way to retrieve royalty payment information. * * Royalty information can be specified globally for all token ids via {_setDefaultRoyalty}, and/or individually for * specific token ids via {_setTokenRoyalty}. The latter takes precedence over the first. * * Royalty is specified as a fraction of sale price. {_feeDenominator} is overridable but defaults to 10000, meaning the * fee is specified in basis points by default. * * IMPORTANT: ERC-2981 only specifies a way to signal royalty information and does not enforce its payment. See * https://eips.ethereum.org/EIPS/eip-2981#optional-royalty-payments[Rationale] in the EIP. Marketplaces are expected to * voluntarily pay royalties together with sales, but note that this standard is not yet widely supported. * * _Available since v4.5._ */ abstract contract ERC2981 is IERC2981, ERC165 { struct RoyaltyInfo { address receiver; uint96 royaltyFraction; } RoyaltyInfo private _defaultRoyaltyInfo; mapping(uint256 => RoyaltyInfo) private _tokenRoyaltyInfo; /** * @dev See {IERC165-supportsInterface}. */ function supportsInterface(bytes4 interfaceId) public view virtual override(IERC165, ERC165) returns (bool) { return interfaceId == type(IERC2981).interfaceId || super.supportsInterface(interfaceId); } /** * @inheritdoc IERC2981 */ function royaltyInfo(uint256 _tokenId, uint256 _salePrice) public view virtual override returns (address, uint256) { RoyaltyInfo memory royalty = _tokenRoyaltyInfo[_tokenId]; if (royalty.receiver == address(0)) { royalty = _defaultRoyaltyInfo; } uint256 royaltyAmount = (_salePrice * royalty.royaltyFraction) / _feeDenominator(); return (royalty.receiver, royaltyAmount); } /** * @dev The denominator with which to interpret the fee set in {_setTokenRoyalty} and {_setDefaultRoyalty} as a * fraction of the sale price. Defaults to 10000 so fees are expressed in basis points, but may be customized by an * override. */ function _feeDenominator() internal pure virtual returns (uint96) { return 10000; } /** * @dev Sets the royalty information that all ids in this contract will default to. * * Requirements: * * - `receiver` cannot be the zero address. * - `feeNumerator` cannot be greater than the fee denominator. */ function _setDefaultRoyalty(address receiver, uint96 feeNumerator) internal virtual { require(feeNumerator <= _feeDenominator(), "ERC2981: royalty fee will exceed salePrice"); require(receiver != address(0), "ERC2981: invalid receiver"); _defaultRoyaltyInfo = RoyaltyInfo(receiver, feeNumerator); } /** * @dev Removes default royalty information. */ function _deleteDefaultRoyalty() internal virtual { delete _defaultRoyaltyInfo; } /** * @dev Sets the royalty information for a specific token id, overriding the global default. * * Requirements: * * - `receiver` cannot be the zero address. * - `feeNumerator` cannot be greater than the fee denominator. */ function _setTokenRoyalty( uint256 tokenId, address receiver, uint96 feeNumerator ) internal virtual { require(feeNumerator <= _feeDenominator(), "ERC2981: royalty fee will exceed salePrice"); require(receiver != address(0), "ERC2981: Invalid parameters"); _tokenRoyaltyInfo[tokenId] = RoyaltyInfo(receiver, feeNumerator); } /** * @dev Resets royalty information for the token id back to the global default. */ function _resetTokenRoyalty(uint256 tokenId) internal virtual { delete _tokenRoyaltyInfo[tokenId]; } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/introspection/ERC165.sol) 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 // OpenZeppelin Contracts (last updated v4.7.0) (utils/Strings.sol) pragma solidity ^0.8.0; /** * @dev String operations. */ library Strings { bytes16 private constant _HEX_SYMBOLS = "0123456789abcdef"; uint8 private constant _ADDRESS_LENGTH = 20; /** * @dev Converts a `uint256` to its ASCII `string` decimal representation. */ function toString(uint256 value) internal pure returns (string memory) { // 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); } /** * @dev Converts an `address` with fixed length of 20 bytes to its not checksummed ASCII `string` hexadecimal representation. */ function toHexString(address addr) internal pure returns (string memory) { return toHexString(uint256(uint160(addr)), _ADDRESS_LENGTH); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/Context.sol) pragma solidity ^0.8.0; /** * @dev Provides information about the current execution context, including the * sender of the transaction and its data. While these are generally available * via msg.sender and msg.data, they should not be accessed in such a direct * manner, since when dealing with meta-transactions the account sending and * paying for execution may not be the actual sender (as far as an application * is concerned). * * This contract is only required for intermediate, library-like contracts. */ abstract contract Context { function _msgSender() internal view virtual returns (address) { return msg.sender; } function _msgData() internal view virtual returns (bytes calldata) { return msg.data; } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.7.0) (utils/Address.sol) pragma solidity ^0.8.1; /** * @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 * ==== * * [IMPORTANT] * ==== * You shouldn't rely on `isContract` to protect against flash loan attacks! * * Preventing calls from contracts is highly discouraged. It breaks composability, breaks support for smart wallets * like Gnosis Safe, and does not provide security since it can be circumvented by calling from a contract * constructor. * ==== */ function isContract(address account) internal view returns (bool) { // This method relies on extcodesize/address.code.length, which returns 0 // for contracts in construction, since the code is only stored at the end // of the constructor execution. return account.code.length > 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 /// @solidity memory-safe-assembly assembly { let returndata_size := mload(returndata) revert(add(32, returndata), returndata_size) } } else { revert(errorMessage); } } } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (token/ERC721/extensions/IERC721Metadata.sol) 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 // OpenZeppelin Contracts (last updated v4.6.0) (token/ERC721/IERC721Receiver.sol) 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 `IERC721Receiver.onERC721Received.selector`. */ function onERC721Received( address operator, address from, uint256 tokenId, bytes calldata data ) external returns (bytes4); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.7.0) (token/ERC721/IERC721.sol) pragma solidity ^0.8.0; import "../../utils/introspection/IERC165.sol"; /** * @dev Required interface of an ERC721 compliant contract. */ interface IERC721 is IERC165 { /** * @dev Emitted when `tokenId` token is transferred from `from` to `to`. */ event Transfer(address indexed from, address indexed to, uint256 indexed tokenId); /** * @dev Emitted when `owner` enables `approved` to manage the `tokenId` token. */ event Approval(address indexed owner, address indexed approved, uint256 indexed tokenId); /** * @dev Emitted when `owner` enables or disables (`approved`) `operator` to manage all of its assets. */ event ApprovalForAll(address indexed owner, address indexed operator, bool approved); /** * @dev Returns the number of tokens in ``owner``'s account. */ function balanceOf(address owner) external view returns (uint256 balance); /** * @dev Returns the owner of the `tokenId` token. * * Requirements: * * - `tokenId` must exist. */ function ownerOf(uint256 tokenId) external view returns (address owner); /** * @dev Safely transfers `tokenId` token from `from` to `to`. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must exist and be owned by `from`. * - If the caller is not `from`, it must be approved to move this token by either {approve} or {setApprovalForAll}. * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */ function safeTransferFrom( address from, address to, uint256 tokenId, bytes calldata data ) external; /** * @dev Safely transfers `tokenId` token from `from` to `to`, checking first that contract recipients * are aware of the ERC721 protocol to prevent tokens from being forever locked. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must exist and be owned by `from`. * - If the caller is not `from`, it must have been allowed to move this token by either {approve} or {setApprovalForAll}. * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */ function safeTransferFrom( address from, address to, uint256 tokenId ) external; /** * @dev Transfers `tokenId` token from `from` to `to`. * * WARNING: Usage of this method is discouraged, use {safeTransferFrom} whenever possible. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must be owned by `from`. * - If the caller is not `from`, it must be approved to move this token by either {approve} or {setApprovalForAll}. * * Emits a {Transfer} event. */ function transferFrom( address from, address to, uint256 tokenId ) external; /** * @dev Gives permission to `to` to transfer `tokenId` token to another account. * The approval is cleared when the token is transferred. * * Only a single account can be approved at a time, so approving the zero address clears previous approvals. * * Requirements: * * - The caller must own the token or be an approved operator. * - `tokenId` must exist. * * Emits an {Approval} event. */ function approve(address to, uint256 tokenId) external; /** * @dev Approve or remove `operator` as an operator for the caller. * Operators can call {transferFrom} or {safeTransferFrom} for any token owned by the caller. * * Requirements: * * - The `operator` cannot be the caller. * * Emits an {ApprovalForAll} event. */ function setApprovalForAll(address operator, bool _approved) external; /** * @dev Returns the account approved for `tokenId` token. * * Requirements: * * - `tokenId` must exist. */ function getApproved(uint256 tokenId) external view returns (address operator); /** * @dev Returns if the `operator` is allowed to manage all of the assets of `owner`. * * See {setApprovalForAll} */ function isApprovedForAll(address owner, address operator) external view returns (bool); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (interfaces/IERC1271.sol) pragma solidity ^0.8.0; /** * @dev Interface of the ERC1271 standard signature validation method for * contracts as defined in https://eips.ethereum.org/EIPS/eip-1271[ERC-1271]. * * _Available since v4.1._ */ interface IERC1271 { /** * @dev Should return whether the signature provided is valid for the provided data * @param hash Hash of the data to be signed * @param signature Signature byte array associated with _data */ function isValidSignature(bytes32 hash, bytes memory signature) external view returns (bytes4 magicValue); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.6.0) (interfaces/IERC2981.sol) pragma solidity ^0.8.0; import "../utils/introspection/IERC165.sol"; /** * @dev Interface for the NFT Royalty Standard. * * A standardized way to retrieve royalty payment information for non-fungible tokens (NFTs) to enable universal * support for royalty payments across all NFT marketplaces and ecosystem participants. * * _Available since v4.5._ */ interface IERC2981 is IERC165 { /** * @dev Returns how much royalty is owed and to whom, based on a sale price that may be denominated in any unit of * exchange. The royalty amount is denominated and should be paid in that same unit of exchange. */ function royaltyInfo(uint256 tokenId, uint256 salePrice) external view returns (address receiver, uint256 royaltyAmount); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/introspection/IERC165.sol) pragma solidity ^0.8.0; /** * @dev Interface of the ERC165 standard, as defined in the * https://eips.ethereum.org/EIPS/eip-165[EIP]. * * Implementers can declare support of contract interfaces, which can then be * queried by others ({ERC165Checker}). * * For an implementation, see {ERC165}. */ interface IERC165 { /** * @dev Returns true if this contract implements the interface defined by * `interfaceId`. See the corresponding * https://eips.ethereum.org/EIPS/eip-165#how-interfaces-are-identified[EIP section] * to learn more about how these ids are created. * * This function call must use less than 30 000 gas. */ function supportsInterface(bytes4 interfaceId) external view returns (bool); }
{ "optimizer": { "enabled": true, "runs": 800 }, "outputSelection": { "*": { "*": [ "evm.bytecode", "evm.deployedBytecode", "devdoc", "userdoc", "metadata", "abi" ] } } }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"inputs":[],"stateMutability":"nonpayable","type":"constructor"},{"inputs":[],"name":"ApprovalCallerNotOwnerNorApproved","type":"error"},{"inputs":[],"name":"ApprovalQueryForNonexistentToken","type":"error"},{"inputs":[],"name":"ApprovalToCurrentOwner","type":"error"},{"inputs":[],"name":"ApproveToCaller","type":"error"},{"inputs":[],"name":"BalanceQueryForZeroAddress","type":"error"},{"inputs":[],"name":"MintToZeroAddress","type":"error"},{"inputs":[],"name":"MintZeroQuantity","type":"error"},{"inputs":[],"name":"OwnerQueryForNonexistentToken","type":"error"},{"inputs":[],"name":"TokenDataQueryForNonexistentToken","type":"error"},{"inputs":[],"name":"TransferCallerNotOwnerNorApproved","type":"error"},{"inputs":[],"name":"TransferFromIncorrectOwner","type":"error"},{"inputs":[],"name":"TransferToNonERC721ReceiverImplementer","type":"error"},{"inputs":[],"name":"TransferToZeroAddress","type":"error"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"approved","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":false,"internalType":"bool","name":"approved","type":"bool"}],"name":"ApprovalForAll","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"uint256","name":"saleId","type":"uint256"},{"indexed":false,"internalType":"bool","name":"enabled","type":"bool"}],"name":"SaleStatusChange","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_SUPPLY","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"saleId","type":"uint256"},{"internalType":"uint256","name":"amount","type":"uint256"},{"internalType":"uint256","name":"nonce","type":"uint256"},{"internalType":"bytes","name":"signature","type":"bytes"}],"name":"allowlistMint","outputs":[],"stateMutability":"payable","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":[{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"devMint","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"saleId","type":"uint256"},{"internalType":"uint256","name":"nonce","type":"uint256"}],"name":"getAllowlistNonceStatus","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getApproved","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getPublicSaleConfig","outputs":[{"components":[{"internalType":"bool","name":"enabled","type":"bool"},{"internalType":"uint8","name":"maxPerTransaction","type":"uint8"},{"internalType":"uint64","name":"unitPrice","type":"uint64"},{"internalType":"address","name":"signerAddress","type":"address"}],"internalType":"struct TokenSale.SaleConfig","name":"","type":"tuple"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"saleId","type":"uint256"}],"name":"getSaleConfig","outputs":[{"components":[{"internalType":"bool","name":"enabled","type":"bool"},{"internalType":"uint8","name":"maxPerTransaction","type":"uint8"},{"internalType":"uint64","name":"unitPrice","type":"uint64"},{"internalType":"address","name":"signerAddress","type":"address"}],"internalType":"struct TokenSale.SaleConfig","name":"","type":"tuple"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"saleId","type":"uint256"},{"internalType":"uint256","name":"size","type":"uint256"}],"name":"initAllowlist","outputs":[],"stateMutability":"nonpayable","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":"amount","type":"uint256"}],"name":"publicMint","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_tokenId","type":"uint256"},{"internalType":"uint256","name":"_salePrice","type":"uint256"}],"name":"royaltyInfo","outputs":[{"internalType":"address","name":"","type":"address"},{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"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":"uint256","name":"saleId","type":"uint256"},{"internalType":"uint256","name":"nonce","type":"uint256"},{"internalType":"bool","name":"value","type":"bool"}],"name":"setAllowlistNonceStatus","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":"uint256","name":"maxPerTransaction","type":"uint256"},{"internalType":"uint256","name":"unitPrice","type":"uint256"}],"name":"setPublicSaleConfig","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bool","name":"enabled","type":"bool"}],"name":"setPublicSaleStatus","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"rendererAddress","type":"address"}],"name":"setRendererAddress","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"receiver","type":"address"},{"internalType":"uint96","name":"value","type":"uint96"}],"name":"setRoyalty","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"saleId","type":"uint256"},{"internalType":"uint256","name":"maxPerTransaction","type":"uint256"},{"internalType":"uint256","name":"unitPrice","type":"uint256"},{"internalType":"address","name":"signerAddress","type":"address"}],"name":"setSaleConfig","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"saleId","type":"uint256"},{"internalType":"bool","name":"enabled","type":"bool"}],"name":"setSaleStatus","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"soulHash","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes4","name":"interfaceId","type":"bytes4"}],"name":"supportsInterface","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"tokenURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"transferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"receiver","type":"address"}],"name":"withdraw","outputs":[],"stateMutability":"nonpayable","type":"function"}]
Contract Creation Code
60a06040523480156200001157600080fd5b506040518060400160405280601381526020017f436974697a656e73206f662054616a6967656e00000000000000000000000000815250604051806040016040528060078152602001662a20a524a3a2a760c91b815250600582600290816200007b9190620004e6565b5060036200008a8382620004e6565b50608052506200009c905033620000af565b620000a933600162000101565b62000676565b600880546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b620001238282604051806020016040528060008152506200012760201b60201c565b5050565b600154620001368484620001a7565b62000155846001600160a01b0316620002d660201b6200174d1760201c565b15620001a15760005b838110156200019f576200017860008684840186620002e5565b62000196576040516368d2bf6b60e11b815260040160405180910390fd5b6001016200015e565b505b50505050565b6001600160a01b038216620001ce57604051622e076360e81b815260040160405180910390fd5b80600003620001f05760405163b562e8dd60e01b815260040160405180910390fd5b60015460005b82811015620002c75760805115620002245760805181816200021c576200021c620005b2565b061562000227565b80155b156200028457808201600081815260208190526040812080546001600160a01b0319166001600160a01b03881617815591620002679190879082620003d9565b815460a09190911c600160a01b026001600160a01b039091161790555b604051828201906001600160a01b038616906000907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a4600101620001f6565b5060018054830190555b505050565b6001600160a01b03163b151590565b604051630a85bd0160e11b81526000906001600160a01b0385169063150b7a02906200031c903390899088908890600401620005c8565b6020604051808303816000875af19250505080156200035a575060408051601f3d908101601f19168201909252620003579181019062000643565b60015b620003bc573d8080156200038b576040519150601f19603f3d011682016040523d82523d6000602084013e62000390565b606091505b508051600003620003b4576040516368d2bf6b60e11b815260040160405180910390fd5b805181602001fd5b6001600160e01b031916630a85bd0160e11b149050949350505050565b60006001600160a01b03851615620003f2578162000439565b60408051602081018590526001600160601b0319606087901b1691810191909152446054820152426074820152609401604051602081830303815290604052805190602001205b95945050505050565b634e487b7160e01b600052604160045260246000fd5b600181811c908216806200046d57607f821691505b6020821081036200048e57634e487b7160e01b600052602260045260246000fd5b50919050565b601f821115620002d157600081815260208120601f850160051c81016020861015620004bd5750805b601f850160051c820191505b81811015620004de57828155600101620004c9565b505050505050565b81516001600160401b0381111562000502576200050262000442565b6200051a8162000513845462000458565b8462000494565b602080601f831160018114620005525760008415620005395750858301515b600019600386901b1c1916600185901b178555620004de565b600085815260208120601f198616915b82811015620005835788860151825594840194600190910190840162000562565b5085821015620005a25787850151600019600388901b60f8161c191681555b5050505050600190811b01905550565b634e487b7160e01b600052601260045260246000fd5b600060018060a01b038087168352602081871681850152856040850152608060608501528451915081608085015260005b82811015620006175785810182015185820160a001528101620005f9565b828111156200062a57600060a084870101525b5050601f01601f19169190910160a00195945050505050565b6000602082840312156200065657600080fd5b81516001600160e01b0319811681146200066f57600080fd5b9392505050565b608051612ac66200069960003960008181611eed0152611f130152612ac66000f3fe6080604052600436106102345760003560e01c80636352211e11610138578063a8e0fa27116100b0578063c5fa9ace1161007f578063d17f57b711610064578063d17f57b7146107aa578063e985e9c5146107ca578063f2fde38b1461081357600080fd5b8063c5fa9ace1461076a578063c87b56dd1461078a57600080fd5b8063a8e0fa2714610658578063b423fe671461070a578063b54c5c311461072a578063b88d4fde1461074a57600080fd5b80638da5cb5b1161010757806395d89b41116100ec57806395d89b4114610603578063a22cb46514610618578063a556f60f1461063857600080fd5b80638da5cb5b146105c55780638f2fc60b146105e357600080fd5b80636352211e1461055057806370a0823114610570578063715018a6146105905780638d2c9c1f146105a557600080fd5b806323b872dd116101cb578063375a069a1161019a5780634831793d1161017f5780634831793d146104fd57806351cff8d91461051057806361761d691461053057600080fd5b8063375a069a146104bd57806342842e0e146104dd57600080fd5b806323b872dd146104355780632a55205a146104555780632db115441461049457806332cb6b0c146104a757600080fd5b8063095ea7b311610207578063095ea7b3146102ea57806314bedada1461030a57806318160ddd1461032a57806318d425d11461034957600080fd5b806301ffc9a714610239578063050622181461026e57806306fdde0314610290578063081812fc146102b2575b600080fd5b34801561024557600080fd5b50610259610254366004612438565b610833565b60405190151581526020015b60405180910390f35b34801561027a57600080fd5b5061028e610289366004612455565b610844565b005b34801561029c57600080fd5b506102a56108a9565b60405161026591906124cf565b3480156102be57600080fd5b506102d26102cd3660046124e2565b61093b565b6040516001600160a01b039091168152602001610265565b3480156102f657600080fd5b5061028e610305366004612517565b610981565b34801561031657600080fd5b5061028e610325366004612541565b610a35565b34801561033657600080fd5b506001545b604051908152602001610265565b34801561035557600080fd5b506103ea6103643660046124e2565b604080516080810182526000808252602082018190529181018290526060810191909152506000908152600960209081526040918290208251608081018452905460ff808216151583526101008204169282019290925262010000820467ffffffffffffffff1692810192909252600160501b90046001600160a01b0316606082015290565b604051610265919081511515815260208083015160ff169082015260408083015167ffffffffffffffff16908201526060918201516001600160a01b03169181019190915260800190565b34801561044157600080fd5b5061028e610450366004612580565b610aca565b34801561046157600080fd5b50610475610470366004612455565b610b3c565b604080516001600160a01b039093168352602083019190915201610265565b61028e6104a23660046124e2565b610bf9565b3480156104b357600080fd5b5061033b611e6181565b3480156104c957600080fd5b5061028e6104d83660046124e2565b610d6e565b3480156104e957600080fd5b5061028e6104f8366004612580565b610d8d565b61028e61050b3660046125bc565b610dad565b34801561051c57600080fd5b5061028e61052b366004612649565b61101a565b34801561053c57600080fd5b5061028e61054b366004612455565b6110c9565b34801561055c57600080fd5b506102d261056b3660046124e2565b611142565b34801561057c57600080fd5b5061033b61058b366004612649565b611185565b34801561059c57600080fd5b5061028e61122b565b3480156105b157600080fd5b5061033b6105c03660046124e2565b61123f565b3480156105d157600080fd5b506008546001600160a01b03166102d2565b3480156105ef57600080fd5b5061028e6105fe366004612664565b611297565b34801561060f57600080fd5b506102a56112a9565b34801561062457600080fd5b5061028e6106333660046126bc565b6112b8565b34801561064457600080fd5b5061028e610653366004612649565b61134d565b34801561066457600080fd5b506103ea604080516080810182526000808252602082018190529181018290526060810191909152506000805260096020908152604080516080810182527fec8156718a8372b1db44bb411437d0870f3e3790d4a08526d024ce1b0b668f6b5460ff808216151583526101008204169382019390935262010000830467ffffffffffffffff1691810191909152600160501b9091046001600160a01b0316606082015290565b34801561071657600080fd5b5061028e6107253660046126ef565b6113cd565b34801561073657600080fd5b5061028e61074536600461270a565b61147d565b34801561075657600080fd5b5061028e61076536600461279c565b6114f8565b34801561077657600080fd5b50610259610785366004612455565b61156b565b34801561079657600080fd5b506102a56107a53660046124e2565b61159d565b3480156107b657600080fd5b5061028e6107c5366004612847565b61169f565b3480156107d657600080fd5b506102596107e536600461287c565b6001600160a01b03918216600090815260056020908152604080832093909416825291909152205460ff1690565b34801561081f57600080fd5b5061028e61082e366004612649565b6116c0565b600061083e8261175c565b92915050565b61084c611781565b6000828152600a6020526040812090610867610100846128d2565b6108729060016128f4565b905060005b818110156108a2576000818152602084905260409020600019905561089b8161290c565b9050610877565b5050505050565b6060600280546108b890612925565b80601f01602080910402602001604051908101604052809291908181526020018280546108e490612925565b80156109315780601f1061090657610100808354040283529160200191610931565b820191906000526020600020905b81548152906001019060200180831161091457829003601f168201915b5050505050905090565b6000610948826001541190565b610965576040516333d1c03960e21b815260040160405180910390fd5b506000908152600460205260409020546001600160a01b031690565b600061098c826117db565b6040805180820190915290546001600160a01b03808216808452600160a01b90920460a01b6001600160a01b03191660208401529192509084168190036109e65760405163250fdee360e21b815260040160405180910390fd5b336001600160a01b03821614801590610a065750610a0481336107e5565b155b15610a24576040516367d9dca160e11b815260040160405180910390fd5b610a2f848484611844565b50505050565b610a3d611781565b60009384526009602052604090932080546001600160a01b03909416600160501b027fffff0000000000000000000000000000000000000000ffffffffffffffffffff67ffffffffffffffff909316620100000269ffffffffffffffff00001960ff909516610100029490941669ffffffffffffffffff0019909516949094179290921716919091179055565b6000610ad5826117db565b6040805180820190915290546001600160a01b0381168252600160a01b900460a01b6001600160a01b03191660208201529050610b133383836118a5565b610b3057604051632ce44b5f60e11b815260040160405180910390fd5b610a2f84848484611918565b60008281526007602090815260408083208151808301909252546001600160a01b038116808352600160a01b9091046bffffffffffffffffffffffff16928201929092528291610bbb5750604080518082019091526006546001600160a01b0381168252600160a01b90046bffffffffffffffffffffffff1660208201525b602081015160009061271090610bdf906bffffffffffffffffffffffff168761295f565b610be991906128d2565b91519350909150505b9250929050565b60003382610c078282611a62565b6000838152600960209081526040918290208251608081018452905460ff808216151580845261010083049091169383019390935262010000810467ffffffffffffffff1693820193909352600160501b9092046001600160a01b03166060830152610cad5760405162461bcd60e51b815260206004820152601060248201526f14d85b19481b9bdd08195b98589b195960821b60448201526064015b60405180910390fd5b806020015160ff16821115610d045760405162461bcd60e51b815260206004820152601b60248201527f45786365656473206d617820706572207472616e73616374696f6e00000000006044820152606401610ca4565b34816040015167ffffffffffffffff16830214610d635760405162461bcd60e51b815260206004820152601660248201527f496e76616c69642066756e64732070726f7669646564000000000000000000006044820152606401610ca4565b50610a2f3385611b0d565b610d76611781565b610d803382611a62565b610d8a3382611b0d565b50565b610da8838383604051806020016040528060008152506114f8565b505050565b843385610dba8282611a62565b6000838152600960209081526040918290208251608081018452905460ff808216151580845261010083049091169383019390935262010000810467ffffffffffffffff1693820193909352600160501b9092046001600160a01b03166060830152610e5b5760405162461bcd60e51b815260206004820152601060248201526f14d85b19481b9bdd08195b98589b195960821b6044820152606401610ca4565b806020015160ff16821115610eb25760405162461bcd60e51b815260206004820152601b60248201527f45786365656473206d617820706572207472616e73616374696f6e00000000006044820152606401610ca4565b34816040015167ffffffffffffffff16830214610f115760405162461bcd60e51b815260206004820152601660248201527f496e76616c69642066756e64732070726f7669646564000000000000000000006044820152606401610ca4565b50610f1e88878787611b17565b610f6a5760405162461bcd60e51b815260206004820152601160248201527f496e76616c6964207369676e61747572650000000000000000000000000000006044820152606401610ca4565b6000888152600a6020908152604080832060088a901c8452909152902054600160ff88161b16610fdc5760405162461bcd60e51b815260206004820152601260248201527f4e6f6e636520616c7265616479207573656400000000000000000000000000006044820152606401610ca4565b6000888152600a6020908152604080832060088a901c845290915290208054600160ff89161b191690556110103388611b0d565b5050505050505050565b611022611781565b6000816001600160a01b03164760405160006040518083038185875af1925050503d806000811461106f576040519150601f19603f3d011682016040523d82523d6000602084013e611074565b606091505b50509050806110c55760405162461bcd60e51b815260206004820152601160248201527f5769746864726177616c206661696c65640000000000000000000000000000006044820152606401610ca4565b5050565b6110d1611781565b6000805260096020527fec8156718a8372b1db44bb411437d0870f3e3790d4a08526d024ce1b0b668f6b805467ffffffffffffffff909216620100000269ffffffffffffffff00001960ff909416610100029390931669ffffffffffffffffff001990921691909117919091179055565b600061114f826001541190565b61116c57604051636f96cda160e11b815260040160405180910390fd5b611175826117db565b546001600160a01b031692915050565b60006001600160a01b0382166111ae576040516323d3ad8160e21b815260040160405180910390fd5b60006111b960015490565b905060008060005b83811015611221576000818152602081905260409020546001600160a01b031680156111eb578092505b866001600160a01b0316836001600160a01b0316036112105761120d8461290c565b93505b5061121a8161290c565b90506111c1565b5090949350505050565b611233611781565b61123d6000611bd3565b565b60008161124b836117db565b5460405161127a9291600160a01b900460a01b906020019182526001600160a01b0319166020820152602c0190565b604051602081830303815290604052805190602001209050919050565b61129f611781565b6110c58282611c25565b6060600380546108b890612925565b336001600160a01b038316036112e15760405163b06307db60e01b815260040160405180910390fd5b3360008181526005602090815260408083206001600160a01b03871680855290835292819020805460ff191686151590811790915590519081529192917f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a35050565b611355611781565b6001600160a01b0381166113ab5760405162461bcd60e51b815260206004820152601960248201527f43616e27742073657420746f207a65726f2061646472657373000000000000006044820152606401610ca4565b600b80546001600160a01b0319166001600160a01b0392909216919091179055565b6113d5611781565b6000805260096020527fec8156718a8372b1db44bb411437d0870f3e3790d4a08526d024ce1b0b668f6b5460ff16151581151514610d8a576000808052600960209081527fec8156718a8372b1db44bb411437d0870f3e3790d4a08526d024ce1b0b668f6b805460ff19168415159081179091556040519081527fdc9c33543bf9b9927437d643702debb0a51f3673cd8991fb0f03bd169e939b3c910160405180910390a250565b611485611781565b60008281526009602052604090205460ff161515811515146110c557600082815260096020908152604091829020805460ff1916841515908117909155915191825283917fdc9c33543bf9b9927437d643702debb0a51f3673cd8991fb0f03bd169e939b3c910160405180910390a25050565b6000611503836117db565b6040805180820190915290546001600160a01b0381168252600160a01b900460a01b6001600160a01b031916602082015290506115413384836118a5565b61155e57604051632ce44b5f60e11b815260040160405180910390fd5b6108a28585858486611d3f565b6000828152600a60209081526040808320600885901c845291829052822054600160ff85161b1615155b949350505050565b60606115aa826001541190565b6115f65760405162461bcd60e51b815260206004820152601460248201527f546f6b656e20646f6573206e6f742065786973740000000000000000000000006044820152606401610ca4565b600b546001600160a01b031661161b576040518060200160405280600081525061083e565b600b546001600160a01b031663f67b80d8836116368161123f565b6040516001600160e01b031960e085901b16815260048101929092526024820152604401600060405180830381865afa158015611677573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f1916820160405261083e919081019061297e565b6116a7611781565b6000838152600a60205260409020610a2f818484611d8b565b6116c8611781565b6001600160a01b0381166117445760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201527f64647265737300000000000000000000000000000000000000000000000000006064820152608401610ca4565b610d8a81611bd3565b6001600160a01b03163b151590565b60006001600160e01b0319821663152a902d60e11b148061083e575061083e82611dda565b6008546001600160a01b0316331461123d5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610ca4565b60006117e8826001541190565b611805576040516319086e6360e11b815260040160405180910390fd5b6000828152602081905260409020825b81546001600160a01b031661183d576000190160008181526020819052604090209150611815565b5092915050565b60008281526004602052604080822080546001600160a01b0319166001600160a01b038781169182179092558451925186949193909216917f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b9259190a4505050565b80516000906001600160a01b0385811690821614806118e957506001600160a01b0380821660009081526005602090815260408083209389168352929052205460ff165b8061190d5750846001600160a01b03166119028561093b565b6001600160a01b0316145b9150505b9392505050565b836001600160a01b031681600001516001600160a01b03161461194d5760405162a1148160e81b815260040160405180910390fd5b6001600160a01b03831661197457604051633a954ecd60e21b815260040160405180910390fd5b61198060008383611844565b6001820161198f816001541190565b156119d257600081815260208190526040902080546001600160a01b03166119d0578251602084015160a01c600160a01b026001600160a01b039091161781555b505b5060008281526020818152604090912080546001600160a01b0319166001600160a01b03861617815590820151611a0e90869086908690611e2a565b815460a09190911c600160a01b026001600160a01b03918216178255604051849186811691908816907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef90600090a46108a2565b323314611ab15760405162461bcd60e51b815260206004820152601860248201527f43616e2774206d696e742066726f6d20636f6e747261637400000000000000006044820152606401610ca4565b611e6181611abe60015490565b0111156110c55760405162461bcd60e51b815260206004820152601260248201527f45786365656473206d617820737570706c7900000000000000000000000000006044820152606401610ca4565b6110c58282611e96565b60408051602080820187905281830186905233606090811b6bffffffffffffffffffffffff191690830152825160548184030181526074909201909252805191012060009081611b6682611ff4565b600088815260096020908152604091829020548251601f8901839004830281018301909352878352929350611bc892600160501b90046001600160a01b0316918491899089908190840183828082843760009201919091525061202f92505050565b979650505050505050565b600880546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b6127106bffffffffffffffffffffffff82161115611cab5760405162461bcd60e51b815260206004820152602a60248201527f455243323938313a20726f79616c7479206665652077696c6c2065786365656460448201527f2073616c655072696365000000000000000000000000000000000000000000006064820152608401610ca4565b6001600160a01b038216611d015760405162461bcd60e51b815260206004820152601960248201527f455243323938313a20696e76616c6964207265636569766572000000000000006044820152606401610ca4565b604080518082019091526001600160a01b039092168083526bffffffffffffffffffffffff9091166020909201829052600160a01b90910217600655565b611d4b85858585611918565b6001600160a01b0384163b15158015611d6d5750611d6b85858584612190565b155b156108a2576040516368d2bf6b60e11b815260040160405180910390fd5b8015611db557600882901c60009081526020849052604090208054600160ff85161b179055505050565b600882901c60009081526020849052604090208054600160ff85161b19169055505050565b60006001600160e01b031982166380ac58cd60e01b1480611e0b57506001600160e01b03198216635b5e139f60e01b145b8061083e57506301ffc9a760e01b6001600160e01b031983161461083e565b60006001600160a01b03851615611e415781611e8d565b60408051602081018590526bffffffffffffffffffffffff19606087901b1691810191909152446054820152426074820152609401604051602081830303815290604052805190602001205b95945050505050565b6001600160a01b038216611ebc57604051622e076360e81b815260040160405180910390fd5b80600003611edd5760405163b562e8dd60e01b815260040160405180910390fd5b60015460005b82811015611fe6577f000000000000000000000000000000000000000000000000000000000000000015611f47577f00000000000000000000000000000000000000000000000000000000000000008181611f4057611f406128a6565b0615611f4a565b80155b15611fa457808201600081815260208190526040812080546001600160a01b0319166001600160a01b03881617815591611f879190879082611e2a565b815460a09190911c600160a01b026001600160a01b039091161790555b604051828201906001600160a01b038616906000907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a4600101611ee3565b506001805483019055505050565b6040517f19457468657265756d205369676e6564204d6573736167653a0a3332000000006020820152603c8101829052600090605c0161127a565b600080600061203e8585612278565b90925090506000816004811115612057576120576129ec565b1480156120755750856001600160a01b0316826001600160a01b0316145b1561208557600192505050611911565b600080876001600160a01b0316631626ba7e60e01b88886040516024016120ad929190612a02565b60408051601f198184030181529181526020820180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff166001600160e01b03199094169390931790925290516121009190612a1b565b600060405180830381855afa9150503d806000811461213b576040519150601f19603f3d011682016040523d82523d6000602084013e612140565b606091505b5091509150818015612153575080516020145b801561218457508051630b135d3f60e11b906121789083016020908101908401612a37565b6001600160e01b031916145b98975050505050505050565b604051630a85bd0160e11b81526000906001600160a01b0385169063150b7a02906121c5903390899088908890600401612a54565b6020604051808303816000875af1925050508015612200575060408051601f3d908101601f191682019092526121fd91810190612a37565b60015b61225e573d80801561222e576040519150601f19603f3d011682016040523d82523d6000602084013e612233565b606091505b508051600003612256576040516368d2bf6b60e11b815260040160405180910390fd5b805181602001fd5b6001600160e01b031916630a85bd0160e11b149050611595565b60008082516041036122ae5760208301516040840151606085015160001a6122a2878285856122e3565b94509450505050610bf2565b82516040036122d757602083015160408401516122cc8683836123d0565b935093505050610bf2565b50600090506002610bf2565b6000807f7fffffffffffffffffffffffffffffff5d576e7357a4501ddfe92f46681b20a083111561231a57506000905060036123c7565b8460ff16601b1415801561233257508460ff16601c14155b1561234357506000905060046123c7565b6040805160008082526020820180845289905260ff881692820192909252606081018690526080810185905260019060a0016020604051602081039080840390855afa158015612397573d6000803e3d6000fd5b5050604051601f1901519150506001600160a01b0381166123c0576000600192509250506123c7565b9150600090505b94509492505050565b6000807f7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff83168161240660ff86901c601b6128f4565b9050612414878288856122e3565b935093505050935093915050565b6001600160e01b031981168114610d8a57600080fd5b60006020828403121561244a57600080fd5b813561191181612422565b6000806040838503121561246857600080fd5b50508035926020909101359150565b60005b8381101561249257818101518382015260200161247a565b83811115610a2f5750506000910152565b600081518084526124bb816020860160208601612477565b601f01601f19169290920160200192915050565b60208152600061191160208301846124a3565b6000602082840312156124f457600080fd5b5035919050565b80356001600160a01b038116811461251257600080fd5b919050565b6000806040838503121561252a57600080fd5b612533836124fb565b946020939093013593505050565b6000806000806080858703121561255757600080fd5b843593506020850135925060408501359150612575606086016124fb565b905092959194509250565b60008060006060848603121561259557600080fd5b61259e846124fb565b92506125ac602085016124fb565b9150604084013590509250925092565b6000806000806000608086880312156125d457600080fd5b853594506020860135935060408601359250606086013567ffffffffffffffff8082111561260157600080fd5b818801915088601f83011261261557600080fd5b81358181111561262457600080fd5b89602082850101111561263657600080fd5b9699959850939650602001949392505050565b60006020828403121561265b57600080fd5b611911826124fb565b6000806040838503121561267757600080fd5b612680836124fb565b915060208301356bffffffffffffffffffffffff811681146126a157600080fd5b809150509250929050565b8035801515811461251257600080fd5b600080604083850312156126cf57600080fd5b6126d8836124fb565b91506126e6602084016126ac565b90509250929050565b60006020828403121561270157600080fd5b611911826126ac565b6000806040838503121561271d57600080fd5b823591506126e6602084016126ac565b634e487b7160e01b600052604160045260246000fd5b604051601f8201601f1916810167ffffffffffffffff8111828210171561276c5761276c61272d565b604052919050565b600067ffffffffffffffff82111561278e5761278e61272d565b50601f01601f191660200190565b600080600080608085870312156127b257600080fd5b6127bb856124fb565b93506127c9602086016124fb565b925060408501359150606085013567ffffffffffffffff8111156127ec57600080fd5b8501601f810187136127fd57600080fd5b803561281061280b82612774565b612743565b81815288602083850101111561282557600080fd5b8160208401602083013760006020838301015280935050505092959194509250565b60008060006060848603121561285c57600080fd5b8335925060208401359150612873604085016126ac565b90509250925092565b6000806040838503121561288f57600080fd5b612898836124fb565b91506126e6602084016124fb565b634e487b7160e01b600052601260045260246000fd5b634e487b7160e01b600052601160045260246000fd5b6000826128ef57634e487b7160e01b600052601260045260246000fd5b500490565b60008219821115612907576129076128bc565b500190565b60006001820161291e5761291e6128bc565b5060010190565b600181811c9082168061293957607f821691505b60208210810361295957634e487b7160e01b600052602260045260246000fd5b50919050565b6000816000190483118215151615612979576129796128bc565b500290565b60006020828403121561299057600080fd5b815167ffffffffffffffff8111156129a757600080fd5b8201601f810184136129b857600080fd5b80516129c661280b82612774565b8181528560208385010111156129db57600080fd5b611e8d826020830160208601612477565b634e487b7160e01b600052602160045260246000fd5b82815260406020820152600061159560408301846124a3565b60008251612a2d818460208701612477565b9190910192915050565b600060208284031215612a4957600080fd5b815161191181612422565b60006001600160a01b03808716835280861660208401525083604083015260806060830152612a8660808301846124a3565b969550505050505056fea26469706673582212204472975b38a5981c1a1df81666b5fb0792296ac7e14cb6c06b2b576fa27cdb7564736f6c634300080f0033
Deployed Bytecode
0x6080604052600436106102345760003560e01c80636352211e11610138578063a8e0fa27116100b0578063c5fa9ace1161007f578063d17f57b711610064578063d17f57b7146107aa578063e985e9c5146107ca578063f2fde38b1461081357600080fd5b8063c5fa9ace1461076a578063c87b56dd1461078a57600080fd5b8063a8e0fa2714610658578063b423fe671461070a578063b54c5c311461072a578063b88d4fde1461074a57600080fd5b80638da5cb5b1161010757806395d89b41116100ec57806395d89b4114610603578063a22cb46514610618578063a556f60f1461063857600080fd5b80638da5cb5b146105c55780638f2fc60b146105e357600080fd5b80636352211e1461055057806370a0823114610570578063715018a6146105905780638d2c9c1f146105a557600080fd5b806323b872dd116101cb578063375a069a1161019a5780634831793d1161017f5780634831793d146104fd57806351cff8d91461051057806361761d691461053057600080fd5b8063375a069a146104bd57806342842e0e146104dd57600080fd5b806323b872dd146104355780632a55205a146104555780632db115441461049457806332cb6b0c146104a757600080fd5b8063095ea7b311610207578063095ea7b3146102ea57806314bedada1461030a57806318160ddd1461032a57806318d425d11461034957600080fd5b806301ffc9a714610239578063050622181461026e57806306fdde0314610290578063081812fc146102b2575b600080fd5b34801561024557600080fd5b50610259610254366004612438565b610833565b60405190151581526020015b60405180910390f35b34801561027a57600080fd5b5061028e610289366004612455565b610844565b005b34801561029c57600080fd5b506102a56108a9565b60405161026591906124cf565b3480156102be57600080fd5b506102d26102cd3660046124e2565b61093b565b6040516001600160a01b039091168152602001610265565b3480156102f657600080fd5b5061028e610305366004612517565b610981565b34801561031657600080fd5b5061028e610325366004612541565b610a35565b34801561033657600080fd5b506001545b604051908152602001610265565b34801561035557600080fd5b506103ea6103643660046124e2565b604080516080810182526000808252602082018190529181018290526060810191909152506000908152600960209081526040918290208251608081018452905460ff808216151583526101008204169282019290925262010000820467ffffffffffffffff1692810192909252600160501b90046001600160a01b0316606082015290565b604051610265919081511515815260208083015160ff169082015260408083015167ffffffffffffffff16908201526060918201516001600160a01b03169181019190915260800190565b34801561044157600080fd5b5061028e610450366004612580565b610aca565b34801561046157600080fd5b50610475610470366004612455565b610b3c565b604080516001600160a01b039093168352602083019190915201610265565b61028e6104a23660046124e2565b610bf9565b3480156104b357600080fd5b5061033b611e6181565b3480156104c957600080fd5b5061028e6104d83660046124e2565b610d6e565b3480156104e957600080fd5b5061028e6104f8366004612580565b610d8d565b61028e61050b3660046125bc565b610dad565b34801561051c57600080fd5b5061028e61052b366004612649565b61101a565b34801561053c57600080fd5b5061028e61054b366004612455565b6110c9565b34801561055c57600080fd5b506102d261056b3660046124e2565b611142565b34801561057c57600080fd5b5061033b61058b366004612649565b611185565b34801561059c57600080fd5b5061028e61122b565b3480156105b157600080fd5b5061033b6105c03660046124e2565b61123f565b3480156105d157600080fd5b506008546001600160a01b03166102d2565b3480156105ef57600080fd5b5061028e6105fe366004612664565b611297565b34801561060f57600080fd5b506102a56112a9565b34801561062457600080fd5b5061028e6106333660046126bc565b6112b8565b34801561064457600080fd5b5061028e610653366004612649565b61134d565b34801561066457600080fd5b506103ea604080516080810182526000808252602082018190529181018290526060810191909152506000805260096020908152604080516080810182527fec8156718a8372b1db44bb411437d0870f3e3790d4a08526d024ce1b0b668f6b5460ff808216151583526101008204169382019390935262010000830467ffffffffffffffff1691810191909152600160501b9091046001600160a01b0316606082015290565b34801561071657600080fd5b5061028e6107253660046126ef565b6113cd565b34801561073657600080fd5b5061028e61074536600461270a565b61147d565b34801561075657600080fd5b5061028e61076536600461279c565b6114f8565b34801561077657600080fd5b50610259610785366004612455565b61156b565b34801561079657600080fd5b506102a56107a53660046124e2565b61159d565b3480156107b657600080fd5b5061028e6107c5366004612847565b61169f565b3480156107d657600080fd5b506102596107e536600461287c565b6001600160a01b03918216600090815260056020908152604080832093909416825291909152205460ff1690565b34801561081f57600080fd5b5061028e61082e366004612649565b6116c0565b600061083e8261175c565b92915050565b61084c611781565b6000828152600a6020526040812090610867610100846128d2565b6108729060016128f4565b905060005b818110156108a2576000818152602084905260409020600019905561089b8161290c565b9050610877565b5050505050565b6060600280546108b890612925565b80601f01602080910402602001604051908101604052809291908181526020018280546108e490612925565b80156109315780601f1061090657610100808354040283529160200191610931565b820191906000526020600020905b81548152906001019060200180831161091457829003601f168201915b5050505050905090565b6000610948826001541190565b610965576040516333d1c03960e21b815260040160405180910390fd5b506000908152600460205260409020546001600160a01b031690565b600061098c826117db565b6040805180820190915290546001600160a01b03808216808452600160a01b90920460a01b6001600160a01b03191660208401529192509084168190036109e65760405163250fdee360e21b815260040160405180910390fd5b336001600160a01b03821614801590610a065750610a0481336107e5565b155b15610a24576040516367d9dca160e11b815260040160405180910390fd5b610a2f848484611844565b50505050565b610a3d611781565b60009384526009602052604090932080546001600160a01b03909416600160501b027fffff0000000000000000000000000000000000000000ffffffffffffffffffff67ffffffffffffffff909316620100000269ffffffffffffffff00001960ff909516610100029490941669ffffffffffffffffff0019909516949094179290921716919091179055565b6000610ad5826117db565b6040805180820190915290546001600160a01b0381168252600160a01b900460a01b6001600160a01b03191660208201529050610b133383836118a5565b610b3057604051632ce44b5f60e11b815260040160405180910390fd5b610a2f84848484611918565b60008281526007602090815260408083208151808301909252546001600160a01b038116808352600160a01b9091046bffffffffffffffffffffffff16928201929092528291610bbb5750604080518082019091526006546001600160a01b0381168252600160a01b90046bffffffffffffffffffffffff1660208201525b602081015160009061271090610bdf906bffffffffffffffffffffffff168761295f565b610be991906128d2565b91519350909150505b9250929050565b60003382610c078282611a62565b6000838152600960209081526040918290208251608081018452905460ff808216151580845261010083049091169383019390935262010000810467ffffffffffffffff1693820193909352600160501b9092046001600160a01b03166060830152610cad5760405162461bcd60e51b815260206004820152601060248201526f14d85b19481b9bdd08195b98589b195960821b60448201526064015b60405180910390fd5b806020015160ff16821115610d045760405162461bcd60e51b815260206004820152601b60248201527f45786365656473206d617820706572207472616e73616374696f6e00000000006044820152606401610ca4565b34816040015167ffffffffffffffff16830214610d635760405162461bcd60e51b815260206004820152601660248201527f496e76616c69642066756e64732070726f7669646564000000000000000000006044820152606401610ca4565b50610a2f3385611b0d565b610d76611781565b610d803382611a62565b610d8a3382611b0d565b50565b610da8838383604051806020016040528060008152506114f8565b505050565b843385610dba8282611a62565b6000838152600960209081526040918290208251608081018452905460ff808216151580845261010083049091169383019390935262010000810467ffffffffffffffff1693820193909352600160501b9092046001600160a01b03166060830152610e5b5760405162461bcd60e51b815260206004820152601060248201526f14d85b19481b9bdd08195b98589b195960821b6044820152606401610ca4565b806020015160ff16821115610eb25760405162461bcd60e51b815260206004820152601b60248201527f45786365656473206d617820706572207472616e73616374696f6e00000000006044820152606401610ca4565b34816040015167ffffffffffffffff16830214610f115760405162461bcd60e51b815260206004820152601660248201527f496e76616c69642066756e64732070726f7669646564000000000000000000006044820152606401610ca4565b50610f1e88878787611b17565b610f6a5760405162461bcd60e51b815260206004820152601160248201527f496e76616c6964207369676e61747572650000000000000000000000000000006044820152606401610ca4565b6000888152600a6020908152604080832060088a901c8452909152902054600160ff88161b16610fdc5760405162461bcd60e51b815260206004820152601260248201527f4e6f6e636520616c7265616479207573656400000000000000000000000000006044820152606401610ca4565b6000888152600a6020908152604080832060088a901c845290915290208054600160ff89161b191690556110103388611b0d565b5050505050505050565b611022611781565b6000816001600160a01b03164760405160006040518083038185875af1925050503d806000811461106f576040519150601f19603f3d011682016040523d82523d6000602084013e611074565b606091505b50509050806110c55760405162461bcd60e51b815260206004820152601160248201527f5769746864726177616c206661696c65640000000000000000000000000000006044820152606401610ca4565b5050565b6110d1611781565b6000805260096020527fec8156718a8372b1db44bb411437d0870f3e3790d4a08526d024ce1b0b668f6b805467ffffffffffffffff909216620100000269ffffffffffffffff00001960ff909416610100029390931669ffffffffffffffffff001990921691909117919091179055565b600061114f826001541190565b61116c57604051636f96cda160e11b815260040160405180910390fd5b611175826117db565b546001600160a01b031692915050565b60006001600160a01b0382166111ae576040516323d3ad8160e21b815260040160405180910390fd5b60006111b960015490565b905060008060005b83811015611221576000818152602081905260409020546001600160a01b031680156111eb578092505b866001600160a01b0316836001600160a01b0316036112105761120d8461290c565b93505b5061121a8161290c565b90506111c1565b5090949350505050565b611233611781565b61123d6000611bd3565b565b60008161124b836117db565b5460405161127a9291600160a01b900460a01b906020019182526001600160a01b0319166020820152602c0190565b604051602081830303815290604052805190602001209050919050565b61129f611781565b6110c58282611c25565b6060600380546108b890612925565b336001600160a01b038316036112e15760405163b06307db60e01b815260040160405180910390fd5b3360008181526005602090815260408083206001600160a01b03871680855290835292819020805460ff191686151590811790915590519081529192917f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a35050565b611355611781565b6001600160a01b0381166113ab5760405162461bcd60e51b815260206004820152601960248201527f43616e27742073657420746f207a65726f2061646472657373000000000000006044820152606401610ca4565b600b80546001600160a01b0319166001600160a01b0392909216919091179055565b6113d5611781565b6000805260096020527fec8156718a8372b1db44bb411437d0870f3e3790d4a08526d024ce1b0b668f6b5460ff16151581151514610d8a576000808052600960209081527fec8156718a8372b1db44bb411437d0870f3e3790d4a08526d024ce1b0b668f6b805460ff19168415159081179091556040519081527fdc9c33543bf9b9927437d643702debb0a51f3673cd8991fb0f03bd169e939b3c910160405180910390a250565b611485611781565b60008281526009602052604090205460ff161515811515146110c557600082815260096020908152604091829020805460ff1916841515908117909155915191825283917fdc9c33543bf9b9927437d643702debb0a51f3673cd8991fb0f03bd169e939b3c910160405180910390a25050565b6000611503836117db565b6040805180820190915290546001600160a01b0381168252600160a01b900460a01b6001600160a01b031916602082015290506115413384836118a5565b61155e57604051632ce44b5f60e11b815260040160405180910390fd5b6108a28585858486611d3f565b6000828152600a60209081526040808320600885901c845291829052822054600160ff85161b1615155b949350505050565b60606115aa826001541190565b6115f65760405162461bcd60e51b815260206004820152601460248201527f546f6b656e20646f6573206e6f742065786973740000000000000000000000006044820152606401610ca4565b600b546001600160a01b031661161b576040518060200160405280600081525061083e565b600b546001600160a01b031663f67b80d8836116368161123f565b6040516001600160e01b031960e085901b16815260048101929092526024820152604401600060405180830381865afa158015611677573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f1916820160405261083e919081019061297e565b6116a7611781565b6000838152600a60205260409020610a2f818484611d8b565b6116c8611781565b6001600160a01b0381166117445760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201527f64647265737300000000000000000000000000000000000000000000000000006064820152608401610ca4565b610d8a81611bd3565b6001600160a01b03163b151590565b60006001600160e01b0319821663152a902d60e11b148061083e575061083e82611dda565b6008546001600160a01b0316331461123d5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610ca4565b60006117e8826001541190565b611805576040516319086e6360e11b815260040160405180910390fd5b6000828152602081905260409020825b81546001600160a01b031661183d576000190160008181526020819052604090209150611815565b5092915050565b60008281526004602052604080822080546001600160a01b0319166001600160a01b038781169182179092558451925186949193909216917f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b9259190a4505050565b80516000906001600160a01b0385811690821614806118e957506001600160a01b0380821660009081526005602090815260408083209389168352929052205460ff165b8061190d5750846001600160a01b03166119028561093b565b6001600160a01b0316145b9150505b9392505050565b836001600160a01b031681600001516001600160a01b03161461194d5760405162a1148160e81b815260040160405180910390fd5b6001600160a01b03831661197457604051633a954ecd60e21b815260040160405180910390fd5b61198060008383611844565b6001820161198f816001541190565b156119d257600081815260208190526040902080546001600160a01b03166119d0578251602084015160a01c600160a01b026001600160a01b039091161781555b505b5060008281526020818152604090912080546001600160a01b0319166001600160a01b03861617815590820151611a0e90869086908690611e2a565b815460a09190911c600160a01b026001600160a01b03918216178255604051849186811691908816907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef90600090a46108a2565b323314611ab15760405162461bcd60e51b815260206004820152601860248201527f43616e2774206d696e742066726f6d20636f6e747261637400000000000000006044820152606401610ca4565b611e6181611abe60015490565b0111156110c55760405162461bcd60e51b815260206004820152601260248201527f45786365656473206d617820737570706c7900000000000000000000000000006044820152606401610ca4565b6110c58282611e96565b60408051602080820187905281830186905233606090811b6bffffffffffffffffffffffff191690830152825160548184030181526074909201909252805191012060009081611b6682611ff4565b600088815260096020908152604091829020548251601f8901839004830281018301909352878352929350611bc892600160501b90046001600160a01b0316918491899089908190840183828082843760009201919091525061202f92505050565b979650505050505050565b600880546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b6127106bffffffffffffffffffffffff82161115611cab5760405162461bcd60e51b815260206004820152602a60248201527f455243323938313a20726f79616c7479206665652077696c6c2065786365656460448201527f2073616c655072696365000000000000000000000000000000000000000000006064820152608401610ca4565b6001600160a01b038216611d015760405162461bcd60e51b815260206004820152601960248201527f455243323938313a20696e76616c6964207265636569766572000000000000006044820152606401610ca4565b604080518082019091526001600160a01b039092168083526bffffffffffffffffffffffff9091166020909201829052600160a01b90910217600655565b611d4b85858585611918565b6001600160a01b0384163b15158015611d6d5750611d6b85858584612190565b155b156108a2576040516368d2bf6b60e11b815260040160405180910390fd5b8015611db557600882901c60009081526020849052604090208054600160ff85161b179055505050565b600882901c60009081526020849052604090208054600160ff85161b19169055505050565b60006001600160e01b031982166380ac58cd60e01b1480611e0b57506001600160e01b03198216635b5e139f60e01b145b8061083e57506301ffc9a760e01b6001600160e01b031983161461083e565b60006001600160a01b03851615611e415781611e8d565b60408051602081018590526bffffffffffffffffffffffff19606087901b1691810191909152446054820152426074820152609401604051602081830303815290604052805190602001205b95945050505050565b6001600160a01b038216611ebc57604051622e076360e81b815260040160405180910390fd5b80600003611edd5760405163b562e8dd60e01b815260040160405180910390fd5b60015460005b82811015611fe6577f000000000000000000000000000000000000000000000000000000000000000515611f47577f00000000000000000000000000000000000000000000000000000000000000058181611f4057611f406128a6565b0615611f4a565b80155b15611fa457808201600081815260208190526040812080546001600160a01b0319166001600160a01b03881617815591611f879190879082611e2a565b815460a09190911c600160a01b026001600160a01b039091161790555b604051828201906001600160a01b038616906000907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a4600101611ee3565b506001805483019055505050565b6040517f19457468657265756d205369676e6564204d6573736167653a0a3332000000006020820152603c8101829052600090605c0161127a565b600080600061203e8585612278565b90925090506000816004811115612057576120576129ec565b1480156120755750856001600160a01b0316826001600160a01b0316145b1561208557600192505050611911565b600080876001600160a01b0316631626ba7e60e01b88886040516024016120ad929190612a02565b60408051601f198184030181529181526020820180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff166001600160e01b03199094169390931790925290516121009190612a1b565b600060405180830381855afa9150503d806000811461213b576040519150601f19603f3d011682016040523d82523d6000602084013e612140565b606091505b5091509150818015612153575080516020145b801561218457508051630b135d3f60e11b906121789083016020908101908401612a37565b6001600160e01b031916145b98975050505050505050565b604051630a85bd0160e11b81526000906001600160a01b0385169063150b7a02906121c5903390899088908890600401612a54565b6020604051808303816000875af1925050508015612200575060408051601f3d908101601f191682019092526121fd91810190612a37565b60015b61225e573d80801561222e576040519150601f19603f3d011682016040523d82523d6000602084013e612233565b606091505b508051600003612256576040516368d2bf6b60e11b815260040160405180910390fd5b805181602001fd5b6001600160e01b031916630a85bd0160e11b149050611595565b60008082516041036122ae5760208301516040840151606085015160001a6122a2878285856122e3565b94509450505050610bf2565b82516040036122d757602083015160408401516122cc8683836123d0565b935093505050610bf2565b50600090506002610bf2565b6000807f7fffffffffffffffffffffffffffffff5d576e7357a4501ddfe92f46681b20a083111561231a57506000905060036123c7565b8460ff16601b1415801561233257508460ff16601c14155b1561234357506000905060046123c7565b6040805160008082526020820180845289905260ff881692820192909252606081018690526080810185905260019060a0016020604051602081039080840390855afa158015612397573d6000803e3d6000fd5b5050604051601f1901519150506001600160a01b0381166123c0576000600192509250506123c7565b9150600090505b94509492505050565b6000807f7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff83168161240660ff86901c601b6128f4565b9050612414878288856122e3565b935093505050935093915050565b6001600160e01b031981168114610d8a57600080fd5b60006020828403121561244a57600080fd5b813561191181612422565b6000806040838503121561246857600080fd5b50508035926020909101359150565b60005b8381101561249257818101518382015260200161247a565b83811115610a2f5750506000910152565b600081518084526124bb816020860160208601612477565b601f01601f19169290920160200192915050565b60208152600061191160208301846124a3565b6000602082840312156124f457600080fd5b5035919050565b80356001600160a01b038116811461251257600080fd5b919050565b6000806040838503121561252a57600080fd5b612533836124fb565b946020939093013593505050565b6000806000806080858703121561255757600080fd5b843593506020850135925060408501359150612575606086016124fb565b905092959194509250565b60008060006060848603121561259557600080fd5b61259e846124fb565b92506125ac602085016124fb565b9150604084013590509250925092565b6000806000806000608086880312156125d457600080fd5b853594506020860135935060408601359250606086013567ffffffffffffffff8082111561260157600080fd5b818801915088601f83011261261557600080fd5b81358181111561262457600080fd5b89602082850101111561263657600080fd5b9699959850939650602001949392505050565b60006020828403121561265b57600080fd5b611911826124fb565b6000806040838503121561267757600080fd5b612680836124fb565b915060208301356bffffffffffffffffffffffff811681146126a157600080fd5b809150509250929050565b8035801515811461251257600080fd5b600080604083850312156126cf57600080fd5b6126d8836124fb565b91506126e6602084016126ac565b90509250929050565b60006020828403121561270157600080fd5b611911826126ac565b6000806040838503121561271d57600080fd5b823591506126e6602084016126ac565b634e487b7160e01b600052604160045260246000fd5b604051601f8201601f1916810167ffffffffffffffff8111828210171561276c5761276c61272d565b604052919050565b600067ffffffffffffffff82111561278e5761278e61272d565b50601f01601f191660200190565b600080600080608085870312156127b257600080fd5b6127bb856124fb565b93506127c9602086016124fb565b925060408501359150606085013567ffffffffffffffff8111156127ec57600080fd5b8501601f810187136127fd57600080fd5b803561281061280b82612774565b612743565b81815288602083850101111561282557600080fd5b8160208401602083013760006020838301015280935050505092959194509250565b60008060006060848603121561285c57600080fd5b8335925060208401359150612873604085016126ac565b90509250925092565b6000806040838503121561288f57600080fd5b612898836124fb565b91506126e6602084016124fb565b634e487b7160e01b600052601260045260246000fd5b634e487b7160e01b600052601160045260246000fd5b6000826128ef57634e487b7160e01b600052601260045260246000fd5b500490565b60008219821115612907576129076128bc565b500190565b60006001820161291e5761291e6128bc565b5060010190565b600181811c9082168061293957607f821691505b60208210810361295957634e487b7160e01b600052602260045260246000fd5b50919050565b6000816000190483118215151615612979576129796128bc565b500290565b60006020828403121561299057600080fd5b815167ffffffffffffffff8111156129a757600080fd5b8201601f810184136129b857600080fd5b80516129c661280b82612774565b8181528560208385010111156129db57600080fd5b611e8d826020830160208601612477565b634e487b7160e01b600052602160045260246000fd5b82815260406020820152600061159560408301846124a3565b60008251612a2d818460208701612477565b9190910192915050565b600060208284031215612a4957600080fd5b815161191181612422565b60006001600160a01b03808716835280861660208401525083604083015260806060830152612a8660808301846124a3565b969550505050505056fea26469706673582212204472975b38a5981c1a1df81666b5fb0792296ac7e14cb6c06b2b576fa27cdb7564736f6c634300080f0033
Loading...
Loading
Loading...
Loading
OVERVIEW
The Citizens of Tajigen are an underground network of anonymous netrunners: artists, athletes, hackers, scientists and soldiers, who work to fulfill a common goal: to bring back decentralization and free the people trapped in the new world order.Multichain Portfolio | 30 Chains
Chain | Token | Portfolio % | Price | Amount | Value |
---|
Loading...
Loading
[ Download: CSV Export ]
[ Download: CSV Export ]
A contract address hosts a smart contract, which is a set of code stored on the blockchain that runs when predetermined conditions are met. Learn more about addresses in our Knowledge Base.