More Info
Private Name Tags
ContractCreator
TokenTracker
Latest 25 from a total of 1,446 transactions
Transaction Hash |
Method
|
Block
|
From
|
To
|
|||||
---|---|---|---|---|---|---|---|---|---|
Collect Multiple... | 21237626 | 21 days ago | IN | 0 ETH | 0.00078505 | ||||
Remove Multiple ... | 20976016 | 58 days ago | IN | 0 ETH | 0.00104554 | ||||
Collect Multiple... | 20882591 | 71 days ago | IN | 0 ETH | 0.00032399 | ||||
Remove Multiple ... | 20630916 | 106 days ago | IN | 0 ETH | 0.00029656 | ||||
Collect Multiple... | 20630913 | 106 days ago | IN | 0 ETH | 0.00022404 | ||||
Remove Multiple ... | 20374665 | 142 days ago | IN | 0 ETH | 0.00050979 | ||||
Remove Multiple ... | 20215772 | 164 days ago | IN | 0 ETH | 0.00062906 | ||||
Collect Multiple... | 19990049 | 196 days ago | IN | 0 ETH | 0.00081932 | ||||
Buy | 19942621 | 202 days ago | IN | 0.0005 ETH | 0.00047066 | ||||
Collect Multiple... | 19787281 | 224 days ago | IN | 0 ETH | 0.00052138 | ||||
Remove Multiple ... | 19669779 | 240 days ago | IN | 0 ETH | 0.00135897 | ||||
Collect Multiple... | 19658047 | 242 days ago | IN | 0 ETH | 0.00054646 | ||||
Remove Multiple ... | 19651169 | 243 days ago | IN | 0 ETH | 0.00461202 | ||||
Remove Multiple ... | 19651162 | 243 days ago | IN | 0 ETH | 0.00733964 | ||||
Remove Multiple ... | 19651157 | 243 days ago | IN | 0 ETH | 0.01060966 | ||||
Remove Multiple ... | 19651152 | 243 days ago | IN | 0 ETH | 0.01502062 | ||||
Remove Multiple ... | 19651146 | 243 days ago | IN | 0 ETH | 0.01944429 | ||||
Collect Multiple... | 19651115 | 243 days ago | IN | 0 ETH | 0.00801198 | ||||
Collect Multiple... | 19642394 | 244 days ago | IN | 0 ETH | 0.00107969 | ||||
Transfer | 19293900 | 293 days ago | IN | 0 ETH | 0.00127158 | ||||
Transfer | 19212292 | 305 days ago | IN | 0 ETH | 0.00074988 | ||||
Transfer | 19212292 | 305 days ago | IN | 0 ETH | 0.00111532 | ||||
Transfer | 19212288 | 305 days ago | IN | 0 ETH | 0.00070661 | ||||
Transfer | 19212281 | 305 days ago | IN | 0 ETH | 0.00106896 | ||||
Transfer | 19158025 | 312 days ago | IN | 0 ETH | 0.00067215 |
View more zero value Internal Transactions in Advanced View mode
Advanced mode:
Loading...
Loading
Contract Name:
$TOON
Compiler Version
v0.8.11+commit.d7f03943
Contract Source Code (Solidity)
/** *Submitted for verification at Etherscan.io on 2023-01-08 */ // SPDX-License-Identifier: MIT // (%% %&(/ // TOONVERSE STUDIOS PRESENTS! // ((( */%%#. #&(/( // THE DEVILCATS $TOON STAKING CONTRACT. // #*#* ./#/(%%***/**,,, .(%%/(. // ARTIST: KEITH (GIP) MILLER. // ,*//., ,,##(#%(*/(((((((*// .*#&#((* // DEV: ERIC (SudoAkula) WEBB. // ,.,*..*/,#*#/%(,,*(#(######**/(##/*/* // RULES: ONE $TOON A DAY WILL BE REWARED UNTIL 1,235,813 ARE CLAIMED. // ..*/(,*(/(#%.,,*///((/*** ,,,.,*, // LEGAL: HOLDS NO FINANCIAL VALUE, STRICTLY FOR THE LOVE OF ART & BLOCKCHAIN // ,(*./,#,(*..,********,,.. . /#**/# // *,. ..,,*,.,*/(((///***,,,,, /(. // ,,.(//,,/((.((((*///#./**#.**., /#, // *,,**/(((((#####((((((//*,,. /*******, . (, // %((,(%&%%%%&#(,/(((/%#%/(./*, ,***********( //. // %#,(((/&##%%(,/(((((*%%# . ,, ,**************/, * // %%,(#,(/#(%#/,( . ((*&%#**,,. , ,,**************/*******. // %,( ((%*(#,,(/ ((*&%(..,,. @( ,,,,,/,,...,***/*,******* // & &##, ((#**(,./( (/,%#/..,.%%&. *,,,,,. ,,.********* // .@*&#,.,../*,**.,* *,,#(/*((%/,@. .,,,,,,,,#(, /*,(@&@******.. // (@,#,*////*. .*(%&%%&@@/*(&#*@.&&...*(########* #%(@/(..@@%&@******,*, // ,*#&(. . %@@@@&&@@@@&%/&#@// ,**/(##((//**( ((#&&(, @@@@@@********., // ,*%@%*,.,./#%&&%@@@@@&#,%/%#,,,**//***,,,,,,,***/%(#%%@@(#% *******., // * ./@@@&#(/#%%%(*/// *##*.*******,,. ,,*(#%@@@(&%# *******,., // @@/ * ,. .. /*##(%#&,#,(((((,..** ,,**//,** ,,,,,,,,,,,* // &&# /&* %* #&#,,/&*#,%%%%%%/,,,.. .. ,,,,,,,,%%%%&&%%%%%&&##%% // . &@*,*&***/.,,. ########%/,,*,.... ,. ,,*%%%#(... .#%%&%% // ,, ###%%#((####%. .,**..*(**///*.( ,, %#%(/....... #%%%%%% // .%##,%#(/((####( . , ###/,&&@& #.,,,,,,,... ##(#/* ........ #% // **/(%% */##*/#(,** /(,######%%%&#%(&%%%,*%.,,,,,,........,**,,. ........... // &@%/#/**, (. ##/.#/* , *.///((,####%%%%%%%%%%%.,,,.,,.,,,........ .. ......... // #/@@@@@@@%@@@ .(*.(,* ** ,. ..,,.*.,*(,###########.,,.,,..,,,...... . . // @@&%#%&@@%@@(///, ,//(/,##/(/, ,. ...,,**.*,/*,*#####...,,,....,,.,. . // (*@@@@@&%&###### #.#*%%%%. **, . ...,,*,,,, */(....,,,,,,,,., , // (#%%%%(((##/#%# %#(.%#(/*, ........,,,......,,..... . // */*,,,,../*((((((((//** .. ,,,,,,..........,. .. .,. // #%&&%//,. , ,,,,,,,,,,,... . . // /%%%%%%((*, ,.********,,,,, . // *(*%///**/( ********** // ***#%****( ,/****/, // /(,*///** ////// // ///*/*(/*, //, // (**/*#(%// // /#%&%%&&# . // File: github.com/chiru-labs/ERC721A/blob/main/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: github.com/chiru-labs/ERC721A/blob/main/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.selector); 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.selector); 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 packed) { if (_startTokenId() <= tokenId) { packed = _packedOwnerships[tokenId]; // If not burned. if (packed & _BITMASK_BURNED == 0) { // If the data at the starting slot does not exist, start the scan. if (packed == 0) { if (tokenId >= _currentIndex) _revert(OwnerQueryForNonexistentToken.selector); // 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, `tokenId` will not underflow. // // We can directly compare the packed value. // If the address is zero, packed will be zero. for (;;) { unchecked { packed = _packedOwnerships[--tokenId]; } if (packed == 0) continue; return packed; } } // Otherwise, the data exists and is not burned. We can skip the scan. // This is possible because we have already achieved the target condition. // This saves 2143 gas on transfers of initialized tokens. return packed; } } _revert(OwnerQueryForNonexistentToken.selector); } /** * @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. See {ERC721A-_approve}. * * Requirements: * * - The caller must own the token or be an approved operator. */ function approve(address to, uint256 tokenId) public payable virtual override { _approve(to, tokenId, true); } /** * @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.selector); 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); // Mask `from` to the lower 160 bits, in case the upper bits somehow aren't clean. from = address(uint160(uint256(uint160(from)) & _BITMASK_ADDRESS)); if (address(uint160(prevOwnershipPacked)) != from) _revert(TransferFromIncorrectOwner.selector); (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.selector); _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; } } } } // Mask `to` to the lower 160 bits, in case the upper bits somehow aren't clean. uint256 toMasked = uint256(uint160(to)) & _BITMASK_ADDRESS; assembly { // 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. from, // `from`. toMasked, // `to`. tokenId // `tokenId`. ) } if (toMasked == 0) _revert(TransferToZeroAddress.selector); _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.selector); } } /** * @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.selector); } 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.selector); _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: // - `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) ); // Updates: // - `balance += quantity`. // - `numberMinted += quantity`. // // We can directly add to the `balance` and `numberMinted`. _packedAddressData[to] += quantity * ((1 << _BITPOS_NUMBER_MINTED) | 1); // Mask `to` to the lower 160 bits, in case the upper bits somehow aren't clean. uint256 toMasked = uint256(uint160(to)) & _BITMASK_ADDRESS; if (toMasked == 0) _revert(MintToZeroAddress.selector); uint256 end = startTokenId + quantity; uint256 tokenId = startTokenId; do { assembly { // 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`. tokenId // `tokenId`. ) } // The `!=` check ensures that large values of `quantity` // that overflows uint256 will make the loop run out of gas. } while (++tokenId != end); _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.selector); if (quantity == 0) _revert(MintZeroQuantity.selector); if (quantity > _MAX_MINT_ERC2309_QUANTITY_LIMIT) _revert(MintERC2309QuantityExceedsLimit.selector); _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.selector); } } while (index < end); // Reentrancy protection. if (_currentIndex != end) _revert(bytes4(0)); } } } /** * @dev Equivalent to `_safeMint(to, quantity, '')`. */ function _safeMint(address to, uint256 quantity) internal virtual { _safeMint(to, quantity, ''); } // ============================================================= // APPROVAL OPERATIONS // ============================================================= /** * @dev Equivalent to `_approve(to, tokenId, false)`. */ function _approve(address to, uint256 tokenId) internal virtual { _approve(to, tokenId, false); } /** * @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: * * - `tokenId` must exist. * * Emits an {Approval} event. */ function _approve( address to, uint256 tokenId, bool approvalCheck ) internal virtual { address owner = ownerOf(tokenId); if (approvalCheck && _msgSenderERC721A() != owner) if (!isApprovedForAll(owner, _msgSenderERC721A())) { _revert(ApprovalCallerNotOwnerNorApproved.selector); } _tokenApprovals[tokenId].value = to; emit Approval(owner, to, tokenId); } // ============================================================= // 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.selector); } _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.selector); 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) } } /** * @dev For more efficient reverts. */ function _revert(bytes4 errorSelector) internal pure { assembly { mstore(0x00, errorSelector) revert(0x00, 0x04) } } } // File: @openzeppelin/contracts/utils/math/SafeMath.sol // OpenZeppelin Contracts (last updated v4.6.0) (utils/math/SafeMath.sol) pragma solidity ^0.8.0; // CAUTION // This version of SafeMath should only be used with Solidity 0.8 or later, // because it relies on the compiler's built in overflow checks. /** * @dev Wrappers over Solidity's arithmetic operations. * * NOTE: `SafeMath` is generally not needed starting with Solidity 0.8, since the compiler * now has built in overflow checking. */ library SafeMath { /** * @dev Returns the addition of two unsigned integers, with an overflow flag. * * _Available since v3.4._ */ function tryAdd(uint256 a, uint256 b) internal pure returns (bool, uint256) { unchecked { uint256 c = a + b; if (c < a) return (false, 0); return (true, c); } } /** * @dev Returns the subtraction of two unsigned integers, with an overflow flag. * * _Available since v3.4._ */ function trySub(uint256 a, uint256 b) internal pure returns (bool, uint256) { unchecked { if (b > a) return (false, 0); return (true, a - b); } } /** * @dev Returns the multiplication of two unsigned integers, with an overflow flag. * * _Available since v3.4._ */ function tryMul(uint256 a, uint256 b) internal pure returns (bool, uint256) { unchecked { // Gas optimization: this is cheaper than requiring 'a' not being zero, but the // benefit is lost if 'b' is also tested. // See: https://github.com/OpenZeppelin/openzeppelin-contracts/pull/522 if (a == 0) return (true, 0); uint256 c = a * b; if (c / a != b) return (false, 0); return (true, c); } } /** * @dev Returns the division of two unsigned integers, with a division by zero flag. * * _Available since v3.4._ */ function tryDiv(uint256 a, uint256 b) internal pure returns (bool, uint256) { unchecked { if (b == 0) return (false, 0); return (true, a / b); } } /** * @dev Returns the remainder of dividing two unsigned integers, with a division by zero flag. * * _Available since v3.4._ */ function tryMod(uint256 a, uint256 b) internal pure returns (bool, uint256) { unchecked { if (b == 0) return (false, 0); return (true, a % b); } } /** * @dev Returns the addition of two unsigned integers, reverting on * overflow. * * Counterpart to Solidity's `+` operator. * * Requirements: * * - Addition cannot overflow. */ function add(uint256 a, uint256 b) internal pure returns (uint256) { return a + b; } /** * @dev Returns the subtraction of two unsigned integers, reverting on * overflow (when the result is negative). * * Counterpart to Solidity's `-` operator. * * Requirements: * * - Subtraction cannot overflow. */ function sub(uint256 a, uint256 b) internal pure returns (uint256) { return a - b; } /** * @dev Returns the multiplication of two unsigned integers, reverting on * overflow. * * Counterpart to Solidity's `*` operator. * * Requirements: * * - Multiplication cannot overflow. */ function mul(uint256 a, uint256 b) internal pure returns (uint256) { return a * b; } /** * @dev Returns the integer division of two unsigned integers, reverting on * division by zero. The result is rounded towards zero. * * Counterpart to Solidity's `/` operator. * * Requirements: * * - The divisor cannot be zero. */ function div(uint256 a, uint256 b) internal pure returns (uint256) { return a / b; } /** * @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo), * reverting when dividing by zero. * * Counterpart to Solidity's `%` operator. This function uses a `revert` * opcode (which leaves remaining gas untouched) while Solidity uses an * invalid opcode to revert (consuming all remaining gas). * * Requirements: * * - The divisor cannot be zero. */ function mod(uint256 a, uint256 b) internal pure returns (uint256) { return a % b; } /** * @dev Returns the subtraction of two unsigned integers, reverting with custom message on * overflow (when the result is negative). * * CAUTION: This function is deprecated because it requires allocating memory for the error * message unnecessarily. For custom revert reasons use {trySub}. * * Counterpart to Solidity's `-` operator. * * Requirements: * * - Subtraction cannot overflow. */ function sub( uint256 a, uint256 b, string memory errorMessage ) internal pure returns (uint256) { unchecked { require(b <= a, errorMessage); return a - b; } } /** * @dev Returns the integer division of two unsigned integers, reverting with custom message on * division by zero. The result is rounded towards zero. * * Counterpart to Solidity's `/` operator. Note: this function uses a * `revert` opcode (which leaves remaining gas untouched) while Solidity * uses an invalid opcode to revert (consuming all remaining gas). * * Requirements: * * - The divisor cannot be zero. */ function div( uint256 a, uint256 b, string memory errorMessage ) internal pure returns (uint256) { unchecked { require(b > 0, errorMessage); return a / b; } } /** * @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo), * reverting with custom message when dividing by zero. * * CAUTION: This function is deprecated because it requires allocating memory for the error * message unnecessarily. For custom revert reasons use {tryMod}. * * Counterpart to Solidity's `%` operator. This function uses a `revert` * opcode (which leaves remaining gas untouched) while Solidity uses an * invalid opcode to revert (consuming all remaining gas). * * Requirements: * * - The divisor cannot be zero. */ function mod( uint256 a, uint256 b, string memory errorMessage ) internal pure returns (uint256) { unchecked { require(b > 0, errorMessage); return a % b; } } } // 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/math/Math.sol // OpenZeppelin Contracts (last updated v4.8.0) (utils/math/Math.sol) pragma solidity ^0.8.0; /** * @dev Standard math utilities missing in the Solidity language. */ library Math { enum Rounding { Down, // Toward negative infinity Up, // Toward infinity Zero // Toward zero } /** * @dev Returns the largest of two numbers. */ function max(uint256 a, uint256 b) internal pure returns (uint256) { return a > b ? a : b; } /** * @dev Returns the smallest of two numbers. */ function min(uint256 a, uint256 b) internal pure returns (uint256) { return a < b ? a : b; } /** * @dev Returns the average of two numbers. The result is rounded towards * zero. */ function average(uint256 a, uint256 b) internal pure returns (uint256) { // (a + b) / 2 can overflow. return (a & b) + (a ^ b) / 2; } /** * @dev Returns the ceiling of the division of two numbers. * * This differs from standard division with `/` in that it rounds up instead * of rounding down. */ function ceilDiv(uint256 a, uint256 b) internal pure returns (uint256) { // (a + b - 1) / b can overflow on addition, so we distribute. return a == 0 ? 0 : (a - 1) / b + 1; } /** * @notice Calculates floor(x * y / denominator) with full precision. Throws if result overflows a uint256 or denominator == 0 * @dev Original credit to Remco Bloemen under MIT license (https://xn--2-umb.com/21/muldiv) * with further edits by Uniswap Labs also under MIT license. */ function mulDiv( uint256 x, uint256 y, uint256 denominator ) internal pure returns (uint256 result) { unchecked { // 512-bit multiply [prod1 prod0] = x * y. Compute the product mod 2^256 and mod 2^256 - 1, then use // use the Chinese Remainder Theorem to reconstruct the 512 bit result. The result is stored in two 256 // variables such that product = prod1 * 2^256 + prod0. uint256 prod0; // Least significant 256 bits of the product uint256 prod1; // Most significant 256 bits of the product assembly { let mm := mulmod(x, y, not(0)) prod0 := mul(x, y) prod1 := sub(sub(mm, prod0), lt(mm, prod0)) } // Handle non-overflow cases, 256 by 256 division. if (prod1 == 0) { return prod0 / denominator; } // Make sure the result is less than 2^256. Also prevents denominator == 0. require(denominator > prod1); /////////////////////////////////////////////// // 512 by 256 division. /////////////////////////////////////////////// // Make division exact by subtracting the remainder from [prod1 prod0]. uint256 remainder; assembly { // Compute remainder using mulmod. remainder := mulmod(x, y, denominator) // Subtract 256 bit number from 512 bit number. prod1 := sub(prod1, gt(remainder, prod0)) prod0 := sub(prod0, remainder) } // Factor powers of two out of denominator and compute largest power of two divisor of denominator. Always >= 1. // See https://cs.stackexchange.com/q/138556/92363. // Does not overflow because the denominator cannot be zero at this stage in the function. uint256 twos = denominator & (~denominator + 1); assembly { // Divide denominator by twos. denominator := div(denominator, twos) // Divide [prod1 prod0] by twos. prod0 := div(prod0, twos) // Flip twos such that it is 2^256 / twos. If twos is zero, then it becomes one. twos := add(div(sub(0, twos), twos), 1) } // Shift in bits from prod1 into prod0. prod0 |= prod1 * twos; // Invert denominator mod 2^256. Now that denominator is an odd number, it has an inverse modulo 2^256 such // that denominator * inv = 1 mod 2^256. Compute the inverse by starting with a seed that is correct for // four bits. That is, denominator * inv = 1 mod 2^4. uint256 inverse = (3 * denominator) ^ 2; // Use the Newton-Raphson iteration to improve the precision. Thanks to Hensel's lifting lemma, this also works // in modular arithmetic, doubling the correct bits in each step. inverse *= 2 - denominator * inverse; // inverse mod 2^8 inverse *= 2 - denominator * inverse; // inverse mod 2^16 inverse *= 2 - denominator * inverse; // inverse mod 2^32 inverse *= 2 - denominator * inverse; // inverse mod 2^64 inverse *= 2 - denominator * inverse; // inverse mod 2^128 inverse *= 2 - denominator * inverse; // inverse mod 2^256 // Because the division is now exact we can divide by multiplying with the modular inverse of denominator. // This will give us the correct result modulo 2^256. Since the preconditions guarantee that the outcome is // less than 2^256, this is the final result. We don't need to compute the high bits of the result and prod1 // is no longer required. result = prod0 * inverse; return result; } } /** * @notice Calculates x * y / denominator with full precision, following the selected rounding direction. */ function mulDiv( uint256 x, uint256 y, uint256 denominator, Rounding rounding ) internal pure returns (uint256) { uint256 result = mulDiv(x, y, denominator); if (rounding == Rounding.Up && mulmod(x, y, denominator) > 0) { result += 1; } return result; } /** * @dev Returns the square root of a number. If the number is not a perfect square, the value is rounded down. * * Inspired by Henry S. Warren, Jr.'s "Hacker's Delight" (Chapter 11). */ function sqrt(uint256 a) internal pure returns (uint256) { if (a == 0) { return 0; } // For our first guess, we get the biggest power of 2 which is smaller than the square root of the target. // // We know that the "msb" (most significant bit) of our target number `a` is a power of 2 such that we have // `msb(a) <= a < 2*msb(a)`. This value can be written `msb(a)=2**k` with `k=log2(a)`. // // This can be rewritten `2**log2(a) <= a < 2**(log2(a) + 1)` // → `sqrt(2**k) <= sqrt(a) < sqrt(2**(k+1))` // → `2**(k/2) <= sqrt(a) < 2**((k+1)/2) <= 2**(k/2 + 1)` // // Consequently, `2**(log2(a) / 2)` is a good first approximation of `sqrt(a)` with at least 1 correct bit. uint256 result = 1 << (log2(a) >> 1); // At this point `result` is an estimation with one bit of precision. We know the true value is a uint128, // since it is the square root of a uint256. Newton's method converges quadratically (precision doubles at // every iteration). We thus need at most 7 iteration to turn our partial result with one bit of precision // into the expected uint128 result. unchecked { result = (result + a / result) >> 1; result = (result + a / result) >> 1; result = (result + a / result) >> 1; result = (result + a / result) >> 1; result = (result + a / result) >> 1; result = (result + a / result) >> 1; result = (result + a / result) >> 1; return min(result, a / result); } } /** * @notice Calculates sqrt(a), following the selected rounding direction. */ function sqrt(uint256 a, Rounding rounding) internal pure returns (uint256) { unchecked { uint256 result = sqrt(a); return result + (rounding == Rounding.Up && result * result < a ? 1 : 0); } } /** * @dev Return the log in base 2, rounded down, of a positive value. * Returns 0 if given 0. */ function log2(uint256 value) internal pure returns (uint256) { uint256 result = 0; unchecked { if (value >> 128 > 0) { value >>= 128; result += 128; } if (value >> 64 > 0) { value >>= 64; result += 64; } if (value >> 32 > 0) { value >>= 32; result += 32; } if (value >> 16 > 0) { value >>= 16; result += 16; } if (value >> 8 > 0) { value >>= 8; result += 8; } if (value >> 4 > 0) { value >>= 4; result += 4; } if (value >> 2 > 0) { value >>= 2; result += 2; } if (value >> 1 > 0) { result += 1; } } return result; } /** * @dev Return the log in base 2, following the selected rounding direction, of a positive value. * Returns 0 if given 0. */ function log2(uint256 value, Rounding rounding) internal pure returns (uint256) { unchecked { uint256 result = log2(value); return result + (rounding == Rounding.Up && 1 << result < value ? 1 : 0); } } /** * @dev Return the log in base 10, rounded down, of a positive value. * Returns 0 if given 0. */ function log10(uint256 value) internal pure returns (uint256) { uint256 result = 0; unchecked { if (value >= 10**64) { value /= 10**64; result += 64; } if (value >= 10**32) { value /= 10**32; result += 32; } if (value >= 10**16) { value /= 10**16; result += 16; } if (value >= 10**8) { value /= 10**8; result += 8; } if (value >= 10**4) { value /= 10**4; result += 4; } if (value >= 10**2) { value /= 10**2; result += 2; } if (value >= 10**1) { result += 1; } } return result; } /** * @dev Return the log in base 10, following the selected rounding direction, of a positive value. * Returns 0 if given 0. */ function log10(uint256 value, Rounding rounding) internal pure returns (uint256) { unchecked { uint256 result = log10(value); return result + (rounding == Rounding.Up && 10**result < value ? 1 : 0); } } /** * @dev Return the log in base 256, rounded down, of a positive value. * Returns 0 if given 0. * * Adding one to the result gives the number of pairs of hex symbols needed to represent `value` as a hex string. */ function log256(uint256 value) internal pure returns (uint256) { uint256 result = 0; unchecked { if (value >> 128 > 0) { value >>= 128; result += 16; } if (value >> 64 > 0) { value >>= 64; result += 8; } if (value >> 32 > 0) { value >>= 32; result += 4; } if (value >> 16 > 0) { value >>= 16; result += 2; } if (value >> 8 > 0) { result += 1; } } return result; } /** * @dev Return the log in base 10, following the selected rounding direction, of a positive value. * Returns 0 if given 0. */ function log256(uint256 value, Rounding rounding) internal pure returns (uint256) { unchecked { uint256 result = log256(value); return result + (rounding == Rounding.Up && 1 << (result * 8) < value ? 1 : 0); } } } // File: @openzeppelin/contracts/utils/Strings.sol // OpenZeppelin Contracts (last updated v4.8.0) (utils/Strings.sol) pragma solidity ^0.8.0; /** * @dev String operations. */ library Strings { bytes16 private constant _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) { unchecked { uint256 length = Math.log10(value) + 1; string memory buffer = new string(length); uint256 ptr; /// @solidity memory-safe-assembly assembly { ptr := add(buffer, add(32, length)) } while (true) { ptr--; /// @solidity memory-safe-assembly assembly { mstore8(ptr, byte(mod(value, 10), _SYMBOLS)) } value /= 10; if (value == 0) break; } return buffer; } } /** * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation. */ function toHexString(uint256 value) internal pure returns (string memory) { unchecked { return toHexString(value, Math.log256(value) + 1); } } /** * @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] = _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/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/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/Pausable.sol // OpenZeppelin Contracts (last updated v4.7.0) (security/Pausable.sol) pragma solidity ^0.8.0; /** * @dev Contract module which allows children to implement an emergency stop * mechanism that can be triggered by an authorized account. * * This module is used through inheritance. It will make available the * modifiers `whenNotPaused` and `whenPaused`, which can be applied to * the functions of your contract. Note that they will not be pausable by * simply including this module, only once the modifiers are put in place. */ abstract contract Pausable is Context { /** * @dev Emitted when the pause is triggered by `account`. */ event Paused(address account); /** * @dev Emitted when the pause is lifted by `account`. */ event Unpaused(address account); bool private _paused; /** * @dev Initializes the contract in unpaused state. */ constructor() { _paused = false; } /** * @dev Modifier to make a function callable only when the contract is not paused. * * Requirements: * * - The contract must not be paused. */ modifier whenNotPaused() { _requireNotPaused(); _; } /** * @dev Modifier to make a function callable only when the contract is paused. * * Requirements: * * - The contract must be paused. */ modifier whenPaused() { _requirePaused(); _; } /** * @dev Returns true if the contract is paused, and false otherwise. */ function paused() public view virtual returns (bool) { return _paused; } /** * @dev Throws if the contract is paused. */ function _requireNotPaused() internal view virtual { require(!paused(), "Pausable: paused"); } /** * @dev Throws if the contract is not paused. */ function _requirePaused() internal view virtual { require(paused(), "Pausable: not paused"); } /** * @dev Triggers stopped state. * * Requirements: * * - The contract must not be paused. */ function _pause() internal virtual whenNotPaused { _paused = true; emit Paused(_msgSender()); } /** * @dev Returns to normal state. * * Requirements: * * - The contract must be paused. */ function _unpause() internal virtual whenPaused { _paused = false; emit Unpaused(_msgSender()); } } // File: @openzeppelin/contracts/token/ERC20/ERC20.sol // OpenZeppelin Contracts (last updated v4.8.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.openzeppelin.com/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; // Overflow not possible: the sum of all balances is capped by totalSupply, and the sum is preserved by // decrementing then incrementing. _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; unchecked { // Overflow not possible: balance + amount is at most totalSupply + amount, which is checked above. _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; // Overflow not possible: amount <= accountBalance <= totalSupply. _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/utils/Address.sol // OpenZeppelin Contracts (last updated v4.8.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 functionCallWithValue(target, data, 0, "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"); (bool success, bytes memory returndata) = target.call{value: value}(data); return verifyCallResultFromTarget(target, 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) { (bool success, bytes memory returndata) = target.staticcall(data); return verifyCallResultFromTarget(target, 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) { (bool success, bytes memory returndata) = target.delegatecall(data); return verifyCallResultFromTarget(target, success, returndata, errorMessage); } /** * @dev Tool to verify that a low level call to smart-contract was successful, and revert (either by bubbling * the revert reason or using the provided one) in case of unsuccessful call or if target was not a contract. * * _Available since v4.8._ */ function verifyCallResultFromTarget( address target, bool success, bytes memory returndata, string memory errorMessage ) internal view returns (bytes memory) { if (success) { if (returndata.length == 0) { // only check isContract if the call was successful and the return data is empty // otherwise we already know that it was a contract require(isContract(target), "Address: call to non-contract"); } return returndata; } else { _revert(returndata, errorMessage); } } /** * @dev Tool to verify that a low level call was successful, and revert if it wasn't, either by bubbling the * revert reason or 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 { _revert(returndata, errorMessage); } } function _revert(bytes memory returndata, string memory errorMessage) private pure { // 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/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.8.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: Note that the caller is responsible to confirm that the recipient is capable of receiving ERC721 * or else they may be permanently lost. Usage of {safeTransferFrom} prevents loss, though the caller must * understand this adds an external call which potentially creates a reentrancy vulnerability. * * 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/IERC721Enumerable.sol // OpenZeppelin Contracts (last updated v4.5.0) (token/ERC721/extensions/IERC721Enumerable.sol) pragma solidity ^0.8.0; /** * @title ERC-721 Non-Fungible Token Standard, optional enumeration extension * @dev See https://eips.ethereum.org/EIPS/eip-721 */ interface IERC721Enumerable is IERC721 { /** * @dev Returns the total amount of tokens stored by the contract. */ function totalSupply() external view returns (uint256); /** * @dev Returns a token ID owned by `owner` at a given `index` of its token list. * Use along with {balanceOf} to enumerate all of ``owner``'s tokens. */ function tokenOfOwnerByIndex(address owner, uint256 index) external view returns (uint256); /** * @dev Returns a token ID at a given `index` of all the tokens stored by the contract. * Use along with {totalSupply} to enumerate all tokens. */ function tokenByIndex(uint256 index) external view returns (uint256); } // 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.8.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 = _ownerOf(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 or 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 or 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 or 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 the owner of the `tokenId`. Does NOT revert if token doesn't exist */ function _ownerOf(uint256 tokenId) internal view virtual returns (address) { return _owners[tokenId]; } /** * @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 _ownerOf(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, 1); // Check that tokenId was not minted by `_beforeTokenTransfer` hook require(!_exists(tokenId), "ERC721: token already minted"); unchecked { // Will not overflow unless all 2**256 token ids are minted to the same owner. // Given that tokens are minted one by one, it is impossible in practice that // this ever happens. Might change if we allow batch minting. // The ERC fails to describe this case. _balances[to] += 1; } _owners[tokenId] = to; emit Transfer(address(0), to, tokenId); _afterTokenTransfer(address(0), to, tokenId, 1); } /** * @dev Destroys `tokenId`. * The approval is cleared when the token is burned. * This is an internal function that does not check if the sender is authorized to operate on the token. * * Requirements: * * - `tokenId` must exist. * * Emits a {Transfer} event. */ function _burn(uint256 tokenId) internal virtual { address owner = ERC721.ownerOf(tokenId); _beforeTokenTransfer(owner, address(0), tokenId, 1); // Update ownership in case tokenId was transferred by `_beforeTokenTransfer` hook owner = ERC721.ownerOf(tokenId); // Clear approvals delete _tokenApprovals[tokenId]; unchecked { // Cannot overflow, as that would require more tokens to be burned/transferred // out than the owner initially received through minting and transferring in. _balances[owner] -= 1; } delete _owners[tokenId]; emit Transfer(owner, address(0), tokenId); _afterTokenTransfer(owner, address(0), tokenId, 1); } /** * @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, 1); // Check that tokenId was not transferred by `_beforeTokenTransfer` hook require(ERC721.ownerOf(tokenId) == from, "ERC721: transfer from incorrect owner"); // Clear approvals from the previous owner delete _tokenApprovals[tokenId]; unchecked { // `_balances[from]` cannot overflow for the same reason as described in `_burn`: // `from`'s balance is the number of token held, which is at least one before the current // transfer. // `_balances[to]` could overflow in the conditions described in `_mint`. That would require // all 2**256 token ids to be minted, which in practice is impossible. _balances[from] -= 1; _balances[to] += 1; } _owners[tokenId] = to; emit Transfer(from, to, tokenId); _afterTokenTransfer(from, to, tokenId, 1); } /** * @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. If {ERC721Consecutive} is * used, the hook may be called as part of a consecutive (batch) mint, as indicated by `batchSize` greater than 1. * * Calling conditions: * * - When `from` and `to` are both non-zero, ``from``'s tokens will be transferred to `to`. * - When `from` is zero, the tokens will be minted for `to`. * - When `to` is zero, ``from``'s tokens will be burned. * - `from` and `to` are never both zero. * - `batchSize` is non-zero. * * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks]. */ function _beforeTokenTransfer( address from, address to, uint256, /* firstTokenId */ uint256 batchSize ) internal virtual { if (batchSize > 1) { if (from != address(0)) { _balances[from] -= batchSize; } if (to != address(0)) { _balances[to] += batchSize; } } } /** * @dev Hook that is called after any token transfer. This includes minting and burning. If {ERC721Consecutive} is * used, the hook may be called as part of a consecutive (batch) mint, as indicated by `batchSize` greater than 1. * * Calling conditions: * * - When `from` and `to` are both non-zero, ``from``'s tokens were transferred to `to`. * - When `from` is zero, the tokens were minted for `to`. * - When `to` is zero, ``from``'s tokens were burned. * - `from` and `to` are never both zero. * - `batchSize` is non-zero. * * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks]. */ function _afterTokenTransfer( address from, address to, uint256 firstTokenId, uint256 batchSize ) internal virtual {} } // File: @openzeppelin/contracts/token/ERC721/extensions/ERC721Enumerable.sol // OpenZeppelin Contracts (last updated v4.8.0) (token/ERC721/extensions/ERC721Enumerable.sol) pragma solidity ^0.8.0; /** * @dev This implements an optional extension of {ERC721} defined in the EIP that adds * enumerability of all the token ids in the contract as well as all token ids owned by each * account. */ abstract contract ERC721Enumerable is ERC721, IERC721Enumerable { // Mapping from owner to list of owned token IDs mapping(address => mapping(uint256 => uint256)) private _ownedTokens; // Mapping from token ID to index of the owner tokens list mapping(uint256 => uint256) private _ownedTokensIndex; // Array with all token ids, used for enumeration uint256[] private _allTokens; // Mapping from token id to position in the allTokens array mapping(uint256 => uint256) private _allTokensIndex; /** * @dev See {IERC165-supportsInterface}. */ function supportsInterface(bytes4 interfaceId) public view virtual override(IERC165, ERC721) returns (bool) { return interfaceId == type(IERC721Enumerable).interfaceId || super.supportsInterface(interfaceId); } /** * @dev See {IERC721Enumerable-tokenOfOwnerByIndex}. */ function tokenOfOwnerByIndex(address owner, uint256 index) public view virtual override returns (uint256) { require(index < ERC721.balanceOf(owner), "ERC721Enumerable: owner index out of bounds"); return _ownedTokens[owner][index]; } /** * @dev See {IERC721Enumerable-totalSupply}. */ function totalSupply() public view virtual override returns (uint256) { return _allTokens.length; } /** * @dev See {IERC721Enumerable-tokenByIndex}. */ function tokenByIndex(uint256 index) public view virtual override returns (uint256) { require(index < ERC721Enumerable.totalSupply(), "ERC721Enumerable: global index out of bounds"); return _allTokens[index]; } /** * @dev See {ERC721-_beforeTokenTransfer}. */ function _beforeTokenTransfer( address from, address to, uint256 firstTokenId, uint256 batchSize ) internal virtual override { super._beforeTokenTransfer(from, to, firstTokenId, batchSize); if (batchSize > 1) { // Will only trigger during construction. Batch transferring (minting) is not available afterwards. revert("ERC721Enumerable: consecutive transfers not supported"); } uint256 tokenId = firstTokenId; if (from == address(0)) { _addTokenToAllTokensEnumeration(tokenId); } else if (from != to) { _removeTokenFromOwnerEnumeration(from, tokenId); } if (to == address(0)) { _removeTokenFromAllTokensEnumeration(tokenId); } else if (to != from) { _addTokenToOwnerEnumeration(to, tokenId); } } /** * @dev Private function to add a token to this extension's ownership-tracking data structures. * @param to address representing the new owner of the given token ID * @param tokenId uint256 ID of the token to be added to the tokens list of the given address */ function _addTokenToOwnerEnumeration(address to, uint256 tokenId) private { uint256 length = ERC721.balanceOf(to); _ownedTokens[to][length] = tokenId; _ownedTokensIndex[tokenId] = length; } /** * @dev Private function to add a token to this extension's token tracking data structures. * @param tokenId uint256 ID of the token to be added to the tokens list */ function _addTokenToAllTokensEnumeration(uint256 tokenId) private { _allTokensIndex[tokenId] = _allTokens.length; _allTokens.push(tokenId); } /** * @dev Private function to remove a token from this extension's ownership-tracking data structures. Note that * while the token is not assigned a new owner, the `_ownedTokensIndex` mapping is _not_ updated: this allows for * gas optimizations e.g. when performing a transfer operation (avoiding double writes). * This has O(1) time complexity, but alters the order of the _ownedTokens array. * @param from address representing the previous owner of the given token ID * @param tokenId uint256 ID of the token to be removed from the tokens list of the given address */ function _removeTokenFromOwnerEnumeration(address from, uint256 tokenId) private { // To prevent a gap in from's tokens array, we store the last token in the index of the token to delete, and // then delete the last slot (swap and pop). uint256 lastTokenIndex = ERC721.balanceOf(from) - 1; uint256 tokenIndex = _ownedTokensIndex[tokenId]; // When the token to delete is the last token, the swap operation is unnecessary if (tokenIndex != lastTokenIndex) { uint256 lastTokenId = _ownedTokens[from][lastTokenIndex]; _ownedTokens[from][tokenIndex] = lastTokenId; // Move the last token to the slot of the to-delete token _ownedTokensIndex[lastTokenId] = tokenIndex; // Update the moved token's index } // This also deletes the contents at the last position of the array delete _ownedTokensIndex[tokenId]; delete _ownedTokens[from][lastTokenIndex]; } /** * @dev Private function to remove a token from this extension's token tracking data structures. * This has O(1) time complexity, but alters the order of the _allTokens array. * @param tokenId uint256 ID of the token to be removed from the tokens list */ function _removeTokenFromAllTokensEnumeration(uint256 tokenId) private { // To prevent a gap in the tokens array, we store the last token in the index of the token to delete, and // then delete the last slot (swap and pop). uint256 lastTokenIndex = _allTokens.length - 1; uint256 tokenIndex = _allTokensIndex[tokenId]; // When the token to delete is the last token, the swap operation is unnecessary. However, since this occurs so // rarely (when the last minted token is burnt) that we still do the swap here to avoid the gas cost of adding // an 'if' statement (like in _removeTokenFromOwnerEnumeration) uint256 lastTokenId = _allTokens[lastTokenIndex]; _allTokens[tokenIndex] = lastTokenId; // Move the last token to the slot of the to-delete token _allTokensIndex[lastTokenId] = tokenIndex; // Update the moved token's index // This also deletes the contents at the last position of the array delete _allTokensIndex[tokenId]; _allTokens.pop(); } } // File: contracts/devilCat_Staking.sol pragma solidity ^0.8.11; contract $TOON is ERC20Burnable, Ownable { using SafeMath for uint256; ERC721A public devilCatzNft; uint256 public cost = 0.0005 ether; event Bought(uint256 amount); uint256 public maxSupply = 1235813; uint256 public stakedNfts = 0; uint256 public rewardsTime = 86400; bool public nftStakingPaused = false; bool public rewardsCollectionPaused = false; mapping(address => mapping(uint256 => uint256)) public nftStakersWithTime; mapping(address => uint256[]) private nftStakersWithArray; mapping(address => uint256) public rewardsInWei; constructor() payable ERC20("$TOON", "$TOON") { _mint(address(this), 935813); _mint(0x1aBC6efe814F2766003d0c4AA5496B9b0EBC6eA3, 150000); _mint(0x4538C3d93FfdE7677EF66aB548a4Dd7f39eca785, 150000); devilCatzNft = ERC721A(0x1c4a28690482b03F6991C8c24295016cba197C12); } function getUsersStakedNfts(address _staker) public view returns (uint256[] memory) { return nftStakersWithArray[_staker]; } function decimals() public view virtual override returns (uint8) { return 0; } function circulatingSupply() public view returns (uint256) { return (this.totalSupply() - balanceOf(address(this))); } function setMaxSupply(uint256 _amount) public onlyOwner { require( circulatingSupply() < _amount, "Cant set new total supply less than old supply." ); maxSupply = _amount; } function setNftStakingPaused(bool _b) public onlyOwner { nftStakingPaused = _b; } function setRewardsCollectionPaused(bool _b) public onlyOwner { rewardsCollectionPaused = _b; } function buy(uint256 _quantity) public payable { require(_quantity > 0, "Quantity needs to be greater than 1"); require( balanceOf(address(this)) > _quantity, "Not enough left in contract to buy.." ); uint256 totalCostEth = _quantity * cost; require(msg.value >= totalCostEth, "Did not send enough ETH"); _transfer(address(this), msg.sender, _quantity); emit Bought(_quantity); } function withdrawEthFromContract(uint256 _amount) public payable onlyOwner { (bool os, ) = payable(owner()).call{value: _amount}(""); require(os); } function withdrawToonFromContract(uint256 _amount) public payable onlyOwner { _transfer(address(this), owner(), _amount); } function sendToonFromConract(address addy, uint256 _amount) public payable onlyOwner { _transfer(address(this), addy, _amount); } function setCost(uint256 _newCost) public onlyOwner { cost = _newCost; } function burn(uint256 _amount) public virtual override { _burn(_msgSender(), _amount); maxSupply -= _amount; } function stakeNft(uint256 _tokenID) public { require(!nftStakingPaused, "Staking NFTs is currently paused."); require( nftStakersWithTime[msg.sender][_tokenID] == 0, "This token already staked." ); devilCatzNft.transferFrom(msg.sender, address(this), _tokenID); nftStakersWithTime[msg.sender][_tokenID] = block.timestamp; stakedNfts += 1; nftStakersWithArray[msg.sender].push(_tokenID); } function stakeMultipleNfts(uint256[] calldata _nftIds) public { require(!nftStakingPaused, "Staking NFTs is currently paused."); for (uint256 i = 0; i <= _nftIds.length - 1; i++) { require( devilCatzNft.ownerOf(_nftIds[i]) == msg.sender, "Not all of those NFTs are in your current wallet." ); devilCatzNft.transferFrom(msg.sender, address(this), _nftIds[i]); nftStakersWithTime[msg.sender][_nftIds[i]] = block.timestamp; stakedNfts += 1; nftStakersWithArray[msg.sender].push(_nftIds[i]); } } function potentialAllStakedNftReward(address _addy) public view returns (uint256) { uint256[] memory nfts = getUsersStakedNfts(_addy); uint256 intDate = 0; uint256 subtracted = 0; uint256 utilToken = 0; for (uint256 i = 0; i < nfts.length; i++) { if (nftStakersWithTime[_addy][nfts[i]] != 0) { intDate = nftStakersWithTime[_addy][nfts[i]]; subtracted = block.timestamp - intDate; utilToken += subtracted / rewardsTime; } } return utilToken * 1; } function potentialStakedNftReward(address _addy, uint256 _tokenID) public view returns (uint256) { require( nftStakersWithTime[_addy][_tokenID] != 0, "This token not staked." ); uint256 intDate = nftStakersWithTime[_addy][_tokenID]; uint256 subtracted = block.timestamp - intDate; uint256 tokens = subtracted / rewardsTime; return tokens * 1; } function collectStakedNftReward(address _addy, uint256 _tokenID) public { require(!nftStakingPaused, "Staking NFTs is currently paused."); require( nftStakersWithTime[_addy][_tokenID] != 0, "This token not staked." ); require( potentialStakedNftReward(_addy, _tokenID) != 0, "You dont have enough to claim." ); uint256 tokens = potentialStakedNftReward(_addy, _tokenID); _transfer(address(this), _addy, tokens); nftStakersWithTime[_addy][_tokenID] = block.timestamp; } function collectMultipleStakedNftReward(uint256[] calldata _nftIds) public { require( !rewardsCollectionPaused, "Collecting Rewards is currently paused." ); for (uint256 i = 0; i <= _nftIds.length-1; i++) { require( nftStakersWithTime[msg.sender][_nftIds[i]] != 0, "Not all those tokens are staked." ); collectStakedNftReward(msg.sender, _nftIds[i]); } } function removeStakedNft(uint256 _stakedNFT) public { require( nftStakersWithTime[msg.sender][_stakedNFT] != 0, "Cant Unstake something your not staking." ); devilCatzNft.transferFrom(address(this), msg.sender, _stakedNFT); nftStakersWithTime[msg.sender][_stakedNFT] = 0; stakedNfts -= 1; uint256[] storage tempArray = nftStakersWithArray[msg.sender]; for (uint256 i = 0; i < tempArray.length; i++) { if (tempArray[i] == _stakedNFT) { if (i >= tempArray.length) return; for (uint256 j = i; j < tempArray.length - 1; j++) { tempArray[j] = tempArray[j + 1]; } tempArray.pop(); nftStakersWithArray[msg.sender] = tempArray; } } } function removeMultipleStakedNft(uint256[] calldata _nftIds) public { for (uint256 k = 0; k <= _nftIds.length - 1; k++) { require( nftStakersWithTime[msg.sender][_nftIds[k]] != 0, "Cant Unstake something your not staking." ); removeStakedNft(_nftIds[k]); } } }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"inputs":[],"stateMutability":"payable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"spender","type":"address"},{"indexed":false,"internalType":"uint256","name":"value","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"Bought","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":false,"internalType":"uint256","name":"value","type":"uint256"}],"name":"Transfer","type":"event"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"spender","type":"address"}],"name":"allowance","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"approve","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"burn","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"burnFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_quantity","type":"uint256"}],"name":"buy","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"circulatingSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256[]","name":"_nftIds","type":"uint256[]"}],"name":"collectMultipleStakedNftReward","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_addy","type":"address"},{"internalType":"uint256","name":"_tokenID","type":"uint256"}],"name":"collectStakedNftReward","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"cost","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"decimals","outputs":[{"internalType":"uint8","name":"","type":"uint8"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"subtractedValue","type":"uint256"}],"name":"decreaseAllowance","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"devilCatzNft","outputs":[{"internalType":"contract ERC721A","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_staker","type":"address"}],"name":"getUsersStakedNfts","outputs":[{"internalType":"uint256[]","name":"","type":"uint256[]"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"addedValue","type":"uint256"}],"name":"increaseAllowance","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"maxSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"},{"internalType":"uint256","name":"","type":"uint256"}],"name":"nftStakersWithTime","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"nftStakingPaused","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_addy","type":"address"}],"name":"potentialAllStakedNftReward","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_addy","type":"address"},{"internalType":"uint256","name":"_tokenID","type":"uint256"}],"name":"potentialStakedNftReward","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256[]","name":"_nftIds","type":"uint256[]"}],"name":"removeMultipleStakedNft","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_stakedNFT","type":"uint256"}],"name":"removeStakedNft","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"rewardsCollectionPaused","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"rewardsInWei","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"rewardsTime","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"addy","type":"address"},{"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"sendToonFromConract","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_newCost","type":"uint256"}],"name":"setCost","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"setMaxSupply","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bool","name":"_b","type":"bool"}],"name":"setNftStakingPaused","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bool","name":"_b","type":"bool"}],"name":"setRewardsCollectionPaused","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256[]","name":"_nftIds","type":"uint256[]"}],"name":"stakeMultipleNfts","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_tokenID","type":"uint256"}],"name":"stakeNft","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"stakedNfts","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"transfer","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"transferFrom","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"withdrawEthFromContract","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"withdrawToonFromContract","outputs":[],"stateMutability":"payable","type":"function"}]
Contract Creation Code
60806040526601c6bf526340006007556212db65600855600060095562015180600a556000600b60006101000a81548160ff0219169083151502179055506000600b60016101000a81548160ff0219169083151502179055506040518060400160405280600581526020017f24544f4f4e0000000000000000000000000000000000000000000000000000008152506040518060400160405280600581526020017f24544f4f4e0000000000000000000000000000000000000000000000000000008152508160039080519060200190620000dc92919062000420565b508060049080519060200190620000f592919062000420565b505050620001186200010c620001da60201b60201c565b620001e260201b60201c565b6200012d30620e4785620002a860201b60201c565b62000156731abc6efe814f2766003d0c4aa5496b9b0ebc6ea3620249f0620002a860201b60201c565b6200017f734538c3d93ffde7677ef66ab548a4dd7f39eca785620249f0620002a860201b60201c565b731c4a28690482b03f6991c8c24295016cba197c12600660006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055506200067c565b600033905090565b6000600560009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905081600560006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1614156200031b576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401620003129062000531565b60405180910390fd5b6200032f600083836200041660201b60201c565b80600260008282546200034391906200058c565b92505081905550806000808473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600082825401925050819055508173ffffffffffffffffffffffffffffffffffffffff16600073ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef83604051620003f69190620005fa565b60405180910390a362000412600083836200041b60201b60201c565b5050565b505050565b505050565b8280546200042e9062000646565b90600052602060002090601f0160209004810192826200045257600085556200049e565b82601f106200046d57805160ff19168380011785556200049e565b828001600101855582156200049e579182015b828111156200049d57825182559160200191906001019062000480565b5b509050620004ad9190620004b1565b5090565b5b80821115620004cc576000816000905550600101620004b2565b5090565b600082825260208201905092915050565b7f45524332303a206d696e7420746f20746865207a65726f206164647265737300600082015250565b600062000519601f83620004d0565b91506200052682620004e1565b602082019050919050565b600060208201905081810360008301526200054c816200050a565b9050919050565b6000819050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b6000620005998262000553565b9150620005a68362000553565b9250827fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff03821115620005de57620005dd6200055d565b5b828201905092915050565b620005f48162000553565b82525050565b6000602082019050620006116000830184620005e9565b92915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b600060028204905060018216806200065f57607f821691505b6020821081141562000676576200067562000617565b5b50919050565b613fa4806200068c6000396000f3fe60806040526004361061025c5760003560e01c8063782a360411610144578063c31282f5116100b6578063e7b50a8e1161007a578063e7b50a8e146108f7578063f1834ea414610913578063f2fde38b1461093c578063f35eb3bf14610965578063fb7f87c0146109a2578063fcb848d3146109cb5761025c565b8063c31282f51461080b578063d5abeb0114610836578063d756d4c414610861578063d96a094a1461089e578063dd62ed3e146108ba5761025c565b806397fb84391161010857806397fb8439146106d25780639dbb354a1461070f578063a457c2d71461072b578063a88bfdf614610768578063a9059cbb14610791578063a98f561c146107ce5761025c565b8063782a3604146105ff57806379cc6790146106285780638da5cb5b146106515780639358928b1461067c57806395d89b41146106a75761025c565b8063313ce567116101dd57806344a0d68a116101a157806344a0d68a146105035780635b4cec061461052c57806368a014b2146105575780636f8b44b01461058257806370a08231146105ab578063715018a6146105e85761025c565b8063313ce5671461041e578063323331ca14610449578063395093511461047457806342966c68146104b15780634300f5e1146104da5761025c565b80631826a821116102245780631826a8211461034a5780631b0f84e8146103735780631e5449201461038f57806323b872dd146103b85780632a2a5466146103f55761025c565b806306fdde031461026157806307cff75b1461028c578063095ea7b3146102b757806313faede6146102f457806318160ddd1461031f575b600080fd5b34801561026d57600080fd5b50610276610a08565b6040516102839190612acb565b60405180910390f35b34801561029857600080fd5b506102a1610a9a565b6040516102ae9190612b6c565b60405180910390f35b3480156102c357600080fd5b506102de60048036038101906102d99190612c05565b610ac0565b6040516102eb9190612c60565b60405180910390f35b34801561030057600080fd5b50610309610ae3565b6040516103169190612c8a565b60405180910390f35b34801561032b57600080fd5b50610334610ae9565b6040516103419190612c8a565b60405180910390f35b34801561035657600080fd5b50610371600480360381019061036c9190612cd1565b610af3565b005b61038d60048036038101906103889190612c05565b610b18565b005b34801561039b57600080fd5b506103b660048036038101906103b19190612d63565b610b2f565b005b3480156103c457600080fd5b506103df60048036038101906103da9190612db0565b610c80565b6040516103ec9190612c60565b60405180910390f35b34801561040157600080fd5b5061041c60048036038101906104179190612d63565b610caf565b005b34801561042a57600080fd5b50610433611003565b6040516104409190612e1f565b60405180910390f35b34801561045557600080fd5b5061045e611008565b60405161046b9190612c60565b60405180910390f35b34801561048057600080fd5b5061049b60048036038101906104969190612c05565b61101b565b6040516104a89190612c60565b60405180910390f35b3480156104bd57600080fd5b506104d860048036038101906104d39190612e3a565b611052565b005b3480156104e657600080fd5b5061050160048036038101906104fc9190612e3a565b61107f565b005b34801561050f57600080fd5b5061052a60048036038101906105259190612e3a565b6112cb565b005b34801561053857600080fd5b506105416112dd565b60405161054e9190612c8a565b60405180910390f35b34801561056357600080fd5b5061056c6112e3565b6040516105799190612c60565b60405180910390f35b34801561058e57600080fd5b506105a960048036038101906105a49190612e3a565b6112f6565b005b3480156105b757600080fd5b506105d260048036038101906105cd9190612e67565b611351565b6040516105df9190612c8a565b60405180910390f35b3480156105f457600080fd5b506105fd611399565b005b34801561060b57600080fd5b5061062660048036038101906106219190612cd1565b6113ad565b005b34801561063457600080fd5b5061064f600480360381019061064a9190612c05565b6113d2565b005b34801561065d57600080fd5b506106666113f2565b6040516106739190612ea3565b60405180910390f35b34801561068857600080fd5b5061069161141c565b60405161069e9190612c8a565b60405180910390f35b3480156106b357600080fd5b506106bc6114a5565b6040516106c99190612acb565b60405180910390f35b3480156106de57600080fd5b506106f960048036038101906106f49190612e67565b611537565b6040516107069190612f7c565b60405180910390f35b61072960048036038101906107249190612e3a565b6115ce565b005b34801561073757600080fd5b50610752600480360381019061074d9190612c05565b6115eb565b60405161075f9190612c60565b60405180910390f35b34801561077457600080fd5b5061078f600480360381019061078a9190612c05565b611662565b005b34801561079d57600080fd5b506107b860048036038101906107b39190612c05565b611806565b6040516107c59190612c60565b60405180910390f35b3480156107da57600080fd5b506107f560048036038101906107f09190612e67565b611829565b6040516108029190612c8a565b60405180910390f35b34801561081757600080fd5b5061082061197c565b60405161082d9190612c8a565b60405180910390f35b34801561084257600080fd5b5061084b611982565b6040516108589190612c8a565b60405180910390f35b34801561086d57600080fd5b5061088860048036038101906108839190612e67565b611988565b6040516108959190612c8a565b60405180910390f35b6108b860048036038101906108b39190612e3a565b6119a0565b005b3480156108c657600080fd5b506108e160048036038101906108dc9190612f9e565b611ac8565b6040516108ee9190612c8a565b60405180910390f35b610911600480360381019061090c9190612e3a565b611b4f565b005b34801561091f57600080fd5b5061093a60048036038101906109359190612d63565b611bd8565b005b34801561094857600080fd5b50610963600480360381019061095e9190612e67565b611cd8565b005b34801561097157600080fd5b5061098c60048036038101906109879190612c05565b611d5c565b6040516109999190612c8a565b60405180910390f35b3480156109ae57600080fd5b506109c960048036038101906109c49190612e3a565b611d81565b005b3480156109d757600080fd5b506109f260048036038101906109ed9190612c05565b6120ac565b6040516109ff9190612c8a565b60405180910390f35b606060038054610a179061300d565b80601f0160208091040260200160405190810160405280929190818152602001828054610a439061300d565b8015610a905780601f10610a6557610100808354040283529160200191610a90565b820191906000526020600020905b815481529060010190602001808311610a7357829003601f168201915b5050505050905090565b600660009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b600080610acb6121d0565b9050610ad88185856121d8565b600191505092915050565b60075481565b6000600254905090565b610afb6123a3565b80600b60016101000a81548160ff02191690831515021790555050565b610b206123a3565b610b2b308383612421565b5050565b600b60019054906101000a900460ff1615610b7f576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610b76906130b1565b60405180910390fd5b60005b600183839050610b929190613100565b8111610c7b576000600c60003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000858585818110610bee57610bed613134565b5b905060200201358152602001908152602001600020541415610c45576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610c3c906131af565b60405180910390fd5b610c6833848484818110610c5c57610c5b613134565b5b90506020020135611662565b8080610c73906131cf565b915050610b82565b505050565b600080610c8b6121d0565b9050610c98858285612699565b610ca3858585612421565b60019150509392505050565b600b60009054906101000a900460ff1615610cff576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610cf69061328a565b60405180910390fd5b60005b600183839050610d129190613100565b8111610ffe573373ffffffffffffffffffffffffffffffffffffffff16600660009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16636352211e858585818110610d8057610d7f613134565b5b905060200201356040518263ffffffff1660e01b8152600401610da39190612c8a565b602060405180830381865afa158015610dc0573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610de491906132bf565b73ffffffffffffffffffffffffffffffffffffffff1614610e3a576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610e319061335e565b60405180910390fd5b600660009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166323b872dd3330868686818110610e8d57610e8c613134565b5b905060200201356040518463ffffffff1660e01b8152600401610eb29392919061337e565b600060405180830381600087803b158015610ecc57600080fd5b505af1158015610ee0573d6000803e3d6000fd5b5050505042600c60003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000858585818110610f3957610f38613134565b5b90506020020135815260200190815260200160002081905550600160096000828254610f6591906133b5565b92505081905550600d60003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020838383818110610fbe57610fbd613134565b5b9050602002013590806001815401808255809150506001900390600052602060002001600090919091909150558080610ff6906131cf565b915050610d02565b505050565b600090565b600b60019054906101000a900460ff1681565b6000806110266121d0565b90506110478185856110388589611ac8565b61104291906133b5565b6121d8565b600191505092915050565b61106361105d6121d0565b82612725565b80600860008282546110759190613100565b9250508190555050565b600b60009054906101000a900460ff16156110cf576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016110c69061328a565b60405180910390fd5b6000600c60003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008381526020019081526020016000205414611162576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161115990613457565b60405180910390fd5b600660009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166323b872dd3330846040518463ffffffff1660e01b81526004016111c19392919061337e565b600060405180830381600087803b1580156111db57600080fd5b505af11580156111ef573d6000803e3d6000fd5b5050505042600c60003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008381526020019081526020016000208190555060016009600082825461125b91906133b5565b92505081905550600d60003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002081908060018154018082558091505060019003906000526020600020016000909190919091505550565b6112d36123a3565b8060078190555050565b600a5481565b600b60009054906101000a900460ff1681565b6112fe6123a3565b8061130761141c565b10611347576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161133e906134e9565b60405180910390fd5b8060088190555050565b60008060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020549050919050565b6113a16123a3565b6113ab60006128f3565b565b6113b56123a3565b80600b60006101000a81548160ff02191690831515021790555050565b6113e4826113de6121d0565b83612699565b6113ee8282612725565b5050565b6000600560009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b600061142730611351565b3073ffffffffffffffffffffffffffffffffffffffff166318160ddd6040518163ffffffff1660e01b8152600401602060405180830381865afa158015611472573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611496919061351e565b6114a09190613100565b905090565b6060600480546114b49061300d565b80601f01602080910402602001604051908101604052809291908181526020018280546114e09061300d565b801561152d5780601f106115025761010080835404028352916020019161152d565b820191906000526020600020905b81548152906001019060200180831161151057829003601f168201915b5050505050905090565b6060600d60008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000208054806020026020016040519081016040528092919081815260200182805480156115c257602002820191906000526020600020905b8154815260200190600101908083116115ae575b50505050509050919050565b6115d66123a3565b6115e8306115e26113f2565b83612421565b50565b6000806115f66121d0565b905060006116048286611ac8565b905083811015611649576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611640906135bd565b60405180910390fd5b61165682868684036121d8565b60019250505092915050565b600b60009054906101000a900460ff16156116b2576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016116a99061328a565b60405180910390fd5b6000600c60008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000838152602001908152602001600020541415611746576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161173d90613629565b60405180910390fd5b600061175283836120ac565b1415611793576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161178a90613695565b60405180910390fd5b600061179f83836120ac565b90506117ac308483612421565b42600c60008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600084815260200190815260200160002081905550505050565b6000806118116121d0565b905061181e818585612421565b600191505092915050565b60008061183583611537565b90506000806000805b8451811015611963576000600c60008973ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600087848151811061189d5761189c613134565b5b60200260200101518152602001908152602001600020541461195057600c60008873ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600086838151811061190d5761190c613134565b5b6020026020010151815260200190815260200160002054935083426119329190613100565b9250600a548361194291906136e4565b8261194d91906133b5565b91505b808061195b906131cf565b91505061183e565b506001816119719190613715565b945050505050919050565b60095481565b60085481565b600e6020528060005260406000206000915090505481565b600081116119e3576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016119da906137e1565b60405180910390fd5b806119ed30611351565b11611a2d576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611a2490613873565b60405180910390fd5b600060075482611a3d9190613715565b905080341015611a82576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611a79906138df565b60405180910390fd5b611a8d303384612421565b7f4e08ba899977cf7d4c2964bce71c6b9a7ef76ee5166a4c1249a1e08016e33ef182604051611abc9190612c8a565b60405180910390a15050565b6000600160008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054905092915050565b611b576123a3565b6000611b616113f2565b73ffffffffffffffffffffffffffffffffffffffff1682604051611b8490613930565b60006040518083038185875af1925050503d8060008114611bc1576040519150601f19603f3d011682016040523d82523d6000602084013e611bc6565b606091505b5050905080611bd457600080fd5b5050565b60005b600183839050611beb9190613100565b8111611cd3576000600c60003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000858585818110611c4757611c46613134565b5b905060200201358152602001908152602001600020541415611c9e576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611c95906139b7565b60405180910390fd5b611cc0838383818110611cb457611cb3613134565b5b90506020020135611d81565b8080611ccb906131cf565b915050611bdb565b505050565b611ce06123a3565b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff161415611d50576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611d4790613a49565b60405180910390fd5b611d59816128f3565b50565b600c602052816000526040600020602052806000526040600020600091509150505481565b6000600c60003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000838152602001908152602001600020541415611e15576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611e0c906139b7565b60405180910390fd5b600660009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166323b872dd3033846040518463ffffffff1660e01b8152600401611e749392919061337e565b600060405180830381600087803b158015611e8e57600080fd5b505af1158015611ea2573d6000803e3d6000fd5b505050506000600c60003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600083815260200190815260200160002081905550600160096000828254611f0f9190613100565b925050819055506000600d60003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020905060005b81805490508110156120a65782828281548110611f7c57611f7b613134565b5b906000526020600020015414156120935781805490508110611f9f5750506120a9565b60008190505b60018380549050611fb69190613100565b81101561201b5782600182611fcb91906133b5565b81548110611fdc57611fdb613134565b5b9060005260206000200154838281548110611ffa57611ff9613134565b5b90600052602060002001819055508080612013906131cf565b915050611fa5565b508180548061202d5761202c613a69565b5b6001900381819060005260206000200160009055905581600d60003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000209080546120919291906129c3565b505b808061209e906131cf565b915050611f5c565b50505b50565b600080600c60008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000848152602001908152602001600020541415612141576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161213890613629565b60405180910390fd5b6000600c60008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000848152602001908152602001600020549050600081426121a49190613100565b90506000600a54826121b691906136e4565b90506001816121c59190613715565b935050505092915050565b600033905090565b600073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff161415612248576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161223f90613b0a565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1614156122b8576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016122af90613b9c565b60405180910390fd5b80600160008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055508173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925836040516123969190612c8a565b60405180910390a3505050565b6123ab6121d0565b73ffffffffffffffffffffffffffffffffffffffff166123c96113f2565b73ffffffffffffffffffffffffffffffffffffffff161461241f576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161241690613c08565b60405180910390fd5b565b600073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff161415612491576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161248890613c9a565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161415612501576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016124f890613d2c565b60405180910390fd5b61250c8383836129b9565b60008060008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054905081811015612592576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161258990613dbe565b60405180910390fd5b8181036000808673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002081905550816000808573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600082825401925050819055508273ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef846040516126809190612c8a565b60405180910390a36126938484846129be565b50505050565b60006126a58484611ac8565b90507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff811461271f5781811015612711576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161270890613e2a565b60405180910390fd5b61271e84848484036121d8565b5b50505050565b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161415612795576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161278c90613ebc565b60405180910390fd5b6127a1826000836129b9565b60008060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054905081811015612827576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161281e90613f4e565b60405180910390fd5b8181036000808573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000208190555081600260008282540392505081905550600073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef846040516128da9190612c8a565b60405180910390a36128ee836000846129be565b505050565b6000600560009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905081600560006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b505050565b505050565b828054828255906000526020600020908101928215612a045760005260206000209182015b82811115612a035782548255916001019190600101906129e8565b5b509050612a119190612a15565b5090565b5b80821115612a2e576000816000905550600101612a16565b5090565b600081519050919050565b600082825260208201905092915050565b60005b83811015612a6c578082015181840152602081019050612a51565b83811115612a7b576000848401525b50505050565b6000601f19601f8301169050919050565b6000612a9d82612a32565b612aa78185612a3d565b9350612ab7818560208601612a4e565b612ac081612a81565b840191505092915050565b60006020820190508181036000830152612ae58184612a92565b905092915050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000819050919050565b6000612b32612b2d612b2884612aed565b612b0d565b612aed565b9050919050565b6000612b4482612b17565b9050919050565b6000612b5682612b39565b9050919050565b612b6681612b4b565b82525050565b6000602082019050612b816000830184612b5d565b92915050565b600080fd5b600080fd5b6000612b9c82612aed565b9050919050565b612bac81612b91565b8114612bb757600080fd5b50565b600081359050612bc981612ba3565b92915050565b6000819050919050565b612be281612bcf565b8114612bed57600080fd5b50565b600081359050612bff81612bd9565b92915050565b60008060408385031215612c1c57612c1b612b87565b5b6000612c2a85828601612bba565b9250506020612c3b85828601612bf0565b9150509250929050565b60008115159050919050565b612c5a81612c45565b82525050565b6000602082019050612c756000830184612c51565b92915050565b612c8481612bcf565b82525050565b6000602082019050612c9f6000830184612c7b565b92915050565b612cae81612c45565b8114612cb957600080fd5b50565b600081359050612ccb81612ca5565b92915050565b600060208284031215612ce757612ce6612b87565b5b6000612cf584828501612cbc565b91505092915050565b600080fd5b600080fd5b600080fd5b60008083601f840112612d2357612d22612cfe565b5b8235905067ffffffffffffffff811115612d4057612d3f612d03565b5b602083019150836020820283011115612d5c57612d5b612d08565b5b9250929050565b60008060208385031215612d7a57612d79612b87565b5b600083013567ffffffffffffffff811115612d9857612d97612b8c565b5b612da485828601612d0d565b92509250509250929050565b600080600060608486031215612dc957612dc8612b87565b5b6000612dd786828701612bba565b9350506020612de886828701612bba565b9250506040612df986828701612bf0565b9150509250925092565b600060ff82169050919050565b612e1981612e03565b82525050565b6000602082019050612e346000830184612e10565b92915050565b600060208284031215612e5057612e4f612b87565b5b6000612e5e84828501612bf0565b91505092915050565b600060208284031215612e7d57612e7c612b87565b5b6000612e8b84828501612bba565b91505092915050565b612e9d81612b91565b82525050565b6000602082019050612eb86000830184612e94565b92915050565b600081519050919050565b600082825260208201905092915050565b6000819050602082019050919050565b612ef381612bcf565b82525050565b6000612f058383612eea565b60208301905092915050565b6000602082019050919050565b6000612f2982612ebe565b612f338185612ec9565b9350612f3e83612eda565b8060005b83811015612f6f578151612f568882612ef9565b9750612f6183612f11565b925050600181019050612f42565b5085935050505092915050565b60006020820190508181036000830152612f968184612f1e565b905092915050565b60008060408385031215612fb557612fb4612b87565b5b6000612fc385828601612bba565b9250506020612fd485828601612bba565b9150509250929050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b6000600282049050600182168061302557607f821691505b6020821081141561303957613038612fde565b5b50919050565b7f436f6c6c656374696e6720526577617264732069732063757272656e746c792060008201527f7061757365642e00000000000000000000000000000000000000000000000000602082015250565b600061309b602783612a3d565b91506130a68261303f565b604082019050919050565b600060208201905081810360008301526130ca8161308e565b9050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b600061310b82612bcf565b915061311683612bcf565b925082821015613129576131286130d1565b5b828203905092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b7f4e6f7420616c6c2074686f736520746f6b656e7320617265207374616b65642e600082015250565b6000613199602083612a3d565b91506131a482613163565b602082019050919050565b600060208201905081810360008301526131c88161318c565b9050919050565b60006131da82612bcf565b91507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff82141561320d5761320c6130d1565b5b600182019050919050565b7f5374616b696e67204e4654732069732063757272656e746c792070617573656460008201527f2e00000000000000000000000000000000000000000000000000000000000000602082015250565b6000613274602183612a3d565b915061327f82613218565b604082019050919050565b600060208201905081810360008301526132a381613267565b9050919050565b6000815190506132b981612ba3565b92915050565b6000602082840312156132d5576132d4612b87565b5b60006132e3848285016132aa565b91505092915050565b7f4e6f7420616c6c206f662074686f7365204e4654732061726520696e20796f7560008201527f722063757272656e742077616c6c65742e000000000000000000000000000000602082015250565b6000613348603183612a3d565b9150613353826132ec565b604082019050919050565b600060208201905081810360008301526133778161333b565b9050919050565b60006060820190506133936000830186612e94565b6133a06020830185612e94565b6133ad6040830184612c7b565b949350505050565b60006133c082612bcf565b91506133cb83612bcf565b9250827fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff03821115613400576133ff6130d1565b5b828201905092915050565b7f5468697320746f6b656e20616c7265616479207374616b65642e000000000000600082015250565b6000613441601a83612a3d565b915061344c8261340b565b602082019050919050565b6000602082019050818103600083015261347081613434565b9050919050565b7f43616e7420736574206e657720746f74616c20737570706c79206c657373207460008201527f68616e206f6c6420737570706c792e0000000000000000000000000000000000602082015250565b60006134d3602f83612a3d565b91506134de82613477565b604082019050919050565b60006020820190508181036000830152613502816134c6565b9050919050565b60008151905061351881612bd9565b92915050565b60006020828403121561353457613533612b87565b5b600061354284828501613509565b91505092915050565b7f45524332303a2064656372656173656420616c6c6f77616e63652062656c6f7760008201527f207a65726f000000000000000000000000000000000000000000000000000000602082015250565b60006135a7602583612a3d565b91506135b28261354b565b604082019050919050565b600060208201905081810360008301526135d68161359a565b9050919050565b7f5468697320746f6b656e206e6f74207374616b65642e00000000000000000000600082015250565b6000613613601683612a3d565b915061361e826135dd565b602082019050919050565b6000602082019050818103600083015261364281613606565b9050919050565b7f596f7520646f6e74206861766520656e6f75676820746f20636c61696d2e0000600082015250565b600061367f601e83612a3d565b915061368a82613649565b602082019050919050565b600060208201905081810360008301526136ae81613672565b9050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b60006136ef82612bcf565b91506136fa83612bcf565b92508261370a576137096136b5565b5b828204905092915050565b600061372082612bcf565b915061372b83612bcf565b9250817fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0483118215151615613764576137636130d1565b5b828202905092915050565b7f5175616e74697479206e6565647320746f20626520677265617465722074686160008201527f6e20310000000000000000000000000000000000000000000000000000000000602082015250565b60006137cb602383612a3d565b91506137d68261376f565b604082019050919050565b600060208201905081810360008301526137fa816137be565b9050919050565b7f4e6f7420656e6f756768206c65667420696e20636f6e747261637420746f206260008201527f75792e2e00000000000000000000000000000000000000000000000000000000602082015250565b600061385d602483612a3d565b915061386882613801565b604082019050919050565b6000602082019050818103600083015261388c81613850565b9050919050565b7f446964206e6f742073656e6420656e6f75676820455448000000000000000000600082015250565b60006138c9601783612a3d565b91506138d482613893565b602082019050919050565b600060208201905081810360008301526138f8816138bc565b9050919050565b600081905092915050565b50565b600061391a6000836138ff565b91506139258261390a565b600082019050919050565b600061393b8261390d565b9150819050919050565b7f43616e7420556e7374616b6520736f6d657468696e6720796f7572206e6f742060008201527f7374616b696e672e000000000000000000000000000000000000000000000000602082015250565b60006139a1602883612a3d565b91506139ac82613945565b604082019050919050565b600060208201905081810360008301526139d081613994565b9050919050565b7f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160008201527f6464726573730000000000000000000000000000000000000000000000000000602082015250565b6000613a33602683612a3d565b9150613a3e826139d7565b604082019050919050565b60006020820190508181036000830152613a6281613a26565b9050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603160045260246000fd5b7f45524332303a20617070726f76652066726f6d20746865207a65726f2061646460008201527f7265737300000000000000000000000000000000000000000000000000000000602082015250565b6000613af4602483612a3d565b9150613aff82613a98565b604082019050919050565b60006020820190508181036000830152613b2381613ae7565b9050919050565b7f45524332303a20617070726f766520746f20746865207a65726f20616464726560008201527f7373000000000000000000000000000000000000000000000000000000000000602082015250565b6000613b86602283612a3d565b9150613b9182613b2a565b604082019050919050565b60006020820190508181036000830152613bb581613b79565b9050919050565b7f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572600082015250565b6000613bf2602083612a3d565b9150613bfd82613bbc565b602082019050919050565b60006020820190508181036000830152613c2181613be5565b9050919050565b7f45524332303a207472616e736665722066726f6d20746865207a65726f20616460008201527f6472657373000000000000000000000000000000000000000000000000000000602082015250565b6000613c84602583612a3d565b9150613c8f82613c28565b604082019050919050565b60006020820190508181036000830152613cb381613c77565b9050919050565b7f45524332303a207472616e7366657220746f20746865207a65726f206164647260008201527f6573730000000000000000000000000000000000000000000000000000000000602082015250565b6000613d16602383612a3d565b9150613d2182613cba565b604082019050919050565b60006020820190508181036000830152613d4581613d09565b9050919050565b7f45524332303a207472616e7366657220616d6f756e742065786365656473206260008201527f616c616e63650000000000000000000000000000000000000000000000000000602082015250565b6000613da8602683612a3d565b9150613db382613d4c565b604082019050919050565b60006020820190508181036000830152613dd781613d9b565b9050919050565b7f45524332303a20696e73756666696369656e7420616c6c6f77616e6365000000600082015250565b6000613e14601d83612a3d565b9150613e1f82613dde565b602082019050919050565b60006020820190508181036000830152613e4381613e07565b9050919050565b7f45524332303a206275726e2066726f6d20746865207a65726f2061646472657360008201527f7300000000000000000000000000000000000000000000000000000000000000602082015250565b6000613ea6602183612a3d565b9150613eb182613e4a565b604082019050919050565b60006020820190508181036000830152613ed581613e99565b9050919050565b7f45524332303a206275726e20616d6f756e7420657863656564732062616c616e60008201527f6365000000000000000000000000000000000000000000000000000000000000602082015250565b6000613f38602283612a3d565b9150613f4382613edc565b604082019050919050565b60006020820190508181036000830152613f6781613f2b565b905091905056fea26469706673582212205e0b03af07406946e3e435324d63db3042c9fc9155d56e05988f0ce67181f66264736f6c634300080b0033
Deployed Bytecode
0x60806040526004361061025c5760003560e01c8063782a360411610144578063c31282f5116100b6578063e7b50a8e1161007a578063e7b50a8e146108f7578063f1834ea414610913578063f2fde38b1461093c578063f35eb3bf14610965578063fb7f87c0146109a2578063fcb848d3146109cb5761025c565b8063c31282f51461080b578063d5abeb0114610836578063d756d4c414610861578063d96a094a1461089e578063dd62ed3e146108ba5761025c565b806397fb84391161010857806397fb8439146106d25780639dbb354a1461070f578063a457c2d71461072b578063a88bfdf614610768578063a9059cbb14610791578063a98f561c146107ce5761025c565b8063782a3604146105ff57806379cc6790146106285780638da5cb5b146106515780639358928b1461067c57806395d89b41146106a75761025c565b8063313ce567116101dd57806344a0d68a116101a157806344a0d68a146105035780635b4cec061461052c57806368a014b2146105575780636f8b44b01461058257806370a08231146105ab578063715018a6146105e85761025c565b8063313ce5671461041e578063323331ca14610449578063395093511461047457806342966c68146104b15780634300f5e1146104da5761025c565b80631826a821116102245780631826a8211461034a5780631b0f84e8146103735780631e5449201461038f57806323b872dd146103b85780632a2a5466146103f55761025c565b806306fdde031461026157806307cff75b1461028c578063095ea7b3146102b757806313faede6146102f457806318160ddd1461031f575b600080fd5b34801561026d57600080fd5b50610276610a08565b6040516102839190612acb565b60405180910390f35b34801561029857600080fd5b506102a1610a9a565b6040516102ae9190612b6c565b60405180910390f35b3480156102c357600080fd5b506102de60048036038101906102d99190612c05565b610ac0565b6040516102eb9190612c60565b60405180910390f35b34801561030057600080fd5b50610309610ae3565b6040516103169190612c8a565b60405180910390f35b34801561032b57600080fd5b50610334610ae9565b6040516103419190612c8a565b60405180910390f35b34801561035657600080fd5b50610371600480360381019061036c9190612cd1565b610af3565b005b61038d60048036038101906103889190612c05565b610b18565b005b34801561039b57600080fd5b506103b660048036038101906103b19190612d63565b610b2f565b005b3480156103c457600080fd5b506103df60048036038101906103da9190612db0565b610c80565b6040516103ec9190612c60565b60405180910390f35b34801561040157600080fd5b5061041c60048036038101906104179190612d63565b610caf565b005b34801561042a57600080fd5b50610433611003565b6040516104409190612e1f565b60405180910390f35b34801561045557600080fd5b5061045e611008565b60405161046b9190612c60565b60405180910390f35b34801561048057600080fd5b5061049b60048036038101906104969190612c05565b61101b565b6040516104a89190612c60565b60405180910390f35b3480156104bd57600080fd5b506104d860048036038101906104d39190612e3a565b611052565b005b3480156104e657600080fd5b5061050160048036038101906104fc9190612e3a565b61107f565b005b34801561050f57600080fd5b5061052a60048036038101906105259190612e3a565b6112cb565b005b34801561053857600080fd5b506105416112dd565b60405161054e9190612c8a565b60405180910390f35b34801561056357600080fd5b5061056c6112e3565b6040516105799190612c60565b60405180910390f35b34801561058e57600080fd5b506105a960048036038101906105a49190612e3a565b6112f6565b005b3480156105b757600080fd5b506105d260048036038101906105cd9190612e67565b611351565b6040516105df9190612c8a565b60405180910390f35b3480156105f457600080fd5b506105fd611399565b005b34801561060b57600080fd5b5061062660048036038101906106219190612cd1565b6113ad565b005b34801561063457600080fd5b5061064f600480360381019061064a9190612c05565b6113d2565b005b34801561065d57600080fd5b506106666113f2565b6040516106739190612ea3565b60405180910390f35b34801561068857600080fd5b5061069161141c565b60405161069e9190612c8a565b60405180910390f35b3480156106b357600080fd5b506106bc6114a5565b6040516106c99190612acb565b60405180910390f35b3480156106de57600080fd5b506106f960048036038101906106f49190612e67565b611537565b6040516107069190612f7c565b60405180910390f35b61072960048036038101906107249190612e3a565b6115ce565b005b34801561073757600080fd5b50610752600480360381019061074d9190612c05565b6115eb565b60405161075f9190612c60565b60405180910390f35b34801561077457600080fd5b5061078f600480360381019061078a9190612c05565b611662565b005b34801561079d57600080fd5b506107b860048036038101906107b39190612c05565b611806565b6040516107c59190612c60565b60405180910390f35b3480156107da57600080fd5b506107f560048036038101906107f09190612e67565b611829565b6040516108029190612c8a565b60405180910390f35b34801561081757600080fd5b5061082061197c565b60405161082d9190612c8a565b60405180910390f35b34801561084257600080fd5b5061084b611982565b6040516108589190612c8a565b60405180910390f35b34801561086d57600080fd5b5061088860048036038101906108839190612e67565b611988565b6040516108959190612c8a565b60405180910390f35b6108b860048036038101906108b39190612e3a565b6119a0565b005b3480156108c657600080fd5b506108e160048036038101906108dc9190612f9e565b611ac8565b6040516108ee9190612c8a565b60405180910390f35b610911600480360381019061090c9190612e3a565b611b4f565b005b34801561091f57600080fd5b5061093a60048036038101906109359190612d63565b611bd8565b005b34801561094857600080fd5b50610963600480360381019061095e9190612e67565b611cd8565b005b34801561097157600080fd5b5061098c60048036038101906109879190612c05565b611d5c565b6040516109999190612c8a565b60405180910390f35b3480156109ae57600080fd5b506109c960048036038101906109c49190612e3a565b611d81565b005b3480156109d757600080fd5b506109f260048036038101906109ed9190612c05565b6120ac565b6040516109ff9190612c8a565b60405180910390f35b606060038054610a179061300d565b80601f0160208091040260200160405190810160405280929190818152602001828054610a439061300d565b8015610a905780601f10610a6557610100808354040283529160200191610a90565b820191906000526020600020905b815481529060010190602001808311610a7357829003601f168201915b5050505050905090565b600660009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b600080610acb6121d0565b9050610ad88185856121d8565b600191505092915050565b60075481565b6000600254905090565b610afb6123a3565b80600b60016101000a81548160ff02191690831515021790555050565b610b206123a3565b610b2b308383612421565b5050565b600b60019054906101000a900460ff1615610b7f576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610b76906130b1565b60405180910390fd5b60005b600183839050610b929190613100565b8111610c7b576000600c60003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000858585818110610bee57610bed613134565b5b905060200201358152602001908152602001600020541415610c45576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610c3c906131af565b60405180910390fd5b610c6833848484818110610c5c57610c5b613134565b5b90506020020135611662565b8080610c73906131cf565b915050610b82565b505050565b600080610c8b6121d0565b9050610c98858285612699565b610ca3858585612421565b60019150509392505050565b600b60009054906101000a900460ff1615610cff576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610cf69061328a565b60405180910390fd5b60005b600183839050610d129190613100565b8111610ffe573373ffffffffffffffffffffffffffffffffffffffff16600660009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16636352211e858585818110610d8057610d7f613134565b5b905060200201356040518263ffffffff1660e01b8152600401610da39190612c8a565b602060405180830381865afa158015610dc0573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610de491906132bf565b73ffffffffffffffffffffffffffffffffffffffff1614610e3a576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610e319061335e565b60405180910390fd5b600660009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166323b872dd3330868686818110610e8d57610e8c613134565b5b905060200201356040518463ffffffff1660e01b8152600401610eb29392919061337e565b600060405180830381600087803b158015610ecc57600080fd5b505af1158015610ee0573d6000803e3d6000fd5b5050505042600c60003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000858585818110610f3957610f38613134565b5b90506020020135815260200190815260200160002081905550600160096000828254610f6591906133b5565b92505081905550600d60003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020838383818110610fbe57610fbd613134565b5b9050602002013590806001815401808255809150506001900390600052602060002001600090919091909150558080610ff6906131cf565b915050610d02565b505050565b600090565b600b60019054906101000a900460ff1681565b6000806110266121d0565b90506110478185856110388589611ac8565b61104291906133b5565b6121d8565b600191505092915050565b61106361105d6121d0565b82612725565b80600860008282546110759190613100565b9250508190555050565b600b60009054906101000a900460ff16156110cf576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016110c69061328a565b60405180910390fd5b6000600c60003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008381526020019081526020016000205414611162576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161115990613457565b60405180910390fd5b600660009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166323b872dd3330846040518463ffffffff1660e01b81526004016111c19392919061337e565b600060405180830381600087803b1580156111db57600080fd5b505af11580156111ef573d6000803e3d6000fd5b5050505042600c60003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008381526020019081526020016000208190555060016009600082825461125b91906133b5565b92505081905550600d60003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002081908060018154018082558091505060019003906000526020600020016000909190919091505550565b6112d36123a3565b8060078190555050565b600a5481565b600b60009054906101000a900460ff1681565b6112fe6123a3565b8061130761141c565b10611347576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161133e906134e9565b60405180910390fd5b8060088190555050565b60008060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020549050919050565b6113a16123a3565b6113ab60006128f3565b565b6113b56123a3565b80600b60006101000a81548160ff02191690831515021790555050565b6113e4826113de6121d0565b83612699565b6113ee8282612725565b5050565b6000600560009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b600061142730611351565b3073ffffffffffffffffffffffffffffffffffffffff166318160ddd6040518163ffffffff1660e01b8152600401602060405180830381865afa158015611472573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611496919061351e565b6114a09190613100565b905090565b6060600480546114b49061300d565b80601f01602080910402602001604051908101604052809291908181526020018280546114e09061300d565b801561152d5780601f106115025761010080835404028352916020019161152d565b820191906000526020600020905b81548152906001019060200180831161151057829003601f168201915b5050505050905090565b6060600d60008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000208054806020026020016040519081016040528092919081815260200182805480156115c257602002820191906000526020600020905b8154815260200190600101908083116115ae575b50505050509050919050565b6115d66123a3565b6115e8306115e26113f2565b83612421565b50565b6000806115f66121d0565b905060006116048286611ac8565b905083811015611649576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611640906135bd565b60405180910390fd5b61165682868684036121d8565b60019250505092915050565b600b60009054906101000a900460ff16156116b2576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016116a99061328a565b60405180910390fd5b6000600c60008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000838152602001908152602001600020541415611746576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161173d90613629565b60405180910390fd5b600061175283836120ac565b1415611793576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161178a90613695565b60405180910390fd5b600061179f83836120ac565b90506117ac308483612421565b42600c60008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600084815260200190815260200160002081905550505050565b6000806118116121d0565b905061181e818585612421565b600191505092915050565b60008061183583611537565b90506000806000805b8451811015611963576000600c60008973ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600087848151811061189d5761189c613134565b5b60200260200101518152602001908152602001600020541461195057600c60008873ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600086838151811061190d5761190c613134565b5b6020026020010151815260200190815260200160002054935083426119329190613100565b9250600a548361194291906136e4565b8261194d91906133b5565b91505b808061195b906131cf565b91505061183e565b506001816119719190613715565b945050505050919050565b60095481565b60085481565b600e6020528060005260406000206000915090505481565b600081116119e3576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016119da906137e1565b60405180910390fd5b806119ed30611351565b11611a2d576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611a2490613873565b60405180910390fd5b600060075482611a3d9190613715565b905080341015611a82576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611a79906138df565b60405180910390fd5b611a8d303384612421565b7f4e08ba899977cf7d4c2964bce71c6b9a7ef76ee5166a4c1249a1e08016e33ef182604051611abc9190612c8a565b60405180910390a15050565b6000600160008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054905092915050565b611b576123a3565b6000611b616113f2565b73ffffffffffffffffffffffffffffffffffffffff1682604051611b8490613930565b60006040518083038185875af1925050503d8060008114611bc1576040519150601f19603f3d011682016040523d82523d6000602084013e611bc6565b606091505b5050905080611bd457600080fd5b5050565b60005b600183839050611beb9190613100565b8111611cd3576000600c60003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000858585818110611c4757611c46613134565b5b905060200201358152602001908152602001600020541415611c9e576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611c95906139b7565b60405180910390fd5b611cc0838383818110611cb457611cb3613134565b5b90506020020135611d81565b8080611ccb906131cf565b915050611bdb565b505050565b611ce06123a3565b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff161415611d50576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611d4790613a49565b60405180910390fd5b611d59816128f3565b50565b600c602052816000526040600020602052806000526040600020600091509150505481565b6000600c60003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000838152602001908152602001600020541415611e15576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611e0c906139b7565b60405180910390fd5b600660009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166323b872dd3033846040518463ffffffff1660e01b8152600401611e749392919061337e565b600060405180830381600087803b158015611e8e57600080fd5b505af1158015611ea2573d6000803e3d6000fd5b505050506000600c60003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600083815260200190815260200160002081905550600160096000828254611f0f9190613100565b925050819055506000600d60003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020905060005b81805490508110156120a65782828281548110611f7c57611f7b613134565b5b906000526020600020015414156120935781805490508110611f9f5750506120a9565b60008190505b60018380549050611fb69190613100565b81101561201b5782600182611fcb91906133b5565b81548110611fdc57611fdb613134565b5b9060005260206000200154838281548110611ffa57611ff9613134565b5b90600052602060002001819055508080612013906131cf565b915050611fa5565b508180548061202d5761202c613a69565b5b6001900381819060005260206000200160009055905581600d60003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000209080546120919291906129c3565b505b808061209e906131cf565b915050611f5c565b50505b50565b600080600c60008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000848152602001908152602001600020541415612141576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161213890613629565b60405180910390fd5b6000600c60008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000848152602001908152602001600020549050600081426121a49190613100565b90506000600a54826121b691906136e4565b90506001816121c59190613715565b935050505092915050565b600033905090565b600073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff161415612248576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161223f90613b0a565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1614156122b8576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016122af90613b9c565b60405180910390fd5b80600160008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055508173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925836040516123969190612c8a565b60405180910390a3505050565b6123ab6121d0565b73ffffffffffffffffffffffffffffffffffffffff166123c96113f2565b73ffffffffffffffffffffffffffffffffffffffff161461241f576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161241690613c08565b60405180910390fd5b565b600073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff161415612491576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161248890613c9a565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161415612501576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016124f890613d2c565b60405180910390fd5b61250c8383836129b9565b60008060008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054905081811015612592576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161258990613dbe565b60405180910390fd5b8181036000808673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002081905550816000808573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600082825401925050819055508273ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef846040516126809190612c8a565b60405180910390a36126938484846129be565b50505050565b60006126a58484611ac8565b90507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff811461271f5781811015612711576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161270890613e2a565b60405180910390fd5b61271e84848484036121d8565b5b50505050565b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161415612795576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161278c90613ebc565b60405180910390fd5b6127a1826000836129b9565b60008060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054905081811015612827576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161281e90613f4e565b60405180910390fd5b8181036000808573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000208190555081600260008282540392505081905550600073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef846040516128da9190612c8a565b60405180910390a36128ee836000846129be565b505050565b6000600560009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905081600560006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b505050565b505050565b828054828255906000526020600020908101928215612a045760005260206000209182015b82811115612a035782548255916001019190600101906129e8565b5b509050612a119190612a15565b5090565b5b80821115612a2e576000816000905550600101612a16565b5090565b600081519050919050565b600082825260208201905092915050565b60005b83811015612a6c578082015181840152602081019050612a51565b83811115612a7b576000848401525b50505050565b6000601f19601f8301169050919050565b6000612a9d82612a32565b612aa78185612a3d565b9350612ab7818560208601612a4e565b612ac081612a81565b840191505092915050565b60006020820190508181036000830152612ae58184612a92565b905092915050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000819050919050565b6000612b32612b2d612b2884612aed565b612b0d565b612aed565b9050919050565b6000612b4482612b17565b9050919050565b6000612b5682612b39565b9050919050565b612b6681612b4b565b82525050565b6000602082019050612b816000830184612b5d565b92915050565b600080fd5b600080fd5b6000612b9c82612aed565b9050919050565b612bac81612b91565b8114612bb757600080fd5b50565b600081359050612bc981612ba3565b92915050565b6000819050919050565b612be281612bcf565b8114612bed57600080fd5b50565b600081359050612bff81612bd9565b92915050565b60008060408385031215612c1c57612c1b612b87565b5b6000612c2a85828601612bba565b9250506020612c3b85828601612bf0565b9150509250929050565b60008115159050919050565b612c5a81612c45565b82525050565b6000602082019050612c756000830184612c51565b92915050565b612c8481612bcf565b82525050565b6000602082019050612c9f6000830184612c7b565b92915050565b612cae81612c45565b8114612cb957600080fd5b50565b600081359050612ccb81612ca5565b92915050565b600060208284031215612ce757612ce6612b87565b5b6000612cf584828501612cbc565b91505092915050565b600080fd5b600080fd5b600080fd5b60008083601f840112612d2357612d22612cfe565b5b8235905067ffffffffffffffff811115612d4057612d3f612d03565b5b602083019150836020820283011115612d5c57612d5b612d08565b5b9250929050565b60008060208385031215612d7a57612d79612b87565b5b600083013567ffffffffffffffff811115612d9857612d97612b8c565b5b612da485828601612d0d565b92509250509250929050565b600080600060608486031215612dc957612dc8612b87565b5b6000612dd786828701612bba565b9350506020612de886828701612bba565b9250506040612df986828701612bf0565b9150509250925092565b600060ff82169050919050565b612e1981612e03565b82525050565b6000602082019050612e346000830184612e10565b92915050565b600060208284031215612e5057612e4f612b87565b5b6000612e5e84828501612bf0565b91505092915050565b600060208284031215612e7d57612e7c612b87565b5b6000612e8b84828501612bba565b91505092915050565b612e9d81612b91565b82525050565b6000602082019050612eb86000830184612e94565b92915050565b600081519050919050565b600082825260208201905092915050565b6000819050602082019050919050565b612ef381612bcf565b82525050565b6000612f058383612eea565b60208301905092915050565b6000602082019050919050565b6000612f2982612ebe565b612f338185612ec9565b9350612f3e83612eda565b8060005b83811015612f6f578151612f568882612ef9565b9750612f6183612f11565b925050600181019050612f42565b5085935050505092915050565b60006020820190508181036000830152612f968184612f1e565b905092915050565b60008060408385031215612fb557612fb4612b87565b5b6000612fc385828601612bba565b9250506020612fd485828601612bba565b9150509250929050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b6000600282049050600182168061302557607f821691505b6020821081141561303957613038612fde565b5b50919050565b7f436f6c6c656374696e6720526577617264732069732063757272656e746c792060008201527f7061757365642e00000000000000000000000000000000000000000000000000602082015250565b600061309b602783612a3d565b91506130a68261303f565b604082019050919050565b600060208201905081810360008301526130ca8161308e565b9050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b600061310b82612bcf565b915061311683612bcf565b925082821015613129576131286130d1565b5b828203905092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b7f4e6f7420616c6c2074686f736520746f6b656e7320617265207374616b65642e600082015250565b6000613199602083612a3d565b91506131a482613163565b602082019050919050565b600060208201905081810360008301526131c88161318c565b9050919050565b60006131da82612bcf565b91507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff82141561320d5761320c6130d1565b5b600182019050919050565b7f5374616b696e67204e4654732069732063757272656e746c792070617573656460008201527f2e00000000000000000000000000000000000000000000000000000000000000602082015250565b6000613274602183612a3d565b915061327f82613218565b604082019050919050565b600060208201905081810360008301526132a381613267565b9050919050565b6000815190506132b981612ba3565b92915050565b6000602082840312156132d5576132d4612b87565b5b60006132e3848285016132aa565b91505092915050565b7f4e6f7420616c6c206f662074686f7365204e4654732061726520696e20796f7560008201527f722063757272656e742077616c6c65742e000000000000000000000000000000602082015250565b6000613348603183612a3d565b9150613353826132ec565b604082019050919050565b600060208201905081810360008301526133778161333b565b9050919050565b60006060820190506133936000830186612e94565b6133a06020830185612e94565b6133ad6040830184612c7b565b949350505050565b60006133c082612bcf565b91506133cb83612bcf565b9250827fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff03821115613400576133ff6130d1565b5b828201905092915050565b7f5468697320746f6b656e20616c7265616479207374616b65642e000000000000600082015250565b6000613441601a83612a3d565b915061344c8261340b565b602082019050919050565b6000602082019050818103600083015261347081613434565b9050919050565b7f43616e7420736574206e657720746f74616c20737570706c79206c657373207460008201527f68616e206f6c6420737570706c792e0000000000000000000000000000000000602082015250565b60006134d3602f83612a3d565b91506134de82613477565b604082019050919050565b60006020820190508181036000830152613502816134c6565b9050919050565b60008151905061351881612bd9565b92915050565b60006020828403121561353457613533612b87565b5b600061354284828501613509565b91505092915050565b7f45524332303a2064656372656173656420616c6c6f77616e63652062656c6f7760008201527f207a65726f000000000000000000000000000000000000000000000000000000602082015250565b60006135a7602583612a3d565b91506135b28261354b565b604082019050919050565b600060208201905081810360008301526135d68161359a565b9050919050565b7f5468697320746f6b656e206e6f74207374616b65642e00000000000000000000600082015250565b6000613613601683612a3d565b915061361e826135dd565b602082019050919050565b6000602082019050818103600083015261364281613606565b9050919050565b7f596f7520646f6e74206861766520656e6f75676820746f20636c61696d2e0000600082015250565b600061367f601e83612a3d565b915061368a82613649565b602082019050919050565b600060208201905081810360008301526136ae81613672565b9050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b60006136ef82612bcf565b91506136fa83612bcf565b92508261370a576137096136b5565b5b828204905092915050565b600061372082612bcf565b915061372b83612bcf565b9250817fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0483118215151615613764576137636130d1565b5b828202905092915050565b7f5175616e74697479206e6565647320746f20626520677265617465722074686160008201527f6e20310000000000000000000000000000000000000000000000000000000000602082015250565b60006137cb602383612a3d565b91506137d68261376f565b604082019050919050565b600060208201905081810360008301526137fa816137be565b9050919050565b7f4e6f7420656e6f756768206c65667420696e20636f6e747261637420746f206260008201527f75792e2e00000000000000000000000000000000000000000000000000000000602082015250565b600061385d602483612a3d565b915061386882613801565b604082019050919050565b6000602082019050818103600083015261388c81613850565b9050919050565b7f446964206e6f742073656e6420656e6f75676820455448000000000000000000600082015250565b60006138c9601783612a3d565b91506138d482613893565b602082019050919050565b600060208201905081810360008301526138f8816138bc565b9050919050565b600081905092915050565b50565b600061391a6000836138ff565b91506139258261390a565b600082019050919050565b600061393b8261390d565b9150819050919050565b7f43616e7420556e7374616b6520736f6d657468696e6720796f7572206e6f742060008201527f7374616b696e672e000000000000000000000000000000000000000000000000602082015250565b60006139a1602883612a3d565b91506139ac82613945565b604082019050919050565b600060208201905081810360008301526139d081613994565b9050919050565b7f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160008201527f6464726573730000000000000000000000000000000000000000000000000000602082015250565b6000613a33602683612a3d565b9150613a3e826139d7565b604082019050919050565b60006020820190508181036000830152613a6281613a26565b9050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603160045260246000fd5b7f45524332303a20617070726f76652066726f6d20746865207a65726f2061646460008201527f7265737300000000000000000000000000000000000000000000000000000000602082015250565b6000613af4602483612a3d565b9150613aff82613a98565b604082019050919050565b60006020820190508181036000830152613b2381613ae7565b9050919050565b7f45524332303a20617070726f766520746f20746865207a65726f20616464726560008201527f7373000000000000000000000000000000000000000000000000000000000000602082015250565b6000613b86602283612a3d565b9150613b9182613b2a565b604082019050919050565b60006020820190508181036000830152613bb581613b79565b9050919050565b7f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572600082015250565b6000613bf2602083612a3d565b9150613bfd82613bbc565b602082019050919050565b60006020820190508181036000830152613c2181613be5565b9050919050565b7f45524332303a207472616e736665722066726f6d20746865207a65726f20616460008201527f6472657373000000000000000000000000000000000000000000000000000000602082015250565b6000613c84602583612a3d565b9150613c8f82613c28565b604082019050919050565b60006020820190508181036000830152613cb381613c77565b9050919050565b7f45524332303a207472616e7366657220746f20746865207a65726f206164647260008201527f6573730000000000000000000000000000000000000000000000000000000000602082015250565b6000613d16602383612a3d565b9150613d2182613cba565b604082019050919050565b60006020820190508181036000830152613d4581613d09565b9050919050565b7f45524332303a207472616e7366657220616d6f756e742065786365656473206260008201527f616c616e63650000000000000000000000000000000000000000000000000000602082015250565b6000613da8602683612a3d565b9150613db382613d4c565b604082019050919050565b60006020820190508181036000830152613dd781613d9b565b9050919050565b7f45524332303a20696e73756666696369656e7420616c6c6f77616e6365000000600082015250565b6000613e14601d83612a3d565b9150613e1f82613dde565b602082019050919050565b60006020820190508181036000830152613e4381613e07565b9050919050565b7f45524332303a206275726e2066726f6d20746865207a65726f2061646472657360008201527f7300000000000000000000000000000000000000000000000000000000000000602082015250565b6000613ea6602183612a3d565b9150613eb182613e4a565b604082019050919050565b60006020820190508181036000830152613ed581613e99565b9050919050565b7f45524332303a206275726e20616d6f756e7420657863656564732062616c616e60008201527f6365000000000000000000000000000000000000000000000000000000000000602082015250565b6000613f38602283612a3d565b9150613f4382613edc565b604082019050919050565b60006020820190508181036000830152613f6781613f2b565b905091905056fea26469706673582212205e0b03af07406946e3e435324d63db3042c9fc9155d56e05988f0ce67181f66264736f6c634300080b0033
Deployed Bytecode Sourcemap
146929:7635:0:-:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;90875:100;;;;;;;;;;;;;:::i;:::-;;;;;;;:::i;:::-;;;;;;;;147012:27;;;;;;;;;;;;;:::i;:::-;;;;;;;:::i;:::-;;;;;;;;93226:201;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;:::i;:::-;;;;;;;:::i;:::-;;;;;;;;147048:34;;;;;;;;;;;;;:::i;:::-;;;;;;;:::i;:::-;;;;;;;;91995:108;;;;;;;;;;;;;:::i;:::-;;;;;;;:::i;:::-;;;;;;;;148611:109;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;:::i;:::-;;149565:175;;;;;;;;;;;;;:::i;:::-;;:::i;:::-;;152827:496;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;:::i;:::-;;94007:295;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;:::i;:::-;;;;;;;:::i;:::-;;;;;;;;150473:637;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;:::i;:::-;;148029:92;;;;;;;;;;;;;:::i;:::-;;;;;;;:::i;:::-;;;;;;;;147287:43;;;;;;;;;;;;;:::i;:::-;;;;;;;:::i;:::-;;;;;;;;94711:238;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;:::i;:::-;;;;;;;:::i;:::-;;;;;;;;149842:133;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;:::i;:::-;;149983:482;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;:::i;:::-;;149748:86;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;:::i;:::-;;147201:34;;;;;;;;;;;;;:::i;:::-;;;;;;;:::i;:::-;;;;;;;;147244:36;;;;;;;;;;;;;:::i;:::-;;;;;;;:::i;:::-;;;;;;;;148269:231;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;:::i;:::-;;92166:127;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;:::i;:::-;;;;;;;:::i;:::-;;;;;;;;85259:103;;;;;;;;;;;;;:::i;:::-;;148508:95;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;:::i;:::-;;103056:164;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;:::i;:::-;;84611:87;;;;;;;;;;;;;:::i;:::-;;;;;;;:::i;:::-;;;;;;;;148129:132;;;;;;;;;;;;;:::i;:::-;;;;;;;:::i;:::-;;;;;;;;91094:104;;;;;;;;;;;;;:::i;:::-;;;;;;;:::i;:::-;;;;;;;;147851:170;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;:::i;:::-;;;;;;;:::i;:::-;;;;;;;;149388:169;;;;;;;;;;;;;:::i;:::-;;:::i;:::-;;95452:436;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;:::i;:::-;;;;;;;:::i;:::-;;;;;;;;152220:599;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;:::i;:::-;;92499:193;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;:::i;:::-;;;;;;;:::i;:::-;;;;;;;;151118:625;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;:::i;:::-;;;;;;;:::i;:::-;;;;;;;;147165:29;;;;;;;;;;;;;:::i;:::-;;;;;;;:::i;:::-;;;;;;;;147124:34;;;;;;;;;;;;;:::i;:::-;;;;;;;:::i;:::-;;;;;;;;147481:47;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;:::i;:::-;;;;;;;:::i;:::-;;;;;;;;148728:473;;;;;;;;;;;;;:::i;:::-;;:::i;:::-;;92755:151;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;:::i;:::-;;;;;;;:::i;:::-;;;;;;;;149209:171;;;;;;;;;;;;;:::i;:::-;;:::i;:::-;;154203:358;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;:::i;:::-;;85517:201;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;:::i;:::-;;147337:73;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;:::i;:::-;;;;;;;:::i;:::-;;;;;;;;153331:864;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;:::i;:::-;;151751:461;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;:::i;:::-;;;;;;;:::i;:::-;;;;;;;;90875:100;90929:13;90962:5;90955:12;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;90875:100;:::o;147012:27::-;;;;;;;;;;;;;:::o;93226:201::-;93309:4;93326:13;93342:12;:10;:12::i;:::-;93326:28;;93365:32;93374:5;93381:7;93390:6;93365:8;:32::i;:::-;93415:4;93408:11;;;93226:201;;;;:::o;147048:34::-;;;;:::o;91995:108::-;92056:7;92083:12;;92076:19;;91995:108;:::o;148611:109::-;84497:13;:11;:13::i;:::-;148710:2:::1;148684:23;;:28;;;;;;;;;;;;;;;;;;148611:109:::0;:::o;149565:175::-;84497:13;:11;:13::i;:::-;149693:39:::1;149711:4;149718;149724:7;149693:9;:39::i;:::-;149565:175:::0;;:::o;152827:496::-;152936:23;;;;;;;;;;;152935:24;152913:113;;;;;;;;;;;;:::i;:::-;;;;;;;;;153044:9;153039:275;153079:1;153064:7;;:14;;:16;;;;:::i;:::-;153059:1;:21;153039:275;;153174:1;153128:18;:30;153147:10;153128:30;;;;;;;;;;;;;;;:42;153159:7;;153167:1;153159:10;;;;;;;:::i;:::-;;;;;;;;153128:42;;;;;;;;;;;;:47;;153102:141;;;;;;;;;;;;:::i;:::-;;;;;;;;;153254:46;153277:10;153289:7;;153297:1;153289:10;;;;;;;:::i;:::-;;;;;;;;153254:22;:46::i;:::-;153082:3;;;;;:::i;:::-;;;;153039:275;;;;152827:496;;:::o;94007:295::-;94138:4;94155:15;94173:12;:10;:12::i;:::-;94155:30;;94196:38;94212:4;94218:7;94227:6;94196:15;:38::i;:::-;94245:27;94255:4;94261:2;94265:6;94245:9;:27::i;:::-;94290:4;94283:11;;;94007:295;;;;;:::o;150473:637::-;150555:16;;;;;;;;;;;150554:17;150546:63;;;;;;;;;;;;:::i;:::-;;;;;;;;;150625:9;150620:483;150662:1;150645:7;;:14;;:18;;;;:::i;:::-;150640:1;:23;150620:483;;150747:10;150711:46;;:12;;;;;;;;;;;:20;;;150732:7;;150740:1;150732:10;;;;;;;:::i;:::-;;;;;;;;150711:32;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;:46;;;150685:157;;;;;;;;;;;;:::i;:::-;;;;;;;;;150859:12;;;;;;;;;;;:25;;;150885:10;150905:4;150912:7;;150920:1;150912:10;;;;;;;:::i;:::-;;;;;;;;150859:64;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;150983:15;150938:18;:30;150957:10;150938:30;;;;;;;;;;;;;;;:42;150969:7;;150977:1;150969:10;;;;;;;:::i;:::-;;;;;;;;150938:42;;;;;;;;;;;:60;;;;151027:1;151013:10;;:15;;;;;;;:::i;:::-;;;;;;;;151043:19;:31;151063:10;151043:31;;;;;;;;;;;;;;;151080:7;;151088:1;151080:10;;;;;;;:::i;:::-;;;;;;;;151043:48;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;150665:3;;;;;:::i;:::-;;;;150620:483;;;;150473:637;;:::o;148029:92::-;148087:5;148029:92;:::o;147287:43::-;;;;;;;;;;;;;:::o;94711:238::-;94799:4;94816:13;94832:12;:10;:12::i;:::-;94816:28;;94855:64;94864:5;94871:7;94908:10;94880:25;94890:5;94897:7;94880:9;:25::i;:::-;:38;;;;:::i;:::-;94855:8;:64::i;:::-;94937:4;94930:11;;;94711:238;;;;:::o;149842:133::-;149908:28;149914:12;:10;:12::i;:::-;149928:7;149908:5;:28::i;:::-;149960:7;149947:9;;:20;;;;;;;:::i;:::-;;;;;;;;149842:133;:::o;149983:482::-;150046:16;;;;;;;;;;;150045:17;150037:63;;;;;;;;;;;;:::i;:::-;;;;;;;;;150177:1;150133:18;:30;150152:10;150133:30;;;;;;;;;;;;;;;:40;150164:8;150133:40;;;;;;;;;;;;:45;150111:121;;;;;;;;;;;;:::i;:::-;;;;;;;;;150243:12;;;;;;;;;;;:25;;;150269:10;150289:4;150296:8;150243:62;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;150359:15;150316:18;:30;150335:10;150316:30;;;;;;;;;;;;;;;:40;150347:8;150316:40;;;;;;;;;;;:58;;;;150399:1;150385:10;;:15;;;;;;;:::i;:::-;;;;;;;;150411:19;:31;150431:10;150411:31;;;;;;;;;;;;;;;150448:8;150411:46;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;149983:482;:::o;149748:86::-;84497:13;:11;:13::i;:::-;149818:8:::1;149811:4;:15;;;;149748:86:::0;:::o;147201:34::-;;;;:::o;147244:36::-;;;;;;;;;;;;;:::o;148269:231::-;84497:13;:11;:13::i;:::-;148380:7:::1;148358:19;:17;:19::i;:::-;:29;148336:126;;;;;;;;;;;;:::i;:::-;;;;;;;;;148485:7;148473:9;:19;;;;148269:231:::0;:::o;92166:127::-;92240:7;92267:9;:18;92277:7;92267:18;;;;;;;;;;;;;;;;92260:25;;92166:127;;;:::o;85259:103::-;84497:13;:11;:13::i;:::-;85324:30:::1;85351:1;85324:18;:30::i;:::-;85259:103::o:0;148508:95::-;84497:13;:11;:13::i;:::-;148593:2:::1;148574:16;;:21;;;;;;;;;;;;;;;;;;148508:95:::0;:::o;103056:164::-;103133:46;103149:7;103158:12;:10;:12::i;:::-;103172:6;103133:15;:46::i;:::-;103190:22;103196:7;103205:6;103190:5;:22::i;:::-;103056:164;;:::o;84611:87::-;84657:7;84684:6;;;;;;;;;;;84677:13;;84611:87;:::o;148129:132::-;148179:7;148228:24;148246:4;148228:9;:24::i;:::-;148207:4;:16;;;:18;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;:45;;;;:::i;:::-;148199:54;;148129:132;:::o;91094:104::-;91150:13;91183:7;91176:14;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;91094:104;:::o;147851:170::-;147944:16;147985:19;:28;148005:7;147985:28;;;;;;;;;;;;;;;147978:35;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;147851:170;;;:::o;149388:169::-;84497:13;:11;:13::i;:::-;149507:42:::1;149525:4;149532:7;:5;:7::i;:::-;149541;149507:9;:42::i;:::-;149388:169:::0;:::o;95452:436::-;95545:4;95562:13;95578:12;:10;:12::i;:::-;95562:28;;95601:24;95628:25;95638:5;95645:7;95628:9;:25::i;:::-;95601:52;;95692:15;95672:16;:35;;95664:85;;;;;;;;;;;;:::i;:::-;;;;;;;;;95785:60;95794:5;95801:7;95829:15;95810:16;:34;95785:8;:60::i;:::-;95876:4;95869:11;;;;95452:436;;;;:::o;152220:599::-;152312:16;;;;;;;;;;;152311:17;152303:63;;;;;;;;;;;;:::i;:::-;;;;;;;;;152438:1;152399:18;:25;152418:5;152399:25;;;;;;;;;;;;;;;:35;152425:8;152399:35;;;;;;;;;;;;:40;;152377:112;;;;;;;;;;;;:::i;:::-;;;;;;;;;152567:1;152522:41;152547:5;152554:8;152522:24;:41::i;:::-;:46;;152500:126;;;;;;;;;;;;:::i;:::-;;;;;;;;;152639:14;152656:41;152681:5;152688:8;152656:24;:41::i;:::-;152639:58;;152708:39;152726:4;152733:5;152740:6;152708:9;:39::i;:::-;152796:15;152758:18;:25;152777:5;152758:25;;;;;;;;;;;;;;;:35;152784:8;152758:35;;;;;;;;;;;:53;;;;152292:527;152220:599;;:::o;92499:193::-;92578:4;92595:13;92611:12;:10;:12::i;:::-;92595:28;;92634;92644:5;92651:2;92655:6;92634:9;:28::i;:::-;92680:4;92673:11;;;92499:193;;;;:::o;151118:625::-;151218:7;151243:21;151267:25;151286:5;151267:18;:25::i;:::-;151243:49;;151303:15;151333:18;151366:17;151405:9;151400:305;151424:4;:11;151420:1;:15;151400:305;;;151499:1;151461:18;:25;151480:5;151461:25;;;;;;;;;;;;;;;:34;151487:4;151492:1;151487:7;;;;;;;;:::i;:::-;;;;;;;;151461:34;;;;;;;;;;;;:39;151457:237;;151531:18;:25;151550:5;151531:25;;;;;;;;;;;;;;;:34;151557:4;151562:1;151557:7;;;;;;;;:::i;:::-;;;;;;;;151531:34;;;;;;;;;;;;151521:44;;151615:7;151597:15;:25;;;;:::i;:::-;151584:38;;151667:11;;151654:10;:24;;;;:::i;:::-;151641:37;;;;;:::i;:::-;;;151457:237;151437:3;;;;;:::i;:::-;;;;151400:305;;;;151734:1;151722:9;:13;;;;:::i;:::-;151715:20;;;;;;151118:625;;;:::o;147165:29::-;;;;:::o;147124:34::-;;;;:::o;147481:47::-;;;;;;;;;;;;;;;;;:::o;148728:473::-;148806:1;148794:9;:13;148786:61;;;;;;;;;;;;:::i;:::-;;;;;;;;;148907:9;148880:24;148898:4;148880:9;:24::i;:::-;:36;148858:122;;;;;;;;;;;;:::i;:::-;;;;;;;;;148991:20;149026:4;;149014:9;:16;;;;:::i;:::-;148991:39;;149062:12;149049:9;:25;;149041:61;;;;;;;;;;;;:::i;:::-;;;;;;;;;149113:47;149131:4;149138:10;149150:9;149113;:47::i;:::-;149176:17;149183:9;149176:17;;;;;;:::i;:::-;;;;;;;;148775:426;148728:473;:::o;92755:151::-;92844:7;92871:11;:18;92883:5;92871:18;;;;;;;;;;;;;;;:27;92890:7;92871:27;;;;;;;;;;;;;;;;92864:34;;92755:151;;;;:::o;149209:171::-;84497:13;:11;:13::i;:::-;149296:7:::1;149317;:5;:7::i;:::-;149309:21;;149338:7;149309:41;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;149295:55;;;149369:2;149361:11;;;::::0;::::1;;149284:96;149209:171:::0;:::o;154203:358::-;154287:9;154282:270;154324:1;154307:7;;:14;;:18;;;;:::i;:::-;154302:1;:23;154282:270;;154419:1;154373:18;:30;154392:10;154373:30;;;;;;;;;;;;;;;:42;154404:7;;154412:1;154404:10;;;;;;;:::i;:::-;;;;;;;;154373:42;;;;;;;;;;;;:47;;154347:149;;;;;;;;;;;;:::i;:::-;;;;;;;;;154511:27;154527:7;;154535:1;154527:10;;;;;;;:::i;:::-;;;;;;;;154511:15;:27::i;:::-;154327:3;;;;;:::i;:::-;;;;154282:270;;;;154203:358;;:::o;85517:201::-;84497:13;:11;:13::i;:::-;85626:1:::1;85606:22;;:8;:22;;;;85598:73;;;;;;;;;;;;:::i;:::-;;;;;;;;;85682:28;85701:8;85682:18;:28::i;:::-;85517:201:::0;:::o;147337:73::-;;;;;;;;;;;;;;;;;;;;;;;;;;:::o;153331:864::-;153462:1;153416:18;:30;153435:10;153416:30;;;;;;;;;;;;;;;:42;153447:10;153416:42;;;;;;;;;;;;:47;;153394:137;;;;;;;;;;;;:::i;:::-;;;;;;;;;153542:12;;;;;;;;;;;:25;;;153576:4;153583:10;153595;153542:64;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;153662:1;153617:18;:30;153636:10;153617:30;;;;;;;;;;;;;;;:42;153648:10;153617:42;;;;;;;;;;;:46;;;;153688:1;153674:10;;:15;;;;;;;:::i;:::-;;;;;;;;153702:27;153732:19;:31;153752:10;153732:31;;;;;;;;;;;;;;;153702:61;;153779:9;153774:414;153798:9;:16;;;;153794:1;:20;153774:414;;;153856:10;153840:9;153850:1;153840:12;;;;;;;;:::i;:::-;;;;;;;;;;:26;153836:341;;;153896:9;:16;;;;153891:1;:21;153887:34;;153914:7;;;;153887:34;153946:9;153958:1;153946:13;;153941:125;153984:1;153965:9;:16;;;;:20;;;;:::i;:::-;153961:1;:24;153941:125;;;154030:9;154044:1;154040;:5;;;;:::i;:::-;154030:16;;;;;;;;:::i;:::-;;;;;;;;;;154015:9;154025:1;154015:12;;;;;;;;:::i;:::-;;;;;;;;;:31;;;;153987:3;;;;;:::i;:::-;;;;153941:125;;;;154084:9;:15;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;154152:9;154118:19;:31;154138:10;154118:31;;;;;;;;;;;;;;;:43;;;;;;;;:::i;:::-;;153836:341;153816:3;;;;;:::i;:::-;;;;153774:414;;;;153383:812;153331:864;;:::o;151751:461::-;151866:7;151952:1;151913:18;:25;151932:5;151913:25;;;;;;;;;;;;;;;:35;151939:8;151913:35;;;;;;;;;;;;:40;;151891:112;;;;;;;;;;;;:::i;:::-;;;;;;;;;152014:15;152032:18;:25;152051:5;152032:25;;;;;;;;;;;;;;;:35;152058:8;152032:35;;;;;;;;;;;;152014:53;;152078:18;152117:7;152099:15;:25;;;;:::i;:::-;152078:46;;152135:14;152165:11;;152152:10;:24;;;;:::i;:::-;152135:41;;152203:1;152194:6;:10;;;;:::i;:::-;152187:17;;;;;151751:461;;;;:::o;83162:98::-;83215:7;83242:10;83235:17;;83162:98;:::o;99479:380::-;99632:1;99615:19;;:5;:19;;;;99607:68;;;;;;;;;;;;:::i;:::-;;;;;;;;;99713:1;99694:21;;:7;:21;;;;99686:68;;;;;;;;;;;;:::i;:::-;;;;;;;;;99797:6;99767:11;:18;99779:5;99767:18;;;;;;;;;;;;;;;:27;99786:7;99767:27;;;;;;;;;;;;;;;:36;;;;99835:7;99819:32;;99828:5;99819:32;;;99844:6;99819:32;;;;;;:::i;:::-;;;;;;;;99479:380;;;:::o;84776:132::-;84851:12;:10;:12::i;:::-;84840:23;;:7;:5;:7::i;:::-;:23;;;84832:68;;;;;;;;;;;;:::i;:::-;;;;;;;;;84776:132::o;96358:840::-;96505:1;96489:18;;:4;:18;;;;96481:68;;;;;;;;;;;;:::i;:::-;;;;;;;;;96582:1;96568:16;;:2;:16;;;;96560:64;;;;;;;;;;;;:::i;:::-;;;;;;;;;96637:38;96658:4;96664:2;96668:6;96637:20;:38::i;:::-;96688:19;96710:9;:15;96720:4;96710:15;;;;;;;;;;;;;;;;96688:37;;96759:6;96744:11;:21;;96736:72;;;;;;;;;;;;:::i;:::-;;;;;;;;;96876:6;96862:11;:20;96844:9;:15;96854:4;96844:15;;;;;;;;;;;;;;;:38;;;;97079:6;97062:9;:13;97072:2;97062:13;;;;;;;;;;;;;;;;:23;;;;;;;;;;;97129:2;97114:26;;97123:4;97114:26;;;97133:6;97114:26;;;;;;:::i;:::-;;;;;;;;97153:37;97173:4;97179:2;97183:6;97153:19;:37::i;:::-;96470:728;96358:840;;;:::o;100150:453::-;100285:24;100312:25;100322:5;100329:7;100312:9;:25::i;:::-;100285:52;;100372:17;100352:16;:37;100348:248;;100434:6;100414:16;:26;;100406:68;;;;;;;;;;;;:::i;:::-;;;;;;;;;100518:51;100527:5;100534:7;100562:6;100543:16;:25;100518:8;:51::i;:::-;100348:248;100274:329;100150:453;;;:::o;98366:675::-;98469:1;98450:21;;:7;:21;;;;98442:67;;;;;;;;;;;;:::i;:::-;;;;;;;;;98522:49;98543:7;98560:1;98564:6;98522:20;:49::i;:::-;98584:22;98609:9;:18;98619:7;98609:18;;;;;;;;;;;;;;;;98584:43;;98664:6;98646:14;:24;;98638:71;;;;;;;;;;;;:::i;:::-;;;;;;;;;98783:6;98766:14;:23;98745:9;:18;98755:7;98745:18;;;;;;;;;;;;;;;:44;;;;98900:6;98884:12;;:22;;;;;;;;;;;98961:1;98935:37;;98944:7;98935:37;;;98965:6;98935:37;;;;;;:::i;:::-;;;;;;;;98985:48;99005:7;99022:1;99026:6;98985:19;:48::i;:::-;98431:610;98366:675;;:::o;85878:191::-;85952:16;85971:6;;;;;;;;;;;85952:25;;85997:8;85988:6;;:17;;;;;;;;;;;;;;;;;;86052:8;86021:40;;86042:8;86021:40;;;;;;;;;;;;85941:128;85878:191;:::o;101203:125::-;;;;:::o;101932:124::-;;;;:::o;-1:-1:-1:-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;:::o;:::-;;;;;;;;;;;;;;;;;;;;;:::o;7:99:1:-;59:6;93:5;87:12;77:22;;7:99;;;:::o;112:169::-;196:11;230:6;225:3;218:19;270:4;265:3;261:14;246:29;;112:169;;;;:::o;287:307::-;355:1;365:113;379:6;376:1;373:13;365:113;;;464:1;459:3;455:11;449:18;445:1;440:3;436:11;429:39;401:2;398:1;394:10;389:15;;365:113;;;496:6;493:1;490:13;487:101;;;576:1;567:6;562:3;558:16;551:27;487:101;336:258;287:307;;;:::o;600:102::-;641:6;692:2;688:7;683:2;676:5;672:14;668:28;658:38;;600:102;;;:::o;708:364::-;796:3;824:39;857:5;824:39;:::i;:::-;879:71;943:6;938:3;879:71;:::i;:::-;872:78;;959:52;1004:6;999:3;992:4;985:5;981:16;959:52;:::i;:::-;1036:29;1058:6;1036:29;:::i;:::-;1031:3;1027:39;1020:46;;800:272;708:364;;;;:::o;1078:313::-;1191:4;1229:2;1218:9;1214:18;1206:26;;1278:9;1272:4;1268:20;1264:1;1253:9;1249:17;1242:47;1306:78;1379:4;1370:6;1306:78;:::i;:::-;1298:86;;1078:313;;;;:::o;1397:126::-;1434:7;1474:42;1467:5;1463:54;1452:65;;1397:126;;;:::o;1529:60::-;1557:3;1578:5;1571:12;;1529:60;;;:::o;1595:142::-;1645:9;1678:53;1696:34;1705:24;1723:5;1705:24;:::i;:::-;1696:34;:::i;:::-;1678:53;:::i;:::-;1665:66;;1595:142;;;:::o;1743:126::-;1793:9;1826:37;1857:5;1826:37;:::i;:::-;1813:50;;1743:126;;;:::o;1875:142::-;1941:9;1974:37;2005:5;1974:37;:::i;:::-;1961:50;;1875:142;;;:::o;2023:163::-;2126:53;2173:5;2126:53;:::i;:::-;2121:3;2114:66;2023:163;;:::o;2192:254::-;2301:4;2339:2;2328:9;2324:18;2316:26;;2352:87;2436:1;2425:9;2421:17;2412:6;2352:87;:::i;:::-;2192:254;;;;:::o;2533:117::-;2642:1;2639;2632:12;2656:117;2765:1;2762;2755:12;2779:96;2816:7;2845:24;2863:5;2845:24;:::i;:::-;2834:35;;2779:96;;;:::o;2881:122::-;2954:24;2972:5;2954:24;:::i;:::-;2947:5;2944:35;2934:63;;2993:1;2990;2983:12;2934:63;2881:122;:::o;3009:139::-;3055:5;3093:6;3080:20;3071:29;;3109:33;3136:5;3109:33;:::i;:::-;3009:139;;;;:::o;3154:77::-;3191:7;3220:5;3209:16;;3154:77;;;:::o;3237:122::-;3310:24;3328:5;3310:24;:::i;:::-;3303:5;3300:35;3290:63;;3349:1;3346;3339:12;3290:63;3237:122;:::o;3365:139::-;3411:5;3449:6;3436:20;3427:29;;3465:33;3492:5;3465:33;:::i;:::-;3365:139;;;;:::o;3510:474::-;3578:6;3586;3635:2;3623:9;3614:7;3610:23;3606:32;3603:119;;;3641:79;;:::i;:::-;3603:119;3761:1;3786:53;3831:7;3822:6;3811:9;3807:22;3786:53;:::i;:::-;3776:63;;3732:117;3888:2;3914:53;3959:7;3950:6;3939:9;3935:22;3914:53;:::i;:::-;3904:63;;3859:118;3510:474;;;;;:::o;3990:90::-;4024:7;4067:5;4060:13;4053:21;4042:32;;3990:90;;;:::o;4086:109::-;4167:21;4182:5;4167:21;:::i;:::-;4162:3;4155:34;4086:109;;:::o;4201:210::-;4288:4;4326:2;4315:9;4311:18;4303:26;;4339:65;4401:1;4390:9;4386:17;4377:6;4339:65;:::i;:::-;4201:210;;;;:::o;4417:118::-;4504:24;4522:5;4504:24;:::i;:::-;4499:3;4492:37;4417:118;;:::o;4541:222::-;4634:4;4672:2;4661:9;4657:18;4649:26;;4685:71;4753:1;4742:9;4738:17;4729:6;4685:71;:::i;:::-;4541:222;;;;:::o;4769:116::-;4839:21;4854:5;4839:21;:::i;:::-;4832:5;4829:32;4819:60;;4875:1;4872;4865:12;4819:60;4769:116;:::o;4891:133::-;4934:5;4972:6;4959:20;4950:29;;4988:30;5012:5;4988:30;:::i;:::-;4891:133;;;;:::o;5030:323::-;5086:6;5135:2;5123:9;5114:7;5110:23;5106:32;5103:119;;;5141:79;;:::i;:::-;5103:119;5261:1;5286:50;5328:7;5319:6;5308:9;5304:22;5286:50;:::i;:::-;5276:60;;5232:114;5030:323;;;;:::o;5359:117::-;5468:1;5465;5458:12;5482:117;5591:1;5588;5581:12;5605:117;5714:1;5711;5704:12;5745:568;5818:8;5828:6;5878:3;5871:4;5863:6;5859:17;5855:27;5845:122;;5886:79;;:::i;:::-;5845:122;5999:6;5986:20;5976:30;;6029:18;6021:6;6018:30;6015:117;;;6051:79;;:::i;:::-;6015:117;6165:4;6157:6;6153:17;6141:29;;6219:3;6211:4;6203:6;6199:17;6189:8;6185:32;6182:41;6179:128;;;6226:79;;:::i;:::-;6179:128;5745:568;;;;;:::o;6319:559::-;6405:6;6413;6462:2;6450:9;6441:7;6437:23;6433:32;6430:119;;;6468:79;;:::i;:::-;6430:119;6616:1;6605:9;6601:17;6588:31;6646:18;6638:6;6635:30;6632:117;;;6668:79;;:::i;:::-;6632:117;6781:80;6853:7;6844:6;6833:9;6829:22;6781:80;:::i;:::-;6763:98;;;;6559:312;6319:559;;;;;:::o;6884:619::-;6961:6;6969;6977;7026:2;7014:9;7005:7;7001:23;6997:32;6994:119;;;7032:79;;:::i;:::-;6994:119;7152:1;7177:53;7222:7;7213:6;7202:9;7198:22;7177:53;:::i;:::-;7167:63;;7123:117;7279:2;7305:53;7350:7;7341:6;7330:9;7326:22;7305:53;:::i;:::-;7295:63;;7250:118;7407:2;7433:53;7478:7;7469:6;7458:9;7454:22;7433:53;:::i;:::-;7423:63;;7378:118;6884:619;;;;;:::o;7509:86::-;7544:7;7584:4;7577:5;7573:16;7562:27;;7509:86;;;:::o;7601:112::-;7684:22;7700:5;7684:22;:::i;:::-;7679:3;7672:35;7601:112;;:::o;7719:214::-;7808:4;7846:2;7835:9;7831:18;7823:26;;7859:67;7923:1;7912:9;7908:17;7899:6;7859:67;:::i;:::-;7719:214;;;;:::o;7939:329::-;7998:6;8047:2;8035:9;8026:7;8022:23;8018:32;8015:119;;;8053:79;;:::i;:::-;8015:119;8173:1;8198:53;8243:7;8234:6;8223:9;8219:22;8198:53;:::i;:::-;8188:63;;8144:117;7939:329;;;;:::o;8274:::-;8333:6;8382:2;8370:9;8361:7;8357:23;8353:32;8350:119;;;8388:79;;:::i;:::-;8350:119;8508:1;8533:53;8578:7;8569:6;8558:9;8554:22;8533:53;:::i;:::-;8523:63;;8479:117;8274:329;;;;:::o;8609:118::-;8696:24;8714:5;8696:24;:::i;:::-;8691:3;8684:37;8609:118;;:::o;8733:222::-;8826:4;8864:2;8853:9;8849:18;8841:26;;8877:71;8945:1;8934:9;8930:17;8921:6;8877:71;:::i;:::-;8733:222;;;;:::o;8961:114::-;9028:6;9062:5;9056:12;9046:22;;8961:114;;;:::o;9081:184::-;9180:11;9214:6;9209:3;9202:19;9254:4;9249:3;9245:14;9230:29;;9081:184;;;;:::o;9271:132::-;9338:4;9361:3;9353:11;;9391:4;9386:3;9382:14;9374:22;;9271:132;;;:::o;9409:108::-;9486:24;9504:5;9486:24;:::i;:::-;9481:3;9474:37;9409:108;;:::o;9523:179::-;9592:10;9613:46;9655:3;9647:6;9613:46;:::i;:::-;9691:4;9686:3;9682:14;9668:28;;9523:179;;;;:::o;9708:113::-;9778:4;9810;9805:3;9801:14;9793:22;;9708:113;;;:::o;9857:732::-;9976:3;10005:54;10053:5;10005:54;:::i;:::-;10075:86;10154:6;10149:3;10075:86;:::i;:::-;10068:93;;10185:56;10235:5;10185:56;:::i;:::-;10264:7;10295:1;10280:284;10305:6;10302:1;10299:13;10280:284;;;10381:6;10375:13;10408:63;10467:3;10452:13;10408:63;:::i;:::-;10401:70;;10494:60;10547:6;10494:60;:::i;:::-;10484:70;;10340:224;10327:1;10324;10320:9;10315:14;;10280:284;;;10284:14;10580:3;10573:10;;9981:608;;;9857:732;;;;:::o;10595:373::-;10738:4;10776:2;10765:9;10761:18;10753:26;;10825:9;10819:4;10815:20;10811:1;10800:9;10796:17;10789:47;10853:108;10956:4;10947:6;10853:108;:::i;:::-;10845:116;;10595:373;;;;:::o;10974:474::-;11042:6;11050;11099:2;11087:9;11078:7;11074:23;11070:32;11067:119;;;11105:79;;:::i;:::-;11067:119;11225:1;11250:53;11295:7;11286:6;11275:9;11271:22;11250:53;:::i;:::-;11240:63;;11196:117;11352:2;11378:53;11423:7;11414:6;11403:9;11399:22;11378:53;:::i;:::-;11368:63;;11323:118;10974:474;;;;;:::o;11454:180::-;11502:77;11499:1;11492:88;11599:4;11596:1;11589:15;11623:4;11620:1;11613:15;11640:320;11684:6;11721:1;11715:4;11711:12;11701:22;;11768:1;11762:4;11758:12;11789:18;11779:81;;11845:4;11837:6;11833:17;11823:27;;11779:81;11907:2;11899:6;11896:14;11876:18;11873:38;11870:84;;;11926:18;;:::i;:::-;11870:84;11691:269;11640:320;;;:::o;11966:226::-;12106:34;12102:1;12094:6;12090:14;12083:58;12175:9;12170:2;12162:6;12158:15;12151:34;11966:226;:::o;12198:366::-;12340:3;12361:67;12425:2;12420:3;12361:67;:::i;:::-;12354:74;;12437:93;12526:3;12437:93;:::i;:::-;12555:2;12550:3;12546:12;12539:19;;12198:366;;;:::o;12570:419::-;12736:4;12774:2;12763:9;12759:18;12751:26;;12823:9;12817:4;12813:20;12809:1;12798:9;12794:17;12787:47;12851:131;12977:4;12851:131;:::i;:::-;12843:139;;12570:419;;;:::o;12995:180::-;13043:77;13040:1;13033:88;13140:4;13137:1;13130:15;13164:4;13161:1;13154:15;13181:191;13221:4;13241:20;13259:1;13241:20;:::i;:::-;13236:25;;13275:20;13293:1;13275:20;:::i;:::-;13270:25;;13314:1;13311;13308:8;13305:34;;;13319:18;;:::i;:::-;13305:34;13364:1;13361;13357:9;13349:17;;13181:191;;;;:::o;13378:180::-;13426:77;13423:1;13416:88;13523:4;13520:1;13513:15;13547:4;13544:1;13537:15;13564:182;13704:34;13700:1;13692:6;13688:14;13681:58;13564:182;:::o;13752:366::-;13894:3;13915:67;13979:2;13974:3;13915:67;:::i;:::-;13908:74;;13991:93;14080:3;13991:93;:::i;:::-;14109:2;14104:3;14100:12;14093:19;;13752:366;;;:::o;14124:419::-;14290:4;14328:2;14317:9;14313:18;14305:26;;14377:9;14371:4;14367:20;14363:1;14352:9;14348:17;14341:47;14405:131;14531:4;14405:131;:::i;:::-;14397:139;;14124:419;;;:::o;14549:233::-;14588:3;14611:24;14629:5;14611:24;:::i;:::-;14602:33;;14657:66;14650:5;14647:77;14644:103;;;14727:18;;:::i;:::-;14644:103;14774:1;14767:5;14763:13;14756:20;;14549:233;;;:::o;14788:220::-;14928:34;14924:1;14916:6;14912:14;14905:58;14997:3;14992:2;14984:6;14980:15;14973:28;14788:220;:::o;15014:366::-;15156:3;15177:67;15241:2;15236:3;15177:67;:::i;:::-;15170:74;;15253:93;15342:3;15253:93;:::i;:::-;15371:2;15366:3;15362:12;15355:19;;15014:366;;;:::o;15386:419::-;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:143::-;15868:5;15899:6;15893:13;15884:22;;15915:33;15942:5;15915:33;:::i;:::-;15811:143;;;;:::o;15960:351::-;16030:6;16079:2;16067:9;16058:7;16054:23;16050:32;16047:119;;;16085:79;;:::i;:::-;16047:119;16205:1;16230:64;16286:7;16277:6;16266:9;16262:22;16230:64;:::i;:::-;16220:74;;16176:128;15960:351;;;;:::o;16317:236::-;16457:34;16453:1;16445:6;16441:14;16434:58;16526:19;16521:2;16513:6;16509:15;16502:44;16317:236;:::o;16559:366::-;16701:3;16722:67;16786:2;16781:3;16722:67;:::i;:::-;16715:74;;16798:93;16887:3;16798:93;:::i;:::-;16916:2;16911:3;16907:12;16900:19;;16559:366;;;:::o;16931:419::-;17097:4;17135:2;17124:9;17120:18;17112:26;;17184:9;17178:4;17174:20;17170:1;17159:9;17155:17;17148:47;17212:131;17338:4;17212:131;:::i;:::-;17204:139;;16931:419;;;:::o;17356:442::-;17505:4;17543:2;17532:9;17528:18;17520:26;;17556:71;17624:1;17613:9;17609:17;17600:6;17556:71;:::i;:::-;17637:72;17705:2;17694:9;17690:18;17681:6;17637:72;:::i;:::-;17719;17787:2;17776:9;17772:18;17763:6;17719:72;:::i;:::-;17356:442;;;;;;:::o;17804:305::-;17844:3;17863:20;17881:1;17863:20;:::i;:::-;17858:25;;17897:20;17915:1;17897:20;:::i;:::-;17892:25;;18051:1;17983:66;17979:74;17976:1;17973:81;17970:107;;;18057:18;;:::i;:::-;17970:107;18101:1;18098;18094:9;18087:16;;17804:305;;;;:::o;18115:176::-;18255:28;18251:1;18243:6;18239:14;18232:52;18115:176;:::o;18297:366::-;18439:3;18460:67;18524:2;18519:3;18460:67;:::i;:::-;18453:74;;18536:93;18625:3;18536:93;:::i;:::-;18654:2;18649:3;18645:12;18638:19;;18297:366;;;:::o;18669:419::-;18835:4;18873:2;18862:9;18858:18;18850:26;;18922:9;18916:4;18912:20;18908:1;18897:9;18893:17;18886:47;18950:131;19076:4;18950:131;:::i;:::-;18942:139;;18669:419;;;:::o;19094:234::-;19234:34;19230:1;19222:6;19218:14;19211:58;19303:17;19298:2;19290:6;19286:15;19279:42;19094:234;:::o;19334:366::-;19476:3;19497:67;19561:2;19556:3;19497:67;:::i;:::-;19490:74;;19573:93;19662:3;19573:93;:::i;:::-;19691:2;19686:3;19682:12;19675:19;;19334:366;;;:::o;19706:419::-;19872:4;19910:2;19899:9;19895:18;19887:26;;19959:9;19953:4;19949:20;19945:1;19934:9;19930:17;19923:47;19987:131;20113:4;19987:131;:::i;:::-;19979:139;;19706:419;;;:::o;20131:143::-;20188:5;20219:6;20213:13;20204:22;;20235:33;20262:5;20235:33;:::i;:::-;20131:143;;;;:::o;20280:351::-;20350:6;20399:2;20387:9;20378:7;20374:23;20370:32;20367:119;;;20405:79;;:::i;:::-;20367:119;20525:1;20550:64;20606:7;20597:6;20586:9;20582:22;20550:64;:::i;:::-;20540:74;;20496:128;20280:351;;;;:::o;20637:224::-;20777:34;20773:1;20765:6;20761:14;20754:58;20846:7;20841:2;20833:6;20829:15;20822:32;20637:224;:::o;20867:366::-;21009:3;21030:67;21094:2;21089:3;21030:67;:::i;:::-;21023:74;;21106:93;21195:3;21106:93;:::i;:::-;21224:2;21219:3;21215:12;21208:19;;20867:366;;;:::o;21239:419::-;21405:4;21443:2;21432:9;21428:18;21420:26;;21492:9;21486:4;21482:20;21478:1;21467:9;21463:17;21456:47;21520:131;21646:4;21520:131;:::i;:::-;21512:139;;21239:419;;;:::o;21664:172::-;21804:24;21800:1;21792:6;21788:14;21781:48;21664:172;:::o;21842:366::-;21984:3;22005:67;22069:2;22064:3;22005:67;:::i;:::-;21998:74;;22081:93;22170:3;22081:93;:::i;:::-;22199:2;22194:3;22190:12;22183:19;;21842:366;;;:::o;22214:419::-;22380:4;22418:2;22407:9;22403:18;22395:26;;22467:9;22461:4;22457:20;22453:1;22442:9;22438:17;22431:47;22495:131;22621:4;22495:131;:::i;:::-;22487:139;;22214:419;;;:::o;22639:180::-;22779:32;22775:1;22767:6;22763:14;22756:56;22639:180;:::o;22825:366::-;22967:3;22988:67;23052:2;23047:3;22988:67;:::i;:::-;22981:74;;23064:93;23153:3;23064:93;:::i;:::-;23182:2;23177:3;23173:12;23166:19;;22825:366;;;:::o;23197:419::-;23363:4;23401:2;23390:9;23386:18;23378:26;;23450:9;23444:4;23440:20;23436:1;23425:9;23421:17;23414:47;23478:131;23604:4;23478:131;:::i;:::-;23470:139;;23197:419;;;:::o;23622:180::-;23670:77;23667:1;23660:88;23767:4;23764:1;23757:15;23791:4;23788:1;23781:15;23808:185;23848:1;23865:20;23883:1;23865:20;:::i;:::-;23860:25;;23899:20;23917:1;23899:20;:::i;:::-;23894:25;;23938:1;23928:35;;23943:18;;:::i;:::-;23928:35;23985:1;23982;23978:9;23973:14;;23808:185;;;;:::o;23999:348::-;24039:7;24062:20;24080:1;24062:20;:::i;:::-;24057:25;;24096:20;24114:1;24096:20;:::i;:::-;24091:25;;24284:1;24216:66;24212:74;24209:1;24206:81;24201:1;24194:9;24187:17;24183:105;24180:131;;;24291:18;;:::i;:::-;24180:131;24339:1;24336;24332:9;24321:20;;23999:348;;;;:::o;24353:222::-;24493:34;24489:1;24481:6;24477:14;24470:58;24562:5;24557:2;24549:6;24545:15;24538:30;24353:222;:::o;24581:366::-;24723:3;24744:67;24808:2;24803:3;24744:67;:::i;:::-;24737:74;;24820:93;24909:3;24820:93;:::i;:::-;24938:2;24933:3;24929:12;24922:19;;24581:366;;;:::o;24953:419::-;25119:4;25157:2;25146:9;25142:18;25134:26;;25206:9;25200:4;25196:20;25192:1;25181:9;25177:17;25170:47;25234:131;25360:4;25234:131;:::i;:::-;25226:139;;24953:419;;;:::o;25378:223::-;25518:34;25514:1;25506:6;25502:14;25495:58;25587:6;25582:2;25574:6;25570:15;25563:31;25378:223;:::o;25607:366::-;25749:3;25770:67;25834:2;25829:3;25770:67;:::i;:::-;25763:74;;25846:93;25935:3;25846:93;:::i;:::-;25964:2;25959:3;25955:12;25948:19;;25607:366;;;:::o;25979:419::-;26145:4;26183:2;26172:9;26168:18;26160:26;;26232:9;26226:4;26222:20;26218:1;26207:9;26203:17;26196:47;26260:131;26386:4;26260:131;:::i;:::-;26252:139;;25979:419;;;:::o;26404:173::-;26544:25;26540:1;26532:6;26528:14;26521:49;26404:173;:::o;26583:366::-;26725:3;26746:67;26810:2;26805:3;26746:67;:::i;:::-;26739:74;;26822:93;26911:3;26822:93;:::i;:::-;26940:2;26935:3;26931:12;26924:19;;26583:366;;;:::o;26955:419::-;27121:4;27159:2;27148:9;27144:18;27136:26;;27208:9;27202:4;27198:20;27194:1;27183:9;27179:17;27172:47;27236:131;27362:4;27236:131;:::i;:::-;27228:139;;26955:419;;;:::o;27380:147::-;27481:11;27518:3;27503:18;;27380:147;;;;:::o;27533:114::-;;:::o;27653:398::-;27812:3;27833:83;27914:1;27909:3;27833:83;:::i;:::-;27826:90;;27925:93;28014:3;27925:93;:::i;:::-;28043:1;28038:3;28034:11;28027:18;;27653:398;;;:::o;28057:379::-;28241:3;28263:147;28406:3;28263:147;:::i;:::-;28256:154;;28427:3;28420:10;;28057:379;;;:::o;28442:227::-;28582:34;28578:1;28570:6;28566:14;28559:58;28651:10;28646:2;28638:6;28634:15;28627:35;28442:227;:::o;28675:366::-;28817:3;28838:67;28902:2;28897:3;28838:67;:::i;:::-;28831:74;;28914:93;29003:3;28914:93;:::i;:::-;29032:2;29027:3;29023:12;29016:19;;28675:366;;;:::o;29047:419::-;29213:4;29251:2;29240:9;29236:18;29228:26;;29300:9;29294:4;29290:20;29286:1;29275:9;29271:17;29264:47;29328:131;29454:4;29328:131;:::i;:::-;29320:139;;29047:419;;;:::o;29472:225::-;29612:34;29608:1;29600:6;29596:14;29589:58;29681:8;29676:2;29668:6;29664:15;29657:33;29472:225;:::o;29703:366::-;29845:3;29866:67;29930:2;29925:3;29866:67;:::i;:::-;29859:74;;29942:93;30031:3;29942:93;:::i;:::-;30060:2;30055:3;30051:12;30044:19;;29703:366;;;:::o;30075:419::-;30241:4;30279:2;30268:9;30264:18;30256:26;;30328:9;30322:4;30318:20;30314:1;30303:9;30299:17;30292:47;30356:131;30482:4;30356:131;:::i;:::-;30348:139;;30075:419;;;:::o;30500:180::-;30548:77;30545:1;30538:88;30645:4;30642:1;30635:15;30669:4;30666:1;30659:15;30686:223;30826:34;30822:1;30814:6;30810:14;30803:58;30895:6;30890:2;30882:6;30878:15;30871:31;30686:223;:::o;30915:366::-;31057:3;31078:67;31142:2;31137:3;31078:67;:::i;:::-;31071:74;;31154:93;31243:3;31154:93;:::i;:::-;31272:2;31267:3;31263:12;31256:19;;30915:366;;;:::o;31287:419::-;31453:4;31491:2;31480:9;31476:18;31468:26;;31540:9;31534:4;31530:20;31526:1;31515:9;31511:17;31504:47;31568:131;31694:4;31568:131;:::i;:::-;31560:139;;31287:419;;;:::o;31712:221::-;31852:34;31848:1;31840:6;31836:14;31829:58;31921:4;31916:2;31908:6;31904:15;31897:29;31712:221;:::o;31939:366::-;32081:3;32102:67;32166:2;32161:3;32102:67;:::i;:::-;32095:74;;32178:93;32267:3;32178:93;:::i;:::-;32296:2;32291:3;32287:12;32280:19;;31939:366;;;:::o;32311:419::-;32477:4;32515:2;32504:9;32500:18;32492:26;;32564:9;32558:4;32554:20;32550:1;32539:9;32535:17;32528:47;32592:131;32718:4;32592:131;:::i;:::-;32584:139;;32311:419;;;:::o;32736:182::-;32876:34;32872:1;32864:6;32860:14;32853:58;32736:182;:::o;32924:366::-;33066:3;33087:67;33151:2;33146:3;33087:67;:::i;:::-;33080:74;;33163:93;33252:3;33163:93;:::i;:::-;33281:2;33276:3;33272:12;33265:19;;32924:366;;;:::o;33296:419::-;33462:4;33500:2;33489:9;33485:18;33477:26;;33549:9;33543:4;33539:20;33535:1;33524:9;33520:17;33513:47;33577:131;33703:4;33577:131;:::i;:::-;33569:139;;33296:419;;;:::o;33721:224::-;33861:34;33857:1;33849:6;33845:14;33838:58;33930:7;33925:2;33917:6;33913:15;33906:32;33721:224;:::o;33951:366::-;34093:3;34114:67;34178:2;34173:3;34114:67;:::i;:::-;34107:74;;34190:93;34279:3;34190:93;:::i;:::-;34308:2;34303:3;34299:12;34292:19;;33951:366;;;:::o;34323:419::-;34489:4;34527:2;34516:9;34512:18;34504:26;;34576:9;34570:4;34566:20;34562:1;34551:9;34547:17;34540:47;34604:131;34730:4;34604:131;:::i;:::-;34596:139;;34323:419;;;:::o;34748:222::-;34888:34;34884:1;34876:6;34872:14;34865:58;34957:5;34952:2;34944:6;34940:15;34933:30;34748:222;:::o;34976:366::-;35118:3;35139:67;35203:2;35198:3;35139:67;:::i;:::-;35132:74;;35215:93;35304:3;35215:93;:::i;:::-;35333:2;35328:3;35324:12;35317:19;;34976:366;;;:::o;35348:419::-;35514:4;35552:2;35541:9;35537:18;35529:26;;35601:9;35595:4;35591:20;35587:1;35576:9;35572:17;35565:47;35629:131;35755:4;35629:131;:::i;:::-;35621:139;;35348:419;;;:::o;35773:225::-;35913:34;35909:1;35901:6;35897:14;35890:58;35982:8;35977:2;35969:6;35965:15;35958:33;35773:225;:::o;36004:366::-;36146:3;36167:67;36231:2;36226:3;36167:67;:::i;:::-;36160:74;;36243:93;36332:3;36243:93;:::i;:::-;36361:2;36356:3;36352:12;36345:19;;36004:366;;;:::o;36376:419::-;36542:4;36580:2;36569:9;36565:18;36557:26;;36629:9;36623:4;36619:20;36615:1;36604:9;36600:17;36593:47;36657:131;36783:4;36657:131;:::i;:::-;36649:139;;36376:419;;;:::o;36801:179::-;36941:31;36937:1;36929:6;36925:14;36918:55;36801:179;:::o;36986:366::-;37128:3;37149:67;37213:2;37208:3;37149:67;:::i;:::-;37142:74;;37225:93;37314:3;37225:93;:::i;:::-;37343:2;37338:3;37334:12;37327:19;;36986:366;;;:::o;37358:419::-;37524:4;37562:2;37551:9;37547:18;37539:26;;37611:9;37605:4;37601:20;37597:1;37586:9;37582:17;37575:47;37639:131;37765:4;37639:131;:::i;:::-;37631:139;;37358:419;;;:::o;37783:220::-;37923:34;37919:1;37911:6;37907:14;37900:58;37992:3;37987:2;37979:6;37975:15;37968:28;37783:220;:::o;38009:366::-;38151:3;38172:67;38236:2;38231:3;38172:67;:::i;:::-;38165:74;;38248:93;38337:3;38248:93;:::i;:::-;38366:2;38361:3;38357:12;38350:19;;38009:366;;;:::o;38381:419::-;38547:4;38585:2;38574:9;38570:18;38562:26;;38634:9;38628:4;38624:20;38620:1;38609:9;38605:17;38598:47;38662:131;38788:4;38662:131;:::i;:::-;38654:139;;38381:419;;;:::o;38806:221::-;38946:34;38942:1;38934:6;38930:14;38923:58;39015:4;39010:2;39002:6;38998:15;38991:29;38806:221;:::o;39033:366::-;39175:3;39196:67;39260:2;39255:3;39196:67;:::i;:::-;39189:74;;39272:93;39361:3;39272:93;:::i;:::-;39390:2;39385:3;39381:12;39374:19;;39033:366;;;:::o;39405:419::-;39571:4;39609:2;39598:9;39594:18;39586:26;;39658:9;39652:4;39648:20;39644:1;39633:9;39629:17;39622:47;39686:131;39812:4;39686:131;:::i;:::-;39678:139;;39405:419;;;:::o
Swarm Source
ipfs://5e0b03af07406946e3e435324d63db3042c9fc9155d56e05988f0ce67181f662
Loading...
Loading
Loading...
Loading
Multichain Portfolio | 30 Chains
Chain | Token | Portfolio % | Price | Amount | Value |
---|---|---|---|---|---|
ETH | Ether (ETH) | 100.00% | $3,909.97 | 0.0485 | $189.63 |
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.