ERC-721
Overview
Max Total Supply
0 CyndiDAO
Holders
827
Market
Volume (24H)
N/A
Min Price (24H)
N/A
Max Price (24H)
N/A
Other Info
Token Contract
Balance
2 CyndiDAOLoading...
Loading
Loading...
Loading
Loading...
Loading
# | Exchange | Pair | Price | 24H Volume | % Volume |
---|
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:
ERC721Custom
Compiler Version
v0.8.11+commit.d7f03943
Optimization Enabled:
No with 200 runs
Other Settings:
default evmVersion
Contract Source Code (Solidity Standard Json-Input format)
// SPDX-License-Identifier: MIT pragma solidity ^0.8.9; import "@openzeppelin/contracts-upgradeable/token/ERC721/ERC721Upgradeable.sol"; import "@openzeppelin/contracts-upgradeable/token/ERC721/extensions/ERC721URIStorageUpgradeable.sol"; import "@openzeppelin/contracts-upgradeable/security/PausableUpgradeable.sol"; import "@openzeppelin/contracts-upgradeable/access/OwnableUpgradeable.sol"; import "@openzeppelin/contracts-upgradeable/token/ERC721/extensions/ERC721BurnableUpgradeable.sol"; import "@openzeppelin/contracts-upgradeable/proxy/utils/Initializable.sol"; import "@openzeppelin/contracts-upgradeable/proxy/utils/UUPSUpgradeable.sol"; import "@openzeppelin/contracts-upgradeable/utils/CountersUpgradeable.sol"; import '@openzeppelin/contracts/utils/Strings.sol'; import "@openzeppelin/contracts/security/ReentrancyGuard.sol"; /// @custom:security-contact [email protected] contract ERC721Custom is Initializable, ERC721Upgradeable, ERC721URIStorageUpgradeable, PausableUpgradeable, OwnableUpgradeable, ERC721BurnableUpgradeable, UUPSUpgradeable, ReentrancyGuard { using Strings for uint256; using CountersUpgradeable for CountersUpgradeable.Counter; CountersUpgradeable.Counter private _tokenIdCounter; string private baseURI; uint public maxOfferCount = 905; // Max # NFTs to be added uint public offerCount; // Index of the current buyable NFT in that type. offCount=0 means no NFT is left in that type mapping(address => bool) public userList; // user Address-to-claimable-amount mapping bool public requireWhitelist = true; // If require whitelist mapping(address => bool) public whitelist; // whitelist users Address-to-claimable-amount mapping function initialize(string memory _name, string memory _symbol) public initializer { __ERC721_init(_name, _symbol); __ERC721URIStorage_init(); __Pausable_init(); __Ownable_init(); __ERC721Burnable_init(); __UUPSUpgradeable_init(); } modifier callerIsUser() { require(tx.origin == msg.sender, 'The caller is another contract.'); _; } function pause() public onlyOwner { _pause(); } function unpause() public onlyOwner { _unpause(); } function setRequireWhitelist(bool _requireWhitelist) public onlyOwner { requireWhitelist = _requireWhitelist; } function safeMint() public callerIsUser nonReentrant { require(!requireWhitelist || (requireWhitelist && whitelist[msg.sender]), "whitelisting for external users is disabled"); require(!userList[msg.sender], "Allow only to purchase an NFT"); uint256 tokenId = _tokenIdCounter.current(); require(tokenId < maxOfferCount, "Reached maxOfferCount"); _tokenIdCounter.increment(); userList[msg.sender] = true; _safeMint(msg.sender, tokenId); offerCount++; } function setWhitelist(address _whitelisted) public onlyOwner { whitelist[_whitelisted] = true; } function setWhitelistBatch(address[] calldata _whitelisted) public onlyOwner { for (uint i = 0; i < _whitelisted.length; i++) { whitelist[_whitelisted[i]] = true; } } function changeBaseURI(string memory _baseURI) public onlyOwner { baseURI = _baseURI; } function _beforeTokenTransfer( address from, address to, uint256 tokenId ) internal override whenNotPaused { super._beforeTokenTransfer(from, to, tokenId); } function _authorizeUpgrade(address newImplementation) internal override onlyOwner {} // The following functions are overrides required by Solidity. function _burn(uint256 tokenId) internal override(ERC721Upgradeable, ERC721URIStorageUpgradeable) { super._burn(tokenId); } function tokenURI(uint256 tokenId) public view override(ERC721Upgradeable, ERC721URIStorageUpgradeable) returns (string memory) { require(_exists(tokenId), 'ERC721Metadata: URI query for nonexistent token'); string memory uriSuffix = Strings.toString(tokenId); return bytes(baseURI).length != 0 ? string(abi.encodePacked(baseURI, uriSuffix)) : ''; } // Fallback: reverts if Ether is sent to this smart-contract by mistake fallback() external { revert(); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.6.0) (token/ERC721/ERC721.sol) 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 onlyInitializing { __ERC721_init_unchained(name_, symbol_); } function __ERC721_init_unchained(string memory name_, string memory symbol_) internal onlyInitializing { _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 overridden in child contracts. */ function _baseURI() internal view virtual returns (string memory) { return ""; } /** * @dev See {IERC721-approve}. */ function approve(address to, uint256 tokenId) public virtual override { address owner = 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 { _setApprovalForAll(_msgSender(), operator, approved); } /** * @dev See {IERC721-isApprovedForAll}. */ function isApprovedForAll(address owner, address operator) public view virtual override returns (bool) { return _operatorApprovals[owner][operator]; } /** * @dev See {IERC721-transferFrom}. */ function transferFrom( address from, address to, uint256 tokenId ) public virtual override { //solhint-disable-next-line max-line-length require(_isApprovedOrOwner(_msgSender(), tokenId), "ERC721: 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 || isApprovedForAll(owner, spender) || getApproved(tokenId) == spender); } /** * @dev Safely mints `tokenId` and transfers it to `to`. * * Requirements: * * - `tokenId` must not exist. * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */ function _safeMint(address to, uint256 tokenId) internal virtual { _safeMint(to, tokenId, ""); } /** * @dev Same as {xref-ERC721-_safeMint-address-uint256-}[`_safeMint`], with an additional `data` parameter which is * forwarded in {IERC721Receiver-onERC721Received} to contract recipients. */ function _safeMint( address to, uint256 tokenId, bytes memory _data ) internal virtual { _mint(to, tokenId); require( _checkOnERC721Received(address(0), to, tokenId, _data), "ERC721: transfer to non ERC721Receiver implementer" ); } /** * @dev Mints `tokenId` and transfers it to `to`. * * WARNING: Usage of this method is discouraged, use {_safeMint} whenever possible * * Requirements: * * - `tokenId` must not exist. * - `to` cannot be the zero address. * * Emits a {Transfer} event. */ function _mint(address to, uint256 tokenId) internal virtual { require(to != address(0), "ERC721: mint to the zero address"); require(!_exists(tokenId), "ERC721: token already minted"); _beforeTokenTransfer(address(0), to, tokenId); _balances[to] += 1; _owners[tokenId] = to; emit Transfer(address(0), to, tokenId); _afterTokenTransfer(address(0), to, tokenId); } /** * @dev Destroys `tokenId`. * The approval is cleared when the token is burned. * * Requirements: * * - `tokenId` must exist. * * Emits a {Transfer} event. */ function _burn(uint256 tokenId) internal virtual { address owner = 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); _afterTokenTransfer(owner, address(0), tokenId); } /** * @dev Transfers `tokenId` from `from` to `to`. * As opposed to {transferFrom}, this imposes no restrictions on msg.sender. * * Requirements: * * - `to` cannot be the zero address. * - `tokenId` token must be owned by `from`. * * Emits a {Transfer} event. */ function _transfer( address from, address to, uint256 tokenId ) internal virtual { require(ERC721Upgradeable.ownerOf(tokenId) == from, "ERC721: transfer from incorrect owner"); require(to != address(0), "ERC721: transfer to the zero address"); _beforeTokenTransfer(from, to, tokenId); // Clear approvals from the previous owner _approve(address(0), tokenId); _balances[from] -= 1; _balances[to] += 1; _owners[tokenId] = to; emit Transfer(from, to, tokenId); _afterTokenTransfer(from, to, tokenId); } /** * @dev Approve `to` to operate on `tokenId` * * Emits a {Approval} event. */ function _approve(address to, uint256 tokenId) internal virtual { _tokenApprovals[tokenId] = to; emit Approval(ERC721Upgradeable.ownerOf(tokenId), to, tokenId); } /** * @dev Approve `operator` to operate on all of `owner` tokens * * Emits a {ApprovalForAll} event. */ function _setApprovalForAll( address owner, address operator, bool approved ) internal virtual { require(owner != operator, "ERC721: approve to caller"); _operatorApprovals[owner][operator] = approved; emit ApprovalForAll(owner, operator, approved); } /** * @dev 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 {} /** * @dev Hook that is called after any transfer of tokens. This includes * minting and burning. * * Calling conditions: * * - when `from` and `to` are both non-zero. * - `from` and `to` are never both zero. * * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks]. */ function _afterTokenTransfer( address from, address to, uint256 tokenId ) internal virtual {} /** * @dev This empty reserved space is put in place to allow future versions to add new * variables without shifting down storage in the inheritance chain. * See https://docs.openzeppelin.com/contracts/4.x/upgradeable#storage_gaps */ uint256[44] private __gap; }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (token/ERC721/extensions/ERC721URIStorage.sol) pragma solidity ^0.8.0; import "../ERC721Upgradeable.sol"; import "../../../proxy/utils/Initializable.sol"; /** * @dev ERC721 token with storage based token URI management. */ abstract contract ERC721URIStorageUpgradeable is Initializable, ERC721Upgradeable { function __ERC721URIStorage_init() internal onlyInitializing { } function __ERC721URIStorage_init_unchained() internal onlyInitializing { } using StringsUpgradeable for uint256; // Optional mapping for token URIs mapping(uint256 => string) private _tokenURIs; /** * @dev See {IERC721Metadata-tokenURI}. */ function tokenURI(uint256 tokenId) public view virtual override returns (string memory) { require(_exists(tokenId), "ERC721URIStorage: URI query for nonexistent token"); string memory _tokenURI = _tokenURIs[tokenId]; string memory base = _baseURI(); // If there is no base URI, return the token URI. if (bytes(base).length == 0) { return _tokenURI; } // If both are set, concatenate the baseURI and tokenURI (via abi.encodePacked). if (bytes(_tokenURI).length > 0) { return string(abi.encodePacked(base, _tokenURI)); } return super.tokenURI(tokenId); } /** * @dev Sets `_tokenURI` as the tokenURI of `tokenId`. * * Requirements: * * - `tokenId` must exist. */ function _setTokenURI(uint256 tokenId, string memory _tokenURI) internal virtual { require(_exists(tokenId), "ERC721URIStorage: URI set of nonexistent token"); _tokenURIs[tokenId] = _tokenURI; } /** * @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 override { super._burn(tokenId); if (bytes(_tokenURIs[tokenId]).length != 0) { delete _tokenURIs[tokenId]; } } /** * @dev This empty reserved space is put in place to allow future versions to add new * variables without shifting down storage in the inheritance chain. * See https://docs.openzeppelin.com/contracts/4.x/upgradeable#storage_gaps */ uint256[49] private __gap; }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (security/Pausable.sol) pragma solidity ^0.8.0; import "../utils/ContextUpgradeable.sol"; import "../proxy/utils/Initializable.sol"; /** * @dev Contract module which allows children to implement an emergency stop * mechanism that can be triggered by an authorized account. * * This module is used through inheritance. It will make available the * modifiers `whenNotPaused` and `whenPaused`, which can be applied to * the functions of your contract. Note that they will not be pausable by * simply including this module, only once the modifiers are put in place. */ abstract contract PausableUpgradeable is Initializable, ContextUpgradeable { /** * @dev Emitted when the pause is triggered by `account`. */ event Paused(address account); /** * @dev Emitted when the pause is lifted by `account`. */ event Unpaused(address account); bool private _paused; /** * @dev Initializes the contract in unpaused state. */ function __Pausable_init() internal onlyInitializing { __Pausable_init_unchained(); } function __Pausable_init_unchained() internal onlyInitializing { _paused = false; } /** * @dev Returns true if the contract is paused, and false otherwise. */ function paused() public view virtual returns (bool) { return _paused; } /** * @dev Modifier to make a function callable only when the contract is not paused. * * Requirements: * * - The contract must not be paused. */ modifier whenNotPaused() { require(!paused(), "Pausable: paused"); _; } /** * @dev Modifier to make a function callable only when the contract is paused. * * Requirements: * * - The contract must be paused. */ modifier whenPaused() { require(paused(), "Pausable: not paused"); _; } /** * @dev Triggers stopped state. * * Requirements: * * - The contract must not be paused. */ function _pause() internal virtual whenNotPaused { _paused = true; emit Paused(_msgSender()); } /** * @dev Returns to normal state. * * Requirements: * * - The contract must be paused. */ function _unpause() internal virtual whenPaused { _paused = false; emit Unpaused(_msgSender()); } /** * @dev This empty reserved space is put in place to allow future versions to add new * variables without shifting down storage in the inheritance chain. * See https://docs.openzeppelin.com/contracts/4.x/upgradeable#storage_gaps */ uint256[49] private __gap; }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (access/Ownable.sol) pragma solidity ^0.8.0; import "../utils/ContextUpgradeable.sol"; import "../proxy/utils/Initializable.sol"; /** * @dev Contract module which provides a basic access control mechanism, where * there is an account (an owner) that can be granted exclusive access to * specific functions. * * By default, the owner account will be the one that deploys the contract. This * can later be changed with {transferOwnership}. * * This module is used through inheritance. It will make available the modifier * `onlyOwner`, which can be applied to your functions to restrict their use to * the owner. */ abstract contract OwnableUpgradeable is Initializable, ContextUpgradeable { address private _owner; event OwnershipTransferred(address indexed previousOwner, address indexed newOwner); /** * @dev Initializes the contract setting the deployer as the initial owner. */ function __Ownable_init() internal onlyInitializing { __Ownable_init_unchained(); } function __Ownable_init_unchained() internal onlyInitializing { _transferOwnership(_msgSender()); } /** * @dev Returns the address of the current owner. */ function owner() public view virtual returns (address) { return _owner; } /** * @dev Throws if called by any account other than the owner. */ modifier onlyOwner() { require(owner() == _msgSender(), "Ownable: caller is not the owner"); _; } /** * @dev Leaves the contract without owner. It will not be possible to call * `onlyOwner` functions anymore. Can only be called by the current owner. * * NOTE: Renouncing ownership will leave the contract without an owner, * thereby removing any functionality that is only available to the owner. */ function renounceOwnership() public virtual onlyOwner { _transferOwnership(address(0)); } /** * @dev Transfers ownership of the contract to a new account (`newOwner`). * Can only be called by the current owner. */ function transferOwnership(address newOwner) public virtual onlyOwner { require(newOwner != address(0), "Ownable: new owner is the zero address"); _transferOwnership(newOwner); } /** * @dev Transfers ownership of the contract to a new account (`newOwner`). * Internal function without access restriction. */ function _transferOwnership(address newOwner) internal virtual { address oldOwner = _owner; _owner = newOwner; emit OwnershipTransferred(oldOwner, newOwner); } /** * @dev This empty reserved space is put in place to allow future versions to add new * variables without shifting down storage in the inheritance chain. * See https://docs.openzeppelin.com/contracts/4.x/upgradeable#storage_gaps */ uint256[49] private __gap; }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (token/ERC721/extensions/ERC721Burnable.sol) 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 onlyInitializing { } function __ERC721Burnable_init_unchained() internal onlyInitializing { } /** * @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); } /** * @dev This empty reserved space is put in place to allow future versions to add new * variables without shifting down storage in the inheritance chain. * See https://docs.openzeppelin.com/contracts/4.x/upgradeable#storage_gaps */ uint256[50] private __gap; }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.6.0) (proxy/utils/Initializable.sol) pragma solidity ^0.8.2; import "../../utils/AddressUpgradeable.sol"; /** * @dev This is a base contract to aid in writing upgradeable contracts, or any kind of contract that will be deployed * behind a proxy. Since proxied contracts do not make use of a constructor, it's common to move constructor logic to an * external initializer function, usually called `initialize`. It then becomes necessary to protect this initializer * function so it can only be called once. The {initializer} modifier provided by this contract will have this effect. * * The initialization functions use a version number. Once a version number is used, it is consumed and cannot be * reused. This mechanism prevents re-execution of each "step" but allows the creation of new initialization steps in * case an upgrade adds a module that needs to be initialized. * * For example: * * [.hljs-theme-light.nopadding] * ``` * contract MyToken is ERC20Upgradeable { * function initialize() initializer public { * __ERC20_init("MyToken", "MTK"); * } * } * contract MyTokenV2 is MyToken, ERC20PermitUpgradeable { * function initializeV2() reinitializer(2) public { * __ERC20Permit_init("MyToken"); * } * } * ``` * * TIP: To avoid leaving the proxy in an uninitialized state, the initializer function should be called as early as * possible by providing the encoded function call as the `_data` argument to {ERC1967Proxy-constructor}. * * CAUTION: When used with inheritance, manual care must be taken to not invoke a parent initializer twice, or to ensure * that all initializers are idempotent. This is not verified automatically as constructors are by Solidity. * * [CAUTION] * ==== * Avoid leaving a contract uninitialized. * * An uninitialized contract can be taken over by an attacker. This applies to both a proxy and its implementation * contract, which may impact the proxy. To prevent the implementation contract from being used, you should invoke * the {_disableInitializers} function in the constructor to automatically lock it when it is deployed: * * [.hljs-theme-light.nopadding] * ``` * /// @custom:oz-upgrades-unsafe-allow constructor * constructor() { * _disableInitializers(); * } * ``` * ==== */ abstract contract Initializable { /** * @dev Indicates that the contract has been initialized. * @custom:oz-retyped-from bool */ uint8 private _initialized; /** * @dev Indicates that the contract is in the process of being initialized. */ bool private _initializing; /** * @dev Triggered when the contract has been initialized or reinitialized. */ event Initialized(uint8 version); /** * @dev A modifier that defines a protected initializer function that can be invoked at most once. In its scope, * `onlyInitializing` functions can be used to initialize parent contracts. Equivalent to `reinitializer(1)`. */ modifier initializer() { bool isTopLevelCall = _setInitializedVersion(1); if (isTopLevelCall) { _initializing = true; } _; if (isTopLevelCall) { _initializing = false; emit Initialized(1); } } /** * @dev A modifier that defines a protected reinitializer function that can be invoked at most once, and only if the * contract hasn't been initialized to a greater version before. In its scope, `onlyInitializing` functions can be * used to initialize parent contracts. * * `initializer` is equivalent to `reinitializer(1)`, so a reinitializer may be used after the original * initialization step. This is essential to configure modules that are added through upgrades and that require * initialization. * * Note that versions can jump in increments greater than 1; this implies that if multiple reinitializers coexist in * a contract, executing them in the right order is up to the developer or operator. */ modifier reinitializer(uint8 version) { bool isTopLevelCall = _setInitializedVersion(version); if (isTopLevelCall) { _initializing = true; } _; if (isTopLevelCall) { _initializing = false; emit Initialized(version); } } /** * @dev Modifier to protect an initialization function so that it can only be invoked by functions with the * {initializer} and {reinitializer} modifiers, directly or indirectly. */ modifier onlyInitializing() { require(_initializing, "Initializable: contract is not initializing"); _; } /** * @dev Locks the contract, preventing any future reinitialization. This cannot be part of an initializer call. * Calling this in the constructor of a contract will prevent that contract from being initialized or reinitialized * to any version. It is recommended to use this to lock implementation contracts that are designed to be called * through proxies. */ function _disableInitializers() internal virtual { _setInitializedVersion(type(uint8).max); } function _setInitializedVersion(uint8 version) private returns (bool) { // If the contract is initializing we ignore whether _initialized is set in order to support multiple // inheritance patterns, but we only do this in the context of a constructor, and for the lowest level // of initializers, because in other contexts the contract may have been reentered. if (_initializing) { require( version == 1 && !AddressUpgradeable.isContract(address(this)), "Initializable: contract is already initialized" ); return false; } else { require(_initialized < version, "Initializable: contract is already initialized"); _initialized = version; return true; } } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.5.0) (proxy/utils/UUPSUpgradeable.sol) pragma solidity ^0.8.0; import "../../interfaces/draft-IERC1822Upgradeable.sol"; 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, IERC1822ProxiableUpgradeable, ERC1967UpgradeUpgradeable { function __UUPSUpgradeable_init() internal onlyInitializing { } function __UUPSUpgradeable_init_unchained() internal onlyInitializing { } /// @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 Check that the execution is not being performed through a delegate call. This allows a function to be * callable on the implementing contract but not through proxies. */ modifier notDelegated() { require(address(this) == __self, "UUPSUpgradeable: must not be called through delegatecall"); _; } /** * @dev Implementation of the ERC1822 {proxiableUUID} function. This returns the storage slot used by the * implementation. It is used to validate that the this implementation remains valid after an upgrade. * * IMPORTANT: A proxy pointing at a proxiable contract should not be considered proxiable itself, because this risks * bricking a proxy that upgrades to it, by delegating to itself until out of gas. Thus it is critical that this * function revert if invoked through a proxy. This is guaranteed by the `notDelegated` modifier. */ function proxiableUUID() external view virtual override notDelegated returns (bytes32) { return _IMPLEMENTATION_SLOT; } /** * @dev Upgrade the implementation of the proxy to `newImplementation`. * * Calls {_authorizeUpgrade}. * * Emits an {Upgraded} event. */ function upgradeTo(address newImplementation) external virtual onlyProxy { _authorizeUpgrade(newImplementation); _upgradeToAndCallUUPS(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); _upgradeToAndCallUUPS(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; /** * @dev This empty reserved space is put in place to allow future versions to add new * variables without shifting down storage in the inheritance chain. * See https://docs.openzeppelin.com/contracts/4.x/upgradeable#storage_gaps */ uint256[50] private __gap; }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/Counters.sol) 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 // OpenZeppelin Contracts v4.4.1 (utils/Strings.sol) pragma solidity ^0.8.0; /** * @dev String operations. */ library Strings { bytes16 private constant _HEX_SYMBOLS = "0123456789abcdef"; /** * @dev Converts a `uint256` to its ASCII `string` decimal representation. */ function toString(uint256 value) internal pure returns (string memory) { // Inspired by OraclizeAPI's implementation - MIT licence // https://github.com/oraclize/ethereum-api/blob/b42146b063c7d6ee1358846c198246239e9360e8/oraclizeAPI_0.4.25.sol if (value == 0) { return "0"; } uint256 temp = value; uint256 digits; while (temp != 0) { digits++; temp /= 10; } bytes memory buffer = new bytes(digits); while (value != 0) { digits -= 1; buffer[digits] = bytes1(uint8(48 + uint256(value % 10))); value /= 10; } return string(buffer); } /** * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation. */ function toHexString(uint256 value) internal pure returns (string memory) { if (value == 0) { return "0x00"; } uint256 temp = value; uint256 length = 0; while (temp != 0) { length++; temp >>= 8; } return toHexString(value, length); } /** * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation with fixed length. */ function toHexString(uint256 value, uint256 length) internal pure returns (string memory) { bytes memory buffer = new bytes(2 * length + 2); buffer[0] = "0"; buffer[1] = "x"; for (uint256 i = 2 * length + 1; i > 1; --i) { buffer[i] = _HEX_SYMBOLS[value & 0xf]; value >>= 4; } require(value == 0, "Strings: hex length insufficient"); return string(buffer); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (security/ReentrancyGuard.sol) pragma solidity ^0.8.0; /** * @dev Contract module that helps prevent reentrant calls to a function. * * Inheriting from `ReentrancyGuard` will make the {nonReentrant} modifier * available, which can be applied to functions to make sure there are no nested * (reentrant) calls to them. * * Note that because there is a single `nonReentrant` guard, functions marked as * `nonReentrant` may not call one another. This can be worked around by making * those functions `private`, and then adding `external` `nonReentrant` entry * points to them. * * TIP: If you would like to learn more about reentrancy and alternative ways * to protect against it, check out our blog post * https://blog.openzeppelin.com/reentrancy-after-istanbul/[Reentrancy After Istanbul]. */ abstract contract ReentrancyGuard { // Booleans are more expensive than uint256 or any type that takes up a full // word because each write operation emits an extra SLOAD to first read the // slot's contents, replace the bits taken up by the boolean, and then write // back. This is the compiler's defense against contract upgrades and // pointer aliasing, and it cannot be disabled. // The values being non-zero value makes deployment a bit more expensive, // but in exchange the refund on every call to nonReentrant will be lower in // amount. Since refunds are capped to a percentage of the total // transaction's gas, it is best to keep them low in cases like this one, to // increase the likelihood of the full refund coming into effect. uint256 private constant _NOT_ENTERED = 1; uint256 private constant _ENTERED = 2; uint256 private _status; constructor() { _status = _NOT_ENTERED; } /** * @dev Prevents a contract from calling itself, directly or indirectly. * Calling a `nonReentrant` function from another `nonReentrant` * function is not supported. It is possible to prevent this from happening * by making the `nonReentrant` function external, and making it call a * `private` function that does the actual work. */ modifier nonReentrant() { // On the first call to nonReentrant, _notEntered will be true require(_status != _ENTERED, "ReentrancyGuard: reentrant call"); // Any calls to nonReentrant after this point will fail _status = _ENTERED; _; // By storing the original value once again, a refund is triggered (see // https://eips.ethereum.org/EIPS/eip-2200) _status = _NOT_ENTERED; } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.6.0) (token/ERC721/IERC721.sol) pragma solidity ^0.8.0; import "../../utils/introspection/IERC165Upgradeable.sol"; /** * @dev Required interface of an ERC721 compliant contract. */ interface IERC721Upgradeable is IERC165Upgradeable { /** * @dev Emitted when `tokenId` token is transferred from `from` to `to`. */ event Transfer(address indexed from, address indexed to, uint256 indexed tokenId); /** * @dev Emitted when `owner` enables `approved` to manage the `tokenId` token. */ event Approval(address indexed owner, address indexed approved, uint256 indexed tokenId); /** * @dev Emitted when `owner` enables or disables (`approved`) `operator` to manage all of its assets. */ event ApprovalForAll(address indexed owner, address indexed operator, bool approved); /** * @dev Returns the number of tokens in ``owner``'s account. */ function balanceOf(address owner) external view returns (uint256 balance); /** * @dev Returns the owner of the `tokenId` token. * * Requirements: * * - `tokenId` must exist. */ function ownerOf(uint256 tokenId) external view returns (address owner); /** * @dev Safely transfers `tokenId` token from `from` to `to`. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must exist and be owned by `from`. * - If the caller is not `from`, it must be approved to move this token by either {approve} or {setApprovalForAll}. * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */ function safeTransferFrom( address from, address to, uint256 tokenId, bytes calldata data ) external; /** * @dev Safely transfers `tokenId` token from `from` to `to`, checking first that contract recipients * are aware of the ERC721 protocol to prevent tokens from being forever locked. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must exist and be owned by `from`. * - If the caller is not `from`, it must be have been allowed to move this token by either {approve} or {setApprovalForAll}. * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */ function safeTransferFrom( address from, address to, uint256 tokenId ) external; /** * @dev Transfers `tokenId` token from `from` to `to`. * * WARNING: Usage of this method is discouraged, use {safeTransferFrom} whenever possible. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must be owned by `from`. * - If the caller is not `from`, it must be approved to move this token by either {approve} or {setApprovalForAll}. * * Emits a {Transfer} event. */ function transferFrom( address from, address to, uint256 tokenId ) external; /** * @dev Gives permission to `to` to transfer `tokenId` token to another account. * The approval is cleared when the token is transferred. * * Only a single account can be approved at a time, so approving the zero address clears previous approvals. * * Requirements: * * - The caller must own the token or be an approved operator. * - `tokenId` must exist. * * Emits an {Approval} event. */ function approve(address to, uint256 tokenId) external; /** * @dev Approve or remove `operator` as an operator for the caller. * Operators can call {transferFrom} or {safeTransferFrom} for any token owned by the caller. * * Requirements: * * - The `operator` cannot be the caller. * * Emits an {ApprovalForAll} event. */ function setApprovalForAll(address operator, bool _approved) external; /** * @dev Returns the account approved for `tokenId` token. * * Requirements: * * - `tokenId` must exist. */ function getApproved(uint256 tokenId) external view returns (address operator); /** * @dev Returns if the `operator` is allowed to manage all of the assets of `owner`. * * See {setApprovalForAll} */ function isApprovedForAll(address owner, address operator) external view returns (bool); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.6.0) (token/ERC721/IERC721Receiver.sol) pragma solidity ^0.8.0; /** * @title ERC721 token receiver interface * @dev Interface for any contract that wants to support safeTransfers * from ERC721 asset contracts. */ interface IERC721ReceiverUpgradeable { /** * @dev Whenever an {IERC721} `tokenId` token is transferred to this contract via {IERC721-safeTransferFrom} * by `operator` from `from`, this function is called. * * It must return its Solidity selector to confirm the token transfer. * If any other value is returned or the interface is not implemented by the recipient, the transfer will be reverted. * * The selector can be obtained in Solidity with `IERC721Receiver.onERC721Received.selector`. */ function onERC721Received( address operator, address from, uint256 tokenId, bytes calldata data ) external returns (bytes4); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (token/ERC721/extensions/IERC721Metadata.sol) pragma solidity ^0.8.0; import "../IERC721Upgradeable.sol"; /** * @title ERC-721 Non-Fungible Token Standard, optional metadata extension * @dev See https://eips.ethereum.org/EIPS/eip-721 */ interface IERC721MetadataUpgradeable is IERC721Upgradeable { /** * @dev Returns the token collection name. */ function name() external view returns (string memory); /** * @dev Returns the token collection symbol. */ function symbol() external view returns (string memory); /** * @dev Returns the Uniform Resource Identifier (URI) for `tokenId` token. */ function tokenURI(uint256 tokenId) external view returns (string memory); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.5.0) (utils/Address.sol) pragma solidity ^0.8.1; /** * @dev Collection of functions related to the address type */ library AddressUpgradeable { /** * @dev Returns true if `account` is a contract. * * [IMPORTANT] * ==== * It is unsafe to assume that an address for which this function returns * false is an externally-owned account (EOA) and not a contract. * * Among others, `isContract` will return false for the following * types of addresses: * * - an externally-owned account * - a contract in construction * - an address where a contract will be created * - an address where a contract lived, but was destroyed * ==== * * [IMPORTANT] * ==== * You shouldn't rely on `isContract` to protect against flash loan attacks! * * Preventing calls from contracts is highly discouraged. It breaks composability, breaks support for smart wallets * like Gnosis Safe, and does not provide security since it can be circumvented by calling from a contract * constructor. * ==== */ function isContract(address account) internal view returns (bool) { // This method relies on extcodesize/address.code.length, which returns 0 // for contracts in construction, since the code is only stored at the end // of the constructor execution. return account.code.length > 0; } /** * @dev Replacement for Solidity's `transfer`: sends `amount` wei to * `recipient`, forwarding all available gas and reverting on errors. * * https://eips.ethereum.org/EIPS/eip-1884[EIP1884] increases the gas cost * of certain opcodes, possibly making contracts go over the 2300 gas limit * imposed by `transfer`, making them unable to receive funds via * `transfer`. {sendValue} removes this limitation. * * https://diligence.consensys.net/posts/2019/09/stop-using-soliditys-transfer-now/[Learn more]. * * IMPORTANT: because control is transferred to `recipient`, care must be * taken to not create reentrancy vulnerabilities. Consider using * {ReentrancyGuard} or the * https://solidity.readthedocs.io/en/v0.5.11/security-considerations.html#use-the-checks-effects-interactions-pattern[checks-effects-interactions pattern]. */ function sendValue(address payable recipient, uint256 amount) internal { require(address(this).balance >= amount, "Address: insufficient balance"); (bool success, ) = recipient.call{value: amount}(""); require(success, "Address: unable to send value, recipient may have reverted"); } /** * @dev Performs a Solidity function call using a low level `call`. A * plain `call` is an unsafe replacement for a function call: use this * function instead. * * If `target` reverts with a revert reason, it is bubbled up by this * function (like regular Solidity function calls). * * Returns the raw returned data. To convert to the expected return value, * use https://solidity.readthedocs.io/en/latest/units-and-global-variables.html?highlight=abi.decode#abi-encoding-and-decoding-functions[`abi.decode`]. * * Requirements: * * - `target` must be a contract. * - calling `target` with `data` must not revert. * * _Available since v3.1._ */ function functionCall(address target, bytes memory data) internal returns (bytes memory) { return functionCall(target, data, "Address: low-level call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], but with * `errorMessage` as a fallback revert reason when `target` reverts. * * _Available since v3.1._ */ function functionCall( address target, bytes memory data, string memory errorMessage ) internal returns (bytes memory) { return functionCallWithValue(target, data, 0, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but also transferring `value` wei to `target`. * * Requirements: * * - the calling contract must have an ETH balance of at least `value`. * - the called Solidity function must be `payable`. * * _Available since v3.1._ */ function functionCallWithValue( address target, bytes memory data, uint256 value ) internal returns (bytes memory) { return functionCallWithValue(target, data, value, "Address: low-level call with value failed"); } /** * @dev Same as {xref-Address-functionCallWithValue-address-bytes-uint256-}[`functionCallWithValue`], but * with `errorMessage` as a fallback revert reason when `target` reverts. * * _Available since v3.1._ */ function functionCallWithValue( address target, bytes memory data, uint256 value, string memory errorMessage ) internal returns (bytes memory) { require(address(this).balance >= value, "Address: insufficient balance for call"); require(isContract(target), "Address: call to non-contract"); (bool success, bytes memory returndata) = target.call{value: value}(data); return verifyCallResult(success, returndata, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but performing a static call. * * _Available since v3.3._ */ function functionStaticCall(address target, bytes memory data) internal view returns (bytes memory) { return functionStaticCall(target, data, "Address: low-level static call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`], * but performing a static call. * * _Available since v3.3._ */ function functionStaticCall( address target, bytes memory data, string memory errorMessage ) internal view returns (bytes memory) { require(isContract(target), "Address: static call to non-contract"); (bool success, bytes memory returndata) = target.staticcall(data); return verifyCallResult(success, returndata, errorMessage); } /** * @dev Tool to verifies that a low level call was successful, and revert if it wasn't, either by bubbling the * revert reason using the provided one. * * _Available since v4.3._ */ function verifyCallResult( bool success, bytes memory returndata, string memory errorMessage ) internal pure returns (bytes memory) { if (success) { return returndata; } else { // Look for revert reason and bubble it up if present if (returndata.length > 0) { // The easiest way to bubble the revert reason is using memory via assembly assembly { let returndata_size := mload(returndata) revert(add(32, returndata), returndata_size) } } else { revert(errorMessage); } } } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/Context.sol) pragma solidity ^0.8.0; import "../proxy/utils/Initializable.sol"; /** * @dev Provides information about the current execution context, including the * sender of the transaction and its data. While these are generally available * via msg.sender and msg.data, they should not be accessed in such a direct * manner, since when dealing with meta-transactions the account sending and * paying for execution may not be the actual sender (as far as an application * is concerned). * * This contract is only required for intermediate, library-like contracts. */ abstract contract ContextUpgradeable is Initializable { function __Context_init() internal onlyInitializing { } function __Context_init_unchained() internal onlyInitializing { } function _msgSender() internal view virtual returns (address) { return msg.sender; } function _msgData() internal view virtual returns (bytes calldata) { return msg.data; } /** * @dev This empty reserved space is put in place to allow future versions to add new * variables without shifting down storage in the inheritance chain. * See https://docs.openzeppelin.com/contracts/4.x/upgradeable#storage_gaps */ uint256[50] private __gap; }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/Strings.sol) pragma solidity ^0.8.0; /** * @dev String operations. */ library StringsUpgradeable { bytes16 private constant _HEX_SYMBOLS = "0123456789abcdef"; /** * @dev Converts a `uint256` to its ASCII `string` decimal representation. */ function toString(uint256 value) internal pure returns (string memory) { // Inspired by OraclizeAPI's implementation - MIT licence // https://github.com/oraclize/ethereum-api/blob/b42146b063c7d6ee1358846c198246239e9360e8/oraclizeAPI_0.4.25.sol if (value == 0) { return "0"; } uint256 temp = value; uint256 digits; while (temp != 0) { digits++; temp /= 10; } bytes memory buffer = new bytes(digits); while (value != 0) { digits -= 1; buffer[digits] = bytes1(uint8(48 + uint256(value % 10))); value /= 10; } return string(buffer); } /** * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation. */ function toHexString(uint256 value) internal pure returns (string memory) { if (value == 0) { return "0x00"; } uint256 temp = value; uint256 length = 0; while (temp != 0) { length++; temp >>= 8; } return toHexString(value, length); } /** * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation with fixed length. */ function toHexString(uint256 value, uint256 length) internal pure returns (string memory) { bytes memory buffer = new bytes(2 * length + 2); buffer[0] = "0"; buffer[1] = "x"; for (uint256 i = 2 * length + 1; i > 1; --i) { buffer[i] = _HEX_SYMBOLS[value & 0xf]; value >>= 4; } require(value == 0, "Strings: hex length insufficient"); return string(buffer); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/introspection/ERC165.sol) pragma solidity ^0.8.0; import "./IERC165Upgradeable.sol"; import "../../proxy/utils/Initializable.sol"; /** * @dev Implementation of the {IERC165} interface. * * Contracts that want to implement ERC165 should inherit from this contract and override {supportsInterface} to check * for the additional interface id that will be supported. For example: * * ```solidity * function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) { * return interfaceId == type(MyInterface).interfaceId || super.supportsInterface(interfaceId); * } * ``` * * Alternatively, {ERC165Storage} provides an easier to use but more expensive implementation. */ abstract contract ERC165Upgradeable is Initializable, IERC165Upgradeable { function __ERC165_init() internal onlyInitializing { } function __ERC165_init_unchained() internal onlyInitializing { } /** * @dev See {IERC165-supportsInterface}. */ function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) { return interfaceId == type(IERC165Upgradeable).interfaceId; } /** * @dev This empty reserved space is put in place to allow future versions to add new * variables without shifting down storage in the inheritance chain. * See https://docs.openzeppelin.com/contracts/4.x/upgradeable#storage_gaps */ uint256[50] private __gap; }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/introspection/IERC165.sol) pragma solidity ^0.8.0; /** * @dev Interface of the ERC165 standard, as defined in the * https://eips.ethereum.org/EIPS/eip-165[EIP]. * * Implementers can declare support of contract interfaces, which can then be * queried by others ({ERC165Checker}). * * For an implementation, see {ERC165}. */ interface IERC165Upgradeable { /** * @dev Returns true if this contract implements the interface defined by * `interfaceId`. See the corresponding * https://eips.ethereum.org/EIPS/eip-165#how-interfaces-are-identified[EIP section] * to learn more about how these ids are created. * * This function call must use less than 30 000 gas. */ function supportsInterface(bytes4 interfaceId) external view returns (bool); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.5.0) (interfaces/draft-IERC1822.sol) pragma solidity ^0.8.0; /** * @dev ERC1822: Universal Upgradeable Proxy Standard (UUPS) documents a method for upgradeability through a simplified * proxy whose upgrades are fully controlled by the current implementation. */ interface IERC1822ProxiableUpgradeable { /** * @dev Returns the storage slot that the proxiable contract assumes is being used to store the implementation * address. * * IMPORTANT: A proxy pointing at a proxiable contract should not be considered proxiable itself, because this risks * bricking a proxy that upgrades to it, by delegating to itself until out of gas. Thus it is critical that this * function revert if invoked through a proxy. */ function proxiableUUID() external view returns (bytes32); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.5.0) (proxy/ERC1967/ERC1967Upgrade.sol) pragma solidity ^0.8.2; import "../beacon/IBeaconUpgradeable.sol"; import "../../interfaces/draft-IERC1822Upgradeable.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 onlyInitializing { } function __ERC1967Upgrade_init_unchained() internal onlyInitializing { } // 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 _upgradeToAndCallUUPS( address newImplementation, bytes memory data, bool forceCall ) internal { // Upgrades from old implementations will perform a rollback test. This test requires the new // implementation to upgrade back to the old, non-ERC1822 compliant, implementation. Removing // this special case will break upgrade paths from old UUPS implementation to new ones. if (StorageSlotUpgradeable.getBooleanSlot(_ROLLBACK_SLOT).value) { _setImplementation(newImplementation); } else { try IERC1822ProxiableUpgradeable(newImplementation).proxiableUUID() returns (bytes32 slot) { require(slot == _IMPLEMENTATION_SLOT, "ERC1967Upgrade: unsupported proxiableUUID"); } catch { revert("ERC1967Upgrade: new implementation is not UUPS"); } _upgradeToAndCall(newImplementation, data, forceCall); } } /** * @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"); } /** * @dev This empty reserved space is put in place to allow future versions to add new * variables without shifting down storage in the inheritance chain. * See https://docs.openzeppelin.com/contracts/4.x/upgradeable#storage_gaps */ uint256[50] private __gap; }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (proxy/beacon/IBeacon.sol) 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 // OpenZeppelin Contracts v4.4.1 (utils/StorageSlot.sol) 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": false, "runs": 200 }, "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":false,"internalType":"uint8","name":"version","type":"uint8"}],"name":"Initialized","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"account","type":"address"}],"name":"Paused","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Transfer","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"account","type":"address"}],"name":"Unpaused","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"implementation","type":"address"}],"name":"Upgraded","type":"event"},{"stateMutability":"nonpayable","type":"fallback"},{"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":[{"internalType":"string","name":"_baseURI","type":"string"}],"name":"changeBaseURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getApproved","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"string","name":"_name","type":"string"},{"internalType":"string","name":"_symbol","type":"string"}],"name":"initialize","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"operator","type":"address"}],"name":"isApprovedForAll","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"maxOfferCount","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":"offerCount","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"ownerOf","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"pause","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"paused","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"proxiableUUID","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"requireWhitelist","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"safeMint","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":"bool","name":"_requireWhitelist","type":"bool"}],"name":"setRequireWhitelist","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_whitelisted","type":"address"}],"name":"setWhitelist","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address[]","name":"_whitelisted","type":"address[]"}],"name":"setWhitelistBatch","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes4","name":"interfaceId","type":"bytes4"}],"name":"supportsInterface","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"tokenURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"transferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"unpause","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"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"userList","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"whitelist","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"}]
Contract Creation Code
60a06040523073ffffffffffffffffffffffffffffffffffffffff1660809073ffffffffffffffffffffffffffffffffffffffff168152506103896101c65560016101c960006101000a81548160ff02191690831515021790555034801561006657600080fd5b5060016101c381905550608051615670620000a860003960008181610b7f01528181610c0e01528181610f6101528181610ff001526110a001526156706000f3fe6080604052600436106101fd5760003560e01c80636352211e1161010d5780638da5cb5b116100a0578063b88d4fde1161006f578063b88d4fde146106e8578063c87b56dd14610711578063e985e9c51461074e578063f2fde38b1461078b578063f4148ee5146107b4576101fe565b80638da5cb5b1461062c57806395d89b41146106575780639b19251a14610682578063a22cb465146106bf576101fe565b806378cf6de0116100dc57806378cf6de0146105985780638456cb59146105c1578063854cff2f146105d8578063856734c414610601576101fe565b80636352211e146104f05780636871ee401461052d57806370a0823114610544578063715018a614610581576101fe565b80633659cfe61161019057806342966c681161015f57806342966c681461042c5780634cd88b76146104555780634f1ef2861461047e57806352d1902d1461049a5780635c975abb146104c5576101fe565b80633659cfe61461039a57806339a0c6f9146103c35780633f4ba83a146103ec57806342842e0e14610403576101fe565b80631115c24d116101cc5780631115c24d146102de5780631b4e7bd2146103095780631f2330471461034657806323b872dd14610371576101fe565b806301ffc9a71461021057806306fdde031461024d578063081812fc14610278578063095ea7b3146102b5576101fe565b5b34801561020a57600080fd5b50600080fd5b34801561021c57600080fd5b5061023760048036038101906102329190613787565b6107dd565b60405161024491906137cf565b60405180910390f35b34801561025957600080fd5b506102626108bf565b60405161026f9190613883565b60405180910390f35b34801561028457600080fd5b5061029f600480360381019061029a91906138db565b610951565b6040516102ac9190613949565b60405180910390f35b3480156102c157600080fd5b506102dc60048036038101906102d79190613990565b6109d6565b005b3480156102ea57600080fd5b506102f3610aee565b60405161030091906139df565b60405180910390f35b34801561031557600080fd5b50610330600480360381019061032b91906139fa565b610af5565b60405161033d91906137cf565b60405180910390f35b34801561035257600080fd5b5061035b610b16565b60405161036891906139df565b60405180910390f35b34801561037d57600080fd5b5061039860048036038101906103939190613a27565b610b1d565b005b3480156103a657600080fd5b506103c160048036038101906103bc91906139fa565b610b7d565b005b3480156103cf57600080fd5b506103ea60048036038101906103e59190613baf565b610d06565b005b3480156103f857600080fd5b50610401610d9d565b005b34801561040f57600080fd5b5061042a60048036038101906104259190613a27565b610e23565b005b34801561043857600080fd5b50610453600480360381019061044e91906138db565b610e43565b005b34801561046157600080fd5b5061047c60048036038101906104779190613bf8565b610e9f565b005b61049860048036038101906104939190613d11565b610f5f565b005b3480156104a657600080fd5b506104af61109c565b6040516104bc9190613d86565b60405180910390f35b3480156104d157600080fd5b506104da611155565b6040516104e791906137cf565b60405180910390f35b3480156104fc57600080fd5b50610517600480360381019061051291906138db565b61116c565b6040516105249190613949565b60405180910390f35b34801561053957600080fd5b5061054261121e565b005b34801561055057600080fd5b5061056b600480360381019061056691906139fa565b611510565b60405161057891906139df565b60405180910390f35b34801561058d57600080fd5b506105966115c8565b005b3480156105a457600080fd5b506105bf60048036038101906105ba9190613dcd565b611650565b005b3480156105cd57600080fd5b506105d66116ea565b005b3480156105e457600080fd5b506105ff60048036038101906105fa91906139fa565b611770565b005b34801561060d57600080fd5b50610616611848565b60405161062391906137cf565b60405180910390f35b34801561063857600080fd5b5061064161185c565b60405161064e9190613949565b60405180910390f35b34801561066357600080fd5b5061066c611886565b6040516106799190613883565b60405180910390f35b34801561068e57600080fd5b506106a960048036038101906106a491906139fa565b611918565b6040516106b691906137cf565b60405180910390f35b3480156106cb57600080fd5b506106e660048036038101906106e19190613dfa565b611939565b005b3480156106f457600080fd5b5061070f600480360381019061070a9190613e3a565b61194f565b005b34801561071d57600080fd5b50610738600480360381019061073391906138db565b6119b1565b6040516107459190613883565b60405180910390f35b34801561075a57600080fd5b5061077560048036038101906107709190613ebd565b611a62565b60405161078291906137cf565b60405180910390f35b34801561079757600080fd5b506107b260048036038101906107ad91906139fa565b611af6565b005b3480156107c057600080fd5b506107db60048036038101906107d69190613f5d565b611bee565b005b60007f80ac58cd000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614806108a857507f5b5e139f000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b806108b857506108b782611d10565b5b9050919050565b6060606580546108ce90613fd9565b80601f01602080910402602001604051908101604052809291908181526020018280546108fa90613fd9565b80156109475780601f1061091c57610100808354040283529160200191610947565b820191906000526020600020905b81548152906001019060200180831161092a57829003601f168201915b5050505050905090565b600061095c82611d7a565b61099b576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016109929061407d565b60405180910390fd5b6069600083815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050919050565b60006109e18261116c565b90508073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff161415610a52576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610a499061410f565b60405180910390fd5b8073ffffffffffffffffffffffffffffffffffffffff16610a71611de6565b73ffffffffffffffffffffffffffffffffffffffff161480610aa05750610a9f81610a9a611de6565b611a62565b5b610adf576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610ad6906141a1565b60405180910390fd5b610ae98383611dee565b505050565b6101c75481565b6101c86020528060005260406000206000915054906101000a900460ff1681565b6101c65481565b610b2e610b28611de6565b82611ea7565b610b6d576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610b6490614233565b60405180910390fd5b610b78838383611f85565b505050565b7f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff163073ffffffffffffffffffffffffffffffffffffffff161415610c0c576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610c03906142c5565b60405180910390fd5b7f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff16610c4b6121ec565b73ffffffffffffffffffffffffffffffffffffffff1614610ca1576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610c9890614357565b60405180910390fd5b610caa81612243565b610d0381600067ffffffffffffffff811115610cc957610cc8613a84565b5b6040519080825280601f01601f191660200182016040528015610cfb5781602001600182028036833780820191505090505b5060006122c2565b50565b610d0e611de6565b73ffffffffffffffffffffffffffffffffffffffff16610d2c61185c565b73ffffffffffffffffffffffffffffffffffffffff1614610d82576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610d79906143c3565b60405180910390fd5b806101c59080519060200190610d99929190613638565b5050565b610da5611de6565b73ffffffffffffffffffffffffffffffffffffffff16610dc361185c565b73ffffffffffffffffffffffffffffffffffffffff1614610e19576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610e10906143c3565b60405180910390fd5b610e21612430565b565b610e3e8383836040518060200160405280600081525061194f565b505050565b610e54610e4e611de6565b82611ea7565b610e93576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610e8a90614455565b60405180910390fd5b610e9c816124d2565b50565b6000610eab60016124de565b90508015610ecf576001600060016101000a81548160ff0219169083151502179055505b610ed983836125ce565b610ee161262b565b610ee961267c565b610ef16126d5565b610ef961272e565b610f0161277f565b8015610f5a5760008060016101000a81548160ff0219169083151502179055507f7f26b83ff96e1f2b6a682f133852f6798a09c465da95921460cefb38474024986001604051610f5191906144c7565b60405180910390a15b505050565b7f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff163073ffffffffffffffffffffffffffffffffffffffff161415610fee576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610fe5906142c5565b60405180910390fd5b7f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff1661102d6121ec565b73ffffffffffffffffffffffffffffffffffffffff1614611083576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161107a90614357565b60405180910390fd5b61108c82612243565b611098828260016122c2565b5050565b60007f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff163073ffffffffffffffffffffffffffffffffffffffff161461112c576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161112390614554565b60405180910390fd5b7f360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc60001b905090565b600060c960009054906101000a900460ff16905090565b6000806067600084815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff161415611215576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161120c906145e6565b60405180910390fd5b80915050919050565b3373ffffffffffffffffffffffffffffffffffffffff163273ffffffffffffffffffffffffffffffffffffffff161461128c576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161128390614652565b60405180910390fd5b60026101c35414156112d3576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016112ca906146be565b60405180910390fd5b60026101c3819055506101c960009054906101000a900460ff16158061135c57506101c960009054906101000a900460ff16801561135b57506101ca60003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff165b5b61139b576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161139290614750565b60405180910390fd5b6101c860003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff1615611429576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611420906147bc565b60405180910390fd5b60006114366101c46127d0565b90506101c654811061147d576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161147490614828565b60405180910390fd5b6114886101c46127de565b60016101c860003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055506114eb33826127f4565b6101c760008154809291906114ff90614877565b91905055505060016101c381905550565b60008073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161415611581576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161157890614932565b60405180910390fd5b606860008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020549050919050565b6115d0611de6565b73ffffffffffffffffffffffffffffffffffffffff166115ee61185c565b73ffffffffffffffffffffffffffffffffffffffff1614611644576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161163b906143c3565b60405180910390fd5b61164e6000612812565b565b611658611de6565b73ffffffffffffffffffffffffffffffffffffffff1661167661185c565b73ffffffffffffffffffffffffffffffffffffffff16146116cc576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016116c3906143c3565b60405180910390fd5b806101c960006101000a81548160ff02191690831515021790555050565b6116f2611de6565b73ffffffffffffffffffffffffffffffffffffffff1661171061185c565b73ffffffffffffffffffffffffffffffffffffffff1614611766576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161175d906143c3565b60405180910390fd5b61176e6128d8565b565b611778611de6565b73ffffffffffffffffffffffffffffffffffffffff1661179661185c565b73ffffffffffffffffffffffffffffffffffffffff16146117ec576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016117e3906143c3565b60405180910390fd5b60016101ca60008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff02191690831515021790555050565b6101c960009054906101000a900460ff1681565b600060fb60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b60606066805461189590613fd9565b80601f01602080910402602001604051908101604052809291908181526020018280546118c190613fd9565b801561190e5780601f106118e35761010080835404028352916020019161190e565b820191906000526020600020905b8154815290600101906020018083116118f157829003601f168201915b5050505050905090565b6101ca6020528060005260406000206000915054906101000a900460ff1681565b61194b611944611de6565b838361297b565b5050565b61196061195a611de6565b83611ea7565b61199f576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161199690614233565b60405180910390fd5b6119ab84848484612ae8565b50505050565b60606119bc82611d7a565b6119fb576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016119f2906149c4565b60405180910390fd5b6000611a0683612b44565b905060006101c58054611a1890613fd9565b90501415611a355760405180602001604052806000815250611a5a565b6101c581604051602001611a4a929190614ab4565b6040516020818303038152906040525b915050919050565b6000606a60008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16905092915050565b611afe611de6565b73ffffffffffffffffffffffffffffffffffffffff16611b1c61185c565b73ffffffffffffffffffffffffffffffffffffffff1614611b72576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611b69906143c3565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff161415611be2576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611bd990614b4a565b60405180910390fd5b611beb81612812565b50565b611bf6611de6565b73ffffffffffffffffffffffffffffffffffffffff16611c1461185c565b73ffffffffffffffffffffffffffffffffffffffff1614611c6a576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611c61906143c3565b60405180910390fd5b60005b82829050811015611d0b5760016101ca6000858585818110611c9257611c91614b6a565b5b9050602002016020810190611ca791906139fa565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055508080611d0390614877565b915050611c6d565b505050565b60007f01ffc9a7000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916149050919050565b60008073ffffffffffffffffffffffffffffffffffffffff166067600084815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1614159050919050565b600033905090565b816069600083815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550808273ffffffffffffffffffffffffffffffffffffffff16611e618361116c565b73ffffffffffffffffffffffffffffffffffffffff167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b6000611eb282611d7a565b611ef1576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611ee890614c0b565b60405180910390fd5b6000611efc8361116c565b90508073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff161480611f3e5750611f3d8185611a62565b5b80611f7c57508373ffffffffffffffffffffffffffffffffffffffff16611f6484610951565b73ffffffffffffffffffffffffffffffffffffffff16145b91505092915050565b8273ffffffffffffffffffffffffffffffffffffffff16611fa58261116c565b73ffffffffffffffffffffffffffffffffffffffff1614611ffb576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611ff290614c9d565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff16141561206b576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161206290614d2f565b60405180910390fd5b612076838383612ca5565b612081600082611dee565b6001606860008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008282546120d19190614d4f565b925050819055506001606860008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008282546121289190614d83565b92505081905550816067600083815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550808273ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a46121e7838383612cfd565b505050565b600061221a7f360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc60001b612d02565b60000160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b61224b611de6565b73ffffffffffffffffffffffffffffffffffffffff1661226961185c565b73ffffffffffffffffffffffffffffffffffffffff16146122bf576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016122b6906143c3565b60405180910390fd5b50565b6122ee7f4910fdfa16fed3260ed0e7147f7cc6da11a60208b5b9406d12a635614ffd914360001b612d0c565b60000160009054906101000a900460ff16156123125761230d83612d16565b61242b565b8273ffffffffffffffffffffffffffffffffffffffff166352d1902d6040518163ffffffff1660e01b8152600401602060405180830381865afa92505050801561237a57506040513d601f19601f820116820180604052508101906123779190614e05565b60015b6123b9576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016123b090614ea4565b60405180910390fd5b7f360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc60001b811461241e576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161241590614f36565b60405180910390fd5b5061242a838383612dcf565b5b505050565b612438611155565b612477576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161246e90614fa2565b60405180910390fd5b600060c960006101000a81548160ff0219169083151502179055507f5db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa6124bb611de6565b6040516124c89190613949565b60405180910390a1565b6124db81612dfb565b50565b60008060019054906101000a900460ff16156125555760018260ff1614801561250d575061250b30612e4e565b155b61254c576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161254390615034565b60405180910390fd5b600090506125c9565b8160ff1660008054906101000a900460ff1660ff16106125aa576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016125a190615034565b60405180910390fd5b816000806101000a81548160ff021916908360ff160217905550600190505b919050565b600060019054906101000a900460ff1661261d576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612614906150c6565b60405180910390fd5b6126278282612e71565b5050565b600060019054906101000a900460ff1661267a576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612671906150c6565b60405180910390fd5b565b600060019054906101000a900460ff166126cb576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016126c2906150c6565b60405180910390fd5b6126d3612ef2565b565b600060019054906101000a900460ff16612724576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161271b906150c6565b60405180910390fd5b61272c612f5e565b565b600060019054906101000a900460ff1661277d576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612774906150c6565b60405180910390fd5b565b600060019054906101000a900460ff166127ce576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016127c5906150c6565b60405180910390fd5b565b600081600001549050919050565b6001816000016000828254019250508190555050565b61280e828260405180602001604052806000815250612fbf565b5050565b600060fb60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1690508160fb60006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b6128e0611155565b15612920576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161291790615132565b60405180910390fd5b600160c960006101000a81548160ff0219169083151502179055507f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a258612964611de6565b6040516129719190613949565b60405180910390a1565b8173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff1614156129ea576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016129e19061519e565b60405180910390fd5b80606a60008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055508173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff167f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c3183604051612adb91906137cf565b60405180910390a3505050565b612af3848484611f85565b612aff8484848461301a565b612b3e576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612b3590615230565b60405180910390fd5b50505050565b60606000821415612b8c576040518060400160405280600181526020017f30000000000000000000000000000000000000000000000000000000000000008152509050612ca0565b600082905060005b60008214612bbe578080612ba790614877565b915050600a82612bb7919061527f565b9150612b94565b60008167ffffffffffffffff811115612bda57612bd9613a84565b5b6040519080825280601f01601f191660200182016040528015612c0c5781602001600182028036833780820191505090505b5090505b60008514612c9957600182612c259190614d4f565b9150600a85612c3491906152b0565b6030612c409190614d83565b60f81b818381518110612c5657612c55614b6a565b5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a905350600a85612c92919061527f565b9450612c10565b8093505050505b919050565b612cad611155565b15612ced576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612ce490615132565b60405180910390fd5b612cf88383836131a2565b505050565b505050565b6000819050919050565b6000819050919050565b612d1f81612e4e565b612d5e576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612d5590615353565b60405180910390fd5b80612d8b7f360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc60001b612d02565b60000160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b612dd8836131a7565b600082511180612de55750805b15612df657612df483836131f6565b505b505050565b612e04816132da565b6000609760008381526020019081526020016000208054612e2490613fd9565b905014612e4b57609760008281526020019081526020016000206000612e4a91906136be565b5b50565b6000808273ffffffffffffffffffffffffffffffffffffffff163b119050919050565b600060019054906101000a900460ff16612ec0576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612eb7906150c6565b60405180910390fd5b8160659080519060200190612ed6929190613638565b508060669080519060200190612eed929190613638565b505050565b600060019054906101000a900460ff16612f41576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612f38906150c6565b60405180910390fd5b600060c960006101000a81548160ff021916908315150217905550565b600060019054906101000a900460ff16612fad576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612fa4906150c6565b60405180910390fd5b612fbd612fb8611de6565b612812565b565b612fc983836133f7565b612fd6600084848461301a565b613015576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161300c90615230565b60405180910390fd5b505050565b600061303b8473ffffffffffffffffffffffffffffffffffffffff16612e4e565b15613195578373ffffffffffffffffffffffffffffffffffffffff1663150b7a02613064611de6565b8786866040518563ffffffff1660e01b815260040161308694939291906153c8565b6020604051808303816000875af19250505080156130c257506040513d601f19601f820116820180604052508101906130bf9190615429565b60015b613145573d80600081146130f2576040519150601f19603f3d011682016040523d82523d6000602084013e6130f7565b606091505b5060008151141561313d576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161313490615230565b60405180910390fd5b805181602001fd5b63150b7a0260e01b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916817bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19161491505061319a565b600190505b949350505050565b505050565b6131b081612d16565b8073ffffffffffffffffffffffffffffffffffffffff167fbc7cd75a20ee27fd9adebab32041f755214dbc6bffa90cc0225b39da2e5c2d3b60405160405180910390a250565b606061320183612e4e565b613240576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401613237906154c8565b60405180910390fd5b6000808473ffffffffffffffffffffffffffffffffffffffff16846040516132689190615524565b600060405180830381855af49150503d80600081146132a3576040519150601f19603f3d011682016040523d82523d6000602084013e6132a8565b606091505b50915091506132d08282604051806060016040528060278152602001615614602791396135d1565b9250505092915050565b60006132e58261116c565b90506132f381600084612ca5565b6132fe600083611dee565b6001606860008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600082825461334e9190614d4f565b925050819055506067600083815260200190815260200160002060006101000a81549073ffffffffffffffffffffffffffffffffffffffff021916905581600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a46133f381600084612cfd565b5050565b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161415613467576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161345e90615587565b60405180910390fd5b61347081611d7a565b156134b0576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016134a7906155f3565b60405180910390fd5b6134bc60008383612ca5565b6001606860008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600082825461350c9190614d83565b92505081905550816067600083815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550808273ffffffffffffffffffffffffffffffffffffffff16600073ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a46135cd60008383612cfd565b5050565b606083156135e157829050613631565b6000835111156135f45782518084602001fd5b816040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016136289190613883565b60405180910390fd5b9392505050565b82805461364490613fd9565b90600052602060002090601f01602090048101928261366657600085556136ad565b82601f1061367f57805160ff19168380011785556136ad565b828001600101855582156136ad579182015b828111156136ac578251825591602001919060010190613691565b5b5090506136ba91906136fe565b5090565b5080546136ca90613fd9565b6000825580601f106136dc57506136fb565b601f0160209004906000526020600020908101906136fa91906136fe565b5b50565b5b808211156137175760008160009055506001016136ff565b5090565b6000604051905090565b600080fd5b600080fd5b60007fffffffff0000000000000000000000000000000000000000000000000000000082169050919050565b6137648161372f565b811461376f57600080fd5b50565b6000813590506137818161375b565b92915050565b60006020828403121561379d5761379c613725565b5b60006137ab84828501613772565b91505092915050565b60008115159050919050565b6137c9816137b4565b82525050565b60006020820190506137e460008301846137c0565b92915050565b600081519050919050565b600082825260208201905092915050565b60005b83811015613824578082015181840152602081019050613809565b83811115613833576000848401525b50505050565b6000601f19601f8301169050919050565b6000613855826137ea565b61385f81856137f5565b935061386f818560208601613806565b61387881613839565b840191505092915050565b6000602082019050818103600083015261389d818461384a565b905092915050565b6000819050919050565b6138b8816138a5565b81146138c357600080fd5b50565b6000813590506138d5816138af565b92915050565b6000602082840312156138f1576138f0613725565b5b60006138ff848285016138c6565b91505092915050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b600061393382613908565b9050919050565b61394381613928565b82525050565b600060208201905061395e600083018461393a565b92915050565b61396d81613928565b811461397857600080fd5b50565b60008135905061398a81613964565b92915050565b600080604083850312156139a7576139a6613725565b5b60006139b58582860161397b565b92505060206139c6858286016138c6565b9150509250929050565b6139d9816138a5565b82525050565b60006020820190506139f460008301846139d0565b92915050565b600060208284031215613a1057613a0f613725565b5b6000613a1e8482850161397b565b91505092915050565b600080600060608486031215613a4057613a3f613725565b5b6000613a4e8682870161397b565b9350506020613a5f8682870161397b565b9250506040613a70868287016138c6565b9150509250925092565b600080fd5b600080fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b613abc82613839565b810181811067ffffffffffffffff82111715613adb57613ada613a84565b5b80604052505050565b6000613aee61371b565b9050613afa8282613ab3565b919050565b600067ffffffffffffffff821115613b1a57613b19613a84565b5b613b2382613839565b9050602081019050919050565b82818337600083830152505050565b6000613b52613b4d84613aff565b613ae4565b905082815260208101848484011115613b6e57613b6d613a7f565b5b613b79848285613b30565b509392505050565b600082601f830112613b9657613b95613a7a565b5b8135613ba6848260208601613b3f565b91505092915050565b600060208284031215613bc557613bc4613725565b5b600082013567ffffffffffffffff811115613be357613be261372a565b5b613bef84828501613b81565b91505092915050565b60008060408385031215613c0f57613c0e613725565b5b600083013567ffffffffffffffff811115613c2d57613c2c61372a565b5b613c3985828601613b81565b925050602083013567ffffffffffffffff811115613c5a57613c5961372a565b5b613c6685828601613b81565b9150509250929050565b600067ffffffffffffffff821115613c8b57613c8a613a84565b5b613c9482613839565b9050602081019050919050565b6000613cb4613caf84613c70565b613ae4565b905082815260208101848484011115613cd057613ccf613a7f565b5b613cdb848285613b30565b509392505050565b600082601f830112613cf857613cf7613a7a565b5b8135613d08848260208601613ca1565b91505092915050565b60008060408385031215613d2857613d27613725565b5b6000613d368582860161397b565b925050602083013567ffffffffffffffff811115613d5757613d5661372a565b5b613d6385828601613ce3565b9150509250929050565b6000819050919050565b613d8081613d6d565b82525050565b6000602082019050613d9b6000830184613d77565b92915050565b613daa816137b4565b8114613db557600080fd5b50565b600081359050613dc781613da1565b92915050565b600060208284031215613de357613de2613725565b5b6000613df184828501613db8565b91505092915050565b60008060408385031215613e1157613e10613725565b5b6000613e1f8582860161397b565b9250506020613e3085828601613db8565b9150509250929050565b60008060008060808587031215613e5457613e53613725565b5b6000613e628782880161397b565b9450506020613e738782880161397b565b9350506040613e84878288016138c6565b925050606085013567ffffffffffffffff811115613ea557613ea461372a565b5b613eb187828801613ce3565b91505092959194509250565b60008060408385031215613ed457613ed3613725565b5b6000613ee28582860161397b565b9250506020613ef38582860161397b565b9150509250929050565b600080fd5b600080fd5b60008083601f840112613f1d57613f1c613a7a565b5b8235905067ffffffffffffffff811115613f3a57613f39613efd565b5b602083019150836020820283011115613f5657613f55613f02565b5b9250929050565b60008060208385031215613f7457613f73613725565b5b600083013567ffffffffffffffff811115613f9257613f9161372a565b5b613f9e85828601613f07565b92509250509250929050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b60006002820490506001821680613ff157607f821691505b6020821081141561400557614004613faa565b5b50919050565b7f4552433732313a20617070726f76656420717565727920666f72206e6f6e657860008201527f697374656e7420746f6b656e0000000000000000000000000000000000000000602082015250565b6000614067602c836137f5565b91506140728261400b565b604082019050919050565b600060208201905081810360008301526140968161405a565b9050919050565b7f4552433732313a20617070726f76616c20746f2063757272656e74206f776e6560008201527f7200000000000000000000000000000000000000000000000000000000000000602082015250565b60006140f96021836137f5565b91506141048261409d565b604082019050919050565b60006020820190508181036000830152614128816140ec565b9050919050565b7f4552433732313a20617070726f76652063616c6c6572206973206e6f74206f7760008201527f6e6572206e6f7220617070726f76656420666f7220616c6c0000000000000000602082015250565b600061418b6038836137f5565b91506141968261412f565b604082019050919050565b600060208201905081810360008301526141ba8161417e565b9050919050565b7f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f60008201527f776e6572206e6f7220617070726f766564000000000000000000000000000000602082015250565b600061421d6031836137f5565b9150614228826141c1565b604082019050919050565b6000602082019050818103600083015261424c81614210565b9050919050565b7f46756e6374696f6e206d7573742062652063616c6c6564207468726f7567682060008201527f64656c656761746563616c6c0000000000000000000000000000000000000000602082015250565b60006142af602c836137f5565b91506142ba82614253565b604082019050919050565b600060208201905081810360008301526142de816142a2565b9050919050565b7f46756e6374696f6e206d7573742062652063616c6c6564207468726f7567682060008201527f6163746976652070726f78790000000000000000000000000000000000000000602082015250565b6000614341602c836137f5565b915061434c826142e5565b604082019050919050565b6000602082019050818103600083015261437081614334565b9050919050565b7f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572600082015250565b60006143ad6020836137f5565b91506143b882614377565b602082019050919050565b600060208201905081810360008301526143dc816143a0565b9050919050565b7f4552433732314275726e61626c653a2063616c6c6572206973206e6f74206f7760008201527f6e6572206e6f7220617070726f76656400000000000000000000000000000000602082015250565b600061443f6030836137f5565b915061444a826143e3565b604082019050919050565b6000602082019050818103600083015261446e81614432565b9050919050565b6000819050919050565b600060ff82169050919050565b6000819050919050565b60006144b16144ac6144a784614475565b61448c565b61447f565b9050919050565b6144c181614496565b82525050565b60006020820190506144dc60008301846144b8565b92915050565b7f555550535570677261646561626c653a206d757374206e6f742062652063616c60008201527f6c6564207468726f7567682064656c656761746563616c6c0000000000000000602082015250565b600061453e6038836137f5565b9150614549826144e2565b604082019050919050565b6000602082019050818103600083015261456d81614531565b9050919050565b7f4552433732313a206f776e657220717565727920666f72206e6f6e657869737460008201527f656e7420746f6b656e0000000000000000000000000000000000000000000000602082015250565b60006145d06029836137f5565b91506145db82614574565b604082019050919050565b600060208201905081810360008301526145ff816145c3565b9050919050565b7f5468652063616c6c657220697320616e6f7468657220636f6e74726163742e00600082015250565b600061463c601f836137f5565b915061464782614606565b602082019050919050565b6000602082019050818103600083015261466b8161462f565b9050919050565b7f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00600082015250565b60006146a8601f836137f5565b91506146b382614672565b602082019050919050565b600060208201905081810360008301526146d78161469b565b9050919050565b7f77686974656c697374696e6720666f722065787465726e616c2075736572732060008201527f69732064697361626c6564000000000000000000000000000000000000000000602082015250565b600061473a602b836137f5565b9150614745826146de565b604082019050919050565b600060208201905081810360008301526147698161472d565b9050919050565b7f416c6c6f77206f6e6c7920746f20707572636861736520616e204e4654000000600082015250565b60006147a6601d836137f5565b91506147b182614770565b602082019050919050565b600060208201905081810360008301526147d581614799565b9050919050565b7f52656163686564206d61784f66666572436f756e740000000000000000000000600082015250565b60006148126015836137f5565b915061481d826147dc565b602082019050919050565b6000602082019050818103600083015261484181614805565b9050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b6000614882826138a5565b91507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff8214156148b5576148b4614848565b5b600182019050919050565b7f4552433732313a2062616c616e636520717565727920666f7220746865207a6560008201527f726f206164647265737300000000000000000000000000000000000000000000602082015250565b600061491c602a836137f5565b9150614927826148c0565b604082019050919050565b6000602082019050818103600083015261494b8161490f565b9050919050565b7f4552433732314d657461646174613a2055524920717565727920666f72206e6f60008201527f6e6578697374656e7420746f6b656e0000000000000000000000000000000000602082015250565b60006149ae602f836137f5565b91506149b982614952565b604082019050919050565b600060208201905081810360008301526149dd816149a1565b9050919050565b600081905092915050565b60008190508160005260206000209050919050565b60008154614a1181613fd9565b614a1b81866149e4565b94506001821660008114614a365760018114614a4757614a7a565b60ff19831686528186019350614a7a565b614a50856149ef565b60005b83811015614a7257815481890152600182019150602081019050614a53565b838801955050505b50505092915050565b6000614a8e826137ea565b614a9881856149e4565b9350614aa8818560208601613806565b80840191505092915050565b6000614ac08285614a04565b9150614acc8284614a83565b91508190509392505050565b7f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160008201527f6464726573730000000000000000000000000000000000000000000000000000602082015250565b6000614b346026836137f5565b9150614b3f82614ad8565b604082019050919050565b60006020820190508181036000830152614b6381614b27565b9050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b7f4552433732313a206f70657261746f7220717565727920666f72206e6f6e657860008201527f697374656e7420746f6b656e0000000000000000000000000000000000000000602082015250565b6000614bf5602c836137f5565b9150614c0082614b99565b604082019050919050565b60006020820190508181036000830152614c2481614be8565b9050919050565b7f4552433732313a207472616e736665722066726f6d20696e636f72726563742060008201527f6f776e6572000000000000000000000000000000000000000000000000000000602082015250565b6000614c876025836137f5565b9150614c9282614c2b565b604082019050919050565b60006020820190508181036000830152614cb681614c7a565b9050919050565b7f4552433732313a207472616e7366657220746f20746865207a65726f2061646460008201527f7265737300000000000000000000000000000000000000000000000000000000602082015250565b6000614d196024836137f5565b9150614d2482614cbd565b604082019050919050565b60006020820190508181036000830152614d4881614d0c565b9050919050565b6000614d5a826138a5565b9150614d65836138a5565b925082821015614d7857614d77614848565b5b828203905092915050565b6000614d8e826138a5565b9150614d99836138a5565b9250827fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff03821115614dce57614dcd614848565b5b828201905092915050565b614de281613d6d565b8114614ded57600080fd5b50565b600081519050614dff81614dd9565b92915050565b600060208284031215614e1b57614e1a613725565b5b6000614e2984828501614df0565b91505092915050565b7f45524331393637557067726164653a206e657720696d706c656d656e7461746960008201527f6f6e206973206e6f742055555053000000000000000000000000000000000000602082015250565b6000614e8e602e836137f5565b9150614e9982614e32565b604082019050919050565b60006020820190508181036000830152614ebd81614e81565b9050919050565b7f45524331393637557067726164653a20756e737570706f727465642070726f7860008201527f6961626c65555549440000000000000000000000000000000000000000000000602082015250565b6000614f206029836137f5565b9150614f2b82614ec4565b604082019050919050565b60006020820190508181036000830152614f4f81614f13565b9050919050565b7f5061757361626c653a206e6f7420706175736564000000000000000000000000600082015250565b6000614f8c6014836137f5565b9150614f9782614f56565b602082019050919050565b60006020820190508181036000830152614fbb81614f7f565b9050919050565b7f496e697469616c697a61626c653a20636f6e747261637420697320616c72656160008201527f647920696e697469616c697a6564000000000000000000000000000000000000602082015250565b600061501e602e836137f5565b915061502982614fc2565b604082019050919050565b6000602082019050818103600083015261504d81615011565b9050919050565b7f496e697469616c697a61626c653a20636f6e7472616374206973206e6f74206960008201527f6e697469616c697a696e67000000000000000000000000000000000000000000602082015250565b60006150b0602b836137f5565b91506150bb82615054565b604082019050919050565b600060208201905081810360008301526150df816150a3565b9050919050565b7f5061757361626c653a2070617573656400000000000000000000000000000000600082015250565b600061511c6010836137f5565b9150615127826150e6565b602082019050919050565b6000602082019050818103600083015261514b8161510f565b9050919050565b7f4552433732313a20617070726f766520746f2063616c6c657200000000000000600082015250565b60006151886019836137f5565b915061519382615152565b602082019050919050565b600060208201905081810360008301526151b78161517b565b9050919050565b7f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560008201527f63656976657220696d706c656d656e7465720000000000000000000000000000602082015250565b600061521a6032836137f5565b9150615225826151be565b604082019050919050565b600060208201905081810360008301526152498161520d565b9050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b600061528a826138a5565b9150615295836138a5565b9250826152a5576152a4615250565b5b828204905092915050565b60006152bb826138a5565b91506152c6836138a5565b9250826152d6576152d5615250565b5b828206905092915050565b7f455243313936373a206e657720696d706c656d656e746174696f6e206973206e60008201527f6f74206120636f6e747261637400000000000000000000000000000000000000602082015250565b600061533d602d836137f5565b9150615348826152e1565b604082019050919050565b6000602082019050818103600083015261536c81615330565b9050919050565b600081519050919050565b600082825260208201905092915050565b600061539a82615373565b6153a4818561537e565b93506153b4818560208601613806565b6153bd81613839565b840191505092915050565b60006080820190506153dd600083018761393a565b6153ea602083018661393a565b6153f760408301856139d0565b8181036060830152615409818461538f565b905095945050505050565b6000815190506154238161375b565b92915050565b60006020828403121561543f5761543e613725565b5b600061544d84828501615414565b91505092915050565b7f416464726573733a2064656c65676174652063616c6c20746f206e6f6e2d636f60008201527f6e74726163740000000000000000000000000000000000000000000000000000602082015250565b60006154b26026836137f5565b91506154bd82615456565b604082019050919050565b600060208201905081810360008301526154e1816154a5565b9050919050565b600081905092915050565b60006154fe82615373565b61550881856154e8565b9350615518818560208601613806565b80840191505092915050565b600061553082846154f3565b915081905092915050565b7f4552433732313a206d696e7420746f20746865207a65726f2061646472657373600082015250565b60006155716020836137f5565b915061557c8261553b565b602082019050919050565b600060208201905081810360008301526155a081615564565b9050919050565b7f4552433732313a20746f6b656e20616c7265616479206d696e74656400000000600082015250565b60006155dd601c836137f5565b91506155e8826155a7565b602082019050919050565b6000602082019050818103600083015261560c816155d0565b905091905056fe416464726573733a206c6f772d6c6576656c2064656c65676174652063616c6c206661696c6564a26469706673582212203ca057506c1d961d5a9d939743dff938ad476308649c080a28acd7213a02353964736f6c634300080b0033
Deployed Bytecode
0x6080604052600436106101fd5760003560e01c80636352211e1161010d5780638da5cb5b116100a0578063b88d4fde1161006f578063b88d4fde146106e8578063c87b56dd14610711578063e985e9c51461074e578063f2fde38b1461078b578063f4148ee5146107b4576101fe565b80638da5cb5b1461062c57806395d89b41146106575780639b19251a14610682578063a22cb465146106bf576101fe565b806378cf6de0116100dc57806378cf6de0146105985780638456cb59146105c1578063854cff2f146105d8578063856734c414610601576101fe565b80636352211e146104f05780636871ee401461052d57806370a0823114610544578063715018a614610581576101fe565b80633659cfe61161019057806342966c681161015f57806342966c681461042c5780634cd88b76146104555780634f1ef2861461047e57806352d1902d1461049a5780635c975abb146104c5576101fe565b80633659cfe61461039a57806339a0c6f9146103c35780633f4ba83a146103ec57806342842e0e14610403576101fe565b80631115c24d116101cc5780631115c24d146102de5780631b4e7bd2146103095780631f2330471461034657806323b872dd14610371576101fe565b806301ffc9a71461021057806306fdde031461024d578063081812fc14610278578063095ea7b3146102b5576101fe565b5b34801561020a57600080fd5b50600080fd5b34801561021c57600080fd5b5061023760048036038101906102329190613787565b6107dd565b60405161024491906137cf565b60405180910390f35b34801561025957600080fd5b506102626108bf565b60405161026f9190613883565b60405180910390f35b34801561028457600080fd5b5061029f600480360381019061029a91906138db565b610951565b6040516102ac9190613949565b60405180910390f35b3480156102c157600080fd5b506102dc60048036038101906102d79190613990565b6109d6565b005b3480156102ea57600080fd5b506102f3610aee565b60405161030091906139df565b60405180910390f35b34801561031557600080fd5b50610330600480360381019061032b91906139fa565b610af5565b60405161033d91906137cf565b60405180910390f35b34801561035257600080fd5b5061035b610b16565b60405161036891906139df565b60405180910390f35b34801561037d57600080fd5b5061039860048036038101906103939190613a27565b610b1d565b005b3480156103a657600080fd5b506103c160048036038101906103bc91906139fa565b610b7d565b005b3480156103cf57600080fd5b506103ea60048036038101906103e59190613baf565b610d06565b005b3480156103f857600080fd5b50610401610d9d565b005b34801561040f57600080fd5b5061042a60048036038101906104259190613a27565b610e23565b005b34801561043857600080fd5b50610453600480360381019061044e91906138db565b610e43565b005b34801561046157600080fd5b5061047c60048036038101906104779190613bf8565b610e9f565b005b61049860048036038101906104939190613d11565b610f5f565b005b3480156104a657600080fd5b506104af61109c565b6040516104bc9190613d86565b60405180910390f35b3480156104d157600080fd5b506104da611155565b6040516104e791906137cf565b60405180910390f35b3480156104fc57600080fd5b50610517600480360381019061051291906138db565b61116c565b6040516105249190613949565b60405180910390f35b34801561053957600080fd5b5061054261121e565b005b34801561055057600080fd5b5061056b600480360381019061056691906139fa565b611510565b60405161057891906139df565b60405180910390f35b34801561058d57600080fd5b506105966115c8565b005b3480156105a457600080fd5b506105bf60048036038101906105ba9190613dcd565b611650565b005b3480156105cd57600080fd5b506105d66116ea565b005b3480156105e457600080fd5b506105ff60048036038101906105fa91906139fa565b611770565b005b34801561060d57600080fd5b50610616611848565b60405161062391906137cf565b60405180910390f35b34801561063857600080fd5b5061064161185c565b60405161064e9190613949565b60405180910390f35b34801561066357600080fd5b5061066c611886565b6040516106799190613883565b60405180910390f35b34801561068e57600080fd5b506106a960048036038101906106a491906139fa565b611918565b6040516106b691906137cf565b60405180910390f35b3480156106cb57600080fd5b506106e660048036038101906106e19190613dfa565b611939565b005b3480156106f457600080fd5b5061070f600480360381019061070a9190613e3a565b61194f565b005b34801561071d57600080fd5b50610738600480360381019061073391906138db565b6119b1565b6040516107459190613883565b60405180910390f35b34801561075a57600080fd5b5061077560048036038101906107709190613ebd565b611a62565b60405161078291906137cf565b60405180910390f35b34801561079757600080fd5b506107b260048036038101906107ad91906139fa565b611af6565b005b3480156107c057600080fd5b506107db60048036038101906107d69190613f5d565b611bee565b005b60007f80ac58cd000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614806108a857507f5b5e139f000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b806108b857506108b782611d10565b5b9050919050565b6060606580546108ce90613fd9565b80601f01602080910402602001604051908101604052809291908181526020018280546108fa90613fd9565b80156109475780601f1061091c57610100808354040283529160200191610947565b820191906000526020600020905b81548152906001019060200180831161092a57829003601f168201915b5050505050905090565b600061095c82611d7a565b61099b576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016109929061407d565b60405180910390fd5b6069600083815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050919050565b60006109e18261116c565b90508073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff161415610a52576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610a499061410f565b60405180910390fd5b8073ffffffffffffffffffffffffffffffffffffffff16610a71611de6565b73ffffffffffffffffffffffffffffffffffffffff161480610aa05750610a9f81610a9a611de6565b611a62565b5b610adf576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610ad6906141a1565b60405180910390fd5b610ae98383611dee565b505050565b6101c75481565b6101c86020528060005260406000206000915054906101000a900460ff1681565b6101c65481565b610b2e610b28611de6565b82611ea7565b610b6d576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610b6490614233565b60405180910390fd5b610b78838383611f85565b505050565b7f0000000000000000000000004aad8130d61af6d87761436e60a5240425099abd73ffffffffffffffffffffffffffffffffffffffff163073ffffffffffffffffffffffffffffffffffffffff161415610c0c576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610c03906142c5565b60405180910390fd5b7f0000000000000000000000004aad8130d61af6d87761436e60a5240425099abd73ffffffffffffffffffffffffffffffffffffffff16610c4b6121ec565b73ffffffffffffffffffffffffffffffffffffffff1614610ca1576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610c9890614357565b60405180910390fd5b610caa81612243565b610d0381600067ffffffffffffffff811115610cc957610cc8613a84565b5b6040519080825280601f01601f191660200182016040528015610cfb5781602001600182028036833780820191505090505b5060006122c2565b50565b610d0e611de6565b73ffffffffffffffffffffffffffffffffffffffff16610d2c61185c565b73ffffffffffffffffffffffffffffffffffffffff1614610d82576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610d79906143c3565b60405180910390fd5b806101c59080519060200190610d99929190613638565b5050565b610da5611de6565b73ffffffffffffffffffffffffffffffffffffffff16610dc361185c565b73ffffffffffffffffffffffffffffffffffffffff1614610e19576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610e10906143c3565b60405180910390fd5b610e21612430565b565b610e3e8383836040518060200160405280600081525061194f565b505050565b610e54610e4e611de6565b82611ea7565b610e93576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610e8a90614455565b60405180910390fd5b610e9c816124d2565b50565b6000610eab60016124de565b90508015610ecf576001600060016101000a81548160ff0219169083151502179055505b610ed983836125ce565b610ee161262b565b610ee961267c565b610ef16126d5565b610ef961272e565b610f0161277f565b8015610f5a5760008060016101000a81548160ff0219169083151502179055507f7f26b83ff96e1f2b6a682f133852f6798a09c465da95921460cefb38474024986001604051610f5191906144c7565b60405180910390a15b505050565b7f0000000000000000000000004aad8130d61af6d87761436e60a5240425099abd73ffffffffffffffffffffffffffffffffffffffff163073ffffffffffffffffffffffffffffffffffffffff161415610fee576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610fe5906142c5565b60405180910390fd5b7f0000000000000000000000004aad8130d61af6d87761436e60a5240425099abd73ffffffffffffffffffffffffffffffffffffffff1661102d6121ec565b73ffffffffffffffffffffffffffffffffffffffff1614611083576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161107a90614357565b60405180910390fd5b61108c82612243565b611098828260016122c2565b5050565b60007f0000000000000000000000004aad8130d61af6d87761436e60a5240425099abd73ffffffffffffffffffffffffffffffffffffffff163073ffffffffffffffffffffffffffffffffffffffff161461112c576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161112390614554565b60405180910390fd5b7f360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc60001b905090565b600060c960009054906101000a900460ff16905090565b6000806067600084815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff161415611215576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161120c906145e6565b60405180910390fd5b80915050919050565b3373ffffffffffffffffffffffffffffffffffffffff163273ffffffffffffffffffffffffffffffffffffffff161461128c576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161128390614652565b60405180910390fd5b60026101c35414156112d3576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016112ca906146be565b60405180910390fd5b60026101c3819055506101c960009054906101000a900460ff16158061135c57506101c960009054906101000a900460ff16801561135b57506101ca60003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff165b5b61139b576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161139290614750565b60405180910390fd5b6101c860003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff1615611429576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611420906147bc565b60405180910390fd5b60006114366101c46127d0565b90506101c654811061147d576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161147490614828565b60405180910390fd5b6114886101c46127de565b60016101c860003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055506114eb33826127f4565b6101c760008154809291906114ff90614877565b91905055505060016101c381905550565b60008073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161415611581576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161157890614932565b60405180910390fd5b606860008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020549050919050565b6115d0611de6565b73ffffffffffffffffffffffffffffffffffffffff166115ee61185c565b73ffffffffffffffffffffffffffffffffffffffff1614611644576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161163b906143c3565b60405180910390fd5b61164e6000612812565b565b611658611de6565b73ffffffffffffffffffffffffffffffffffffffff1661167661185c565b73ffffffffffffffffffffffffffffffffffffffff16146116cc576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016116c3906143c3565b60405180910390fd5b806101c960006101000a81548160ff02191690831515021790555050565b6116f2611de6565b73ffffffffffffffffffffffffffffffffffffffff1661171061185c565b73ffffffffffffffffffffffffffffffffffffffff1614611766576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161175d906143c3565b60405180910390fd5b61176e6128d8565b565b611778611de6565b73ffffffffffffffffffffffffffffffffffffffff1661179661185c565b73ffffffffffffffffffffffffffffffffffffffff16146117ec576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016117e3906143c3565b60405180910390fd5b60016101ca60008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff02191690831515021790555050565b6101c960009054906101000a900460ff1681565b600060fb60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b60606066805461189590613fd9565b80601f01602080910402602001604051908101604052809291908181526020018280546118c190613fd9565b801561190e5780601f106118e35761010080835404028352916020019161190e565b820191906000526020600020905b8154815290600101906020018083116118f157829003601f168201915b5050505050905090565b6101ca6020528060005260406000206000915054906101000a900460ff1681565b61194b611944611de6565b838361297b565b5050565b61196061195a611de6565b83611ea7565b61199f576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161199690614233565b60405180910390fd5b6119ab84848484612ae8565b50505050565b60606119bc82611d7a565b6119fb576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016119f2906149c4565b60405180910390fd5b6000611a0683612b44565b905060006101c58054611a1890613fd9565b90501415611a355760405180602001604052806000815250611a5a565b6101c581604051602001611a4a929190614ab4565b6040516020818303038152906040525b915050919050565b6000606a60008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16905092915050565b611afe611de6565b73ffffffffffffffffffffffffffffffffffffffff16611b1c61185c565b73ffffffffffffffffffffffffffffffffffffffff1614611b72576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611b69906143c3565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff161415611be2576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611bd990614b4a565b60405180910390fd5b611beb81612812565b50565b611bf6611de6565b73ffffffffffffffffffffffffffffffffffffffff16611c1461185c565b73ffffffffffffffffffffffffffffffffffffffff1614611c6a576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611c61906143c3565b60405180910390fd5b60005b82829050811015611d0b5760016101ca6000858585818110611c9257611c91614b6a565b5b9050602002016020810190611ca791906139fa565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055508080611d0390614877565b915050611c6d565b505050565b60007f01ffc9a7000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916149050919050565b60008073ffffffffffffffffffffffffffffffffffffffff166067600084815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1614159050919050565b600033905090565b816069600083815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550808273ffffffffffffffffffffffffffffffffffffffff16611e618361116c565b73ffffffffffffffffffffffffffffffffffffffff167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b6000611eb282611d7a565b611ef1576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611ee890614c0b565b60405180910390fd5b6000611efc8361116c565b90508073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff161480611f3e5750611f3d8185611a62565b5b80611f7c57508373ffffffffffffffffffffffffffffffffffffffff16611f6484610951565b73ffffffffffffffffffffffffffffffffffffffff16145b91505092915050565b8273ffffffffffffffffffffffffffffffffffffffff16611fa58261116c565b73ffffffffffffffffffffffffffffffffffffffff1614611ffb576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611ff290614c9d565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff16141561206b576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161206290614d2f565b60405180910390fd5b612076838383612ca5565b612081600082611dee565b6001606860008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008282546120d19190614d4f565b925050819055506001606860008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008282546121289190614d83565b92505081905550816067600083815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550808273ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a46121e7838383612cfd565b505050565b600061221a7f360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc60001b612d02565b60000160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b61224b611de6565b73ffffffffffffffffffffffffffffffffffffffff1661226961185c565b73ffffffffffffffffffffffffffffffffffffffff16146122bf576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016122b6906143c3565b60405180910390fd5b50565b6122ee7f4910fdfa16fed3260ed0e7147f7cc6da11a60208b5b9406d12a635614ffd914360001b612d0c565b60000160009054906101000a900460ff16156123125761230d83612d16565b61242b565b8273ffffffffffffffffffffffffffffffffffffffff166352d1902d6040518163ffffffff1660e01b8152600401602060405180830381865afa92505050801561237a57506040513d601f19601f820116820180604052508101906123779190614e05565b60015b6123b9576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016123b090614ea4565b60405180910390fd5b7f360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc60001b811461241e576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161241590614f36565b60405180910390fd5b5061242a838383612dcf565b5b505050565b612438611155565b612477576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161246e90614fa2565b60405180910390fd5b600060c960006101000a81548160ff0219169083151502179055507f5db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa6124bb611de6565b6040516124c89190613949565b60405180910390a1565b6124db81612dfb565b50565b60008060019054906101000a900460ff16156125555760018260ff1614801561250d575061250b30612e4e565b155b61254c576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161254390615034565b60405180910390fd5b600090506125c9565b8160ff1660008054906101000a900460ff1660ff16106125aa576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016125a190615034565b60405180910390fd5b816000806101000a81548160ff021916908360ff160217905550600190505b919050565b600060019054906101000a900460ff1661261d576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612614906150c6565b60405180910390fd5b6126278282612e71565b5050565b600060019054906101000a900460ff1661267a576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612671906150c6565b60405180910390fd5b565b600060019054906101000a900460ff166126cb576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016126c2906150c6565b60405180910390fd5b6126d3612ef2565b565b600060019054906101000a900460ff16612724576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161271b906150c6565b60405180910390fd5b61272c612f5e565b565b600060019054906101000a900460ff1661277d576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612774906150c6565b60405180910390fd5b565b600060019054906101000a900460ff166127ce576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016127c5906150c6565b60405180910390fd5b565b600081600001549050919050565b6001816000016000828254019250508190555050565b61280e828260405180602001604052806000815250612fbf565b5050565b600060fb60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1690508160fb60006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b6128e0611155565b15612920576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161291790615132565b60405180910390fd5b600160c960006101000a81548160ff0219169083151502179055507f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a258612964611de6565b6040516129719190613949565b60405180910390a1565b8173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff1614156129ea576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016129e19061519e565b60405180910390fd5b80606a60008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055508173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff167f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c3183604051612adb91906137cf565b60405180910390a3505050565b612af3848484611f85565b612aff8484848461301a565b612b3e576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612b3590615230565b60405180910390fd5b50505050565b60606000821415612b8c576040518060400160405280600181526020017f30000000000000000000000000000000000000000000000000000000000000008152509050612ca0565b600082905060005b60008214612bbe578080612ba790614877565b915050600a82612bb7919061527f565b9150612b94565b60008167ffffffffffffffff811115612bda57612bd9613a84565b5b6040519080825280601f01601f191660200182016040528015612c0c5781602001600182028036833780820191505090505b5090505b60008514612c9957600182612c259190614d4f565b9150600a85612c3491906152b0565b6030612c409190614d83565b60f81b818381518110612c5657612c55614b6a565b5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a905350600a85612c92919061527f565b9450612c10565b8093505050505b919050565b612cad611155565b15612ced576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612ce490615132565b60405180910390fd5b612cf88383836131a2565b505050565b505050565b6000819050919050565b6000819050919050565b612d1f81612e4e565b612d5e576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612d5590615353565b60405180910390fd5b80612d8b7f360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc60001b612d02565b60000160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b612dd8836131a7565b600082511180612de55750805b15612df657612df483836131f6565b505b505050565b612e04816132da565b6000609760008381526020019081526020016000208054612e2490613fd9565b905014612e4b57609760008281526020019081526020016000206000612e4a91906136be565b5b50565b6000808273ffffffffffffffffffffffffffffffffffffffff163b119050919050565b600060019054906101000a900460ff16612ec0576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612eb7906150c6565b60405180910390fd5b8160659080519060200190612ed6929190613638565b508060669080519060200190612eed929190613638565b505050565b600060019054906101000a900460ff16612f41576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612f38906150c6565b60405180910390fd5b600060c960006101000a81548160ff021916908315150217905550565b600060019054906101000a900460ff16612fad576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612fa4906150c6565b60405180910390fd5b612fbd612fb8611de6565b612812565b565b612fc983836133f7565b612fd6600084848461301a565b613015576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161300c90615230565b60405180910390fd5b505050565b600061303b8473ffffffffffffffffffffffffffffffffffffffff16612e4e565b15613195578373ffffffffffffffffffffffffffffffffffffffff1663150b7a02613064611de6565b8786866040518563ffffffff1660e01b815260040161308694939291906153c8565b6020604051808303816000875af19250505080156130c257506040513d601f19601f820116820180604052508101906130bf9190615429565b60015b613145573d80600081146130f2576040519150601f19603f3d011682016040523d82523d6000602084013e6130f7565b606091505b5060008151141561313d576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161313490615230565b60405180910390fd5b805181602001fd5b63150b7a0260e01b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916817bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19161491505061319a565b600190505b949350505050565b505050565b6131b081612d16565b8073ffffffffffffffffffffffffffffffffffffffff167fbc7cd75a20ee27fd9adebab32041f755214dbc6bffa90cc0225b39da2e5c2d3b60405160405180910390a250565b606061320183612e4e565b613240576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401613237906154c8565b60405180910390fd5b6000808473ffffffffffffffffffffffffffffffffffffffff16846040516132689190615524565b600060405180830381855af49150503d80600081146132a3576040519150601f19603f3d011682016040523d82523d6000602084013e6132a8565b606091505b50915091506132d08282604051806060016040528060278152602001615614602791396135d1565b9250505092915050565b60006132e58261116c565b90506132f381600084612ca5565b6132fe600083611dee565b6001606860008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600082825461334e9190614d4f565b925050819055506067600083815260200190815260200160002060006101000a81549073ffffffffffffffffffffffffffffffffffffffff021916905581600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a46133f381600084612cfd565b5050565b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161415613467576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161345e90615587565b60405180910390fd5b61347081611d7a565b156134b0576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016134a7906155f3565b60405180910390fd5b6134bc60008383612ca5565b6001606860008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600082825461350c9190614d83565b92505081905550816067600083815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550808273ffffffffffffffffffffffffffffffffffffffff16600073ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a46135cd60008383612cfd565b5050565b606083156135e157829050613631565b6000835111156135f45782518084602001fd5b816040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016136289190613883565b60405180910390fd5b9392505050565b82805461364490613fd9565b90600052602060002090601f01602090048101928261366657600085556136ad565b82601f1061367f57805160ff19168380011785556136ad565b828001600101855582156136ad579182015b828111156136ac578251825591602001919060010190613691565b5b5090506136ba91906136fe565b5090565b5080546136ca90613fd9565b6000825580601f106136dc57506136fb565b601f0160209004906000526020600020908101906136fa91906136fe565b5b50565b5b808211156137175760008160009055506001016136ff565b5090565b6000604051905090565b600080fd5b600080fd5b60007fffffffff0000000000000000000000000000000000000000000000000000000082169050919050565b6137648161372f565b811461376f57600080fd5b50565b6000813590506137818161375b565b92915050565b60006020828403121561379d5761379c613725565b5b60006137ab84828501613772565b91505092915050565b60008115159050919050565b6137c9816137b4565b82525050565b60006020820190506137e460008301846137c0565b92915050565b600081519050919050565b600082825260208201905092915050565b60005b83811015613824578082015181840152602081019050613809565b83811115613833576000848401525b50505050565b6000601f19601f8301169050919050565b6000613855826137ea565b61385f81856137f5565b935061386f818560208601613806565b61387881613839565b840191505092915050565b6000602082019050818103600083015261389d818461384a565b905092915050565b6000819050919050565b6138b8816138a5565b81146138c357600080fd5b50565b6000813590506138d5816138af565b92915050565b6000602082840312156138f1576138f0613725565b5b60006138ff848285016138c6565b91505092915050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b600061393382613908565b9050919050565b61394381613928565b82525050565b600060208201905061395e600083018461393a565b92915050565b61396d81613928565b811461397857600080fd5b50565b60008135905061398a81613964565b92915050565b600080604083850312156139a7576139a6613725565b5b60006139b58582860161397b565b92505060206139c6858286016138c6565b9150509250929050565b6139d9816138a5565b82525050565b60006020820190506139f460008301846139d0565b92915050565b600060208284031215613a1057613a0f613725565b5b6000613a1e8482850161397b565b91505092915050565b600080600060608486031215613a4057613a3f613725565b5b6000613a4e8682870161397b565b9350506020613a5f8682870161397b565b9250506040613a70868287016138c6565b9150509250925092565b600080fd5b600080fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b613abc82613839565b810181811067ffffffffffffffff82111715613adb57613ada613a84565b5b80604052505050565b6000613aee61371b565b9050613afa8282613ab3565b919050565b600067ffffffffffffffff821115613b1a57613b19613a84565b5b613b2382613839565b9050602081019050919050565b82818337600083830152505050565b6000613b52613b4d84613aff565b613ae4565b905082815260208101848484011115613b6e57613b6d613a7f565b5b613b79848285613b30565b509392505050565b600082601f830112613b9657613b95613a7a565b5b8135613ba6848260208601613b3f565b91505092915050565b600060208284031215613bc557613bc4613725565b5b600082013567ffffffffffffffff811115613be357613be261372a565b5b613bef84828501613b81565b91505092915050565b60008060408385031215613c0f57613c0e613725565b5b600083013567ffffffffffffffff811115613c2d57613c2c61372a565b5b613c3985828601613b81565b925050602083013567ffffffffffffffff811115613c5a57613c5961372a565b5b613c6685828601613b81565b9150509250929050565b600067ffffffffffffffff821115613c8b57613c8a613a84565b5b613c9482613839565b9050602081019050919050565b6000613cb4613caf84613c70565b613ae4565b905082815260208101848484011115613cd057613ccf613a7f565b5b613cdb848285613b30565b509392505050565b600082601f830112613cf857613cf7613a7a565b5b8135613d08848260208601613ca1565b91505092915050565b60008060408385031215613d2857613d27613725565b5b6000613d368582860161397b565b925050602083013567ffffffffffffffff811115613d5757613d5661372a565b5b613d6385828601613ce3565b9150509250929050565b6000819050919050565b613d8081613d6d565b82525050565b6000602082019050613d9b6000830184613d77565b92915050565b613daa816137b4565b8114613db557600080fd5b50565b600081359050613dc781613da1565b92915050565b600060208284031215613de357613de2613725565b5b6000613df184828501613db8565b91505092915050565b60008060408385031215613e1157613e10613725565b5b6000613e1f8582860161397b565b9250506020613e3085828601613db8565b9150509250929050565b60008060008060808587031215613e5457613e53613725565b5b6000613e628782880161397b565b9450506020613e738782880161397b565b9350506040613e84878288016138c6565b925050606085013567ffffffffffffffff811115613ea557613ea461372a565b5b613eb187828801613ce3565b91505092959194509250565b60008060408385031215613ed457613ed3613725565b5b6000613ee28582860161397b565b9250506020613ef38582860161397b565b9150509250929050565b600080fd5b600080fd5b60008083601f840112613f1d57613f1c613a7a565b5b8235905067ffffffffffffffff811115613f3a57613f39613efd565b5b602083019150836020820283011115613f5657613f55613f02565b5b9250929050565b60008060208385031215613f7457613f73613725565b5b600083013567ffffffffffffffff811115613f9257613f9161372a565b5b613f9e85828601613f07565b92509250509250929050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b60006002820490506001821680613ff157607f821691505b6020821081141561400557614004613faa565b5b50919050565b7f4552433732313a20617070726f76656420717565727920666f72206e6f6e657860008201527f697374656e7420746f6b656e0000000000000000000000000000000000000000602082015250565b6000614067602c836137f5565b91506140728261400b565b604082019050919050565b600060208201905081810360008301526140968161405a565b9050919050565b7f4552433732313a20617070726f76616c20746f2063757272656e74206f776e6560008201527f7200000000000000000000000000000000000000000000000000000000000000602082015250565b60006140f96021836137f5565b91506141048261409d565b604082019050919050565b60006020820190508181036000830152614128816140ec565b9050919050565b7f4552433732313a20617070726f76652063616c6c6572206973206e6f74206f7760008201527f6e6572206e6f7220617070726f76656420666f7220616c6c0000000000000000602082015250565b600061418b6038836137f5565b91506141968261412f565b604082019050919050565b600060208201905081810360008301526141ba8161417e565b9050919050565b7f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f60008201527f776e6572206e6f7220617070726f766564000000000000000000000000000000602082015250565b600061421d6031836137f5565b9150614228826141c1565b604082019050919050565b6000602082019050818103600083015261424c81614210565b9050919050565b7f46756e6374696f6e206d7573742062652063616c6c6564207468726f7567682060008201527f64656c656761746563616c6c0000000000000000000000000000000000000000602082015250565b60006142af602c836137f5565b91506142ba82614253565b604082019050919050565b600060208201905081810360008301526142de816142a2565b9050919050565b7f46756e6374696f6e206d7573742062652063616c6c6564207468726f7567682060008201527f6163746976652070726f78790000000000000000000000000000000000000000602082015250565b6000614341602c836137f5565b915061434c826142e5565b604082019050919050565b6000602082019050818103600083015261437081614334565b9050919050565b7f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572600082015250565b60006143ad6020836137f5565b91506143b882614377565b602082019050919050565b600060208201905081810360008301526143dc816143a0565b9050919050565b7f4552433732314275726e61626c653a2063616c6c6572206973206e6f74206f7760008201527f6e6572206e6f7220617070726f76656400000000000000000000000000000000602082015250565b600061443f6030836137f5565b915061444a826143e3565b604082019050919050565b6000602082019050818103600083015261446e81614432565b9050919050565b6000819050919050565b600060ff82169050919050565b6000819050919050565b60006144b16144ac6144a784614475565b61448c565b61447f565b9050919050565b6144c181614496565b82525050565b60006020820190506144dc60008301846144b8565b92915050565b7f555550535570677261646561626c653a206d757374206e6f742062652063616c60008201527f6c6564207468726f7567682064656c656761746563616c6c0000000000000000602082015250565b600061453e6038836137f5565b9150614549826144e2565b604082019050919050565b6000602082019050818103600083015261456d81614531565b9050919050565b7f4552433732313a206f776e657220717565727920666f72206e6f6e657869737460008201527f656e7420746f6b656e0000000000000000000000000000000000000000000000602082015250565b60006145d06029836137f5565b91506145db82614574565b604082019050919050565b600060208201905081810360008301526145ff816145c3565b9050919050565b7f5468652063616c6c657220697320616e6f7468657220636f6e74726163742e00600082015250565b600061463c601f836137f5565b915061464782614606565b602082019050919050565b6000602082019050818103600083015261466b8161462f565b9050919050565b7f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00600082015250565b60006146a8601f836137f5565b91506146b382614672565b602082019050919050565b600060208201905081810360008301526146d78161469b565b9050919050565b7f77686974656c697374696e6720666f722065787465726e616c2075736572732060008201527f69732064697361626c6564000000000000000000000000000000000000000000602082015250565b600061473a602b836137f5565b9150614745826146de565b604082019050919050565b600060208201905081810360008301526147698161472d565b9050919050565b7f416c6c6f77206f6e6c7920746f20707572636861736520616e204e4654000000600082015250565b60006147a6601d836137f5565b91506147b182614770565b602082019050919050565b600060208201905081810360008301526147d581614799565b9050919050565b7f52656163686564206d61784f66666572436f756e740000000000000000000000600082015250565b60006148126015836137f5565b915061481d826147dc565b602082019050919050565b6000602082019050818103600083015261484181614805565b9050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b6000614882826138a5565b91507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff8214156148b5576148b4614848565b5b600182019050919050565b7f4552433732313a2062616c616e636520717565727920666f7220746865207a6560008201527f726f206164647265737300000000000000000000000000000000000000000000602082015250565b600061491c602a836137f5565b9150614927826148c0565b604082019050919050565b6000602082019050818103600083015261494b8161490f565b9050919050565b7f4552433732314d657461646174613a2055524920717565727920666f72206e6f60008201527f6e6578697374656e7420746f6b656e0000000000000000000000000000000000602082015250565b60006149ae602f836137f5565b91506149b982614952565b604082019050919050565b600060208201905081810360008301526149dd816149a1565b9050919050565b600081905092915050565b60008190508160005260206000209050919050565b60008154614a1181613fd9565b614a1b81866149e4565b94506001821660008114614a365760018114614a4757614a7a565b60ff19831686528186019350614a7a565b614a50856149ef565b60005b83811015614a7257815481890152600182019150602081019050614a53565b838801955050505b50505092915050565b6000614a8e826137ea565b614a9881856149e4565b9350614aa8818560208601613806565b80840191505092915050565b6000614ac08285614a04565b9150614acc8284614a83565b91508190509392505050565b7f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160008201527f6464726573730000000000000000000000000000000000000000000000000000602082015250565b6000614b346026836137f5565b9150614b3f82614ad8565b604082019050919050565b60006020820190508181036000830152614b6381614b27565b9050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b7f4552433732313a206f70657261746f7220717565727920666f72206e6f6e657860008201527f697374656e7420746f6b656e0000000000000000000000000000000000000000602082015250565b6000614bf5602c836137f5565b9150614c0082614b99565b604082019050919050565b60006020820190508181036000830152614c2481614be8565b9050919050565b7f4552433732313a207472616e736665722066726f6d20696e636f72726563742060008201527f6f776e6572000000000000000000000000000000000000000000000000000000602082015250565b6000614c876025836137f5565b9150614c9282614c2b565b604082019050919050565b60006020820190508181036000830152614cb681614c7a565b9050919050565b7f4552433732313a207472616e7366657220746f20746865207a65726f2061646460008201527f7265737300000000000000000000000000000000000000000000000000000000602082015250565b6000614d196024836137f5565b9150614d2482614cbd565b604082019050919050565b60006020820190508181036000830152614d4881614d0c565b9050919050565b6000614d5a826138a5565b9150614d65836138a5565b925082821015614d7857614d77614848565b5b828203905092915050565b6000614d8e826138a5565b9150614d99836138a5565b9250827fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff03821115614dce57614dcd614848565b5b828201905092915050565b614de281613d6d565b8114614ded57600080fd5b50565b600081519050614dff81614dd9565b92915050565b600060208284031215614e1b57614e1a613725565b5b6000614e2984828501614df0565b91505092915050565b7f45524331393637557067726164653a206e657720696d706c656d656e7461746960008201527f6f6e206973206e6f742055555053000000000000000000000000000000000000602082015250565b6000614e8e602e836137f5565b9150614e9982614e32565b604082019050919050565b60006020820190508181036000830152614ebd81614e81565b9050919050565b7f45524331393637557067726164653a20756e737570706f727465642070726f7860008201527f6961626c65555549440000000000000000000000000000000000000000000000602082015250565b6000614f206029836137f5565b9150614f2b82614ec4565b604082019050919050565b60006020820190508181036000830152614f4f81614f13565b9050919050565b7f5061757361626c653a206e6f7420706175736564000000000000000000000000600082015250565b6000614f8c6014836137f5565b9150614f9782614f56565b602082019050919050565b60006020820190508181036000830152614fbb81614f7f565b9050919050565b7f496e697469616c697a61626c653a20636f6e747261637420697320616c72656160008201527f647920696e697469616c697a6564000000000000000000000000000000000000602082015250565b600061501e602e836137f5565b915061502982614fc2565b604082019050919050565b6000602082019050818103600083015261504d81615011565b9050919050565b7f496e697469616c697a61626c653a20636f6e7472616374206973206e6f74206960008201527f6e697469616c697a696e67000000000000000000000000000000000000000000602082015250565b60006150b0602b836137f5565b91506150bb82615054565b604082019050919050565b600060208201905081810360008301526150df816150a3565b9050919050565b7f5061757361626c653a2070617573656400000000000000000000000000000000600082015250565b600061511c6010836137f5565b9150615127826150e6565b602082019050919050565b6000602082019050818103600083015261514b8161510f565b9050919050565b7f4552433732313a20617070726f766520746f2063616c6c657200000000000000600082015250565b60006151886019836137f5565b915061519382615152565b602082019050919050565b600060208201905081810360008301526151b78161517b565b9050919050565b7f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560008201527f63656976657220696d706c656d656e7465720000000000000000000000000000602082015250565b600061521a6032836137f5565b9150615225826151be565b604082019050919050565b600060208201905081810360008301526152498161520d565b9050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b600061528a826138a5565b9150615295836138a5565b9250826152a5576152a4615250565b5b828204905092915050565b60006152bb826138a5565b91506152c6836138a5565b9250826152d6576152d5615250565b5b828206905092915050565b7f455243313936373a206e657720696d706c656d656e746174696f6e206973206e60008201527f6f74206120636f6e747261637400000000000000000000000000000000000000602082015250565b600061533d602d836137f5565b9150615348826152e1565b604082019050919050565b6000602082019050818103600083015261536c81615330565b9050919050565b600081519050919050565b600082825260208201905092915050565b600061539a82615373565b6153a4818561537e565b93506153b4818560208601613806565b6153bd81613839565b840191505092915050565b60006080820190506153dd600083018761393a565b6153ea602083018661393a565b6153f760408301856139d0565b8181036060830152615409818461538f565b905095945050505050565b6000815190506154238161375b565b92915050565b60006020828403121561543f5761543e613725565b5b600061544d84828501615414565b91505092915050565b7f416464726573733a2064656c65676174652063616c6c20746f206e6f6e2d636f60008201527f6e74726163740000000000000000000000000000000000000000000000000000602082015250565b60006154b26026836137f5565b91506154bd82615456565b604082019050919050565b600060208201905081810360008301526154e1816154a5565b9050919050565b600081905092915050565b60006154fe82615373565b61550881856154e8565b9350615518818560208601613806565b80840191505092915050565b600061553082846154f3565b915081905092915050565b7f4552433732313a206d696e7420746f20746865207a65726f2061646472657373600082015250565b60006155716020836137f5565b915061557c8261553b565b602082019050919050565b600060208201905081810360008301526155a081615564565b9050919050565b7f4552433732313a20746f6b656e20616c7265616479206d696e74656400000000600082015250565b60006155dd601c836137f5565b91506155e8826155a7565b602082019050919050565b6000602082019050818103600083015261560c816155d0565b905091905056fe416464726573733a206c6f772d6c6576656c2064656c65676174652063616c6c206661696c6564a26469706673582212203ca057506c1d961d5a9d939743dff938ad476308649c080a28acd7213a02353964736f6c634300080b0033
Loading...
Loading
Loading...
Loading
[ Download: CSV Export ]
[ Download: CSV Export ]
A token is a representation of an on-chain or off-chain asset. The token page shows information such as price, total supply, holders, transfers and social links. Learn more about this page in our Knowledge Base.