Overview
ETH Balance
0 ETH
Eth Value
$0.00More Info
Private Name Tags
Latest 1 from a total of 1 transactions
Transaction Hash |
Method
|
Block
|
From
|
To
|
|||||
---|---|---|---|---|---|---|---|---|---|
0x60a06040 | 13767766 | 974 days ago | IN | 0 ETH | 0.43902551 |
View more zero value Internal Transactions in Advanced View mode
Advanced mode:
Loading...
Loading
This contract may be a proxy contract. Click on More Options and select Is this a proxy? to confirm and enable the "Read as Proxy" & "Write as Proxy" tabs.
Contract Name:
FakturaMintable
Compiler Version
v0.8.2+commit.661d1103
Optimization Enabled:
Yes with 20000 runs
Other Settings:
default evmVersion
Contract Source Code (Solidity Standard Json-Input format)
// SPDX-License-Identifier: MIT OR Apache-2.0 pragma solidity ^0.8.2; import "@openzeppelin/contracts-upgradeable/token/ERC721/ERC721Upgradeable.sol"; import "@openzeppelin/contracts-upgradeable/token/ERC721/extensions/ERC721BurnableUpgradeable.sol"; import "@openzeppelin/contracts-upgradeable/token/ERC721/extensions/ERC721EnumerableUpgradeable.sol"; import "@openzeppelin/contracts-upgradeable/access/OwnableUpgradeable.sol"; import "@openzeppelin/contracts-upgradeable/utils/CountersUpgradeable.sol"; import "@openzeppelin/contracts-upgradeable/utils/StringsUpgradeable.sol"; import "@openzeppelin/contracts-upgradeable/proxy/utils/UUPSUpgradeable.sol"; import "@openzeppelin/contracts-upgradeable/proxy/utils/Initializable.sol"; import "./TreasuryNode.sol"; /** * @title Faktura NFTs implemented using the ERC-721 standard. * @dev This top level file holds no data directly to ease future upgrades. */ contract FakturaMintable is Initializable, TreasuryNode, OwnableUpgradeable, ERC721Upgradeable, ERC721EnumerableUpgradeable, ERC721BurnableUpgradeable, UUPSUpgradeable { using CountersUpgradeable for CountersUpgradeable.Counter; struct Metadata { uint256 id; uint256 amount; CountersUpgradeable.Counter counter; } // if a token's URI has been locked or not mapping(uint256 => bool) public tokenURILocked; // Mapping for token URIs mapping(uint256 => string) private _tokenURIs; // Mint allowed per address mapping (address => uint) private mintCnt; // Mapping for token Metadata Metadata[] private _tokenMetadata; // gets incremented to placehold for tokens not minted yet uint256 public expectedTokenSupply; // Max mint per Address uint256 public maxMintPerAddress; // Counter for mint CountersUpgradeable.Counter public _tokenIdCounter; // Mint Price uint256 public mintPrice; // Mint Price uint256 private mintReserve; //Metadata URI string private metadataURI; /** * @notice Called once to configure the contract after the initial deployment. * @dev This farms the initialize call out to inherited contracts as needed. */ function initialize( string memory name, string memory symbol, uint256 _mintPrice, uint256 _maxMintPerAddress, uint256 _mintReserve, uint256[] memory _metadataAmount, string memory _metadataURI, address payable _fakturaPaymentAddress, address payable _creatorPaymentAddress, uint256 _secondaryFakturaFeeBasisPoints, uint256 _secondaryCreatorFeeBasisPoints ) public initializer { __TreasuryNode_init(_fakturaPaymentAddress, _creatorPaymentAddress, _secondaryFakturaFeeBasisPoints, _secondaryCreatorFeeBasisPoints); __ERC721_init(name, symbol); __ERC721Enumerable_init(); __ERC721Burnable_init(); __Ownable_init(); __UUPSUpgradeable_init(); // set the initial mint mintPrice mintPrice = _mintPrice; // set the initial mint mintPrice maxMintPerAddress = _maxMintPerAddress; // set the metadata URI metadataURI = _metadataURI; // set the reserve mintReserve = _mintReserve; for (uint256 i = 0; i < _metadataAmount.length; i++) { Metadata memory newMetadata = Metadata({ id: i, amount: _metadataAmount[i], counter: _tokenIdCounter }); expectedTokenSupply += _metadataAmount[i]; _tokenMetadata.push(newMetadata); } require(expectedTokenSupply > 0); require(mintPrice >= 0); } function _authorizeUpgrade(address newImplementation) internal onlyOwner override {} // Allow the platform to update a token's URI if it's not locked yet (for fixing tokens post mint process) function updateTokenURI(uint256 tokenId, string calldata _tokenURI) external onlyOwner { // ensure that this token exists require(_exists(tokenId)); // ensure that the URI for this token is not locked yet require(tokenURILocked[tokenId] == false); // update the token URI _setTokenURI(tokenId, _tokenURI); } // Locks a token's URI from being updated function lockTokenURI(uint256 tokenId) external onlyOwner { // ensure that this token exists require(_exists(tokenId)); // lock this token's URI from being changed tokenURILocked[tokenId] = true; } /** * @dev Returns an URI for a given token ID. * Throws if the token ID does not exist. May return an empty string. * @param tokenId uint256 ID of the token to query */ function tokenURI(uint256 tokenId) public view virtual override returns (string memory) { require(_exists(tokenId), "ERC721Metadata: URI query for nonexistent token"); return _tokenURIs[tokenId]; } /** * @dev Internal function to set the token URI for a given token. * Reverts if the token ID does not exist. * @param tokenId uint256 ID of the token to set its URI * @param uri string URI to assign */ function _setTokenURI(uint256 tokenId, string memory uri) internal { require(_exists(tokenId), "ERC721Metadata: URI set of nonexistent token"); _tokenURIs[tokenId] = uri; } function totalSupply() public view virtual override returns (uint256) { return expectedTokenSupply; } modifier limited { require(_tokenIdCounter.current() < totalSupply() - mintReserve, "There's no token to mint."); _; } function safeMint(address to) public payable limited { require(mintCnt[msg.sender] < maxMintPerAddress, "One address can mint 10 tickets."); if(mintPrice > 0) { require(mintPrice == msg.value, "Mint price is not correct."); _payout(); } _mintTo(to); } function safeBatchMint(address to, uint256 amount) public payable limited { require(mintCnt[msg.sender] + amount <= maxMintPerAddress, "One address can mint 10 tickets."); if(mintPrice > 0) { require(mintPrice * amount == msg.value, "Mint price is not correct."); _payout(); } for (uint256 i = 0; i < amount; i++) { _mintTo(to); } } function safeReserveMint(address to, uint256 amount) public onlyOwner { require(_tokenIdCounter.current() < totalSupply(), "There's no token to mint."); for (uint256 i = 0; i < amount; i++) { _mintTo(to); } } function _mintTo(address to) internal { //Suffle Metadata _shuffle(); uint256 index = _tokenMetadata.length - 1; _safeMint(to, _tokenIdCounter.current()); _setTokenURI(_tokenIdCounter.current(), string(abi.encodePacked(metadataURI, StringsUpgradeable.toString(_tokenMetadata[index].id), ".json"))); _tokenMetadata[index].counter.increment(); if(_tokenMetadata[index].counter.current() == _tokenMetadata[index].amount) _tokenMetadata.pop(); _tokenIdCounter.increment(); mintCnt[msg.sender]++; } function _payout() internal { (uint256 secondaryFakturaFeeBasisPoints, uint256 secondaryCreatorFeeBasisPoints) = getFeeConfig(); //Pay to Treasury address payable _toTreasury = payable(getTreasury()); _toTreasury.transfer((msg.value * secondaryFakturaFeeBasisPoints) / 100); //Pay to Creator address payable _toCreator = payable(getTokenCreatorPaymentAddress()); _toCreator.transfer((msg.value * secondaryCreatorFeeBasisPoints) / 100); } function _shuffle() internal { for (uint256 i = 0; i < _tokenMetadata.length; i++) { uint256 n = i + uint256(keccak256(abi.encodePacked(block.timestamp, msg.sender, _tokenIdCounter.current()))) % (_tokenMetadata.length - i); Metadata memory temp = _tokenMetadata[n]; _tokenMetadata[n] = _tokenMetadata[i]; _tokenMetadata[i] = temp; } } // The following functions are overrides required by Solidity. function _beforeTokenTransfer(address from, address to, uint256 tokenId) internal override(ERC721Upgradeable, ERC721EnumerableUpgradeable) { super._beforeTokenTransfer(from, to, tokenId); } /** * @dev This is a no-op, just an explicit override to address compile errors due to inheritance. */ function _burn(uint256 tokenId) internal override(ERC721Upgradeable) { super._burn(tokenId); } function supportsInterface(bytes4 interfaceId) public view virtual override(ERC721Upgradeable, ERC721EnumerableUpgradeable) returns (bool) { return super.supportsInterface(interfaceId); } uint256[46] private __gap; }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import "./IERC721Upgradeable.sol"; import "./IERC721ReceiverUpgradeable.sol"; import "./extensions/IERC721MetadataUpgradeable.sol"; import "../../utils/AddressUpgradeable.sol"; import "../../utils/ContextUpgradeable.sol"; import "../../utils/StringsUpgradeable.sol"; import "../../utils/introspection/ERC165Upgradeable.sol"; import "../../proxy/utils/Initializable.sol"; /** * @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 ERC721Upgradeable is Initializable, ContextUpgradeable, ERC165Upgradeable, IERC721Upgradeable, IERC721MetadataUpgradeable { using AddressUpgradeable for address; using StringsUpgradeable 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. */ function __ERC721_init(string memory name_, string memory symbol_) internal initializer { __Context_init_unchained(); __ERC165_init_unchained(); __ERC721_init_unchained(name_, symbol_); } function __ERC721_init_unchained(string memory name_, string memory symbol_) internal initializer { _name = name_; _symbol = symbol_; } /** * @dev See {IERC165-supportsInterface}. */ function supportsInterface(bytes4 interfaceId) public view virtual override(ERC165Upgradeable, IERC165Upgradeable) returns (bool) { return interfaceId == type(IERC721Upgradeable).interfaceId || interfaceId == type(IERC721MetadataUpgradeable).interfaceId || super.supportsInterface(interfaceId); } /** * @dev See {IERC721-balanceOf}. */ function balanceOf(address owner) public view virtual override returns (uint256) { require(owner != address(0), "ERC721: balance query for the zero address"); return _balances[owner]; } /** * @dev See {IERC721-ownerOf}. */ function ownerOf(uint256 tokenId) public view virtual override returns (address) { address owner = _owners[tokenId]; require(owner != address(0), "ERC721: owner query for nonexistent token"); 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) { require(_exists(tokenId), "ERC721Metadata: URI query for nonexistent token"); string memory baseURI = _baseURI(); return bytes(baseURI).length > 0 ? string(abi.encodePacked(baseURI, tokenId.toString())) : ""; } /** * @dev Base URI for computing {tokenURI}. If set, the resulting URI for each * token will be the concatenation of the `baseURI` and the `tokenId`. Empty * by default, can be overriden in child contracts. */ function _baseURI() internal view virtual returns (string memory) { return ""; } /** * @dev See {IERC721-approve}. */ function approve(address to, uint256 tokenId) public virtual override { address owner = ERC721Upgradeable.ownerOf(tokenId); require(to != owner, "ERC721: approval to current owner"); require( _msgSender() == owner || isApprovedForAll(owner, _msgSender()), "ERC721: approve caller is not owner nor approved for all" ); _approve(to, tokenId); } /** * @dev See {IERC721-getApproved}. */ function getApproved(uint256 tokenId) public view virtual override returns (address) { require(_exists(tokenId), "ERC721: approved query for nonexistent token"); return _tokenApprovals[tokenId]; } /** * @dev See {IERC721-setApprovalForAll}. */ function setApprovalForAll(address operator, bool approved) public virtual override { require(operator != _msgSender(), "ERC721: approve to caller"); _operatorApprovals[_msgSender()][operator] = approved; emit ApprovalForAll(_msgSender(), operator, approved); } /** * @dev See {IERC721-isApprovedForAll}. */ function isApprovedForAll(address owner, address operator) public view virtual override returns (bool) { return _operatorApprovals[owner][operator]; } /** * @dev See {IERC721-transferFrom}. */ function transferFrom( address from, address to, uint256 tokenId ) public virtual override { //solhint-disable-next-line max-line-length require(_isApprovedOrOwner(_msgSender(), tokenId), "ERC721: transfer caller is not owner nor approved"); _transfer(from, to, tokenId); } /** * @dev See {IERC721-safeTransferFrom}. */ function safeTransferFrom( address from, address to, uint256 tokenId ) public virtual override { safeTransferFrom(from, to, tokenId, ""); } /** * @dev See {IERC721-safeTransferFrom}. */ function safeTransferFrom( address from, address to, uint256 tokenId, bytes memory _data ) public virtual override { require(_isApprovedOrOwner(_msgSender(), tokenId), "ERC721: transfer caller is not owner nor approved"); _safeTransfer(from, to, tokenId, _data); } /** * @dev Safely transfers `tokenId` token from `from` to `to`, checking first that contract recipients * are aware of the ERC721 protocol to prevent tokens from being forever locked. * * `_data` is additional data, it has no specified format and it is sent in call to `to`. * * This internal function is equivalent to {safeTransferFrom}, and can be used to e.g. * implement alternative mechanisms to perform token transfer, such as signature-based. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must exist and be owned by `from`. * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */ function _safeTransfer( address from, address to, uint256 tokenId, bytes memory _data ) internal virtual { _transfer(from, to, tokenId); require(_checkOnERC721Received(from, to, tokenId, _data), "ERC721: transfer to non ERC721Receiver implementer"); } /** * @dev Returns whether `tokenId` exists. * * Tokens can be managed by their owner or approved accounts via {approve} or {setApprovalForAll}. * * Tokens start existing when they are minted (`_mint`), * and stop existing when they are burned (`_burn`). */ function _exists(uint256 tokenId) internal view virtual returns (bool) { return _owners[tokenId] != address(0); } /** * @dev Returns whether `spender` is allowed to manage `tokenId`. * * Requirements: * * - `tokenId` must exist. */ function _isApprovedOrOwner(address spender, uint256 tokenId) internal view virtual returns (bool) { require(_exists(tokenId), "ERC721: operator query for nonexistent token"); address owner = ERC721Upgradeable.ownerOf(tokenId); return (spender == owner || getApproved(tokenId) == spender || isApprovedForAll(owner, spender)); } /** * @dev Safely mints `tokenId` and transfers it to `to`. * * Requirements: * * - `tokenId` must not exist. * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */ function _safeMint(address to, uint256 tokenId) internal virtual { _safeMint(to, tokenId, ""); } /** * @dev Same as {xref-ERC721-_safeMint-address-uint256-}[`_safeMint`], with an additional `data` parameter which is * forwarded in {IERC721Receiver-onERC721Received} to contract recipients. */ function _safeMint( address to, uint256 tokenId, bytes memory _data ) internal virtual { _mint(to, tokenId); require( _checkOnERC721Received(address(0), to, tokenId, _data), "ERC721: transfer to non ERC721Receiver implementer" ); } /** * @dev Mints `tokenId` and transfers it to `to`. * * WARNING: Usage of this method is discouraged, use {_safeMint} whenever possible * * Requirements: * * - `tokenId` must not exist. * - `to` cannot be the zero address. * * Emits a {Transfer} event. */ function _mint(address to, uint256 tokenId) internal virtual { require(to != address(0), "ERC721: mint to the zero address"); require(!_exists(tokenId), "ERC721: token already minted"); _beforeTokenTransfer(address(0), to, tokenId); _balances[to] += 1; _owners[tokenId] = to; emit Transfer(address(0), to, tokenId); } /** * @dev Destroys `tokenId`. * The approval is cleared when the token is burned. * * Requirements: * * - `tokenId` must exist. * * Emits a {Transfer} event. */ function _burn(uint256 tokenId) internal virtual { address owner = ERC721Upgradeable.ownerOf(tokenId); _beforeTokenTransfer(owner, address(0), tokenId); // Clear approvals _approve(address(0), tokenId); _balances[owner] -= 1; delete _owners[tokenId]; emit Transfer(owner, address(0), tokenId); } /** * @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(ERC721Upgradeable.ownerOf(tokenId) == from, "ERC721: transfer of token that is not own"); require(to != address(0), "ERC721: transfer to the zero address"); _beforeTokenTransfer(from, to, tokenId); // Clear approvals from the previous owner _approve(address(0), tokenId); _balances[from] -= 1; _balances[to] += 1; _owners[tokenId] = to; emit Transfer(from, to, tokenId); } /** * @dev Approve `to` to operate on `tokenId` * * Emits a {Approval} event. */ function _approve(address to, uint256 tokenId) internal virtual { _tokenApprovals[tokenId] = to; emit Approval(ERC721Upgradeable.ownerOf(tokenId), to, tokenId); } /** * @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 IERC721ReceiverUpgradeable(to).onERC721Received(_msgSender(), from, tokenId, _data) returns (bytes4 retval) { return retval == IERC721ReceiverUpgradeable.onERC721Received.selector; } catch (bytes memory reason) { if (reason.length == 0) { revert("ERC721: transfer to non ERC721Receiver implementer"); } else { assembly { revert(add(32, reason), mload(reason)) } } } } else { return true; } } /** * @dev Hook that is called before any token transfer. This includes minting * and burning. * * Calling conditions: * * - When `from` and `to` are both non-zero, ``from``'s `tokenId` will be * transferred to `to`. * - When `from` is zero, `tokenId` will be minted for `to`. * - When `to` is zero, ``from``'s `tokenId` will be burned. * - `from` and `to` are never both zero. * * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks]. */ function _beforeTokenTransfer( address from, address to, uint256 tokenId ) internal virtual {} uint256[44] private __gap; }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import "../ERC721Upgradeable.sol"; import "../../../utils/ContextUpgradeable.sol"; import "../../../proxy/utils/Initializable.sol"; /** * @title ERC721 Burnable Token * @dev ERC721 Token that can be irreversibly burned (destroyed). */ abstract contract ERC721BurnableUpgradeable is Initializable, ContextUpgradeable, ERC721Upgradeable { function __ERC721Burnable_init() internal initializer { __Context_init_unchained(); __ERC165_init_unchained(); __ERC721Burnable_init_unchained(); } function __ERC721Burnable_init_unchained() internal initializer { } /** * @dev Burns `tokenId`. See {ERC721-_burn}. * * Requirements: * * - The caller must own `tokenId` or be an approved operator. */ function burn(uint256 tokenId) public virtual { //solhint-disable-next-line max-line-length require(_isApprovedOrOwner(_msgSender(), tokenId), "ERC721Burnable: caller is not owner nor approved"); _burn(tokenId); } uint256[50] private __gap; }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import "../ERC721Upgradeable.sol"; import "./IERC721EnumerableUpgradeable.sol"; import "../../../proxy/utils/Initializable.sol"; /** * @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 ERC721EnumerableUpgradeable is Initializable, ERC721Upgradeable, IERC721EnumerableUpgradeable { function __ERC721Enumerable_init() internal initializer { __Context_init_unchained(); __ERC165_init_unchained(); __ERC721Enumerable_init_unchained(); } function __ERC721Enumerable_init_unchained() internal initializer { } // 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(IERC165Upgradeable, ERC721Upgradeable) returns (bool) { return interfaceId == type(IERC721EnumerableUpgradeable).interfaceId || super.supportsInterface(interfaceId); } /** * @dev See {IERC721Enumerable-tokenOfOwnerByIndex}. */ function tokenOfOwnerByIndex(address owner, uint256 index) public view virtual override returns (uint256) { require(index < ERC721Upgradeable.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 < ERC721EnumerableUpgradeable.totalSupply(), "ERC721Enumerable: global index out of bounds"); return _allTokens[index]; } /** * @dev Hook that is called before any token transfer. This includes minting * and burning. * * Calling conditions: * * - When `from` and `to` are both non-zero, ``from``'s `tokenId` will be * transferred to `to`. * - When `from` is zero, `tokenId` will be minted for `to`. * - When `to` is zero, ``from``'s `tokenId` will be burned. * - `from` cannot be the zero address. * - `to` cannot be the zero address. * * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks]. */ function _beforeTokenTransfer( address from, address to, uint256 tokenId ) internal virtual override { super._beforeTokenTransfer(from, to, tokenId); 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 = ERC721Upgradeable.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 = ERC721Upgradeable.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(); } uint256[46] private __gap; }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import "../utils/ContextUpgradeable.sol"; import "../proxy/utils/Initializable.sol"; /** * @dev Contract module which provides a basic access control mechanism, where * there is an account (an owner) that can be granted exclusive access to * specific functions. * * By default, the owner account will be the one that deploys the contract. This * can later be changed with {transferOwnership}. * * This module is used through inheritance. It will make available the modifier * `onlyOwner`, which can be applied to your functions to restrict their use to * the owner. */ abstract contract OwnableUpgradeable is Initializable, ContextUpgradeable { address private _owner; event OwnershipTransferred(address indexed previousOwner, address indexed newOwner); /** * @dev Initializes the contract setting the deployer as the initial owner. */ function __Ownable_init() internal initializer { __Context_init_unchained(); __Ownable_init_unchained(); } function __Ownable_init_unchained() internal initializer { _setOwner(_msgSender()); } /** * @dev Returns the address of the current owner. */ function owner() public view virtual returns (address) { return _owner; } /** * @dev Throws if called by any account other than the owner. */ modifier onlyOwner() { require(owner() == _msgSender(), "Ownable: caller is not the owner"); _; } /** * @dev Leaves the contract without owner. It will not be possible to call * `onlyOwner` functions anymore. Can only be called by the current owner. * * NOTE: Renouncing ownership will leave the contract without an owner, * thereby removing any functionality that is only available to the owner. */ function renounceOwnership() public virtual onlyOwner { _setOwner(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"); _setOwner(newOwner); } function _setOwner(address newOwner) private { address oldOwner = _owner; _owner = newOwner; emit OwnershipTransferred(oldOwner, newOwner); } uint256[49] private __gap; }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; /** * @title Counters * @author Matt Condon (@shrugs) * @dev Provides counters that can only be incremented, decremented or reset. This can be used e.g. to track the number * of elements in a mapping, issuing ERC721 ids, or counting request ids. * * Include with `using Counters for Counters.Counter;` */ library CountersUpgradeable { struct Counter { // This variable should never be directly accessed by users of the library: interactions must be restricted to // the library's function. As of Solidity v0.5.2, this cannot be enforced, though there is a proposal to add // this feature: see https://github.com/ethereum/solidity/issues/4637 uint256 _value; // default: 0 } function current(Counter storage counter) internal view returns (uint256) { return counter._value; } function increment(Counter storage counter) internal { unchecked { counter._value += 1; } } function decrement(Counter storage counter) internal { uint256 value = counter._value; require(value > 0, "Counter: decrement overflow"); unchecked { counter._value = value - 1; } } function reset(Counter storage counter) internal { counter._value = 0; } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; /** * @dev String operations. */ library StringsUpgradeable { bytes16 private constant _HEX_SYMBOLS = "0123456789abcdef"; /** * @dev Converts a `uint256` to its ASCII `string` decimal representation. */ function toString(uint256 value) internal pure returns (string memory) { // Inspired by OraclizeAPI's implementation - MIT licence // https://github.com/oraclize/ethereum-api/blob/b42146b063c7d6ee1358846c198246239e9360e8/oraclizeAPI_0.4.25.sol if (value == 0) { return "0"; } uint256 temp = value; uint256 digits; while (temp != 0) { digits++; temp /= 10; } bytes memory buffer = new bytes(digits); while (value != 0) { digits -= 1; buffer[digits] = bytes1(uint8(48 + uint256(value % 10))); value /= 10; } return string(buffer); } /** * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation. */ function toHexString(uint256 value) internal pure returns (string memory) { if (value == 0) { return "0x00"; } uint256 temp = value; uint256 length = 0; while (temp != 0) { length++; temp >>= 8; } return toHexString(value, length); } /** * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation with fixed length. */ function toHexString(uint256 value, uint256 length) internal pure returns (string memory) { bytes memory buffer = new bytes(2 * length + 2); buffer[0] = "0"; buffer[1] = "x"; for (uint256 i = 2 * length + 1; i > 1; --i) { buffer[i] = _HEX_SYMBOLS[value & 0xf]; value >>= 4; } require(value == 0, "Strings: hex length insufficient"); return string(buffer); } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import "../ERC1967/ERC1967UpgradeUpgradeable.sol"; import "./Initializable.sol"; /** * @dev An upgradeability mechanism designed for UUPS proxies. The functions included here can perform an upgrade of an * {ERC1967Proxy}, when this contract is set as the implementation behind such a proxy. * * A security mechanism ensures that an upgrade does not turn off upgradeability accidentally, although this risk is * reinstated if the upgrade retains upgradeability but removes the security mechanism, e.g. by replacing * `UUPSUpgradeable` with a custom implementation of upgrades. * * The {_authorizeUpgrade} function must be overridden to include access restriction to the upgrade mechanism. * * _Available since v4.1._ */ abstract contract UUPSUpgradeable is Initializable, ERC1967UpgradeUpgradeable { function __UUPSUpgradeable_init() internal initializer { __ERC1967Upgrade_init_unchained(); __UUPSUpgradeable_init_unchained(); } function __UUPSUpgradeable_init_unchained() internal initializer { } /// @custom:oz-upgrades-unsafe-allow state-variable-immutable state-variable-assignment address private immutable __self = address(this); /** * @dev Check that the execution is being performed through a delegatecall call and that the execution context is * a proxy contract with an implementation (as defined in ERC1967) pointing to self. This should only be the case * for UUPS and transparent proxies that are using the current contract as their implementation. Execution of a * function through ERC1167 minimal proxies (clones) would not normally pass this test, but is not guaranteed to * fail. */ modifier onlyProxy() { require(address(this) != __self, "Function must be called through delegatecall"); require(_getImplementation() == __self, "Function must be called through active proxy"); _; } /** * @dev Upgrade the implementation of the proxy to `newImplementation`. * * Calls {_authorizeUpgrade}. * * Emits an {Upgraded} event. */ function upgradeTo(address newImplementation) external virtual onlyProxy { _authorizeUpgrade(newImplementation); _upgradeToAndCallSecure(newImplementation, new bytes(0), false); } /** * @dev Upgrade the implementation of the proxy to `newImplementation`, and subsequently execute the function call * encoded in `data`. * * Calls {_authorizeUpgrade}. * * Emits an {Upgraded} event. */ function upgradeToAndCall(address newImplementation, bytes memory data) external payable virtual onlyProxy { _authorizeUpgrade(newImplementation); _upgradeToAndCallSecure(newImplementation, data, true); } /** * @dev Function that should revert when `msg.sender` is not authorized to upgrade the contract. Called by * {upgradeTo} and {upgradeToAndCall}. * * Normally, this function will use an xref:access.adoc[access control] modifier such as {Ownable-onlyOwner}. * * ```solidity * function _authorizeUpgrade(address) internal override onlyOwner {} * ``` */ function _authorizeUpgrade(address newImplementation) internal virtual; uint256[50] private __gap; }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; /** * @dev This is a base contract to aid in writing upgradeable contracts, or any kind of contract that will be deployed * behind a proxy. Since a proxied contract can't have a constructor, it's common to move constructor logic to an * external initializer function, usually called `initialize`. It then becomes necessary to protect this initializer * function so it can only be called once. The {initializer} modifier provided by this contract will have this effect. * * TIP: To avoid leaving the proxy in an uninitialized state, the initializer function should be called as early as * possible by providing the encoded function call as the `_data` argument to {ERC1967Proxy-constructor}. * * CAUTION: When used with inheritance, manual care must be taken to not invoke a parent initializer twice, or to ensure * that all initializers are idempotent. This is not verified automatically as constructors are by Solidity. */ abstract contract Initializable { /** * @dev Indicates that the contract has been initialized. */ bool private _initialized; /** * @dev Indicates that the contract is in the process of being initialized. */ bool private _initializing; /** * @dev Modifier to protect an initializer function from being invoked twice. */ modifier initializer() { require(_initializing || !_initialized, "Initializable: contract is already initialized"); bool isTopLevelCall = !_initializing; if (isTopLevelCall) { _initializing = true; _initialized = true; } _; if (isTopLevelCall) { _initializing = false; } } }
// SPDX-License-Identifier: MIT OR Apache-2.0 pragma solidity ^0.8.2; import "@openzeppelin/contracts-upgradeable/proxy/utils/Initializable.sol"; import "@openzeppelin/contracts-upgradeable/utils/AddressUpgradeable.sol"; /** * @notice A reference to the treasury contract. */ abstract contract TreasuryNode is Initializable { using AddressUpgradeable for address payable; address payable private treasury; address payable private creatorPaymentAddress; uint256 private secondaryFakturaFeeBasisPoints; uint256 private secondaryCreatorFeeBasisPoints; /** * @dev Called once after the initial deployment to set the treasury address. */ function __TreasuryNode_init(address payable _treasury, address payable _creatorPaymentAddress, uint256 _secondaryFakturaFeeBasisPoints, uint256 _secondaryCreatorFeeBasisPoints) internal initializer { require(!_treasury.isContract(), "TreasuryNode: Address is a contract"); require(!_creatorPaymentAddress.isContract(), "CreatorNode: Address is a contract"); treasury = _treasury; creatorPaymentAddress = _creatorPaymentAddress; secondaryFakturaFeeBasisPoints = _secondaryFakturaFeeBasisPoints; secondaryCreatorFeeBasisPoints = _secondaryCreatorFeeBasisPoints; } /** * @notice Returns the address of the treasury. */ function getTreasury() public view returns (address payable) { return treasury; } /** * @notice Returns the address of the creator. */ function getTokenCreatorPaymentAddress() public view returns (address payable) { return creatorPaymentAddress; } function getFeeConfig() public view returns (uint256, uint256) { return (secondaryFakturaFeeBasisPoints,secondaryCreatorFeeBasisPoints); } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import "../../utils/introspection/IERC165Upgradeable.sol"; /** * @dev Required interface of an ERC721 compliant contract. */ interface IERC721Upgradeable is IERC165Upgradeable { /** * @dev Emitted when `tokenId` token is transferred from `from` to `to`. */ event Transfer(address indexed from, address indexed to, uint256 indexed tokenId); /** * @dev Emitted when `owner` enables `approved` to manage the `tokenId` token. */ event Approval(address indexed owner, address indexed approved, uint256 indexed tokenId); /** * @dev Emitted when `owner` enables or disables (`approved`) `operator` to manage all of its assets. */ event ApprovalForAll(address indexed owner, address indexed operator, bool approved); /** * @dev Returns the number of tokens in ``owner``'s account. */ function balanceOf(address owner) external view returns (uint256 balance); /** * @dev Returns the owner of the `tokenId` token. * * Requirements: * * - `tokenId` must exist. */ function ownerOf(uint256 tokenId) external view returns (address owner); /** * @dev Safely transfers `tokenId` token from `from` to `to`, checking first that contract recipients * are aware of the ERC721 protocol to prevent tokens from being forever locked. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must exist and be owned by `from`. * - If the caller is not `from`, it must be have been allowed to move this token by either {approve} or {setApprovalForAll}. * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */ function safeTransferFrom( address from, address to, uint256 tokenId ) external; /** * @dev Transfers `tokenId` token from `from` to `to`. * * WARNING: Usage of this method is discouraged, use {safeTransferFrom} whenever possible. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must be owned by `from`. * - If the caller is not `from`, it must be approved to move this token by either {approve} or {setApprovalForAll}. * * Emits a {Transfer} event. */ function transferFrom( address from, address to, uint256 tokenId ) external; /** * @dev Gives permission to `to` to transfer `tokenId` token to another account. * The approval is cleared when the token is transferred. * * Only a single account can be approved at a time, so approving the zero address clears previous approvals. * * Requirements: * * - The caller must own the token or be an approved operator. * - `tokenId` must exist. * * Emits an {Approval} event. */ function approve(address to, uint256 tokenId) external; /** * @dev Returns the account approved for `tokenId` token. * * Requirements: * * - `tokenId` must exist. */ function getApproved(uint256 tokenId) external view returns (address operator); /** * @dev Approve or remove `operator` as an operator for the caller. * Operators can call {transferFrom} or {safeTransferFrom} for any token owned by the caller. * * Requirements: * * - The `operator` cannot be the caller. * * Emits an {ApprovalForAll} event. */ function setApprovalForAll(address operator, bool _approved) external; /** * @dev Returns if the `operator` is allowed to manage all of the assets of `owner`. * * See {setApprovalForAll} */ function isApprovedForAll(address owner, address operator) external view returns (bool); /** * @dev Safely transfers `tokenId` token from `from` to `to`. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must exist and be owned by `from`. * - If the caller is not `from`, it must be approved to move this token by either {approve} or {setApprovalForAll}. * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */ function safeTransferFrom( address from, address to, uint256 tokenId, bytes calldata data ) external; }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; /** * @title ERC721 token receiver interface * @dev Interface for any contract that wants to support safeTransfers * from ERC721 asset contracts. */ interface IERC721ReceiverUpgradeable { /** * @dev Whenever an {IERC721} `tokenId` token is transferred to this contract via {IERC721-safeTransferFrom} * by `operator` from `from`, this function is called. * * It must return its Solidity selector to confirm the token transfer. * If any other value is returned or the interface is not implemented by the recipient, the transfer will be reverted. * * The selector can be obtained in Solidity with `IERC721.onERC721Received.selector`. */ function onERC721Received( address operator, address from, uint256 tokenId, bytes calldata data ) external returns (bytes4); }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import "../IERC721Upgradeable.sol"; /** * @title ERC-721 Non-Fungible Token Standard, optional metadata extension * @dev See https://eips.ethereum.org/EIPS/eip-721 */ interface IERC721MetadataUpgradeable is IERC721Upgradeable { /** * @dev Returns the token collection name. */ function name() external view returns (string memory); /** * @dev Returns the token collection symbol. */ function symbol() external view returns (string memory); /** * @dev Returns the Uniform Resource Identifier (URI) for `tokenId` token. */ function tokenURI(uint256 tokenId) external view returns (string memory); }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; /** * @dev Collection of functions related to the address type */ library AddressUpgradeable { /** * @dev Returns true if `account` is a contract. * * [IMPORTANT] * ==== * It is unsafe to assume that an address for which this function returns * false is an externally-owned account (EOA) and not a contract. * * Among others, `isContract` will return false for the following * types of addresses: * * - an externally-owned account * - a contract in construction * - an address where a contract will be created * - an address where a contract lived, but was destroyed * ==== */ function isContract(address account) internal view returns (bool) { // This method relies on extcodesize, which returns 0 for contracts in // construction, since the code is only stored at the end of the // constructor execution. uint256 size; assembly { size := extcodesize(account) } return size > 0; } /** * @dev Replacement for Solidity's `transfer`: sends `amount` wei to * `recipient`, forwarding all available gas and reverting on errors. * * https://eips.ethereum.org/EIPS/eip-1884[EIP1884] increases the gas cost * of certain opcodes, possibly making contracts go over the 2300 gas limit * imposed by `transfer`, making them unable to receive funds via * `transfer`. {sendValue} removes this limitation. * * https://diligence.consensys.net/posts/2019/09/stop-using-soliditys-transfer-now/[Learn more]. * * IMPORTANT: because control is transferred to `recipient`, care must be * taken to not create reentrancy vulnerabilities. Consider using * {ReentrancyGuard} or the * https://solidity.readthedocs.io/en/v0.5.11/security-considerations.html#use-the-checks-effects-interactions-pattern[checks-effects-interactions pattern]. */ function sendValue(address payable recipient, uint256 amount) internal { require(address(this).balance >= amount, "Address: insufficient balance"); (bool success, ) = recipient.call{value: amount}(""); require(success, "Address: unable to send value, recipient may have reverted"); } /** * @dev Performs a Solidity function call using a low level `call`. A * plain `call` is an unsafe replacement for a function call: use this * function instead. * * If `target` reverts with a revert reason, it is bubbled up by this * function (like regular Solidity function calls). * * Returns the raw returned data. To convert to the expected return value, * use https://solidity.readthedocs.io/en/latest/units-and-global-variables.html?highlight=abi.decode#abi-encoding-and-decoding-functions[`abi.decode`]. * * Requirements: * * - `target` must be a contract. * - calling `target` with `data` must not revert. * * _Available since v3.1._ */ function functionCall(address target, bytes memory data) internal returns (bytes memory) { return functionCall(target, data, "Address: low-level call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], but with * `errorMessage` as a fallback revert reason when `target` reverts. * * _Available since v3.1._ */ function functionCall( address target, bytes memory data, string memory errorMessage ) internal returns (bytes memory) { return functionCallWithValue(target, data, 0, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but also transferring `value` wei to `target`. * * Requirements: * * - the calling contract must have an ETH balance of at least `value`. * - the called Solidity function must be `payable`. * * _Available since v3.1._ */ function functionCallWithValue( address target, bytes memory data, uint256 value ) internal returns (bytes memory) { return functionCallWithValue(target, data, value, "Address: low-level call with value failed"); } /** * @dev Same as {xref-Address-functionCallWithValue-address-bytes-uint256-}[`functionCallWithValue`], but * with `errorMessage` as a fallback revert reason when `target` reverts. * * _Available since v3.1._ */ function functionCallWithValue( address target, bytes memory data, uint256 value, string memory errorMessage ) internal returns (bytes memory) { require(address(this).balance >= value, "Address: insufficient balance for call"); require(isContract(target), "Address: call to non-contract"); (bool success, bytes memory returndata) = target.call{value: value}(data); return verifyCallResult(success, returndata, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but performing a static call. * * _Available since v3.3._ */ function functionStaticCall(address target, bytes memory data) internal view returns (bytes memory) { return functionStaticCall(target, data, "Address: low-level static call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`], * but performing a static call. * * _Available since v3.3._ */ function functionStaticCall( address target, bytes memory data, string memory errorMessage ) internal view returns (bytes memory) { require(isContract(target), "Address: static call to non-contract"); (bool success, bytes memory returndata) = target.staticcall(data); return verifyCallResult(success, returndata, errorMessage); } /** * @dev Tool to verifies that a low level call was successful, and revert if it wasn't, either by bubbling the * revert reason using the provided one. * * _Available since v4.3._ */ function verifyCallResult( bool success, bytes memory returndata, string memory errorMessage ) internal pure returns (bytes memory) { if (success) { return returndata; } else { // Look for revert reason and bubble it up if present if (returndata.length > 0) { // The easiest way to bubble the revert reason is using memory via assembly assembly { let returndata_size := mload(returndata) revert(add(32, returndata), returndata_size) } } else { revert(errorMessage); } } } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import "../proxy/utils/Initializable.sol"; /** * @dev Provides information about the current execution context, including the * sender of the transaction and its data. While these are generally available * via msg.sender and msg.data, they should not be accessed in such a direct * manner, since when dealing with meta-transactions the account sending and * paying for execution may not be the actual sender (as far as an application * is concerned). * * This contract is only required for intermediate, library-like contracts. */ abstract contract ContextUpgradeable is Initializable { function __Context_init() internal initializer { __Context_init_unchained(); } function __Context_init_unchained() internal initializer { } function _msgSender() internal view virtual returns (address) { return msg.sender; } function _msgData() internal view virtual returns (bytes calldata) { return msg.data; } uint256[50] private __gap; }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import "./IERC165Upgradeable.sol"; import "../../proxy/utils/Initializable.sol"; /** * @dev Implementation of the {IERC165} interface. * * Contracts that want to implement ERC165 should inherit from this contract and override {supportsInterface} to check * for the additional interface id that will be supported. For example: * * ```solidity * function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) { * return interfaceId == type(MyInterface).interfaceId || super.supportsInterface(interfaceId); * } * ``` * * Alternatively, {ERC165Storage} provides an easier to use but more expensive implementation. */ abstract contract ERC165Upgradeable is Initializable, IERC165Upgradeable { function __ERC165_init() internal initializer { __ERC165_init_unchained(); } function __ERC165_init_unchained() internal initializer { } /** * @dev See {IERC165-supportsInterface}. */ function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) { return interfaceId == type(IERC165Upgradeable).interfaceId; } uint256[50] private __gap; }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; /** * @dev Interface of the ERC165 standard, as defined in the * https://eips.ethereum.org/EIPS/eip-165[EIP]. * * Implementers can declare support of contract interfaces, which can then be * queried by others ({ERC165Checker}). * * For an implementation, see {ERC165}. */ interface IERC165Upgradeable { /** * @dev Returns true if this contract implements the interface defined by * `interfaceId`. See the corresponding * https://eips.ethereum.org/EIPS/eip-165#how-interfaces-are-identified[EIP section] * to learn more about how these ids are created. * * This function call must use less than 30 000 gas. */ function supportsInterface(bytes4 interfaceId) external view returns (bool); }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import "../IERC721Upgradeable.sol"; /** * @title ERC-721 Non-Fungible Token Standard, optional enumeration extension * @dev See https://eips.ethereum.org/EIPS/eip-721 */ interface IERC721EnumerableUpgradeable is IERC721Upgradeable { /** * @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 tokenId); /** * @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); }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.2; import "../beacon/IBeaconUpgradeable.sol"; import "../../utils/AddressUpgradeable.sol"; import "../../utils/StorageSlotUpgradeable.sol"; import "../utils/Initializable.sol"; /** * @dev This abstract contract provides getters and event emitting update functions for * https://eips.ethereum.org/EIPS/eip-1967[EIP1967] slots. * * _Available since v4.1._ * * @custom:oz-upgrades-unsafe-allow delegatecall */ abstract contract ERC1967UpgradeUpgradeable is Initializable { function __ERC1967Upgrade_init() internal initializer { __ERC1967Upgrade_init_unchained(); } function __ERC1967Upgrade_init_unchained() internal initializer { } // This is the keccak-256 hash of "eip1967.proxy.rollback" subtracted by 1 bytes32 private constant _ROLLBACK_SLOT = 0x4910fdfa16fed3260ed0e7147f7cc6da11a60208b5b9406d12a635614ffd9143; /** * @dev Storage slot with the address of the current implementation. * This is the keccak-256 hash of "eip1967.proxy.implementation" subtracted by 1, and is * validated in the constructor. */ bytes32 internal constant _IMPLEMENTATION_SLOT = 0x360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc; /** * @dev Emitted when the implementation is upgraded. */ event Upgraded(address indexed implementation); /** * @dev Returns the current implementation address. */ function _getImplementation() internal view returns (address) { return StorageSlotUpgradeable.getAddressSlot(_IMPLEMENTATION_SLOT).value; } /** * @dev Stores a new address in the EIP1967 implementation slot. */ function _setImplementation(address newImplementation) private { require(AddressUpgradeable.isContract(newImplementation), "ERC1967: new implementation is not a contract"); StorageSlotUpgradeable.getAddressSlot(_IMPLEMENTATION_SLOT).value = newImplementation; } /** * @dev Perform implementation upgrade * * Emits an {Upgraded} event. */ function _upgradeTo(address newImplementation) internal { _setImplementation(newImplementation); emit Upgraded(newImplementation); } /** * @dev Perform implementation upgrade with additional setup call. * * Emits an {Upgraded} event. */ function _upgradeToAndCall( address newImplementation, bytes memory data, bool forceCall ) internal { _upgradeTo(newImplementation); if (data.length > 0 || forceCall) { _functionDelegateCall(newImplementation, data); } } /** * @dev Perform implementation upgrade with security checks for UUPS proxies, and additional setup call. * * Emits an {Upgraded} event. */ function _upgradeToAndCallSecure( address newImplementation, bytes memory data, bool forceCall ) internal { address oldImplementation = _getImplementation(); // Initial upgrade and setup call _setImplementation(newImplementation); if (data.length > 0 || forceCall) { _functionDelegateCall(newImplementation, data); } // Perform rollback test if not already in progress StorageSlotUpgradeable.BooleanSlot storage rollbackTesting = StorageSlotUpgradeable.getBooleanSlot(_ROLLBACK_SLOT); if (!rollbackTesting.value) { // Trigger rollback using upgradeTo from the new implementation rollbackTesting.value = true; _functionDelegateCall( newImplementation, abi.encodeWithSignature("upgradeTo(address)", oldImplementation) ); rollbackTesting.value = false; // Check rollback was effective require(oldImplementation == _getImplementation(), "ERC1967Upgrade: upgrade breaks further upgrades"); // Finally reset to the new implementation and log the upgrade _upgradeTo(newImplementation); } } /** * @dev Storage slot with the admin of the contract. * This is the keccak-256 hash of "eip1967.proxy.admin" subtracted by 1, and is * validated in the constructor. */ bytes32 internal constant _ADMIN_SLOT = 0xb53127684a568b3173ae13b9f8a6016e243e63b6e8ee1178d6a717850b5d6103; /** * @dev Emitted when the admin account has changed. */ event AdminChanged(address previousAdmin, address newAdmin); /** * @dev Returns the current admin. */ function _getAdmin() internal view returns (address) { return StorageSlotUpgradeable.getAddressSlot(_ADMIN_SLOT).value; } /** * @dev Stores a new address in the EIP1967 admin slot. */ function _setAdmin(address newAdmin) private { require(newAdmin != address(0), "ERC1967: new admin is the zero address"); StorageSlotUpgradeable.getAddressSlot(_ADMIN_SLOT).value = newAdmin; } /** * @dev Changes the admin of the proxy. * * Emits an {AdminChanged} event. */ function _changeAdmin(address newAdmin) internal { emit AdminChanged(_getAdmin(), newAdmin); _setAdmin(newAdmin); } /** * @dev The storage slot of the UpgradeableBeacon contract which defines the implementation for this proxy. * This is bytes32(uint256(keccak256('eip1967.proxy.beacon')) - 1)) and is validated in the constructor. */ bytes32 internal constant _BEACON_SLOT = 0xa3f0ad74e5423aebfd80d3ef4346578335a9a72aeaee59ff6cb3582b35133d50; /** * @dev Emitted when the beacon is upgraded. */ event BeaconUpgraded(address indexed beacon); /** * @dev Returns the current beacon. */ function _getBeacon() internal view returns (address) { return StorageSlotUpgradeable.getAddressSlot(_BEACON_SLOT).value; } /** * @dev Stores a new beacon in the EIP1967 beacon slot. */ function _setBeacon(address newBeacon) private { require(AddressUpgradeable.isContract(newBeacon), "ERC1967: new beacon is not a contract"); require( AddressUpgradeable.isContract(IBeaconUpgradeable(newBeacon).implementation()), "ERC1967: beacon implementation is not a contract" ); StorageSlotUpgradeable.getAddressSlot(_BEACON_SLOT).value = newBeacon; } /** * @dev Perform beacon upgrade with additional setup call. Note: This upgrades the address of the beacon, it does * not upgrade the implementation contained in the beacon (see {UpgradeableBeacon-_setImplementation} for that). * * Emits a {BeaconUpgraded} event. */ function _upgradeBeaconToAndCall( address newBeacon, bytes memory data, bool forceCall ) internal { _setBeacon(newBeacon); emit BeaconUpgraded(newBeacon); if (data.length > 0 || forceCall) { _functionDelegateCall(IBeaconUpgradeable(newBeacon).implementation(), data); } } /** * @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) private returns (bytes memory) { require(AddressUpgradeable.isContract(target), "Address: delegate call to non-contract"); // solhint-disable-next-line avoid-low-level-calls (bool success, bytes memory returndata) = target.delegatecall(data); return AddressUpgradeable.verifyCallResult(success, returndata, "Address: low-level delegate call failed"); } uint256[50] private __gap; }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; /** * @dev This is the interface that {BeaconProxy} expects of its beacon. */ interface IBeaconUpgradeable { /** * @dev Must return an address that can be used as a delegate call target. * * {BeaconProxy} will check that this address is a contract. */ function implementation() external view returns (address); }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; /** * @dev Library for reading and writing primitive types to specific storage slots. * * Storage slots are often used to avoid storage conflict when dealing with upgradeable contracts. * This library helps with reading and writing to such slots without the need for inline assembly. * * The functions in this library return Slot structs that contain a `value` member that can be used to read or write. * * Example usage to set ERC1967 implementation slot: * ``` * contract ERC1967 { * bytes32 internal constant _IMPLEMENTATION_SLOT = 0x360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc; * * function _getImplementation() internal view returns (address) { * return StorageSlot.getAddressSlot(_IMPLEMENTATION_SLOT).value; * } * * function _setImplementation(address newImplementation) internal { * require(Address.isContract(newImplementation), "ERC1967: new implementation is not a contract"); * StorageSlot.getAddressSlot(_IMPLEMENTATION_SLOT).value = newImplementation; * } * } * ``` * * _Available since v4.1 for `address`, `bool`, `bytes32`, and `uint256`._ */ library StorageSlotUpgradeable { struct AddressSlot { address value; } struct BooleanSlot { bool value; } struct Bytes32Slot { bytes32 value; } struct Uint256Slot { uint256 value; } /** * @dev Returns an `AddressSlot` with member `value` located at `slot`. */ function getAddressSlot(bytes32 slot) internal pure returns (AddressSlot storage r) { assembly { r.slot := slot } } /** * @dev Returns an `BooleanSlot` with member `value` located at `slot`. */ function getBooleanSlot(bytes32 slot) internal pure returns (BooleanSlot storage r) { assembly { r.slot := slot } } /** * @dev Returns an `Bytes32Slot` with member `value` located at `slot`. */ function getBytes32Slot(bytes32 slot) internal pure returns (Bytes32Slot storage r) { assembly { r.slot := slot } } /** * @dev Returns an `Uint256Slot` with member `value` located at `slot`. */ function getUint256Slot(bytes32 slot) internal pure returns (Uint256Slot storage r) { assembly { r.slot := slot } } }
{ "optimizer": { "enabled": true, "runs": 20000 }, "outputSelection": { "*": { "*": [ "evm.bytecode", "evm.deployedBytecode", "devdoc", "userdoc", "metadata", "abi" ] } }, "libraries": {} }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"previousAdmin","type":"address"},{"indexed":false,"internalType":"address","name":"newAdmin","type":"address"}],"name":"AdminChanged","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"approved","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":false,"internalType":"bool","name":"approved","type":"bool"}],"name":"ApprovalForAll","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"beacon","type":"address"}],"name":"BeaconUpgraded","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":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Transfer","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"implementation","type":"address"}],"name":"Upgraded","type":"event"},{"inputs":[],"name":"_tokenIdCounter","outputs":[{"internalType":"uint256","name":"_value","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"approve","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"burn","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"expectedTokenSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getApproved","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getFeeConfig","outputs":[{"internalType":"uint256","name":"","type":"uint256"},{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getTokenCreatorPaymentAddress","outputs":[{"internalType":"address payable","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getTreasury","outputs":[{"internalType":"address payable","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"string","name":"name","type":"string"},{"internalType":"string","name":"symbol","type":"string"},{"internalType":"uint256","name":"_mintPrice","type":"uint256"},{"internalType":"uint256","name":"_maxMintPerAddress","type":"uint256"},{"internalType":"uint256","name":"_mintReserve","type":"uint256"},{"internalType":"uint256[]","name":"_metadataAmount","type":"uint256[]"},{"internalType":"string","name":"_metadataURI","type":"string"},{"internalType":"address payable","name":"_fakturaPaymentAddress","type":"address"},{"internalType":"address payable","name":"_creatorPaymentAddress","type":"address"},{"internalType":"uint256","name":"_secondaryFakturaFeeBasisPoints","type":"uint256"},{"internalType":"uint256","name":"_secondaryCreatorFeeBasisPoints","type":"uint256"}],"name":"initialize","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"operator","type":"address"}],"name":"isApprovedForAll","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"lockTokenURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"maxMintPerAddress","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"mintPrice","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"ownerOf","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"safeBatchMint","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"}],"name":"safeMint","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"safeReserveMint","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"bytes","name":"_data","type":"bytes"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"operator","type":"address"},{"internalType":"bool","name":"approved","type":"bool"}],"name":"setApprovalForAll","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes4","name":"interfaceId","type":"bytes4"}],"name":"supportsInterface","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"index","type":"uint256"}],"name":"tokenByIndex","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"uint256","name":"index","type":"uint256"}],"name":"tokenOfOwnerByIndex","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"tokenURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"tokenURILocked","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"transferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"string","name":"_tokenURI","type":"string"}],"name":"updateTokenURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newImplementation","type":"address"}],"name":"upgradeTo","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newImplementation","type":"address"},{"internalType":"bytes","name":"data","type":"bytes"}],"name":"upgradeToAndCall","outputs":[],"stateMutability":"payable","type":"function"}]
Contract Creation Code
60a06040523060601b60805234801561001757600080fd5b5060805160601c614b0561004b60003960008181610c2f01528181610cc50152818161108201526111180152614b056000f3fe60806040526004361061024f5760003560e01c8063572849c4116101385780638da5cb5b116100b0578063b88d4fde1161007f578063e985e9c511610064578063e985e9c51461069c578063f2fde38b146106f2578063f9f49952146107125761024f565b8063b88d4fde1461065c578063c87b56dd1461067c5761024f565b80638da5cb5b146105dc57806395d89b4114610607578063a22cb4651461061c578063a2f359921461063c5761024f565b806370a0823111610107578063734f851e116100ec578063734f851e1461057357806384c4bd4b146105a457806385c748dd146105bc5761024f565b806370a082311461053e578063715018a61461055e5761024f565b8063572849c4146104c85780635fbbc0d2146104df5780636352211e146105075780636817c76c146105275761024f565b80633659cfe6116101cb57806342966c681161019a5780634f1ef2861161017f5780634f1ef2861461047e5780634f6ccce714610491578063556d8628146104b15761024f565b806342966c681461043e57806345c0c5021461045e5761024f565b80633659cfe6146103b95780633b19e84a146103d957806340d097c31461040b57806342842e0e1461041e5761024f565b8063095ea7b31161022257806318e97fd11161020757806318e97fd11461035957806323b872dd146103795780632f745c59146103995761024f565b8063095ea7b31461031757806318160ddd146103395761024f565b80630150bfdc1461025457806301ffc9a7146102a557806306fdde03146102d5578063081812fc146102f7575b600080fd5b34801561026057600080fd5b5060015473ffffffffffffffffffffffffffffffffffffffff165b60405173ffffffffffffffffffffffffffffffffffffffff90911681526020015b60405180910390f35b3480156102b157600080fd5b506102c56102c03660046144a9565b610725565b604051901515815260200161029c565b3480156102e157600080fd5b506102ea610738565b60405161029c919061481c565b34801561030357600080fd5b5061027b6103123660046145e0565b6107ca565b34801561032357600080fd5b5061033761033236600461447e565b61088f565b005b34801561034557600080fd5b50610198545b60405190815260200161029c565b34801561036557600080fd5b506103376103743660046145f8565b6109e8565b34801561038557600080fd5b50610337610394366004614355565b610ada565b3480156103a557600080fd5b5061034b6103b436600461447e565b610b62565b3480156103c557600080fd5b506103376103d4366004614301565b610c17565b3480156103e557600080fd5b5061027b60005462010000900473ffffffffffffffffffffffffffffffffffffffff1690565b610337610419366004614301565b610de9565b34801561042a57600080fd5b50610337610439366004614355565b610f1a565b34801561044a57600080fd5b506103376104593660046145e0565b610f35565b34801561046a57600080fd5b506103376104793660046145e0565b610fb9565b61033761048c366004614430565b61106a565b34801561049d57600080fd5b5061034b6104ac3660046145e0565b61122d565b3480156104bd57600080fd5b5061034b6101985481565b3480156104d457600080fd5b5061034b6101995481565b3480156104eb57600080fd5b506002546003546040805192835260208301919091520161029c565b34801561051357600080fd5b5061027b6105223660046145e0565b6112f8565b34801561053357600080fd5b5061034b61019b5481565b34801561054a57600080fd5b5061034b610559366004614301565b611390565b34801561056a57600080fd5b50610337611444565b34801561057f57600080fd5b506102c561058e3660046145e0565b6101946020526000908152604090205460ff1681565b3480156105b057600080fd5b5061019a5461034b9081565b3480156105c857600080fd5b506103376105d73660046144e1565b6114b7565b3480156105e857600080fd5b5060365473ffffffffffffffffffffffffffffffffffffffff1661027b565b34801561061357600080fd5b506102ea611779565b34801561062857600080fd5b506103376106373660046143ff565b611788565b34801561064857600080fd5b5061033761065736600461447e565b611881565b34801561066857600080fd5b50610337610677366004614395565b611963565b34801561068857600080fd5b506102ea6106973660046145e0565b6119f1565b3480156106a857600080fd5b506102c56106b736600461431d565b73ffffffffffffffffffffffffffffffffffffffff9182166000908152609f6020908152604080832093909416825291909152205460ff1690565b3480156106fe57600080fd5b5061033761070d366004614301565b611b2a565b61033761072036600461447e565b611c23565b600061073082611d88565b90505b919050565b6060609a80546107479061492a565b80601f01602080910402602001604051908101604052809291908181526020018280546107739061492a565b80156107c05780601f10610795576101008083540402835291602001916107c0565b820191906000526020600020905b8154815290600101906020018083116107a357829003601f168201915b5050505050905090565b6000818152609c602052604081205473ffffffffffffffffffffffffffffffffffffffff166108665760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a20617070726f76656420717565727920666f72206e6f6e657860448201527f697374656e7420746f6b656e000000000000000000000000000000000000000060648201526084015b60405180910390fd5b506000908152609e602052604090205473ffffffffffffffffffffffffffffffffffffffff1690565b600061089a826112f8565b90508073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff16141561093e5760405162461bcd60e51b815260206004820152602160248201527f4552433732313a20617070726f76616c20746f2063757272656e74206f776e6560448201527f7200000000000000000000000000000000000000000000000000000000000000606482015260840161085d565b3373ffffffffffffffffffffffffffffffffffffffff82161480610967575061096781336106b7565b6109d95760405162461bcd60e51b815260206004820152603860248201527f4552433732313a20617070726f76652063616c6c6572206973206e6f74206f7760448201527f6e6572206e6f7220617070726f76656420666f7220616c6c0000000000000000606482015260840161085d565b6109e38383611dde565b505050565b60365473ffffffffffffffffffffffffffffffffffffffff163314610a4f5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015260640161085d565b6000838152609c602052604090205473ffffffffffffffffffffffffffffffffffffffff16610a7d57600080fd5b6000838152610194602052604090205460ff1615610a9a57600080fd5b6109e38383838080601f016020809104026020016040519081016040528093929190818152602001838380828437600092019190915250611e7e92505050565b610ae5335b82611f35565b610b575760405162461bcd60e51b815260206004820152603160248201527f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f60448201527f776e6572206e6f7220617070726f766564000000000000000000000000000000606482015260840161085d565b6109e383838361208b565b6000610b6d83611390565b8210610be15760405162461bcd60e51b815260206004820152602b60248201527f455243373231456e756d657261626c653a206f776e657220696e646578206f7560448201527f74206f6620626f756e6473000000000000000000000000000000000000000000606482015260840161085d565b5073ffffffffffffffffffffffffffffffffffffffff91909116600090815260cc60209081526040808320938352929052205490565b3073ffffffffffffffffffffffffffffffffffffffff7f0000000000000000000000000000000000000000000000000000000000000000161415610cc35760405162461bcd60e51b815260206004820152602c60248201527f46756e6374696f6e206d7573742062652063616c6c6564207468726f7567682060448201527f64656c656761746563616c6c0000000000000000000000000000000000000000606482015260840161085d565b7f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff16610d387f360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc5473ffffffffffffffffffffffffffffffffffffffff1690565b73ffffffffffffffffffffffffffffffffffffffff1614610dc15760405162461bcd60e51b815260206004820152602c60248201527f46756e6374696f6e206d7573742062652063616c6c6564207468726f7567682060448201527f6163746976652070726f78790000000000000000000000000000000000000000606482015260840161085d565b610dca816122c9565b60408051600080825260208201909252610de691839190612330565b50565b61019c5461019854610dfb91906148e7565b61019a5410610e4c5760405162461bcd60e51b815260206004820152601960248201527f54686572652773206e6f20746f6b656e20746f206d696e742e00000000000000604482015260640161085d565b61019954336000908152610196602052604090205410610eae5760405162461bcd60e51b815260206004820181905260248201527f4f6e6520616464726573732063616e206d696e74203130207469636b6574732e604482015260640161085d565b61019b5415610f11573461019b5414610f095760405162461bcd60e51b815260206004820152601a60248201527f4d696e74207072696365206973206e6f7420636f72726563742e000000000000604482015260640161085d565b610f11612539565b610de68161264a565b6109e383838360405180602001604052806000815250611963565b610f3e33610adf565b610fb05760405162461bcd60e51b815260206004820152603060248201527f4552433732314275726e61626c653a2063616c6c6572206973206e6f74206f7760448201527f6e6572206e6f7220617070726f76656400000000000000000000000000000000606482015260840161085d565b610de6816128b3565b60365473ffffffffffffffffffffffffffffffffffffffff1633146110205760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015260640161085d565b6000818152609c602052604090205473ffffffffffffffffffffffffffffffffffffffff1661104e57600080fd5b600090815261019460205260409020805460ff19166001179055565b3073ffffffffffffffffffffffffffffffffffffffff7f00000000000000000000000000000000000000000000000000000000000000001614156111165760405162461bcd60e51b815260206004820152602c60248201527f46756e6374696f6e206d7573742062652063616c6c6564207468726f7567682060448201527f64656c656761746563616c6c0000000000000000000000000000000000000000606482015260840161085d565b7f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff1661118b7f360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc5473ffffffffffffffffffffffffffffffffffffffff1690565b73ffffffffffffffffffffffffffffffffffffffff16146112145760405162461bcd60e51b815260206004820152602c60248201527f46756e6374696f6e206d7573742062652063616c6c6564207468726f7567682060448201527f6163746976652070726f78790000000000000000000000000000000000000000606482015260840161085d565b61121d826122c9565b61122982826001612330565b5050565b600061123860ce5490565b82106112ac5760405162461bcd60e51b815260206004820152602c60248201527f455243373231456e756d657261626c653a20676c6f62616c20696e646578206f60448201527f7574206f6620626f756e64730000000000000000000000000000000000000000606482015260840161085d565b60ce82815481106112e6577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b90600052602060002001549050919050565b6000818152609c602052604081205473ffffffffffffffffffffffffffffffffffffffff16806107305760405162461bcd60e51b815260206004820152602960248201527f4552433732313a206f776e657220717565727920666f72206e6f6e657869737460448201527f656e7420746f6b656e0000000000000000000000000000000000000000000000606482015260840161085d565b600073ffffffffffffffffffffffffffffffffffffffff821661141b5760405162461bcd60e51b815260206004820152602a60248201527f4552433732313a2062616c616e636520717565727920666f7220746865207a6560448201527f726f206164647265737300000000000000000000000000000000000000000000606482015260840161085d565b5073ffffffffffffffffffffffffffffffffffffffff166000908152609d602052604090205490565b60365473ffffffffffffffffffffffffffffffffffffffff1633146114ab5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015260640161085d565b6114b560006128bc565b565b600054610100900460ff16806114d0575060005460ff16155b6115425760405162461bcd60e51b815260206004820152602e60248201527f496e697469616c697a61626c653a20636f6e747261637420697320616c72656160448201527f647920696e697469616c697a6564000000000000000000000000000000000000606482015260840161085d565b600054610100900460ff1615801561156d576000805460ff1961ff0019909116610100171660011790555b61157985858585612933565b6115838c8c612b9d565b61158b612c83565b611593612c83565b61159b612d65565b6115a3612e2b565b61019b8a905561019989905585516115c39061019d906020890190614152565b5061019c88905560005b875181101561174857600060405180606001604052808381526020018a8481518110611622577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b6020026020010151815260200161019a6040518060200160405290816000820154815250508152509050888281518110611685577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b6020026020010151610198600082825461169f919061487e565b9091555050610197805460018101825560009190915281517f3ea4d693734e62a1b4642df418cf4aae0e5ba336a2d6024b2d33585611a4e2eb60039092029182015560208201517f3ea4d693734e62a1b4642df418cf4aae0e5ba336a2d6024b2d33585611a4e2ec820155604090910151517f3ea4d693734e62a1b4642df418cf4aae0e5ba336a2d6024b2d33585611a4e2ed90910155806117408161497e565b9150506115cd565b506000610198541161175957600080fd5b801561176b576000805461ff00191690555b505050505050505050505050565b6060609b80546107479061492a565b73ffffffffffffffffffffffffffffffffffffffff82163314156117ee5760405162461bcd60e51b815260206004820152601960248201527f4552433732313a20617070726f766520746f2063616c6c657200000000000000604482015260640161085d565b336000818152609f6020908152604080832073ffffffffffffffffffffffffffffffffffffffff87168085529252909120805460ff19168415151790559073ffffffffffffffffffffffffffffffffffffffff167f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c3183604051611875911515815260200190565b60405180910390a35050565b60365473ffffffffffffffffffffffffffffffffffffffff1633146118e85760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015260640161085d565b6101985461019a541061193d5760405162461bcd60e51b815260206004820152601960248201527f54686572652773206e6f20746f6b656e20746f206d696e742e00000000000000604482015260640161085d565b60005b818110156109e3576119518361264a565b8061195b8161497e565b915050611940565b61196d3383611f35565b6119df5760405162461bcd60e51b815260206004820152603160248201527f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f60448201527f776e6572206e6f7220617070726f766564000000000000000000000000000000606482015260840161085d565b6119eb84848484612ee8565b50505050565b6000818152609c602052604090205460609073ffffffffffffffffffffffffffffffffffffffff16611a8b5760405162461bcd60e51b815260206004820152602f60248201527f4552433732314d657461646174613a2055524920717565727920666f72206e6f60448201527f6e6578697374656e7420746f6b656e0000000000000000000000000000000000606482015260840161085d565b6000828152610195602052604090208054611aa59061492a565b80601f0160208091040260200160405190810160405280929190818152602001828054611ad19061492a565b8015611b1e5780601f10611af357610100808354040283529160200191611b1e565b820191906000526020600020905b815481529060010190602001808311611b0157829003601f168201915b50505050509050919050565b60365473ffffffffffffffffffffffffffffffffffffffff163314611b915760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015260640161085d565b73ffffffffffffffffffffffffffffffffffffffff8116611c1a5760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201527f6464726573730000000000000000000000000000000000000000000000000000606482015260840161085d565b610de6816128bc565b61019c5461019854611c3591906148e7565b61019a5410611c865760405162461bcd60e51b815260206004820152601960248201527f54686572652773206e6f20746f6b656e20746f206d696e742e00000000000000604482015260640161085d565b610199543360009081526101966020526040902054611ca690839061487e565b1115611cf45760405162461bcd60e51b815260206004820181905260248201527f4f6e6520616464726573732063616e206d696e74203130207469636b6574732e604482015260640161085d565b61019b5415611d6257348161019b54611d0d91906148aa565b14611d5a5760405162461bcd60e51b815260206004820152601a60248201527f4d696e74207072696365206973206e6f7420636f72726563742e000000000000604482015260640161085d565b611d62612539565b60005b818110156109e357611d768361264a565b80611d808161497e565b915050611d65565b60007fffffffff0000000000000000000000000000000000000000000000000000000082167f780e9d63000000000000000000000000000000000000000000000000000000001480610730575061073082612f71565b6000818152609e6020526040902080547fffffffffffffffffffffffff00000000000000000000000000000000000000001673ffffffffffffffffffffffffffffffffffffffff84169081179091558190611e38826112f8565b73ffffffffffffffffffffffffffffffffffffffff167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b6000828152609c602052604090205473ffffffffffffffffffffffffffffffffffffffff16611f155760405162461bcd60e51b815260206004820152602c60248201527f4552433732314d657461646174613a2055524920736574206f66206e6f6e657860448201527f697374656e7420746f6b656e0000000000000000000000000000000000000000606482015260840161085d565b60008281526101956020908152604090912082516109e392840190614152565b6000818152609c602052604081205473ffffffffffffffffffffffffffffffffffffffff16611fcc5760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a206f70657261746f7220717565727920666f72206e6f6e657860448201527f697374656e7420746f6b656e0000000000000000000000000000000000000000606482015260840161085d565b6000611fd7836112f8565b90508073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff16148061204657508373ffffffffffffffffffffffffffffffffffffffff1661202e846107ca565b73ffffffffffffffffffffffffffffffffffffffff16145b80612083575073ffffffffffffffffffffffffffffffffffffffff8082166000908152609f602090815260408083209388168352929052205460ff165b949350505050565b8273ffffffffffffffffffffffffffffffffffffffff166120ab826112f8565b73ffffffffffffffffffffffffffffffffffffffff16146121345760405162461bcd60e51b815260206004820152602960248201527f4552433732313a207472616e73666572206f6620746f6b656e2074686174206960448201527f73206e6f74206f776e0000000000000000000000000000000000000000000000606482015260840161085d565b73ffffffffffffffffffffffffffffffffffffffff82166121bc5760405162461bcd60e51b8152602060048201526024808201527f4552433732313a207472616e7366657220746f20746865207a65726f2061646460448201527f7265737300000000000000000000000000000000000000000000000000000000606482015260840161085d565b6121c7838383613054565b6121d2600082611dde565b73ffffffffffffffffffffffffffffffffffffffff83166000908152609d602052604081208054600192906122089084906148e7565b909155505073ffffffffffffffffffffffffffffffffffffffff82166000908152609d6020526040812080546001929061224390849061487e565b90915550506000818152609c602052604080822080547fffffffffffffffffffffffff00000000000000000000000000000000000000001673ffffffffffffffffffffffffffffffffffffffff86811691821790925591518493918716917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91a4505050565b60365473ffffffffffffffffffffffffffffffffffffffff163314610de65760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015260640161085d565b60006123707f360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc5473ffffffffffffffffffffffffffffffffffffffff1690565b905061237b8461305f565b6000835111806123885750815b15612399576123978484613139565b505b7f4910fdfa16fed3260ed0e7147f7cc6da11a60208b5b9406d12a635614ffd9143805460ff1661253257805460ff1916600117815560405173ffffffffffffffffffffffffffffffffffffffff83166024820152612471908690604401604080517fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe08184030181529190526020810180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff167f3659cfe600000000000000000000000000000000000000000000000000000000179052613139565b50805460ff191681557f360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc5473ffffffffffffffffffffffffffffffffffffffff8381169116146125295760405162461bcd60e51b815260206004820152602f60248201527f45524331393637557067726164653a207570677261646520627265616b73206660448201527f7572746865722075706772616465730000000000000000000000000000000000606482015260840161085d565b61253285613248565b5050505050565b6000806125496002546003549091565b91509150600061257460005462010000900473ffffffffffffffffffffffffffffffffffffffff1690565b905073ffffffffffffffffffffffffffffffffffffffff81166108fc606461259c86346148aa565b6125a69190614896565b6040518115909202916000818181858888f193505050501580156125ce573d6000803e3d6000fd5b5060006125f060015473ffffffffffffffffffffffffffffffffffffffff1690565b905073ffffffffffffffffffffffffffffffffffffffff81166108fc606461261886346148aa565b6126229190614896565b6040518115909202916000818181858888f19350505050158015612532573d6000803e3d6000fd5b612652613295565b61019754600090612665906001906148e7565b905061267a8261267561019a5490565b6134e3565b61270461268761019a5490565b61019d6126df61019785815481106126c8577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b9060005260206000209060030201600001546134fd565b6040516020016126f09291906146f1565b604051602081830303815290604052611e7e565b61275c6101978281548110612742577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b906000526020600020906003020160020180546001019055565b6101978181548110612797577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b9060005260206000209060030201600101546127fc61019783815481106127e7577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b90600052602060002090600302016002015490565b141561287f5761019780548061283b577f4e487b7100000000000000000000000000000000000000000000000000000000600052603160045260246000fd5b60008281526020812060037fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff90930192830201818155600181018290556002015590555b61288e61019a80546001019055565b336000908152610196602052604081208054916128aa8361497e565b91905055505050565b610de68161367e565b6036805473ffffffffffffffffffffffffffffffffffffffff8381167fffffffffffffffffffffffff0000000000000000000000000000000000000000831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b600054610100900460ff168061294c575060005460ff16155b6129be5760405162461bcd60e51b815260206004820152602e60248201527f496e697469616c697a61626c653a20636f6e747261637420697320616c72656160448201527f647920696e697469616c697a6564000000000000000000000000000000000000606482015260840161085d565b600054610100900460ff161580156129e9576000805460ff1961ff0019909116610100171660011790555b73ffffffffffffffffffffffffffffffffffffffff85163b15612a745760405162461bcd60e51b815260206004820152602360248201527f54726561737572794e6f64653a2041646472657373206973206120636f6e747260448201527f6163740000000000000000000000000000000000000000000000000000000000606482015260840161085d565b73ffffffffffffffffffffffffffffffffffffffff84163b15612aff5760405162461bcd60e51b815260206004820152602260248201527f43726561746f724e6f64653a2041646472657373206973206120636f6e74726160448201527f6374000000000000000000000000000000000000000000000000000000000000606482015260840161085d565b600080547fffffffffffffffffffff0000000000000000000000000000000000000000ffff166201000073ffffffffffffffffffffffffffffffffffffffff8881169190910291909117909155600180547fffffffffffffffffffffffff000000000000000000000000000000000000000016918616919091179055600283905560038290558015612532576000805461ff00191690555050505050565b600054610100900460ff1680612bb6575060005460ff16155b612c285760405162461bcd60e51b815260206004820152602e60248201527f496e697469616c697a61626c653a20636f6e747261637420697320616c72656160448201527f647920696e697469616c697a6564000000000000000000000000000000000000606482015260840161085d565b600054610100900460ff16158015612c53576000805460ff1961ff0019909116610100171660011790555b612c5b613757565b612c63613757565b612c6d8383613820565b80156109e3576000805461ff0019169055505050565b600054610100900460ff1680612c9c575060005460ff16155b612d0e5760405162461bcd60e51b815260206004820152602e60248201527f496e697469616c697a61626c653a20636f6e747261637420697320616c72656160448201527f647920696e697469616c697a6564000000000000000000000000000000000000606482015260840161085d565b600054610100900460ff16158015612d39576000805460ff1961ff0019909116610100171660011790555b612d41613757565b612d49613757565b612d51613757565b8015610de6576000805461ff001916905550565b600054610100900460ff1680612d7e575060005460ff16155b612df05760405162461bcd60e51b815260206004820152602e60248201527f496e697469616c697a61626c653a20636f6e747261637420697320616c72656160448201527f647920696e697469616c697a6564000000000000000000000000000000000000606482015260840161085d565b600054610100900460ff16158015612e1b576000805460ff1961ff0019909116610100171660011790555b612e23613757565b612d51613914565b600054610100900460ff1680612e44575060005460ff16155b612eb65760405162461bcd60e51b815260206004820152602e60248201527f496e697469616c697a61626c653a20636f6e747261637420697320616c72656160448201527f647920696e697469616c697a6564000000000000000000000000000000000000606482015260840161085d565b600054610100900460ff16158015612d41576000805460ff1961ff001990911661010017166001179055612d49613757565b612ef384848461208b565b612eff848484846139d3565b6119eb5760405162461bcd60e51b815260206004820152603260248201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560448201527f63656976657220696d706c656d656e7465720000000000000000000000000000606482015260840161085d565b60007fffffffff0000000000000000000000000000000000000000000000000000000082167f80ac58cd00000000000000000000000000000000000000000000000000000000148061300457507fffffffff0000000000000000000000000000000000000000000000000000000082167f5b5e139f00000000000000000000000000000000000000000000000000000000145b8061073057507f01ffc9a7000000000000000000000000000000000000000000000000000000007fffffffff00000000000000000000000000000000000000000000000000000000831614610730565b6109e3838383613bb8565b803b6130d35760405162461bcd60e51b815260206004820152602d60248201527f455243313936373a206e657720696d706c656d656e746174696f6e206973206e60448201527f6f74206120636f6e747261637400000000000000000000000000000000000000606482015260840161085d565b7f360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc80547fffffffffffffffffffffffff00000000000000000000000000000000000000001673ffffffffffffffffffffffffffffffffffffffff92909216919091179055565b6060823b6131af5760405162461bcd60e51b815260206004820152602660248201527f416464726573733a2064656c65676174652063616c6c20746f206e6f6e2d636f60448201527f6e74726163740000000000000000000000000000000000000000000000000000606482015260840161085d565b6000808473ffffffffffffffffffffffffffffffffffffffff16846040516131d791906146d5565b600060405180830381855af49150503d8060008114613212576040519150601f19603f3d011682016040523d82523d6000602084013e613217565b606091505b509150915061323f8282604051806060016040528060278152602001614aa960279139613cc3565b95945050505050565b6132518161305f565b60405173ffffffffffffffffffffffffffffffffffffffff8216907fbc7cd75a20ee27fd9adebab32041f755214dbc6bffa90cc0225b39da2e5c2d3b90600090a250565b60005b61019754811015610de657610197546000906132b59083906148e7565b42336132c161019a5490565b6040516020016133099392919092835260609190911b7fffffffffffffffffffffffffffffffffffffffff000000000000000000000000166020830152603482015260540190565b6040516020818303038152906040528051906020012060001c61332c91906149b7565b613336908361487e565b905060006101978281548110613375577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b60009182526020918290206040805160608101825260039093029091018054835260018101548385015281519384018252600201548352810191909152610197805491925090849081106133f2577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b9060005260206000209060030201610197838154811061343b577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b600091825260209091208254600390920201908155600180830154908201556002918201549101556101978054829190859081106134a2577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b6000918252602091829020835160039092020190815590820151600182015560409091015151600290910155508190506134db8161497e565b915050613298565b611229828260405180602001604052806000815250613d03565b60608161353e575060408051808201909152600181527f30000000000000000000000000000000000000000000000000000000000000006020820152610733565b8160005b811561356857806135528161497e565b91506135619050600a83614896565b9150613542565b60008167ffffffffffffffff8111156135aa577f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b6040519080825280601f01601f1916602001820160405280156135d4576020820181803683370190505b5090505b8415612083576135e96001836148e7565b91506135f6600a866149b7565b61360190603061487e565b60f81b81838151811061363d577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a905350613677600a86614896565b94506135d8565b6000613689826112f8565b905061369781600084613054565b6136a2600083611dde565b73ffffffffffffffffffffffffffffffffffffffff81166000908152609d602052604081208054600192906136d89084906148e7565b90915550506000828152609c602052604080822080547fffffffffffffffffffffffff00000000000000000000000000000000000000001690555183919073ffffffffffffffffffffffffffffffffffffffff8416907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908390a45050565b600054610100900460ff1680613770575060005460ff16155b6137e25760405162461bcd60e51b815260206004820152602e60248201527f496e697469616c697a61626c653a20636f6e747261637420697320616c72656160448201527f647920696e697469616c697a6564000000000000000000000000000000000000606482015260840161085d565b600054610100900460ff16158015612d51576000805460ff1961ff0019909116610100171660011790558015610de6576000805461ff001916905550565b600054610100900460ff1680613839575060005460ff16155b6138ab5760405162461bcd60e51b815260206004820152602e60248201527f496e697469616c697a61626c653a20636f6e747261637420697320616c72656160448201527f647920696e697469616c697a6564000000000000000000000000000000000000606482015260840161085d565b600054610100900460ff161580156138d6576000805460ff1961ff0019909116610100171660011790555b82516138e990609a906020860190614152565b5081516138fd90609b906020850190614152565b5080156109e3576000805461ff0019169055505050565b600054610100900460ff168061392d575060005460ff16155b61399f5760405162461bcd60e51b815260206004820152602e60248201527f496e697469616c697a61626c653a20636f6e747261637420697320616c72656160448201527f647920696e697469616c697a6564000000000000000000000000000000000000606482015260840161085d565b600054610100900460ff161580156139ca576000805460ff1961ff0019909116610100171660011790555b612d51336128bc565b600073ffffffffffffffffffffffffffffffffffffffff84163b15613bad576040517f150b7a0200000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff85169063150b7a0290613a4a9033908990889088906004016147d3565b602060405180830381600087803b158015613a6457600080fd5b505af1925050508015613ab2575060408051601f3d9081017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0168201909252613aaf918101906144c5565b60015b613b62573d808015613ae0576040519150601f19603f3d011682016040523d82523d6000602084013e613ae5565b606091505b508051613b5a5760405162461bcd60e51b815260206004820152603260248201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560448201527f63656976657220696d706c656d656e7465720000000000000000000000000000606482015260840161085d565b805181602001fd5b7fffffffff00000000000000000000000000000000000000000000000000000000167f150b7a0200000000000000000000000000000000000000000000000000000000149050612083565b506001949350505050565b73ffffffffffffffffffffffffffffffffffffffff8316613c2057613c1b8160ce8054600083815260cf60205260408120829055600182018355919091527fd36cd1c74ef8d7326d8021b776c18fb5a5724b7f7bc93c2f42e43e10ef27d12a0155565b613c5d565b8173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff1614613c5d57613c5d8382613d8c565b73ffffffffffffffffffffffffffffffffffffffff8216613c8657613c8181613e43565b6109e3565b8273ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff16146109e3576109e38282613f67565b60608315613cd2575081613cfc565b825115613ce25782518084602001fd5b8160405162461bcd60e51b815260040161085d919061481c565b9392505050565b613d0d8383613fb8565b613d1a60008484846139d3565b6109e35760405162461bcd60e51b815260206004820152603260248201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560448201527f63656976657220696d706c656d656e7465720000000000000000000000000000606482015260840161085d565b60006001613d9984611390565b613da391906148e7565b600083815260cd6020526040902054909150808214613e035773ffffffffffffffffffffffffffffffffffffffff8416600090815260cc60209081526040808320858452825280832054848452818420819055835260cd90915290208190555b50600091825260cd6020908152604080842084905573ffffffffffffffffffffffffffffffffffffffff909416835260cc81528383209183525290812055565b60ce54600090613e55906001906148e7565b600083815260cf602052604081205460ce8054939450909284908110613ea4577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b906000526020600020015490508060ce8381548110613eec577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b600091825260208083209091019290925582815260cf909152604080822084905585825281205560ce805480613f4b577f4e487b7100000000000000000000000000000000000000000000000000000000600052603160045260246000fd5b6001900381819060005260206000200160009055905550505050565b6000613f7283611390565b73ffffffffffffffffffffffffffffffffffffffff909316600090815260cc60209081526040808320868452825280832085905593825260cd9052919091209190915550565b73ffffffffffffffffffffffffffffffffffffffff821661401b5760405162461bcd60e51b815260206004820181905260248201527f4552433732313a206d696e7420746f20746865207a65726f2061646472657373604482015260640161085d565b6000818152609c602052604090205473ffffffffffffffffffffffffffffffffffffffff161561408d5760405162461bcd60e51b815260206004820152601c60248201527f4552433732313a20746f6b656e20616c7265616479206d696e74656400000000604482015260640161085d565b61409960008383613054565b73ffffffffffffffffffffffffffffffffffffffff82166000908152609d602052604081208054600192906140cf90849061487e565b90915550506000818152609c602052604080822080547fffffffffffffffffffffffff00000000000000000000000000000000000000001673ffffffffffffffffffffffffffffffffffffffff861690811790915590518392907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b82805461415e9061492a565b90600052602060002090601f01602090048101928261418057600085556141c6565b82601f1061419957805160ff19168380011785556141c6565b828001600101855582156141c6579182015b828111156141c65782518255916020019190600101906141ab565b506141d29291506141d6565b5090565b5b808211156141d257600081556001016141d7565b803561073381614a58565b600082601f830112614206578081fd5b8135602067ffffffffffffffff82111561422257614222614a29565b80820261423082820161482f565b83815282810190868401838801850189101561424a578687fd5b8693505b8584101561426c57803583526001939093019291840191840161424e565b50979650505050505050565b600082601f830112614288578081fd5b813567ffffffffffffffff8111156142a2576142a2614a29565b6142d360207fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0601f8401160161482f565b8181528460208386010111156142e7578283fd5b816020850160208301379081016020019190915292915050565b600060208284031215614312578081fd5b8135613cfc81614a58565b6000806040838503121561432f578081fd5b823561433a81614a58565b9150602083013561434a81614a58565b809150509250929050565b600080600060608486031215614369578081fd5b833561437481614a58565b9250602084013561438481614a58565b929592945050506040919091013590565b600080600080608085870312156143aa578081fd5b84356143b581614a58565b935060208501356143c581614a58565b925060408501359150606085013567ffffffffffffffff8111156143e7578182fd5b6143f387828801614278565b91505092959194509250565b60008060408385031215614411578182fd5b823561441c81614a58565b91506020830135801515811461434a578182fd5b60008060408385031215614442578182fd5b823561444d81614a58565b9150602083013567ffffffffffffffff811115614468578182fd5b61447485828601614278565b9150509250929050565b60008060408385031215614490578182fd5b823561449b81614a58565b946020939093013593505050565b6000602082840312156144ba578081fd5b8135613cfc81614a7a565b6000602082840312156144d6578081fd5b8151613cfc81614a7a565b60008060008060008060008060008060006101608c8e031215614502578687fd5b67ffffffffffffffff808d351115614518578788fd5b6145258e8e358f01614278565b9b508060208e01351115614537578788fd5b6145478e60208f01358f01614278565b9a5060408d0135995060608d0135985060808d013597508060a08e0135111561456e578687fd5b61457e8e60a08f01358f016141f6565b96508060c08e01351115614590578586fd5b506145a18d60c08e01358e01614278565b94506145af60e08d016141eb565b93506145be6101008d016141eb565b92506101208c013591506101408c013590509295989b509295989b9093969950565b6000602082840312156145f1578081fd5b5035919050565b60008060006040848603121561460c578081fd5b83359250602084013567ffffffffffffffff8082111561462a578283fd5b818601915086601f83011261463d578283fd5b81358181111561464b578384fd5b87602082850101111561465c578384fd5b6020830194508093505050509250925092565b600081518084526146878160208601602086016148fe565b601f017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0169290920160200192915050565b600081516146cb8185602086016148fe565b9290920192915050565b600082516146e78184602087016148fe565b9190910192915050565b825460009081906002810460018083168061470d57607f831692505b6020808410821415614746577f4e487b710000000000000000000000000000000000000000000000000000000087526022600452602487fd5b81801561475a576001811461476b57614797565b60ff19861689528489019650614797565b60008b815260209020885b8681101561478f5781548b820152908501908301614776565b505084890196505b50505050505061323f6147aa82866146b9565b7f2e6a736f6e000000000000000000000000000000000000000000000000000000815260050190565b600073ffffffffffffffffffffffffffffffffffffffff808716835280861660208401525083604083015260806060830152614812608083018461466f565b9695505050505050565b600060208252613cfc602083018461466f565b604051601f82017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe016810167ffffffffffffffff8111828210171561487657614876614a29565b604052919050565b60008219821115614891576148916149cb565b500190565b6000826148a5576148a56149fa565b500490565b6000817fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff04831182151516156148e2576148e26149cb565b500290565b6000828210156148f9576148f96149cb565b500390565b60005b83811015614919578181015183820152602001614901565b838111156119eb5750506000910152565b60028104600182168061493e57607f821691505b60208210811415614978577f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b50919050565b60007fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff8214156149b0576149b06149cb565b5060010190565b6000826149c6576149c66149fa565b500690565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b73ffffffffffffffffffffffffffffffffffffffff81168114610de657600080fd5b7fffffffff0000000000000000000000000000000000000000000000000000000081168114610de657600080fdfe416464726573733a206c6f772d6c6576656c2064656c65676174652063616c6c206661696c6564a2646970667358221220073d9641afd3a0d9c0fa25d3b7afcdbb929e1be832c58654155bd78eb1160bf164736f6c63430008020033
Deployed Bytecode
0x60806040526004361061024f5760003560e01c8063572849c4116101385780638da5cb5b116100b0578063b88d4fde1161007f578063e985e9c511610064578063e985e9c51461069c578063f2fde38b146106f2578063f9f49952146107125761024f565b8063b88d4fde1461065c578063c87b56dd1461067c5761024f565b80638da5cb5b146105dc57806395d89b4114610607578063a22cb4651461061c578063a2f359921461063c5761024f565b806370a0823111610107578063734f851e116100ec578063734f851e1461057357806384c4bd4b146105a457806385c748dd146105bc5761024f565b806370a082311461053e578063715018a61461055e5761024f565b8063572849c4146104c85780635fbbc0d2146104df5780636352211e146105075780636817c76c146105275761024f565b80633659cfe6116101cb57806342966c681161019a5780634f1ef2861161017f5780634f1ef2861461047e5780634f6ccce714610491578063556d8628146104b15761024f565b806342966c681461043e57806345c0c5021461045e5761024f565b80633659cfe6146103b95780633b19e84a146103d957806340d097c31461040b57806342842e0e1461041e5761024f565b8063095ea7b31161022257806318e97fd11161020757806318e97fd11461035957806323b872dd146103795780632f745c59146103995761024f565b8063095ea7b31461031757806318160ddd146103395761024f565b80630150bfdc1461025457806301ffc9a7146102a557806306fdde03146102d5578063081812fc146102f7575b600080fd5b34801561026057600080fd5b5060015473ffffffffffffffffffffffffffffffffffffffff165b60405173ffffffffffffffffffffffffffffffffffffffff90911681526020015b60405180910390f35b3480156102b157600080fd5b506102c56102c03660046144a9565b610725565b604051901515815260200161029c565b3480156102e157600080fd5b506102ea610738565b60405161029c919061481c565b34801561030357600080fd5b5061027b6103123660046145e0565b6107ca565b34801561032357600080fd5b5061033761033236600461447e565b61088f565b005b34801561034557600080fd5b50610198545b60405190815260200161029c565b34801561036557600080fd5b506103376103743660046145f8565b6109e8565b34801561038557600080fd5b50610337610394366004614355565b610ada565b3480156103a557600080fd5b5061034b6103b436600461447e565b610b62565b3480156103c557600080fd5b506103376103d4366004614301565b610c17565b3480156103e557600080fd5b5061027b60005462010000900473ffffffffffffffffffffffffffffffffffffffff1690565b610337610419366004614301565b610de9565b34801561042a57600080fd5b50610337610439366004614355565b610f1a565b34801561044a57600080fd5b506103376104593660046145e0565b610f35565b34801561046a57600080fd5b506103376104793660046145e0565b610fb9565b61033761048c366004614430565b61106a565b34801561049d57600080fd5b5061034b6104ac3660046145e0565b61122d565b3480156104bd57600080fd5b5061034b6101985481565b3480156104d457600080fd5b5061034b6101995481565b3480156104eb57600080fd5b506002546003546040805192835260208301919091520161029c565b34801561051357600080fd5b5061027b6105223660046145e0565b6112f8565b34801561053357600080fd5b5061034b61019b5481565b34801561054a57600080fd5b5061034b610559366004614301565b611390565b34801561056a57600080fd5b50610337611444565b34801561057f57600080fd5b506102c561058e3660046145e0565b6101946020526000908152604090205460ff1681565b3480156105b057600080fd5b5061019a5461034b9081565b3480156105c857600080fd5b506103376105d73660046144e1565b6114b7565b3480156105e857600080fd5b5060365473ffffffffffffffffffffffffffffffffffffffff1661027b565b34801561061357600080fd5b506102ea611779565b34801561062857600080fd5b506103376106373660046143ff565b611788565b34801561064857600080fd5b5061033761065736600461447e565b611881565b34801561066857600080fd5b50610337610677366004614395565b611963565b34801561068857600080fd5b506102ea6106973660046145e0565b6119f1565b3480156106a857600080fd5b506102c56106b736600461431d565b73ffffffffffffffffffffffffffffffffffffffff9182166000908152609f6020908152604080832093909416825291909152205460ff1690565b3480156106fe57600080fd5b5061033761070d366004614301565b611b2a565b61033761072036600461447e565b611c23565b600061073082611d88565b90505b919050565b6060609a80546107479061492a565b80601f01602080910402602001604051908101604052809291908181526020018280546107739061492a565b80156107c05780601f10610795576101008083540402835291602001916107c0565b820191906000526020600020905b8154815290600101906020018083116107a357829003601f168201915b5050505050905090565b6000818152609c602052604081205473ffffffffffffffffffffffffffffffffffffffff166108665760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a20617070726f76656420717565727920666f72206e6f6e657860448201527f697374656e7420746f6b656e000000000000000000000000000000000000000060648201526084015b60405180910390fd5b506000908152609e602052604090205473ffffffffffffffffffffffffffffffffffffffff1690565b600061089a826112f8565b90508073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff16141561093e5760405162461bcd60e51b815260206004820152602160248201527f4552433732313a20617070726f76616c20746f2063757272656e74206f776e6560448201527f7200000000000000000000000000000000000000000000000000000000000000606482015260840161085d565b3373ffffffffffffffffffffffffffffffffffffffff82161480610967575061096781336106b7565b6109d95760405162461bcd60e51b815260206004820152603860248201527f4552433732313a20617070726f76652063616c6c6572206973206e6f74206f7760448201527f6e6572206e6f7220617070726f76656420666f7220616c6c0000000000000000606482015260840161085d565b6109e38383611dde565b505050565b60365473ffffffffffffffffffffffffffffffffffffffff163314610a4f5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015260640161085d565b6000838152609c602052604090205473ffffffffffffffffffffffffffffffffffffffff16610a7d57600080fd5b6000838152610194602052604090205460ff1615610a9a57600080fd5b6109e38383838080601f016020809104026020016040519081016040528093929190818152602001838380828437600092019190915250611e7e92505050565b610ae5335b82611f35565b610b575760405162461bcd60e51b815260206004820152603160248201527f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f60448201527f776e6572206e6f7220617070726f766564000000000000000000000000000000606482015260840161085d565b6109e383838361208b565b6000610b6d83611390565b8210610be15760405162461bcd60e51b815260206004820152602b60248201527f455243373231456e756d657261626c653a206f776e657220696e646578206f7560448201527f74206f6620626f756e6473000000000000000000000000000000000000000000606482015260840161085d565b5073ffffffffffffffffffffffffffffffffffffffff91909116600090815260cc60209081526040808320938352929052205490565b3073ffffffffffffffffffffffffffffffffffffffff7f000000000000000000000000d8493d315ec1fbbd404f169ec5ecc21fa9a008bf161415610cc35760405162461bcd60e51b815260206004820152602c60248201527f46756e6374696f6e206d7573742062652063616c6c6564207468726f7567682060448201527f64656c656761746563616c6c0000000000000000000000000000000000000000606482015260840161085d565b7f000000000000000000000000d8493d315ec1fbbd404f169ec5ecc21fa9a008bf73ffffffffffffffffffffffffffffffffffffffff16610d387f360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc5473ffffffffffffffffffffffffffffffffffffffff1690565b73ffffffffffffffffffffffffffffffffffffffff1614610dc15760405162461bcd60e51b815260206004820152602c60248201527f46756e6374696f6e206d7573742062652063616c6c6564207468726f7567682060448201527f6163746976652070726f78790000000000000000000000000000000000000000606482015260840161085d565b610dca816122c9565b60408051600080825260208201909252610de691839190612330565b50565b61019c5461019854610dfb91906148e7565b61019a5410610e4c5760405162461bcd60e51b815260206004820152601960248201527f54686572652773206e6f20746f6b656e20746f206d696e742e00000000000000604482015260640161085d565b61019954336000908152610196602052604090205410610eae5760405162461bcd60e51b815260206004820181905260248201527f4f6e6520616464726573732063616e206d696e74203130207469636b6574732e604482015260640161085d565b61019b5415610f11573461019b5414610f095760405162461bcd60e51b815260206004820152601a60248201527f4d696e74207072696365206973206e6f7420636f72726563742e000000000000604482015260640161085d565b610f11612539565b610de68161264a565b6109e383838360405180602001604052806000815250611963565b610f3e33610adf565b610fb05760405162461bcd60e51b815260206004820152603060248201527f4552433732314275726e61626c653a2063616c6c6572206973206e6f74206f7760448201527f6e6572206e6f7220617070726f76656400000000000000000000000000000000606482015260840161085d565b610de6816128b3565b60365473ffffffffffffffffffffffffffffffffffffffff1633146110205760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015260640161085d565b6000818152609c602052604090205473ffffffffffffffffffffffffffffffffffffffff1661104e57600080fd5b600090815261019460205260409020805460ff19166001179055565b3073ffffffffffffffffffffffffffffffffffffffff7f000000000000000000000000d8493d315ec1fbbd404f169ec5ecc21fa9a008bf1614156111165760405162461bcd60e51b815260206004820152602c60248201527f46756e6374696f6e206d7573742062652063616c6c6564207468726f7567682060448201527f64656c656761746563616c6c0000000000000000000000000000000000000000606482015260840161085d565b7f000000000000000000000000d8493d315ec1fbbd404f169ec5ecc21fa9a008bf73ffffffffffffffffffffffffffffffffffffffff1661118b7f360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc5473ffffffffffffffffffffffffffffffffffffffff1690565b73ffffffffffffffffffffffffffffffffffffffff16146112145760405162461bcd60e51b815260206004820152602c60248201527f46756e6374696f6e206d7573742062652063616c6c6564207468726f7567682060448201527f6163746976652070726f78790000000000000000000000000000000000000000606482015260840161085d565b61121d826122c9565b61122982826001612330565b5050565b600061123860ce5490565b82106112ac5760405162461bcd60e51b815260206004820152602c60248201527f455243373231456e756d657261626c653a20676c6f62616c20696e646578206f60448201527f7574206f6620626f756e64730000000000000000000000000000000000000000606482015260840161085d565b60ce82815481106112e6577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b90600052602060002001549050919050565b6000818152609c602052604081205473ffffffffffffffffffffffffffffffffffffffff16806107305760405162461bcd60e51b815260206004820152602960248201527f4552433732313a206f776e657220717565727920666f72206e6f6e657869737460448201527f656e7420746f6b656e0000000000000000000000000000000000000000000000606482015260840161085d565b600073ffffffffffffffffffffffffffffffffffffffff821661141b5760405162461bcd60e51b815260206004820152602a60248201527f4552433732313a2062616c616e636520717565727920666f7220746865207a6560448201527f726f206164647265737300000000000000000000000000000000000000000000606482015260840161085d565b5073ffffffffffffffffffffffffffffffffffffffff166000908152609d602052604090205490565b60365473ffffffffffffffffffffffffffffffffffffffff1633146114ab5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015260640161085d565b6114b560006128bc565b565b600054610100900460ff16806114d0575060005460ff16155b6115425760405162461bcd60e51b815260206004820152602e60248201527f496e697469616c697a61626c653a20636f6e747261637420697320616c72656160448201527f647920696e697469616c697a6564000000000000000000000000000000000000606482015260840161085d565b600054610100900460ff1615801561156d576000805460ff1961ff0019909116610100171660011790555b61157985858585612933565b6115838c8c612b9d565b61158b612c83565b611593612c83565b61159b612d65565b6115a3612e2b565b61019b8a905561019989905585516115c39061019d906020890190614152565b5061019c88905560005b875181101561174857600060405180606001604052808381526020018a8481518110611622577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b6020026020010151815260200161019a6040518060200160405290816000820154815250508152509050888281518110611685577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b6020026020010151610198600082825461169f919061487e565b9091555050610197805460018101825560009190915281517f3ea4d693734e62a1b4642df418cf4aae0e5ba336a2d6024b2d33585611a4e2eb60039092029182015560208201517f3ea4d693734e62a1b4642df418cf4aae0e5ba336a2d6024b2d33585611a4e2ec820155604090910151517f3ea4d693734e62a1b4642df418cf4aae0e5ba336a2d6024b2d33585611a4e2ed90910155806117408161497e565b9150506115cd565b506000610198541161175957600080fd5b801561176b576000805461ff00191690555b505050505050505050505050565b6060609b80546107479061492a565b73ffffffffffffffffffffffffffffffffffffffff82163314156117ee5760405162461bcd60e51b815260206004820152601960248201527f4552433732313a20617070726f766520746f2063616c6c657200000000000000604482015260640161085d565b336000818152609f6020908152604080832073ffffffffffffffffffffffffffffffffffffffff87168085529252909120805460ff19168415151790559073ffffffffffffffffffffffffffffffffffffffff167f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c3183604051611875911515815260200190565b60405180910390a35050565b60365473ffffffffffffffffffffffffffffffffffffffff1633146118e85760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015260640161085d565b6101985461019a541061193d5760405162461bcd60e51b815260206004820152601960248201527f54686572652773206e6f20746f6b656e20746f206d696e742e00000000000000604482015260640161085d565b60005b818110156109e3576119518361264a565b8061195b8161497e565b915050611940565b61196d3383611f35565b6119df5760405162461bcd60e51b815260206004820152603160248201527f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f60448201527f776e6572206e6f7220617070726f766564000000000000000000000000000000606482015260840161085d565b6119eb84848484612ee8565b50505050565b6000818152609c602052604090205460609073ffffffffffffffffffffffffffffffffffffffff16611a8b5760405162461bcd60e51b815260206004820152602f60248201527f4552433732314d657461646174613a2055524920717565727920666f72206e6f60448201527f6e6578697374656e7420746f6b656e0000000000000000000000000000000000606482015260840161085d565b6000828152610195602052604090208054611aa59061492a565b80601f0160208091040260200160405190810160405280929190818152602001828054611ad19061492a565b8015611b1e5780601f10611af357610100808354040283529160200191611b1e565b820191906000526020600020905b815481529060010190602001808311611b0157829003601f168201915b50505050509050919050565b60365473ffffffffffffffffffffffffffffffffffffffff163314611b915760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015260640161085d565b73ffffffffffffffffffffffffffffffffffffffff8116611c1a5760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201527f6464726573730000000000000000000000000000000000000000000000000000606482015260840161085d565b610de6816128bc565b61019c5461019854611c3591906148e7565b61019a5410611c865760405162461bcd60e51b815260206004820152601960248201527f54686572652773206e6f20746f6b656e20746f206d696e742e00000000000000604482015260640161085d565b610199543360009081526101966020526040902054611ca690839061487e565b1115611cf45760405162461bcd60e51b815260206004820181905260248201527f4f6e6520616464726573732063616e206d696e74203130207469636b6574732e604482015260640161085d565b61019b5415611d6257348161019b54611d0d91906148aa565b14611d5a5760405162461bcd60e51b815260206004820152601a60248201527f4d696e74207072696365206973206e6f7420636f72726563742e000000000000604482015260640161085d565b611d62612539565b60005b818110156109e357611d768361264a565b80611d808161497e565b915050611d65565b60007fffffffff0000000000000000000000000000000000000000000000000000000082167f780e9d63000000000000000000000000000000000000000000000000000000001480610730575061073082612f71565b6000818152609e6020526040902080547fffffffffffffffffffffffff00000000000000000000000000000000000000001673ffffffffffffffffffffffffffffffffffffffff84169081179091558190611e38826112f8565b73ffffffffffffffffffffffffffffffffffffffff167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b6000828152609c602052604090205473ffffffffffffffffffffffffffffffffffffffff16611f155760405162461bcd60e51b815260206004820152602c60248201527f4552433732314d657461646174613a2055524920736574206f66206e6f6e657860448201527f697374656e7420746f6b656e0000000000000000000000000000000000000000606482015260840161085d565b60008281526101956020908152604090912082516109e392840190614152565b6000818152609c602052604081205473ffffffffffffffffffffffffffffffffffffffff16611fcc5760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a206f70657261746f7220717565727920666f72206e6f6e657860448201527f697374656e7420746f6b656e0000000000000000000000000000000000000000606482015260840161085d565b6000611fd7836112f8565b90508073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff16148061204657508373ffffffffffffffffffffffffffffffffffffffff1661202e846107ca565b73ffffffffffffffffffffffffffffffffffffffff16145b80612083575073ffffffffffffffffffffffffffffffffffffffff8082166000908152609f602090815260408083209388168352929052205460ff165b949350505050565b8273ffffffffffffffffffffffffffffffffffffffff166120ab826112f8565b73ffffffffffffffffffffffffffffffffffffffff16146121345760405162461bcd60e51b815260206004820152602960248201527f4552433732313a207472616e73666572206f6620746f6b656e2074686174206960448201527f73206e6f74206f776e0000000000000000000000000000000000000000000000606482015260840161085d565b73ffffffffffffffffffffffffffffffffffffffff82166121bc5760405162461bcd60e51b8152602060048201526024808201527f4552433732313a207472616e7366657220746f20746865207a65726f2061646460448201527f7265737300000000000000000000000000000000000000000000000000000000606482015260840161085d565b6121c7838383613054565b6121d2600082611dde565b73ffffffffffffffffffffffffffffffffffffffff83166000908152609d602052604081208054600192906122089084906148e7565b909155505073ffffffffffffffffffffffffffffffffffffffff82166000908152609d6020526040812080546001929061224390849061487e565b90915550506000818152609c602052604080822080547fffffffffffffffffffffffff00000000000000000000000000000000000000001673ffffffffffffffffffffffffffffffffffffffff86811691821790925591518493918716917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91a4505050565b60365473ffffffffffffffffffffffffffffffffffffffff163314610de65760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015260640161085d565b60006123707f360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc5473ffffffffffffffffffffffffffffffffffffffff1690565b905061237b8461305f565b6000835111806123885750815b15612399576123978484613139565b505b7f4910fdfa16fed3260ed0e7147f7cc6da11a60208b5b9406d12a635614ffd9143805460ff1661253257805460ff1916600117815560405173ffffffffffffffffffffffffffffffffffffffff83166024820152612471908690604401604080517fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe08184030181529190526020810180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff167f3659cfe600000000000000000000000000000000000000000000000000000000179052613139565b50805460ff191681557f360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc5473ffffffffffffffffffffffffffffffffffffffff8381169116146125295760405162461bcd60e51b815260206004820152602f60248201527f45524331393637557067726164653a207570677261646520627265616b73206660448201527f7572746865722075706772616465730000000000000000000000000000000000606482015260840161085d565b61253285613248565b5050505050565b6000806125496002546003549091565b91509150600061257460005462010000900473ffffffffffffffffffffffffffffffffffffffff1690565b905073ffffffffffffffffffffffffffffffffffffffff81166108fc606461259c86346148aa565b6125a69190614896565b6040518115909202916000818181858888f193505050501580156125ce573d6000803e3d6000fd5b5060006125f060015473ffffffffffffffffffffffffffffffffffffffff1690565b905073ffffffffffffffffffffffffffffffffffffffff81166108fc606461261886346148aa565b6126229190614896565b6040518115909202916000818181858888f19350505050158015612532573d6000803e3d6000fd5b612652613295565b61019754600090612665906001906148e7565b905061267a8261267561019a5490565b6134e3565b61270461268761019a5490565b61019d6126df61019785815481106126c8577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b9060005260206000209060030201600001546134fd565b6040516020016126f09291906146f1565b604051602081830303815290604052611e7e565b61275c6101978281548110612742577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b906000526020600020906003020160020180546001019055565b6101978181548110612797577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b9060005260206000209060030201600101546127fc61019783815481106127e7577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b90600052602060002090600302016002015490565b141561287f5761019780548061283b577f4e487b7100000000000000000000000000000000000000000000000000000000600052603160045260246000fd5b60008281526020812060037fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff90930192830201818155600181018290556002015590555b61288e61019a80546001019055565b336000908152610196602052604081208054916128aa8361497e565b91905055505050565b610de68161367e565b6036805473ffffffffffffffffffffffffffffffffffffffff8381167fffffffffffffffffffffffff0000000000000000000000000000000000000000831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b600054610100900460ff168061294c575060005460ff16155b6129be5760405162461bcd60e51b815260206004820152602e60248201527f496e697469616c697a61626c653a20636f6e747261637420697320616c72656160448201527f647920696e697469616c697a6564000000000000000000000000000000000000606482015260840161085d565b600054610100900460ff161580156129e9576000805460ff1961ff0019909116610100171660011790555b73ffffffffffffffffffffffffffffffffffffffff85163b15612a745760405162461bcd60e51b815260206004820152602360248201527f54726561737572794e6f64653a2041646472657373206973206120636f6e747260448201527f6163740000000000000000000000000000000000000000000000000000000000606482015260840161085d565b73ffffffffffffffffffffffffffffffffffffffff84163b15612aff5760405162461bcd60e51b815260206004820152602260248201527f43726561746f724e6f64653a2041646472657373206973206120636f6e74726160448201527f6374000000000000000000000000000000000000000000000000000000000000606482015260840161085d565b600080547fffffffffffffffffffff0000000000000000000000000000000000000000ffff166201000073ffffffffffffffffffffffffffffffffffffffff8881169190910291909117909155600180547fffffffffffffffffffffffff000000000000000000000000000000000000000016918616919091179055600283905560038290558015612532576000805461ff00191690555050505050565b600054610100900460ff1680612bb6575060005460ff16155b612c285760405162461bcd60e51b815260206004820152602e60248201527f496e697469616c697a61626c653a20636f6e747261637420697320616c72656160448201527f647920696e697469616c697a6564000000000000000000000000000000000000606482015260840161085d565b600054610100900460ff16158015612c53576000805460ff1961ff0019909116610100171660011790555b612c5b613757565b612c63613757565b612c6d8383613820565b80156109e3576000805461ff0019169055505050565b600054610100900460ff1680612c9c575060005460ff16155b612d0e5760405162461bcd60e51b815260206004820152602e60248201527f496e697469616c697a61626c653a20636f6e747261637420697320616c72656160448201527f647920696e697469616c697a6564000000000000000000000000000000000000606482015260840161085d565b600054610100900460ff16158015612d39576000805460ff1961ff0019909116610100171660011790555b612d41613757565b612d49613757565b612d51613757565b8015610de6576000805461ff001916905550565b600054610100900460ff1680612d7e575060005460ff16155b612df05760405162461bcd60e51b815260206004820152602e60248201527f496e697469616c697a61626c653a20636f6e747261637420697320616c72656160448201527f647920696e697469616c697a6564000000000000000000000000000000000000606482015260840161085d565b600054610100900460ff16158015612e1b576000805460ff1961ff0019909116610100171660011790555b612e23613757565b612d51613914565b600054610100900460ff1680612e44575060005460ff16155b612eb65760405162461bcd60e51b815260206004820152602e60248201527f496e697469616c697a61626c653a20636f6e747261637420697320616c72656160448201527f647920696e697469616c697a6564000000000000000000000000000000000000606482015260840161085d565b600054610100900460ff16158015612d41576000805460ff1961ff001990911661010017166001179055612d49613757565b612ef384848461208b565b612eff848484846139d3565b6119eb5760405162461bcd60e51b815260206004820152603260248201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560448201527f63656976657220696d706c656d656e7465720000000000000000000000000000606482015260840161085d565b60007fffffffff0000000000000000000000000000000000000000000000000000000082167f80ac58cd00000000000000000000000000000000000000000000000000000000148061300457507fffffffff0000000000000000000000000000000000000000000000000000000082167f5b5e139f00000000000000000000000000000000000000000000000000000000145b8061073057507f01ffc9a7000000000000000000000000000000000000000000000000000000007fffffffff00000000000000000000000000000000000000000000000000000000831614610730565b6109e3838383613bb8565b803b6130d35760405162461bcd60e51b815260206004820152602d60248201527f455243313936373a206e657720696d706c656d656e746174696f6e206973206e60448201527f6f74206120636f6e747261637400000000000000000000000000000000000000606482015260840161085d565b7f360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc80547fffffffffffffffffffffffff00000000000000000000000000000000000000001673ffffffffffffffffffffffffffffffffffffffff92909216919091179055565b6060823b6131af5760405162461bcd60e51b815260206004820152602660248201527f416464726573733a2064656c65676174652063616c6c20746f206e6f6e2d636f60448201527f6e74726163740000000000000000000000000000000000000000000000000000606482015260840161085d565b6000808473ffffffffffffffffffffffffffffffffffffffff16846040516131d791906146d5565b600060405180830381855af49150503d8060008114613212576040519150601f19603f3d011682016040523d82523d6000602084013e613217565b606091505b509150915061323f8282604051806060016040528060278152602001614aa960279139613cc3565b95945050505050565b6132518161305f565b60405173ffffffffffffffffffffffffffffffffffffffff8216907fbc7cd75a20ee27fd9adebab32041f755214dbc6bffa90cc0225b39da2e5c2d3b90600090a250565b60005b61019754811015610de657610197546000906132b59083906148e7565b42336132c161019a5490565b6040516020016133099392919092835260609190911b7fffffffffffffffffffffffffffffffffffffffff000000000000000000000000166020830152603482015260540190565b6040516020818303038152906040528051906020012060001c61332c91906149b7565b613336908361487e565b905060006101978281548110613375577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b60009182526020918290206040805160608101825260039093029091018054835260018101548385015281519384018252600201548352810191909152610197805491925090849081106133f2577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b9060005260206000209060030201610197838154811061343b577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b600091825260209091208254600390920201908155600180830154908201556002918201549101556101978054829190859081106134a2577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b6000918252602091829020835160039092020190815590820151600182015560409091015151600290910155508190506134db8161497e565b915050613298565b611229828260405180602001604052806000815250613d03565b60608161353e575060408051808201909152600181527f30000000000000000000000000000000000000000000000000000000000000006020820152610733565b8160005b811561356857806135528161497e565b91506135619050600a83614896565b9150613542565b60008167ffffffffffffffff8111156135aa577f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b6040519080825280601f01601f1916602001820160405280156135d4576020820181803683370190505b5090505b8415612083576135e96001836148e7565b91506135f6600a866149b7565b61360190603061487e565b60f81b81838151811061363d577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a905350613677600a86614896565b94506135d8565b6000613689826112f8565b905061369781600084613054565b6136a2600083611dde565b73ffffffffffffffffffffffffffffffffffffffff81166000908152609d602052604081208054600192906136d89084906148e7565b90915550506000828152609c602052604080822080547fffffffffffffffffffffffff00000000000000000000000000000000000000001690555183919073ffffffffffffffffffffffffffffffffffffffff8416907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908390a45050565b600054610100900460ff1680613770575060005460ff16155b6137e25760405162461bcd60e51b815260206004820152602e60248201527f496e697469616c697a61626c653a20636f6e747261637420697320616c72656160448201527f647920696e697469616c697a6564000000000000000000000000000000000000606482015260840161085d565b600054610100900460ff16158015612d51576000805460ff1961ff0019909116610100171660011790558015610de6576000805461ff001916905550565b600054610100900460ff1680613839575060005460ff16155b6138ab5760405162461bcd60e51b815260206004820152602e60248201527f496e697469616c697a61626c653a20636f6e747261637420697320616c72656160448201527f647920696e697469616c697a6564000000000000000000000000000000000000606482015260840161085d565b600054610100900460ff161580156138d6576000805460ff1961ff0019909116610100171660011790555b82516138e990609a906020860190614152565b5081516138fd90609b906020850190614152565b5080156109e3576000805461ff0019169055505050565b600054610100900460ff168061392d575060005460ff16155b61399f5760405162461bcd60e51b815260206004820152602e60248201527f496e697469616c697a61626c653a20636f6e747261637420697320616c72656160448201527f647920696e697469616c697a6564000000000000000000000000000000000000606482015260840161085d565b600054610100900460ff161580156139ca576000805460ff1961ff0019909116610100171660011790555b612d51336128bc565b600073ffffffffffffffffffffffffffffffffffffffff84163b15613bad576040517f150b7a0200000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff85169063150b7a0290613a4a9033908990889088906004016147d3565b602060405180830381600087803b158015613a6457600080fd5b505af1925050508015613ab2575060408051601f3d9081017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0168201909252613aaf918101906144c5565b60015b613b62573d808015613ae0576040519150601f19603f3d011682016040523d82523d6000602084013e613ae5565b606091505b508051613b5a5760405162461bcd60e51b815260206004820152603260248201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560448201527f63656976657220696d706c656d656e7465720000000000000000000000000000606482015260840161085d565b805181602001fd5b7fffffffff00000000000000000000000000000000000000000000000000000000167f150b7a0200000000000000000000000000000000000000000000000000000000149050612083565b506001949350505050565b73ffffffffffffffffffffffffffffffffffffffff8316613c2057613c1b8160ce8054600083815260cf60205260408120829055600182018355919091527fd36cd1c74ef8d7326d8021b776c18fb5a5724b7f7bc93c2f42e43e10ef27d12a0155565b613c5d565b8173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff1614613c5d57613c5d8382613d8c565b73ffffffffffffffffffffffffffffffffffffffff8216613c8657613c8181613e43565b6109e3565b8273ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff16146109e3576109e38282613f67565b60608315613cd2575081613cfc565b825115613ce25782518084602001fd5b8160405162461bcd60e51b815260040161085d919061481c565b9392505050565b613d0d8383613fb8565b613d1a60008484846139d3565b6109e35760405162461bcd60e51b815260206004820152603260248201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560448201527f63656976657220696d706c656d656e7465720000000000000000000000000000606482015260840161085d565b60006001613d9984611390565b613da391906148e7565b600083815260cd6020526040902054909150808214613e035773ffffffffffffffffffffffffffffffffffffffff8416600090815260cc60209081526040808320858452825280832054848452818420819055835260cd90915290208190555b50600091825260cd6020908152604080842084905573ffffffffffffffffffffffffffffffffffffffff909416835260cc81528383209183525290812055565b60ce54600090613e55906001906148e7565b600083815260cf602052604081205460ce8054939450909284908110613ea4577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b906000526020600020015490508060ce8381548110613eec577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b600091825260208083209091019290925582815260cf909152604080822084905585825281205560ce805480613f4b577f4e487b7100000000000000000000000000000000000000000000000000000000600052603160045260246000fd5b6001900381819060005260206000200160009055905550505050565b6000613f7283611390565b73ffffffffffffffffffffffffffffffffffffffff909316600090815260cc60209081526040808320868452825280832085905593825260cd9052919091209190915550565b73ffffffffffffffffffffffffffffffffffffffff821661401b5760405162461bcd60e51b815260206004820181905260248201527f4552433732313a206d696e7420746f20746865207a65726f2061646472657373604482015260640161085d565b6000818152609c602052604090205473ffffffffffffffffffffffffffffffffffffffff161561408d5760405162461bcd60e51b815260206004820152601c60248201527f4552433732313a20746f6b656e20616c7265616479206d696e74656400000000604482015260640161085d565b61409960008383613054565b73ffffffffffffffffffffffffffffffffffffffff82166000908152609d602052604081208054600192906140cf90849061487e565b90915550506000818152609c602052604080822080547fffffffffffffffffffffffff00000000000000000000000000000000000000001673ffffffffffffffffffffffffffffffffffffffff861690811790915590518392907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b82805461415e9061492a565b90600052602060002090601f01602090048101928261418057600085556141c6565b82601f1061419957805160ff19168380011785556141c6565b828001600101855582156141c6579182015b828111156141c65782518255916020019190600101906141ab565b506141d29291506141d6565b5090565b5b808211156141d257600081556001016141d7565b803561073381614a58565b600082601f830112614206578081fd5b8135602067ffffffffffffffff82111561422257614222614a29565b80820261423082820161482f565b83815282810190868401838801850189101561424a578687fd5b8693505b8584101561426c57803583526001939093019291840191840161424e565b50979650505050505050565b600082601f830112614288578081fd5b813567ffffffffffffffff8111156142a2576142a2614a29565b6142d360207fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0601f8401160161482f565b8181528460208386010111156142e7578283fd5b816020850160208301379081016020019190915292915050565b600060208284031215614312578081fd5b8135613cfc81614a58565b6000806040838503121561432f578081fd5b823561433a81614a58565b9150602083013561434a81614a58565b809150509250929050565b600080600060608486031215614369578081fd5b833561437481614a58565b9250602084013561438481614a58565b929592945050506040919091013590565b600080600080608085870312156143aa578081fd5b84356143b581614a58565b935060208501356143c581614a58565b925060408501359150606085013567ffffffffffffffff8111156143e7578182fd5b6143f387828801614278565b91505092959194509250565b60008060408385031215614411578182fd5b823561441c81614a58565b91506020830135801515811461434a578182fd5b60008060408385031215614442578182fd5b823561444d81614a58565b9150602083013567ffffffffffffffff811115614468578182fd5b61447485828601614278565b9150509250929050565b60008060408385031215614490578182fd5b823561449b81614a58565b946020939093013593505050565b6000602082840312156144ba578081fd5b8135613cfc81614a7a565b6000602082840312156144d6578081fd5b8151613cfc81614a7a565b60008060008060008060008060008060006101608c8e031215614502578687fd5b67ffffffffffffffff808d351115614518578788fd5b6145258e8e358f01614278565b9b508060208e01351115614537578788fd5b6145478e60208f01358f01614278565b9a5060408d0135995060608d0135985060808d013597508060a08e0135111561456e578687fd5b61457e8e60a08f01358f016141f6565b96508060c08e01351115614590578586fd5b506145a18d60c08e01358e01614278565b94506145af60e08d016141eb565b93506145be6101008d016141eb565b92506101208c013591506101408c013590509295989b509295989b9093969950565b6000602082840312156145f1578081fd5b5035919050565b60008060006040848603121561460c578081fd5b83359250602084013567ffffffffffffffff8082111561462a578283fd5b818601915086601f83011261463d578283fd5b81358181111561464b578384fd5b87602082850101111561465c578384fd5b6020830194508093505050509250925092565b600081518084526146878160208601602086016148fe565b601f017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0169290920160200192915050565b600081516146cb8185602086016148fe565b9290920192915050565b600082516146e78184602087016148fe565b9190910192915050565b825460009081906002810460018083168061470d57607f831692505b6020808410821415614746577f4e487b710000000000000000000000000000000000000000000000000000000087526022600452602487fd5b81801561475a576001811461476b57614797565b60ff19861689528489019650614797565b60008b815260209020885b8681101561478f5781548b820152908501908301614776565b505084890196505b50505050505061323f6147aa82866146b9565b7f2e6a736f6e000000000000000000000000000000000000000000000000000000815260050190565b600073ffffffffffffffffffffffffffffffffffffffff808716835280861660208401525083604083015260806060830152614812608083018461466f565b9695505050505050565b600060208252613cfc602083018461466f565b604051601f82017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe016810167ffffffffffffffff8111828210171561487657614876614a29565b604052919050565b60008219821115614891576148916149cb565b500190565b6000826148a5576148a56149fa565b500490565b6000817fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff04831182151516156148e2576148e26149cb565b500290565b6000828210156148f9576148f96149cb565b500390565b60005b83811015614919578181015183820152602001614901565b838111156119eb5750506000910152565b60028104600182168061493e57607f821691505b60208210811415614978577f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b50919050565b60007fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff8214156149b0576149b06149cb565b5060010190565b6000826149c6576149c66149fa565b500690565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b73ffffffffffffffffffffffffffffffffffffffff81168114610de657600080fd5b7fffffffff0000000000000000000000000000000000000000000000000000000081168114610de657600080fdfe416464726573733a206c6f772d6c6576656c2064656c65676174652063616c6c206661696c6564a2646970667358221220073d9641afd3a0d9c0fa25d3b7afcdbb929e1be832c58654155bd78eb1160bf164736f6c63430008020033
Loading...
Loading
Loading...
Loading
Multichain Portfolio | 26 Chains
Chain | Token | Portfolio % | Price | Amount | Value |
---|
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.