Feature Tip: Add private address tag to any address under My Name Tag !
More Info
Private Name Tags
ContractCreator
Latest 25 from a total of 246 transactions
Transaction Hash |
Method
|
Block
|
From
|
To
|
|||||
---|---|---|---|---|---|---|---|---|---|
Unstake Land | 15617604 | 914 days ago | IN | 0 ETH | 0.00016497 | ||||
Unstake Land | 15562668 | 921 days ago | IN | 0 ETH | 0.00010888 | ||||
Unstake Land | 15561233 | 922 days ago | IN | 0 ETH | 0.00023869 | ||||
Unstake Land | 15561217 | 922 days ago | IN | 0 ETH | 0.00027903 | ||||
Unstake Land | 15561137 | 922 days ago | IN | 0 ETH | 0.00052259 | ||||
Stake Land | 15561093 | 922 days ago | IN | 0 ETH | 0.00086394 | ||||
Stake Land | 15561083 | 922 days ago | IN | 0 ETH | 0.00089882 | ||||
Stake Land | 15560958 | 922 days ago | IN | 0 ETH | 0.00087242 | ||||
Stake Land | 15560956 | 922 days ago | IN | 0 ETH | 0.00107741 | ||||
Stake Land | 15560956 | 922 days ago | IN | 0 ETH | 0.00109325 | ||||
Stake Land | 15560954 | 922 days ago | IN | 0 ETH | 0.00108896 | ||||
Stake Land | 15560953 | 922 days ago | IN | 0 ETH | 0.00101244 | ||||
Stake Land | 15560950 | 922 days ago | IN | 0 ETH | 0.00117377 | ||||
Stake Land | 15560777 | 922 days ago | IN | 0 ETH | 0.00069125 | ||||
Stake Land | 15560596 | 922 days ago | IN | 0 ETH | 0.00119915 | ||||
Raid | 15560589 | 922 days ago | IN | 0 ETH | 0.00053993 | ||||
Unstake Land | 15560474 | 922 days ago | IN | 0 ETH | 0.00012247 | ||||
Unstake Land | 15560344 | 922 days ago | IN | 0 ETH | 0.00017127 | ||||
Stake Land | 15559524 | 922 days ago | IN | 0 ETH | 0.00149327 | ||||
Stake Land | 15558943 | 922 days ago | IN | 0 ETH | 0.0005256 | ||||
Stake Land | 15558797 | 922 days ago | IN | 0 ETH | 0.00066662 | ||||
Stake Land | 15558159 | 922 days ago | IN | 0 ETH | 0.00046256 | ||||
Stake Land | 15558158 | 922 days ago | IN | 0 ETH | 0.00055749 | ||||
Stake Land | 15558025 | 922 days ago | IN | 0 ETH | 0.00062014 | ||||
Stake Land | 15558021 | 922 days ago | IN | 0 ETH | 0.00071389 |
View more zero value Internal Transactions in Advanced View mode
Advanced mode:
Loading...
Loading
Contract Name:
StakingSkull
Compiler Version
v0.8.7+commit.e28d00a7
Contract Source Code (Solidity)
/** *Submitted for verification at Etherscan.io on 2022-09-19 */ // File: erc721a/contracts/IERC721A.sol // ERC721A Contracts v4.2.3 // Creator: Chiru Labs pragma solidity ^0.8.4; /** * @dev Interface of ERC721A. */ interface IERC721A { /** * The caller must own the token or be an approved operator. */ error ApprovalCallerNotOwnerNorApproved(); /** * The token does not exist. */ error ApprovalQueryForNonexistentToken(); /** * Cannot query the balance for the zero address. */ error BalanceQueryForZeroAddress(); /** * Cannot mint to the zero address. */ error MintToZeroAddress(); /** * The quantity of tokens minted must be more than zero. */ error MintZeroQuantity(); /** * The token does not exist. */ error OwnerQueryForNonexistentToken(); /** * The caller must own the token or be an approved operator. */ error TransferCallerNotOwnerNorApproved(); /** * The token must be owned by `from`. */ error TransferFromIncorrectOwner(); /** * Cannot safely transfer to a contract that does not implement the * ERC721Receiver interface. */ error TransferToNonERC721ReceiverImplementer(); /** * Cannot transfer to the zero address. */ error TransferToZeroAddress(); /** * The token does not exist. */ error URIQueryForNonexistentToken(); /** * The `quantity` minted with ERC2309 exceeds the safety limit. */ error MintERC2309QuantityExceedsLimit(); /** * The `extraData` cannot be set on an unintialized ownership slot. */ error OwnershipNotInitializedForExtraData(); // ============================================================= // STRUCTS // ============================================================= struct TokenOwnership { // The address of the owner. address addr; // Stores the start time of ownership with minimal overhead for tokenomics. uint64 startTimestamp; // Whether the token has been burned. bool burned; // Arbitrary data similar to `startTimestamp` that can be set via {_extraData}. uint24 extraData; } // ============================================================= // TOKEN COUNTERS // ============================================================= /** * @dev Returns the total number of tokens in existence. * Burned tokens will reduce the count. * To get the total number of tokens minted, please see {_totalMinted}. */ function totalSupply() external view returns (uint256); // ============================================================= // IERC165 // ============================================================= /** * @dev Returns true if this contract implements the interface defined by * `interfaceId`. See the corresponding * [EIP section](https://eips.ethereum.org/EIPS/eip-165#how-interfaces-are-identified) * to learn more about how these ids are created. * * This function call must use less than 30000 gas. */ function supportsInterface(bytes4 interfaceId) external view returns (bool); // ============================================================= // IERC721 // ============================================================= /** * @dev Emitted when `tokenId` token is transferred from `from` to `to`. */ event Transfer(address indexed from, address indexed to, uint256 indexed tokenId); /** * @dev Emitted when `owner` enables `approved` to manage the `tokenId` token. */ event Approval(address indexed owner, address indexed approved, uint256 indexed tokenId); /** * @dev Emitted when `owner` enables or disables * (`approved`) `operator` to manage all of its assets. */ event ApprovalForAll(address indexed owner, address indexed operator, bool approved); /** * @dev Returns the number of tokens in `owner`'s account. */ function balanceOf(address owner) external view returns (uint256 balance); /** * @dev Returns the owner of the `tokenId` token. * * Requirements: * * - `tokenId` must exist. */ function ownerOf(uint256 tokenId) external view returns (address owner); /** * @dev Safely transfers `tokenId` token from `from` to `to`, * checking first that contract recipients are aware of the ERC721 protocol * to prevent tokens from being forever locked. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must exist and be owned by `from`. * - If the caller is not `from`, it must be have been allowed to move * this token by either {approve} or {setApprovalForAll}. * - If `to` refers to a smart contract, it must implement * {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */ function safeTransferFrom( address from, address to, uint256 tokenId, bytes calldata data ) external payable; /** * @dev Equivalent to `safeTransferFrom(from, to, tokenId, '')`. */ function safeTransferFrom( address from, address to, uint256 tokenId ) external payable; /** * @dev Transfers `tokenId` from `from` to `to`. * * WARNING: Usage of this method is discouraged, use {safeTransferFrom} * whenever possible. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must be owned by `from`. * - If the caller is not `from`, it must be approved to move this token * by either {approve} or {setApprovalForAll}. * * Emits a {Transfer} event. */ function transferFrom( address from, address to, uint256 tokenId ) external payable; /** * @dev Gives permission to `to` to transfer `tokenId` token to another account. * The approval is cleared when the token is transferred. * * Only a single account can be approved at a time, so approving the * zero address clears previous approvals. * * Requirements: * * - The caller must own the token or be an approved operator. * - `tokenId` must exist. * * Emits an {Approval} event. */ function approve(address to, uint256 tokenId) external payable; /** * @dev Approve or remove `operator` as an operator for the caller. * Operators can call {transferFrom} or {safeTransferFrom} * for any token owned by the caller. * * Requirements: * * - The `operator` cannot be the caller. * * Emits an {ApprovalForAll} event. */ function setApprovalForAll(address operator, bool _approved) external; /** * @dev Returns the account approved for `tokenId` token. * * Requirements: * * - `tokenId` must exist. */ function getApproved(uint256 tokenId) external view returns (address operator); /** * @dev Returns if the `operator` is allowed to manage all of the assets of `owner`. * * See {setApprovalForAll}. */ function isApprovedForAll(address owner, address operator) external view returns (bool); // ============================================================= // IERC721Metadata // ============================================================= /** * @dev Returns the token collection name. */ function name() external view returns (string memory); /** * @dev Returns the token collection symbol. */ function symbol() external view returns (string memory); /** * @dev Returns the Uniform Resource Identifier (URI) for `tokenId` token. */ function tokenURI(uint256 tokenId) external view returns (string memory); // ============================================================= // IERC2309 // ============================================================= /** * @dev Emitted when tokens in `fromTokenId` to `toTokenId` * (inclusive) is transferred from `from` to `to`, as defined in the * [ERC2309](https://eips.ethereum.org/EIPS/eip-2309) standard. * * See {_mintERC2309} for more details. */ event ConsecutiveTransfer(uint256 indexed fromTokenId, uint256 toTokenId, address indexed from, address indexed to); } // File: erc721a/contracts/ERC721A.sol // ERC721A Contracts v4.2.3 // Creator: Chiru Labs pragma solidity ^0.8.4; /** * @dev Interface of ERC721 token receiver. */ interface ERC721A__IERC721Receiver { function onERC721Received( address operator, address from, uint256 tokenId, bytes calldata data ) external returns (bytes4); } /** * @title ERC721A * * @dev Implementation of the [ERC721](https://eips.ethereum.org/EIPS/eip-721) * Non-Fungible Token Standard, including the Metadata extension. * Optimized for lower gas during batch mints. * * Token IDs are minted in sequential order (e.g. 0, 1, 2, 3, ...) * starting from `_startTokenId()`. * * Assumptions: * * - An owner cannot have more than 2**64 - 1 (max value of uint64) of supply. * - The maximum token ID cannot exceed 2**256 - 1 (max value of uint256). */ contract ERC721A is IERC721A { // Bypass for a `--via-ir` bug (https://github.com/chiru-labs/ERC721A/pull/364). struct TokenApprovalRef { address value; } // ============================================================= // CONSTANTS // ============================================================= // Mask of an entry in packed address data. uint256 private constant _BITMASK_ADDRESS_DATA_ENTRY = (1 << 64) - 1; // The bit position of `numberMinted` in packed address data. uint256 private constant _BITPOS_NUMBER_MINTED = 64; // The bit position of `numberBurned` in packed address data. uint256 private constant _BITPOS_NUMBER_BURNED = 128; // The bit position of `aux` in packed address data. uint256 private constant _BITPOS_AUX = 192; // Mask of all 256 bits in packed address data except the 64 bits for `aux`. uint256 private constant _BITMASK_AUX_COMPLEMENT = (1 << 192) - 1; // The bit position of `startTimestamp` in packed ownership. uint256 private constant _BITPOS_START_TIMESTAMP = 160; // The bit mask of the `burned` bit in packed ownership. uint256 private constant _BITMASK_BURNED = 1 << 224; // The bit position of the `nextInitialized` bit in packed ownership. uint256 private constant _BITPOS_NEXT_INITIALIZED = 225; // The bit mask of the `nextInitialized` bit in packed ownership. uint256 private constant _BITMASK_NEXT_INITIALIZED = 1 << 225; // The bit position of `extraData` in packed ownership. uint256 private constant _BITPOS_EXTRA_DATA = 232; // Mask of all 256 bits in a packed ownership except the 24 bits for `extraData`. uint256 private constant _BITMASK_EXTRA_DATA_COMPLEMENT = (1 << 232) - 1; // The mask of the lower 160 bits for addresses. uint256 private constant _BITMASK_ADDRESS = (1 << 160) - 1; // The maximum `quantity` that can be minted with {_mintERC2309}. // This limit is to prevent overflows on the address data entries. // For a limit of 5000, a total of 3.689e15 calls to {_mintERC2309} // is required to cause an overflow, which is unrealistic. uint256 private constant _MAX_MINT_ERC2309_QUANTITY_LIMIT = 5000; // The `Transfer` event signature is given by: // `keccak256(bytes("Transfer(address,address,uint256)"))`. bytes32 private constant _TRANSFER_EVENT_SIGNATURE = 0xddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef; // ============================================================= // STORAGE // ============================================================= // The next token ID to be minted. uint256 private _currentIndex; // The number of tokens burned. uint256 private _burnCounter; // Token name string private _name; // Token symbol string private _symbol; // Mapping from token ID to ownership details // An empty struct value does not necessarily mean the token is unowned. // See {_packedOwnershipOf} implementation for details. // // Bits Layout: // - [0..159] `addr` // - [160..223] `startTimestamp` // - [224] `burned` // - [225] `nextInitialized` // - [232..255] `extraData` mapping(uint256 => uint256) private _packedOwnerships; // Mapping owner address to address data. // // Bits Layout: // - [0..63] `balance` // - [64..127] `numberMinted` // - [128..191] `numberBurned` // - [192..255] `aux` mapping(address => uint256) private _packedAddressData; // Mapping from token ID to approved address. mapping(uint256 => TokenApprovalRef) private _tokenApprovals; // Mapping from owner to operator approvals mapping(address => mapping(address => bool)) private _operatorApprovals; // ============================================================= // CONSTRUCTOR // ============================================================= constructor(string memory name_, string memory symbol_) { _name = name_; _symbol = symbol_; _currentIndex = _startTokenId(); } // ============================================================= // TOKEN COUNTING OPERATIONS // ============================================================= /** * @dev Returns the starting token ID. * To change the starting token ID, please override this function. */ function _startTokenId() internal view virtual returns (uint256) { return 0; } /** * @dev Returns the next token ID to be minted. */ function _nextTokenId() internal view virtual returns (uint256) { return _currentIndex; } /** * @dev Returns the total number of tokens in existence. * Burned tokens will reduce the count. * To get the total number of tokens minted, please see {_totalMinted}. */ function totalSupply() public view virtual override returns (uint256) { // Counter underflow is impossible as _burnCounter cannot be incremented // more than `_currentIndex - _startTokenId()` times. unchecked { return _currentIndex - _burnCounter - _startTokenId(); } } /** * @dev Returns the total amount of tokens minted in the contract. */ function _totalMinted() internal view virtual returns (uint256) { // Counter underflow is impossible as `_currentIndex` does not decrement, // and it is initialized to `_startTokenId()`. unchecked { return _currentIndex - _startTokenId(); } } /** * @dev Returns the total number of tokens burned. */ function _totalBurned() internal view virtual returns (uint256) { return _burnCounter; } // ============================================================= // ADDRESS DATA OPERATIONS // ============================================================= /** * @dev Returns the number of tokens in `owner`'s account. */ function balanceOf(address owner) public view virtual override returns (uint256) { if (owner == address(0)) revert BalanceQueryForZeroAddress(); return _packedAddressData[owner] & _BITMASK_ADDRESS_DATA_ENTRY; } /** * Returns the number of tokens minted by `owner`. */ function _numberMinted(address owner) internal view returns (uint256) { return (_packedAddressData[owner] >> _BITPOS_NUMBER_MINTED) & _BITMASK_ADDRESS_DATA_ENTRY; } /** * Returns the number of tokens burned by or on behalf of `owner`. */ function _numberBurned(address owner) internal view returns (uint256) { return (_packedAddressData[owner] >> _BITPOS_NUMBER_BURNED) & _BITMASK_ADDRESS_DATA_ENTRY; } /** * Returns the auxiliary data for `owner`. (e.g. number of whitelist mint slots used). */ function _getAux(address owner) internal view returns (uint64) { return uint64(_packedAddressData[owner] >> _BITPOS_AUX); } /** * Sets the auxiliary data for `owner`. (e.g. number of whitelist mint slots used). * If there are multiple variables, please pack them into a uint64. */ function _setAux(address owner, uint64 aux) internal virtual { uint256 packed = _packedAddressData[owner]; uint256 auxCasted; // Cast `aux` with assembly to avoid redundant masking. assembly { auxCasted := aux } packed = (packed & _BITMASK_AUX_COMPLEMENT) | (auxCasted << _BITPOS_AUX); _packedAddressData[owner] = packed; } // ============================================================= // IERC165 // ============================================================= /** * @dev Returns true if this contract implements the interface defined by * `interfaceId`. See the corresponding * [EIP section](https://eips.ethereum.org/EIPS/eip-165#how-interfaces-are-identified) * to learn more about how these ids are created. * * This function call must use less than 30000 gas. */ function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) { // The interface IDs are constants representing the first 4 bytes // of the XOR of all function selectors in the interface. // See: [ERC165](https://eips.ethereum.org/EIPS/eip-165) // (e.g. `bytes4(i.functionA.selector ^ i.functionB.selector ^ ...)`) return interfaceId == 0x01ffc9a7 || // ERC165 interface ID for ERC165. interfaceId == 0x80ac58cd || // ERC165 interface ID for ERC721. interfaceId == 0x5b5e139f; // ERC165 interface ID for ERC721Metadata. } // ============================================================= // IERC721Metadata // ============================================================= /** * @dev Returns the token collection name. */ function name() public view virtual override returns (string memory) { return _name; } /** * @dev Returns the token collection symbol. */ function symbol() public view virtual override returns (string memory) { return _symbol; } /** * @dev Returns the Uniform Resource Identifier (URI) for `tokenId` token. */ function tokenURI(uint256 tokenId) public view virtual override returns (string memory) { if (!_exists(tokenId)) revert URIQueryForNonexistentToken(); string memory baseURI = _baseURI(); return bytes(baseURI).length != 0 ? string(abi.encodePacked(baseURI, _toString(tokenId))) : ''; } /** * @dev Base URI for computing {tokenURI}. If set, the resulting URI for each * token will be the concatenation of the `baseURI` and the `tokenId`. Empty * by default, it can be overridden in child contracts. */ function _baseURI() internal view virtual returns (string memory) { return ''; } // ============================================================= // OWNERSHIPS OPERATIONS // ============================================================= /** * @dev Returns the owner of the `tokenId` token. * * Requirements: * * - `tokenId` must exist. */ function ownerOf(uint256 tokenId) public view virtual override returns (address) { return address(uint160(_packedOwnershipOf(tokenId))); } /** * @dev Gas spent here starts off proportional to the maximum mint batch size. * It gradually moves to O(1) as tokens get transferred around over time. */ function _ownershipOf(uint256 tokenId) internal view virtual returns (TokenOwnership memory) { return _unpackedOwnership(_packedOwnershipOf(tokenId)); } /** * @dev Returns the unpacked `TokenOwnership` struct at `index`. */ function _ownershipAt(uint256 index) internal view virtual returns (TokenOwnership memory) { return _unpackedOwnership(_packedOwnerships[index]); } /** * @dev Initializes the ownership slot minted at `index` for efficiency purposes. */ function _initializeOwnershipAt(uint256 index) internal virtual { if (_packedOwnerships[index] == 0) { _packedOwnerships[index] = _packedOwnershipOf(index); } } /** * Returns the packed ownership data of `tokenId`. */ function _packedOwnershipOf(uint256 tokenId) private view returns (uint256) { uint256 curr = tokenId; unchecked { if (_startTokenId() <= curr) if (curr < _currentIndex) { uint256 packed = _packedOwnerships[curr]; // If not burned. if (packed & _BITMASK_BURNED == 0) { // Invariant: // There will always be an initialized ownership slot // (i.e. `ownership.addr != address(0) && ownership.burned == false`) // before an unintialized ownership slot // (i.e. `ownership.addr == address(0) && ownership.burned == false`) // Hence, `curr` will not underflow. // // We can directly compare the packed value. // If the address is zero, packed will be zero. while (packed == 0) { packed = _packedOwnerships[--curr]; } return packed; } } } revert OwnerQueryForNonexistentToken(); } /** * @dev Returns the unpacked `TokenOwnership` struct from `packed`. */ function _unpackedOwnership(uint256 packed) private pure returns (TokenOwnership memory ownership) { ownership.addr = address(uint160(packed)); ownership.startTimestamp = uint64(packed >> _BITPOS_START_TIMESTAMP); ownership.burned = packed & _BITMASK_BURNED != 0; ownership.extraData = uint24(packed >> _BITPOS_EXTRA_DATA); } /** * @dev Packs ownership data into a single uint256. */ function _packOwnershipData(address owner, uint256 flags) private view returns (uint256 result) { assembly { // Mask `owner` to the lower 160 bits, in case the upper bits somehow aren't clean. owner := and(owner, _BITMASK_ADDRESS) // `owner | (block.timestamp << _BITPOS_START_TIMESTAMP) | flags`. result := or(owner, or(shl(_BITPOS_START_TIMESTAMP, timestamp()), flags)) } } /** * @dev Returns the `nextInitialized` flag set if `quantity` equals 1. */ function _nextInitializedFlag(uint256 quantity) private pure returns (uint256 result) { // For branchless setting of the `nextInitialized` flag. assembly { // `(quantity == 1) << _BITPOS_NEXT_INITIALIZED`. result := shl(_BITPOS_NEXT_INITIALIZED, eq(quantity, 1)) } } // ============================================================= // APPROVAL OPERATIONS // ============================================================= /** * @dev Gives permission to `to` to transfer `tokenId` token to another account. * The approval is cleared when the token is transferred. * * Only a single account can be approved at a time, so approving the * zero address clears previous approvals. * * Requirements: * * - The caller must own the token or be an approved operator. * - `tokenId` must exist. * * Emits an {Approval} event. */ function approve(address to, uint256 tokenId) public payable virtual override { address owner = ownerOf(tokenId); if (_msgSenderERC721A() != owner) if (!isApprovedForAll(owner, _msgSenderERC721A())) { revert ApprovalCallerNotOwnerNorApproved(); } _tokenApprovals[tokenId].value = to; emit Approval(owner, to, tokenId); } /** * @dev Returns the account approved for `tokenId` token. * * Requirements: * * - `tokenId` must exist. */ function getApproved(uint256 tokenId) public view virtual override returns (address) { if (!_exists(tokenId)) revert ApprovalQueryForNonexistentToken(); return _tokenApprovals[tokenId].value; } /** * @dev Approve or remove `operator` as an operator for the caller. * Operators can call {transferFrom} or {safeTransferFrom} * for any token owned by the caller. * * Requirements: * * - The `operator` cannot be the caller. * * Emits an {ApprovalForAll} event. */ function setApprovalForAll(address operator, bool approved) public virtual override { _operatorApprovals[_msgSenderERC721A()][operator] = approved; emit ApprovalForAll(_msgSenderERC721A(), operator, approved); } /** * @dev Returns if the `operator` is allowed to manage all of the assets of `owner`. * * See {setApprovalForAll}. */ function isApprovedForAll(address owner, address operator) public view virtual override returns (bool) { return _operatorApprovals[owner][operator]; } /** * @dev Returns whether `tokenId` exists. * * Tokens can be managed by their owner or approved accounts via {approve} or {setApprovalForAll}. * * Tokens start existing when they are minted. See {_mint}. */ function _exists(uint256 tokenId) internal view virtual returns (bool) { return _startTokenId() <= tokenId && tokenId < _currentIndex && // If within bounds, _packedOwnerships[tokenId] & _BITMASK_BURNED == 0; // and not burned. } /** * @dev Returns whether `msgSender` is equal to `approvedAddress` or `owner`. */ function _isSenderApprovedOrOwner( address approvedAddress, address owner, address msgSender ) private pure returns (bool result) { assembly { // Mask `owner` to the lower 160 bits, in case the upper bits somehow aren't clean. owner := and(owner, _BITMASK_ADDRESS) // Mask `msgSender` to the lower 160 bits, in case the upper bits somehow aren't clean. msgSender := and(msgSender, _BITMASK_ADDRESS) // `msgSender == owner || msgSender == approvedAddress`. result := or(eq(msgSender, owner), eq(msgSender, approvedAddress)) } } /** * @dev Returns the storage slot and value for the approved address of `tokenId`. */ function _getApprovedSlotAndAddress(uint256 tokenId) private view returns (uint256 approvedAddressSlot, address approvedAddress) { TokenApprovalRef storage tokenApproval = _tokenApprovals[tokenId]; // The following is equivalent to `approvedAddress = _tokenApprovals[tokenId].value`. assembly { approvedAddressSlot := tokenApproval.slot approvedAddress := sload(approvedAddressSlot) } } // ============================================================= // TRANSFER OPERATIONS // ============================================================= /** * @dev Transfers `tokenId` from `from` to `to`. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must be owned by `from`. * - If the caller is not `from`, it must be approved to move this token * by either {approve} or {setApprovalForAll}. * * Emits a {Transfer} event. */ function transferFrom( address from, address to, uint256 tokenId ) public payable virtual override { uint256 prevOwnershipPacked = _packedOwnershipOf(tokenId); if (address(uint160(prevOwnershipPacked)) != from) revert TransferFromIncorrectOwner(); (uint256 approvedAddressSlot, address approvedAddress) = _getApprovedSlotAndAddress(tokenId); // The nested ifs save around 20+ gas over a compound boolean condition. if (!_isSenderApprovedOrOwner(approvedAddress, from, _msgSenderERC721A())) if (!isApprovedForAll(from, _msgSenderERC721A())) revert TransferCallerNotOwnerNorApproved(); if (to == address(0)) revert TransferToZeroAddress(); _beforeTokenTransfers(from, to, tokenId, 1); // Clear approvals from the previous owner. assembly { if approvedAddress { // This is equivalent to `delete _tokenApprovals[tokenId]`. sstore(approvedAddressSlot, 0) } } // Underflow of the sender's balance is impossible because we check for // ownership above and the recipient's balance can't realistically overflow. // Counter overflow is incredibly unrealistic as `tokenId` would have to be 2**256. unchecked { // We can directly increment and decrement the balances. --_packedAddressData[from]; // Updates: `balance -= 1`. ++_packedAddressData[to]; // Updates: `balance += 1`. // Updates: // - `address` to the next owner. // - `startTimestamp` to the timestamp of transfering. // - `burned` to `false`. // - `nextInitialized` to `true`. _packedOwnerships[tokenId] = _packOwnershipData( to, _BITMASK_NEXT_INITIALIZED | _nextExtraData(from, to, prevOwnershipPacked) ); // If the next slot may not have been initialized (i.e. `nextInitialized == false`) . if (prevOwnershipPacked & _BITMASK_NEXT_INITIALIZED == 0) { uint256 nextTokenId = tokenId + 1; // If the next slot's address is zero and not burned (i.e. packed value is zero). if (_packedOwnerships[nextTokenId] == 0) { // If the next slot is within bounds. if (nextTokenId != _currentIndex) { // Initialize the next slot to maintain correctness for `ownerOf(tokenId + 1)`. _packedOwnerships[nextTokenId] = prevOwnershipPacked; } } } } emit Transfer(from, to, tokenId); _afterTokenTransfers(from, to, tokenId, 1); } /** * @dev Equivalent to `safeTransferFrom(from, to, tokenId, '')`. */ function safeTransferFrom( address from, address to, uint256 tokenId ) public payable virtual override { safeTransferFrom(from, to, tokenId, ''); } /** * @dev Safely transfers `tokenId` token from `from` to `to`. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must exist and be owned by `from`. * - If the caller is not `from`, it must be approved to move this token * by either {approve} or {setApprovalForAll}. * - If `to` refers to a smart contract, it must implement * {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */ function safeTransferFrom( address from, address to, uint256 tokenId, bytes memory _data ) public payable virtual override { transferFrom(from, to, tokenId); if (to.code.length != 0) if (!_checkContractOnERC721Received(from, to, tokenId, _data)) { revert TransferToNonERC721ReceiverImplementer(); } } /** * @dev Hook that is called before a set of serially-ordered token IDs * are about to be transferred. This includes minting. * And also called before burning one token. * * `startTokenId` - the first token ID to be transferred. * `quantity` - the amount to be transferred. * * Calling conditions: * * - When `from` and `to` are both non-zero, `from`'s `tokenId` will be * transferred to `to`. * - When `from` is zero, `tokenId` will be minted for `to`. * - When `to` is zero, `tokenId` will be burned by `from`. * - `from` and `to` are never both zero. */ function _beforeTokenTransfers( address from, address to, uint256 startTokenId, uint256 quantity ) internal virtual {} /** * @dev Hook that is called after a set of serially-ordered token IDs * have been transferred. This includes minting. * And also called after one token has been burned. * * `startTokenId` - the first token ID to be transferred. * `quantity` - the amount to be transferred. * * Calling conditions: * * - When `from` and `to` are both non-zero, `from`'s `tokenId` has been * transferred to `to`. * - When `from` is zero, `tokenId` has been minted for `to`. * - When `to` is zero, `tokenId` has been burned by `from`. * - `from` and `to` are never both zero. */ function _afterTokenTransfers( address from, address to, uint256 startTokenId, uint256 quantity ) internal virtual {} /** * @dev Private function to invoke {IERC721Receiver-onERC721Received} on a target contract. * * `from` - Previous owner of the given token ID. * `to` - Target address that will receive the token. * `tokenId` - Token ID to be transferred. * `_data` - Optional data to send along with the call. * * Returns whether the call correctly returned the expected magic value. */ function _checkContractOnERC721Received( address from, address to, uint256 tokenId, bytes memory _data ) private returns (bool) { try ERC721A__IERC721Receiver(to).onERC721Received(_msgSenderERC721A(), from, tokenId, _data) returns ( bytes4 retval ) { return retval == ERC721A__IERC721Receiver(to).onERC721Received.selector; } catch (bytes memory reason) { if (reason.length == 0) { revert TransferToNonERC721ReceiverImplementer(); } else { assembly { revert(add(32, reason), mload(reason)) } } } } // ============================================================= // MINT OPERATIONS // ============================================================= /** * @dev Mints `quantity` tokens and transfers them to `to`. * * Requirements: * * - `to` cannot be the zero address. * - `quantity` must be greater than 0. * * Emits a {Transfer} event for each mint. */ function _mint(address to, uint256 quantity) internal virtual { uint256 startTokenId = _currentIndex; if (quantity == 0) revert MintZeroQuantity(); _beforeTokenTransfers(address(0), to, startTokenId, quantity); // Overflows are incredibly unrealistic. // `balance` and `numberMinted` have a maximum limit of 2**64. // `tokenId` has a maximum limit of 2**256. unchecked { // Updates: // - `balance += quantity`. // - `numberMinted += quantity`. // // We can directly add to the `balance` and `numberMinted`. _packedAddressData[to] += quantity * ((1 << _BITPOS_NUMBER_MINTED) | 1); // Updates: // - `address` to the owner. // - `startTimestamp` to the timestamp of minting. // - `burned` to `false`. // - `nextInitialized` to `quantity == 1`. _packedOwnerships[startTokenId] = _packOwnershipData( to, _nextInitializedFlag(quantity) | _nextExtraData(address(0), to, 0) ); uint256 toMasked; uint256 end = startTokenId + quantity; // Use assembly to loop and emit the `Transfer` event for gas savings. // The duplicated `log4` removes an extra check and reduces stack juggling. // The assembly, together with the surrounding Solidity code, have been // delicately arranged to nudge the compiler into producing optimized opcodes. assembly { // Mask `to` to the lower 160 bits, in case the upper bits somehow aren't clean. toMasked := and(to, _BITMASK_ADDRESS) // Emit the `Transfer` event. log4( 0, // Start of data (0, since no data). 0, // End of data (0, since no data). _TRANSFER_EVENT_SIGNATURE, // Signature. 0, // `address(0)`. toMasked, // `to`. startTokenId // `tokenId`. ) // The `iszero(eq(,))` check ensures that large values of `quantity` // that overflows uint256 will make the loop run out of gas. // The compiler will optimize the `iszero` away for performance. for { let tokenId := add(startTokenId, 1) } iszero(eq(tokenId, end)) { tokenId := add(tokenId, 1) } { // Emit the `Transfer` event. Similar to above. log4(0, 0, _TRANSFER_EVENT_SIGNATURE, 0, toMasked, tokenId) } } if (toMasked == 0) revert MintToZeroAddress(); _currentIndex = end; } _afterTokenTransfers(address(0), to, startTokenId, quantity); } /** * @dev Mints `quantity` tokens and transfers them to `to`. * * This function is intended for efficient minting only during contract creation. * * It emits only one {ConsecutiveTransfer} as defined in * [ERC2309](https://eips.ethereum.org/EIPS/eip-2309), * instead of a sequence of {Transfer} event(s). * * Calling this function outside of contract creation WILL make your contract * non-compliant with the ERC721 standard. * For full ERC721 compliance, substituting ERC721 {Transfer} event(s) with the ERC2309 * {ConsecutiveTransfer} event is only permissible during contract creation. * * Requirements: * * - `to` cannot be the zero address. * - `quantity` must be greater than 0. * * Emits a {ConsecutiveTransfer} event. */ function _mintERC2309(address to, uint256 quantity) internal virtual { uint256 startTokenId = _currentIndex; if (to == address(0)) revert MintToZeroAddress(); if (quantity == 0) revert MintZeroQuantity(); if (quantity > _MAX_MINT_ERC2309_QUANTITY_LIMIT) revert MintERC2309QuantityExceedsLimit(); _beforeTokenTransfers(address(0), to, startTokenId, quantity); // Overflows are unrealistic due to the above check for `quantity` to be below the limit. unchecked { // Updates: // - `balance += quantity`. // - `numberMinted += quantity`. // // We can directly add to the `balance` and `numberMinted`. _packedAddressData[to] += quantity * ((1 << _BITPOS_NUMBER_MINTED) | 1); // Updates: // - `address` to the owner. // - `startTimestamp` to the timestamp of minting. // - `burned` to `false`. // - `nextInitialized` to `quantity == 1`. _packedOwnerships[startTokenId] = _packOwnershipData( to, _nextInitializedFlag(quantity) | _nextExtraData(address(0), to, 0) ); emit ConsecutiveTransfer(startTokenId, startTokenId + quantity - 1, address(0), to); _currentIndex = startTokenId + quantity; } _afterTokenTransfers(address(0), to, startTokenId, quantity); } /** * @dev Safely mints `quantity` tokens and transfers them to `to`. * * Requirements: * * - If `to` refers to a smart contract, it must implement * {IERC721Receiver-onERC721Received}, which is called for each safe transfer. * - `quantity` must be greater than 0. * * See {_mint}. * * Emits a {Transfer} event for each mint. */ function _safeMint( address to, uint256 quantity, bytes memory _data ) internal virtual { _mint(to, quantity); unchecked { if (to.code.length != 0) { uint256 end = _currentIndex; uint256 index = end - quantity; do { if (!_checkContractOnERC721Received(address(0), to, index++, _data)) { revert TransferToNonERC721ReceiverImplementer(); } } while (index < end); // Reentrancy protection. if (_currentIndex != end) revert(); } } } /** * @dev Equivalent to `_safeMint(to, quantity, '')`. */ function _safeMint(address to, uint256 quantity) internal virtual { _safeMint(to, quantity, ''); } // ============================================================= // BURN OPERATIONS // ============================================================= /** * @dev Equivalent to `_burn(tokenId, false)`. */ function _burn(uint256 tokenId) internal virtual { _burn(tokenId, false); } /** * @dev Destroys `tokenId`. * The approval is cleared when the token is burned. * * Requirements: * * - `tokenId` must exist. * * Emits a {Transfer} event. */ function _burn(uint256 tokenId, bool approvalCheck) internal virtual { uint256 prevOwnershipPacked = _packedOwnershipOf(tokenId); address from = address(uint160(prevOwnershipPacked)); (uint256 approvedAddressSlot, address approvedAddress) = _getApprovedSlotAndAddress(tokenId); if (approvalCheck) { // The nested ifs save around 20+ gas over a compound boolean condition. if (!_isSenderApprovedOrOwner(approvedAddress, from, _msgSenderERC721A())) if (!isApprovedForAll(from, _msgSenderERC721A())) revert TransferCallerNotOwnerNorApproved(); } _beforeTokenTransfers(from, address(0), tokenId, 1); // Clear approvals from the previous owner. assembly { if approvedAddress { // This is equivalent to `delete _tokenApprovals[tokenId]`. sstore(approvedAddressSlot, 0) } } // Underflow of the sender's balance is impossible because we check for // ownership above and the recipient's balance can't realistically overflow. // Counter overflow is incredibly unrealistic as `tokenId` would have to be 2**256. unchecked { // Updates: // - `balance -= 1`. // - `numberBurned += 1`. // // We can directly decrement the balance, and increment the number burned. // This is equivalent to `packed -= 1; packed += 1 << _BITPOS_NUMBER_BURNED;`. _packedAddressData[from] += (1 << _BITPOS_NUMBER_BURNED) - 1; // Updates: // - `address` to the last owner. // - `startTimestamp` to the timestamp of burning. // - `burned` to `true`. // - `nextInitialized` to `true`. _packedOwnerships[tokenId] = _packOwnershipData( from, (_BITMASK_BURNED | _BITMASK_NEXT_INITIALIZED) | _nextExtraData(from, address(0), prevOwnershipPacked) ); // If the next slot may not have been initialized (i.e. `nextInitialized == false`) . if (prevOwnershipPacked & _BITMASK_NEXT_INITIALIZED == 0) { uint256 nextTokenId = tokenId + 1; // If the next slot's address is zero and not burned (i.e. packed value is zero). if (_packedOwnerships[nextTokenId] == 0) { // If the next slot is within bounds. if (nextTokenId != _currentIndex) { // Initialize the next slot to maintain correctness for `ownerOf(tokenId + 1)`. _packedOwnerships[nextTokenId] = prevOwnershipPacked; } } } } emit Transfer(from, address(0), tokenId); _afterTokenTransfers(from, address(0), tokenId, 1); // Overflow not possible, as _burnCounter cannot be exceed _currentIndex times. unchecked { _burnCounter++; } } // ============================================================= // EXTRA DATA OPERATIONS // ============================================================= /** * @dev Directly sets the extra data for the ownership data `index`. */ function _setExtraDataAt(uint256 index, uint24 extraData) internal virtual { uint256 packed = _packedOwnerships[index]; if (packed == 0) revert OwnershipNotInitializedForExtraData(); uint256 extraDataCasted; // Cast `extraData` with assembly to avoid redundant masking. assembly { extraDataCasted := extraData } packed = (packed & _BITMASK_EXTRA_DATA_COMPLEMENT) | (extraDataCasted << _BITPOS_EXTRA_DATA); _packedOwnerships[index] = packed; } /** * @dev Called during each token transfer to set the 24bit `extraData` field. * Intended to be overridden by the cosumer contract. * * `previousExtraData` - the value of `extraData` before transfer. * * Calling conditions: * * - When `from` and `to` are both non-zero, `from`'s `tokenId` will be * transferred to `to`. * - When `from` is zero, `tokenId` will be minted for `to`. * - When `to` is zero, `tokenId` will be burned by `from`. * - `from` and `to` are never both zero. */ function _extraData( address from, address to, uint24 previousExtraData ) internal view virtual returns (uint24) {} /** * @dev Returns the next extra data for the packed ownership data. * The returned result is shifted into position. */ function _nextExtraData( address from, address to, uint256 prevOwnershipPacked ) private view returns (uint256) { uint24 extraData = uint24(prevOwnershipPacked >> _BITPOS_EXTRA_DATA); return uint256(_extraData(from, to, extraData)) << _BITPOS_EXTRA_DATA; } // ============================================================= // OTHER OPERATIONS // ============================================================= /** * @dev Returns the message sender (defaults to `msg.sender`). * * If you are writing GSN compatible contracts, you need to override this function. */ function _msgSenderERC721A() internal view virtual returns (address) { return msg.sender; } /** * @dev Converts a uint256 to its ASCII string decimal representation. */ function _toString(uint256 value) internal pure virtual returns (string memory str) { assembly { // The maximum value of a uint256 contains 78 digits (1 byte per digit), but // we allocate 0xa0 bytes to keep the free memory pointer 32-byte word aligned. // We will need 1 word for the trailing zeros padding, 1 word for the length, // and 3 words for a maximum of 78 digits. Total: 5 * 0x20 = 0xa0. let m := add(mload(0x40), 0xa0) // Update the free memory pointer to allocate. mstore(0x40, m) // Assign the `str` to the end. str := sub(m, 0x20) // Zeroize the slot after the string. mstore(str, 0) // Cache the end of the memory to calculate the length later. let end := str // We write the string from rightmost digit to leftmost digit. // The following is essentially a do-while loop that also handles the zero case. // prettier-ignore for { let temp := value } 1 {} { str := sub(str, 1) // Write the character to the pointer. // The ASCII index of the '0' character is 48. mstore8(str, add(48, mod(temp, 10))) // Keep dividing `temp` until zero. temp := div(temp, 10) // prettier-ignore if iszero(temp) { break } } let length := sub(end, str) // Move the pointer 32 bytes leftwards to make room for the length. str := sub(str, 0x20) // Store the length. mstore(str, length) } } } // File: @openzeppelin/contracts/token/ERC20/IERC20.sol // OpenZeppelin Contracts (last updated v4.6.0) (token/ERC20/IERC20.sol) pragma solidity ^0.8.0; /** * @dev Interface of the ERC20 standard as defined in the EIP. */ interface IERC20 { /** * @dev Emitted when `value` tokens are moved from one account (`from`) to * another (`to`). * * Note that `value` may be zero. */ event Transfer(address indexed from, address indexed to, uint256 value); /** * @dev Emitted when the allowance of a `spender` for an `owner` is set by * a call to {approve}. `value` is the new allowance. */ event Approval(address indexed owner, address indexed spender, uint256 value); /** * @dev Returns the amount of tokens in existence. */ function totalSupply() external view returns (uint256); /** * @dev Returns the amount of tokens owned by `account`. */ function balanceOf(address account) external view returns (uint256); /** * @dev Moves `amount` tokens from the caller's account to `to`. * * Returns a boolean value indicating whether the operation succeeded. * * Emits a {Transfer} event. */ function transfer(address to, uint256 amount) external returns (bool); /** * @dev Returns the remaining number of tokens that `spender` will be * allowed to spend on behalf of `owner` through {transferFrom}. This is * zero by default. * * This value changes when {approve} or {transferFrom} are called. */ function allowance(address owner, address spender) external view returns (uint256); /** * @dev Sets `amount` as the allowance of `spender` over the caller's tokens. * * Returns a boolean value indicating whether the operation succeeded. * * IMPORTANT: Beware that changing an allowance with this method brings the risk * that someone may use both the old and the new allowance by unfortunate * transaction ordering. One possible solution to mitigate this race * condition is to first reduce the spender's allowance to 0 and set the * desired value afterwards: * https://github.com/ethereum/EIPs/issues/20#issuecomment-263524729 * * Emits an {Approval} event. */ function approve(address spender, uint256 amount) external returns (bool); /** * @dev Moves `amount` tokens from `from` to `to` using the * allowance mechanism. `amount` is then deducted from the caller's * allowance. * * Returns a boolean value indicating whether the operation succeeded. * * Emits a {Transfer} event. */ function transferFrom( address from, address to, uint256 amount ) external returns (bool); } // File: @openzeppelin/contracts/token/ERC20/extensions/IERC20Metadata.sol // OpenZeppelin Contracts v4.4.1 (token/ERC20/extensions/IERC20Metadata.sol) pragma solidity ^0.8.0; /** * @dev Interface for the optional metadata functions from the ERC20 standard. * * _Available since v4.1._ */ interface IERC20Metadata is IERC20 { /** * @dev Returns the name of the token. */ function name() external view returns (string memory); /** * @dev Returns the symbol of the token. */ function symbol() external view returns (string memory); /** * @dev Returns the decimals places of the token. */ function decimals() external view returns (uint8); } // File: @openzeppelin/contracts/utils/Strings.sol // OpenZeppelin Contracts (last updated v4.7.0) (utils/Strings.sol) pragma solidity ^0.8.0; /** * @dev String operations. */ library Strings { bytes16 private constant _HEX_SYMBOLS = "0123456789abcdef"; uint8 private constant _ADDRESS_LENGTH = 20; /** * @dev Converts a `uint256` to its ASCII `string` decimal representation. */ function toString(uint256 value) internal pure returns (string memory) { // Inspired by OraclizeAPI's implementation - MIT licence // https://github.com/oraclize/ethereum-api/blob/b42146b063c7d6ee1358846c198246239e9360e8/oraclizeAPI_0.4.25.sol if (value == 0) { return "0"; } uint256 temp = value; uint256 digits; while (temp != 0) { digits++; temp /= 10; } bytes memory buffer = new bytes(digits); while (value != 0) { digits -= 1; buffer[digits] = bytes1(uint8(48 + uint256(value % 10))); value /= 10; } return string(buffer); } /** * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation. */ function toHexString(uint256 value) internal pure returns (string memory) { if (value == 0) { return "0x00"; } uint256 temp = value; uint256 length = 0; while (temp != 0) { length++; temp >>= 8; } return toHexString(value, length); } /** * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation with fixed length. */ function toHexString(uint256 value, uint256 length) internal pure returns (string memory) { bytes memory buffer = new bytes(2 * length + 2); buffer[0] = "0"; buffer[1] = "x"; for (uint256 i = 2 * length + 1; i > 1; --i) { buffer[i] = _HEX_SYMBOLS[value & 0xf]; value >>= 4; } require(value == 0, "Strings: hex length insufficient"); return string(buffer); } /** * @dev Converts an `address` with fixed length of 20 bytes to its not checksummed ASCII `string` hexadecimal representation. */ function toHexString(address addr) internal pure returns (string memory) { return toHexString(uint256(uint160(addr)), _ADDRESS_LENGTH); } } // File: @openzeppelin/contracts/utils/Address.sol // OpenZeppelin Contracts (last updated v4.7.0) (utils/Address.sol) pragma solidity ^0.8.1; /** * @dev Collection of functions related to the address type */ library Address { /** * @dev Returns true if `account` is a contract. * * [IMPORTANT] * ==== * It is unsafe to assume that an address for which this function returns * false is an externally-owned account (EOA) and not a contract. * * Among others, `isContract` will return false for the following * types of addresses: * * - an externally-owned account * - a contract in construction * - an address where a contract will be created * - an address where a contract lived, but was destroyed * ==== * * [IMPORTANT] * ==== * You shouldn't rely on `isContract` to protect against flash loan attacks! * * Preventing calls from contracts is highly discouraged. It breaks composability, breaks support for smart wallets * like Gnosis Safe, and does not provide security since it can be circumvented by calling from a contract * constructor. * ==== */ function isContract(address account) internal view returns (bool) { // This method relies on extcodesize/address.code.length, which returns 0 // for contracts in construction, since the code is only stored at the end // of the constructor execution. return account.code.length > 0; } /** * @dev Replacement for Solidity's `transfer`: sends `amount` wei to * `recipient`, forwarding all available gas and reverting on errors. * * https://eips.ethereum.org/EIPS/eip-1884[EIP1884] increases the gas cost * of certain opcodes, possibly making contracts go over the 2300 gas limit * imposed by `transfer`, making them unable to receive funds via * `transfer`. {sendValue} removes this limitation. * * https://diligence.consensys.net/posts/2019/09/stop-using-soliditys-transfer-now/[Learn more]. * * IMPORTANT: because control is transferred to `recipient`, care must be * taken to not create reentrancy vulnerabilities. Consider using * {ReentrancyGuard} or the * https://solidity.readthedocs.io/en/v0.5.11/security-considerations.html#use-the-checks-effects-interactions-pattern[checks-effects-interactions pattern]. */ function sendValue(address payable recipient, uint256 amount) internal { require(address(this).balance >= amount, "Address: insufficient balance"); (bool success, ) = recipient.call{value: amount}(""); require(success, "Address: unable to send value, recipient may have reverted"); } /** * @dev Performs a Solidity function call using a low level `call`. A * plain `call` is an unsafe replacement for a function call: use this * function instead. * * If `target` reverts with a revert reason, it is bubbled up by this * function (like regular Solidity function calls). * * Returns the raw returned data. To convert to the expected return value, * use https://solidity.readthedocs.io/en/latest/units-and-global-variables.html?highlight=abi.decode#abi-encoding-and-decoding-functions[`abi.decode`]. * * Requirements: * * - `target` must be a contract. * - calling `target` with `data` must not revert. * * _Available since v3.1._ */ function functionCall(address target, bytes memory data) internal returns (bytes memory) { return functionCall(target, data, "Address: low-level call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], but with * `errorMessage` as a fallback revert reason when `target` reverts. * * _Available since v3.1._ */ function functionCall( address target, bytes memory data, string memory errorMessage ) internal returns (bytes memory) { return functionCallWithValue(target, data, 0, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but also transferring `value` wei to `target`. * * Requirements: * * - the calling contract must have an ETH balance of at least `value`. * - the called Solidity function must be `payable`. * * _Available since v3.1._ */ function functionCallWithValue( address target, bytes memory data, uint256 value ) internal returns (bytes memory) { return functionCallWithValue(target, data, value, "Address: low-level call with value failed"); } /** * @dev Same as {xref-Address-functionCallWithValue-address-bytes-uint256-}[`functionCallWithValue`], but * with `errorMessage` as a fallback revert reason when `target` reverts. * * _Available since v3.1._ */ function functionCallWithValue( address target, bytes memory data, uint256 value, string memory errorMessage ) internal returns (bytes memory) { require(address(this).balance >= value, "Address: insufficient balance for call"); require(isContract(target), "Address: call to non-contract"); (bool success, bytes memory returndata) = target.call{value: value}(data); return verifyCallResult(success, returndata, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but performing a static call. * * _Available since v3.3._ */ function functionStaticCall(address target, bytes memory data) internal view returns (bytes memory) { return functionStaticCall(target, data, "Address: low-level static call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`], * but performing a static call. * * _Available since v3.3._ */ function functionStaticCall( address target, bytes memory data, string memory errorMessage ) internal view returns (bytes memory) { require(isContract(target), "Address: static call to non-contract"); (bool success, bytes memory returndata) = target.staticcall(data); return verifyCallResult(success, returndata, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but performing a delegate call. * * _Available since v3.4._ */ function functionDelegateCall(address target, bytes memory data) internal returns (bytes memory) { return functionDelegateCall(target, data, "Address: low-level delegate call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`], * but performing a delegate call. * * _Available since v3.4._ */ function functionDelegateCall( address target, bytes memory data, string memory errorMessage ) internal returns (bytes memory) { require(isContract(target), "Address: delegate call to non-contract"); (bool success, bytes memory returndata) = target.delegatecall(data); return verifyCallResult(success, returndata, errorMessage); } /** * @dev Tool to verifies that a low level call was successful, and revert if it wasn't, either by bubbling the * revert reason using the provided one. * * _Available since v4.3._ */ function verifyCallResult( bool success, bytes memory returndata, string memory errorMessage ) internal pure returns (bytes memory) { if (success) { return returndata; } else { // Look for revert reason and bubble it up if present if (returndata.length > 0) { // The easiest way to bubble the revert reason is using memory via assembly /// @solidity memory-safe-assembly assembly { let returndata_size := mload(returndata) revert(add(32, returndata), returndata_size) } } else { revert(errorMessage); } } } } // File: @openzeppelin/contracts/token/ERC721/IERC721Receiver.sol // OpenZeppelin Contracts (last updated v4.6.0) (token/ERC721/IERC721Receiver.sol) pragma solidity ^0.8.0; /** * @title ERC721 token receiver interface * @dev Interface for any contract that wants to support safeTransfers * from ERC721 asset contracts. */ interface IERC721Receiver { /** * @dev Whenever an {IERC721} `tokenId` token is transferred to this contract via {IERC721-safeTransferFrom} * by `operator` from `from`, this function is called. * * It must return its Solidity selector to confirm the token transfer. * If any other value is returned or the interface is not implemented by the recipient, the transfer will be reverted. * * The selector can be obtained in Solidity with `IERC721Receiver.onERC721Received.selector`. */ function onERC721Received( address operator, address from, uint256 tokenId, bytes calldata data ) external returns (bytes4); } // File: @openzeppelin/contracts/utils/Context.sol // 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; } } // File: @openzeppelin/contracts/token/ERC20/ERC20.sol // OpenZeppelin Contracts (last updated v4.7.0) (token/ERC20/ERC20.sol) pragma solidity ^0.8.0; /** * @dev Implementation of the {IERC20} interface. * * This implementation is agnostic to the way tokens are created. This means * that a supply mechanism has to be added in a derived contract using {_mint}. * For a generic mechanism see {ERC20PresetMinterPauser}. * * TIP: For a detailed writeup see our guide * https://forum.zeppelin.solutions/t/how-to-implement-erc20-supply-mechanisms/226[How * to implement supply mechanisms]. * * We have followed general OpenZeppelin Contracts guidelines: functions revert * instead returning `false` on failure. This behavior is nonetheless * conventional and does not conflict with the expectations of ERC20 * applications. * * Additionally, an {Approval} event is emitted on calls to {transferFrom}. * This allows applications to reconstruct the allowance for all accounts just * by listening to said events. Other implementations of the EIP may not emit * these events, as it isn't required by the specification. * * Finally, the non-standard {decreaseAllowance} and {increaseAllowance} * functions have been added to mitigate the well-known issues around setting * allowances. See {IERC20-approve}. */ contract ERC20 is Context, IERC20, IERC20Metadata { mapping(address => uint256) private _balances; mapping(address => mapping(address => uint256)) private _allowances; uint256 private _totalSupply; string private _name; string private _symbol; /** * @dev Sets the values for {name} and {symbol}. * * The default value of {decimals} is 18. To select a different value for * {decimals} you should overload it. * * All two of these values are immutable: they can only be set once during * construction. */ constructor(string memory name_, string memory symbol_) { _name = name_; _symbol = symbol_; } /** * @dev Returns the name of the token. */ function name() public view virtual override returns (string memory) { return _name; } /** * @dev Returns the symbol of the token, usually a shorter version of the * name. */ function symbol() public view virtual override returns (string memory) { return _symbol; } /** * @dev Returns the number of decimals used to get its user representation. * For example, if `decimals` equals `2`, a balance of `505` tokens should * be displayed to a user as `5.05` (`505 / 10 ** 2`). * * Tokens usually opt for a value of 18, imitating the relationship between * Ether and Wei. This is the value {ERC20} uses, unless this function is * overridden; * * NOTE: This information is only used for _display_ purposes: it in * no way affects any of the arithmetic of the contract, including * {IERC20-balanceOf} and {IERC20-transfer}. */ function decimals() public view virtual override returns (uint8) { return 18; } /** * @dev See {IERC20-totalSupply}. */ function totalSupply() public view virtual override returns (uint256) { return _totalSupply; } /** * @dev See {IERC20-balanceOf}. */ function balanceOf(address account) public view virtual override returns (uint256) { return _balances[account]; } /** * @dev See {IERC20-transfer}. * * Requirements: * * - `to` cannot be the zero address. * - the caller must have a balance of at least `amount`. */ function transfer(address to, uint256 amount) public virtual override returns (bool) { address owner = _msgSender(); _transfer(owner, to, amount); return true; } /** * @dev See {IERC20-allowance}. */ function allowance(address owner, address spender) public view virtual override returns (uint256) { return _allowances[owner][spender]; } /** * @dev See {IERC20-approve}. * * NOTE: If `amount` is the maximum `uint256`, the allowance is not updated on * `transferFrom`. This is semantically equivalent to an infinite approval. * * Requirements: * * - `spender` cannot be the zero address. */ function approve(address spender, uint256 amount) public virtual override returns (bool) { address owner = _msgSender(); _approve(owner, spender, amount); return true; } /** * @dev See {IERC20-transferFrom}. * * Emits an {Approval} event indicating the updated allowance. This is not * required by the EIP. See the note at the beginning of {ERC20}. * * NOTE: Does not update the allowance if the current allowance * is the maximum `uint256`. * * Requirements: * * - `from` and `to` cannot be the zero address. * - `from` must have a balance of at least `amount`. * - the caller must have allowance for ``from``'s tokens of at least * `amount`. */ function transferFrom( address from, address to, uint256 amount ) public virtual override returns (bool) { address spender = _msgSender(); _spendAllowance(from, spender, amount); _transfer(from, to, amount); return true; } /** * @dev Atomically increases the allowance granted to `spender` by the caller. * * This is an alternative to {approve} that can be used as a mitigation for * problems described in {IERC20-approve}. * * Emits an {Approval} event indicating the updated allowance. * * Requirements: * * - `spender` cannot be the zero address. */ function increaseAllowance(address spender, uint256 addedValue) public virtual returns (bool) { address owner = _msgSender(); _approve(owner, spender, allowance(owner, spender) + addedValue); return true; } /** * @dev Atomically decreases the allowance granted to `spender` by the caller. * * This is an alternative to {approve} that can be used as a mitigation for * problems described in {IERC20-approve}. * * Emits an {Approval} event indicating the updated allowance. * * Requirements: * * - `spender` cannot be the zero address. * - `spender` must have allowance for the caller of at least * `subtractedValue`. */ function decreaseAllowance(address spender, uint256 subtractedValue) public virtual returns (bool) { address owner = _msgSender(); uint256 currentAllowance = allowance(owner, spender); require(currentAllowance >= subtractedValue, "ERC20: decreased allowance below zero"); unchecked { _approve(owner, spender, currentAllowance - subtractedValue); } return true; } /** * @dev Moves `amount` of tokens from `from` to `to`. * * This internal function is equivalent to {transfer}, and can be used to * e.g. implement automatic token fees, slashing mechanisms, etc. * * Emits a {Transfer} event. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `from` must have a balance of at least `amount`. */ function _transfer( address from, address to, uint256 amount ) internal virtual { require(from != address(0), "ERC20: transfer from the zero address"); require(to != address(0), "ERC20: transfer to the zero address"); _beforeTokenTransfer(from, to, amount); uint256 fromBalance = _balances[from]; require(fromBalance >= amount, "ERC20: transfer amount exceeds balance"); unchecked { _balances[from] = fromBalance - amount; } _balances[to] += amount; emit Transfer(from, to, amount); _afterTokenTransfer(from, to, amount); } /** @dev Creates `amount` tokens and assigns them to `account`, increasing * the total supply. * * Emits a {Transfer} event with `from` set to the zero address. * * Requirements: * * - `account` cannot be the zero address. */ function _mint(address account, uint256 amount) internal virtual { require(account != address(0), "ERC20: mint to the zero address"); _beforeTokenTransfer(address(0), account, amount); _totalSupply += amount; _balances[account] += amount; emit Transfer(address(0), account, amount); _afterTokenTransfer(address(0), account, amount); } /** * @dev Destroys `amount` tokens from `account`, reducing the * total supply. * * Emits a {Transfer} event with `to` set to the zero address. * * Requirements: * * - `account` cannot be the zero address. * - `account` must have at least `amount` tokens. */ function _burn(address account, uint256 amount) internal virtual { require(account != address(0), "ERC20: burn from the zero address"); _beforeTokenTransfer(account, address(0), amount); uint256 accountBalance = _balances[account]; require(accountBalance >= amount, "ERC20: burn amount exceeds balance"); unchecked { _balances[account] = accountBalance - amount; } _totalSupply -= amount; emit Transfer(account, address(0), amount); _afterTokenTransfer(account, address(0), amount); } /** * @dev Sets `amount` as the allowance of `spender` over the `owner` s tokens. * * This internal function is equivalent to `approve`, and can be used to * e.g. set automatic allowances for certain subsystems, etc. * * Emits an {Approval} event. * * Requirements: * * - `owner` cannot be the zero address. * - `spender` cannot be the zero address. */ function _approve( address owner, address spender, uint256 amount ) internal virtual { require(owner != address(0), "ERC20: approve from the zero address"); require(spender != address(0), "ERC20: approve to the zero address"); _allowances[owner][spender] = amount; emit Approval(owner, spender, amount); } /** * @dev Updates `owner` s allowance for `spender` based on spent `amount`. * * Does not update the allowance amount in case of infinite allowance. * Revert if not enough allowance is available. * * Might emit an {Approval} event. */ function _spendAllowance( address owner, address spender, uint256 amount ) internal virtual { uint256 currentAllowance = allowance(owner, spender); if (currentAllowance != type(uint256).max) { require(currentAllowance >= amount, "ERC20: insufficient allowance"); unchecked { _approve(owner, spender, currentAllowance - amount); } } } /** * @dev Hook that is called before any transfer of tokens. This includes * minting and burning. * * Calling conditions: * * - when `from` and `to` are both non-zero, `amount` of ``from``'s tokens * will be transferred to `to`. * - when `from` is zero, `amount` tokens will be minted for `to`. * - when `to` is zero, `amount` of ``from``'s tokens will be burned. * - `from` and `to` are never both zero. * * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks]. */ function _beforeTokenTransfer( address from, address to, uint256 amount ) internal virtual {} /** * @dev Hook that is called after any transfer of tokens. This includes * minting and burning. * * Calling conditions: * * - when `from` and `to` are both non-zero, `amount` of ``from``'s tokens * has been transferred to `to`. * - when `from` is zero, `amount` tokens have been minted for `to`. * - when `to` is zero, `amount` of ``from``'s tokens have been burned. * - `from` and `to` are never both zero. * * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks]. */ function _afterTokenTransfer( address from, address to, uint256 amount ) internal virtual {} } // File: @openzeppelin/contracts/token/ERC20/extensions/ERC20Burnable.sol // OpenZeppelin Contracts (last updated v4.5.0) (token/ERC20/extensions/ERC20Burnable.sol) pragma solidity ^0.8.0; /** * @dev Extension of {ERC20} that allows token holders to destroy both their own * tokens and those that they have an allowance for, in a way that can be * recognized off-chain (via event analysis). */ abstract contract ERC20Burnable is Context, ERC20 { /** * @dev Destroys `amount` tokens from the caller. * * See {ERC20-_burn}. */ function burn(uint256 amount) public virtual { _burn(_msgSender(), amount); } /** * @dev Destroys `amount` tokens from `account`, deducting from the caller's * allowance. * * See {ERC20-_burn} and {ERC20-allowance}. * * Requirements: * * - the caller must have allowance for ``accounts``'s tokens of at least * `amount`. */ function burnFrom(address account, uint256 amount) public virtual { _spendAllowance(account, _msgSender(), amount); _burn(account, amount); } } // File: @openzeppelin/contracts/access/Ownable.sol // OpenZeppelin Contracts (last updated v4.7.0) (access/Ownable.sol) pragma solidity ^0.8.0; /** * @dev Contract module which provides a basic access control mechanism, where * there is an account (an owner) that can be granted exclusive access to * specific functions. * * By default, the owner account will be the one that deploys the contract. This * can later be changed with {transferOwnership}. * * This module is used through inheritance. It will make available the modifier * `onlyOwner`, which can be applied to your functions to restrict their use to * the owner. */ abstract contract Ownable is Context { address private _owner; event OwnershipTransferred(address indexed previousOwner, address indexed newOwner); /** * @dev Initializes the contract setting the deployer as the initial owner. */ constructor() { _transferOwnership(_msgSender()); } /** * @dev Throws if called by any account other than the owner. */ modifier onlyOwner() { _checkOwner(); _; } /** * @dev Returns the address of the current owner. */ function owner() public view virtual returns (address) { return _owner; } /** * @dev Throws if the sender is not the owner. */ function _checkOwner() internal view virtual { require(owner() == _msgSender(), "Ownable: caller is not the owner"); } /** * @dev Leaves the contract without owner. It will not be possible to call * `onlyOwner` functions anymore. Can only be called by the current owner. * * NOTE: Renouncing ownership will leave the contract without an owner, * thereby removing any functionality that is only available to the owner. */ function renounceOwnership() public virtual onlyOwner { _transferOwnership(address(0)); } /** * @dev Transfers ownership of the contract to a new account (`newOwner`). * Can only be called by the current owner. */ function transferOwnership(address newOwner) public virtual onlyOwner { require(newOwner != address(0), "Ownable: new owner is the zero address"); _transferOwnership(newOwner); } /** * @dev Transfers ownership of the contract to a new account (`newOwner`). * Internal function without access restriction. */ function _transferOwnership(address newOwner) internal virtual { address oldOwner = _owner; _owner = newOwner; emit OwnershipTransferred(oldOwner, newOwner); } } // File: @openzeppelin/contracts/security/ReentrancyGuard.sol // OpenZeppelin Contracts v4.4.1 (security/ReentrancyGuard.sol) pragma solidity ^0.8.0; /** * @dev Contract module that helps prevent reentrant calls to a function. * * Inheriting from `ReentrancyGuard` will make the {nonReentrant} modifier * available, which can be applied to functions to make sure there are no nested * (reentrant) calls to them. * * Note that because there is a single `nonReentrant` guard, functions marked as * `nonReentrant` may not call one another. This can be worked around by making * those functions `private`, and then adding `external` `nonReentrant` entry * points to them. * * TIP: If you would like to learn more about reentrancy and alternative ways * to protect against it, check out our blog post * https://blog.openzeppelin.com/reentrancy-after-istanbul/[Reentrancy After Istanbul]. */ abstract contract ReentrancyGuard { // Booleans are more expensive than uint256 or any type that takes up a full // word because each write operation emits an extra SLOAD to first read the // slot's contents, replace the bits taken up by the boolean, and then write // back. This is the compiler's defense against contract upgrades and // pointer aliasing, and it cannot be disabled. // The values being non-zero value makes deployment a bit more expensive, // but in exchange the refund on every call to nonReentrant will be lower in // amount. Since refunds are capped to a percentage of the total // transaction's gas, it is best to keep them low in cases like this one, to // increase the likelihood of the full refund coming into effect. uint256 private constant _NOT_ENTERED = 1; uint256 private constant _ENTERED = 2; uint256 private _status; constructor() { _status = _NOT_ENTERED; } /** * @dev Prevents a contract from calling itself, directly or indirectly. * Calling a `nonReentrant` function from another `nonReentrant` * function is not supported. It is possible to prevent this from happening * by making the `nonReentrant` function external, and making it call a * `private` function that does the actual work. */ modifier nonReentrant() { // On the first call to nonReentrant, _notEntered will be true require(_status != _ENTERED, "ReentrancyGuard: reentrant call"); // Any calls to nonReentrant after this point will fail _status = _ENTERED; _; // By storing the original value once again, a refund is triggered (see // https://eips.ethereum.org/EIPS/eip-2200) _status = _NOT_ENTERED; } } // File: @openzeppelin/contracts/utils/introspection/IERC165.sol // 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); } // File: @openzeppelin/contracts/utils/introspection/ERC165.sol // OpenZeppelin Contracts v4.4.1 (utils/introspection/ERC165.sol) pragma solidity ^0.8.0; /** * @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; } } // File: @openzeppelin/contracts/token/ERC721/IERC721.sol // OpenZeppelin Contracts (last updated v4.7.0) (token/ERC721/IERC721.sol) pragma solidity ^0.8.0; /** * @dev Required interface of an ERC721 compliant contract. */ interface IERC721 is IERC165 { /** * @dev Emitted when `tokenId` token is transferred from `from` to `to`. */ event Transfer(address indexed from, address indexed to, uint256 indexed tokenId); /** * @dev Emitted when `owner` enables `approved` to manage the `tokenId` token. */ event Approval(address indexed owner, address indexed approved, uint256 indexed tokenId); /** * @dev Emitted when `owner` enables or disables (`approved`) `operator` to manage all of its assets. */ event ApprovalForAll(address indexed owner, address indexed operator, bool approved); /** * @dev Returns the number of tokens in ``owner``'s account. */ function balanceOf(address owner) external view returns (uint256 balance); /** * @dev Returns the owner of the `tokenId` token. * * Requirements: * * - `tokenId` must exist. */ function ownerOf(uint256 tokenId) external view returns (address owner); /** * @dev Safely transfers `tokenId` token from `from` to `to`. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must exist and be owned by `from`. * - If the caller is not `from`, it must be approved to move this token by either {approve} or {setApprovalForAll}. * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */ function safeTransferFrom( address from, address to, uint256 tokenId, bytes calldata data ) external; /** * @dev Safely transfers `tokenId` token from `from` to `to`, checking first that contract recipients * are aware of the ERC721 protocol to prevent tokens from being forever locked. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must exist and be owned by `from`. * - If the caller is not `from`, it must have been allowed to move this token by either {approve} or {setApprovalForAll}. * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */ function safeTransferFrom( address from, address to, uint256 tokenId ) external; /** * @dev Transfers `tokenId` token from `from` to `to`. * * WARNING: Usage of this method is discouraged, use {safeTransferFrom} whenever possible. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must be owned by `from`. * - If the caller is not `from`, it must be approved to move this token by either {approve} or {setApprovalForAll}. * * Emits a {Transfer} event. */ function transferFrom( address from, address to, uint256 tokenId ) external; /** * @dev Gives permission to `to` to transfer `tokenId` token to another account. * The approval is cleared when the token is transferred. * * Only a single account can be approved at a time, so approving the zero address clears previous approvals. * * Requirements: * * - The caller must own the token or be an approved operator. * - `tokenId` must exist. * * Emits an {Approval} event. */ function approve(address to, uint256 tokenId) external; /** * @dev Approve or remove `operator` as an operator for the caller. * Operators can call {transferFrom} or {safeTransferFrom} for any token owned by the caller. * * Requirements: * * - The `operator` cannot be the caller. * * Emits an {ApprovalForAll} event. */ function setApprovalForAll(address operator, bool _approved) external; /** * @dev Returns the account approved for `tokenId` token. * * Requirements: * * - `tokenId` must exist. */ function getApproved(uint256 tokenId) external view returns (address operator); /** * @dev Returns if the `operator` is allowed to manage all of the assets of `owner`. * * See {setApprovalForAll} */ function isApprovedForAll(address owner, address operator) external view returns (bool); } // File: @openzeppelin/contracts/token/ERC721/extensions/IERC721Metadata.sol // OpenZeppelin Contracts v4.4.1 (token/ERC721/extensions/IERC721Metadata.sol) pragma solidity ^0.8.0; /** * @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); } // File: @openzeppelin/contracts/token/ERC721/ERC721.sol // OpenZeppelin Contracts (last updated v4.7.0) (token/ERC721/ERC721.sol) pragma solidity ^0.8.0; /** * @dev Implementation of https://eips.ethereum.org/EIPS/eip-721[ERC721] Non-Fungible Token Standard, including * the Metadata extension, but not including the Enumerable extension, which is available separately as * {ERC721Enumerable}. */ contract ERC721 is Context, ERC165, IERC721, IERC721Metadata { using Address for address; using Strings for uint256; // Token name string private _name; // Token symbol string private _symbol; // Mapping from token ID to owner address mapping(uint256 => address) private _owners; // Mapping owner address to token count mapping(address => uint256) private _balances; // Mapping from token ID to approved address mapping(uint256 => address) private _tokenApprovals; // Mapping from owner to operator approvals mapping(address => mapping(address => bool)) private _operatorApprovals; /** * @dev Initializes the contract by setting a `name` and a `symbol` to the token collection. */ constructor(string memory name_, string memory symbol_) { _name = name_; _symbol = symbol_; } /** * @dev See {IERC165-supportsInterface}. */ function supportsInterface(bytes4 interfaceId) public view virtual override(ERC165, IERC165) returns (bool) { return interfaceId == type(IERC721).interfaceId || interfaceId == type(IERC721Metadata).interfaceId || super.supportsInterface(interfaceId); } /** * @dev See {IERC721-balanceOf}. */ function balanceOf(address owner) public view virtual override returns (uint256) { require(owner != address(0), "ERC721: address zero is not a valid owner"); return _balances[owner]; } /** * @dev See {IERC721-ownerOf}. */ function ownerOf(uint256 tokenId) public view virtual override returns (address) { address owner = _owners[tokenId]; require(owner != address(0), "ERC721: invalid token ID"); return owner; } /** * @dev See {IERC721Metadata-name}. */ function name() public view virtual override returns (string memory) { return _name; } /** * @dev See {IERC721Metadata-symbol}. */ function symbol() public view virtual override returns (string memory) { return _symbol; } /** * @dev See {IERC721Metadata-tokenURI}. */ function tokenURI(uint256 tokenId) public view virtual override returns (string memory) { _requireMinted(tokenId); string memory baseURI = _baseURI(); return bytes(baseURI).length > 0 ? string(abi.encodePacked(baseURI, tokenId.toString())) : ""; } /** * @dev Base URI for computing {tokenURI}. If set, the resulting URI for each * token will be the concatenation of the `baseURI` and the `tokenId`. Empty * by default, can be overridden in child contracts. */ function _baseURI() internal view virtual returns (string memory) { return ""; } /** * @dev See {IERC721-approve}. */ function approve(address to, uint256 tokenId) public virtual override { address owner = ERC721.ownerOf(tokenId); require(to != owner, "ERC721: approval to current owner"); require( _msgSender() == owner || isApprovedForAll(owner, _msgSender()), "ERC721: approve caller is not token owner nor approved for all" ); _approve(to, tokenId); } /** * @dev See {IERC721-getApproved}. */ function getApproved(uint256 tokenId) public view virtual override returns (address) { _requireMinted(tokenId); return _tokenApprovals[tokenId]; } /** * @dev See {IERC721-setApprovalForAll}. */ function setApprovalForAll(address operator, bool approved) public virtual override { _setApprovalForAll(_msgSender(), operator, approved); } /** * @dev See {IERC721-isApprovedForAll}. */ function isApprovedForAll(address owner, address operator) public view virtual override returns (bool) { return _operatorApprovals[owner][operator]; } /** * @dev See {IERC721-transferFrom}. */ function transferFrom( address from, address to, uint256 tokenId ) public virtual override { //solhint-disable-next-line max-line-length require(_isApprovedOrOwner(_msgSender(), tokenId), "ERC721: caller is not token owner nor approved"); _transfer(from, to, tokenId); } /** * @dev See {IERC721-safeTransferFrom}. */ function safeTransferFrom( address from, address to, uint256 tokenId ) public virtual override { safeTransferFrom(from, to, tokenId, ""); } /** * @dev See {IERC721-safeTransferFrom}. */ function safeTransferFrom( address from, address to, uint256 tokenId, bytes memory data ) public virtual override { require(_isApprovedOrOwner(_msgSender(), tokenId), "ERC721: caller is not token owner nor approved"); _safeTransfer(from, to, tokenId, data); } /** * @dev Safely transfers `tokenId` token from `from` to `to`, checking first that contract recipients * are aware of the ERC721 protocol to prevent tokens from being forever locked. * * `data` is additional data, it has no specified format and it is sent in call to `to`. * * This internal function is equivalent to {safeTransferFrom}, and can be used to e.g. * implement alternative mechanisms to perform token transfer, such as signature-based. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must exist and be owned by `from`. * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */ function _safeTransfer( address from, address to, uint256 tokenId, bytes memory data ) internal virtual { _transfer(from, to, tokenId); require(_checkOnERC721Received(from, to, tokenId, data), "ERC721: transfer to non ERC721Receiver implementer"); } /** * @dev Returns whether `tokenId` exists. * * Tokens can be managed by their owner or approved accounts via {approve} or {setApprovalForAll}. * * Tokens start existing when they are minted (`_mint`), * and stop existing when they are burned (`_burn`). */ function _exists(uint256 tokenId) internal view virtual returns (bool) { return _owners[tokenId] != address(0); } /** * @dev Returns whether `spender` is allowed to manage `tokenId`. * * Requirements: * * - `tokenId` must exist. */ function _isApprovedOrOwner(address spender, uint256 tokenId) internal view virtual returns (bool) { address owner = ERC721.ownerOf(tokenId); return (spender == owner || isApprovedForAll(owner, spender) || getApproved(tokenId) == spender); } /** * @dev Safely mints `tokenId` and transfers it to `to`. * * Requirements: * * - `tokenId` must not exist. * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */ function _safeMint(address to, uint256 tokenId) internal virtual { _safeMint(to, tokenId, ""); } /** * @dev Same as {xref-ERC721-_safeMint-address-uint256-}[`_safeMint`], with an additional `data` parameter which is * forwarded in {IERC721Receiver-onERC721Received} to contract recipients. */ function _safeMint( address to, uint256 tokenId, bytes memory data ) internal virtual { _mint(to, tokenId); require( _checkOnERC721Received(address(0), to, tokenId, data), "ERC721: transfer to non ERC721Receiver implementer" ); } /** * @dev Mints `tokenId` and transfers it to `to`. * * WARNING: Usage of this method is discouraged, use {_safeMint} whenever possible * * Requirements: * * - `tokenId` must not exist. * - `to` cannot be the zero address. * * Emits a {Transfer} event. */ function _mint(address to, uint256 tokenId) internal virtual { require(to != address(0), "ERC721: mint to the zero address"); require(!_exists(tokenId), "ERC721: token already minted"); _beforeTokenTransfer(address(0), to, tokenId); _balances[to] += 1; _owners[tokenId] = to; emit Transfer(address(0), to, tokenId); _afterTokenTransfer(address(0), to, tokenId); } /** * @dev Destroys `tokenId`. * The approval is cleared when the token is burned. * * Requirements: * * - `tokenId` must exist. * * Emits a {Transfer} event. */ function _burn(uint256 tokenId) internal virtual { address owner = ERC721.ownerOf(tokenId); _beforeTokenTransfer(owner, address(0), tokenId); // Clear approvals _approve(address(0), tokenId); _balances[owner] -= 1; delete _owners[tokenId]; emit Transfer(owner, address(0), tokenId); _afterTokenTransfer(owner, address(0), tokenId); } /** * @dev Transfers `tokenId` from `from` to `to`. * As opposed to {transferFrom}, this imposes no restrictions on msg.sender. * * Requirements: * * - `to` cannot be the zero address. * - `tokenId` token must be owned by `from`. * * Emits a {Transfer} event. */ function _transfer( address from, address to, uint256 tokenId ) internal virtual { require(ERC721.ownerOf(tokenId) == from, "ERC721: transfer from incorrect owner"); require(to != address(0), "ERC721: transfer to the zero address"); _beforeTokenTransfer(from, to, tokenId); // Clear approvals from the previous owner _approve(address(0), tokenId); _balances[from] -= 1; _balances[to] += 1; _owners[tokenId] = to; emit Transfer(from, to, tokenId); _afterTokenTransfer(from, to, tokenId); } /** * @dev Approve `to` to operate on `tokenId` * * Emits an {Approval} event. */ function _approve(address to, uint256 tokenId) internal virtual { _tokenApprovals[tokenId] = to; emit Approval(ERC721.ownerOf(tokenId), to, tokenId); } /** * @dev Approve `operator` to operate on all of `owner` tokens * * Emits an {ApprovalForAll} event. */ function _setApprovalForAll( address owner, address operator, bool approved ) internal virtual { require(owner != operator, "ERC721: approve to caller"); _operatorApprovals[owner][operator] = approved; emit ApprovalForAll(owner, operator, approved); } /** * @dev Reverts if the `tokenId` has not been minted yet. */ function _requireMinted(uint256 tokenId) internal view virtual { require(_exists(tokenId), "ERC721: invalid token ID"); } /** * @dev Internal function to invoke {IERC721Receiver-onERC721Received} on a target address. * The call is not executed if the target address is not a contract. * * @param from address representing the previous owner of the given token ID * @param to target address that will receive the tokens * @param tokenId uint256 ID of the token to be transferred * @param data bytes optional data to send along with the call * @return bool whether the call correctly returned the expected magic value */ function _checkOnERC721Received( address from, address to, uint256 tokenId, bytes memory data ) private returns (bool) { if (to.isContract()) { try IERC721Receiver(to).onERC721Received(_msgSender(), from, tokenId, data) returns (bytes4 retval) { return retval == IERC721Receiver.onERC721Received.selector; } catch (bytes memory reason) { if (reason.length == 0) { revert("ERC721: transfer to non ERC721Receiver implementer"); } else { /// @solidity memory-safe-assembly assembly { revert(add(32, reason), mload(reason)) } } } } else { return true; } } /** * @dev Hook that is called before any token transfer. This includes minting * and burning. * * Calling conditions: * * - When `from` and `to` are both non-zero, ``from``'s `tokenId` will be * transferred to `to`. * - When `from` is zero, `tokenId` will be minted for `to`. * - When `to` is zero, ``from``'s `tokenId` will be burned. * - `from` and `to` are never both zero. * * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks]. */ function _beforeTokenTransfer( address from, address to, uint256 tokenId ) internal virtual {} /** * @dev Hook that is called after any transfer of tokens. This includes * minting and burning. * * Calling conditions: * * - when `from` and `to` are both non-zero. * - `from` and `to` are never both zero. * * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks]. */ function _afterTokenTransfer( address from, address to, uint256 tokenId ) internal virtual {} } // File: @openzeppelin/contracts/token/ERC721/extensions/ERC721Burnable.sol // OpenZeppelin Contracts (last updated v4.7.0) (token/ERC721/extensions/ERC721Burnable.sol) pragma solidity ^0.8.0; /** * @title ERC721 Burnable Token * @dev ERC721 Token that can be burned (destroyed). */ abstract contract ERC721Burnable is Context, ERC721 { /** * @dev Burns `tokenId`. See {ERC721-_burn}. * * Requirements: * * - The caller must own `tokenId` or be an approved operator. */ function burn(uint256 tokenId) public virtual { //solhint-disable-next-line max-line-length require(_isApprovedOrOwner(_msgSender(), tokenId), "ERC721: caller is not token owner nor approved"); _burn(tokenId); } } // File: contracts/stakingskull.sol pragma solidity ^0.8.4; // @author <https://welabs.io> // ░██╗░░░░░░░██╗███████╗██╗░░░░░░█████╗░██████╗░░██████╗░░░██╗░█████╗░ // ░██║░░██╗░░██║██╔════╝██║░░░░░██╔══██╗██╔══██╗██╔════╝░░░██║██╔══██╗ // ░╚██╗████╗██╔╝█████╗░░██║░░░░░███████║██████╦╝╚█████╗░░░░██║██║░░██║ // ░░████╔═████║░██╔══╝░░██║░░░░░██╔══██║██╔══██╗░╚═══██╗░░░██║██║░░██║ // ░░╚██╔╝░╚██╔╝░███████╗███████╗██║░░██║██████╦╝██████╔╝██╗██║╚█████╔╝ // ░░░╚═╝░░░╚═╝░░╚══════╝╚══════╝╚═╝░░╚═╝╚═════╝░╚═════╝░╚═╝╚═╝░╚════╝░ contract StakingSkull is Ownable, ReentrancyGuard{ uint randNonce = 0; uint randNonce1 = 1; uint256 public raidPrice = 300 ether; uint256 public upgradePrice = 800 ether; ERC20Burnable public immutable tokenContract; ERC721A public immutable landContract; ERC721Burnable public juniorContract; constructor(ERC721A _landContract, ERC20Burnable _tokenContract) { landContract = _landContract; tokenContract = _tokenContract; } struct StakedToken { address staker; uint256 tokenId; uint256 timeOfLastStake; } // Staker Info struct Staker { // uint256 amountStaked; StakedToken[] stakedLands; StakedToken[] stakedJuniors; uint256 unclaimedRewards; } // Mapping of user address to staker info mapping(address => Staker) public stakers; // Mapping token Id to staker mapping(uint256 => address) public landAddress; mapping(uint256 => address) public juniorAddress; // Mapping token Id to staker mapping(uint256 => uint256) public landResistance; event RaidToken(address indexed _from, uint256 tokenId); event RaidSucces(address indexed _from, bool _success); event RaidJunior(address indexed _from, bool destroyed); function setJuniorContract(ERC721Burnable _juniorContract) public onlyOwner { juniorContract = _juniorContract; } // Staking Lands function stakeLand(uint256 _tokenId) external { require(landContract.ownerOf(_tokenId) == msg.sender,"You don't own this token!"); landContract.transferFrom(msg.sender, address(this), _tokenId); stakers[msg.sender].stakedLands.push(StakedToken(msg.sender, _tokenId, block.timestamp)); // stakers[msg.sender].amountStaked++; landAddress[_tokenId] = msg.sender; } function unstakeLand(uint256 _tokenId) external { require(landAddress[_tokenId] == msg.sender, "You don't own this token!"); require(block.timestamp - stakers[landAddress[_tokenId]].stakedLands[_tokenId].timeOfLastStake > 86400, "You should wait a day to unstake your land"); uint256 index = 0; for (uint256 i = 0; i < stakers[msg.sender].stakedLands.length; i++) { if (stakers[msg.sender].stakedLands[i].tokenId == _tokenId) { index = i; break; } } delete stakers[msg.sender].stakedLands[index]; delete landAddress[_tokenId]; landContract.transferFrom(address(this), msg.sender, _tokenId); } // Staking Juniors function stakeJunior(uint256 _tokenId) external { require(juniorContract.ownerOf(_tokenId) == msg.sender,"You don't own this token!"); juniorContract.transferFrom(msg.sender, address(this), _tokenId); stakers[msg.sender].stakedJuniors.push(StakedToken(msg.sender, _tokenId, block.timestamp)); juniorAddress[_tokenId] = msg.sender; } function unstakeJunior(uint256 _tokenId) external { require(juniorAddress[_tokenId] == msg.sender, "You don't own this token!"); uint256 index = 0; for (uint256 i = 0; i < stakers[msg.sender].stakedJuniors.length; i++) { if (stakers[msg.sender].stakedJuniors[i].tokenId == _tokenId) { index = i; break; } } delete stakers[msg.sender].stakedJuniors[index]; delete juniorAddress[_tokenId]; juniorContract.transferFrom(address(this), msg.sender, _tokenId); } // Raiding function raid(uint256[] calldata _tokensId) public payable { // Find the index of this token id in the stakedLands array for (uint256 i = 0; i < _tokensId.length; i++) { require(juniorAddress[i] == msg.sender, "You must own the Junior Kong"); } uint counter = 1; uint256 index = uint(keccak256(abi.encodePacked(block.difficulty, block.timestamp, counter))) % 3165; do { index = uint(keccak256(abi.encodePacked(block.difficulty, block.timestamp, counter))) % 3165; counter++; } while(landAddress[index] == msg.sender || landAddress[index] == address(0)) ; emit RaidToken(msg.sender, index); if ( randomRaid() > 90 + landResistance[index] - _tokensId.length) { ERC20Burnable(tokenContract).burnFrom(msg.sender, raidPrice); emit RaidSucces(msg.sender, true); // Unstake delete stakers[landAddress[index]].stakedLands[index]; delete landAddress[index]; // Stake stakers[msg.sender].stakedLands.push(StakedToken(msg.sender, index, block.timestamp)); landAddress[index] = msg.sender; // Burn Junior if (_tokensId.length > 0 && randomBurn() > 90 ) { emit RaidJunior(msg.sender, true); ERC721Burnable(juniorContract).burn(_tokensId[0]); delete stakers[juniorAddress[_tokensId[0]]].stakedJuniors[index]; delete juniorAddress[_tokensId[0]]; } } else { ERC20Burnable(tokenContract).transferFrom(msg.sender, address(this), raidPrice); stakers[landAddress[index]].unclaimedRewards += raidPrice; emit RaidSucces(msg.sender, false); } } function randomRaid() internal view returns(uint){ return uint(keccak256(abi.encodePacked(block.difficulty, block.timestamp, randNonce))) % 100; } function randomBurn() internal view returns(uint){ return uint(keccak256(abi.encodePacked(block.difficulty, block.timestamp, randNonce1))) % 100; } function upgradeLand(uint16 _tokenId) public { require(landAddress[_tokenId] == msg.sender,"This item is not staked by you!"); ERC20Burnable(tokenContract).burnFrom(msg.sender, upgradePrice); landResistance[_tokenId] ++; } function getStakedLands(address _user) public view returns (StakedToken[] memory) { if (stakers[_user].stakedLands.length > 0) { StakedToken[] memory _stakedLands = new StakedToken[](stakers[_user].stakedLands.length); uint256 _index = 0; for (uint256 j = 0; j < stakers[_user].stakedLands.length; j++) { if (stakers[_user].stakedLands[j].staker != (address(0))) { _stakedLands[_index] = stakers[_user].stakedLands[j]; _index++; } } return _stakedLands; } else { return new StakedToken[](0); } } // Rewars function claimRewards() external { uint256 rewards = stakers[msg.sender].unclaimedRewards; require(rewards > 0, "You have no rewards to claim"); stakers[msg.sender].unclaimedRewards = 0; tokenContract.transfer(msg.sender, rewards); } function availableRewards(address _staker) public view returns (uint256) { uint256 rewards = stakers[_staker].unclaimedRewards; return rewards; } }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
Contract ABI
API[{"inputs":[{"internalType":"contract ERC721A","name":"_landContract","type":"address"},{"internalType":"contract ERC20Burnable","name":"_tokenContract","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"_from","type":"address"},{"indexed":false,"internalType":"bool","name":"destroyed","type":"bool"}],"name":"RaidJunior","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"_from","type":"address"},{"indexed":false,"internalType":"bool","name":"_success","type":"bool"}],"name":"RaidSucces","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"_from","type":"address"},{"indexed":false,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"RaidToken","type":"event"},{"inputs":[{"internalType":"address","name":"_staker","type":"address"}],"name":"availableRewards","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"claimRewards","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_user","type":"address"}],"name":"getStakedLands","outputs":[{"components":[{"internalType":"address","name":"staker","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"uint256","name":"timeOfLastStake","type":"uint256"}],"internalType":"struct StakingSkull.StakedToken[]","name":"","type":"tuple[]"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"juniorAddress","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"juniorContract","outputs":[{"internalType":"contract ERC721Burnable","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"landAddress","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"landContract","outputs":[{"internalType":"contract ERC721A","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"landResistance","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":"_tokensId","type":"uint256[]"}],"name":"raid","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"raidPrice","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"contract ERC721Burnable","name":"_juniorContract","type":"address"}],"name":"setJuniorContract","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_tokenId","type":"uint256"}],"name":"stakeJunior","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_tokenId","type":"uint256"}],"name":"stakeLand","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"stakers","outputs":[{"internalType":"uint256","name":"unclaimedRewards","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"tokenContract","outputs":[{"internalType":"contract ERC20Burnable","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_tokenId","type":"uint256"}],"name":"unstakeJunior","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_tokenId","type":"uint256"}],"name":"unstakeLand","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint16","name":"_tokenId","type":"uint16"}],"name":"upgradeLand","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"upgradePrice","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"}]
Contract Creation Code
60c060405260006002556001600355681043561a8829300000600455682b5e3af16b188000006005553480156200003557600080fd5b506040516200351f3803806200351f83398181016040528101906200005b9190620001f2565b6200007b6200006f620000f860201b60201c565b6200010060201b60201c565b600180819055508173ffffffffffffffffffffffffffffffffffffffff1660a08173ffffffffffffffffffffffffffffffffffffffff1660601b815250508073ffffffffffffffffffffffffffffffffffffffff1660808173ffffffffffffffffffffffffffffffffffffffff1660601b815250505050620002ce565b600033905090565b60008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050816000806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b600081519050620001d5816200029a565b92915050565b600081519050620001ec81620002b4565b92915050565b600080604083850312156200020c576200020b62000295565b5b60006200021c85828601620001db565b92505060206200022f85828601620001c4565b9150509250929050565b6000620002468262000275565b9050919050565b60006200025a8262000239565b9050919050565b60006200026e8262000239565b9050919050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b600080fd5b620002a5816200024d565b8114620002b157600080fd5b50565b620002bf8162000261565b8114620002cb57600080fd5b50565b60805160601c60a05160601c6131f46200032b6000396000818161051501528181610e9e01528181610f48015261104701526000818161095401528181610aaa0152818161122401528181611c5301526121d501526131f46000f3fe6080604052600436106101355760003560e01c806360bf3be6116100ab5780639168ae721161006f5780639168ae72146103fe57806392c0a0a21461043b578063c3458ac814610466578063c476778014610491578063f2fde38b146104ad578063f854a27f146104d657610135565b806360bf3be614610319578063715018a61461035657806371d0099a1461036d57806387cb7443146103aa5780638da5cb5b146103d357610135565b80633732b312116100fd5780633732b312146101f95780633ca7b2f7146102225780634f78f54c1461024b57806355a373d6146102745780635ba30ea81461029f5780635fa46aab146102dc57610135565b806303d073401461013a57806306c522f514610165578063241d99e21461018e578063287ad39f146101b7578063372500ab146101e2575b600080fd5b34801561014657600080fd5b5061014f610513565b60405161015c9190612bc0565b60405180910390f35b34801561017157600080fd5b5061018c600480360381019061018791906127ed565b610537565b005b34801561019a57600080fd5b506101b560048036038101906101b09190612847565b610583565b005b3480156101c357600080fd5b506101cc61087a565b6040516101d99190612cd6565b60405180910390f35b3480156101ee57600080fd5b506101f7610880565b005b34801561020557600080fd5b50610220600480360381019061021b919061281a565b610a03565b005b34801561022e57600080fd5b5061024960048036038101906102449190612847565b610b67565b005b34801561025757600080fd5b50610272600480360381019061026d9190612847565b610f2f565b005b34801561028057600080fd5b50610289611222565b6040516102969190612ba5565b60405180910390f35b3480156102ab57600080fd5b506102c660048036038101906102c19190612847565b611246565b6040516102d39190612cd6565b60405180910390f35b3480156102e857600080fd5b5061030360048036038101906102fe9190612719565b61125e565b6040516103109190612b68565b60405180910390f35b34801561032557600080fd5b50610340600480360381019061033b9190612847565b6115d4565b60405161034d9190612aed565b60405180910390f35b34801561036257600080fd5b5061036b611607565b005b34801561037957600080fd5b50610394600480360381019061038f9190612847565b61161b565b6040516103a19190612aed565b60405180910390f35b3480156103b657600080fd5b506103d160048036038101906103cc9190612847565b61164e565b005b3480156103df57600080fd5b506103e8611930565b6040516103f59190612aed565b60405180910390f35b34801561040a57600080fd5b5061042560048036038101906104209190612719565b611959565b6040516104329190612cd6565b60405180910390f35b34801561044757600080fd5b50610450611977565b60405161045d9190612bdb565b60405180910390f35b34801561047257600080fd5b5061047b61199d565b6040516104889190612cd6565b60405180910390f35b6104ab60048036038101906104a69190612773565b6119a3565b005b3480156104b957600080fd5b506104d460048036038101906104cf9190612719565b612369565b005b3480156104e257600080fd5b506104fd60048036038101906104f89190612719565b6123ed565b60405161050a9190612cd6565b60405180910390f35b7f000000000000000000000000000000000000000000000000000000000000000081565b61053f61243e565b80600660006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b3373ffffffffffffffffffffffffffffffffffffffff16600660009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16636352211e836040518263ffffffff1660e01b81526004016105f59190612cd6565b60206040518083038186803b15801561060d57600080fd5b505afa158015610621573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906106459190612746565b73ffffffffffffffffffffffffffffffffffffffff161461069b576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161069290612bf6565b60405180910390fd5b600660009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166323b872dd3330846040518463ffffffff1660e01b81526004016106fa93929190612b08565b600060405180830381600087803b15801561071457600080fd5b505af1158015610728573d6000803e3d6000fd5b50505050600760003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060010160405180606001604052803373ffffffffffffffffffffffffffffffffffffffff16815260200183815260200142815250908060018154018082558091505060019003906000526020600020906003020160009091909190915060008201518160000160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555060208201518160010155604082015181600201555050336009600083815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b60055481565b6000600760003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206002015490506000811161090a576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161090190612c76565b60405180910390fd5b6000600760003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600201819055507f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff1663a9059cbb33836040518363ffffffff1660e01b81526004016109ad929190612b3f565b602060405180830381600087803b1580156109c757600080fd5b505af11580156109db573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906109ff91906127c0565b5050565b3373ffffffffffffffffffffffffffffffffffffffff16600860008361ffff16815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1614610aa8576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610a9f90612c96565b60405180910390fd5b7f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff166379cc6790336005546040518363ffffffff1660e01b8152600401610b05929190612b3f565b600060405180830381600087803b158015610b1f57600080fd5b505af1158015610b33573d6000803e3d6000fd5b50505050600a60008261ffff1681526020019081526020016000206000815480929190610b5f90612e87565b919050555050565b3373ffffffffffffffffffffffffffffffffffffffff166008600083815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1614610c08576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610bff90612bf6565b60405180910390fd5b62015180600760006008600085815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000018281548110610c9357610c92612f69565b5b90600052602060002090600302016002015442610cb09190612d91565b11610cf0576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610ce790612cb6565b60405180910390fd5b6000805b600760003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060000180549050811015610dc95782600760003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000018281548110610d9657610d95612f69565b5b9060005260206000209060030201600101541415610db657809150610dc9565b8080610dc190612e87565b915050610cf4565b50600760003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000018181548110610e1e57610e1d612f69565b5b9060005260206000209060030201600080820160006101000a81549073ffffffffffffffffffffffffffffffffffffffff02191690556001820160009055600282016000905550506008600083815260200190815260200160002060006101000a81549073ffffffffffffffffffffffffffffffffffffffff02191690557f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff166323b872dd3033856040518463ffffffff1660e01b8152600401610ef993929190612b08565b600060405180830381600087803b158015610f1357600080fd5b505af1158015610f27573d6000803e3d6000fd5b505050505050565b3373ffffffffffffffffffffffffffffffffffffffff167f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff16636352211e836040518263ffffffff1660e01b8152600401610f9f9190612cd6565b60206040518083038186803b158015610fb757600080fd5b505afa158015610fcb573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610fef9190612746565b73ffffffffffffffffffffffffffffffffffffffff1614611045576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161103c90612bf6565b60405180910390fd5b7f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff166323b872dd3330846040518463ffffffff1660e01b81526004016110a293929190612b08565b600060405180830381600087803b1580156110bc57600080fd5b505af11580156110d0573d6000803e3d6000fd5b50505050600760003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060000160405180606001604052803373ffffffffffffffffffffffffffffffffffffffff16815260200183815260200142815250908060018154018082558091505060019003906000526020600020906003020160009091909190915060008201518160000160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555060208201518160010155604082015181600201555050336008600083815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b7f000000000000000000000000000000000000000000000000000000000000000081565b600a6020528060005260406000206000915090505481565b60606000600760008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600001805490501115611577576000600760008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000018054905067ffffffffffffffff81111561130f5761130e612f98565b5b60405190808252806020026020018201604052801561134857816020015b61133561260e565b81526020019060019003908161132d5790505b5090506000805b600760008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000018054905081101561156c57600073ffffffffffffffffffffffffffffffffffffffff16600760008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600001828154811061140857611407612f69565b5b906000526020600020906003020160000160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff161461155957600760008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060000181815481106114a9576114a8612f69565b5b90600052602060002090600302016040518060600160405290816000820160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020016001820154815260200160028201548152505083838151811061153f5761153e612f69565b5b6020026020010181905250818061155590612e87565b9250505b808061156490612e87565b91505061134f565b5081925050506115cf565b600067ffffffffffffffff81111561159257611591612f98565b5b6040519080825280602002602001820160405280156115cb57816020015b6115b861260e565b8152602001906001900390816115b05790505b5090505b919050565b60096020528060005260406000206000915054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b61160f61243e565b61161960006124bc565b565b60086020528060005260406000206000915054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b3373ffffffffffffffffffffffffffffffffffffffff166009600083815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16146116ef576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016116e690612bf6565b60405180910390fd5b6000805b600760003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600101805490508110156117c85782600760003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600101828154811061179557611794612f69565b5b90600052602060002090600302016001015414156117b5578091506117c8565b80806117c090612e87565b9150506116f3565b50600760003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600101818154811061181d5761181c612f69565b5b9060005260206000209060030201600080820160006101000a81549073ffffffffffffffffffffffffffffffffffffffff02191690556001820160009055600282016000905550506009600083815260200190815260200160002060006101000a81549073ffffffffffffffffffffffffffffffffffffffff0219169055600660009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166323b872dd3033856040518463ffffffff1660e01b81526004016118fa93929190612b08565b600060405180830381600087803b15801561191457600080fd5b505af1158015611928573d6000803e3d6000fd5b505050505050565b60008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b60076020528060005260406000206000915090508060020154905081565b600660009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b60045481565b60005b82829050811015611a65573373ffffffffffffffffffffffffffffffffffffffff166009600083815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1614611a52576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611a4990612c36565b60405180910390fd5b8080611a5d90612e87565b9150506119a6565b506000600190506000610c5d444284604051602001611a8693929190612ab0565b6040516020818303038152906040528051906020012060001c611aa99190612eda565b90505b610c5d444284604051602001611ac493929190612ab0565b6040516020818303038152906040528051906020012060001c611ae79190612eda565b90508180611af490612e87565b9250503373ffffffffffffffffffffffffffffffffffffffff166008600083815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff161480611bc35750600073ffffffffffffffffffffffffffffffffffffffff166008600083815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16145b611aac573373ffffffffffffffffffffffffffffffffffffffff167fd8aafbfb08dfa6f40688612d103cd895f9273556246be07e9e6ecf5b12440fe282604051611c0d9190612cd6565b60405180910390a283839050600a600083815260200190815260200160002054605a611c399190612d3b565b611c439190612d91565b611c4b612580565b11156121d3577f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff166379cc6790336004546040518363ffffffff1660e01b8152600401611cae929190612b3f565b600060405180830381600087803b158015611cc857600080fd5b505af1158015611cdc573d6000803e3d6000fd5b505050503373ffffffffffffffffffffffffffffffffffffffff167f93414c38867822eb3801f4804778de4ded1de089bc2830ea69206a9cc30cd1586001604051611d279190612b8a565b60405180910390a2600760006008600084815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000018181548110611db657611db5612f69565b5b9060005260206000209060030201600080820160006101000a81549073ffffffffffffffffffffffffffffffffffffffff02191690556001820160009055600282016000905550506008600082815260200190815260200160002060006101000a81549073ffffffffffffffffffffffffffffffffffffffff0219169055600760003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060000160405180606001604052803373ffffffffffffffffffffffffffffffffffffffff16815260200183815260200142815250908060018154018082558091505060019003906000526020600020906003020160009091909190915060008201518160000160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555060208201518160010155604082015181600201555050336008600083815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550600084849050118015611f995750605a611f976125c3565b115b156121ce573373ffffffffffffffffffffffffffffffffffffffff167fa9b70cb034137753f4eb0bb5e3564268d53d5e13976fb6bed1db57058b4034446001604051611fe59190612b8a565b60405180910390a2600660009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166342966c688585600081811061203f5761203e612f69565b5b905060200201356040518263ffffffff1660e01b81526004016120629190612cd6565b600060405180830381600087803b15801561207c57600080fd5b505af1158015612090573d6000803e3d6000fd5b505050506007600060096000878760008181106120b0576120af612f69565b5b90506020020135815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600101818154811061213557612134612f69565b5b9060005260206000209060030201600080820160006101000a81549073ffffffffffffffffffffffffffffffffffffffff0219169055600182016000905560028201600090555050600960008585600081811061219557612194612f69565b5b90506020020135815260200190815260200160002060006101000a81549073ffffffffffffffffffffffffffffffffffffffff02191690555b612363565b7f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff166323b872dd33306004546040518463ffffffff1660e01b815260040161223293929190612b08565b602060405180830381600087803b15801561224c57600080fd5b505af1158015612260573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061228491906127c0565b50600454600760006008600085815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600201600082825461230c9190612d3b565b925050819055503373ffffffffffffffffffffffffffffffffffffffff167f93414c38867822eb3801f4804778de4ded1de089bc2830ea69206a9cc30cd158600060405161235a9190612b8a565b60405180910390a25b50505050565b61237161243e565b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1614156123e1576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016123d890612c16565b60405180910390fd5b6123ea816124bc565b50565b600080600760008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060020154905080915050919050565b612446612606565b73ffffffffffffffffffffffffffffffffffffffff16612464611930565b73ffffffffffffffffffffffffffffffffffffffff16146124ba576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016124b190612c56565b60405180910390fd5b565b60008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050816000806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b60006064444260025460405160200161259b93929190612ab0565b6040516020818303038152906040528051906020012060001c6125be9190612eda565b905090565b6000606444426003546040516020016125de93929190612ab0565b6040516020818303038152906040528051906020012060001c6126019190612eda565b905090565b600033905090565b6040518060600160405280600073ffffffffffffffffffffffffffffffffffffffff16815260200160008152602001600081525090565b6000813590506126548161314b565b92915050565b6000815190506126698161314b565b92915050565b60008083601f84011261268557612684612fcc565b5b8235905067ffffffffffffffff8111156126a2576126a1612fc7565b5b6020830191508360208202830111156126be576126bd612fd1565b5b9250929050565b6000815190506126d481613162565b92915050565b6000813590506126e981613179565b92915050565b6000813590506126fe81613190565b92915050565b600081359050612713816131a7565b92915050565b60006020828403121561272f5761272e612fdb565b5b600061273d84828501612645565b91505092915050565b60006020828403121561275c5761275b612fdb565b5b600061276a8482850161265a565b91505092915050565b6000806020838503121561278a57612789612fdb565b5b600083013567ffffffffffffffff8111156127a8576127a7612fd6565b5b6127b48582860161266f565b92509250509250929050565b6000602082840312156127d6576127d5612fdb565b5b60006127e4848285016126c5565b91505092915050565b60006020828403121561280357612802612fdb565b5b6000612811848285016126da565b91505092915050565b6000602082840312156128305761282f612fdb565b5b600061283e848285016126ef565b91505092915050565b60006020828403121561285d5761285c612fdb565b5b600061286b84828501612704565b91505092915050565b60006128808383612a39565b60608301905092915050565b61289581612dc5565b82525050565b6128a481612dc5565b82525050565b60006128b582612d01565b6128bf8185612d19565b93506128ca83612cf1565b8060005b838110156128fb5781516128e28882612874565b97506128ed83612d0c565b9250506001810190506128ce565b5085935050505092915050565b61291181612dd7565b82525050565b61292081612e2d565b82525050565b61292f81612e3f565b82525050565b61293e81612e51565b82525050565b6000612951601983612d2a565b915061295c82612fe0565b602082019050919050565b6000612974602683612d2a565b915061297f82613009565b604082019050919050565b6000612997601c83612d2a565b91506129a282613058565b602082019050919050565b60006129ba602083612d2a565b91506129c582613081565b602082019050919050565b60006129dd601c83612d2a565b91506129e8826130aa565b602082019050919050565b6000612a00601f83612d2a565b9150612a0b826130d3565b602082019050919050565b6000612a23602a83612d2a565b9150612a2e826130fc565b604082019050919050565b606082016000820151612a4f600085018261288c565b506020820151612a626020850182612a7b565b506040820151612a756040850182612a7b565b50505050565b612a8481612e23565b82525050565b612a9381612e23565b82525050565b612aaa612aa582612e23565b612ed0565b82525050565b6000612abc8286612a99565b602082019150612acc8285612a99565b602082019150612adc8284612a99565b602082019150819050949350505050565b6000602082019050612b02600083018461289b565b92915050565b6000606082019050612b1d600083018661289b565b612b2a602083018561289b565b612b376040830184612a8a565b949350505050565b6000604082019050612b54600083018561289b565b612b616020830184612a8a565b9392505050565b60006020820190508181036000830152612b8281846128aa565b905092915050565b6000602082019050612b9f6000830184612908565b92915050565b6000602082019050612bba6000830184612917565b92915050565b6000602082019050612bd56000830184612926565b92915050565b6000602082019050612bf06000830184612935565b92915050565b60006020820190508181036000830152612c0f81612944565b9050919050565b60006020820190508181036000830152612c2f81612967565b9050919050565b60006020820190508181036000830152612c4f8161298a565b9050919050565b60006020820190508181036000830152612c6f816129ad565b9050919050565b60006020820190508181036000830152612c8f816129d0565b9050919050565b60006020820190508181036000830152612caf816129f3565b9050919050565b60006020820190508181036000830152612ccf81612a16565b9050919050565b6000602082019050612ceb6000830184612a8a565b92915050565b6000819050602082019050919050565b600081519050919050565b6000602082019050919050565b600082825260208201905092915050565b600082825260208201905092915050565b6000612d4682612e23565b9150612d5183612e23565b9250827fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff03821115612d8657612d85612f0b565b5b828201905092915050565b6000612d9c82612e23565b9150612da783612e23565b925082821015612dba57612db9612f0b565b5b828203905092915050565b6000612dd082612e03565b9050919050565b60008115159050919050565b6000612dee82612dc5565b9050919050565b600061ffff82169050919050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000819050919050565b6000612e3882612e63565b9050919050565b6000612e4a82612e63565b9050919050565b6000612e5c82612e63565b9050919050565b6000612e6e82612e75565b9050919050565b6000612e8082612e03565b9050919050565b6000612e9282612e23565b91507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff821415612ec557612ec4612f0b565b5b600182019050919050565b6000819050919050565b6000612ee582612e23565b9150612ef083612e23565b925082612f0057612eff612f3a565b5b828206905092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b600080fd5b600080fd5b600080fd5b600080fd5b600080fd5b7f596f7520646f6e2774206f776e207468697320746f6b656e2100000000000000600082015250565b7f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160008201527f6464726573730000000000000000000000000000000000000000000000000000602082015250565b7f596f75206d757374206f776e20746865204a756e696f72204b6f6e6700000000600082015250565b7f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572600082015250565b7f596f752068617665206e6f207265776172647320746f20636c61696d00000000600082015250565b7f54686973206974656d206973206e6f74207374616b656420627920796f752100600082015250565b7f596f752073686f756c64207761697420612064617920746f20756e7374616b6560008201527f20796f7572206c616e6400000000000000000000000000000000000000000000602082015250565b61315481612dc5565b811461315f57600080fd5b50565b61316b81612dd7565b811461317657600080fd5b50565b61318281612de3565b811461318d57600080fd5b50565b61319981612df5565b81146131a457600080fd5b50565b6131b081612e23565b81146131bb57600080fd5b5056fea2646970667358221220bd42315b9538bd7c9413f068df9be57ba0dc8cb1d94c03f52843a716aac65e1164736f6c634300080700330000000000000000000000007711e0474b45072348d214d080fee8183d87faca000000000000000000000000d405f9908dec587a5ed77ea06760ea868f5de7c3
Deployed Bytecode
0x6080604052600436106101355760003560e01c806360bf3be6116100ab5780639168ae721161006f5780639168ae72146103fe57806392c0a0a21461043b578063c3458ac814610466578063c476778014610491578063f2fde38b146104ad578063f854a27f146104d657610135565b806360bf3be614610319578063715018a61461035657806371d0099a1461036d57806387cb7443146103aa5780638da5cb5b146103d357610135565b80633732b312116100fd5780633732b312146101f95780633ca7b2f7146102225780634f78f54c1461024b57806355a373d6146102745780635ba30ea81461029f5780635fa46aab146102dc57610135565b806303d073401461013a57806306c522f514610165578063241d99e21461018e578063287ad39f146101b7578063372500ab146101e2575b600080fd5b34801561014657600080fd5b5061014f610513565b60405161015c9190612bc0565b60405180910390f35b34801561017157600080fd5b5061018c600480360381019061018791906127ed565b610537565b005b34801561019a57600080fd5b506101b560048036038101906101b09190612847565b610583565b005b3480156101c357600080fd5b506101cc61087a565b6040516101d99190612cd6565b60405180910390f35b3480156101ee57600080fd5b506101f7610880565b005b34801561020557600080fd5b50610220600480360381019061021b919061281a565b610a03565b005b34801561022e57600080fd5b5061024960048036038101906102449190612847565b610b67565b005b34801561025757600080fd5b50610272600480360381019061026d9190612847565b610f2f565b005b34801561028057600080fd5b50610289611222565b6040516102969190612ba5565b60405180910390f35b3480156102ab57600080fd5b506102c660048036038101906102c19190612847565b611246565b6040516102d39190612cd6565b60405180910390f35b3480156102e857600080fd5b5061030360048036038101906102fe9190612719565b61125e565b6040516103109190612b68565b60405180910390f35b34801561032557600080fd5b50610340600480360381019061033b9190612847565b6115d4565b60405161034d9190612aed565b60405180910390f35b34801561036257600080fd5b5061036b611607565b005b34801561037957600080fd5b50610394600480360381019061038f9190612847565b61161b565b6040516103a19190612aed565b60405180910390f35b3480156103b657600080fd5b506103d160048036038101906103cc9190612847565b61164e565b005b3480156103df57600080fd5b506103e8611930565b6040516103f59190612aed565b60405180910390f35b34801561040a57600080fd5b5061042560048036038101906104209190612719565b611959565b6040516104329190612cd6565b60405180910390f35b34801561044757600080fd5b50610450611977565b60405161045d9190612bdb565b60405180910390f35b34801561047257600080fd5b5061047b61199d565b6040516104889190612cd6565b60405180910390f35b6104ab60048036038101906104a69190612773565b6119a3565b005b3480156104b957600080fd5b506104d460048036038101906104cf9190612719565b612369565b005b3480156104e257600080fd5b506104fd60048036038101906104f89190612719565b6123ed565b60405161050a9190612cd6565b60405180910390f35b7f0000000000000000000000007711e0474b45072348d214d080fee8183d87faca81565b61053f61243e565b80600660006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b3373ffffffffffffffffffffffffffffffffffffffff16600660009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16636352211e836040518263ffffffff1660e01b81526004016105f59190612cd6565b60206040518083038186803b15801561060d57600080fd5b505afa158015610621573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906106459190612746565b73ffffffffffffffffffffffffffffffffffffffff161461069b576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161069290612bf6565b60405180910390fd5b600660009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166323b872dd3330846040518463ffffffff1660e01b81526004016106fa93929190612b08565b600060405180830381600087803b15801561071457600080fd5b505af1158015610728573d6000803e3d6000fd5b50505050600760003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060010160405180606001604052803373ffffffffffffffffffffffffffffffffffffffff16815260200183815260200142815250908060018154018082558091505060019003906000526020600020906003020160009091909190915060008201518160000160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555060208201518160010155604082015181600201555050336009600083815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b60055481565b6000600760003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206002015490506000811161090a576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161090190612c76565b60405180910390fd5b6000600760003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600201819055507f000000000000000000000000d405f9908dec587a5ed77ea06760ea868f5de7c373ffffffffffffffffffffffffffffffffffffffff1663a9059cbb33836040518363ffffffff1660e01b81526004016109ad929190612b3f565b602060405180830381600087803b1580156109c757600080fd5b505af11580156109db573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906109ff91906127c0565b5050565b3373ffffffffffffffffffffffffffffffffffffffff16600860008361ffff16815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1614610aa8576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610a9f90612c96565b60405180910390fd5b7f000000000000000000000000d405f9908dec587a5ed77ea06760ea868f5de7c373ffffffffffffffffffffffffffffffffffffffff166379cc6790336005546040518363ffffffff1660e01b8152600401610b05929190612b3f565b600060405180830381600087803b158015610b1f57600080fd5b505af1158015610b33573d6000803e3d6000fd5b50505050600a60008261ffff1681526020019081526020016000206000815480929190610b5f90612e87565b919050555050565b3373ffffffffffffffffffffffffffffffffffffffff166008600083815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1614610c08576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610bff90612bf6565b60405180910390fd5b62015180600760006008600085815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000018281548110610c9357610c92612f69565b5b90600052602060002090600302016002015442610cb09190612d91565b11610cf0576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610ce790612cb6565b60405180910390fd5b6000805b600760003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060000180549050811015610dc95782600760003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000018281548110610d9657610d95612f69565b5b9060005260206000209060030201600101541415610db657809150610dc9565b8080610dc190612e87565b915050610cf4565b50600760003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000018181548110610e1e57610e1d612f69565b5b9060005260206000209060030201600080820160006101000a81549073ffffffffffffffffffffffffffffffffffffffff02191690556001820160009055600282016000905550506008600083815260200190815260200160002060006101000a81549073ffffffffffffffffffffffffffffffffffffffff02191690557f0000000000000000000000007711e0474b45072348d214d080fee8183d87faca73ffffffffffffffffffffffffffffffffffffffff166323b872dd3033856040518463ffffffff1660e01b8152600401610ef993929190612b08565b600060405180830381600087803b158015610f1357600080fd5b505af1158015610f27573d6000803e3d6000fd5b505050505050565b3373ffffffffffffffffffffffffffffffffffffffff167f0000000000000000000000007711e0474b45072348d214d080fee8183d87faca73ffffffffffffffffffffffffffffffffffffffff16636352211e836040518263ffffffff1660e01b8152600401610f9f9190612cd6565b60206040518083038186803b158015610fb757600080fd5b505afa158015610fcb573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610fef9190612746565b73ffffffffffffffffffffffffffffffffffffffff1614611045576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161103c90612bf6565b60405180910390fd5b7f0000000000000000000000007711e0474b45072348d214d080fee8183d87faca73ffffffffffffffffffffffffffffffffffffffff166323b872dd3330846040518463ffffffff1660e01b81526004016110a293929190612b08565b600060405180830381600087803b1580156110bc57600080fd5b505af11580156110d0573d6000803e3d6000fd5b50505050600760003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060000160405180606001604052803373ffffffffffffffffffffffffffffffffffffffff16815260200183815260200142815250908060018154018082558091505060019003906000526020600020906003020160009091909190915060008201518160000160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555060208201518160010155604082015181600201555050336008600083815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b7f000000000000000000000000d405f9908dec587a5ed77ea06760ea868f5de7c381565b600a6020528060005260406000206000915090505481565b60606000600760008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600001805490501115611577576000600760008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000018054905067ffffffffffffffff81111561130f5761130e612f98565b5b60405190808252806020026020018201604052801561134857816020015b61133561260e565b81526020019060019003908161132d5790505b5090506000805b600760008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000018054905081101561156c57600073ffffffffffffffffffffffffffffffffffffffff16600760008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600001828154811061140857611407612f69565b5b906000526020600020906003020160000160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff161461155957600760008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060000181815481106114a9576114a8612f69565b5b90600052602060002090600302016040518060600160405290816000820160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020016001820154815260200160028201548152505083838151811061153f5761153e612f69565b5b6020026020010181905250818061155590612e87565b9250505b808061156490612e87565b91505061134f565b5081925050506115cf565b600067ffffffffffffffff81111561159257611591612f98565b5b6040519080825280602002602001820160405280156115cb57816020015b6115b861260e565b8152602001906001900390816115b05790505b5090505b919050565b60096020528060005260406000206000915054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b61160f61243e565b61161960006124bc565b565b60086020528060005260406000206000915054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b3373ffffffffffffffffffffffffffffffffffffffff166009600083815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16146116ef576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016116e690612bf6565b60405180910390fd5b6000805b600760003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600101805490508110156117c85782600760003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600101828154811061179557611794612f69565b5b90600052602060002090600302016001015414156117b5578091506117c8565b80806117c090612e87565b9150506116f3565b50600760003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600101818154811061181d5761181c612f69565b5b9060005260206000209060030201600080820160006101000a81549073ffffffffffffffffffffffffffffffffffffffff02191690556001820160009055600282016000905550506009600083815260200190815260200160002060006101000a81549073ffffffffffffffffffffffffffffffffffffffff0219169055600660009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166323b872dd3033856040518463ffffffff1660e01b81526004016118fa93929190612b08565b600060405180830381600087803b15801561191457600080fd5b505af1158015611928573d6000803e3d6000fd5b505050505050565b60008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b60076020528060005260406000206000915090508060020154905081565b600660009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b60045481565b60005b82829050811015611a65573373ffffffffffffffffffffffffffffffffffffffff166009600083815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1614611a52576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611a4990612c36565b60405180910390fd5b8080611a5d90612e87565b9150506119a6565b506000600190506000610c5d444284604051602001611a8693929190612ab0565b6040516020818303038152906040528051906020012060001c611aa99190612eda565b90505b610c5d444284604051602001611ac493929190612ab0565b6040516020818303038152906040528051906020012060001c611ae79190612eda565b90508180611af490612e87565b9250503373ffffffffffffffffffffffffffffffffffffffff166008600083815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff161480611bc35750600073ffffffffffffffffffffffffffffffffffffffff166008600083815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16145b611aac573373ffffffffffffffffffffffffffffffffffffffff167fd8aafbfb08dfa6f40688612d103cd895f9273556246be07e9e6ecf5b12440fe282604051611c0d9190612cd6565b60405180910390a283839050600a600083815260200190815260200160002054605a611c399190612d3b565b611c439190612d91565b611c4b612580565b11156121d3577f000000000000000000000000d405f9908dec587a5ed77ea06760ea868f5de7c373ffffffffffffffffffffffffffffffffffffffff166379cc6790336004546040518363ffffffff1660e01b8152600401611cae929190612b3f565b600060405180830381600087803b158015611cc857600080fd5b505af1158015611cdc573d6000803e3d6000fd5b505050503373ffffffffffffffffffffffffffffffffffffffff167f93414c38867822eb3801f4804778de4ded1de089bc2830ea69206a9cc30cd1586001604051611d279190612b8a565b60405180910390a2600760006008600084815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000018181548110611db657611db5612f69565b5b9060005260206000209060030201600080820160006101000a81549073ffffffffffffffffffffffffffffffffffffffff02191690556001820160009055600282016000905550506008600082815260200190815260200160002060006101000a81549073ffffffffffffffffffffffffffffffffffffffff0219169055600760003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060000160405180606001604052803373ffffffffffffffffffffffffffffffffffffffff16815260200183815260200142815250908060018154018082558091505060019003906000526020600020906003020160009091909190915060008201518160000160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555060208201518160010155604082015181600201555050336008600083815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550600084849050118015611f995750605a611f976125c3565b115b156121ce573373ffffffffffffffffffffffffffffffffffffffff167fa9b70cb034137753f4eb0bb5e3564268d53d5e13976fb6bed1db57058b4034446001604051611fe59190612b8a565b60405180910390a2600660009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166342966c688585600081811061203f5761203e612f69565b5b905060200201356040518263ffffffff1660e01b81526004016120629190612cd6565b600060405180830381600087803b15801561207c57600080fd5b505af1158015612090573d6000803e3d6000fd5b505050506007600060096000878760008181106120b0576120af612f69565b5b90506020020135815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600101818154811061213557612134612f69565b5b9060005260206000209060030201600080820160006101000a81549073ffffffffffffffffffffffffffffffffffffffff0219169055600182016000905560028201600090555050600960008585600081811061219557612194612f69565b5b90506020020135815260200190815260200160002060006101000a81549073ffffffffffffffffffffffffffffffffffffffff02191690555b612363565b7f000000000000000000000000d405f9908dec587a5ed77ea06760ea868f5de7c373ffffffffffffffffffffffffffffffffffffffff166323b872dd33306004546040518463ffffffff1660e01b815260040161223293929190612b08565b602060405180830381600087803b15801561224c57600080fd5b505af1158015612260573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061228491906127c0565b50600454600760006008600085815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600201600082825461230c9190612d3b565b925050819055503373ffffffffffffffffffffffffffffffffffffffff167f93414c38867822eb3801f4804778de4ded1de089bc2830ea69206a9cc30cd158600060405161235a9190612b8a565b60405180910390a25b50505050565b61237161243e565b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1614156123e1576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016123d890612c16565b60405180910390fd5b6123ea816124bc565b50565b600080600760008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060020154905080915050919050565b612446612606565b73ffffffffffffffffffffffffffffffffffffffff16612464611930565b73ffffffffffffffffffffffffffffffffffffffff16146124ba576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016124b190612c56565b60405180910390fd5b565b60008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050816000806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b60006064444260025460405160200161259b93929190612ab0565b6040516020818303038152906040528051906020012060001c6125be9190612eda565b905090565b6000606444426003546040516020016125de93929190612ab0565b6040516020818303038152906040528051906020012060001c6126019190612eda565b905090565b600033905090565b6040518060600160405280600073ffffffffffffffffffffffffffffffffffffffff16815260200160008152602001600081525090565b6000813590506126548161314b565b92915050565b6000815190506126698161314b565b92915050565b60008083601f84011261268557612684612fcc565b5b8235905067ffffffffffffffff8111156126a2576126a1612fc7565b5b6020830191508360208202830111156126be576126bd612fd1565b5b9250929050565b6000815190506126d481613162565b92915050565b6000813590506126e981613179565b92915050565b6000813590506126fe81613190565b92915050565b600081359050612713816131a7565b92915050565b60006020828403121561272f5761272e612fdb565b5b600061273d84828501612645565b91505092915050565b60006020828403121561275c5761275b612fdb565b5b600061276a8482850161265a565b91505092915050565b6000806020838503121561278a57612789612fdb565b5b600083013567ffffffffffffffff8111156127a8576127a7612fd6565b5b6127b48582860161266f565b92509250509250929050565b6000602082840312156127d6576127d5612fdb565b5b60006127e4848285016126c5565b91505092915050565b60006020828403121561280357612802612fdb565b5b6000612811848285016126da565b91505092915050565b6000602082840312156128305761282f612fdb565b5b600061283e848285016126ef565b91505092915050565b60006020828403121561285d5761285c612fdb565b5b600061286b84828501612704565b91505092915050565b60006128808383612a39565b60608301905092915050565b61289581612dc5565b82525050565b6128a481612dc5565b82525050565b60006128b582612d01565b6128bf8185612d19565b93506128ca83612cf1565b8060005b838110156128fb5781516128e28882612874565b97506128ed83612d0c565b9250506001810190506128ce565b5085935050505092915050565b61291181612dd7565b82525050565b61292081612e2d565b82525050565b61292f81612e3f565b82525050565b61293e81612e51565b82525050565b6000612951601983612d2a565b915061295c82612fe0565b602082019050919050565b6000612974602683612d2a565b915061297f82613009565b604082019050919050565b6000612997601c83612d2a565b91506129a282613058565b602082019050919050565b60006129ba602083612d2a565b91506129c582613081565b602082019050919050565b60006129dd601c83612d2a565b91506129e8826130aa565b602082019050919050565b6000612a00601f83612d2a565b9150612a0b826130d3565b602082019050919050565b6000612a23602a83612d2a565b9150612a2e826130fc565b604082019050919050565b606082016000820151612a4f600085018261288c565b506020820151612a626020850182612a7b565b506040820151612a756040850182612a7b565b50505050565b612a8481612e23565b82525050565b612a9381612e23565b82525050565b612aaa612aa582612e23565b612ed0565b82525050565b6000612abc8286612a99565b602082019150612acc8285612a99565b602082019150612adc8284612a99565b602082019150819050949350505050565b6000602082019050612b02600083018461289b565b92915050565b6000606082019050612b1d600083018661289b565b612b2a602083018561289b565b612b376040830184612a8a565b949350505050565b6000604082019050612b54600083018561289b565b612b616020830184612a8a565b9392505050565b60006020820190508181036000830152612b8281846128aa565b905092915050565b6000602082019050612b9f6000830184612908565b92915050565b6000602082019050612bba6000830184612917565b92915050565b6000602082019050612bd56000830184612926565b92915050565b6000602082019050612bf06000830184612935565b92915050565b60006020820190508181036000830152612c0f81612944565b9050919050565b60006020820190508181036000830152612c2f81612967565b9050919050565b60006020820190508181036000830152612c4f8161298a565b9050919050565b60006020820190508181036000830152612c6f816129ad565b9050919050565b60006020820190508181036000830152612c8f816129d0565b9050919050565b60006020820190508181036000830152612caf816129f3565b9050919050565b60006020820190508181036000830152612ccf81612a16565b9050919050565b6000602082019050612ceb6000830184612a8a565b92915050565b6000819050602082019050919050565b600081519050919050565b6000602082019050919050565b600082825260208201905092915050565b600082825260208201905092915050565b6000612d4682612e23565b9150612d5183612e23565b9250827fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff03821115612d8657612d85612f0b565b5b828201905092915050565b6000612d9c82612e23565b9150612da783612e23565b925082821015612dba57612db9612f0b565b5b828203905092915050565b6000612dd082612e03565b9050919050565b60008115159050919050565b6000612dee82612dc5565b9050919050565b600061ffff82169050919050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000819050919050565b6000612e3882612e63565b9050919050565b6000612e4a82612e63565b9050919050565b6000612e5c82612e63565b9050919050565b6000612e6e82612e75565b9050919050565b6000612e8082612e03565b9050919050565b6000612e9282612e23565b91507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff821415612ec557612ec4612f0b565b5b600182019050919050565b6000819050919050565b6000612ee582612e23565b9150612ef083612e23565b925082612f0057612eff612f3a565b5b828206905092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b600080fd5b600080fd5b600080fd5b600080fd5b600080fd5b7f596f7520646f6e2774206f776e207468697320746f6b656e2100000000000000600082015250565b7f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160008201527f6464726573730000000000000000000000000000000000000000000000000000602082015250565b7f596f75206d757374206f776e20746865204a756e696f72204b6f6e6700000000600082015250565b7f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572600082015250565b7f596f752068617665206e6f207265776172647320746f20636c61696d00000000600082015250565b7f54686973206974656d206973206e6f74207374616b656420627920796f752100600082015250565b7f596f752073686f756c64207761697420612064617920746f20756e7374616b6560008201527f20796f7572206c616e6400000000000000000000000000000000000000000000602082015250565b61315481612dc5565b811461315f57600080fd5b50565b61316b81612dd7565b811461317657600080fd5b50565b61318281612de3565b811461318d57600080fd5b50565b61319981612df5565b81146131a457600080fd5b50565b6131b081612e23565b81146131bb57600080fd5b5056fea2646970667358221220bd42315b9538bd7c9413f068df9be57ba0dc8cb1d94c03f52843a716aac65e1164736f6c63430008070033
Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)
0000000000000000000000007711e0474b45072348d214d080fee8183d87faca000000000000000000000000d405f9908dec587a5ed77ea06760ea868f5de7c3
-----Decoded View---------------
Arg [0] : _landContract (address): 0x7711e0474B45072348d214D080fEE8183D87fACa
Arg [1] : _tokenContract (address): 0xd405f9908dEC587a5ed77EA06760EA868f5De7c3
-----Encoded View---------------
2 Constructor Arguments found :
Arg [0] : 0000000000000000000000007711e0474b45072348d214d080fee8183d87faca
Arg [1] : 000000000000000000000000d405f9908dec587a5ed77ea06760ea868f5de7c3
Deployed Bytecode Sourcemap
111984:7242:0:-:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;112231:37;;;;;;;;;;;;;:::i;:::-;;;;;;;:::i;:::-;;;;;;;;113316:127;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;:::i;:::-;;114651:373;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;:::i;:::-;;112134:39;;;;;;;;;;;;;:::i;:::-;;;;;;;:::i;:::-;;;;;;;;118771:274;;;;;;;;;;;;;:::i;:::-;;117796:254;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;:::i;:::-;;113890:729;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;:::i;:::-;;113473:411;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;:::i;:::-;;112180:44;;;;;;;;;;;;;:::i;:::-;;;;;;;:::i;:::-;;;;;;;;113071:49;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;:::i;:::-;;;;;;;:::i;:::-;;;;;;;;118058:690;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;:::i;:::-;;;;;;;:::i;:::-;;;;;;;;112979:48;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;:::i;:::-;;;;;;;:::i;:::-;;;;;;;;84025:103;;;;;;;;;;;;;:::i;:::-;;112926:46;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;:::i;:::-;;;;;;;:::i;:::-;;;;;;;;115030:583;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;:::i;:::-;;83377:87;;;;;;;;;;;;;:::i;:::-;;;;;;;:::i;:::-;;;;;;;;112841:41;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;:::i;:::-;;;;;;;:::i;:::-;;;;;;;;112275:36;;;;;;;;;;;;;:::i;:::-;;;;;;;:::i;:::-;;;;;;;;112091;;;;;;;;;;;;;:::i;:::-;;;;;;;:::i;:::-;;;;;;;;115637:1818;;;;;;;;;;;;;:::i;:::-;;:::i;:::-;;84283:201;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;:::i;:::-;;119053:168;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;:::i;:::-;;;;;;;:::i;:::-;;;;;;;;112231:37;;;:::o;113316:127::-;83263:13;:11;:13::i;:::-;113420:15:::1;113403:14;;:32;;;;;;;;;;;;;;;;;;113316:127:::0;:::o;114651:373::-;114754:10;114718:46;;:14;;;;;;;;;;;:22;;;114741:8;114718:32;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;:46;;;114710:83;;;;;;;;;;;;:::i;:::-;;;;;;;;;114804:14;;;;;;;;;;;:27;;;114832:10;114852:4;114859:8;114804:64;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;114879:7;:19;114887:10;114879:19;;;;;;;;;;;;;;;:33;;114918:50;;;;;;;;114930:10;114918:50;;;;;;114942:8;114918:50;;;;114952:15;114918:50;;;114879:90;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;115006:10;114980:13;:23;114994:8;114980:23;;;;;;;;;;;;:36;;;;;;;;;;;;;;;;;;114651:373;:::o;112134:39::-;;;;:::o;118771:274::-;118815:15;118833:7;:19;118841:10;118833:19;;;;;;;;;;;;;;;:36;;;118815:54;;118898:1;118888:7;:11;118880:52;;;;;;;;;;;;:::i;:::-;;;;;;;;;118982:1;118943:7;:19;118951:10;118943:19;;;;;;;;;;;;;;;:36;;:40;;;;118994:13;:22;;;119017:10;119029:7;118994:43;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;118804:241;118771:274::o;117796:254::-;117885:10;117860:35;;:11;:21;117872:8;117860:21;;;;;;;;;;;;;;;;;;;;;;;:35;;;117852:78;;;;;;;;;;;;:::i;:::-;;;;;;;;;117955:13;117941:37;;;117979:10;117991:12;;117941:63;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;118015:14;:24;118030:8;118015:24;;;;;;;;;;;;;;:27;;;;;;;;;:::i;:::-;;;;;;117796:254;:::o;113890:729::-;113982:10;113957:35;;:11;:21;113969:8;113957:21;;;;;;;;;;;;;;;;;;;;;:35;;;113949:73;;;;;;;;;;;;:::i;:::-;;;;;;;;;114130:5;114059:7;:30;114067:11;:21;114079:8;114067:21;;;;;;;;;;;;;;;;;;;;;114059:30;;;;;;;;;;;;;;;:42;;114102:8;114059:52;;;;;;;;:::i;:::-;;;;;;;;;;;;:68;;;114041:15;:86;;;;:::i;:::-;:94;114033:149;;;;;;;;;;;;:::i;:::-;;;;;;;;;114193:13;114226:9;114221:223;114245:7;:19;114253:10;114245:19;;;;;;;;;;;;;;;:31;;:38;;;;114241:1;:42;114221:223;;;114355:8;114309:7;:19;114317:10;114309:19;;;;;;;;;;;;;;;:31;;114341:1;114309:34;;;;;;;;:::i;:::-;;;;;;;;;;;;:42;;;:54;114305:128;;;114392:1;114384:9;;114412:5;;114305:128;114285:3;;;;;:::i;:::-;;;;114221:223;;;;114461:7;:19;114469:10;114461:19;;;;;;;;;;;;;;;:31;;114493:5;114461:38;;;;;;;;:::i;:::-;;;;;;;;;;;;;114454:45;;;;;;;;;;;;;;;;;;;;;;;;;;;;;114517:11;:21;114529:8;114517:21;;;;;;;;;;;;114510:28;;;;;;;;;;;114549:12;:25;;;114583:4;114590:10;114602:8;114549:62;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;113938:681;113890:729;:::o;113473:411::-;113572:10;113538:44;;:12;:20;;;113559:8;113538:30;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;:44;;;113530:81;;;;;;;;;;;;:::i;:::-;;;;;;;;;113622:12;:25;;;113648:10;113668:4;113675:8;113622:62;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;113695:7;:19;113703:10;113695:19;;;;;;;;;;;;;;;:31;;113732:50;;;;;;;;113744:10;113732:50;;;;;;113756:8;113732:50;;;;113766:15;113732:50;;;113695:88;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;113866:10;113842:11;:21;113854:8;113842:21;;;;;;;;;;;;:34;;;;;;;;;;;;;;;;;;113473:411;:::o;112180:44::-;;;:::o;113071:49::-;;;;;;;;;;;;;;;;;:::o;118058:690::-;118118:20;118191:1;118155:7;:14;118163:5;118155:14;;;;;;;;;;;;;;;:26;;:33;;;;:37;118151:590;;;118209:33;118263:7;:14;118271:5;118263:14;;;;;;;;;;;;;;;:26;;:33;;;;118245:52;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;118209:88;;118312:14;118350:9;118345:282;118369:7;:14;118377:5;118369:14;;;;;;;;;;;;;;;:26;;:33;;;;118365:1;:37;118345:282;;;118481:1;118432:52;;:7;:14;118440:5;118432:14;;;;;;;;;;;;;;;:26;;118459:1;118432:29;;;;;;;;:::i;:::-;;;;;;;;;;;;:36;;;;;;;;;;;;:52;;;118428:184;;118532:7;:14;118540:5;118532:14;;;;;;;;;;;;;;;:26;;118559:1;118532:29;;;;;;;;:::i;:::-;;;;;;;;;;;;118509:52;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:12;118522:6;118509:20;;;;;;;;:::i;:::-;;;;;;;:52;;;;118584:8;;;;;:::i;:::-;;;;118428:184;118404:3;;;;;:::i;:::-;;;;118345:282;;;;118648:12;118641:19;;;;;;118151:590;118727:1;118709:20;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;118702:27;;118058:690;;;;:::o;112979:48::-;;;;;;;;;;;;;;;;;;;;;;:::o;84025:103::-;83263:13;:11;:13::i;:::-;84090:30:::1;84117:1;84090:18;:30::i;:::-;84025:103::o:0;112926:46::-;;;;;;;;;;;;;;;;;;;;;;:::o;115030:583::-;115126:10;115099:37;;:13;:23;115113:8;115099:23;;;;;;;;;;;;;;;;;;;;;:37;;;115091:75;;;;;;;;;;;;:::i;:::-;;;;;;;;;115177:13;115210:9;115205:227;115229:7;:19;115237:10;115229:19;;;;;;;;;;;;;;;:33;;:40;;;;115225:1;:44;115205:227;;;115343:8;115295:7;:19;115303:10;115295:19;;;;;;;;;;;;;;;:33;;115329:1;115295:36;;;;;;;;:::i;:::-;;;;;;;;;;;;:44;;;:56;115291:130;;;115380:1;115372:9;;115400:5;;115291:130;115271:3;;;;;:::i;:::-;;;;115205:227;;;;115449:7;:19;115457:10;115449:19;;;;;;;;;;;;;;;:33;;115483:5;115449:40;;;;;;;;:::i;:::-;;;;;;;;;;;;;115442:47;;;;;;;;;;;;;;;;;;;;;;;;;;;;;115507:13;:23;115521:8;115507:23;;;;;;;;;;;;115500:30;;;;;;;;;;;115541:14;;;;;;;;;;;:27;;;115577:4;115584:10;115596:8;115541:64;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;115080:533;115030:583;:::o;83377:87::-;83423:7;83450:6;;;;;;;;;;;83443:13;;83377:87;:::o;112841:41::-;;;;;;;;;;;;;;;;;;;;;;:::o;112275:36::-;;;;;;;;;;;;;:::o;112091:::-;;;;:::o;115637:1818::-;115781:9;115776:145;115800:9;;:16;;115796:1;:20;115776:145;;;115866:10;115846:30;;:13;:16;115860:1;115846:16;;;;;;;;;;;;;;;;;;;;;:30;;;115838:71;;;;;;;;;;;;:::i;:::-;;;;;;;;;115818:3;;;;;:::i;:::-;;;;115776:145;;;;115931:12;115946:1;115931:16;;115958:13;116054:4;116006:16;116024:15;116041:7;115989:60;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;115979:71;;;;;;115974:77;;:84;;;;:::i;:::-;115958:100;;116069:224;116175:4;116127:16;116145:15;116162:7;116110:60;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;116100:71;;;;;;116095:77;;:84;;;;:::i;:::-;116087:92;;116194:9;;;;;:::i;:::-;;;;116244:10;116222:32;;:11;:18;116234:5;116222:18;;;;;;;;;;;;;;;;;;;;;:32;;;:68;;;;116288:1;116258:32;;:11;:18;116270:5;116258:18;;;;;;;;;;;;;;;;;;;;;:32;;;116222:68;116069:224;;116320:10;116310:28;;;116332:5;116310:28;;;;;;:::i;:::-;;;;;;;;116400:9;;:16;;116376:14;:21;116391:5;116376:21;;;;;;;;;;;;116371:2;:26;;;;:::i;:::-;:45;;;;:::i;:::-;116356:12;:10;:12::i;:::-;:60;116351:1097;;;116447:13;116433:37;;;116471:10;116483:9;;116433:60;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;116524:10;116513:28;;;116536:4;116513:28;;;;;;:::i;:::-;;;;;;;;116587:7;:27;116595:11;:18;116607:5;116595:18;;;;;;;;;;;;;;;;;;;;;116587:27;;;;;;;;;;;;;;;:39;;116627:5;116587:46;;;;;;;;:::i;:::-;;;;;;;;;;;;;116580:53;;;;;;;;;;;;;;;;;;;;;;;;;;;;;116655:11;:18;116667:5;116655:18;;;;;;;;;;;;116648:25;;;;;;;;;;;116710:7;:19;116718:10;116710:19;;;;;;;;;;;;;;;:31;;116747:47;;;;;;;;116759:10;116747:47;;;;;;116771:5;116747:47;;;;116778:15;116747:47;;;116710:85;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;116831:10;116810:11;:18;116822:5;116810:18;;;;;;;;;;;;:31;;;;;;;;;;;;;;;;;;116907:1;116888:9;;:16;;:20;:41;;;;;116927:2;116912:12;:10;:12::i;:::-;:17;116888:41;116884:320;;;116967:10;116956:28;;;116979:4;116956:28;;;;;;:::i;:::-;;;;;;;;117018:14;;;;;;;;;;;117003:35;;;117039:9;;117049:1;117039:12;;;;;;;:::i;:::-;;;;;;;;117003:49;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;117078:7;:36;117086:13;:27;117100:9;;117110:1;117100:12;;;;;;;:::i;:::-;;;;;;;;117086:27;;;;;;;;;;;;;;;;;;;;;117078:36;;;;;;;;;;;;;;;:50;;117129:5;117078:57;;;;;;;;:::i;:::-;;;;;;;;;;;;;117071:64;;;;;;;;;;;;;;;;;;;;;;;;;;;;;117161:13;:27;117175:9;;117185:1;117175:12;;;;;;;:::i;:::-;;;;;;;;117161:27;;;;;;;;;;;;117154:34;;;;;;;;;;;116884:320;116351:1097;;;117250:13;117236:41;;;117278:10;117298:4;117305:9;;117236:79;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;117378:9;;117330:7;:27;117338:11;:18;117350:5;117338:18;;;;;;;;;;;;;;;;;;;;;117330:27;;;;;;;;;;;;;;;:44;;;:57;;;;;;;:::i;:::-;;;;;;;;117418:10;117407:29;;;117430:5;117407:29;;;;;;:::i;:::-;;;;;;;;116351:1097;115696:1759;;115637:1818;;:::o;84283:201::-;83263:13;:11;:13::i;:::-;84392:1:::1;84372:22;;:8;:22;;;;84364:73;;;;;;;;;;;;:::i;:::-;;;;;;;;;84448:28;84467:8;84448:18;:28::i;:::-;84283:201:::0;:::o;119053:168::-;119117:7;119137:15;119155:7;:16;119163:7;119155:16;;;;;;;;;;;;;;;:33;;;119137:51;;119206:7;119199:14;;;119053:168;;;:::o;83542:132::-;83617:12;:10;:12::i;:::-;83606:23;;:7;:5;:7::i;:::-;:23;;;83598:68;;;;;;;;;;;;:::i;:::-;;;;;;;;;83542:132::o;84644:191::-;84718:16;84737:6;;;;;;;;;;;84718:25;;84763:8;84754:6;;:17;;;;;;;;;;;;;;;;;;84818:8;84787:40;;84808:8;84787:40;;;;;;;;;;;;84707:128;84644:191;:::o;117461:160::-;117505:4;117610:3;117560:16;117578:15;117595:9;;117543:62;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;117533:73;;;;;;117528:79;;:85;;;;:::i;:::-;117521:92;;117461:160;:::o;117627:161::-;117671:4;117777:3;117726:16;117744:15;117761:10;;117709:63;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;117699:74;;;;;;117694:80;;:86;;;;:::i;:::-;117687:93;;117627:161;:::o;67832:98::-;67885:7;67912:10;67905:17;;67832:98;:::o;-1:-1:-1:-;;;;;;;;;;;;;;;;;;;;;;;;;;:::o;7:139:1:-;53:5;91:6;78:20;69:29;;107:33;134:5;107:33;:::i;:::-;7:139;;;;:::o;152:143::-;209:5;240:6;234:13;225:22;;256:33;283:5;256:33;:::i;:::-;152:143;;;;:::o;318:568::-;391:8;401:6;451:3;444:4;436:6;432:17;428:27;418:122;;459:79;;:::i;:::-;418:122;572:6;559:20;549:30;;602:18;594:6;591:30;588:117;;;624:79;;:::i;:::-;588:117;738:4;730:6;726:17;714:29;;792:3;784:4;776:6;772:17;762:8;758:32;755:41;752:128;;;799:79;;:::i;:::-;752:128;318:568;;;;;:::o;892:137::-;946:5;977:6;971:13;962:22;;993:30;1017:5;993:30;:::i;:::-;892:137;;;;:::o;1035:185::-;1104:5;1142:6;1129:20;1120:29;;1158:56;1208:5;1158:56;:::i;:::-;1035:185;;;;:::o;1226:137::-;1271:5;1309:6;1296:20;1287:29;;1325:32;1351:5;1325:32;:::i;:::-;1226:137;;;;:::o;1369:139::-;1415:5;1453:6;1440:20;1431:29;;1469:33;1496:5;1469:33;:::i;:::-;1369:139;;;;:::o;1514:329::-;1573:6;1622:2;1610:9;1601:7;1597:23;1593:32;1590:119;;;1628:79;;:::i;:::-;1590:119;1748:1;1773:53;1818:7;1809:6;1798:9;1794:22;1773:53;:::i;:::-;1763:63;;1719:117;1514:329;;;;:::o;1849:351::-;1919:6;1968:2;1956:9;1947:7;1943:23;1939:32;1936:119;;;1974:79;;:::i;:::-;1936:119;2094:1;2119:64;2175:7;2166:6;2155:9;2151:22;2119:64;:::i;:::-;2109:74;;2065:128;1849:351;;;;:::o;2206:559::-;2292:6;2300;2349:2;2337:9;2328:7;2324:23;2320:32;2317:119;;;2355:79;;:::i;:::-;2317:119;2503:1;2492:9;2488:17;2475:31;2533:18;2525:6;2522:30;2519:117;;;2555:79;;:::i;:::-;2519:117;2668:80;2740:7;2731:6;2720:9;2716:22;2668:80;:::i;:::-;2650:98;;;;2446:312;2206:559;;;;;:::o;2771:345::-;2838:6;2887:2;2875:9;2866:7;2862:23;2858:32;2855:119;;;2893:79;;:::i;:::-;2855:119;3013:1;3038:61;3091:7;3082:6;3071:9;3067:22;3038:61;:::i;:::-;3028:71;;2984:125;2771:345;;;;:::o;3122:375::-;3204:6;3253:2;3241:9;3232:7;3228:23;3224:32;3221:119;;;3259:79;;:::i;:::-;3221:119;3379:1;3404:76;3472:7;3463:6;3452:9;3448:22;3404:76;:::i;:::-;3394:86;;3350:140;3122:375;;;;:::o;3503:327::-;3561:6;3610:2;3598:9;3589:7;3585:23;3581:32;3578:119;;;3616:79;;:::i;:::-;3578:119;3736:1;3761:52;3805:7;3796:6;3785:9;3781:22;3761:52;:::i;:::-;3751:62;;3707:116;3503:327;;;;:::o;3836:329::-;3895:6;3944:2;3932:9;3923:7;3919:23;3915:32;3912:119;;;3950:79;;:::i;:::-;3912:119;4070:1;4095:53;4140:7;4131:6;4120:9;4116:22;4095:53;:::i;:::-;4085:63;;4041:117;3836:329;;;;:::o;4171:295::-;4298:10;4319:104;4419:3;4411:6;4319:104;:::i;:::-;4455:4;4450:3;4446:14;4432:28;;4171:295;;;;:::o;4472:108::-;4549:24;4567:5;4549:24;:::i;:::-;4544:3;4537:37;4472:108;;:::o;4586:118::-;4673:24;4691:5;4673:24;:::i;:::-;4668:3;4661:37;4586:118;;:::o;4788:964::-;4965:3;4994:83;5071:5;4994:83;:::i;:::-;5093:115;5201:6;5196:3;5093:115;:::i;:::-;5086:122;;5232:85;5311:5;5232:85;:::i;:::-;5340:7;5371:1;5356:371;5381:6;5378:1;5375:13;5356:371;;;5457:6;5451:13;5484:121;5601:3;5586:13;5484:121;:::i;:::-;5477:128;;5628:89;5710:6;5628:89;:::i;:::-;5618:99;;5416:311;5403:1;5400;5396:9;5391:14;;5356:371;;;5360:14;5743:3;5736:10;;4970:782;;;4788:964;;;;:::o;5758:109::-;5839:21;5854:5;5839:21;:::i;:::-;5834:3;5827:34;5758:109;;:::o;5873:175::-;5982:59;6035:5;5982:59;:::i;:::-;5977:3;5970:72;5873:175;;:::o;6054:163::-;6157:53;6204:5;6157:53;:::i;:::-;6152:3;6145:66;6054:163;;:::o;6223:177::-;6333:60;6387:5;6333:60;:::i;:::-;6328:3;6321:73;6223:177;;:::o;6406:366::-;6548:3;6569:67;6633:2;6628:3;6569:67;:::i;:::-;6562:74;;6645:93;6734:3;6645:93;:::i;:::-;6763:2;6758:3;6754:12;6747:19;;6406:366;;;:::o;6778:::-;6920:3;6941:67;7005:2;7000:3;6941:67;:::i;:::-;6934:74;;7017:93;7106:3;7017:93;:::i;:::-;7135:2;7130:3;7126:12;7119:19;;6778:366;;;:::o;7150:::-;7292:3;7313:67;7377:2;7372:3;7313:67;:::i;:::-;7306:74;;7389:93;7478:3;7389:93;:::i;:::-;7507:2;7502:3;7498:12;7491:19;;7150:366;;;:::o;7522:::-;7664:3;7685:67;7749:2;7744:3;7685:67;:::i;:::-;7678:74;;7761:93;7850:3;7761:93;:::i;:::-;7879:2;7874:3;7870:12;7863:19;;7522:366;;;:::o;7894:::-;8036:3;8057:67;8121:2;8116:3;8057:67;:::i;:::-;8050:74;;8133:93;8222:3;8133:93;:::i;:::-;8251:2;8246:3;8242:12;8235:19;;7894:366;;;:::o;8266:::-;8408:3;8429:67;8493:2;8488:3;8429:67;:::i;:::-;8422:74;;8505:93;8594:3;8505:93;:::i;:::-;8623:2;8618:3;8614:12;8607:19;;8266:366;;;:::o;8638:::-;8780:3;8801:67;8865:2;8860:3;8801:67;:::i;:::-;8794:74;;8877:93;8966:3;8877:93;:::i;:::-;8995:2;8990:3;8986:12;8979:19;;8638:366;;;:::o;9084:695::-;9229:4;9224:3;9220:14;9318:4;9311:5;9307:16;9301:23;9337:63;9394:4;9389:3;9385:14;9371:12;9337:63;:::i;:::-;9244:166;9495:4;9488:5;9484:16;9478:23;9514:63;9571:4;9566:3;9562:14;9548:12;9514:63;:::i;:::-;9420:167;9680:4;9673:5;9669:16;9663:23;9699:63;9756:4;9751:3;9747:14;9733:12;9699:63;:::i;:::-;9597:175;9198:581;9084:695;;:::o;9785:108::-;9862:24;9880:5;9862:24;:::i;:::-;9857:3;9850:37;9785:108;;:::o;9899:118::-;9986:24;10004:5;9986:24;:::i;:::-;9981:3;9974:37;9899:118;;:::o;10023:157::-;10128:45;10148:24;10166:5;10148:24;:::i;:::-;10128:45;:::i;:::-;10123:3;10116:58;10023:157;;:::o;10186:538::-;10354:3;10369:75;10440:3;10431:6;10369:75;:::i;:::-;10469:2;10464:3;10460:12;10453:19;;10482:75;10553:3;10544:6;10482:75;:::i;:::-;10582:2;10577:3;10573:12;10566:19;;10595:75;10666:3;10657:6;10595:75;:::i;:::-;10695:2;10690:3;10686:12;10679:19;;10715:3;10708:10;;10186:538;;;;;;:::o;10730:222::-;10823:4;10861:2;10850:9;10846:18;10838:26;;10874:71;10942:1;10931:9;10927:17;10918:6;10874:71;:::i;:::-;10730:222;;;;:::o;10958:442::-;11107:4;11145:2;11134:9;11130:18;11122:26;;11158:71;11226:1;11215:9;11211:17;11202:6;11158:71;:::i;:::-;11239:72;11307:2;11296:9;11292:18;11283:6;11239:72;:::i;:::-;11321;11389:2;11378:9;11374:18;11365:6;11321:72;:::i;:::-;10958:442;;;;;;:::o;11406:332::-;11527:4;11565:2;11554:9;11550:18;11542:26;;11578:71;11646:1;11635:9;11631:17;11622:6;11578:71;:::i;:::-;11659:72;11727:2;11716:9;11712:18;11703:6;11659:72;:::i;:::-;11406:332;;;;;:::o;11744:489::-;11945:4;11983:2;11972:9;11968:18;11960:26;;12032:9;12026:4;12022:20;12018:1;12007:9;12003:17;11996:47;12060:166;12221:4;12212:6;12060:166;:::i;:::-;12052:174;;11744:489;;;;:::o;12239:210::-;12326:4;12364:2;12353:9;12349:18;12341:26;;12377:65;12439:1;12428:9;12424:17;12415:6;12377:65;:::i;:::-;12239:210;;;;:::o;12455:266::-;12570:4;12608:2;12597:9;12593:18;12585:26;;12621:93;12711:1;12700:9;12696:17;12687:6;12621:93;:::i;:::-;12455:266;;;;:::o;12727:254::-;12836:4;12874:2;12863:9;12859:18;12851:26;;12887:87;12971:1;12960:9;12956:17;12947:6;12887:87;:::i;:::-;12727:254;;;;:::o;12987:268::-;13103:4;13141:2;13130:9;13126:18;13118:26;;13154:94;13245:1;13234:9;13230:17;13221:6;13154:94;:::i;:::-;12987:268;;;;:::o;13261:419::-;13427:4;13465:2;13454:9;13450:18;13442:26;;13514:9;13508:4;13504:20;13500:1;13489:9;13485:17;13478:47;13542:131;13668:4;13542:131;:::i;:::-;13534:139;;13261:419;;;:::o;13686:::-;13852:4;13890:2;13879:9;13875:18;13867:26;;13939:9;13933:4;13929:20;13925:1;13914:9;13910:17;13903:47;13967:131;14093:4;13967:131;:::i;:::-;13959:139;;13686:419;;;:::o;14111:::-;14277:4;14315:2;14304:9;14300:18;14292:26;;14364:9;14358:4;14354:20;14350:1;14339:9;14335:17;14328:47;14392:131;14518:4;14392:131;:::i;:::-;14384:139;;14111:419;;;:::o;14536:::-;14702:4;14740:2;14729:9;14725:18;14717:26;;14789:9;14783:4;14779:20;14775:1;14764:9;14760:17;14753:47;14817:131;14943:4;14817:131;:::i;:::-;14809:139;;14536:419;;;:::o;14961:::-;15127:4;15165:2;15154:9;15150:18;15142:26;;15214:9;15208:4;15204:20;15200:1;15189:9;15185:17;15178:47;15242:131;15368:4;15242:131;:::i;:::-;15234:139;;14961:419;;;:::o;15386:::-;15552:4;15590:2;15579:9;15575:18;15567:26;;15639:9;15633:4;15629:20;15625:1;15614:9;15610:17;15603:47;15667:131;15793:4;15667:131;:::i;:::-;15659:139;;15386:419;;;:::o;15811:::-;15977:4;16015:2;16004:9;16000:18;15992:26;;16064:9;16058:4;16054:20;16050:1;16039:9;16035:17;16028:47;16092:131;16218:4;16092:131;:::i;:::-;16084:139;;15811:419;;;:::o;16236:222::-;16329:4;16367:2;16356:9;16352:18;16344:26;;16380:71;16448:1;16437:9;16433:17;16424:6;16380:71;:::i;:::-;16236:222;;;;:::o;16545:161::-;16641:4;16664:3;16656:11;;16694:4;16689:3;16685:14;16677:22;;16545:161;;;:::o;16712:143::-;16808:6;16842:5;16836:12;16826:22;;16712:143;;;:::o;16861:142::-;16960:4;16992;16987:3;16983:14;16975:22;;16861:142;;;:::o;17009:213::-;17137:11;17171:6;17166:3;17159:19;17211:4;17206:3;17202:14;17187:29;;17009:213;;;;:::o;17228:169::-;17312:11;17346:6;17341:3;17334:19;17386:4;17381:3;17377:14;17362:29;;17228:169;;;;:::o;17403:305::-;17443:3;17462:20;17480:1;17462:20;:::i;:::-;17457:25;;17496:20;17514:1;17496:20;:::i;:::-;17491:25;;17650:1;17582:66;17578:74;17575:1;17572:81;17569:107;;;17656:18;;:::i;:::-;17569:107;17700:1;17697;17693:9;17686:16;;17403:305;;;;:::o;17714:191::-;17754:4;17774:20;17792:1;17774:20;:::i;:::-;17769:25;;17808:20;17826:1;17808:20;:::i;:::-;17803:25;;17847:1;17844;17841:8;17838:34;;;17852:18;;:::i;:::-;17838:34;17897:1;17894;17890:9;17882:17;;17714:191;;;;:::o;17911:96::-;17948:7;17977:24;17995:5;17977:24;:::i;:::-;17966:35;;17911:96;;;:::o;18013:90::-;18047:7;18090:5;18083:13;18076:21;18065:32;;18013:90;;;:::o;18109:119::-;18169:7;18198:24;18216:5;18198:24;:::i;:::-;18187:35;;18109:119;;;:::o;18234:89::-;18270:7;18310:6;18303:5;18299:18;18288:29;;18234:89;;;:::o;18329:126::-;18366:7;18406:42;18399:5;18395:54;18384:65;;18329:126;;;:::o;18461:77::-;18498:7;18527:5;18516:16;;18461:77;;;:::o;18544:148::-;18616:9;18649:37;18680:5;18649:37;:::i;:::-;18636:50;;18544:148;;;:::o;18698:142::-;18764:9;18797:37;18828:5;18797:37;:::i;:::-;18784:50;;18698:142;;;:::o;18846:149::-;18919:9;18952:37;18983:5;18952:37;:::i;:::-;18939:50;;18846:149;;;:::o;19001:126::-;19051:9;19084:37;19115:5;19084:37;:::i;:::-;19071:50;;19001:126;;;:::o;19133:113::-;19183:9;19216:24;19234:5;19216:24;:::i;:::-;19203:37;;19133:113;;;:::o;19252:233::-;19291:3;19314:24;19332:5;19314:24;:::i;:::-;19305:33;;19360:66;19353:5;19350:77;19347:103;;;19430:18;;:::i;:::-;19347:103;19477:1;19470:5;19466:13;19459:20;;19252:233;;;:::o;19491:79::-;19530:7;19559:5;19548:16;;19491:79;;;:::o;19576:176::-;19608:1;19625:20;19643:1;19625:20;:::i;:::-;19620:25;;19659:20;19677:1;19659:20;:::i;:::-;19654:25;;19698:1;19688:35;;19703:18;;:::i;:::-;19688:35;19744:1;19741;19737:9;19732:14;;19576:176;;;;:::o;19758:180::-;19806:77;19803:1;19796:88;19903:4;19900:1;19893:15;19927:4;19924:1;19917:15;19944:180;19992:77;19989:1;19982:88;20089:4;20086:1;20079:15;20113:4;20110:1;20103:15;20130:180;20178:77;20175:1;20168:88;20275:4;20272:1;20265:15;20299:4;20296:1;20289:15;20316:180;20364:77;20361:1;20354:88;20461:4;20458:1;20451:15;20485:4;20482:1;20475:15;20502:117;20611:1;20608;20601:12;20625:117;20734:1;20731;20724:12;20748:117;20857:1;20854;20847:12;20871:117;20980:1;20977;20970:12;20994:117;21103:1;21100;21093:12;21117:175;21257:27;21253:1;21245:6;21241:14;21234:51;21117:175;:::o;21298:225::-;21438:34;21434:1;21426:6;21422:14;21415:58;21507:8;21502:2;21494:6;21490:15;21483:33;21298:225;:::o;21529:178::-;21669:30;21665:1;21657:6;21653:14;21646:54;21529:178;:::o;21713:182::-;21853:34;21849:1;21841:6;21837:14;21830:58;21713:182;:::o;21901:178::-;22041:30;22037:1;22029:6;22025:14;22018:54;21901:178;:::o;22085:181::-;22225:33;22221:1;22213:6;22209:14;22202:57;22085:181;:::o;22272:229::-;22412:34;22408:1;22400:6;22396:14;22389:58;22481:12;22476:2;22468:6;22464:15;22457:37;22272:229;:::o;22507:122::-;22580:24;22598:5;22580:24;:::i;:::-;22573:5;22570:35;22560:63;;22619:1;22616;22609:12;22560:63;22507:122;:::o;22635:116::-;22705:21;22720:5;22705:21;:::i;:::-;22698:5;22695:32;22685:60;;22741:1;22738;22731:12;22685:60;22635:116;:::o;22757:168::-;22853:47;22894:5;22853:47;:::i;:::-;22846:5;22843:58;22833:86;;22915:1;22912;22905:12;22833:86;22757:168;:::o;22931:120::-;23003:23;23020:5;23003:23;:::i;:::-;22996:5;22993:34;22983:62;;23041:1;23038;23031:12;22983:62;22931:120;:::o;23057:122::-;23130:24;23148:5;23130:24;:::i;:::-;23123:5;23120:35;23110:63;;23169:1;23166;23159:12;23110:63;23057:122;:::o
Swarm Source
ipfs://bd42315b9538bd7c9413f068df9be57ba0dc8cb1d94c03f52843a716aac65e11
Loading...
Loading
Loading...
Loading
Multichain Portfolio | 35 Chains
Chain | Token | Portfolio % | Price | Amount | Value |
---|
Loading...
Loading
Loading...
Loading
Loading...
Loading
[ Download: CSV Export ]
A contract address hosts a smart contract, which is a set of code stored on the blockchain that runs when predetermined conditions are met. Learn more about addresses in our Knowledge Base.