ERC-721
Overview
Max Total Supply
3,888 BAOSOC
Holders
1,390
Market
Volume (24H)
N/A
Min Price (24H)
N/A
Max Price (24H)
N/A
Other Info
Token Contract
Balance
9 BAOSOCLoading...
Loading
Loading...
Loading
Loading...
Loading
# | Exchange | Pair | Price | 24H Volume | % Volume |
---|
Contract Name:
BaoSociety
Compiler Version
v0.8.13+commit.abaa5c0e
Optimization Enabled:
Yes with 100000 runs
Other Settings:
default evmVersion
Contract Source Code (Solidity Standard Json-Input format)
//SPDX-License-Identifier: MIT pragma solidity ^0.8.13; import '@openzeppelin/contracts/token/ERC20/IERC20.sol'; import '@openzeppelin/contracts/access/Ownable.sol'; import '@openzeppelin/contracts/utils/cryptography/ECDSA.sol'; import {VRFBaseMainnet as VRFBase} from './VRFBase.sol'; import './ERC721A.sol'; error PublicSaleNotActive(); error ExceedsLimit(); error SignatureExceedsLimit(); error IncorrectValue(); error InvalidSignature(); error ContractCallNotAllowed(); contract BaoSociety is ERC721A, Ownable, VRFBase { using ECDSA for bytes32; using Strings for uint256; event SaleStateUpdate(); bool public publicSaleActive; string public baseURI; string private unrevealedURI = 'ipfs://QmRuQYxmdzqfVfy8ZhZNTvXsmbN9yLnBFPDeczFvWUS2HU/'; uint256 constant MAX_SUPPLY = 3888; uint256 constant MAX_PER_WALLET = 20; uint256 constant price = 0.0888 ether; uint256 constant PURCHASE_LIMIT = 10; uint256 constant whitelistPrice = 0.0777 ether; uint256 constant WHITELIST_PURCHASE_LIMIT = 10; address public signerAddress = 0x63B14a4D433d9ed70176cF7ed1f322790F0d5F89; address public treasuryAddress = 0x69D8004d527d72eFe1a4d5eECFf4A7f38f5b2B69; constructor() ERC721A('BaoSociety', 'BAOSOC', MAX_SUPPLY, 1, MAX_PER_WALLET) {} /* ------------- External ------------- */ function mint(uint256 amount) external payable noContract { if (!publicSaleActive) revert PublicSaleNotActive(); if (PURCHASE_LIMIT < amount) revert ExceedsLimit(); if (msg.value != price * amount) revert IncorrectValue(); _mint(msg.sender, amount); } function whitelistMint( uint256 amount, uint256 limit, bytes calldata signature ) external payable noContract { if (!validSignature(signature, limit)) revert InvalidSignature(); if (WHITELIST_PURCHASE_LIMIT < limit) revert SignatureExceedsLimit(); if (msg.value != whitelistPrice * amount) revert IncorrectValue(); uint256 numMinted = numMinted(msg.sender); if (numMinted + amount > limit) revert ExceedsLimit(); _mint(msg.sender, amount); } /* ------------- Private ------------- */ function validSignature(bytes memory signature, uint256 limit) private view returns (bool) { bytes32 msgHash = keccak256(abi.encode(address(this), msg.sender, limit)); return msgHash.toEthSignedMessageHash().recover(signature) == signerAddress; } /* ------------- Owner ------------- */ function setPublicSaleActive(bool active) external onlyOwner { publicSaleActive = active; emit SaleStateUpdate(); } function giveAway(address[] calldata users, uint256[] calldata amounts) external onlyOwner { for (uint256 i; i < users.length; i++) _mint(users[i], amounts[i]); } function setBaseURI(string calldata _baseURI) external onlyOwner { baseURI = _baseURI; } function setUnrevealedURI(string calldata _uri) external onlyOwner { unrevealedURI = _uri; } function setSignerAddress(address _address) external onlyOwner { signerAddress = _address; } function withdraw() external onlyOwner { uint256 balance = address(this).balance; payable(treasuryAddress).transfer(balance); } function recoverToken(IERC20 token) external onlyOwner { uint256 balance = token.balanceOf(address(this)); token.transfer(treasuryAddress, balance); } /* ------------- Modifier ------------- */ modifier noContract() { if (tx.origin != msg.sender) revert ContractCallNotAllowed(); _; } /* ------------- ERC721 ------------- */ function tokenURI(uint256 tokenId) public view override returns (string memory) { if (!_exists(tokenId)) revert QueryForNonexistentToken(); if (bytes(baseURI).length == 0 || !randomSeedSet()) return string.concat(unrevealedURI, tokenId.toString(), '.json'); uint256 metadataId = _getShiftedId(tokenId, startingIndex(), MAX_SUPPLY); return string.concat(baseURI, metadataId.toString(), '.json'); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.5.0) (token/ERC20/IERC20.sol) pragma solidity ^0.8.0; /** * @dev Interface of the ERC20 standard as defined in the EIP. */ interface IERC20 { /** * @dev Returns the amount of tokens in existence. */ function totalSupply() external view returns (uint256); /** * @dev Returns the amount of tokens owned by `account`. */ function balanceOf(address account) external view returns (uint256); /** * @dev Moves `amount` tokens from the caller's account to `to`. * * Returns a boolean value indicating whether the operation succeeded. * * Emits a {Transfer} event. */ function transfer(address to, uint256 amount) external returns (bool); /** * @dev Returns the remaining number of tokens that `spender` will be * allowed to spend on behalf of `owner` through {transferFrom}. This is * zero by default. * * This value changes when {approve} or {transferFrom} are called. */ function allowance(address owner, address spender) external view returns (uint256); /** * @dev Sets `amount` as the allowance of `spender` over the caller's tokens. * * Returns a boolean value indicating whether the operation succeeded. * * IMPORTANT: Beware that changing an allowance with this method brings the risk * that someone may use both the old and the new allowance by unfortunate * transaction ordering. One possible solution to mitigate this race * condition is to first reduce the spender's allowance to 0 and set the * desired value afterwards: * https://github.com/ethereum/EIPs/issues/20#issuecomment-263524729 * * Emits an {Approval} event. */ function approve(address spender, uint256 amount) external returns (bool); /** * @dev Moves `amount` tokens from `from` to `to` using the * allowance mechanism. `amount` is then deducted from the caller's * allowance. * * Returns a boolean value indicating whether the operation succeeded. * * Emits a {Transfer} event. */ function transferFrom( address from, address to, uint256 amount ) external returns (bool); /** * @dev Emitted when `value` tokens are moved from one account (`from`) to * another (`to`). * * Note that `value` may be zero. */ event Transfer(address indexed from, address indexed to, uint256 value); /** * @dev Emitted when the allowance of a `spender` for an `owner` is set by * a call to {approve}. `value` is the new allowance. */ event Approval(address indexed owner, address indexed spender, uint256 value); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (access/Ownable.sol) pragma solidity ^0.8.0; import "../utils/Context.sol"; /** * @dev Contract module which provides a basic access control mechanism, where * there is an account (an owner) that can be granted exclusive access to * specific functions. * * By default, the owner account will be the one that deploys the contract. This * can later be changed with {transferOwnership}. * * This module is used through inheritance. It will make available the modifier * `onlyOwner`, which can be applied to your functions to restrict their use to * the owner. */ abstract contract Ownable is Context { address private _owner; event OwnershipTransferred(address indexed previousOwner, address indexed newOwner); /** * @dev Initializes the contract setting the deployer as the initial owner. */ constructor() { _transferOwnership(_msgSender()); } /** * @dev 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); } }
// 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 pragma solidity ^0.8.0; import '@chainlink/contracts/src/v0.8/VRFConsumerBase.sol'; import '@openzeppelin/contracts/access/Ownable.sol'; error RandomSeedNotSet(); error RandomSeedAlreadySet(); contract VRFBase is VRFConsumerBase, Ownable { bytes32 private immutable keyHash; uint256 private immutable fee; uint256 private constant ceilGap = 100_000; uint256 public randomSeed; constructor( bytes32 keyHash_, uint256 fee_, address vrfCoordinator_, address link_ ) VRFConsumerBase(vrfCoordinator_, link_) { keyHash = keyHash_; fee = fee_; } /* ------------- External ------------- */ function requestRandomSeed() external virtual onlyOwner whenRandomSeedUnset { requestRandomness(keyHash, fee); } // this function should not be needed and is just an emergency fail-safe if // for some reason chainlink is not able to fulfill the randomness callback function forceFulfillRandomness() external virtual onlyOwner whenRandomSeedUnset { uint256 randomNumber = uint256(blockhash(block.number - 1)); setRandomSeed(randomNumber); } /* ------------- Internal ------------- */ function fulfillRandomness(bytes32, uint256 randomNumber) internal virtual override { setRandomSeed(randomNumber); } function _getShiftedId( uint256 index, uint256 startId, uint256 n ) internal view returns (uint256) { return startId + ((randomSeed + index) % n); } function setRandomSeed(uint256 randomNumber) private { randomSeed = (randomNumber > type(uint256).max - ceilGap) ? randomNumber - ceilGap : randomNumber; } /* ------------- View ------------- */ function randomSeedSet() public view returns (bool) { return randomSeed > 0; } /* ------------- Modifier ------------- */ modifier whenRandomSeedSet() { if (!randomSeedSet()) revert RandomSeedNotSet(); _; } modifier whenRandomSeedUnset() { if (randomSeedSet()) revert RandomSeedAlreadySet(); _; } } contract VRFBaseMainnet is VRFBase( 0xAA77729D3466CA35AE8D28B3BBAC7CC36A5031EFDC430821C02BC31A238AF445, 2 * 1e18, 0xf0d54349aDdcf704F77AE15b96510dEA15cb7952, 0x514910771AF9Ca656af840dff83E8264EcF986CA ) {} contract VRFBaseRinkeby is VRFBase( 0x2ed0feb3e7fd2022120aa84fab1945545a9f2ffc9076fd6156fa96eaff4c1311, 0.1 * 1e18, 0xb3dCcb4Cf7a26f6cf6B120Cf5A73875B7BBc655B, 0x01BE23585060835E02B77ef475b0Cc51aA1e0709 ) {} contract VRFBaseMumbai is VRFBase( 0x6e75b569a01ef56d18cab6a8e71e6600d6ce853834d4a5748b720d06f878b3a4, 0.0001 * 1e18, 0x8C7382F9D8f56b33781fE506E897a4F1e2d17255, 0x326C977E6efc84E512bB9C30f76E30c160eD06FB ) {}
// SPDX-License-Identifier: MIT // Creator: Chiru Labs pragma solidity ^0.8.0; import '@openzeppelin/contracts/token/ERC721/IERC721.sol'; import '@openzeppelin/contracts/token/ERC721/IERC721Receiver.sol'; import '@openzeppelin/contracts/token/ERC721/extensions/IERC721Metadata.sol'; import '@openzeppelin/contracts/utils/Address.sol'; import '@openzeppelin/contracts/utils/Context.sol'; import '@openzeppelin/contracts/utils/Strings.sol'; import '@openzeppelin/contracts/utils/introspection/ERC165.sol'; error ApprovalCallerNotOwnerNorApproved(); error ApproveToCaller(); error ApprovalToCurrentOwner(); error BalanceQueryForZeroAddress(); error MintToZeroAddress(); error MintZeroQuantity(); error MintExceedsLimit(); error MintExceedsMaxPerWallet(); error TransferCallerNotOwnerNorApproved(); error TransferFromIncorrectOwner(); error TransferToNonERC721ReceiverImplementer(); error TransferToZeroAddress(); error QueryForNonexistentToken(); /** * @dev Implementation of https://eips.ethereum.org/EIPS/eip-721[ERC721] Non-Fungible Token Standard, including * the Metadata and Enumerable extension. Built to optimize for lower gas during batch mints. * * Assumes serials are sequentially minted starting at 0 (e.g. 0, 1, 2, 3..). * * Does not support burning tokens to address(0). */ contract ERC721A is Context, ERC165, IERC721, IERC721Metadata { using Address for address; using Strings for uint256; struct TokenOwnership { address addr; uint56 startTimestamp; bool nextTokenOwnerShipSet; } struct UserData { uint128 balance; uint128 numMinted; } uint256 private immutable _startingIndex; uint256 private immutable _collectionSize; uint256 private immutable _maxPerWallet; uint256 private _totalSupply; // 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) private _tokenData; // Mapping owner address to address data mapping(address => UserData) private _userData; // Mapping from token ID to approved address mapping(uint256 => address) private _tokenApprovals; // Mapping from owner to operator approvals mapping(address => mapping(address => bool)) private _operatorApprovals; /** * @dev * `maxBatchSize` refers to how much a minter can mint at a time. */ constructor( string memory name_, string memory symbol_, uint256 collectionSize_, uint256 startingIndex_, uint256 maxPerWallet_ ) { _name = name_; _symbol = symbol_; _collectionSize = collectionSize_; _startingIndex = startingIndex_; _maxPerWallet = maxPerWallet_; } /** * @dev See {IERC721Enumerable-totalSupply}. */ function totalSupply() external view returns (uint256) { return _totalSupply; } function startingIndex() public view returns (uint256) { return _startingIndex; } function tokenIdsOf(address owner) external view returns (uint256[] memory) { uint256 balance = balanceOf(owner); uint256[] memory tokenIds = new uint256[](balance); if (balance == 0) return tokenIds; uint256 totalSupply_ = _totalSupply; uint256 count; for (uint256 i = _startingIndex; i < _startingIndex + totalSupply_; i++) { if (owner == ownerOf(i)) { tokenIds[count++] = i; if (balance == count) return tokenIds; } } return tokenIds; } /** * @dev See {IERC165-supportsInterface}. */ function supportsInterface(bytes4 interfaceId) public view virtual override(ERC165, IERC165) returns (bool) { return interfaceId == type(IERC721).interfaceId || interfaceId == type(IERC721Metadata).interfaceId || super.supportsInterface(interfaceId); } /** * @dev See {IERC721-balanceOf}. */ function balanceOf(address owner) public view override returns (uint256) { if (owner == address(0)) revert BalanceQueryForZeroAddress(); return _userData[owner].balance; } function numMinted(address owner) public view returns (uint256) { return _userData[owner].numMinted; } function _ownershipOf(uint256 tokenId) internal view returns (TokenOwnership memory) { if (!_exists(tokenId)) revert QueryForNonexistentToken(); for (uint256 curr = tokenId; ; curr--) { TokenOwnership memory ownership = _tokenData[curr]; if (ownership.addr != address(0)) { return ownership; } } revert QueryForNonexistentToken(); } /** * @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 QueryForNonexistentToken(); string memory baseURI = _baseURI(); return bytes(baseURI).length != 0 ? string.concat(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 = ERC721A.ownerOf(tokenId); if (to == owner) revert ApprovalToCurrentOwner(); if (msg.sender != owner && !isApprovedForAll(owner, msg.sender)) revert ApprovalCallerNotOwnerNorApproved(); _approve(to, tokenId, owner); } /** * @dev See {IERC721-getApproved}. */ function getApproved(uint256 tokenId) public view override returns (address) { if (!_exists(tokenId)) revert QueryForNonexistentToken(); return _tokenApprovals[tokenId]; } /** * @dev See {IERC721-setApprovalForAll}. */ function setApprovalForAll(address operator, bool approved) public override { if (operator == msg.sender) revert ApproveToCaller(); _operatorApprovals[msg.sender][operator] = approved; emit ApprovalForAll(msg.sender, 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 override { _transfer(from, to, tokenId); } /** * @dev See {IERC721-safeTransferFrom}. */ function safeTransferFrom( address from, address to, uint256 tokenId ) public override { safeTransferFrom(from, to, tokenId, ''); } /** * @dev See {IERC721-safeTransferFrom}. */ function safeTransferFrom( address from, address to, uint256 tokenId, bytes memory data ) public override { _transfer(from, to, tokenId); if ( to.code.length != 0 && IERC721Receiver(to).onERC721Received(msg.sender, from, tokenId, data) != IERC721Receiver(to).onERC721Received.selector ) 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 _startingIndex <= tokenId && tokenId < _startingIndex + _totalSupply; } /** * @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) internal { unchecked { uint256 supply = _totalSupply; uint256 startTokenId = _startingIndex + supply; if (to == address(0)) revert MintToZeroAddress(); if (quantity == 0) revert MintZeroQuantity(); if (supply + quantity > _collectionSize) revert MintExceedsLimit(); UserData memory userData = _userData[to]; if (userData.numMinted + quantity > _maxPerWallet && to == msg.sender && address(this).code.length != 0) revert MintExceedsMaxPerWallet(); _userData[to] = UserData(userData.balance + uint128(quantity), userData.numMinted + uint128(quantity)); _tokenData[startTokenId] = TokenOwnership(to, uint56(block.timestamp), false); for (uint256 i; i < quantity; ++i) emit Transfer(address(0), to, startTokenId + i); _totalSupply += 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 = (msg.sender == from || isApprovedForAll(from, msg.sender) || getApproved(tokenId) == msg.sender); if (!isApprovedOrOwner) revert TransferCallerNotOwnerNorApproved(); if (to == address(0)) revert TransferToZeroAddress(); // Clear approvals from the previous owner delete _tokenApprovals[tokenId]; unchecked { --_userData[from].balance; ++_userData[to].balance; _tokenData[tokenId] = TokenOwnership(to, uint56(block.timestamp), true); // 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; if ( !prevOwnership.nextTokenOwnerShipSet && _tokenData[nextTokenId].addr == address(0) && nextTokenId < _startingIndex + _collectionSize // it's ok to check collectionSize instead of totalSupply, because unminted tokenOwnerships will be overwritten ) { _tokenData[nextTokenId] = TokenOwnership(from, prevOwnership.startTimestamp, false); } } emit Transfer(from, to, tokenId); } /** * @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); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/Context.sol) pragma solidity ^0.8.0; /** * @dev Provides information about the current execution context, including the * sender of the transaction and its data. While these are generally available * via msg.sender and msg.data, they should not be accessed in such a direct * manner, since when dealing with meta-transactions the account sending and * paying for execution may not be the actual sender (as far as an application * is concerned). * * This contract is only required for intermediate, library-like contracts. */ abstract contract Context { function _msgSender() internal view virtual returns (address) { return msg.sender; } function _msgData() internal view virtual returns (bytes calldata) { return msg.data; } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/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 pragma solidity ^0.8.0; import "./interfaces/LinkTokenInterface.sol"; import "./VRFRequestIDBase.sol"; /** **************************************************************************** * @notice Interface for contracts using VRF randomness * ***************************************************************************** * @dev PURPOSE * * @dev Reggie the Random Oracle (not his real job) wants to provide randomness * @dev to Vera the verifier in such a way that Vera can be sure he's not * @dev making his output up to suit himself. Reggie provides Vera a public key * @dev to which he knows the secret key. Each time Vera provides a seed to * @dev Reggie, he gives back a value which is computed completely * @dev deterministically from the seed and the secret key. * * @dev Reggie provides a proof by which Vera can verify that the output was * @dev correctly computed once Reggie tells it to her, but without that proof, * @dev the output is indistinguishable to her from a uniform random sample * @dev from the output space. * * @dev The purpose of this contract is to make it easy for unrelated contracts * @dev to talk to Vera the verifier about the work Reggie is doing, to provide * @dev simple access to a verifiable source of randomness. * ***************************************************************************** * @dev USAGE * * @dev Calling contracts must inherit from VRFConsumerBase, and can * @dev initialize VRFConsumerBase's attributes in their constructor as * @dev shown: * * @dev contract VRFConsumer { * @dev constuctor(<other arguments>, address _vrfCoordinator, address _link) * @dev VRFConsumerBase(_vrfCoordinator, _link) public { * @dev <initialization with other arguments goes here> * @dev } * @dev } * * @dev The oracle will have given you an ID for the VRF keypair they have * @dev committed to (let's call it keyHash), and have told you the minimum LINK * @dev price for VRF service. Make sure your contract has sufficient LINK, and * @dev call requestRandomness(keyHash, fee, seed), where seed is the input you * @dev want to generate randomness from. * * @dev Once the VRFCoordinator has received and validated the oracle's response * @dev to your request, it will call your contract's fulfillRandomness method. * * @dev The randomness argument to fulfillRandomness is the actual random value * @dev generated from your seed. * * @dev The requestId argument is generated from the keyHash and the seed by * @dev makeRequestId(keyHash, seed). If your contract could have concurrent * @dev requests open, you can use the requestId to track which seed is * @dev associated with which randomness. See VRFRequestIDBase.sol for more * @dev details. (See "SECURITY CONSIDERATIONS" for principles to keep in mind, * @dev if your contract could have multiple requests in flight simultaneously.) * * @dev Colliding `requestId`s are cryptographically impossible as long as seeds * @dev differ. (Which is critical to making unpredictable randomness! See the * @dev next section.) * * ***************************************************************************** * @dev SECURITY CONSIDERATIONS * * @dev A method with the ability to call your fulfillRandomness method directly * @dev could spoof a VRF response with any random value, so it's critical that * @dev it cannot be directly called by anything other than this base contract * @dev (specifically, by the VRFConsumerBase.rawFulfillRandomness method). * * @dev For your users to trust that your contract's random behavior is free * @dev from malicious interference, it's best if you can write it so that all * @dev behaviors implied by a VRF response are executed *during* your * @dev fulfillRandomness method. If your contract must store the response (or * @dev anything derived from it) and use it later, you must ensure that any * @dev user-significant behavior which depends on that stored value cannot be * @dev manipulated by a subsequent VRF request. * * @dev Similarly, both miners and the VRF oracle itself have some influence * @dev over the order in which VRF responses appear on the blockchain, so if * @dev your contract could have multiple VRF requests in flight simultaneously, * @dev you must ensure that the order in which the VRF responses arrive cannot * @dev be used to manipulate your contract's user-significant behavior. * * @dev Since the ultimate input to the VRF is mixed with the block hash of the * @dev block in which the request is made, user-provided seeds have no impact * @dev on its economic security properties. They are only included for API * @dev compatability with previous versions of this contract. * * @dev Since the block hash of the block which contains the requestRandomness * @dev call is mixed into the input to the VRF *last*, a sufficiently powerful * @dev miner could, in principle, fork the blockchain to evict the block * @dev containing the request, forcing the request to be included in a * @dev different block with a different hash, and therefore a different input * @dev to the VRF. However, such an attack would incur a substantial economic * @dev cost. This cost scales with the number of blocks the VRF oracle waits * @dev until it calls responds to a request. */ abstract contract VRFConsumerBase is VRFRequestIDBase { /** * @notice fulfillRandomness handles the VRF response. Your contract must * @notice implement it. See "SECURITY CONSIDERATIONS" above for important * @notice principles to keep in mind when implementing your fulfillRandomness * @notice method. * * @dev VRFConsumerBase expects its subcontracts to have a method with this * @dev signature, and will call it once it has verified the proof * @dev associated with the randomness. (It is triggered via a call to * @dev rawFulfillRandomness, below.) * * @param requestId The Id initially returned by requestRandomness * @param randomness the VRF output */ function fulfillRandomness(bytes32 requestId, uint256 randomness) internal virtual; /** * @dev In order to keep backwards compatibility we have kept the user * seed field around. We remove the use of it because given that the blockhash * enters later, it overrides whatever randomness the used seed provides. * Given that it adds no security, and can easily lead to misunderstandings, * we have removed it from usage and can now provide a simpler API. */ uint256 private constant USER_SEED_PLACEHOLDER = 0; /** * @notice requestRandomness initiates a request for VRF output given _seed * * @dev The fulfillRandomness method receives the output, once it's provided * @dev by the Oracle, and verified by the vrfCoordinator. * * @dev The _keyHash must already be registered with the VRFCoordinator, and * @dev the _fee must exceed the fee specified during registration of the * @dev _keyHash. * * @dev The _seed parameter is vestigial, and is kept only for API * @dev compatibility with older versions. It can't *hurt* to mix in some of * @dev your own randomness, here, but it's not necessary because the VRF * @dev oracle will mix the hash of the block containing your request into the * @dev VRF seed it ultimately uses. * * @param _keyHash ID of public key against which randomness is generated * @param _fee The amount of LINK to send with the request * * @return requestId unique ID for this request * * @dev The returned requestId can be used to distinguish responses to * @dev concurrent requests. It is passed as the first argument to * @dev fulfillRandomness. */ function requestRandomness(bytes32 _keyHash, uint256 _fee) internal returns (bytes32 requestId) { LINK.transferAndCall(vrfCoordinator, _fee, abi.encode(_keyHash, USER_SEED_PLACEHOLDER)); // This is the seed passed to VRFCoordinator. The oracle will mix this with // the hash of the block containing this request to obtain the seed/input // which is finally passed to the VRF cryptographic machinery. uint256 vRFSeed = makeVRFInputSeed(_keyHash, USER_SEED_PLACEHOLDER, address(this), nonces[_keyHash]); // nonces[_keyHash] must stay in sync with // VRFCoordinator.nonces[_keyHash][this], which was incremented by the above // successful LINK.transferAndCall (in VRFCoordinator.randomnessRequest). // This provides protection against the user repeating their input seed, // which would result in a predictable/duplicate output, if multiple such // requests appeared in the same block. nonces[_keyHash] = nonces[_keyHash] + 1; return makeRequestId(_keyHash, vRFSeed); } LinkTokenInterface internal immutable LINK; address private immutable vrfCoordinator; // Nonces for each VRF key from which randomness has been requested. // // Must stay in sync with VRFCoordinator[_keyHash][this] mapping(bytes32 => uint256) /* keyHash */ /* nonce */ private nonces; /** * @param _vrfCoordinator address of VRFCoordinator contract * @param _link address of LINK token contract * * @dev https://docs.chain.link/docs/link-token-contracts */ constructor(address _vrfCoordinator, address _link) { vrfCoordinator = _vrfCoordinator; LINK = LinkTokenInterface(_link); } // rawFulfillRandomness is called by VRFCoordinator when it receives a valid VRF // proof. rawFulfillRandomness then calls fulfillRandomness, after validating // the origin of the call function rawFulfillRandomness(bytes32 requestId, uint256 randomness) external { require(msg.sender == vrfCoordinator, "Only VRFCoordinator can fulfill"); fulfillRandomness(requestId, randomness); } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; interface LinkTokenInterface { function allowance(address owner, address spender) external view returns (uint256 remaining); function approve(address spender, uint256 value) external returns (bool success); function balanceOf(address owner) external view returns (uint256 balance); function decimals() external view returns (uint8 decimalPlaces); function decreaseApproval(address spender, uint256 addedValue) external returns (bool success); function increaseApproval(address spender, uint256 subtractedValue) external; function name() external view returns (string memory tokenName); function symbol() external view returns (string memory tokenSymbol); function totalSupply() external view returns (uint256 totalTokensIssued); function transfer(address to, uint256 value) external returns (bool success); function transferAndCall( address to, uint256 value, bytes calldata data ) external returns (bool success); function transferFrom( address from, address to, uint256 value ) external returns (bool success); }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; contract VRFRequestIDBase { /** * @notice returns the seed which is actually input to the VRF coordinator * * @dev To prevent repetition of VRF output due to repetition of the * @dev user-supplied seed, that seed is combined in a hash with the * @dev user-specific nonce, and the address of the consuming contract. The * @dev risk of repetition is mostly mitigated by inclusion of a blockhash in * @dev the final seed, but the nonce does protect against repetition in * @dev requests which are included in a single block. * * @param _userSeed VRF seed input provided by user * @param _requester Address of the requesting contract * @param _nonce User-specific nonce at the time of the request */ function makeVRFInputSeed( bytes32 _keyHash, uint256 _userSeed, address _requester, uint256 _nonce ) internal pure returns (uint256) { return uint256(keccak256(abi.encode(_keyHash, _userSeed, _requester, _nonce))); } /** * @notice Returns the id for this request * @param _keyHash The serviceAgreement ID to be used for this request * @param _vRFInputSeed The seed to be passed directly to the VRF * @return The id for this request * * @dev Note that _vRFInputSeed is not the seed passed by the consuming * @dev contract, but the one generated by makeVRFInputSeed */ function makeRequestId(bytes32 _keyHash, uint256 _vRFInputSeed) internal pure returns (bytes32) { return keccak256(abi.encodePacked(_keyHash, _vRFInputSeed)); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (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`, checking first that contract recipients * are aware of the ERC721 protocol to prevent tokens from being forever locked. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must exist and be owned by `from`. * - If the caller is not `from`, it must be have been allowed to move this token by either {approve} or {setApprovalForAll}. * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */ function safeTransferFrom( address from, address to, uint256 tokenId ) external; /** * @dev Transfers `tokenId` token from `from` to `to`. * * WARNING: Usage of this method is discouraged, use {safeTransferFrom} whenever possible. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must be owned by `from`. * - If the caller is not `from`, it must be approved to move this token by either {approve} or {setApprovalForAll}. * * Emits a {Transfer} event. */ function transferFrom( address from, address to, uint256 tokenId ) external; /** * @dev Gives permission to `to` to transfer `tokenId` token to another account. * The approval is cleared when the token is transferred. * * Only a single account can be approved at a time, so approving the zero address clears previous approvals. * * Requirements: * * - The caller must own the token or be an approved operator. * - `tokenId` must exist. * * Emits an {Approval} event. */ function approve(address to, uint256 tokenId) external; /** * @dev Returns the account approved for `tokenId` token. * * Requirements: * * - `tokenId` must exist. */ function getApproved(uint256 tokenId) external view returns (address operator); /** * @dev Approve or remove `operator` as an operator for the caller. * Operators can call {transferFrom} or {safeTransferFrom} for any token owned by the caller. * * Requirements: * * - The `operator` cannot be the caller. * * Emits an {ApprovalForAll} event. */ function setApprovalForAll(address operator, bool _approved) external; /** * @dev Returns if the `operator` is allowed to manage all of the assets of `owner`. * * See {setApprovalForAll} */ function isApprovedForAll(address owner, address operator) external view returns (bool); /** * @dev Safely transfers `tokenId` token from `from` to `to`. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must exist and be owned by `from`. * - If the caller is not `from`, it must be approved to move this token by either {approve} or {setApprovalForAll}. * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */ function safeTransferFrom( address from, address to, uint256 tokenId, bytes calldata data ) external; }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (token/ERC721/IERC721Receiver.sol) pragma solidity ^0.8.0; /** * @title ERC721 token receiver interface * @dev Interface for any contract that wants to support safeTransfers * from ERC721 asset contracts. */ interface IERC721Receiver { /** * @dev Whenever an {IERC721} `tokenId` token is transferred to this contract via {IERC721-safeTransferFrom} * by `operator` from `from`, this function is called. * * It must return its Solidity selector to confirm the token transfer. * If any other value is returned or the interface is not implemented by the recipient, the transfer will be reverted. * * The selector can be obtained in Solidity with `IERC721.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 "../IERC721.sol"; /** * @title ERC-721 Non-Fungible Token Standard, optional metadata extension * @dev See https://eips.ethereum.org/EIPS/eip-721 */ interface IERC721Metadata is IERC721 { /** * @dev Returns the token collection name. */ function name() external view returns (string memory); /** * @dev Returns the token collection symbol. */ function symbol() external view returns (string memory); /** * @dev Returns the Uniform Resource Identifier (URI) for `tokenId` token. */ function tokenURI(uint256 tokenId) external view returns (string memory); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.5.0) (utils/Address.sol) pragma solidity ^0.8.1; /** * @dev Collection of functions related to the address type */ library Address { /** * @dev Returns true if `account` is a contract. * * [IMPORTANT] * ==== * It is unsafe to assume that an address for which this function returns * false is an externally-owned account (EOA) and not a contract. * * Among others, `isContract` will return false for the following * types of addresses: * * - an externally-owned account * - a contract in construction * - an address where a contract will be created * - an address where a contract lived, but was destroyed * ==== * * [IMPORTANT] * ==== * You shouldn't rely on `isContract` to protect against flash loan attacks! * * Preventing calls from contracts is highly discouraged. It breaks composability, breaks support for smart wallets * like Gnosis Safe, and does not provide security since it can be circumvented by calling from a contract * constructor. * ==== */ function isContract(address account) internal view returns (bool) { // This method relies on extcodesize/address.code.length, which returns 0 // for contracts in construction, since the code is only stored at the end // of the constructor execution. return account.code.length > 0; } /** * @dev Replacement for Solidity's `transfer`: sends `amount` wei to * `recipient`, forwarding all available gas and reverting on errors. * * https://eips.ethereum.org/EIPS/eip-1884[EIP1884] increases the gas cost * of certain opcodes, possibly making contracts go over the 2300 gas limit * imposed by `transfer`, making them unable to receive funds via * `transfer`. {sendValue} removes this limitation. * * https://diligence.consensys.net/posts/2019/09/stop-using-soliditys-transfer-now/[Learn more]. * * IMPORTANT: because control is transferred to `recipient`, care must be * taken to not create reentrancy vulnerabilities. Consider using * {ReentrancyGuard} or the * https://solidity.readthedocs.io/en/v0.5.11/security-considerations.html#use-the-checks-effects-interactions-pattern[checks-effects-interactions pattern]. */ function sendValue(address payable recipient, uint256 amount) internal { require(address(this).balance >= amount, "Address: insufficient balance"); (bool success, ) = recipient.call{value: amount}(""); require(success, "Address: unable to send value, recipient may have reverted"); } /** * @dev Performs a Solidity function call using a low level `call`. A * plain `call` is an unsafe replacement for a function call: use this * function instead. * * If `target` reverts with a revert reason, it is bubbled up by this * function (like regular Solidity function calls). * * Returns the raw returned data. To convert to the expected return value, * use https://solidity.readthedocs.io/en/latest/units-and-global-variables.html?highlight=abi.decode#abi-encoding-and-decoding-functions[`abi.decode`]. * * Requirements: * * - `target` must be a contract. * - calling `target` with `data` must not revert. * * _Available since v3.1._ */ function functionCall(address target, bytes memory data) internal returns (bytes memory) { return functionCall(target, data, "Address: low-level call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], but with * `errorMessage` as a fallback revert reason when `target` reverts. * * _Available since v3.1._ */ function functionCall( address target, bytes memory data, string memory errorMessage ) internal returns (bytes memory) { return functionCallWithValue(target, data, 0, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but also transferring `value` wei to `target`. * * Requirements: * * - the calling contract must have an ETH balance of at least `value`. * - the called Solidity function must be `payable`. * * _Available since v3.1._ */ function functionCallWithValue( address target, bytes memory data, uint256 value ) internal returns (bytes memory) { return functionCallWithValue(target, data, value, "Address: low-level call with value failed"); } /** * @dev Same as {xref-Address-functionCallWithValue-address-bytes-uint256-}[`functionCallWithValue`], but * with `errorMessage` as a fallback revert reason when `target` reverts. * * _Available since v3.1._ */ function functionCallWithValue( address target, bytes memory data, uint256 value, string memory errorMessage ) internal returns (bytes memory) { require(address(this).balance >= value, "Address: insufficient balance for call"); require(isContract(target), "Address: call to non-contract"); (bool success, bytes memory returndata) = target.call{value: value}(data); return verifyCallResult(success, returndata, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but performing a static call. * * _Available since v3.3._ */ function functionStaticCall(address target, bytes memory data) internal view returns (bytes memory) { return functionStaticCall(target, data, "Address: low-level static call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`], * but performing a static call. * * _Available since v3.3._ */ function functionStaticCall( address target, bytes memory data, string memory errorMessage ) internal view returns (bytes memory) { require(isContract(target), "Address: static call to non-contract"); (bool success, bytes memory returndata) = target.staticcall(data); return verifyCallResult(success, returndata, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but performing a delegate call. * * _Available since v3.4._ */ function functionDelegateCall(address target, bytes memory data) internal returns (bytes memory) { return functionDelegateCall(target, data, "Address: low-level delegate call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`], * but performing a delegate call. * * _Available since v3.4._ */ function functionDelegateCall( address target, bytes memory data, string memory errorMessage ) internal returns (bytes memory) { require(isContract(target), "Address: delegate call to non-contract"); (bool success, bytes memory returndata) = target.delegatecall(data); return verifyCallResult(success, returndata, errorMessage); } /** * @dev Tool to verifies that a low level call was successful, and revert if it wasn't, either by bubbling the * revert reason using the provided one. * * _Available since v4.3._ */ function verifyCallResult( bool success, bytes memory returndata, string memory errorMessage ) internal pure returns (bytes memory) { if (success) { return returndata; } else { // Look for revert reason and bubble it up if present if (returndata.length > 0) { // The easiest way to bubble the revert reason is using memory via assembly 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/introspection/ERC165.sol) pragma solidity ^0.8.0; import "./IERC165.sol"; /** * @dev Implementation of the {IERC165} interface. * * Contracts that want to implement ERC165 should inherit from this contract and override {supportsInterface} to check * for the additional interface id that will be supported. For example: * * ```solidity * function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) { * return interfaceId == type(MyInterface).interfaceId || super.supportsInterface(interfaceId); * } * ``` * * Alternatively, {ERC165Storage} provides an easier to use but more expensive implementation. */ abstract contract ERC165 is IERC165 { /** * @dev See {IERC165-supportsInterface}. */ function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) { return interfaceId == type(IERC165).interfaceId; } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/introspection/IERC165.sol) pragma solidity ^0.8.0; /** * @dev Interface of the ERC165 standard, as defined in the * https://eips.ethereum.org/EIPS/eip-165[EIP]. * * Implementers can declare support of contract interfaces, which can then be * queried by others ({ERC165Checker}). * * For an implementation, see {ERC165}. */ interface IERC165 { /** * @dev Returns true if this contract implements the interface defined by * `interfaceId`. See the corresponding * https://eips.ethereum.org/EIPS/eip-165#how-interfaces-are-identified[EIP section] * to learn more about how these ids are created. * * This function call must use less than 30 000 gas. */ function supportsInterface(bytes4 interfaceId) external view returns (bool); }
{ "optimizer": { "enabled": true, "runs": 100000 }, "outputSelection": { "*": { "*": [ "evm.bytecode", "evm.deployedBytecode", "devdoc", "userdoc", "metadata", "abi" ] } }, "libraries": {} }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"inputs":[],"stateMutability":"nonpayable","type":"constructor"},{"inputs":[],"name":"ApprovalCallerNotOwnerNorApproved","type":"error"},{"inputs":[],"name":"ApprovalToCurrentOwner","type":"error"},{"inputs":[],"name":"ApproveToCaller","type":"error"},{"inputs":[],"name":"BalanceQueryForZeroAddress","type":"error"},{"inputs":[],"name":"ContractCallNotAllowed","type":"error"},{"inputs":[],"name":"ExceedsLimit","type":"error"},{"inputs":[],"name":"IncorrectValue","type":"error"},{"inputs":[],"name":"InvalidSignature","type":"error"},{"inputs":[],"name":"MintExceedsLimit","type":"error"},{"inputs":[],"name":"MintExceedsMaxPerWallet","type":"error"},{"inputs":[],"name":"MintToZeroAddress","type":"error"},{"inputs":[],"name":"MintZeroQuantity","type":"error"},{"inputs":[],"name":"PublicSaleNotActive","type":"error"},{"inputs":[],"name":"QueryForNonexistentToken","type":"error"},{"inputs":[],"name":"RandomSeedAlreadySet","type":"error"},{"inputs":[],"name":"SignatureExceedsLimit","type":"error"},{"inputs":[],"name":"TransferCallerNotOwnerNorApproved","type":"error"},{"inputs":[],"name":"TransferFromIncorrectOwner","type":"error"},{"inputs":[],"name":"TransferToNonERC721ReceiverImplementer","type":"error"},{"inputs":[],"name":"TransferToZeroAddress","type":"error"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"approved","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":false,"internalType":"bool","name":"approved","type":"bool"}],"name":"ApprovalForAll","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[],"name":"SaleStateUpdate","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Transfer","type":"event"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"approve","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"baseURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"forceFulfillRandomness","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":"users","type":"address[]"},{"internalType":"uint256[]","name":"amounts","type":"uint256[]"}],"name":"giveAway","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":"amount","type":"uint256"}],"name":"mint","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"numMinted","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"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":"publicSaleActive","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"randomSeed","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"randomSeedSet","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32","name":"requestId","type":"bytes32"},{"internalType":"uint256","name":"randomness","type":"uint256"}],"name":"rawFulfillRandomness","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"contract IERC20","name":"token","type":"address"}],"name":"recoverToken","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"requestRandomSeed","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":"active","type":"bool"}],"name":"setPublicSaleActive","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_address","type":"address"}],"name":"setSignerAddress","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"_uri","type":"string"}],"name":"setUnrevealedURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"signerAddress","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"startingIndex","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes4","name":"interfaceId","type":"bytes4"}],"name":"supportsInterface","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"tokenIdsOf","outputs":[{"internalType":"uint256[]","name":"","type":"uint256[]"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"tokenURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"transferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"treasuryAddress","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"amount","type":"uint256"},{"internalType":"uint256","name":"limit","type":"uint256"},{"internalType":"bytes","name":"signature","type":"bytes"}],"name":"whitelistMint","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"withdraw","outputs":[],"stateMutability":"nonpayable","type":"function"}]
Contract Creation Code
6101c060405260366101608181529062003e776101803980516200002c91600c91602090910190620001d9565b50600d80546001600160a01b03199081167363b14a4d433d9ed70176cf7ed1f322790f0d5f8917909155600e80549091167369d8004d527d72efe1a4d5eecff4a7f38f5b2b691790553480156200008257600080fd5b50604080518082018252600a81526942616f536f636965747960b01b60208083019182528351808501909452600684526542414f534f4360d01b9084015273f0d54349addcf704f77ae15b96510dea15cb795260a081905273514910771af9ca656af840dff83e8264ecf986ca608081905283517faa77729d3466ca35ae8d28b3bbac7cc36a5031efdc430821c02bc31a238af44595671bc16d674ec800009593949293929091610f3091600191601491620001429160029190620001d9565b50835162000158906003906020870190620001d9565b5060e09290925260c05261010052506200017490503362000187565b50506101209190915261014052620002bb565b600880546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b828054620001e7906200027f565b90600052602060002090601f0160209004810192826200020b576000855562000256565b82601f106200022657805160ff191683800117855562000256565b8280016001018555821562000256579182015b828111156200025657825182559160200191906001019062000239565b506200026492915062000268565b5090565b5b8082111562000264576000815560010162000269565b600181811c908216806200029457607f821691505b602082108103620002b557634e487b7160e01b600052602260045260246000fd5b50919050565b60805160a05160c05160e051610100516101205161014051613b226200035560003960006119390152600061191801526000611ffa015260008181611f3a015261258a0152600081816106d80152818161155101528181611577015281816117fc01528181611dad01528181611dde01528181611e9001526125ab0152600081816110aa0152612a9601526000612a5a0152613b226000f3fe6080604052600436106102855760003560e01c80638da5cb5b11610153578063bc8893b4116100cb578063e2e06fa31161007f578063ec596b7211610064578063ec596b7214610787578063f2fde38b1461079a578063fe2c7fee146107ba57600080fd5b8063e2e06fa314610711578063e985e9c51461073157600080fd5b8063c87b56dd116100b0578063c87b56dd146106a9578063cb774d47146106c9578063e1da26c6146106fc57600080fd5b8063bc8893b414610662578063c5f956af1461067c57600080fd5b8063a0712d6811610122578063a3b261f211610107578063a3b261f2146105fe578063aaab63391461062b578063b88d4fde1461064257600080fd5b8063a0712d68146105cb578063a22cb465146105de57600080fd5b80638da5cb5b1461054b57806394985ddd1461057657806395d89b41146105965780639be65a60146105ab57600080fd5b806323b872dd116102015780635b7633d0116101b55780636c0360eb1161019a5780636c0360eb1461050157806370a0823114610516578063715018a61461053657600080fd5b80635b7633d0146104b45780636352211e146104e157600080fd5b80633ccfd60b116101e65780633ccfd60b1461045f57806342842e0e1461047457806355f804b31461049457600080fd5b806323b872dd1461042a5780633307dcfe1461044a57600080fd5b8063095ea7b31161025857806318160ddd1161023d57806318160ddd1461038c57806320fc7eb2146103a157806322a2eced1461040a57600080fd5b8063095ea7b3146103485780630b747d911461036857600080fd5b806301ffc9a71461028a578063046dc166146102bf57806306fdde03146102e1578063081812fc14610303575b600080fd5b34801561029657600080fd5b506102aa6102a53660046131d0565b6107da565b60405190151581526020015b60405180910390f35b3480156102cb57600080fd5b506102df6102da366004613216565b6108bf565b005b3480156102ed57600080fd5b506102f661098c565b6040516102b691906132a9565b34801561030f57600080fd5b5061032361031e3660046132bc565b610a1e565b60405173ffffffffffffffffffffffffffffffffffffffff90911681526020016102b6565b34801561035457600080fd5b506102df6103633660046132d5565b610a88565b34801561037457600080fd5b5061037e60095481565b6040519081526020016102b6565b34801561039857600080fd5b5060015461037e565b3480156103ad57600080fd5b5061037e6103bc366004613216565b73ffffffffffffffffffffffffffffffffffffffff1660009081526005602052604090205470010000000000000000000000000000000090046fffffffffffffffffffffffffffffffff1690565b34801561041657600080fd5b506102df610425366004613346565b610b98565b34801561043657600080fd5b506102df6104453660046133b2565b610c85565b34801561045657600080fd5b506102df610c90565b34801561046b57600080fd5b506102df610d67565b34801561048057600080fd5b506102df61048f3660046133b2565b610e33565b3480156104a057600080fd5b506102df6104af366004613435565b610e4e565b3480156104c057600080fd5b50600d546103239073ffffffffffffffffffffffffffffffffffffffff1681565b3480156104ed57600080fd5b506103236104fc3660046132bc565b610edb565b34801561050d57600080fd5b506102f6610eed565b34801561052257600080fd5b5061037e610531366004613216565b610f7b565b34801561054257600080fd5b506102df611005565b34801561055757600080fd5b5060085473ffffffffffffffffffffffffffffffffffffffff16610323565b34801561058257600080fd5b506102df610591366004613477565b611092565b3480156105a257600080fd5b506102f661113b565b3480156105b757600080fd5b506102df6105c6366004613216565b61114a565b6102df6105d93660046132bc565b6112fb565b3480156105ea57600080fd5b506102df6105f93660046134a7565b6113ff565b34801561060a57600080fd5b5061061e610619366004613216565b6114e5565b6040516102b691906134e0565b34801561063757600080fd5b5060095415156102aa565b34801561064e57600080fd5b506102df61065d366004613553565b611636565b34801561066e57600080fd5b50600a546102aa9060ff1681565b34801561068857600080fd5b50600e546103239073ffffffffffffffffffffffffffffffffffffffff1681565b3480156106b557600080fd5b506102f66106c43660046132bc565b611761565b3480156106d557600080fd5b507f000000000000000000000000000000000000000000000000000000000000000061037e565b34801561070857600080fd5b506102df611858565b34801561071d57600080fd5b506102df61072c366004613651565b61195d565b34801561073d57600080fd5b506102aa61074c36600461366e565b73ffffffffffffffffffffffffffffffffffffffff918216600090815260076020908152604080832093909416825291909152205460ff1690565b6102df61079536600461369c565b611a36565b3480156107a657600080fd5b506102df6107b5366004613216565b611bee565b3480156107c657600080fd5b506102df6107d5366004613435565b611d1b565b60007fffffffff0000000000000000000000000000000000000000000000000000000082167f80ac58cd00000000000000000000000000000000000000000000000000000000148061086d57507fffffffff0000000000000000000000000000000000000000000000000000000082167f5b5e139f00000000000000000000000000000000000000000000000000000000145b806108b957507f01ffc9a7000000000000000000000000000000000000000000000000000000007fffffffff000000000000000000000000000000000000000000000000000000008316145b92915050565b60085473ffffffffffffffffffffffffffffffffffffffff163314610945576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064015b60405180910390fd5b600d80547fffffffffffffffffffffffff00000000000000000000000000000000000000001673ffffffffffffffffffffffffffffffffffffffff92909216919091179055565b60606002805461099b906136e3565b80601f01602080910402602001604051908101604052809291908181526020018280546109c7906136e3565b8015610a145780601f106109e957610100808354040283529160200191610a14565b820191906000526020600020905b8154815290600101906020018083116109f757829003601f168201915b5050505050905090565b6000610a2982611da8565b610a5f576040517fd803919e00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5060009081526006602052604090205473ffffffffffffffffffffffffffffffffffffffff1690565b6000610a9382610edb565b90508073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff1603610afa576040517f943f7b8c00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b3373ffffffffffffffffffffffffffffffffffffffff821614801590610b51575073ffffffffffffffffffffffffffffffffffffffff8116600090815260076020908152604080832033845290915290205460ff16155b15610b88576040517fcfb3b94200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b610b93838383611e0a565b505050565b60085473ffffffffffffffffffffffffffffffffffffffff163314610c19576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015260640161093c565b60005b83811015610c7e57610c6c858583818110610c3957610c39613736565b9050602002016020810190610c4e9190613216565b848484818110610c6057610c60613736565b90506020020135611e8b565b80610c7681613794565b915050610c1c565b5050505050565b610b9383838361222c565b60085473ffffffffffffffffffffffffffffffffffffffff163314610d11576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015260640161093c565b60095415610d4b576040517f7d6b972400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6000610d586001436137cc565b409050610d6481612722565b50565b60085473ffffffffffffffffffffffffffffffffffffffff163314610de8576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015260640161093c565b600e54604051479173ffffffffffffffffffffffffffffffffffffffff169082156108fc029083906000818181858888f19350505050158015610e2f573d6000803e3d6000fd5b5050565b610b9383838360405180602001604052806000815250611636565b60085473ffffffffffffffffffffffffffffffffffffffff163314610ecf576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015260640161093c565b610b93600b83836130eb565b6000610ee68261276e565b5192915050565b600b8054610efa906136e3565b80601f0160208091040260200160405190810160405280929190818152602001828054610f26906136e3565b8015610f735780601f10610f4857610100808354040283529160200191610f73565b820191906000526020600020905b815481529060010190602001808311610f5657829003601f168201915b505050505081565b600073ffffffffffffffffffffffffffffffffffffffff8216610fca576040517f8f4eb60400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5073ffffffffffffffffffffffffffffffffffffffff166000908152600560205260409020546fffffffffffffffffffffffffffffffff1690565b60085473ffffffffffffffffffffffffffffffffffffffff163314611086576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015260640161093c565b6110906000612874565b565b3373ffffffffffffffffffffffffffffffffffffffff7f00000000000000000000000000000000000000000000000000000000000000001614611131576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601f60248201527f4f6e6c7920565246436f6f7264696e61746f722063616e2066756c66696c6c00604482015260640161093c565b610e2f82826128eb565b60606003805461099b906136e3565b60085473ffffffffffffffffffffffffffffffffffffffff1633146111cb576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015260640161093c565b6040517f70a0823100000000000000000000000000000000000000000000000000000000815230600482015260009073ffffffffffffffffffffffffffffffffffffffff8316906370a0823190602401602060405180830381865afa158015611238573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061125c91906137e3565b600e546040517fa9059cbb00000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff91821660048201526024810183905291925083169063a9059cbb906044016020604051808303816000875af11580156112d7573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610b9391906137fc565b323314611334576040517f9453980400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600a5460ff16611370576040517fc7d08f0400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b80600a10156113ab576040517f4f2a111200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6113bd8167013b7b21280e0000613819565b34146113f5576040517fd2ade55600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b610d643382611e8b565b3373ffffffffffffffffffffffffffffffffffffffff83160361144e576040517fb06307db00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b33600081815260076020908152604080832073ffffffffffffffffffffffffffffffffffffffff87168085529083529281902080547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff001686151590811790915590519081529192917f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a35050565b606060006114f283610f7b565b905060008167ffffffffffffffff81111561150f5761150f613524565b604051908082528060200260200182016040528015611538578160200160208202803683370190505b5090508160000361154a579392505050565b60015460007f00000000000000000000000000000000000000000000000000000000000000005b61159b837f0000000000000000000000000000000000000000000000000000000000000000613856565b81101561162b576115ab81610edb565b73ffffffffffffffffffffffffffffffffffffffff168773ffffffffffffffffffffffffffffffffffffffff1603611619578084836115e981613794565b9450815181106115fb576115fb613736565b60200260200101818152505081850361161957509195945050505050565b8061162381613794565b915050611571565b509195945050505050565b61164184848461222c565b73ffffffffffffffffffffffffffffffffffffffff83163b1580159061172457506040517f150b7a02000000000000000000000000000000000000000000000000000000008082529073ffffffffffffffffffffffffffffffffffffffff85169063150b7a02906116bc90339089908890889060040161386e565b6020604051808303816000875af11580156116db573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906116ff91906138b7565b7fffffffff000000000000000000000000000000000000000000000000000000001614155b1561175b576040517fd1a57ed600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b50505050565b606061176c82611da8565b6117a2576040517fd803919e00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600b80546117af906136e3565b159050806117bd5750600954155b156117f457600c6117cd836128f4565b6040516020016117de9291906138f0565b6040516020818303038152906040529050919050565b6000611823837f0000000000000000000000000000000000000000000000000000000000000000610f30612a31565b9050600b611830826128f4565b6040516020016118419291906138f0565b604051602081830303815290604052915050919050565b60085473ffffffffffffffffffffffffffffffffffffffff1633146118d9576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015260640161093c565b60095415611913576040517f7d6b972400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b610d647f00000000000000000000000000000000000000000000000000000000000000007f0000000000000000000000000000000000000000000000000000000000000000612a56565b60085473ffffffffffffffffffffffffffffffffffffffff1633146119de576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015260640161093c565b600a80547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff00168215151790556040517f59b80aa901783ab6f180a4540267a4a316a93b2e381c26b890d4527d2646c34c90600090a150565b323314611a6f576040517f9453980400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b611ab082828080601f016020809104026020016040519081016040528093929190818152602001838380828437600092019190915250879250612bda915050565b611ae6576040517f8baa579f00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b82600a1015611b21576040517f4c3ff92d00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b611b33846701140bbd030c4000613819565b3414611b6b576040517fd2ade55600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b3360009081526005602052604090205470010000000000000000000000000000000090046fffffffffffffffffffffffffffffffff1683611bac8683613856565b1115611be4576040517f4f2a111200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b610c7e3386611e8b565b60085473ffffffffffffffffffffffffffffffffffffffff163314611c6f576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015260640161093c565b73ffffffffffffffffffffffffffffffffffffffff8116611d12576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201527f6464726573730000000000000000000000000000000000000000000000000000606482015260840161093c565b610d6481612874565b60085473ffffffffffffffffffffffffffffffffffffffff163314611d9c576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015260640161093c565b610b93600c83836130eb565b6000817f0000000000000000000000000000000000000000000000000000000000000000111580156108b95750600154611e02907f0000000000000000000000000000000000000000000000000000000000000000613856565b821092915050565b60008281526006602052604080822080547fffffffffffffffffffffffff00000000000000000000000000000000000000001673ffffffffffffffffffffffffffffffffffffffff87811691821790925591518593918516917f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92591a4505050565b6001547f0000000000000000000000000000000000000000000000000000000000000000810173ffffffffffffffffffffffffffffffffffffffff8416611efe576040517f2e07630000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b82600003611f38576040517fb562e8dd00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b7f00000000000000000000000000000000000000000000000000000000000000008383011115611f94576040517fb09821fc00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b73ffffffffffffffffffffffffffffffffffffffff84166000908152600560209081526040918290208251808401909352546fffffffffffffffffffffffffffffffff8082168452700100000000000000000000000000000000909104169082018190527f000000000000000000000000000000000000000000000000000000000000000090850111801561203e575073ffffffffffffffffffffffffffffffffffffffff851633145b801561204a5750303b15155b15612081576040517f94d7a27600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b60408051808201825282516fffffffffffffffffffffffffffffffff908701811682526020808501518801821681840190815273ffffffffffffffffffffffffffffffffffffffff808b16600081815260058552878120965193518616700100000000000000000000000000000000029390951692909217909455845160608101865290815266ffffffffffffff4281168284019081528287018581528986526004909452958420915182549651935115157b01000000000000000000000000000000000000000000000000000000027fffffffff00ffffffffffffffffffffffffffffffffffffffffffffffffffffff9490921674010000000000000000000000000000000000000000027fffffffffff0000000000000000000000000000000000000000000000000000009097169516949094179490941716919091179091555b8481101561221b576040518382019073ffffffffffffffffffffffffffffffffffffffff8816906000907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a46001016121c4565b505060018054909301909255505050565b60006122378261276e565b90508373ffffffffffffffffffffffffffffffffffffffff16816000015173ffffffffffffffffffffffffffffffffffffffff16146122a2576040517fa114810000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b60003373ffffffffffffffffffffffffffffffffffffffff861614806122f8575073ffffffffffffffffffffffffffffffffffffffff8516600090815260076020908152604080832033845290915290205460ff165b8061232057503361230884610a1e565b73ffffffffffffffffffffffffffffffffffffffff16145b905080612359576040517f59c896be00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b73ffffffffffffffffffffffffffffffffffffffff84166123a6576040517fea553b3400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600083815260066020908152604080832080547fffffffffffffffffffffffff000000000000000000000000000000000000000016905573ffffffffffffffffffffffffffffffffffffffff88811684526005835281842080547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff6fffffffffffffffffffffffffffffffff8083169190910181167fffffffffffffffffffffffffffffffff000000000000000000000000000000009283161790925589831680875284872080548085166001908101909516931692909217909155835160608101855290815266ffffffffffffff4281168287019081528286018481528b8952600490975296859020915182549751965115157b01000000000000000000000000000000000000000000000000000000027fffffffff00ffffffffffffffffffffffffffffffffffffffffffffffffffffff9790921674010000000000000000000000000000000000000000027fffffffffff0000000000000000000000000000000000000000000000000000009098169416939093179590951793909316179092559083015190840190158015612581575060008181526004602052604090205473ffffffffffffffffffffffffffffffffffffffff16155b80156125ce57507f00000000000000000000000000000000000000000000000000000000000000007f00000000000000000000000000000000000000000000000000000000000000000181105b156126bf576040805160608101825273ffffffffffffffffffffffffffffffffffffffff808916825260208681015166ffffffffffffff9081168285019081526000858701818152888252600490945295909520935184549551925115157b01000000000000000000000000000000000000000000000000000000027fffffffff00ffffffffffffffffffffffffffffffffffffffffffffffffffffff9390921674010000000000000000000000000000000000000000027fffffffffff00000000000000000000000000000000000000000000000000000090961693169290921793909317929092169190911790555b50828473ffffffffffffffffffffffffffffffffffffffff168673ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a45050505050565b61274f620186a07fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff6137cc565b811161275b5780612768565b612768620186a0826137cc565b60095550565b604080516060810182526000808252602082018190529181019190915261279482611da8565b6127ca576040517fd803919e00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b815b6000818152600460209081526040918290208251606081018452905473ffffffffffffffffffffffffffffffffffffffff811680835274010000000000000000000000000000000000000000820466ffffffffffffff16938301939093527b01000000000000000000000000000000000000000000000000000000900460ff1615159281019290925215612861579392505050565b508061286c816139f3565b9150506127cc565b6008805473ffffffffffffffffffffffffffffffffffffffff8381167fffffffffffffffffffffffff0000000000000000000000000000000000000000831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b610e2f81612722565b60608160000361293757505060408051808201909152600181527f3000000000000000000000000000000000000000000000000000000000000000602082015290565b8160005b8115612961578061294b81613794565b915061295a9050600a83613a57565b915061293b565b60008167ffffffffffffffff81111561297c5761297c613524565b6040519080825280601f01601f1916602001820160405280156129a6576020820181803683370190505b5090505b8415612a29576129bb6001836137cc565b91506129c8600a86613a6b565b6129d3906030613856565b60f81b8183815181106129e8576129e8613736565b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a905350612a22600a86613a57565b94506129aa565b949350505050565b60008184600954612a429190613856565b612a4c9190613a6b565b612a299084613856565b60007f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff16634000aea07f000000000000000000000000000000000000000000000000000000000000000084866000604051602001612ad3929190918252602082015260400190565b6040516020818303038152906040526040518463ffffffff1660e01b8152600401612b0093929190613a7f565b6020604051808303816000875af1158015612b1f573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612b4391906137fc565b5060008381526020818152604080832054815180840188905280830185905230606082015260808082018390528351808303909101815260a090910190925281519183019190912086845292909152612b9d906001613856565b6000858152602081815260409182902092909255805180830187905280820184905281518082038301815260609091019091528051910120612a29565b60408051306020808301919091523382840152606080830185905283518084039091018152608083018452805190820120600d547f19457468657265756d205369676e6564204d6573736167653a0a33320000000060a085015260bc8085018390528551808603909101815260dc9094019094528251929091019190912060009273ffffffffffffffffffffffffffffffffffffffff1690612c7c9086612c9b565b73ffffffffffffffffffffffffffffffffffffffff1614949350505050565b6000806000612caa8585612cbf565b91509150612cb781612d2d565b509392505050565b6000808251604103612cf55760208301516040840151606085015160001a612ce987828585612f81565b94509450505050612d26565b8251604003612d1e5760208301516040840151612d13868383613099565b935093505050612d26565b506000905060025b9250929050565b6000816004811115612d4157612d41613abd565b03612d495750565b6001816004811115612d5d57612d5d613abd565b03612dc4576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601860248201527f45434453413a20696e76616c6964207369676e61747572650000000000000000604482015260640161093c565b6002816004811115612dd857612dd8613abd565b03612e3f576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601f60248201527f45434453413a20696e76616c6964207369676e6174757265206c656e67746800604482015260640161093c565b6003816004811115612e5357612e53613abd565b03612ee0576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602260248201527f45434453413a20696e76616c6964207369676e6174757265202773272076616c60448201527f7565000000000000000000000000000000000000000000000000000000000000606482015260840161093c565b6004816004811115612ef457612ef4613abd565b03610d64576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602260248201527f45434453413a20696e76616c6964207369676e6174757265202776272076616c60448201527f7565000000000000000000000000000000000000000000000000000000000000606482015260840161093c565b6000807f7fffffffffffffffffffffffffffffff5d576e7357a4501ddfe92f46681b20a0831115612fb85750600090506003613090565b8460ff16601b14158015612fd057508460ff16601c14155b15612fe15750600090506004613090565b6040805160008082526020820180845289905260ff881692820192909252606081018690526080810185905260019060a0016020604051602081039080840390855afa158015613035573d6000803e3d6000fd5b50506040517fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0015191505073ffffffffffffffffffffffffffffffffffffffff811661308957600060019250925050613090565b9150600090505b94509492505050565b6000807f7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff8316816130cf60ff86901c601b613856565b90506130dd87828885612f81565b935093505050935093915050565b8280546130f7906136e3565b90600052602060002090601f016020900481019282613119576000855561317d565b82601f10613150578280017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0082351617855561317d565b8280016001018555821561317d579182015b8281111561317d578235825591602001919060010190613162565b5061318992915061318d565b5090565b5b80821115613189576000815560010161318e565b7fffffffff0000000000000000000000000000000000000000000000000000000081168114610d6457600080fd5b6000602082840312156131e257600080fd5b81356131ed816131a2565b9392505050565b73ffffffffffffffffffffffffffffffffffffffff81168114610d6457600080fd5b60006020828403121561322857600080fd5b81356131ed816131f4565b60005b8381101561324e578181015183820152602001613236565b8381111561175b5750506000910152565b60008151808452613277816020860160208601613233565b601f017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0169290920160200192915050565b6020815260006131ed602083018461325f565b6000602082840312156132ce57600080fd5b5035919050565b600080604083850312156132e857600080fd5b82356132f3816131f4565b946020939093013593505050565b60008083601f84011261331357600080fd5b50813567ffffffffffffffff81111561332b57600080fd5b6020830191508360208260051b8501011115612d2657600080fd5b6000806000806040858703121561335c57600080fd5b843567ffffffffffffffff8082111561337457600080fd5b61338088838901613301565b9096509450602087013591508082111561339957600080fd5b506133a687828801613301565b95989497509550505050565b6000806000606084860312156133c757600080fd5b83356133d2816131f4565b925060208401356133e2816131f4565b929592945050506040919091013590565b60008083601f84011261340557600080fd5b50813567ffffffffffffffff81111561341d57600080fd5b602083019150836020828501011115612d2657600080fd5b6000806020838503121561344857600080fd5b823567ffffffffffffffff81111561345f57600080fd5b61346b858286016133f3565b90969095509350505050565b6000806040838503121561348a57600080fd5b50508035926020909101359150565b8015158114610d6457600080fd5b600080604083850312156134ba57600080fd5b82356134c5816131f4565b915060208301356134d581613499565b809150509250929050565b6020808252825182820181905260009190848201906040850190845b81811015613518578351835292840192918401916001016134fc565b50909695505050505050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b6000806000806080858703121561356957600080fd5b8435613574816131f4565b93506020850135613584816131f4565b925060408501359150606085013567ffffffffffffffff808211156135a857600080fd5b818701915087601f8301126135bc57600080fd5b8135818111156135ce576135ce613524565b604051601f82017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0908116603f0116810190838211818310171561361457613614613524565b816040528281528a602084870101111561362d57600080fd5b82602086016020830137600060208483010152809550505050505092959194509250565b60006020828403121561366357600080fd5b81356131ed81613499565b6000806040838503121561368157600080fd5b823561368c816131f4565b915060208301356134d5816131f4565b600080600080606085870312156136b257600080fd5b8435935060208501359250604085013567ffffffffffffffff8111156136d757600080fd5b6133a6878288016133f3565b600181811c908216806136f757607f821691505b602082108103613730577f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b50919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b60007fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff82036137c5576137c5613765565b5060010190565b6000828210156137de576137de613765565b500390565b6000602082840312156137f557600080fd5b5051919050565b60006020828403121561380e57600080fd5b81516131ed81613499565b6000817fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff048311821515161561385157613851613765565b500290565b6000821982111561386957613869613765565b500190565b600073ffffffffffffffffffffffffffffffffffffffff8087168352808616602084015250836040830152608060608301526138ad608083018461325f565b9695505050505050565b6000602082840312156138c957600080fd5b81516131ed816131a2565b600081516138e6818560208601613233565b9290920192915050565b600080845481600182811c91508083168061390c57607f831692505b60208084108203613944577f4e487b710000000000000000000000000000000000000000000000000000000086526022600452602486fd5b8180156139585760018114613987576139b4565b7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff008616895284890196506139b4565b60008b81526020902060005b868110156139ac5781548b820152908501908301613993565b505084890196505b5050505050506139c481856138d4565b7f2e6a736f6e000000000000000000000000000000000000000000000000000000815260050195945050505050565b600081613a0257613a02613765565b507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0190565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b600082613a6657613a66613a28565b500490565b600082613a7a57613a7a613a28565b500690565b73ffffffffffffffffffffffffffffffffffffffff84168152826020820152606060408201526000613ab4606083018461325f565b95945050505050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602160045260246000fdfea2646970667358221220690a9ce0c8bd7a311ba7c1b22d346551ed2a888961c90de0705f4eb6fb660ad564736f6c634300080d0033697066733a2f2f516d52755159786d647a7166566679385a685a4e547658736d624e39794c6e4246504465637a46765755533248552f
Deployed Bytecode
0x6080604052600436106102855760003560e01c80638da5cb5b11610153578063bc8893b4116100cb578063e2e06fa31161007f578063ec596b7211610064578063ec596b7214610787578063f2fde38b1461079a578063fe2c7fee146107ba57600080fd5b8063e2e06fa314610711578063e985e9c51461073157600080fd5b8063c87b56dd116100b0578063c87b56dd146106a9578063cb774d47146106c9578063e1da26c6146106fc57600080fd5b8063bc8893b414610662578063c5f956af1461067c57600080fd5b8063a0712d6811610122578063a3b261f211610107578063a3b261f2146105fe578063aaab63391461062b578063b88d4fde1461064257600080fd5b8063a0712d68146105cb578063a22cb465146105de57600080fd5b80638da5cb5b1461054b57806394985ddd1461057657806395d89b41146105965780639be65a60146105ab57600080fd5b806323b872dd116102015780635b7633d0116101b55780636c0360eb1161019a5780636c0360eb1461050157806370a0823114610516578063715018a61461053657600080fd5b80635b7633d0146104b45780636352211e146104e157600080fd5b80633ccfd60b116101e65780633ccfd60b1461045f57806342842e0e1461047457806355f804b31461049457600080fd5b806323b872dd1461042a5780633307dcfe1461044a57600080fd5b8063095ea7b31161025857806318160ddd1161023d57806318160ddd1461038c57806320fc7eb2146103a157806322a2eced1461040a57600080fd5b8063095ea7b3146103485780630b747d911461036857600080fd5b806301ffc9a71461028a578063046dc166146102bf57806306fdde03146102e1578063081812fc14610303575b600080fd5b34801561029657600080fd5b506102aa6102a53660046131d0565b6107da565b60405190151581526020015b60405180910390f35b3480156102cb57600080fd5b506102df6102da366004613216565b6108bf565b005b3480156102ed57600080fd5b506102f661098c565b6040516102b691906132a9565b34801561030f57600080fd5b5061032361031e3660046132bc565b610a1e565b60405173ffffffffffffffffffffffffffffffffffffffff90911681526020016102b6565b34801561035457600080fd5b506102df6103633660046132d5565b610a88565b34801561037457600080fd5b5061037e60095481565b6040519081526020016102b6565b34801561039857600080fd5b5060015461037e565b3480156103ad57600080fd5b5061037e6103bc366004613216565b73ffffffffffffffffffffffffffffffffffffffff1660009081526005602052604090205470010000000000000000000000000000000090046fffffffffffffffffffffffffffffffff1690565b34801561041657600080fd5b506102df610425366004613346565b610b98565b34801561043657600080fd5b506102df6104453660046133b2565b610c85565b34801561045657600080fd5b506102df610c90565b34801561046b57600080fd5b506102df610d67565b34801561048057600080fd5b506102df61048f3660046133b2565b610e33565b3480156104a057600080fd5b506102df6104af366004613435565b610e4e565b3480156104c057600080fd5b50600d546103239073ffffffffffffffffffffffffffffffffffffffff1681565b3480156104ed57600080fd5b506103236104fc3660046132bc565b610edb565b34801561050d57600080fd5b506102f6610eed565b34801561052257600080fd5b5061037e610531366004613216565b610f7b565b34801561054257600080fd5b506102df611005565b34801561055757600080fd5b5060085473ffffffffffffffffffffffffffffffffffffffff16610323565b34801561058257600080fd5b506102df610591366004613477565b611092565b3480156105a257600080fd5b506102f661113b565b3480156105b757600080fd5b506102df6105c6366004613216565b61114a565b6102df6105d93660046132bc565b6112fb565b3480156105ea57600080fd5b506102df6105f93660046134a7565b6113ff565b34801561060a57600080fd5b5061061e610619366004613216565b6114e5565b6040516102b691906134e0565b34801561063757600080fd5b5060095415156102aa565b34801561064e57600080fd5b506102df61065d366004613553565b611636565b34801561066e57600080fd5b50600a546102aa9060ff1681565b34801561068857600080fd5b50600e546103239073ffffffffffffffffffffffffffffffffffffffff1681565b3480156106b557600080fd5b506102f66106c43660046132bc565b611761565b3480156106d557600080fd5b507f000000000000000000000000000000000000000000000000000000000000000161037e565b34801561070857600080fd5b506102df611858565b34801561071d57600080fd5b506102df61072c366004613651565b61195d565b34801561073d57600080fd5b506102aa61074c36600461366e565b73ffffffffffffffffffffffffffffffffffffffff918216600090815260076020908152604080832093909416825291909152205460ff1690565b6102df61079536600461369c565b611a36565b3480156107a657600080fd5b506102df6107b5366004613216565b611bee565b3480156107c657600080fd5b506102df6107d5366004613435565b611d1b565b60007fffffffff0000000000000000000000000000000000000000000000000000000082167f80ac58cd00000000000000000000000000000000000000000000000000000000148061086d57507fffffffff0000000000000000000000000000000000000000000000000000000082167f5b5e139f00000000000000000000000000000000000000000000000000000000145b806108b957507f01ffc9a7000000000000000000000000000000000000000000000000000000007fffffffff000000000000000000000000000000000000000000000000000000008316145b92915050565b60085473ffffffffffffffffffffffffffffffffffffffff163314610945576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064015b60405180910390fd5b600d80547fffffffffffffffffffffffff00000000000000000000000000000000000000001673ffffffffffffffffffffffffffffffffffffffff92909216919091179055565b60606002805461099b906136e3565b80601f01602080910402602001604051908101604052809291908181526020018280546109c7906136e3565b8015610a145780601f106109e957610100808354040283529160200191610a14565b820191906000526020600020905b8154815290600101906020018083116109f757829003601f168201915b5050505050905090565b6000610a2982611da8565b610a5f576040517fd803919e00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5060009081526006602052604090205473ffffffffffffffffffffffffffffffffffffffff1690565b6000610a9382610edb565b90508073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff1603610afa576040517f943f7b8c00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b3373ffffffffffffffffffffffffffffffffffffffff821614801590610b51575073ffffffffffffffffffffffffffffffffffffffff8116600090815260076020908152604080832033845290915290205460ff16155b15610b88576040517fcfb3b94200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b610b93838383611e0a565b505050565b60085473ffffffffffffffffffffffffffffffffffffffff163314610c19576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015260640161093c565b60005b83811015610c7e57610c6c858583818110610c3957610c39613736565b9050602002016020810190610c4e9190613216565b848484818110610c6057610c60613736565b90506020020135611e8b565b80610c7681613794565b915050610c1c565b5050505050565b610b9383838361222c565b60085473ffffffffffffffffffffffffffffffffffffffff163314610d11576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015260640161093c565b60095415610d4b576040517f7d6b972400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6000610d586001436137cc565b409050610d6481612722565b50565b60085473ffffffffffffffffffffffffffffffffffffffff163314610de8576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015260640161093c565b600e54604051479173ffffffffffffffffffffffffffffffffffffffff169082156108fc029083906000818181858888f19350505050158015610e2f573d6000803e3d6000fd5b5050565b610b9383838360405180602001604052806000815250611636565b60085473ffffffffffffffffffffffffffffffffffffffff163314610ecf576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015260640161093c565b610b93600b83836130eb565b6000610ee68261276e565b5192915050565b600b8054610efa906136e3565b80601f0160208091040260200160405190810160405280929190818152602001828054610f26906136e3565b8015610f735780601f10610f4857610100808354040283529160200191610f73565b820191906000526020600020905b815481529060010190602001808311610f5657829003601f168201915b505050505081565b600073ffffffffffffffffffffffffffffffffffffffff8216610fca576040517f8f4eb60400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5073ffffffffffffffffffffffffffffffffffffffff166000908152600560205260409020546fffffffffffffffffffffffffffffffff1690565b60085473ffffffffffffffffffffffffffffffffffffffff163314611086576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015260640161093c565b6110906000612874565b565b3373ffffffffffffffffffffffffffffffffffffffff7f000000000000000000000000f0d54349addcf704f77ae15b96510dea15cb79521614611131576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601f60248201527f4f6e6c7920565246436f6f7264696e61746f722063616e2066756c66696c6c00604482015260640161093c565b610e2f82826128eb565b60606003805461099b906136e3565b60085473ffffffffffffffffffffffffffffffffffffffff1633146111cb576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015260640161093c565b6040517f70a0823100000000000000000000000000000000000000000000000000000000815230600482015260009073ffffffffffffffffffffffffffffffffffffffff8316906370a0823190602401602060405180830381865afa158015611238573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061125c91906137e3565b600e546040517fa9059cbb00000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff91821660048201526024810183905291925083169063a9059cbb906044016020604051808303816000875af11580156112d7573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610b9391906137fc565b323314611334576040517f9453980400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600a5460ff16611370576040517fc7d08f0400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b80600a10156113ab576040517f4f2a111200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6113bd8167013b7b21280e0000613819565b34146113f5576040517fd2ade55600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b610d643382611e8b565b3373ffffffffffffffffffffffffffffffffffffffff83160361144e576040517fb06307db00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b33600081815260076020908152604080832073ffffffffffffffffffffffffffffffffffffffff87168085529083529281902080547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff001686151590811790915590519081529192917f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a35050565b606060006114f283610f7b565b905060008167ffffffffffffffff81111561150f5761150f613524565b604051908082528060200260200182016040528015611538578160200160208202803683370190505b5090508160000361154a579392505050565b60015460007f00000000000000000000000000000000000000000000000000000000000000015b61159b837f0000000000000000000000000000000000000000000000000000000000000001613856565b81101561162b576115ab81610edb565b73ffffffffffffffffffffffffffffffffffffffff168773ffffffffffffffffffffffffffffffffffffffff1603611619578084836115e981613794565b9450815181106115fb576115fb613736565b60200260200101818152505081850361161957509195945050505050565b8061162381613794565b915050611571565b509195945050505050565b61164184848461222c565b73ffffffffffffffffffffffffffffffffffffffff83163b1580159061172457506040517f150b7a02000000000000000000000000000000000000000000000000000000008082529073ffffffffffffffffffffffffffffffffffffffff85169063150b7a02906116bc90339089908890889060040161386e565b6020604051808303816000875af11580156116db573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906116ff91906138b7565b7fffffffff000000000000000000000000000000000000000000000000000000001614155b1561175b576040517fd1a57ed600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b50505050565b606061176c82611da8565b6117a2576040517fd803919e00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600b80546117af906136e3565b159050806117bd5750600954155b156117f457600c6117cd836128f4565b6040516020016117de9291906138f0565b6040516020818303038152906040529050919050565b6000611823837f0000000000000000000000000000000000000000000000000000000000000001610f30612a31565b9050600b611830826128f4565b6040516020016118419291906138f0565b604051602081830303815290604052915050919050565b60085473ffffffffffffffffffffffffffffffffffffffff1633146118d9576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015260640161093c565b60095415611913576040517f7d6b972400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b610d647faa77729d3466ca35ae8d28b3bbac7cc36a5031efdc430821c02bc31a238af4457f0000000000000000000000000000000000000000000000001bc16d674ec80000612a56565b60085473ffffffffffffffffffffffffffffffffffffffff1633146119de576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015260640161093c565b600a80547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff00168215151790556040517f59b80aa901783ab6f180a4540267a4a316a93b2e381c26b890d4527d2646c34c90600090a150565b323314611a6f576040517f9453980400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b611ab082828080601f016020809104026020016040519081016040528093929190818152602001838380828437600092019190915250879250612bda915050565b611ae6576040517f8baa579f00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b82600a1015611b21576040517f4c3ff92d00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b611b33846701140bbd030c4000613819565b3414611b6b576040517fd2ade55600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b3360009081526005602052604090205470010000000000000000000000000000000090046fffffffffffffffffffffffffffffffff1683611bac8683613856565b1115611be4576040517f4f2a111200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b610c7e3386611e8b565b60085473ffffffffffffffffffffffffffffffffffffffff163314611c6f576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015260640161093c565b73ffffffffffffffffffffffffffffffffffffffff8116611d12576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201527f6464726573730000000000000000000000000000000000000000000000000000606482015260840161093c565b610d6481612874565b60085473ffffffffffffffffffffffffffffffffffffffff163314611d9c576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015260640161093c565b610b93600c83836130eb565b6000817f0000000000000000000000000000000000000000000000000000000000000001111580156108b95750600154611e02907f0000000000000000000000000000000000000000000000000000000000000001613856565b821092915050565b60008281526006602052604080822080547fffffffffffffffffffffffff00000000000000000000000000000000000000001673ffffffffffffffffffffffffffffffffffffffff87811691821790925591518593918516917f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92591a4505050565b6001547f0000000000000000000000000000000000000000000000000000000000000001810173ffffffffffffffffffffffffffffffffffffffff8416611efe576040517f2e07630000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b82600003611f38576040517fb562e8dd00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b7f0000000000000000000000000000000000000000000000000000000000000f308383011115611f94576040517fb09821fc00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b73ffffffffffffffffffffffffffffffffffffffff84166000908152600560209081526040918290208251808401909352546fffffffffffffffffffffffffffffffff8082168452700100000000000000000000000000000000909104169082018190527f000000000000000000000000000000000000000000000000000000000000001490850111801561203e575073ffffffffffffffffffffffffffffffffffffffff851633145b801561204a5750303b15155b15612081576040517f94d7a27600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b60408051808201825282516fffffffffffffffffffffffffffffffff908701811682526020808501518801821681840190815273ffffffffffffffffffffffffffffffffffffffff808b16600081815260058552878120965193518616700100000000000000000000000000000000029390951692909217909455845160608101865290815266ffffffffffffff4281168284019081528287018581528986526004909452958420915182549651935115157b01000000000000000000000000000000000000000000000000000000027fffffffff00ffffffffffffffffffffffffffffffffffffffffffffffffffffff9490921674010000000000000000000000000000000000000000027fffffffffff0000000000000000000000000000000000000000000000000000009097169516949094179490941716919091179091555b8481101561221b576040518382019073ffffffffffffffffffffffffffffffffffffffff8816906000907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a46001016121c4565b505060018054909301909255505050565b60006122378261276e565b90508373ffffffffffffffffffffffffffffffffffffffff16816000015173ffffffffffffffffffffffffffffffffffffffff16146122a2576040517fa114810000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b60003373ffffffffffffffffffffffffffffffffffffffff861614806122f8575073ffffffffffffffffffffffffffffffffffffffff8516600090815260076020908152604080832033845290915290205460ff165b8061232057503361230884610a1e565b73ffffffffffffffffffffffffffffffffffffffff16145b905080612359576040517f59c896be00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b73ffffffffffffffffffffffffffffffffffffffff84166123a6576040517fea553b3400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600083815260066020908152604080832080547fffffffffffffffffffffffff000000000000000000000000000000000000000016905573ffffffffffffffffffffffffffffffffffffffff88811684526005835281842080547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff6fffffffffffffffffffffffffffffffff8083169190910181167fffffffffffffffffffffffffffffffff000000000000000000000000000000009283161790925589831680875284872080548085166001908101909516931692909217909155835160608101855290815266ffffffffffffff4281168287019081528286018481528b8952600490975296859020915182549751965115157b01000000000000000000000000000000000000000000000000000000027fffffffff00ffffffffffffffffffffffffffffffffffffffffffffffffffffff9790921674010000000000000000000000000000000000000000027fffffffffff0000000000000000000000000000000000000000000000000000009098169416939093179590951793909316179092559083015190840190158015612581575060008181526004602052604090205473ffffffffffffffffffffffffffffffffffffffff16155b80156125ce57507f0000000000000000000000000000000000000000000000000000000000000f307f00000000000000000000000000000000000000000000000000000000000000010181105b156126bf576040805160608101825273ffffffffffffffffffffffffffffffffffffffff808916825260208681015166ffffffffffffff9081168285019081526000858701818152888252600490945295909520935184549551925115157b01000000000000000000000000000000000000000000000000000000027fffffffff00ffffffffffffffffffffffffffffffffffffffffffffffffffffff9390921674010000000000000000000000000000000000000000027fffffffffff00000000000000000000000000000000000000000000000000000090961693169290921793909317929092169190911790555b50828473ffffffffffffffffffffffffffffffffffffffff168673ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a45050505050565b61274f620186a07fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff6137cc565b811161275b5780612768565b612768620186a0826137cc565b60095550565b604080516060810182526000808252602082018190529181019190915261279482611da8565b6127ca576040517fd803919e00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b815b6000818152600460209081526040918290208251606081018452905473ffffffffffffffffffffffffffffffffffffffff811680835274010000000000000000000000000000000000000000820466ffffffffffffff16938301939093527b01000000000000000000000000000000000000000000000000000000900460ff1615159281019290925215612861579392505050565b508061286c816139f3565b9150506127cc565b6008805473ffffffffffffffffffffffffffffffffffffffff8381167fffffffffffffffffffffffff0000000000000000000000000000000000000000831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b610e2f81612722565b60608160000361293757505060408051808201909152600181527f3000000000000000000000000000000000000000000000000000000000000000602082015290565b8160005b8115612961578061294b81613794565b915061295a9050600a83613a57565b915061293b565b60008167ffffffffffffffff81111561297c5761297c613524565b6040519080825280601f01601f1916602001820160405280156129a6576020820181803683370190505b5090505b8415612a29576129bb6001836137cc565b91506129c8600a86613a6b565b6129d3906030613856565b60f81b8183815181106129e8576129e8613736565b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a905350612a22600a86613a57565b94506129aa565b949350505050565b60008184600954612a429190613856565b612a4c9190613a6b565b612a299084613856565b60007f000000000000000000000000514910771af9ca656af840dff83e8264ecf986ca73ffffffffffffffffffffffffffffffffffffffff16634000aea07f000000000000000000000000f0d54349addcf704f77ae15b96510dea15cb795284866000604051602001612ad3929190918252602082015260400190565b6040516020818303038152906040526040518463ffffffff1660e01b8152600401612b0093929190613a7f565b6020604051808303816000875af1158015612b1f573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612b4391906137fc565b5060008381526020818152604080832054815180840188905280830185905230606082015260808082018390528351808303909101815260a090910190925281519183019190912086845292909152612b9d906001613856565b6000858152602081815260409182902092909255805180830187905280820184905281518082038301815260609091019091528051910120612a29565b60408051306020808301919091523382840152606080830185905283518084039091018152608083018452805190820120600d547f19457468657265756d205369676e6564204d6573736167653a0a33320000000060a085015260bc8085018390528551808603909101815260dc9094019094528251929091019190912060009273ffffffffffffffffffffffffffffffffffffffff1690612c7c9086612c9b565b73ffffffffffffffffffffffffffffffffffffffff1614949350505050565b6000806000612caa8585612cbf565b91509150612cb781612d2d565b509392505050565b6000808251604103612cf55760208301516040840151606085015160001a612ce987828585612f81565b94509450505050612d26565b8251604003612d1e5760208301516040840151612d13868383613099565b935093505050612d26565b506000905060025b9250929050565b6000816004811115612d4157612d41613abd565b03612d495750565b6001816004811115612d5d57612d5d613abd565b03612dc4576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601860248201527f45434453413a20696e76616c6964207369676e61747572650000000000000000604482015260640161093c565b6002816004811115612dd857612dd8613abd565b03612e3f576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601f60248201527f45434453413a20696e76616c6964207369676e6174757265206c656e67746800604482015260640161093c565b6003816004811115612e5357612e53613abd565b03612ee0576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602260248201527f45434453413a20696e76616c6964207369676e6174757265202773272076616c60448201527f7565000000000000000000000000000000000000000000000000000000000000606482015260840161093c565b6004816004811115612ef457612ef4613abd565b03610d64576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602260248201527f45434453413a20696e76616c6964207369676e6174757265202776272076616c60448201527f7565000000000000000000000000000000000000000000000000000000000000606482015260840161093c565b6000807f7fffffffffffffffffffffffffffffff5d576e7357a4501ddfe92f46681b20a0831115612fb85750600090506003613090565b8460ff16601b14158015612fd057508460ff16601c14155b15612fe15750600090506004613090565b6040805160008082526020820180845289905260ff881692820192909252606081018690526080810185905260019060a0016020604051602081039080840390855afa158015613035573d6000803e3d6000fd5b50506040517fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0015191505073ffffffffffffffffffffffffffffffffffffffff811661308957600060019250925050613090565b9150600090505b94509492505050565b6000807f7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff8316816130cf60ff86901c601b613856565b90506130dd87828885612f81565b935093505050935093915050565b8280546130f7906136e3565b90600052602060002090601f016020900481019282613119576000855561317d565b82601f10613150578280017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0082351617855561317d565b8280016001018555821561317d579182015b8281111561317d578235825591602001919060010190613162565b5061318992915061318d565b5090565b5b80821115613189576000815560010161318e565b7fffffffff0000000000000000000000000000000000000000000000000000000081168114610d6457600080fd5b6000602082840312156131e257600080fd5b81356131ed816131a2565b9392505050565b73ffffffffffffffffffffffffffffffffffffffff81168114610d6457600080fd5b60006020828403121561322857600080fd5b81356131ed816131f4565b60005b8381101561324e578181015183820152602001613236565b8381111561175b5750506000910152565b60008151808452613277816020860160208601613233565b601f017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0169290920160200192915050565b6020815260006131ed602083018461325f565b6000602082840312156132ce57600080fd5b5035919050565b600080604083850312156132e857600080fd5b82356132f3816131f4565b946020939093013593505050565b60008083601f84011261331357600080fd5b50813567ffffffffffffffff81111561332b57600080fd5b6020830191508360208260051b8501011115612d2657600080fd5b6000806000806040858703121561335c57600080fd5b843567ffffffffffffffff8082111561337457600080fd5b61338088838901613301565b9096509450602087013591508082111561339957600080fd5b506133a687828801613301565b95989497509550505050565b6000806000606084860312156133c757600080fd5b83356133d2816131f4565b925060208401356133e2816131f4565b929592945050506040919091013590565b60008083601f84011261340557600080fd5b50813567ffffffffffffffff81111561341d57600080fd5b602083019150836020828501011115612d2657600080fd5b6000806020838503121561344857600080fd5b823567ffffffffffffffff81111561345f57600080fd5b61346b858286016133f3565b90969095509350505050565b6000806040838503121561348a57600080fd5b50508035926020909101359150565b8015158114610d6457600080fd5b600080604083850312156134ba57600080fd5b82356134c5816131f4565b915060208301356134d581613499565b809150509250929050565b6020808252825182820181905260009190848201906040850190845b81811015613518578351835292840192918401916001016134fc565b50909695505050505050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b6000806000806080858703121561356957600080fd5b8435613574816131f4565b93506020850135613584816131f4565b925060408501359150606085013567ffffffffffffffff808211156135a857600080fd5b818701915087601f8301126135bc57600080fd5b8135818111156135ce576135ce613524565b604051601f82017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0908116603f0116810190838211818310171561361457613614613524565b816040528281528a602084870101111561362d57600080fd5b82602086016020830137600060208483010152809550505050505092959194509250565b60006020828403121561366357600080fd5b81356131ed81613499565b6000806040838503121561368157600080fd5b823561368c816131f4565b915060208301356134d5816131f4565b600080600080606085870312156136b257600080fd5b8435935060208501359250604085013567ffffffffffffffff8111156136d757600080fd5b6133a6878288016133f3565b600181811c908216806136f757607f821691505b602082108103613730577f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b50919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b60007fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff82036137c5576137c5613765565b5060010190565b6000828210156137de576137de613765565b500390565b6000602082840312156137f557600080fd5b5051919050565b60006020828403121561380e57600080fd5b81516131ed81613499565b6000817fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff048311821515161561385157613851613765565b500290565b6000821982111561386957613869613765565b500190565b600073ffffffffffffffffffffffffffffffffffffffff8087168352808616602084015250836040830152608060608301526138ad608083018461325f565b9695505050505050565b6000602082840312156138c957600080fd5b81516131ed816131a2565b600081516138e6818560208601613233565b9290920192915050565b600080845481600182811c91508083168061390c57607f831692505b60208084108203613944577f4e487b710000000000000000000000000000000000000000000000000000000086526022600452602486fd5b8180156139585760018114613987576139b4565b7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff008616895284890196506139b4565b60008b81526020902060005b868110156139ac5781548b820152908501908301613993565b505084890196505b5050505050506139c481856138d4565b7f2e6a736f6e000000000000000000000000000000000000000000000000000000815260050195945050505050565b600081613a0257613a02613765565b507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0190565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b600082613a6657613a66613a28565b500490565b600082613a7a57613a7a613a28565b500690565b73ffffffffffffffffffffffffffffffffffffffff84168152826020820152606060408201526000613ab4606083018461325f565b95945050505050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602160045260246000fdfea2646970667358221220690a9ce0c8bd7a311ba7c1b22d346551ed2a888961c90de0705f4eb6fb660ad564736f6c634300080d0033
Loading...
Loading
Loading...
Loading
[ Download: CSV Export ]
[ Download: CSV Export ]
A token is a representation of an on-chain or off-chain asset. The token page shows information such as price, total supply, holders, transfers and social links. Learn more about this page in our Knowledge Base.