Feature Tip: Add private address tag to any address under My Name Tag !
Overview
ETH Balance
0 ETH
Eth Value
$0.00More Info
Private Name Tags
ContractCreator
View more zero value Internal Transactions in Advanced View mode
Advanced mode:
Loading...
Loading
Contract Name:
Potatoz
Compiler Version
v0.8.14+commit.80d49f37
Optimization Enabled:
Yes with 200 runs
Other Settings:
default evmVersion
Contract Source Code (Solidity Standard Json-Input format)
// SPDX-License-Identifier: MIT /* $MEMELAND kevinLAND$$$ mVp meme meME BRIAN6 9$ $sa|ya$ ISdicKbuTT !mVP$! $ca pta inM$ !j$oe$y!! TREASUREM$ !MV $P!$ M$ M$zpotatozmvp M$ Cumm A$C$$staking$ M$ CHRIS R$H MVP $d ontLAND mvpR m$ C$U $$$ 69 T$rustverify IMvP O$N 9gag ceo captain aS$o !9GA pOTATOZ$ RAY$9999$ G! !!$DICK$! dyno poTa BUTTZ! m$ to 9gag LETSFUCKING! GROW!!! RAY$ ISMVP ME DERE K! lanD me kArEnc IS j6r9an LA tReASURE$ meMelandnD */ pragma solidity ^0.8.14; import "@openzeppelin/contracts-upgradeable/security/ReentrancyGuardUpgradeable.sol"; import "@openzeppelin/contracts/utils/cryptography/ECDSA.sol"; import "@openzeppelin/contracts/token/ERC721/IERC721.sol"; import "./Guardian/Erc721LockRegistry.sol"; contract Potatoz is ERC721x, ReentrancyGuardUpgradeable { string public baseTokenURI; string public tokenURISuffix; address private signer; uint256 public MAX_SUPPLY; uint256 public MAX_TOKENS_MINTED_PER_ADDRESS; uint256 public mintStartAfter; bool public canStake; string public tokenURIOverride; mapping(address => uint256) public tokensMintedPerAddress; // address => times minted mapping(uint256 => uint256) public tokensLastStakedAt; // tokenId => timestamp // event Mint(address minter, uint256 tokenId); event Stake(uint256 tokenId, address by, uint256 stakedAt); event Unstake( uint256 tokenId, address by, uint256 stakedAt, uint256 unstakedAt ); mapping(uint256 => uint256) public tokensLevel; function initialize(address _signer, string memory baseURI) public initializer { OwnableUpgradeable.__Ownable_init(); ReentrancyGuardUpgradeable.__ReentrancyGuard_init(); ERC721x.__ERC721x_init("Potatoz", "Potatoz"); baseTokenURI = baseURI; signer = _signer; MAX_SUPPLY = 9999; MAX_TOKENS_MINTED_PER_ADDRESS = 1; mintStartAfter = 0; } function checkMintValidity( bytes32 hash, bytes memory signature, uint256 validUntil ) public view returns (bool) { require( ECDSA.toEthSignedMessageHash( keccak256(abi.encodePacked(msg.sender, "allow", validUntil)) ) == hash, "invalid hash" ); require(ECDSA.recover(hash, signature) == signer, "invalid signature"); return true; } function mint( bytes32 hash, bytes memory signature, uint256 validUntil ) external { require( mintStartAfter > 0 && block.timestamp >= mintStartAfter, "mint not started" ); require(block.timestamp <= validUntil, "expired"); require(checkMintValidity(hash, signature, validUntil), "invalid"); uint256 newMintedPerAddress = tokensMintedPerAddress[msg.sender] + 1; require( newMintedPerAddress <= MAX_TOKENS_MINTED_PER_ADDRESS, "tokensMintedPerAddress exceed MAX_TOKENS_MINTED_PER_ADDRESS" ); tokensMintedPerAddress[msg.sender] = newMintedPerAddress; // uint256 tokenId = totalSupply(); safeMint(msg.sender, 1); // emit Mint(msg.sender, tokenId); } function safeMint(address receiver, uint256 quantity) internal { require(totalSupply() + quantity <= MAX_SUPPLY, "exceed MAX_SUPPLY"); _safeMint(receiver, quantity); } function giveaway(address[] memory receivers) external onlyOwner { require(receivers.length >= 1, "at least 1 receiver"); // require( // totalSupply() + receivers.length <= MAX_SUPPLY, // "would exceed MAX_SUPPLY" // ); for (uint256 i; i < receivers.length; i++) { address receiver = receivers[i]; safeMint(receiver, 1); } } function giveawayWithAmounts( address[] memory receivers, uint256[] memory amounts ) external onlyOwner { require(receivers.length >= 1, "at least 1 receiver"); require( receivers.length == amounts.length, "receivers.length must equal amounts.length" ); // uint256 total = 0; // for (uint256 i; i < amounts.length; i++) { // uint256 amount = amounts[i]; // require(amount >= 1, "each receiver should receive at least 1"); // total += amount; // } // require(totalSupply() + total <= MAX_SUPPLY, "would exceed MAX_SUPPLY"); for (uint256 i; i < receivers.length; i++) { address receiver = receivers[i]; safeMint(receiver, amounts[i]); } } function withdrawAll() external onlyOwner { uint256 balance = address(this).balance; require(balance > 0, "there is nothing to withdraw"); _withdraw(owner(), address(this).balance); } function _withdraw(address _address, uint256 _amount) private { (bool success, ) = _address.call{value: _amount}(""); require(success, "could not withdraw"); } function burnSupply(uint256 maxSupplyNew) external onlyOwner { require(maxSupplyNew > 0, "new max supply should > 0"); require(maxSupplyNew < MAX_SUPPLY, "can only reduce max supply"); require( maxSupplyNew >= totalSupply(), "cannot burn more than current supply" ); MAX_SUPPLY = maxSupplyNew; } function setSigner(address addr) external onlyOwner { signer = addr; } function _baseURI() internal view virtual override returns (string memory) { return baseTokenURI; } function setBaseURI(string memory baseURI) external onlyOwner { baseTokenURI = baseURI; } function setTokenURISuffix(string memory _tokenURISuffix) external onlyOwner { tokenURISuffix = _tokenURISuffix; } function setTokenURIOverride(string memory _tokenURIOverride) external onlyOwner { tokenURIOverride = _tokenURIOverride; } function tokenURI(uint256 _tokenId) public view override returns (string memory) { if (bytes(tokenURIOverride).length > 0) { return tokenURIOverride; } return string.concat(super.tokenURI(_tokenId), tokenURISuffix); } function setMintStartAfter(uint256 timestamp) external onlyOwner { mintStartAfter = timestamp; } function setMaxTokensMintedPerAddress(uint256 m) external onlyOwner { MAX_TOKENS_MINTED_PER_ADDRESS = m; } function transferFrom( address from, address to, uint256 tokenId ) public override(ERC721x) { require( tokensLastStakedAt[tokenId] == 0, "Cannot transfer staked token" ); super.transferFrom(from, to, tokenId); } function safeTransferFrom( address from, address to, uint256 tokenId, bytes memory _data ) public override(ERC721x) { require( tokensLastStakedAt[tokenId] == 0, "Cannot transfer staked token" ); super.safeTransferFrom(from, to, tokenId, _data); } function stake(uint256 tokenId) public { require(canStake, "staking not open"); require( msg.sender == ownerOf(tokenId) || msg.sender == owner(), "caller must be owner of token or contract owner" ); require(tokensLastStakedAt[tokenId] == 0, "already staking"); tokensLastStakedAt[tokenId] = block.timestamp; emit Stake(tokenId, msg.sender, tokensLastStakedAt[tokenId]); } function unstake(uint256 tokenId) public { require( msg.sender == ownerOf(tokenId) || msg.sender == owner(), "caller must be owner of token or contract owner" ); require(tokensLastStakedAt[tokenId] > 0, "not staking"); uint256 lsa = tokensLastStakedAt[tokenId]; tokensLastStakedAt[tokenId] = 0; emit Unstake(tokenId, msg.sender, block.timestamp, lsa); } function setTokensStakeStatus(uint256[] memory tokenIds, bool setStake) external { for (uint256 i; i < tokenIds.length; i++) { uint256 tokenId = tokenIds[i]; if (setStake) { stake(tokenId); } else { unstake(tokenId); } } } function setCanStake(bool b) external onlyOwner { canStake = b; } /// @dev Returns the tokenIds of the address. O(totalSupply) in complexity. function tokensOfOwner(address owner) external view returns (uint256[] memory) { unchecked { uint256[] memory a = new uint256[](balanceOf(owner)); uint256 end = _currentIndex; uint256 tokenIdsIdx; address currOwnershipAddr; for (uint256 i; i < end; i++) { TokenOwnership memory ownership = _ownerships[i]; if (ownership.burned) { continue; } if (ownership.addr != address(0)) { currOwnershipAddr = ownership.addr; } if (currOwnershipAddr == owner) { a[tokenIdsIdx++] = i; } } return a; } } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (security/ReentrancyGuard.sol) pragma solidity ^0.8.0; import "../proxy/utils/Initializable.sol"; /** * @dev Contract module that helps prevent reentrant calls to a function. * * Inheriting from `ReentrancyGuard` will make the {nonReentrant} modifier * available, which can be applied to functions to make sure there are no nested * (reentrant) calls to them. * * Note that because there is a single `nonReentrant` guard, functions marked as * `nonReentrant` may not call one another. This can be worked around by making * those functions `private`, and then adding `external` `nonReentrant` entry * points to them. * * TIP: If you would like to learn more about reentrancy and alternative ways * to protect against it, check out our blog post * https://blog.openzeppelin.com/reentrancy-after-istanbul/[Reentrancy After Istanbul]. */ abstract contract ReentrancyGuardUpgradeable is Initializable { // Booleans are more expensive than uint256 or any type that takes up a full // word because each write operation emits an extra SLOAD to first read the // slot's contents, replace the bits taken up by the boolean, and then write // back. This is the compiler's defense against contract upgrades and // pointer aliasing, and it cannot be disabled. // The values being non-zero value makes deployment a bit more expensive, // but in exchange the refund on every call to nonReentrant will be lower in // amount. Since refunds are capped to a percentage of the total // transaction's gas, it is best to keep them low in cases like this one, to // increase the likelihood of the full refund coming into effect. uint256 private constant _NOT_ENTERED = 1; uint256 private constant _ENTERED = 2; uint256 private _status; function __ReentrancyGuard_init() internal onlyInitializing { __ReentrancyGuard_init_unchained(); } function __ReentrancyGuard_init_unchained() internal onlyInitializing { _status = _NOT_ENTERED; } /** * @dev Prevents a contract from calling itself, directly or indirectly. * Calling a `nonReentrant` function from another `nonReentrant` * function is not supported. It is possible to prevent this from happening * by making the `nonReentrant` function external, and making it call a * `private` function that does the actual work. */ modifier nonReentrant() { // On the first call to nonReentrant, _notEntered will be true require(_status != _ENTERED, "ReentrancyGuard: reentrant call"); // Any calls to nonReentrant after this point will fail _status = _ENTERED; _; // By storing the original value once again, a refund is triggered (see // https://eips.ethereum.org/EIPS/eip-2200) _status = _NOT_ENTERED; } /** * @dev This empty reserved space is put in place to allow future versions to add new * variables without shifting down storage in the inheritance chain. * See https://docs.openzeppelin.com/contracts/4.x/upgradeable#storage_gaps */ uint256[49] private __gap; }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.5.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. 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. 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.6.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 be have been allowed to move this token by either {approve} or {setApprovalForAll}. * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */ function safeTransferFrom( address from, address to, uint256 tokenId ) external; /** * @dev Transfers `tokenId` token from `from` to `to`. * * WARNING: Usage of this method is discouraged, use {safeTransferFrom} whenever possible. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must be owned by `from`. * - If the caller is not `from`, it must be approved to move this token by either {approve} or {setApprovalForAll}. * * Emits a {Transfer} event. */ function transferFrom( address from, address to, uint256 tokenId ) external; /** * @dev Gives permission to `to` to transfer `tokenId` token to another account. * The approval is cleared when the token is transferred. * * Only a single account can be approved at a time, so approving the zero address clears previous approvals. * * Requirements: * * - The caller must own the token or be an approved operator. * - `tokenId` must exist. * * Emits an {Approval} event. */ function approve(address to, uint256 tokenId) external; /** * @dev 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: UNLICENSED pragma solidity ^0.8.14; /* * ,_, * (',') * {/"\} * -"-"- */ import "erc721a-upgradeable/contracts/ERC721AUpgradeable.sol"; import "./LockRegistry.sol"; import "./IERC721x.sol"; contract ERC721x is ERC721AUpgradeable, LockRegistry { /* * bytes4(keccak256('freeId(uint256,address)')) == 0x94d216d6 * bytes4(keccak256('isUnlocked(uint256)')) == 0x72abc8b7 * bytes4(keccak256('lockCount(uint256)')) == 0x650b00f6 * bytes4(keccak256('lockId(uint256)')) == 0x2799cde0 * bytes4(keccak256('lockMap(uint256,uint256)')) == 0x2cba8123 * bytes4(keccak256('lockMapIndex(uint256,address)')) == 0x09308e5d * bytes4(keccak256('unlockId(uint256)')) == 0x40a9c8df * bytes4(keccak256('approvedContract(address)')) == 0xb1a6505f * * => 0x94d216d6 ^ 0x72abc8b7 ^ 0x650b00f6 ^ 0x2799cde0 ^ * 0x2cba8123 ^ 0x09308e5d ^ 0x40a9c8df ^ 0xb1a6505f == 0x706e8489 */ bytes4 private constant _INTERFACE_ID_ERC721x = 0x706e8489; function __ERC721x_init( string memory _name, string memory _symbol ) internal onlyInitializing { ERC721AUpgradeable.__ERC721A_init(_name, _symbol); LockRegistry.__LockRegistry_init(); } function supportsInterface(bytes4 _interfaceId) public view virtual override(ERC721AUpgradeable) returns (bool) { return _interfaceId == _INTERFACE_ID_ERC721x || super.supportsInterface(_interfaceId); } function transferFrom( address _from, address _to, uint256 _tokenId ) public virtual override { require(isUnlocked(_tokenId), "Token is locked"); ERC721AUpgradeable.transferFrom(_from, _to, _tokenId); } function safeTransferFrom( address _from, address _to, uint256 _tokenId, bytes memory _data ) public virtual override { require(isUnlocked(_tokenId), "Token is locked"); ERC721AUpgradeable.safeTransferFrom(_from, _to, _tokenId, _data); } function lockId(uint256 _id) external virtual override { require(_exists(_id), "Token !exist"); _lockId(_id); } function unlockId(uint256 _id) external virtual override { require(_exists(_id), "Token !exist"); _unlockId(_id); } function freeId(uint256 _id, address _contract) external virtual override { require(_exists(_id), "Token !exist"); _freeId(_id, _contract); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.6.0) (proxy/utils/Initializable.sol) pragma solidity ^0.8.2; import "../../utils/AddressUpgradeable.sol"; /** * @dev This is a base contract to aid in writing upgradeable contracts, or any kind of contract that will be deployed * behind a proxy. Since proxied contracts do not make use of a constructor, it's common to move constructor logic to an * external initializer function, usually called `initialize`. It then becomes necessary to protect this initializer * function so it can only be called once. The {initializer} modifier provided by this contract will have this effect. * * The initialization functions use a version number. Once a version number is used, it is consumed and cannot be * reused. This mechanism prevents re-execution of each "step" but allows the creation of new initialization steps in * case an upgrade adds a module that needs to be initialized. * * For example: * * [.hljs-theme-light.nopadding] * ``` * contract MyToken is ERC20Upgradeable { * function initialize() initializer public { * __ERC20_init("MyToken", "MTK"); * } * } * contract MyTokenV2 is MyToken, ERC20PermitUpgradeable { * function initializeV2() reinitializer(2) public { * __ERC20Permit_init("MyToken"); * } * } * ``` * * TIP: To avoid leaving the proxy in an uninitialized state, the initializer function should be called as early as * possible by providing the encoded function call as the `_data` argument to {ERC1967Proxy-constructor}. * * CAUTION: When used with inheritance, manual care must be taken to not invoke a parent initializer twice, or to ensure * that all initializers are idempotent. This is not verified automatically as constructors are by Solidity. * * [CAUTION] * ==== * Avoid leaving a contract uninitialized. * * An uninitialized contract can be taken over by an attacker. This applies to both a proxy and its implementation * contract, which may impact the proxy. To prevent the implementation contract from being used, you should invoke * the {_disableInitializers} function in the constructor to automatically lock it when it is deployed: * * [.hljs-theme-light.nopadding] * ``` * /// @custom:oz-upgrades-unsafe-allow constructor * constructor() { * _disableInitializers(); * } * ``` * ==== */ abstract contract Initializable { /** * @dev Indicates that the contract has been initialized. * @custom:oz-retyped-from bool */ uint8 private _initialized; /** * @dev Indicates that the contract is in the process of being initialized. */ bool private _initializing; /** * @dev Triggered when the contract has been initialized or reinitialized. */ event Initialized(uint8 version); /** * @dev A modifier that defines a protected initializer function that can be invoked at most once. In its scope, * `onlyInitializing` functions can be used to initialize parent contracts. Equivalent to `reinitializer(1)`. */ modifier initializer() { bool isTopLevelCall = _setInitializedVersion(1); if (isTopLevelCall) { _initializing = true; } _; if (isTopLevelCall) { _initializing = false; emit Initialized(1); } } /** * @dev A modifier that defines a protected reinitializer function that can be invoked at most once, and only if the * contract hasn't been initialized to a greater version before. In its scope, `onlyInitializing` functions can be * used to initialize parent contracts. * * `initializer` is equivalent to `reinitializer(1)`, so a reinitializer may be used after the original * initialization step. This is essential to configure modules that are added through upgrades and that require * initialization. * * Note that versions can jump in increments greater than 1; this implies that if multiple reinitializers coexist in * a contract, executing them in the right order is up to the developer or operator. */ modifier reinitializer(uint8 version) { bool isTopLevelCall = _setInitializedVersion(version); if (isTopLevelCall) { _initializing = true; } _; if (isTopLevelCall) { _initializing = false; emit Initialized(version); } } /** * @dev Modifier to protect an initialization function so that it can only be invoked by functions with the * {initializer} and {reinitializer} modifiers, directly or indirectly. */ modifier onlyInitializing() { require(_initializing, "Initializable: contract is not initializing"); _; } /** * @dev Locks the contract, preventing any future reinitialization. This cannot be part of an initializer call. * Calling this in the constructor of a contract will prevent that contract from being initialized or reinitialized * to any version. It is recommended to use this to lock implementation contracts that are designed to be called * through proxies. */ function _disableInitializers() internal virtual { _setInitializedVersion(type(uint8).max); } function _setInitializedVersion(uint8 version) private returns (bool) { // If the contract is initializing we ignore whether _initialized is set in order to support multiple // inheritance patterns, but we only do this in the context of a constructor, and for the lowest level // of initializers, because in other contexts the contract may have been reentered. if (_initializing) { require( version == 1 && !AddressUpgradeable.isContract(address(this)), "Initializable: contract is already initialized" ); return false; } else { require(_initialized < version, "Initializable: contract is already initialized"); _initialized = version; return true; } } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.5.0) (utils/Address.sol) pragma solidity ^0.8.1; /** * @dev Collection of functions related to the address type */ library AddressUpgradeable { /** * @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 Tool to verifies that a low level call was successful, and revert if it wasn't, either by bubbling the * revert reason using the provided one. * * _Available since v4.3._ */ function verifyCallResult( bool success, bytes memory returndata, string memory errorMessage ) internal pure returns (bytes memory) { if (success) { return returndata; } else { // Look for revert reason and bubble it up if present if (returndata.length > 0) { // The easiest way to bubble the revert reason is using memory via assembly assembly { let returndata_size := mload(returndata) revert(add(32, returndata), returndata_size) } } else { revert(errorMessage); } } } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/Strings.sol) pragma solidity ^0.8.0; /** * @dev String operations. */ library Strings { bytes16 private constant _HEX_SYMBOLS = "0123456789abcdef"; /** * @dev Converts a `uint256` to its ASCII `string` decimal representation. */ function toString(uint256 value) internal pure returns (string memory) { // Inspired by OraclizeAPI's implementation - MIT licence // https://github.com/oraclize/ethereum-api/blob/b42146b063c7d6ee1358846c198246239e9360e8/oraclizeAPI_0.4.25.sol if (value == 0) { return "0"; } uint256 temp = value; uint256 digits; while (temp != 0) { digits++; temp /= 10; } bytes memory buffer = new bytes(digits); while (value != 0) { digits -= 1; buffer[digits] = bytes1(uint8(48 + uint256(value % 10))); value /= 10; } return string(buffer); } /** * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation. */ function toHexString(uint256 value) internal pure returns (string memory) { if (value == 0) { return "0x00"; } uint256 temp = value; uint256 length = 0; while (temp != 0) { length++; temp >>= 8; } return toHexString(value, length); } /** * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation with fixed length. */ function toHexString(uint256 value, uint256 length) internal pure returns (string memory) { bytes memory buffer = new bytes(2 * length + 2); buffer[0] = "0"; buffer[1] = "x"; for (uint256 i = 2 * length + 1; i > 1; --i) { buffer[i] = _HEX_SYMBOLS[value & 0xf]; value >>= 4; } require(value == 0, "Strings: hex length insufficient"); return string(buffer); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/introspection/IERC165.sol) pragma solidity ^0.8.0; /** * @dev Interface of the ERC165 standard, as defined in the * https://eips.ethereum.org/EIPS/eip-165[EIP]. * * Implementers can declare support of contract interfaces, which can then be * queried by others ({ERC165Checker}). * * For an implementation, see {ERC165}. */ interface IERC165 { /** * @dev Returns true if this contract implements the interface defined by * `interfaceId`. See the corresponding * https://eips.ethereum.org/EIPS/eip-165#how-interfaces-are-identified[EIP section] * to learn more about how these ids are created. * * This function call must use less than 30 000 gas. */ function supportsInterface(bytes4 interfaceId) external view returns (bool); }
// SPDX-License-Identifier: MIT // Creator: Chiru Labs pragma solidity ^0.8.4; import "@openzeppelin/contracts-upgradeable/token/ERC721/IERC721Upgradeable.sol"; import "@openzeppelin/contracts-upgradeable/token/ERC721/IERC721ReceiverUpgradeable.sol"; import "@openzeppelin/contracts-upgradeable/token/ERC721/extensions/IERC721MetadataUpgradeable.sol"; import "@openzeppelin/contracts-upgradeable/utils/AddressUpgradeable.sol"; import "@openzeppelin/contracts-upgradeable/utils/ContextUpgradeable.sol"; import "@openzeppelin/contracts-upgradeable/utils/StringsUpgradeable.sol"; import "@openzeppelin/contracts-upgradeable/utils/introspection/ERC165Upgradeable.sol"; import "@openzeppelin/contracts-upgradeable/proxy/utils/Initializable.sol"; error ApprovalCallerNotOwnerNorApproved(); error ApprovalQueryForNonexistentToken(); error ApproveToCaller(); error ApprovalToCurrentOwner(); error BalanceQueryForZeroAddress(); error MintToZeroAddress(); error MintZeroQuantity(); error OwnerQueryForNonexistentToken(); error TransferCallerNotOwnerNorApproved(); error TransferFromIncorrectOwner(); error TransferToNonERC721ReceiverImplementer(); error TransferToZeroAddress(); error URIQueryForNonexistentToken(); /** * @dev Implementation of https://eips.ethereum.org/EIPS/eip-721[ERC721] Non-Fungible Token Standard, including * the Metadata extension. Built to optimize for lower gas during batch mints. * * Assumes serials are sequentially minted starting at _startTokenId() (defaults to 0, e.g. 0, 1, 2, 3..). * * Assumes that an owner cannot have more than 2**64 - 1 (max value of uint64) of supply. * * Assumes that the maximum token id cannot exceed 2**256 - 1 (max value of uint256). */ contract ERC721AUpgradeable is Initializable, ContextUpgradeable, ERC165Upgradeable, IERC721Upgradeable, IERC721MetadataUpgradeable { using AddressUpgradeable for address; using StringsUpgradeable for uint256; // Compiler will pack this into a single 256bit word. struct TokenOwnership { // The address of the owner. address addr; // Keeps track of the start time of ownership with minimal overhead for tokenomics. uint64 startTimestamp; // Whether the token has been burned. bool burned; } // Compiler will pack this into a single 256bit word. struct AddressData { // Realistically, 2**64-1 is more than enough. uint64 balance; // Keeps track of mint count with minimal overhead for tokenomics. uint64 numberMinted; // Keeps track of burn count with minimal overhead for tokenomics. uint64 numberBurned; // For miscellaneous variable(s) pertaining to the address // (e.g. number of whitelist mint slots used). // If there are multiple variables, please pack them into a uint64. uint64 aux; } // The tokenId of the next token to be minted. uint256 internal _currentIndex; // The number of tokens burned. uint256 internal _burnCounter; // Token name string private _name; // Token symbol string private _symbol; // Mapping from token ID to ownership details // An empty struct value does not necessarily mean the token is unowned. See _ownershipOf implementation for details. mapping(uint256 => TokenOwnership) internal _ownerships; // Mapping owner address to address data mapping(address => AddressData) private _addressData; // Mapping from token ID to approved address mapping(uint256 => address) private _tokenApprovals; // Mapping from owner to operator approvals mapping(address => mapping(address => bool)) private _operatorApprovals; function __ERC721A_init(string memory name_, string memory symbol_) internal onlyInitializing { __ERC721A_init_unchained(name_, symbol_); } function __ERC721A_init_unchained(string memory name_, string memory symbol_) internal onlyInitializing { _name = name_; _symbol = symbol_; _currentIndex = _startTokenId(); } /** * To change the starting tokenId, please override this function. */ function _startTokenId() internal view virtual returns (uint256) { return 0; } /** * @dev Burned tokens are calculated here, use _totalMinted() if you want to count just minted tokens. */ function totalSupply() public view returns (uint256) { // Counter underflow is impossible as _burnCounter cannot be incremented // more than _currentIndex - _startTokenId() times unchecked { return _currentIndex - _burnCounter - _startTokenId(); } } /** * Returns the total amount of tokens minted in the contract. */ function _totalMinted() internal view returns (uint256) { // Counter underflow is impossible as _currentIndex does not decrement, // and it is initialized to _startTokenId() unchecked { return _currentIndex - _startTokenId(); } } /** * @dev See {IERC165-supportsInterface}. */ function supportsInterface(bytes4 interfaceId) public view virtual override(ERC165Upgradeable, IERC165Upgradeable) returns (bool) { return interfaceId == type(IERC721Upgradeable).interfaceId || interfaceId == type(IERC721MetadataUpgradeable).interfaceId || super.supportsInterface(interfaceId); } /** * @dev See {IERC721-balanceOf}. */ function balanceOf(address owner) public view override returns (uint256) { if (owner == address(0)) revert BalanceQueryForZeroAddress(); return uint256(_addressData[owner].balance); } /** * Returns the number of tokens minted by `owner`. */ function _numberMinted(address owner) internal view returns (uint256) { return uint256(_addressData[owner].numberMinted); } /** * Returns the number of tokens burned by or on behalf of `owner`. */ function _numberBurned(address owner) internal view returns (uint256) { return uint256(_addressData[owner].numberBurned); } /** * Returns the auxillary data for `owner`. (e.g. number of whitelist mint slots used). */ function _getAux(address owner) internal view returns (uint64) { return _addressData[owner].aux; } /** * Sets the auxillary data for `owner`. (e.g. number of whitelist mint slots used). * If there are multiple variables, please pack them into a uint64. */ function _setAux(address owner, uint64 aux) internal { _addressData[owner].aux = aux; } /** * Gas spent here starts off proportional to the maximum mint batch size. * It gradually moves to O(1) as tokens get transferred around in the collection over time. */ function _ownershipOf(uint256 tokenId) internal view returns (TokenOwnership memory) { uint256 curr = tokenId; unchecked { if (_startTokenId() <= curr && curr < _currentIndex) { TokenOwnership memory ownership = _ownerships[curr]; if (!ownership.burned) { if (ownership.addr != address(0)) { return ownership; } // Invariant: // There will always be an ownership that has an address and is not burned // before an ownership that does not have an address and is not burned. // Hence, curr will not underflow. while (true) { curr--; ownership = _ownerships[curr]; if (ownership.addr != address(0)) { return ownership; } } } } } revert OwnerQueryForNonexistentToken(); } /** * @dev See {IERC721-ownerOf}. */ function ownerOf(uint256 tokenId) public view override returns (address) { return _ownershipOf(tokenId).addr; } /** * @dev See {IERC721Metadata-name}. */ function name() public view virtual override returns (string memory) { return _name; } /** * @dev See {IERC721Metadata-symbol}. */ function symbol() public view virtual override returns (string memory) { return _symbol; } /** * @dev See {IERC721Metadata-tokenURI}. */ 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())) : ''; } /** * @dev Base URI for computing {tokenURI}. If set, the resulting URI for each * token will be the concatenation of the `baseURI` and the `tokenId`. Empty * by default, can be overriden in child contracts. */ function _baseURI() internal view virtual returns (string memory) { return ''; } /** * @dev See {IERC721-approve}. */ function approve(address to, uint256 tokenId) public override { address owner = ERC721AUpgradeable.ownerOf(tokenId); if (to == owner) revert ApprovalToCurrentOwner(); if (_msgSender() != owner && !isApprovedForAll(owner, _msgSender())) { revert ApprovalCallerNotOwnerNorApproved(); } _approve(to, tokenId, owner); } /** * @dev See {IERC721-getApproved}. */ function getApproved(uint256 tokenId) public view override returns (address) { if (!_exists(tokenId)) revert ApprovalQueryForNonexistentToken(); return _tokenApprovals[tokenId]; } /** * @dev See {IERC721-setApprovalForAll}. */ function setApprovalForAll(address operator, bool approved) public virtual override { if (operator == _msgSender()) revert ApproveToCaller(); _operatorApprovals[_msgSender()][operator] = approved; emit ApprovalForAll(_msgSender(), operator, approved); } /** * @dev See {IERC721-isApprovedForAll}. */ function isApprovedForAll(address owner, address operator) public view virtual override returns (bool) { return _operatorApprovals[owner][operator]; } /** * @dev See {IERC721-transferFrom}. */ function transferFrom( address from, address to, uint256 tokenId ) public virtual override { _transfer(from, to, tokenId); } /** * @dev See {IERC721-safeTransferFrom}. */ function safeTransferFrom( address from, address to, uint256 tokenId ) public virtual override { safeTransferFrom(from, to, tokenId, ''); } /** * @dev See {IERC721-safeTransferFrom}. */ function safeTransferFrom( address from, address to, uint256 tokenId, bytes memory _data ) public virtual override { _transfer(from, to, tokenId); if (to.isContract() && !_checkContractOnERC721Received(from, to, tokenId, _data)) { revert TransferToNonERC721ReceiverImplementer(); } } /** * @dev Returns whether `tokenId` exists. * * Tokens can be managed by their owner or approved accounts via {approve} or {setApprovalForAll}. * * Tokens start existing when they are minted (`_mint`), */ function _exists(uint256 tokenId) internal view returns (bool) { return _startTokenId() <= tokenId && tokenId < _currentIndex && !_ownerships[tokenId].burned; } function _safeMint(address to, uint256 quantity) internal { _safeMint(to, quantity, ''); } /** * @dev Safely mints `quantity` tokens and transfers them to `to`. * * Requirements: * * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called for each safe transfer. * - `quantity` must be greater than 0. * * Emits a {Transfer} event. */ function _safeMint( address to, uint256 quantity, bytes memory _data ) internal { _mint(to, quantity, _data, true); } /** * @dev Mints `quantity` tokens and transfers them to `to`. * * Requirements: * * - `to` cannot be the zero address. * - `quantity` must be greater than 0. * * Emits a {Transfer} event. */ function _mint( address to, uint256 quantity, bytes memory _data, bool safe ) internal { uint256 startTokenId = _currentIndex; if (to == address(0)) revert MintToZeroAddress(); if (quantity == 0) revert MintZeroQuantity(); _beforeTokenTransfers(address(0), to, startTokenId, quantity); // Overflows are incredibly unrealistic. // balance or numberMinted overflow if current value of either + quantity > 1.8e19 (2**64) - 1 // updatedIndex overflows if _currentIndex + quantity > 1.2e77 (2**256) - 1 unchecked { _addressData[to].balance += uint64(quantity); _addressData[to].numberMinted += uint64(quantity); _ownerships[startTokenId].addr = to; _ownerships[startTokenId].startTimestamp = uint64(block.timestamp); uint256 updatedIndex = startTokenId; uint256 end = updatedIndex + quantity; if (safe && to.isContract()) { do { emit Transfer(address(0), to, updatedIndex); if (!_checkContractOnERC721Received(address(0), to, updatedIndex++, _data)) { revert TransferToNonERC721ReceiverImplementer(); } } while (updatedIndex != end); // Reentrancy protection if (_currentIndex != startTokenId) revert(); } else { do { emit Transfer(address(0), to, updatedIndex++); } while (updatedIndex != end); } _currentIndex = updatedIndex; } _afterTokenTransfers(address(0), to, startTokenId, quantity); } /** * @dev Transfers `tokenId` from `from` to `to`. * * Requirements: * * - `to` cannot be the zero address. * - `tokenId` token must be owned by `from`. * * Emits a {Transfer} event. */ function _transfer( address from, address to, uint256 tokenId ) private { TokenOwnership memory prevOwnership = _ownershipOf(tokenId); if (prevOwnership.addr != from) revert TransferFromIncorrectOwner(); bool isApprovedOrOwner = (_msgSender() == from || isApprovedForAll(from, _msgSender()) || getApproved(tokenId) == _msgSender()); if (!isApprovedOrOwner) revert TransferCallerNotOwnerNorApproved(); if (to == address(0)) revert TransferToZeroAddress(); _beforeTokenTransfers(from, to, tokenId, 1); // Clear approvals from the previous owner _approve(address(0), tokenId, from); // Underflow of the sender's balance is impossible because we check for // ownership above and the recipient's balance can't realistically overflow. // Counter overflow is incredibly unrealistic as tokenId would have to be 2**256. unchecked { _addressData[from].balance -= 1; _addressData[to].balance += 1; TokenOwnership storage currSlot = _ownerships[tokenId]; currSlot.addr = to; currSlot.startTimestamp = uint64(block.timestamp); // If the ownership slot of tokenId+1 is not explicitly set, that means the transfer initiator owns it. // Set the slot of tokenId+1 explicitly in storage to maintain correctness for ownerOf(tokenId+1) calls. uint256 nextTokenId = tokenId + 1; TokenOwnership storage nextSlot = _ownerships[nextTokenId]; if (nextSlot.addr == address(0)) { // This will suffice for checking _exists(nextTokenId), // as a burned slot cannot contain the zero address. if (nextTokenId != _currentIndex) { nextSlot.addr = from; nextSlot.startTimestamp = prevOwnership.startTimestamp; } } } emit Transfer(from, to, tokenId); _afterTokenTransfers(from, to, tokenId, 1); } /** * @dev This is equivalent to _burn(tokenId, false) */ function _burn(uint256 tokenId) internal virtual { _burn(tokenId, false); } /** * @dev Destroys `tokenId`. * The approval is cleared when the token is burned. * * Requirements: * * - `tokenId` must exist. * * Emits a {Transfer} event. */ function _burn(uint256 tokenId, bool approvalCheck) internal virtual { TokenOwnership memory prevOwnership = _ownershipOf(tokenId); address from = prevOwnership.addr; if (approvalCheck) { bool isApprovedOrOwner = (_msgSender() == from || isApprovedForAll(from, _msgSender()) || getApproved(tokenId) == _msgSender()); if (!isApprovedOrOwner) revert TransferCallerNotOwnerNorApproved(); } _beforeTokenTransfers(from, address(0), tokenId, 1); // Clear approvals from the previous owner _approve(address(0), tokenId, from); // Underflow of the sender's balance is impossible because we check for // ownership above and the recipient's balance can't realistically overflow. // Counter overflow is incredibly unrealistic as tokenId would have to be 2**256. unchecked { AddressData storage addressData = _addressData[from]; addressData.balance -= 1; addressData.numberBurned += 1; // Keep track of who burned the token, and the timestamp of burning. TokenOwnership storage currSlot = _ownerships[tokenId]; currSlot.addr = from; currSlot.startTimestamp = uint64(block.timestamp); currSlot.burned = true; // If the ownership slot of tokenId+1 is not explicitly set, that means the burn initiator owns it. // Set the slot of tokenId+1 explicitly in storage to maintain correctness for ownerOf(tokenId+1) calls. uint256 nextTokenId = tokenId + 1; TokenOwnership storage nextSlot = _ownerships[nextTokenId]; if (nextSlot.addr == address(0)) { // This will suffice for checking _exists(nextTokenId), // as a burned slot cannot contain the zero address. if (nextTokenId != _currentIndex) { nextSlot.addr = from; nextSlot.startTimestamp = prevOwnership.startTimestamp; } } } emit Transfer(from, address(0), tokenId); _afterTokenTransfers(from, address(0), tokenId, 1); // Overflow not possible, as _burnCounter cannot be exceed _currentIndex times. unchecked { _burnCounter++; } } /** * @dev Approve `to` to operate on `tokenId` * * Emits a {Approval} event. */ function _approve( address to, uint256 tokenId, address owner ) private { _tokenApprovals[tokenId] = to; emit Approval(owner, to, tokenId); } /** * @dev Internal function to invoke {IERC721Receiver-onERC721Received} on a target contract. * * @param from address representing the previous owner of the given token ID * @param to target address that will receive the tokens * @param tokenId uint256 ID of the token to be transferred * @param _data bytes optional data to send along with the call * @return bool whether the call correctly returned the expected magic value */ function _checkContractOnERC721Received( address from, address to, uint256 tokenId, bytes memory _data ) private returns (bool) { try IERC721ReceiverUpgradeable(to).onERC721Received(_msgSender(), from, tokenId, _data) returns (bytes4 retval) { return retval == IERC721ReceiverUpgradeable(to).onERC721Received.selector; } catch (bytes memory reason) { if (reason.length == 0) { revert TransferToNonERC721ReceiverImplementer(); } else { assembly { revert(add(32, reason), mload(reason)) } } } } /** * @dev Hook that is called before a set of serially-ordered token ids are about to be transferred. This includes minting. * And also called before burning one token. * * startTokenId - the first token id to be transferred * quantity - the amount to be transferred * * Calling conditions: * * - When `from` and `to` are both non-zero, `from`'s `tokenId` will be * transferred to `to`. * - When `from` is zero, `tokenId` will be minted for `to`. * - When `to` is zero, `tokenId` will be burned by `from`. * - `from` and `to` are never both zero. */ function _beforeTokenTransfers( address from, address to, uint256 startTokenId, uint256 quantity ) internal virtual {} /** * @dev Hook that is called after a set of serially-ordered token ids have been transferred. This includes * minting. * And also called after one token has been burned. * * startTokenId - the first token id to be transferred * quantity - the amount to be transferred * * Calling conditions: * * - When `from` and `to` are both non-zero, `from`'s `tokenId` has been * transferred to `to`. * - When `from` is zero, `tokenId` has been minted for `to`. * - When `to` is zero, `tokenId` has been burned by `from`. * - `from` and `to` are never both zero. */ function _afterTokenTransfers( address from, address to, uint256 startTokenId, uint256 quantity ) internal virtual {} /** * @dev This empty reserved space is put in place to allow future versions to add new * variables without shifting down storage in the inheritance chain. * See https://docs.openzeppelin.com/contracts/4.x/upgradeable#storage_gaps */ uint256[42] private __gap; }
// SPDX-License-Identifier: UNLICENSED pragma solidity ^0.8.14; /* * ,_, * (',') * {/"\} * -"-"- */ import "@openzeppelin/contracts-upgradeable/access/OwnableUpgradeable.sol"; // import "@openzeppelin/contracts/access/Ownable.sol"; import "./IERC721x.sol"; abstract contract LockRegistry is OwnableUpgradeable, IERC721x { mapping(address => bool) public override approvedContract; mapping(uint256 => uint256) public override lockCount; mapping(uint256 => mapping(uint256 => address)) public override lockMap; mapping(uint256 => mapping(address => uint256)) public override lockMapIndex; event TokenLocked( uint256 indexed tokenId, address indexed approvedContract ); event TokenUnlocked( uint256 indexed tokenId, address indexed approvedContract ); function __LockRegistry_init() internal onlyInitializing { OwnableUpgradeable.__Ownable_init(); } function isUnlocked(uint256 _id) public view override returns (bool) { return lockCount[_id] == 0; } function updateApprovedContracts( address[] calldata _contracts, bool[] calldata _values ) external onlyOwner { require(_contracts.length == _values.length, "!length"); for (uint256 i = 0; i < _contracts.length; i++) approvedContract[_contracts[i]] = _values[i]; } function _lockId(uint256 _id) internal { require(approvedContract[msg.sender], "Cannot update map"); require( lockMapIndex[_id][msg.sender] == 0, "ID already locked by caller" ); uint256 count = lockCount[_id] + 1; lockMap[_id][count] = msg.sender; lockMapIndex[_id][msg.sender] = count; lockCount[_id]++; emit TokenLocked(_id, msg.sender); } function _unlockId(uint256 _id) internal { require(approvedContract[msg.sender], "Cannot update map"); uint256 index = lockMapIndex[_id][msg.sender]; require(index != 0, "ID not locked by caller"); uint256 last = lockCount[_id]; if (index != last) { address lastContract = lockMap[_id][last]; lockMap[_id][index] = lastContract; lockMap[_id][last] = address(0); lockMapIndex[_id][lastContract] = index; } else lockMap[_id][index] = address(0); lockMapIndex[_id][msg.sender] = 0; lockCount[_id]--; emit TokenUnlocked(_id, msg.sender); } function _freeId(uint256 _id, address _contract) internal { require(!approvedContract[_contract], "Cannot update map"); uint256 index = lockMapIndex[_id][_contract]; require(index != 0, "ID not locked"); uint256 last = lockCount[_id]; if (index != last) { address lastContract = lockMap[_id][last]; lockMap[_id][index] = lastContract; lockMap[_id][last] = address(0); lockMapIndex[_id][lastContract] = index; } else lockMap[_id][index] = address(0); lockMapIndex[_id][_contract] = 0; lockCount[_id]--; emit TokenUnlocked(_id, _contract); } }
// SPDX-License-Identifier: UNLICENSED pragma solidity ^0.8.14; interface IERC721x { /** * @dev Returns if the token is locked (non-transferrable) or not. */ function isUnlocked(uint256 _id) external view returns (bool); /** * @dev Returns the amount of locks on the token. */ function lockCount(uint256 _tokenId) external view returns (uint256); /** * @dev Returns if a contract is allowed to lock/unlock tokens. */ function approvedContract(address _contract) external view returns (bool); /** * @dev Returns the contract that locked a token at a specific index in the mapping. */ function lockMap(uint256 _tokenId, uint256 _index) external view returns (address); /** * @dev Returns the mapping index of a contract that locked a token. */ function lockMapIndex(uint256 _tokenId, address _contract) external view returns (uint256); /** * @dev Locks a token, preventing it from being transferrable */ function lockId(uint256 _id) external; /** * @dev Unlocks a token. */ function unlockId(uint256 _id) external; /** * @dev Unlocks a token from a given contract if the contract is no longer approved. */ function freeId(uint256 _id, address _contract) external; }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.6.0) (token/ERC721/IERC721.sol) pragma solidity ^0.8.0; import "../../utils/introspection/IERC165Upgradeable.sol"; /** * @dev Required interface of an ERC721 compliant contract. */ interface IERC721Upgradeable is IERC165Upgradeable { /** * @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 be have been allowed to move this token by either {approve} or {setApprovalForAll}. * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */ function safeTransferFrom( address from, address to, uint256 tokenId ) external; /** * @dev Transfers `tokenId` token from `from` to `to`. * * WARNING: Usage of this method is discouraged, use {safeTransferFrom} whenever possible. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must be owned by `from`. * - If the caller is not `from`, it must be approved to move this token by either {approve} or {setApprovalForAll}. * * Emits a {Transfer} event. */ function transferFrom( address from, address to, uint256 tokenId ) external; /** * @dev Gives permission to `to` to transfer `tokenId` token to another account. * The approval is cleared when the token is transferred. * * Only a single account can be approved at a time, so approving the zero address clears previous approvals. * * Requirements: * * - The caller must own the token or be an approved operator. * - `tokenId` must exist. * * Emits an {Approval} event. */ function approve(address to, uint256 tokenId) external; /** * @dev Approve or remove `operator` as an operator for the caller. * Operators can call {transferFrom} or {safeTransferFrom} for any token owned by the caller. * * Requirements: * * - The `operator` cannot be the caller. * * Emits an {ApprovalForAll} event. */ function setApprovalForAll(address operator, bool _approved) external; /** * @dev Returns the account approved for `tokenId` token. * * Requirements: * * - `tokenId` must exist. */ function getApproved(uint256 tokenId) external view returns (address operator); /** * @dev Returns if the `operator` is allowed to manage all of the assets of `owner`. * * See {setApprovalForAll} */ function isApprovedForAll(address owner, address operator) external view returns (bool); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.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 IERC721ReceiverUpgradeable { /** * @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 v4.4.1 (token/ERC721/extensions/IERC721Metadata.sol) pragma solidity ^0.8.0; import "../IERC721Upgradeable.sol"; /** * @title ERC-721 Non-Fungible Token Standard, optional metadata extension * @dev See https://eips.ethereum.org/EIPS/eip-721 */ interface IERC721MetadataUpgradeable is IERC721Upgradeable { /** * @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 v4.4.1 (utils/Context.sol) pragma solidity ^0.8.0; import "../proxy/utils/Initializable.sol"; /** * @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 ContextUpgradeable is Initializable { function __Context_init() internal onlyInitializing { } function __Context_init_unchained() internal onlyInitializing { } function _msgSender() internal view virtual returns (address) { return msg.sender; } function _msgData() internal view virtual returns (bytes calldata) { return msg.data; } /** * @dev This empty reserved space is put in place to allow future versions to add new * variables without shifting down storage in the inheritance chain. * See https://docs.openzeppelin.com/contracts/4.x/upgradeable#storage_gaps */ uint256[50] private __gap; }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/Strings.sol) pragma solidity ^0.8.0; /** * @dev String operations. */ library StringsUpgradeable { bytes16 private constant _HEX_SYMBOLS = "0123456789abcdef"; /** * @dev Converts a `uint256` to its ASCII `string` decimal representation. */ function toString(uint256 value) internal pure returns (string memory) { // Inspired by OraclizeAPI's implementation - MIT licence // https://github.com/oraclize/ethereum-api/blob/b42146b063c7d6ee1358846c198246239e9360e8/oraclizeAPI_0.4.25.sol if (value == 0) { return "0"; } uint256 temp = value; uint256 digits; while (temp != 0) { digits++; temp /= 10; } bytes memory buffer = new bytes(digits); while (value != 0) { digits -= 1; buffer[digits] = bytes1(uint8(48 + uint256(value % 10))); value /= 10; } return string(buffer); } /** * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation. */ function toHexString(uint256 value) internal pure returns (string memory) { if (value == 0) { return "0x00"; } uint256 temp = value; uint256 length = 0; while (temp != 0) { length++; temp >>= 8; } return toHexString(value, length); } /** * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation with fixed length. */ function toHexString(uint256 value, uint256 length) internal pure returns (string memory) { bytes memory buffer = new bytes(2 * length + 2); buffer[0] = "0"; buffer[1] = "x"; for (uint256 i = 2 * length + 1; i > 1; --i) { buffer[i] = _HEX_SYMBOLS[value & 0xf]; value >>= 4; } require(value == 0, "Strings: hex length insufficient"); return string(buffer); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/introspection/ERC165.sol) pragma solidity ^0.8.0; import "./IERC165Upgradeable.sol"; import "../../proxy/utils/Initializable.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 ERC165Upgradeable is Initializable, IERC165Upgradeable { function __ERC165_init() internal onlyInitializing { } function __ERC165_init_unchained() internal onlyInitializing { } /** * @dev See {IERC165-supportsInterface}. */ function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) { return interfaceId == type(IERC165Upgradeable).interfaceId; } /** * @dev This empty reserved space is put in place to allow future versions to add new * variables without shifting down storage in the inheritance chain. * See https://docs.openzeppelin.com/contracts/4.x/upgradeable#storage_gaps */ uint256[50] private __gap; }
// 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 IERC165Upgradeable { /** * @dev Returns true if this contract implements the interface defined by * `interfaceId`. See the corresponding * https://eips.ethereum.org/EIPS/eip-165#how-interfaces-are-identified[EIP section] * to learn more about how these ids are created. * * This function call must use less than 30 000 gas. */ function supportsInterface(bytes4 interfaceId) external view returns (bool); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (access/Ownable.sol) pragma solidity ^0.8.0; import "../utils/ContextUpgradeable.sol"; import "../proxy/utils/Initializable.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 OwnableUpgradeable is Initializable, ContextUpgradeable { address private _owner; event OwnershipTransferred(address indexed previousOwner, address indexed newOwner); /** * @dev Initializes the contract setting the deployer as the initial owner. */ function __Ownable_init() internal onlyInitializing { __Ownable_init_unchained(); } function __Ownable_init_unchained() internal onlyInitializing { _transferOwnership(_msgSender()); } /** * @dev Returns the address of the current owner. */ function owner() public view virtual returns (address) { return _owner; } /** * @dev Throws if called by any account other than the owner. */ modifier onlyOwner() { require(owner() == _msgSender(), "Ownable: caller is not the owner"); _; } /** * @dev Leaves the contract without owner. It will not be possible to call * `onlyOwner` functions anymore. Can only be called by the current owner. * * NOTE: Renouncing ownership will leave the contract without an owner, * thereby removing any functionality that is only available to the owner. */ function renounceOwnership() public virtual onlyOwner { _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); } /** * @dev This empty reserved space is put in place to allow future versions to add new * variables without shifting down storage in the inheritance chain. * See https://docs.openzeppelin.com/contracts/4.x/upgradeable#storage_gaps */ uint256[49] private __gap; }
{ "optimizer": { "enabled": true, "runs": 200 }, "outputSelection": { "*": { "*": [ "evm.bytecode", "evm.deployedBytecode", "devdoc", "userdoc", "metadata", "abi" ] } }, "libraries": {} }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"inputs":[],"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":"TransferCallerNotOwnerNorApproved","type":"error"},{"inputs":[],"name":"TransferFromIncorrectOwner","type":"error"},{"inputs":[],"name":"TransferToNonERC721ReceiverImplementer","type":"error"},{"inputs":[],"name":"TransferToZeroAddress","type":"error"},{"inputs":[],"name":"URIQueryForNonexistentToken","type":"error"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"approved","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":false,"internalType":"bool","name":"approved","type":"bool"}],"name":"ApprovalForAll","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint8","name":"version","type":"uint8"}],"name":"Initialized","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"tokenId","type":"uint256"},{"indexed":false,"internalType":"address","name":"by","type":"address"},{"indexed":false,"internalType":"uint256","name":"stakedAt","type":"uint256"}],"name":"Stake","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"},{"indexed":true,"internalType":"address","name":"approvedContract","type":"address"}],"name":"TokenLocked","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"},{"indexed":true,"internalType":"address","name":"approvedContract","type":"address"}],"name":"TokenUnlocked","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Transfer","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"tokenId","type":"uint256"},{"indexed":false,"internalType":"address","name":"by","type":"address"},{"indexed":false,"internalType":"uint256","name":"stakedAt","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"unstakedAt","type":"uint256"}],"name":"Unstake","type":"event"},{"inputs":[],"name":"MAX_SUPPLY","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"MAX_TOKENS_MINTED_PER_ADDRESS","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"approve","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"approvedContract","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"baseTokenURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"maxSupplyNew","type":"uint256"}],"name":"burnSupply","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"canStake","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32","name":"hash","type":"bytes32"},{"internalType":"bytes","name":"signature","type":"bytes"},{"internalType":"uint256","name":"validUntil","type":"uint256"}],"name":"checkMintValidity","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_id","type":"uint256"},{"internalType":"address","name":"_contract","type":"address"}],"name":"freeId","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getApproved","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address[]","name":"receivers","type":"address[]"}],"name":"giveaway","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address[]","name":"receivers","type":"address[]"},{"internalType":"uint256[]","name":"amounts","type":"uint256[]"}],"name":"giveawayWithAmounts","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_signer","type":"address"},{"internalType":"string","name":"baseURI","type":"string"}],"name":"initialize","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":[{"internalType":"uint256","name":"_id","type":"uint256"}],"name":"isUnlocked","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"lockCount","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_id","type":"uint256"}],"name":"lockId","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"},{"internalType":"uint256","name":"","type":"uint256"}],"name":"lockMap","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"},{"internalType":"address","name":"","type":"address"}],"name":"lockMapIndex","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32","name":"hash","type":"bytes32"},{"internalType":"bytes","name":"signature","type":"bytes"},{"internalType":"uint256","name":"validUntil","type":"uint256"}],"name":"mint","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"mintStartAfter","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"ownerOf","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"bytes","name":"_data","type":"bytes"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"operator","type":"address"},{"internalType":"bool","name":"approved","type":"bool"}],"name":"setApprovalForAll","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"baseURI","type":"string"}],"name":"setBaseURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bool","name":"b","type":"bool"}],"name":"setCanStake","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"m","type":"uint256"}],"name":"setMaxTokensMintedPerAddress","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"timestamp","type":"uint256"}],"name":"setMintStartAfter","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"addr","type":"address"}],"name":"setSigner","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"_tokenURIOverride","type":"string"}],"name":"setTokenURIOverride","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"_tokenURISuffix","type":"string"}],"name":"setTokenURISuffix","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256[]","name":"tokenIds","type":"uint256[]"},{"internalType":"bool","name":"setStake","type":"bool"}],"name":"setTokensStakeStatus","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"stake","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes4","name":"_interfaceId","type":"bytes4"}],"name":"supportsInterface","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_tokenId","type":"uint256"}],"name":"tokenURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"tokenURIOverride","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"tokenURISuffix","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"tokensLastStakedAt","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"tokensLevel","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"tokensMintedPerAddress","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"tokensOfOwner","outputs":[{"internalType":"uint256[]","name":"","type":"uint256[]"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"transferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_id","type":"uint256"}],"name":"unlockId","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"unstake","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address[]","name":"_contracts","type":"address[]"},{"internalType":"bool[]","name":"_values","type":"bool[]"}],"name":"updateApprovedContracts","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"withdrawAll","outputs":[],"stateMutability":"nonpayable","type":"function"}]
Contract Creation Code
608060405234801561001057600080fd5b50613c82806100206000396000f3fe608060405234801561001057600080fd5b50600436106103425760003560e01c80637c735d44116101b8578063b1a6505f11610104578063dbbc853b116100a2578063e985e9c51161007c578063e985e9c51461076c578063f2fde38b146107a8578063f399e22e146107bb578063f90a82c8146107ce57600080fd5b8063dbbc853b1461073e578063e24b903514610746578063e88671801461075957600080fd5b8063c87b56dd116100de578063c87b56dd14610708578063d547cfb71461071b578063d595c33114610723578063d76b47cb1461073657600080fd5b8063b1a6505f146106c8578063b88d4fde146106eb578063c0ef40d9146106fe57600080fd5b80639cdee69511610171578063a694fc3a1161014b578063a694fc3a1461067c578063a9852bfb1461068f578063ac3e274a146106a2578063ac52e644146106b557600080fd5b80639cdee695146106485780639ed278091461065b578063a22cb4651461066957600080fd5b80637c735d44146105d35780638462151c146105f4578063853828b6146106145780638da5cb5b1461061c57806394d216d61461062d57806395d89b411461064057600080fd5b806335b504c5116102925780636343e0a2116102305780636c19e7831161020a5780636c19e7831461058457806370a0823114610597578063715018a6146105aa57806372abc8b7146105b257600080fd5b80636343e0a21461053e5780636352211e14610551578063650b00f61461056457600080fd5b80634d23259f1161026c5780634d23259f146104ed57806353ece040146104f757806355f804b314610518578063631c1c5a1461052b57600080fd5b806335b504c5146104a657806340a9c8df146104c757806342842e0e146104da57600080fd5b80631d4c64d2116102ff57806328d46df0116102d957806328d46df0146104425780632cba8123146104555780632e17de781461048957806332cb6b0c1461049c57600080fd5b80631d4c64d21461040957806323b872dd1461041c5780632799cde01461042f57600080fd5b806301ffc9a71461034757806306fdde031461036f578063081812fc1461038457806309308e5d146103af578063095ea7b3146103e857806318160ddd146103fd575b600080fd5b61035a6103553660046131e6565b6107e1565b60405190151581526020015b60405180910390f35b61037761080c565b604051610366919061325b565b61039761039236600461326e565b61089e565b6040516001600160a01b039091168152602001610366565b6103da6103bd36600461329e565b60cc60209081526000928352604080842090915290825290205481565b604051908152602001610366565b6103fb6103f63660046132ca565b6108e2565b005b606654606554036103da565b6103fb61041736600461342a565b61096f565b6103fb61042a36600461348d565b610aae565b6103fb61043d36600461326e565b610b16565b6103fb6104503660046134c9565b610b47565b6103976104633660046134fd565b60cb6020908152600092835260408084209091529082529020546001600160a01b031681565b6103fb61049736600461326e565b610c05565b6103da6101025481565b6103da6104b436600461326e565b6101086020526000908152604090205481565b6103fb6104d536600461326e565b610cfc565b6103fb6104e836600461348d565b610d2a565b6103da6101045481565b6103da61050536600461326e565b6101096020526000908152604090205481565b6103fb61052636600461358e565b610d45565b6103fb6105393660046135c2565b610d82565b6103fb61054c36600461358e565b610f0d565b61039761055f36600461326e565b610f4b565b6103da61057236600461326e565b60ca6020526000908152604090205481565b6103fb610592366004613611565b610f5d565b6103da6105a5366004613611565b610faa565b6103fb610ff8565b61035a6105c036600461326e565b600090815260ca60205260409020541590565b6103da6105e1366004613611565b6101076020526000908152604090205481565b610607610602366004613611565b61102e565b604051610366919061362c565b6103fb611157565b6097546001600160a01b0316610397565b6103fb61063b36600461329e565b6111ea565b610377611219565b6103fb61065636600461326e565b611228565b6101055461035a9060ff1681565b6103fb610677366004613680565b611258565b6103fb61068a36600461326e565b6112ed565b6103fb61069d36600461358e565b611428565b61035a6106b03660046135c2565b611466565b6103fb6106c33660046136ee565b6115b2565b61035a6106d6366004613611565b60c96020526000908152604090205460ff1681565b6103fb6106f9366004613759565b6116b3565b6103da6101035481565b61037761071636600461326e565b61171c565b6103776117fc565b6103fb61073136600461326e565b61188a565b6103776119be565b6103776119cc565b6103fb61075436600461326e565b6119da565b6103fb6107673660046137c0565b611a0a565b61035a61077a3660046137db565b6001600160a01b039182166000908152606c6020908152604080832093909416825291909152205460ff1690565b6103fb6107b6366004613611565b611a48565b6103fb6107c9366004613805565b611ae0565b6103fb6107dc366004613848565b611be9565b60006001600160e01b0319821663706e848960e01b1480610806575061080682611c43565b92915050565b60606067805461081b9061388c565b80601f01602080910402602001604051908101604052809291908181526020018280546108479061388c565b80156108945780601f1061086957610100808354040283529160200191610894565b820191906000526020600020905b81548152906001019060200180831161087757829003601f168201915b5050505050905090565b60006108a982611c93565b6108c6576040516333d1c03960e21b815260040160405180910390fd5b506000908152606b60205260409020546001600160a01b031690565b60006108ed82610f4b565b9050806001600160a01b0316836001600160a01b0316036109215760405163250fdee360e21b815260040160405180910390fd5b336001600160a01b03821614801590610941575061093f813361077a565b155b1561095f576040516367d9dca160e11b815260040160405180910390fd5b61096a838383611cbf565b505050565b6097546001600160a01b031633146109a25760405162461bcd60e51b8152600401610999906138c6565b60405180910390fd5b6001825110156109ea5760405162461bcd60e51b815260206004820152601360248201527230ba103632b0b9ba1018903932b1b2b4bb32b960691b6044820152606401610999565b8051825114610a4e5760405162461bcd60e51b815260206004820152602a60248201527f7265636569766572732e6c656e677468206d75737420657175616c20616d6f756044820152690dce8e65cd8cadccee8d60b31b6064820152608401610999565b60005b825181101561096a576000838281518110610a6e57610a6e6138fb565b60200260200101519050610a9b81848481518110610a8e57610a8e6138fb565b6020026020010151611d1b565b5080610aa681613927565b915050610a51565b6000818152610108602052604090205415610b0b5760405162461bcd60e51b815260206004820152601c60248201527f43616e6e6f74207472616e73666572207374616b656420746f6b656e000000006044820152606401610999565b61096a838383611d83565b610b1f81611c93565b610b3b5760405162461bcd60e51b815260040161099990613940565b610b4481611ddc565b50565b6097546001600160a01b03163314610b715760405162461bcd60e51b8152600401610999906138c6565b600181511015610bb95760405162461bcd60e51b815260206004820152601360248201527230ba103632b0b9ba1018903932b1b2b4bb32b960691b6044820152606401610999565b60005b8151811015610c01576000828281518110610bd957610bd96138fb565b60200260200101519050610bee816001611d1b565b5080610bf981613927565b915050610bbc565b5050565b610c0e81610f4b565b6001600160a01b0316336001600160a01b03161480610c3757506097546001600160a01b031633145b610c535760405162461bcd60e51b815260040161099990613966565b60008181526101086020526040902054610c9d5760405162461bcd60e51b815260206004820152600b60248201526a6e6f74207374616b696e6760a81b6044820152606401610999565b600081815261010860209081526040808320805493905580518481523392810192909252428282015260608201839052517fc1e00202ee2c06861d326fc6374026b751863ff64218ccbaa38c3e603a8e72c29181900360800190a15050565b610d0581611c93565b610d215760405162461bcd60e51b815260040161099990613940565b610b4481611f1c565b61096a838383604051806020016040528060008152506116b3565b6097546001600160a01b03163314610d6f5760405162461bcd60e51b8152600401610999906138c6565b8051610c019060ff906020840190613137565b600061010454118015610d985750610104544210155b610dd75760405162461bcd60e51b815260206004820152601060248201526f1b5a5b9d081b9bdd081cdd185c9d195960821b6044820152606401610999565b80421115610e115760405162461bcd60e51b8152602060048201526007602482015266195e1c1a5c995960ca1b6044820152606401610999565b610e1c838383611466565b610e525760405162461bcd60e51b81526020600482015260076024820152661a5b9d985b1a5960ca1b6044820152606401610999565b3360009081526101076020526040812054610e6e9060016139b5565b905061010354811115610ee95760405162461bcd60e51b815260206004820152603b60248201527f746f6b656e734d696e7465645065724164647265737320657863656564204d4160448201527f585f544f4b454e535f4d494e5445445f5045525f4144445245535300000000006064820152608401610999565b33600081815261010760205260409020829055610f07906001611d1b565b50505050565b6097546001600160a01b03163314610f375760405162461bcd60e51b8152600401610999906138c6565b8051610c0190610106906020840190613137565b6000610f56826120bc565b5192915050565b6097546001600160a01b03163314610f875760405162461bcd60e51b8152600401610999906138c6565b61010180546001600160a01b0319166001600160a01b0392909216919091179055565b60006001600160a01b038216610fd3576040516323d3ad8160e21b815260040160405180910390fd5b506001600160a01b03166000908152606a60205260409020546001600160401b031690565b6097546001600160a01b031633146110225760405162461bcd60e51b8152600401610999906138c6565b61102c60006121d6565b565b6060600061103b83610faa565b6001600160401b03811115611052576110526132f4565b60405190808252806020026020018201604052801561107b578160200160208202803683370190505b50606554909150600080805b8381101561114c57600081815260696020908152604091829020825160608101845290546001600160a01b0381168252600160a01b81046001600160401b031692820192909252600160e01b90910460ff1615801592820192909252906110ee5750611144565b80516001600160a01b03161561110357805192505b876001600160a01b0316836001600160a01b0316036111425781868580600101965081518110611135576111356138fb565b6020026020010181815250505b505b600101611087565b509295945050505050565b6097546001600160a01b031633146111815760405162461bcd60e51b8152600401610999906138c6565b47806111cf5760405162461bcd60e51b815260206004820152601c60248201527f7468657265206973206e6f7468696e6720746f207769746864726177000000006044820152606401610999565b610b446111e46097546001600160a01b031690565b47612228565b6111f382611c93565b61120f5760405162461bcd60e51b815260040161099990613940565b610c0182826122c0565b60606068805461081b9061388c565b6097546001600160a01b031633146112525760405162461bcd60e51b8152600401610999906138c6565b61010355565b336001600160a01b038316036112815760405163b06307db60e01b815260040160405180910390fd5b336000818152606c602090815260408083206001600160a01b03871680855290835292819020805460ff191686151590811790915590519081529192917f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a35050565b6101055460ff166113335760405162461bcd60e51b815260206004820152601060248201526f39ba30b5b4b733903737ba1037b832b760811b6044820152606401610999565b61133c81610f4b565b6001600160a01b0316336001600160a01b0316148061136557506097546001600160a01b031633145b6113815760405162461bcd60e51b815260040161099990613966565b60008181526101086020526040902054156113d05760405162461bcd60e51b815260206004820152600f60248201526e616c7265616479207374616b696e6760881b6044820152606401610999565b600081815261010860209081526040918290204290819055825184815233928101929092528183015290517f02567b2553aeb44e4ddd5d68462774dc3de158cb0f2c2da1740e729b22086aff9181900360600190a150565b6097546001600160a01b031633146114525760405162461bcd60e51b8152600401610999906138c6565b8051610c0190610100906020840190613137565b6040516bffffffffffffffffffffffff193360601b16602082015264616c6c6f7760d81b603482015260398101829052600090849061150b90605901604051602081830303815290604052805190602001206040517f19457468657265756d205369676e6564204d6573736167653a0a3332000000006020820152603c8101829052600090605c01604051602081830303815290604052805190602001209050919050565b146115475760405162461bcd60e51b815260206004820152600c60248201526b0d2dcecc2d8d2c840d0c2e6d60a31b6044820152606401610999565b610101546001600160a01b031661155e8585612476565b6001600160a01b0316146115a85760405162461bcd60e51b8152602060048201526011602482015270696e76616c6964207369676e617475726560781b6044820152606401610999565b5060019392505050565b6097546001600160a01b031633146115dc5760405162461bcd60e51b8152600401610999906138c6565b8281146116155760405162461bcd60e51b8152602060048201526007602482015266042d8cadccee8d60cb1b6044820152606401610999565b60005b838110156116ac57828282818110611632576116326138fb565b905060200201602081019061164791906137c0565b60c9600087878581811061165d5761165d6138fb565b90506020020160208101906116729190613611565b6001600160a01b031681526020810191909152604001600020805460ff1916911515919091179055806116a481613927565b915050611618565b5050505050565b60008281526101086020526040902054156117105760405162461bcd60e51b815260206004820152601c60248201527f43616e6e6f74207472616e73666572207374616b656420746f6b656e000000006044820152606401610999565b610f078484848461249a565b60606000610106805461172e9061388c565b905011156117c95761010680546117449061388c565b80601f01602080910402602001604051908101604052809291908181526020018280546117709061388c565b80156117bd5780601f10611792576101008083540402835291602001916117bd565b820191906000526020600020905b8154815290600101906020018083116117a057829003601f168201915b50505050509050919050565b6117d2826124f4565b6101006040516020016117e69291906139cd565b6040516020818303038152906040529050919050565b60ff80546118099061388c565b80601f01602080910402602001604051908101604052809291908181526020018280546118359061388c565b80156118825780601f1061185757610100808354040283529160200191611882565b820191906000526020600020905b81548152906001019060200180831161186557829003601f168201915b505050505081565b6097546001600160a01b031633146118b45760405162461bcd60e51b8152600401610999906138c6565b600081116119045760405162461bcd60e51b815260206004820152601960248201527f6e6577206d617820737570706c792073686f756c64203e2030000000000000006044820152606401610999565b6101025481106119565760405162461bcd60e51b815260206004820152601a60248201527f63616e206f6e6c7920726564756365206d617820737570706c790000000000006044820152606401610999565b606654606554038110156119b85760405162461bcd60e51b8152602060048201526024808201527f63616e6e6f74206275726e206d6f7265207468616e2063757272656e7420737560448201526370706c7960e01b6064820152608401610999565b61010255565b61010680546118099061388c565b61010080546118099061388c565b6097546001600160a01b03163314611a045760405162461bcd60e51b8152600401610999906138c6565b61010455565b6097546001600160a01b03163314611a345760405162461bcd60e51b8152600401610999906138c6565b610105805460ff1916911515919091179055565b6097546001600160a01b03163314611a725760405162461bcd60e51b8152600401610999906138c6565b6001600160a01b038116611ad75760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401610999565b610b44816121d6565b6000611aec6001612578565b90508015611b04576000805461ff0019166101001790555b611b0c612605565b611b14612634565b611b5c604051806040016040528060078152602001662837ba30ba37bd60c91b815250604051806040016040528060078152602001662837ba30ba37bd60c91b815250612663565b8151611b6f9060ff906020850190613137565b5061010180546001600160a01b0319166001600160a01b03851617905561270f61010255600161010355600061010455801561096a576000805461ff0019169055604051600181527f7f26b83ff96e1f2b6a682f133852f6798a09c465da95921460cefb38474024989060200160405180910390a1505050565b60005b825181101561096a576000838281518110611c0957611c096138fb565b602002602001015190508215611c2757611c22816112ed565b611c30565b611c3081610c05565b5080611c3b81613927565b915050611bec565b60006001600160e01b031982166380ac58cd60e01b1480611c7457506001600160e01b03198216635b5e139f60e01b145b8061080657506301ffc9a760e01b6001600160e01b0319831614610806565b600060655482108015610806575050600090815260696020526040902054600160e01b900460ff161590565b6000828152606b602052604080822080546001600160a01b0319166001600160a01b0387811691821790925591518593918516917f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92591a4505050565b6101025481611d2d6066546065540390565b611d3791906139b5565b1115611d795760405162461bcd60e51b8152602060048201526011602482015270657863656564204d41585f535550504c5960781b6044820152606401610999565b610c01828261269c565b600081815260ca602052604090205415611dd15760405162461bcd60e51b815260206004820152600f60248201526e151bdad95b881a5cc81b1bd8dad959608a1b6044820152606401610999565b61096a8383836126b6565b33600090815260c9602052604090205460ff16611e0b5760405162461bcd60e51b815260040161099990613a7d565b600081815260cc6020908152604080832033845290915290205415611e725760405162461bcd60e51b815260206004820152601b60248201527f494420616c7265616479206c6f636b65642062792063616c6c657200000000006044820152606401610999565b600081815260ca6020526040812054611e8c9060016139b5565b600083815260cb60209081526040808320848452825280832080546001600160a01b0319163390811790915586845260cc8352818420908452825280832084905585835260ca9091528120805492935090611ee683613927565b9091555050604051339083907f9ecfd70e9ff36df72989324a49559383d39f9290d700b10cf5ac10dcb68d264390600090a35050565b33600090815260c9602052604090205460ff16611f4b5760405162461bcd60e51b815260040161099990613a7d565b600081815260cc6020908152604080832033845290915281205490819003611fb55760405162461bcd60e51b815260206004820152601760248201527f4944206e6f74206c6f636b65642062792063616c6c65720000000000000000006044820152606401610999565b600082815260ca602052604090205481811461202b57600083815260cb602090815260408083208484528252808320805486855282852080546001600160a01b03199081166001600160a01b0390931692831790915582541690915586845260cc83528184209084529091529020829055612053565b600083815260cb60209081526040808320858452909152902080546001600160a01b03191690555b600083815260cc60209081526040808320338452825280832083905585835260ca909152812080549161208583613aa8565b9091555050604051339084907f0fe7d9801197f79ef3b1595d19379eb58f0fff5f98b0f6d6f34c03cae5306c3790600090a3505050565b6040805160608101825260008082526020820181905291810191909152816065548110156121bd57600081815260696020908152604091829020825160608101845290546001600160a01b0381168252600160a01b81046001600160401b031692820192909252600160e01b90910460ff161515918101829052906121bb5780516001600160a01b031615612152579392505050565b5060001901600081815260696020908152604091829020825160608101845290546001600160a01b038116808352600160a01b82046001600160401b031693830193909352600160e01b900460ff16151592810192909252156121b6579392505050565b612152565b505b604051636f96cda160e11b815260040160405180910390fd5b609780546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b6000826001600160a01b03168260405160006040518083038185875af1925050503d8060008114612275576040519150601f19603f3d011682016040523d82523d6000602084013e61227a565b606091505b505090508061096a5760405162461bcd60e51b8152602060048201526012602482015271636f756c64206e6f7420776974686472617760701b6044820152606401610999565b6001600160a01b038116600090815260c9602052604090205460ff16156122f95760405162461bcd60e51b815260040161099990613a7d565b600082815260cc602090815260408083206001600160a01b03851684529091528120549081900361235c5760405162461bcd60e51b815260206004820152600d60248201526c1251081b9bdd081b1bd8dad959609a1b6044820152606401610999565b600083815260ca60205260409020548181146123d257600084815260cb602090815260408083208484528252808320805486855282852080546001600160a01b03199081166001600160a01b0390931692831790915582541690915587845260cc835281842090845290915290208290556123fa565b600084815260cb60209081526040808320858452909152902080546001600160a01b03191690555b600084815260cc602090815260408083206001600160a01b0387168452825280832083905586835260ca909152812080549161243583613aa8565b90915550506040516001600160a01b0384169085907f0fe7d9801197f79ef3b1595d19379eb58f0fff5f98b0f6d6f34c03cae5306c3790600090a350505050565b600080600061248585856126c1565b915091506124928161272f565b509392505050565b600082815260ca6020526040902054156124e85760405162461bcd60e51b815260206004820152600f60248201526e151bdad95b881a5cc81b1bd8dad959608a1b6044820152606401610999565b610f07848484846128e5565b60606124ff82611c93565b61251c57604051630a14c4b560e41b815260040160405180910390fd5b6000612526612930565b905080516000036125465760405180602001604052806000815250612571565b806125508461293f565b604051602001612561929190613abf565b6040516020818303038152906040525b9392505050565b60008054610100900460ff16156125bf578160ff16600114801561259b5750303b155b6125b75760405162461bcd60e51b815260040161099990613aee565b506000919050565b60005460ff8084169116106125e65760405162461bcd60e51b815260040161099990613aee565b506000805460ff191660ff92909216919091179055600190565b919050565b600054610100900460ff1661262c5760405162461bcd60e51b815260040161099990613b3c565b61102c612a47565b600054610100900460ff1661265b5760405162461bcd60e51b815260040161099990613b3c565b61102c612a77565b600054610100900460ff1661268a5760405162461bcd60e51b815260040161099990613b3c565b6126948282612aa5565b610c01612ad6565b610c01828260405180602001604052806000815250612b05565b61096a838383612b12565b60008082516041036126f75760208301516040840151606085015160001a6126eb87828585612cfd565b94509450505050612728565b82516040036127205760208301516040840151612715868383612dea565b935093505050612728565b506000905060025b9250929050565b600081600481111561274357612743613b87565b0361274b5750565b600181600481111561275f5761275f613b87565b036127ac5760405162461bcd60e51b815260206004820152601860248201527f45434453413a20696e76616c6964207369676e617475726500000000000000006044820152606401610999565b60028160048111156127c0576127c0613b87565b0361280d5760405162461bcd60e51b815260206004820152601f60248201527f45434453413a20696e76616c6964207369676e6174757265206c656e677468006044820152606401610999565b600381600481111561282157612821613b87565b036128795760405162461bcd60e51b815260206004820152602260248201527f45434453413a20696e76616c6964207369676e6174757265202773272076616c604482015261756560f01b6064820152608401610999565b600481600481111561288d5761288d613b87565b03610b445760405162461bcd60e51b815260206004820152602260248201527f45434453413a20696e76616c6964207369676e6174757265202776272076616c604482015261756560f01b6064820152608401610999565b6128f0848484612b12565b6001600160a01b0383163b15158015612912575061291084848484612e23565b155b15610f07576040516368d2bf6b60e11b815260040160405180910390fd5b606060ff805461081b9061388c565b6060816000036129665750506040805180820190915260018152600360fc1b602082015290565b8160005b8115612990578061297a81613927565b91506129899050600a83613bb3565b915061296a565b6000816001600160401b038111156129aa576129aa6132f4565b6040519080825280601f01601f1916602001820160405280156129d4576020820181803683370190505b5090505b8415612a3f576129e9600183613bc7565b91506129f6600a86613bde565b612a019060306139b5565b60f81b818381518110612a1657612a166138fb565b60200101906001600160f81b031916908160001a905350612a38600a86613bb3565b94506129d8565b949350505050565b600054610100900460ff16612a6e5760405162461bcd60e51b815260040161099990613b3c565b61102c336121d6565b600054610100900460ff16612a9e5760405162461bcd60e51b815260040161099990613b3c565b600160cd55565b600054610100900460ff16612acc5760405162461bcd60e51b815260040161099990613b3c565b610c018282612f0e565b600054610100900460ff16612afd5760405162461bcd60e51b815260040161099990613b3c565b61102c612605565b61096a8383836001612f66565b6000612b1d826120bc565b9050836001600160a01b031681600001516001600160a01b031614612b545760405162a1148160e81b815260040160405180910390fd5b6000336001600160a01b0386161480612b725750612b72853361077a565b80612b8d575033612b828461089e565b6001600160a01b0316145b905080612bad57604051632ce44b5f60e11b815260040160405180910390fd5b6001600160a01b038416612bd457604051633a954ecd60e21b815260040160405180910390fd5b612be060008487611cbf565b6001600160a01b038581166000908152606a60209081526040808320805467ffffffffffffffff198082166001600160401b0392831660001901831617909255898616808652838620805493841693831660019081018416949094179055898652606990945282852080546001600160e01b031916909417600160a01b42909216919091021783558701808452922080549193909116612cb4576065548214612cb457805460208601516001600160401b0316600160a01b026001600160e01b03199091166001600160a01b038a16171781555b50505082846001600160a01b0316866001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a46116ac565b6000807f7fffffffffffffffffffffffffffffff5d576e7357a4501ddfe92f46681b20a0831115612d345750600090506003612de1565b8460ff16601b14158015612d4c57508460ff16601c14155b15612d5d5750600090506004612de1565b6040805160008082526020820180845289905260ff881692820192909252606081018690526080810185905260019060a0016020604051602081039080840390855afa158015612db1573d6000803e3d6000fd5b5050604051601f1901519150506001600160a01b038116612dda57600060019250925050612de1565b9150600090505b94509492505050565b6000806001600160ff1b03831681612e0760ff86901c601b6139b5565b9050612e1587828885612cfd565b935093505050935093915050565b604051630a85bd0160e11b81526000906001600160a01b0385169063150b7a0290612e58903390899088908890600401613bf2565b6020604051808303816000875af1925050508015612e93575060408051601f3d908101601f19168201909252612e9091810190613c2f565b60015b612ef1573d808015612ec1576040519150601f19603f3d011682016040523d82523d6000602084013e612ec6565b606091505b508051600003612ee9576040516368d2bf6b60e11b815260040160405180910390fd5b805181602001fd5b6001600160e01b031916630a85bd0160e11b149050949350505050565b600054610100900460ff16612f355760405162461bcd60e51b815260040161099990613b3c565b8151612f48906067906020850190613137565b508051612f5c906068906020840190613137565b5060006065555050565b6065546001600160a01b038516612f8f57604051622e076360e81b815260040160405180910390fd5b83600003612fb05760405163b562e8dd60e01b815260040160405180910390fd5b6001600160a01b0385166000818152606a6020908152604080832080546fffffffffffffffffffffffffffffffff1981166001600160401b038083168c0181169182176801000000000000000067ffffffffffffffff1990941690921783900481168c01811690920217909155858452606990925290912080546001600160e01b031916909217600160a01b42909216919091021790558080850183801561306157506001600160a01b0387163b15155b156130e9575b60405182906001600160a01b038916906000907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a46130b26000888480600101955088612e23565b6130cf576040516368d2bf6b60e11b815260040160405180910390fd5b8082036130675782606554146130e457600080fd5b61312e565b5b6040516001830192906001600160a01b038916906000907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a48082036130ea575b506065556116ac565b8280546131439061388c565b90600052602060002090601f01602090048101928261316557600085556131ab565b82601f1061317e57805160ff19168380011785556131ab565b828001600101855582156131ab579182015b828111156131ab578251825591602001919060010190613190565b506131b79291506131bb565b5090565b5b808211156131b757600081556001016131bc565b6001600160e01b031981168114610b4457600080fd5b6000602082840312156131f857600080fd5b8135612571816131d0565b60005b8381101561321e578181015183820152602001613206565b83811115610f075750506000910152565b60008151808452613247816020860160208601613203565b601f01601f19169290920160200192915050565b602081526000612571602083018461322f565b60006020828403121561328057600080fd5b5035919050565b80356001600160a01b038116811461260057600080fd5b600080604083850312156132b157600080fd5b823591506132c160208401613287565b90509250929050565b600080604083850312156132dd57600080fd5b6132e683613287565b946020939093013593505050565b634e487b7160e01b600052604160045260246000fd5b604051601f8201601f191681016001600160401b0381118282101715613332576133326132f4565b604052919050565b60006001600160401b03821115613353576133536132f4565b5060051b60200190565b600082601f83011261336e57600080fd5b8135602061338361337e8361333a565b61330a565b82815260059290921b840181019181810190868411156133a257600080fd5b8286015b848110156133c4576133b781613287565b83529183019183016133a6565b509695505050505050565b600082601f8301126133e057600080fd5b813560206133f061337e8361333a565b82815260059290921b8401810191818101908684111561340f57600080fd5b8286015b848110156133c45780358352918301918301613413565b6000806040838503121561343d57600080fd5b82356001600160401b038082111561345457600080fd5b6134608683870161335d565b9350602085013591508082111561347657600080fd5b50613483858286016133cf565b9150509250929050565b6000806000606084860312156134a257600080fd5b6134ab84613287565b92506134b960208501613287565b9150604084013590509250925092565b6000602082840312156134db57600080fd5b81356001600160401b038111156134f157600080fd5b612a3f8482850161335d565b6000806040838503121561351057600080fd5b50508035926020909101359150565b600082601f83011261353057600080fd5b81356001600160401b03811115613549576135496132f4565b61355c601f8201601f191660200161330a565b81815284602083860101111561357157600080fd5b816020850160208301376000918101602001919091529392505050565b6000602082840312156135a057600080fd5b81356001600160401b038111156135b657600080fd5b612a3f8482850161351f565b6000806000606084860312156135d757600080fd5b8335925060208401356001600160401b038111156135f457600080fd5b6136008682870161351f565b925050604084013590509250925092565b60006020828403121561362357600080fd5b61257182613287565b6020808252825182820181905260009190848201906040850190845b8181101561366457835183529284019291840191600101613648565b50909695505050505050565b8035801515811461260057600080fd5b6000806040838503121561369357600080fd5b61369c83613287565b91506132c160208401613670565b60008083601f8401126136bc57600080fd5b5081356001600160401b038111156136d357600080fd5b6020830191508360208260051b850101111561272857600080fd5b6000806000806040858703121561370457600080fd5b84356001600160401b038082111561371b57600080fd5b613727888389016136aa565b9096509450602087013591508082111561374057600080fd5b5061374d878288016136aa565b95989497509550505050565b6000806000806080858703121561376f57600080fd5b61377885613287565b935061378660208601613287565b92506040850135915060608501356001600160401b038111156137a857600080fd5b6137b48782880161351f565b91505092959194509250565b6000602082840312156137d257600080fd5b61257182613670565b600080604083850312156137ee57600080fd5b6137f783613287565b91506132c160208401613287565b6000806040838503121561381857600080fd5b61382183613287565b915060208301356001600160401b0381111561383c57600080fd5b6134838582860161351f565b6000806040838503121561385b57600080fd5b82356001600160401b0381111561387157600080fd5b61387d858286016133cf565b9250506132c160208401613670565b600181811c908216806138a057607f821691505b6020821081036138c057634e487b7160e01b600052602260045260246000fd5b50919050565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b634e487b7160e01b600052603260045260246000fd5b634e487b7160e01b600052601160045260246000fd5b60006001820161393957613939613911565b5060010190565b6020808252600c908201526b151bdad95b8808595e1a5cdd60a21b604082015260600190565b6020808252602f908201527f63616c6c6572206d757374206265206f776e6572206f6620746f6b656e206f7260408201526e1031b7b73a3930b1ba1037bbb732b960891b606082015260800190565b600082198211156139c8576139c8613911565b500190565b6000835160206139e08285838901613203565b845491840191600090600181811c90808316806139fe57607f831692505b8583108103613a1b57634e487b7160e01b85526022600452602485fd5b808015613a2f5760018114613a4057613a6d565b60ff19851688528388019550613a6d565b60008b81526020902060005b85811015613a655781548a820152908401908801613a4c565b505083880195505b50939a9950505050505050505050565b602080825260119082015270043616e6e6f7420757064617465206d617607c1b604082015260600190565b600081613ab757613ab7613911565b506000190190565b60008351613ad1818460208801613203565b835190830190613ae5818360208801613203565b01949350505050565b6020808252602e908201527f496e697469616c697a61626c653a20636f6e747261637420697320616c72656160408201526d191e481a5b9a5d1a585b1a5e995960921b606082015260800190565b6020808252602b908201527f496e697469616c697a61626c653a20636f6e7472616374206973206e6f74206960408201526a6e697469616c697a696e6760a81b606082015260800190565b634e487b7160e01b600052602160045260246000fd5b634e487b7160e01b600052601260045260246000fd5b600082613bc257613bc2613b9d565b500490565b600082821015613bd957613bd9613911565b500390565b600082613bed57613bed613b9d565b500690565b6001600160a01b0385811682528416602082015260408101839052608060608201819052600090613c259083018461322f565b9695505050505050565b600060208284031215613c4157600080fd5b8151612571816131d056fea26469706673582212202dd76045d654fd64d2f7e09506d634f84216aa4e6704b34729117ac6fff6f9d264736f6c634300080e0033
Deployed Bytecode
0x608060405234801561001057600080fd5b50600436106103425760003560e01c80637c735d44116101b8578063b1a6505f11610104578063dbbc853b116100a2578063e985e9c51161007c578063e985e9c51461076c578063f2fde38b146107a8578063f399e22e146107bb578063f90a82c8146107ce57600080fd5b8063dbbc853b1461073e578063e24b903514610746578063e88671801461075957600080fd5b8063c87b56dd116100de578063c87b56dd14610708578063d547cfb71461071b578063d595c33114610723578063d76b47cb1461073657600080fd5b8063b1a6505f146106c8578063b88d4fde146106eb578063c0ef40d9146106fe57600080fd5b80639cdee69511610171578063a694fc3a1161014b578063a694fc3a1461067c578063a9852bfb1461068f578063ac3e274a146106a2578063ac52e644146106b557600080fd5b80639cdee695146106485780639ed278091461065b578063a22cb4651461066957600080fd5b80637c735d44146105d35780638462151c146105f4578063853828b6146106145780638da5cb5b1461061c57806394d216d61461062d57806395d89b411461064057600080fd5b806335b504c5116102925780636343e0a2116102305780636c19e7831161020a5780636c19e7831461058457806370a0823114610597578063715018a6146105aa57806372abc8b7146105b257600080fd5b80636343e0a21461053e5780636352211e14610551578063650b00f61461056457600080fd5b80634d23259f1161026c5780634d23259f146104ed57806353ece040146104f757806355f804b314610518578063631c1c5a1461052b57600080fd5b806335b504c5146104a657806340a9c8df146104c757806342842e0e146104da57600080fd5b80631d4c64d2116102ff57806328d46df0116102d957806328d46df0146104425780632cba8123146104555780632e17de781461048957806332cb6b0c1461049c57600080fd5b80631d4c64d21461040957806323b872dd1461041c5780632799cde01461042f57600080fd5b806301ffc9a71461034757806306fdde031461036f578063081812fc1461038457806309308e5d146103af578063095ea7b3146103e857806318160ddd146103fd575b600080fd5b61035a6103553660046131e6565b6107e1565b60405190151581526020015b60405180910390f35b61037761080c565b604051610366919061325b565b61039761039236600461326e565b61089e565b6040516001600160a01b039091168152602001610366565b6103da6103bd36600461329e565b60cc60209081526000928352604080842090915290825290205481565b604051908152602001610366565b6103fb6103f63660046132ca565b6108e2565b005b606654606554036103da565b6103fb61041736600461342a565b61096f565b6103fb61042a36600461348d565b610aae565b6103fb61043d36600461326e565b610b16565b6103fb6104503660046134c9565b610b47565b6103976104633660046134fd565b60cb6020908152600092835260408084209091529082529020546001600160a01b031681565b6103fb61049736600461326e565b610c05565b6103da6101025481565b6103da6104b436600461326e565b6101086020526000908152604090205481565b6103fb6104d536600461326e565b610cfc565b6103fb6104e836600461348d565b610d2a565b6103da6101045481565b6103da61050536600461326e565b6101096020526000908152604090205481565b6103fb61052636600461358e565b610d45565b6103fb6105393660046135c2565b610d82565b6103fb61054c36600461358e565b610f0d565b61039761055f36600461326e565b610f4b565b6103da61057236600461326e565b60ca6020526000908152604090205481565b6103fb610592366004613611565b610f5d565b6103da6105a5366004613611565b610faa565b6103fb610ff8565b61035a6105c036600461326e565b600090815260ca60205260409020541590565b6103da6105e1366004613611565b6101076020526000908152604090205481565b610607610602366004613611565b61102e565b604051610366919061362c565b6103fb611157565b6097546001600160a01b0316610397565b6103fb61063b36600461329e565b6111ea565b610377611219565b6103fb61065636600461326e565b611228565b6101055461035a9060ff1681565b6103fb610677366004613680565b611258565b6103fb61068a36600461326e565b6112ed565b6103fb61069d36600461358e565b611428565b61035a6106b03660046135c2565b611466565b6103fb6106c33660046136ee565b6115b2565b61035a6106d6366004613611565b60c96020526000908152604090205460ff1681565b6103fb6106f9366004613759565b6116b3565b6103da6101035481565b61037761071636600461326e565b61171c565b6103776117fc565b6103fb61073136600461326e565b61188a565b6103776119be565b6103776119cc565b6103fb61075436600461326e565b6119da565b6103fb6107673660046137c0565b611a0a565b61035a61077a3660046137db565b6001600160a01b039182166000908152606c6020908152604080832093909416825291909152205460ff1690565b6103fb6107b6366004613611565b611a48565b6103fb6107c9366004613805565b611ae0565b6103fb6107dc366004613848565b611be9565b60006001600160e01b0319821663706e848960e01b1480610806575061080682611c43565b92915050565b60606067805461081b9061388c565b80601f01602080910402602001604051908101604052809291908181526020018280546108479061388c565b80156108945780601f1061086957610100808354040283529160200191610894565b820191906000526020600020905b81548152906001019060200180831161087757829003601f168201915b5050505050905090565b60006108a982611c93565b6108c6576040516333d1c03960e21b815260040160405180910390fd5b506000908152606b60205260409020546001600160a01b031690565b60006108ed82610f4b565b9050806001600160a01b0316836001600160a01b0316036109215760405163250fdee360e21b815260040160405180910390fd5b336001600160a01b03821614801590610941575061093f813361077a565b155b1561095f576040516367d9dca160e11b815260040160405180910390fd5b61096a838383611cbf565b505050565b6097546001600160a01b031633146109a25760405162461bcd60e51b8152600401610999906138c6565b60405180910390fd5b6001825110156109ea5760405162461bcd60e51b815260206004820152601360248201527230ba103632b0b9ba1018903932b1b2b4bb32b960691b6044820152606401610999565b8051825114610a4e5760405162461bcd60e51b815260206004820152602a60248201527f7265636569766572732e6c656e677468206d75737420657175616c20616d6f756044820152690dce8e65cd8cadccee8d60b31b6064820152608401610999565b60005b825181101561096a576000838281518110610a6e57610a6e6138fb565b60200260200101519050610a9b81848481518110610a8e57610a8e6138fb565b6020026020010151611d1b565b5080610aa681613927565b915050610a51565b6000818152610108602052604090205415610b0b5760405162461bcd60e51b815260206004820152601c60248201527f43616e6e6f74207472616e73666572207374616b656420746f6b656e000000006044820152606401610999565b61096a838383611d83565b610b1f81611c93565b610b3b5760405162461bcd60e51b815260040161099990613940565b610b4481611ddc565b50565b6097546001600160a01b03163314610b715760405162461bcd60e51b8152600401610999906138c6565b600181511015610bb95760405162461bcd60e51b815260206004820152601360248201527230ba103632b0b9ba1018903932b1b2b4bb32b960691b6044820152606401610999565b60005b8151811015610c01576000828281518110610bd957610bd96138fb565b60200260200101519050610bee816001611d1b565b5080610bf981613927565b915050610bbc565b5050565b610c0e81610f4b565b6001600160a01b0316336001600160a01b03161480610c3757506097546001600160a01b031633145b610c535760405162461bcd60e51b815260040161099990613966565b60008181526101086020526040902054610c9d5760405162461bcd60e51b815260206004820152600b60248201526a6e6f74207374616b696e6760a81b6044820152606401610999565b600081815261010860209081526040808320805493905580518481523392810192909252428282015260608201839052517fc1e00202ee2c06861d326fc6374026b751863ff64218ccbaa38c3e603a8e72c29181900360800190a15050565b610d0581611c93565b610d215760405162461bcd60e51b815260040161099990613940565b610b4481611f1c565b61096a838383604051806020016040528060008152506116b3565b6097546001600160a01b03163314610d6f5760405162461bcd60e51b8152600401610999906138c6565b8051610c019060ff906020840190613137565b600061010454118015610d985750610104544210155b610dd75760405162461bcd60e51b815260206004820152601060248201526f1b5a5b9d081b9bdd081cdd185c9d195960821b6044820152606401610999565b80421115610e115760405162461bcd60e51b8152602060048201526007602482015266195e1c1a5c995960ca1b6044820152606401610999565b610e1c838383611466565b610e525760405162461bcd60e51b81526020600482015260076024820152661a5b9d985b1a5960ca1b6044820152606401610999565b3360009081526101076020526040812054610e6e9060016139b5565b905061010354811115610ee95760405162461bcd60e51b815260206004820152603b60248201527f746f6b656e734d696e7465645065724164647265737320657863656564204d4160448201527f585f544f4b454e535f4d494e5445445f5045525f4144445245535300000000006064820152608401610999565b33600081815261010760205260409020829055610f07906001611d1b565b50505050565b6097546001600160a01b03163314610f375760405162461bcd60e51b8152600401610999906138c6565b8051610c0190610106906020840190613137565b6000610f56826120bc565b5192915050565b6097546001600160a01b03163314610f875760405162461bcd60e51b8152600401610999906138c6565b61010180546001600160a01b0319166001600160a01b0392909216919091179055565b60006001600160a01b038216610fd3576040516323d3ad8160e21b815260040160405180910390fd5b506001600160a01b03166000908152606a60205260409020546001600160401b031690565b6097546001600160a01b031633146110225760405162461bcd60e51b8152600401610999906138c6565b61102c60006121d6565b565b6060600061103b83610faa565b6001600160401b03811115611052576110526132f4565b60405190808252806020026020018201604052801561107b578160200160208202803683370190505b50606554909150600080805b8381101561114c57600081815260696020908152604091829020825160608101845290546001600160a01b0381168252600160a01b81046001600160401b031692820192909252600160e01b90910460ff1615801592820192909252906110ee5750611144565b80516001600160a01b03161561110357805192505b876001600160a01b0316836001600160a01b0316036111425781868580600101965081518110611135576111356138fb565b6020026020010181815250505b505b600101611087565b509295945050505050565b6097546001600160a01b031633146111815760405162461bcd60e51b8152600401610999906138c6565b47806111cf5760405162461bcd60e51b815260206004820152601c60248201527f7468657265206973206e6f7468696e6720746f207769746864726177000000006044820152606401610999565b610b446111e46097546001600160a01b031690565b47612228565b6111f382611c93565b61120f5760405162461bcd60e51b815260040161099990613940565b610c0182826122c0565b60606068805461081b9061388c565b6097546001600160a01b031633146112525760405162461bcd60e51b8152600401610999906138c6565b61010355565b336001600160a01b038316036112815760405163b06307db60e01b815260040160405180910390fd5b336000818152606c602090815260408083206001600160a01b03871680855290835292819020805460ff191686151590811790915590519081529192917f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a35050565b6101055460ff166113335760405162461bcd60e51b815260206004820152601060248201526f39ba30b5b4b733903737ba1037b832b760811b6044820152606401610999565b61133c81610f4b565b6001600160a01b0316336001600160a01b0316148061136557506097546001600160a01b031633145b6113815760405162461bcd60e51b815260040161099990613966565b60008181526101086020526040902054156113d05760405162461bcd60e51b815260206004820152600f60248201526e616c7265616479207374616b696e6760881b6044820152606401610999565b600081815261010860209081526040918290204290819055825184815233928101929092528183015290517f02567b2553aeb44e4ddd5d68462774dc3de158cb0f2c2da1740e729b22086aff9181900360600190a150565b6097546001600160a01b031633146114525760405162461bcd60e51b8152600401610999906138c6565b8051610c0190610100906020840190613137565b6040516bffffffffffffffffffffffff193360601b16602082015264616c6c6f7760d81b603482015260398101829052600090849061150b90605901604051602081830303815290604052805190602001206040517f19457468657265756d205369676e6564204d6573736167653a0a3332000000006020820152603c8101829052600090605c01604051602081830303815290604052805190602001209050919050565b146115475760405162461bcd60e51b815260206004820152600c60248201526b0d2dcecc2d8d2c840d0c2e6d60a31b6044820152606401610999565b610101546001600160a01b031661155e8585612476565b6001600160a01b0316146115a85760405162461bcd60e51b8152602060048201526011602482015270696e76616c6964207369676e617475726560781b6044820152606401610999565b5060019392505050565b6097546001600160a01b031633146115dc5760405162461bcd60e51b8152600401610999906138c6565b8281146116155760405162461bcd60e51b8152602060048201526007602482015266042d8cadccee8d60cb1b6044820152606401610999565b60005b838110156116ac57828282818110611632576116326138fb565b905060200201602081019061164791906137c0565b60c9600087878581811061165d5761165d6138fb565b90506020020160208101906116729190613611565b6001600160a01b031681526020810191909152604001600020805460ff1916911515919091179055806116a481613927565b915050611618565b5050505050565b60008281526101086020526040902054156117105760405162461bcd60e51b815260206004820152601c60248201527f43616e6e6f74207472616e73666572207374616b656420746f6b656e000000006044820152606401610999565b610f078484848461249a565b60606000610106805461172e9061388c565b905011156117c95761010680546117449061388c565b80601f01602080910402602001604051908101604052809291908181526020018280546117709061388c565b80156117bd5780601f10611792576101008083540402835291602001916117bd565b820191906000526020600020905b8154815290600101906020018083116117a057829003601f168201915b50505050509050919050565b6117d2826124f4565b6101006040516020016117e69291906139cd565b6040516020818303038152906040529050919050565b60ff80546118099061388c565b80601f01602080910402602001604051908101604052809291908181526020018280546118359061388c565b80156118825780601f1061185757610100808354040283529160200191611882565b820191906000526020600020905b81548152906001019060200180831161186557829003601f168201915b505050505081565b6097546001600160a01b031633146118b45760405162461bcd60e51b8152600401610999906138c6565b600081116119045760405162461bcd60e51b815260206004820152601960248201527f6e6577206d617820737570706c792073686f756c64203e2030000000000000006044820152606401610999565b6101025481106119565760405162461bcd60e51b815260206004820152601a60248201527f63616e206f6e6c7920726564756365206d617820737570706c790000000000006044820152606401610999565b606654606554038110156119b85760405162461bcd60e51b8152602060048201526024808201527f63616e6e6f74206275726e206d6f7265207468616e2063757272656e7420737560448201526370706c7960e01b6064820152608401610999565b61010255565b61010680546118099061388c565b61010080546118099061388c565b6097546001600160a01b03163314611a045760405162461bcd60e51b8152600401610999906138c6565b61010455565b6097546001600160a01b03163314611a345760405162461bcd60e51b8152600401610999906138c6565b610105805460ff1916911515919091179055565b6097546001600160a01b03163314611a725760405162461bcd60e51b8152600401610999906138c6565b6001600160a01b038116611ad75760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401610999565b610b44816121d6565b6000611aec6001612578565b90508015611b04576000805461ff0019166101001790555b611b0c612605565b611b14612634565b611b5c604051806040016040528060078152602001662837ba30ba37bd60c91b815250604051806040016040528060078152602001662837ba30ba37bd60c91b815250612663565b8151611b6f9060ff906020850190613137565b5061010180546001600160a01b0319166001600160a01b03851617905561270f61010255600161010355600061010455801561096a576000805461ff0019169055604051600181527f7f26b83ff96e1f2b6a682f133852f6798a09c465da95921460cefb38474024989060200160405180910390a1505050565b60005b825181101561096a576000838281518110611c0957611c096138fb565b602002602001015190508215611c2757611c22816112ed565b611c30565b611c3081610c05565b5080611c3b81613927565b915050611bec565b60006001600160e01b031982166380ac58cd60e01b1480611c7457506001600160e01b03198216635b5e139f60e01b145b8061080657506301ffc9a760e01b6001600160e01b0319831614610806565b600060655482108015610806575050600090815260696020526040902054600160e01b900460ff161590565b6000828152606b602052604080822080546001600160a01b0319166001600160a01b0387811691821790925591518593918516917f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92591a4505050565b6101025481611d2d6066546065540390565b611d3791906139b5565b1115611d795760405162461bcd60e51b8152602060048201526011602482015270657863656564204d41585f535550504c5960781b6044820152606401610999565b610c01828261269c565b600081815260ca602052604090205415611dd15760405162461bcd60e51b815260206004820152600f60248201526e151bdad95b881a5cc81b1bd8dad959608a1b6044820152606401610999565b61096a8383836126b6565b33600090815260c9602052604090205460ff16611e0b5760405162461bcd60e51b815260040161099990613a7d565b600081815260cc6020908152604080832033845290915290205415611e725760405162461bcd60e51b815260206004820152601b60248201527f494420616c7265616479206c6f636b65642062792063616c6c657200000000006044820152606401610999565b600081815260ca6020526040812054611e8c9060016139b5565b600083815260cb60209081526040808320848452825280832080546001600160a01b0319163390811790915586845260cc8352818420908452825280832084905585835260ca9091528120805492935090611ee683613927565b9091555050604051339083907f9ecfd70e9ff36df72989324a49559383d39f9290d700b10cf5ac10dcb68d264390600090a35050565b33600090815260c9602052604090205460ff16611f4b5760405162461bcd60e51b815260040161099990613a7d565b600081815260cc6020908152604080832033845290915281205490819003611fb55760405162461bcd60e51b815260206004820152601760248201527f4944206e6f74206c6f636b65642062792063616c6c65720000000000000000006044820152606401610999565b600082815260ca602052604090205481811461202b57600083815260cb602090815260408083208484528252808320805486855282852080546001600160a01b03199081166001600160a01b0390931692831790915582541690915586845260cc83528184209084529091529020829055612053565b600083815260cb60209081526040808320858452909152902080546001600160a01b03191690555b600083815260cc60209081526040808320338452825280832083905585835260ca909152812080549161208583613aa8565b9091555050604051339084907f0fe7d9801197f79ef3b1595d19379eb58f0fff5f98b0f6d6f34c03cae5306c3790600090a3505050565b6040805160608101825260008082526020820181905291810191909152816065548110156121bd57600081815260696020908152604091829020825160608101845290546001600160a01b0381168252600160a01b81046001600160401b031692820192909252600160e01b90910460ff161515918101829052906121bb5780516001600160a01b031615612152579392505050565b5060001901600081815260696020908152604091829020825160608101845290546001600160a01b038116808352600160a01b82046001600160401b031693830193909352600160e01b900460ff16151592810192909252156121b6579392505050565b612152565b505b604051636f96cda160e11b815260040160405180910390fd5b609780546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b6000826001600160a01b03168260405160006040518083038185875af1925050503d8060008114612275576040519150601f19603f3d011682016040523d82523d6000602084013e61227a565b606091505b505090508061096a5760405162461bcd60e51b8152602060048201526012602482015271636f756c64206e6f7420776974686472617760701b6044820152606401610999565b6001600160a01b038116600090815260c9602052604090205460ff16156122f95760405162461bcd60e51b815260040161099990613a7d565b600082815260cc602090815260408083206001600160a01b03851684529091528120549081900361235c5760405162461bcd60e51b815260206004820152600d60248201526c1251081b9bdd081b1bd8dad959609a1b6044820152606401610999565b600083815260ca60205260409020548181146123d257600084815260cb602090815260408083208484528252808320805486855282852080546001600160a01b03199081166001600160a01b0390931692831790915582541690915587845260cc835281842090845290915290208290556123fa565b600084815260cb60209081526040808320858452909152902080546001600160a01b03191690555b600084815260cc602090815260408083206001600160a01b0387168452825280832083905586835260ca909152812080549161243583613aa8565b90915550506040516001600160a01b0384169085907f0fe7d9801197f79ef3b1595d19379eb58f0fff5f98b0f6d6f34c03cae5306c3790600090a350505050565b600080600061248585856126c1565b915091506124928161272f565b509392505050565b600082815260ca6020526040902054156124e85760405162461bcd60e51b815260206004820152600f60248201526e151bdad95b881a5cc81b1bd8dad959608a1b6044820152606401610999565b610f07848484846128e5565b60606124ff82611c93565b61251c57604051630a14c4b560e41b815260040160405180910390fd5b6000612526612930565b905080516000036125465760405180602001604052806000815250612571565b806125508461293f565b604051602001612561929190613abf565b6040516020818303038152906040525b9392505050565b60008054610100900460ff16156125bf578160ff16600114801561259b5750303b155b6125b75760405162461bcd60e51b815260040161099990613aee565b506000919050565b60005460ff8084169116106125e65760405162461bcd60e51b815260040161099990613aee565b506000805460ff191660ff92909216919091179055600190565b919050565b600054610100900460ff1661262c5760405162461bcd60e51b815260040161099990613b3c565b61102c612a47565b600054610100900460ff1661265b5760405162461bcd60e51b815260040161099990613b3c565b61102c612a77565b600054610100900460ff1661268a5760405162461bcd60e51b815260040161099990613b3c565b6126948282612aa5565b610c01612ad6565b610c01828260405180602001604052806000815250612b05565b61096a838383612b12565b60008082516041036126f75760208301516040840151606085015160001a6126eb87828585612cfd565b94509450505050612728565b82516040036127205760208301516040840151612715868383612dea565b935093505050612728565b506000905060025b9250929050565b600081600481111561274357612743613b87565b0361274b5750565b600181600481111561275f5761275f613b87565b036127ac5760405162461bcd60e51b815260206004820152601860248201527f45434453413a20696e76616c6964207369676e617475726500000000000000006044820152606401610999565b60028160048111156127c0576127c0613b87565b0361280d5760405162461bcd60e51b815260206004820152601f60248201527f45434453413a20696e76616c6964207369676e6174757265206c656e677468006044820152606401610999565b600381600481111561282157612821613b87565b036128795760405162461bcd60e51b815260206004820152602260248201527f45434453413a20696e76616c6964207369676e6174757265202773272076616c604482015261756560f01b6064820152608401610999565b600481600481111561288d5761288d613b87565b03610b445760405162461bcd60e51b815260206004820152602260248201527f45434453413a20696e76616c6964207369676e6174757265202776272076616c604482015261756560f01b6064820152608401610999565b6128f0848484612b12565b6001600160a01b0383163b15158015612912575061291084848484612e23565b155b15610f07576040516368d2bf6b60e11b815260040160405180910390fd5b606060ff805461081b9061388c565b6060816000036129665750506040805180820190915260018152600360fc1b602082015290565b8160005b8115612990578061297a81613927565b91506129899050600a83613bb3565b915061296a565b6000816001600160401b038111156129aa576129aa6132f4565b6040519080825280601f01601f1916602001820160405280156129d4576020820181803683370190505b5090505b8415612a3f576129e9600183613bc7565b91506129f6600a86613bde565b612a019060306139b5565b60f81b818381518110612a1657612a166138fb565b60200101906001600160f81b031916908160001a905350612a38600a86613bb3565b94506129d8565b949350505050565b600054610100900460ff16612a6e5760405162461bcd60e51b815260040161099990613b3c565b61102c336121d6565b600054610100900460ff16612a9e5760405162461bcd60e51b815260040161099990613b3c565b600160cd55565b600054610100900460ff16612acc5760405162461bcd60e51b815260040161099990613b3c565b610c018282612f0e565b600054610100900460ff16612afd5760405162461bcd60e51b815260040161099990613b3c565b61102c612605565b61096a8383836001612f66565b6000612b1d826120bc565b9050836001600160a01b031681600001516001600160a01b031614612b545760405162a1148160e81b815260040160405180910390fd5b6000336001600160a01b0386161480612b725750612b72853361077a565b80612b8d575033612b828461089e565b6001600160a01b0316145b905080612bad57604051632ce44b5f60e11b815260040160405180910390fd5b6001600160a01b038416612bd457604051633a954ecd60e21b815260040160405180910390fd5b612be060008487611cbf565b6001600160a01b038581166000908152606a60209081526040808320805467ffffffffffffffff198082166001600160401b0392831660001901831617909255898616808652838620805493841693831660019081018416949094179055898652606990945282852080546001600160e01b031916909417600160a01b42909216919091021783558701808452922080549193909116612cb4576065548214612cb457805460208601516001600160401b0316600160a01b026001600160e01b03199091166001600160a01b038a16171781555b50505082846001600160a01b0316866001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a46116ac565b6000807f7fffffffffffffffffffffffffffffff5d576e7357a4501ddfe92f46681b20a0831115612d345750600090506003612de1565b8460ff16601b14158015612d4c57508460ff16601c14155b15612d5d5750600090506004612de1565b6040805160008082526020820180845289905260ff881692820192909252606081018690526080810185905260019060a0016020604051602081039080840390855afa158015612db1573d6000803e3d6000fd5b5050604051601f1901519150506001600160a01b038116612dda57600060019250925050612de1565b9150600090505b94509492505050565b6000806001600160ff1b03831681612e0760ff86901c601b6139b5565b9050612e1587828885612cfd565b935093505050935093915050565b604051630a85bd0160e11b81526000906001600160a01b0385169063150b7a0290612e58903390899088908890600401613bf2565b6020604051808303816000875af1925050508015612e93575060408051601f3d908101601f19168201909252612e9091810190613c2f565b60015b612ef1573d808015612ec1576040519150601f19603f3d011682016040523d82523d6000602084013e612ec6565b606091505b508051600003612ee9576040516368d2bf6b60e11b815260040160405180910390fd5b805181602001fd5b6001600160e01b031916630a85bd0160e11b149050949350505050565b600054610100900460ff16612f355760405162461bcd60e51b815260040161099990613b3c565b8151612f48906067906020850190613137565b508051612f5c906068906020840190613137565b5060006065555050565b6065546001600160a01b038516612f8f57604051622e076360e81b815260040160405180910390fd5b83600003612fb05760405163b562e8dd60e01b815260040160405180910390fd5b6001600160a01b0385166000818152606a6020908152604080832080546fffffffffffffffffffffffffffffffff1981166001600160401b038083168c0181169182176801000000000000000067ffffffffffffffff1990941690921783900481168c01811690920217909155858452606990925290912080546001600160e01b031916909217600160a01b42909216919091021790558080850183801561306157506001600160a01b0387163b15155b156130e9575b60405182906001600160a01b038916906000907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a46130b26000888480600101955088612e23565b6130cf576040516368d2bf6b60e11b815260040160405180910390fd5b8082036130675782606554146130e457600080fd5b61312e565b5b6040516001830192906001600160a01b038916906000907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a48082036130ea575b506065556116ac565b8280546131439061388c565b90600052602060002090601f01602090048101928261316557600085556131ab565b82601f1061317e57805160ff19168380011785556131ab565b828001600101855582156131ab579182015b828111156131ab578251825591602001919060010190613190565b506131b79291506131bb565b5090565b5b808211156131b757600081556001016131bc565b6001600160e01b031981168114610b4457600080fd5b6000602082840312156131f857600080fd5b8135612571816131d0565b60005b8381101561321e578181015183820152602001613206565b83811115610f075750506000910152565b60008151808452613247816020860160208601613203565b601f01601f19169290920160200192915050565b602081526000612571602083018461322f565b60006020828403121561328057600080fd5b5035919050565b80356001600160a01b038116811461260057600080fd5b600080604083850312156132b157600080fd5b823591506132c160208401613287565b90509250929050565b600080604083850312156132dd57600080fd5b6132e683613287565b946020939093013593505050565b634e487b7160e01b600052604160045260246000fd5b604051601f8201601f191681016001600160401b0381118282101715613332576133326132f4565b604052919050565b60006001600160401b03821115613353576133536132f4565b5060051b60200190565b600082601f83011261336e57600080fd5b8135602061338361337e8361333a565b61330a565b82815260059290921b840181019181810190868411156133a257600080fd5b8286015b848110156133c4576133b781613287565b83529183019183016133a6565b509695505050505050565b600082601f8301126133e057600080fd5b813560206133f061337e8361333a565b82815260059290921b8401810191818101908684111561340f57600080fd5b8286015b848110156133c45780358352918301918301613413565b6000806040838503121561343d57600080fd5b82356001600160401b038082111561345457600080fd5b6134608683870161335d565b9350602085013591508082111561347657600080fd5b50613483858286016133cf565b9150509250929050565b6000806000606084860312156134a257600080fd5b6134ab84613287565b92506134b960208501613287565b9150604084013590509250925092565b6000602082840312156134db57600080fd5b81356001600160401b038111156134f157600080fd5b612a3f8482850161335d565b6000806040838503121561351057600080fd5b50508035926020909101359150565b600082601f83011261353057600080fd5b81356001600160401b03811115613549576135496132f4565b61355c601f8201601f191660200161330a565b81815284602083860101111561357157600080fd5b816020850160208301376000918101602001919091529392505050565b6000602082840312156135a057600080fd5b81356001600160401b038111156135b657600080fd5b612a3f8482850161351f565b6000806000606084860312156135d757600080fd5b8335925060208401356001600160401b038111156135f457600080fd5b6136008682870161351f565b925050604084013590509250925092565b60006020828403121561362357600080fd5b61257182613287565b6020808252825182820181905260009190848201906040850190845b8181101561366457835183529284019291840191600101613648565b50909695505050505050565b8035801515811461260057600080fd5b6000806040838503121561369357600080fd5b61369c83613287565b91506132c160208401613670565b60008083601f8401126136bc57600080fd5b5081356001600160401b038111156136d357600080fd5b6020830191508360208260051b850101111561272857600080fd5b6000806000806040858703121561370457600080fd5b84356001600160401b038082111561371b57600080fd5b613727888389016136aa565b9096509450602087013591508082111561374057600080fd5b5061374d878288016136aa565b95989497509550505050565b6000806000806080858703121561376f57600080fd5b61377885613287565b935061378660208601613287565b92506040850135915060608501356001600160401b038111156137a857600080fd5b6137b48782880161351f565b91505092959194509250565b6000602082840312156137d257600080fd5b61257182613670565b600080604083850312156137ee57600080fd5b6137f783613287565b91506132c160208401613287565b6000806040838503121561381857600080fd5b61382183613287565b915060208301356001600160401b0381111561383c57600080fd5b6134838582860161351f565b6000806040838503121561385b57600080fd5b82356001600160401b0381111561387157600080fd5b61387d858286016133cf565b9250506132c160208401613670565b600181811c908216806138a057607f821691505b6020821081036138c057634e487b7160e01b600052602260045260246000fd5b50919050565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b634e487b7160e01b600052603260045260246000fd5b634e487b7160e01b600052601160045260246000fd5b60006001820161393957613939613911565b5060010190565b6020808252600c908201526b151bdad95b8808595e1a5cdd60a21b604082015260600190565b6020808252602f908201527f63616c6c6572206d757374206265206f776e6572206f6620746f6b656e206f7260408201526e1031b7b73a3930b1ba1037bbb732b960891b606082015260800190565b600082198211156139c8576139c8613911565b500190565b6000835160206139e08285838901613203565b845491840191600090600181811c90808316806139fe57607f831692505b8583108103613a1b57634e487b7160e01b85526022600452602485fd5b808015613a2f5760018114613a4057613a6d565b60ff19851688528388019550613a6d565b60008b81526020902060005b85811015613a655781548a820152908401908801613a4c565b505083880195505b50939a9950505050505050505050565b602080825260119082015270043616e6e6f7420757064617465206d617607c1b604082015260600190565b600081613ab757613ab7613911565b506000190190565b60008351613ad1818460208801613203565b835190830190613ae5818360208801613203565b01949350505050565b6020808252602e908201527f496e697469616c697a61626c653a20636f6e747261637420697320616c72656160408201526d191e481a5b9a5d1a585b1a5e995960921b606082015260800190565b6020808252602b908201527f496e697469616c697a61626c653a20636f6e7472616374206973206e6f74206960408201526a6e697469616c697a696e6760a81b606082015260800190565b634e487b7160e01b600052602160045260246000fd5b634e487b7160e01b600052601260045260246000fd5b600082613bc257613bc2613b9d565b500490565b600082821015613bd957613bd9613911565b500390565b600082613bed57613bed613b9d565b500690565b6001600160a01b0385811682528416602082015260408101839052608060608201819052600090613c259083018461322f565b9695505050505050565b600060208284031215613c4157600080fd5b8151612571816131d056fea26469706673582212202dd76045d654fd64d2f7e09506d634f84216aa4e6704b34729117ac6fff6f9d264736f6c634300080e0033
Loading...
Loading
Loading...
Loading
Multichain Portfolio | 30 Chains
Chain | Token | Portfolio % | Price | Amount | Value |
---|
Loading...
Loading
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.