Overview
ETH Balance
0 ETH
Eth Value
$0.00More Info
Private Name Tags
ContractCreator
Transaction Hash |
Method
|
Block
|
From
|
To
|
|||||
---|---|---|---|---|---|---|---|---|---|
Latest 1 internal transaction
Advanced mode:
Parent Transaction Hash | Block |
From
|
To
|
|||
---|---|---|---|---|---|---|
13795274 | 1106 days ago | Contract Creation | 0 ETH |
Loading...
Loading
Contract Name:
F0
Compiler Version
v0.8.4+commit.c7e474f2
Optimization Enabled:
Yes with 1000 runs
Other Settings:
default evmVersion
Contract Source Code (Solidity Standard Json-Input format)
// SPDX-License-Identifier: BUSL-1.1 ////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// // // // ███████╗░█████╗░░█████╗░████████╗░█████╗░██████╗░██╗░█████╗░ ░░░░░░ ███████╗░█████╗░ // ██╔════╝██╔══██╗██╔══██╗╚══██╔══╝██╔══██╗██╔══██╗██║██╔══██╗ ░░░░░░ ██╔════╝██╔══██╗ // █████╗░░███████║██║░░╚═╝░░░██║░░░██║░░██║██████╔╝██║███████║ █████╗ █████╗░░██║░░██║ // ██╔══╝░░██╔══██║██║░░██╗░░░██║░░░██║░░██║██╔══██╗██║██╔══██║ ╚════╝ ██╔══╝░░██║░░██║ // ██║░░░░░██║░░██║╚█████╔╝░░░██║░░░╚█████╔╝██║░░██║██║██║░░██║ ░░░░░░ ██║░░░░░╚█████╔╝ // ╚═╝░░░░░╚═╝░░╚═╝░╚════╝░░░░╚═╝░░░░╚════╝░╚═╝░░╚═╝╚═╝╚═╝░░╚═╝ ░░░░░░ ╚═╝░░░░░░╚════╝░ // // ## THE LAUNCHERS ## // The following humans have brought the FACTORIA F0 contract into existence through crowdfunding: // // 0x3B31925EeC78dA3CF15c4503604c13b0eEBC57e5 0.1742069 ETH Emblem Vault + Circuits of Value // 0x1593110441AB4C5F2C133F21B0743B2b43E297cB 0.1000000 ETH EmilySnow.eth // 0x334Ce5048e1Dc1cfCbF6A692e7ce6Bd950Ad82ec 0.0750000 ETH Las Vegas (@artsyassets) -- Shoutout to @skogard @chusla & Bob Marley // 0xCe5A9AA866ca82f06Df0d0868CB27C044A9086Ef 0.0731200 ETH Ramon Torres Batiz // 0x298b25385E67B471faa64CB1CA17F31684016629 0.0400000 ETH Apes4Good @Apes4Good + good frens @HeyGoodFrens // 0x701Ee76fc23173B1568f12dEa8a4122fbC55abD1 0.0222000 ETH Hansel Loh // 0x48A64aDbb34837F3Bf4d40BCc40C85bBCa1A3a84 0.0170000 ETH Arvind "POG" Alexander // ////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// pragma solidity ^0.8.4; //import 'hardhat/console.sol'; import "./F0ERC721Upgradeable.sol"; import "@openzeppelin/contracts-upgradeable/access/OwnableUpgradeable.sol"; import "@openzeppelin/contracts-upgradeable/proxy/utils/Initializable.sol"; contract F0 is Initializable, ERC721Upgradeable, OwnableUpgradeable { /********************************************************** * * EVENTS * **********************************************************/ event Invited(bytes32 indexed key, bytes32 indexed cid); event NSUpdated(string name, string symbol); event Configured(Config config); event WithdrawerUpdated(Withdrawer withdrawer); /********************************************************** * * DATA STRUCTURES * **********************************************************/ struct Config { string placeholder; string base; uint64 supply; bool permanent; } struct Invite { uint128 price; uint64 start; uint64 limit; } struct Auth { bytes32 key; bytes32[] proof; } struct Withdrawer { address account; bool permanent; } /********************************************************** * * VARIABLES * **********************************************************/ mapping (bytes32 => Invite) public invite; Config public config; Withdrawer public withdrawer; uint public nextId; uint private feeUsed; string public URI; address public royalty; /********************************************************** * * INITIALIZER * **********************************************************/ function initialize(string memory name, string memory symbol, Config calldata _config) initializer external { __ERC721_init(name, symbol); __Ownable_init(); setConfig(_config); } /********************************************************** * * ADMIN * **********************************************************/ function setConfig(Config calldata _config) public onlyOwner { require(!config.permanent, "1"); config = _config; emit Configured(_config); } function setNS(string calldata name_, string calldata symbol_) external onlyOwner { require(!config.permanent, "2"); _name = name_; _symbol = symbol_; emit NSUpdated(_name, _symbol); } function setURI (string calldata _uri) external onlyOwner { URI = _uri; } function setWithdrawer(Withdrawer calldata _withdrawer) external onlyOwner { require(!withdrawer.permanent, "3"); withdrawer = _withdrawer; emit WithdrawerUpdated(_withdrawer); } function setInvite(bytes32 _key, bytes32 _cid, Invite calldata _invite) external onlyOwner { if (nextId==0) nextId = 1; // delay nextId setting until the first invite is made. invite[_key] = _invite; emit Invited(_key, _cid); } function withdraw() external payable { /**************************************************************************************************** * * Authorization * - Either the owner or the withdrawer (in case it's set) can initiate withdraw() * ****************************************************************************************************/ require(_msgSender() == owner() || _msgSender() == withdrawer.account, "4"); /**************************************************************************************************** * * Fee => 1% of revenue with 1ETH cap * - compute 1% * - if paying 1% exceeds the 1ETH total fee used, only pay enough to reach 1ETH * - update the total fee used * ****************************************************************************************************/ uint balance = address(this).balance; uint fee = 0; if (feeUsed < 1 ether) { fee = balance/100; if (feeUsed + fee > 1 ether) fee = 1 ether - feeUsed; feeUsed += fee; } /**************************************************************************************************** * * - if the withdrawer.account is not set (0x0 address), withdraw balance-fee to owner * - if the withdrawer.account is set, withdraw balance-fee to withdrawer.account * ****************************************************************************************************/ (bool sent1, ) = payable( withdrawer.account == address(0) ? owner() : withdrawer.account ).call{value: balance-fee}(""); require(sent1, "5"); /**************************************************************************************************** * * - the fee is sent to 0x502b2FE7Cc3488fcfF2E16158615AF87b4Ab5C41 * ****************************************************************************************************/ (bool sent2, ) = payable(address(0x502b2FE7Cc3488fcfF2E16158615AF87b4Ab5C41)).call{value: fee}(""); require(sent2, "6"); } /********************************************************** * * TOKEN * **********************************************************/ function mint(Auth calldata auth, uint _count) external payable { uint n = nextId; Invite memory i = invite[auth.key]; require(verify(auth, _msgSender()), "7"); require(i.price * _count == msg.value, "8"); require(i.start <= block.timestamp, "9"); require(balanceOf(_msgSender()) + _count <= i.limit, "10"); require(n+_count-1 <= config.supply, "11"); for(uint k=0; k<_count; k++) { _safeMint(_msgSender(), n+k); } nextId = n + _count; } function gift(address _receiver, uint _count) external onlyOwner { // first time: nextId is 0 => n is 1 // after that: nextId is 1 or greater => n is the same as nextId uint n = (nextId > 0 ? nextId : 1); require(_count > 0, "12"); require(n+_count-1 <= config.supply, "13"); for(uint k=0; k<_count; k++) { _safeMint(_receiver, n+k); } nextId = n + _count; } function burn(uint _tokenId) external { require(_isApprovedOrOwner(_msgSender(), _tokenId), "14"); _burn(_tokenId); } function tokenURI(uint tokenId) public view override(ERC721Upgradeable) returns (string memory) { require(tokenId > 0 && tokenId <= config.supply, "15"); if (bytes(config.base).length > 0) { return string(abi.encodePacked(config.base, _toString(tokenId), ".json")); } else { return bytes(config.placeholder).length > 0 ? config.placeholder : "ipfs://bafkreieqcdphcfojcd2vslsxrhzrjqr6cxjlyuekpghzehfexi5c3w55eq"; } } /********************************************************** * * ROYALTY * **********************************************************/ function setRoyalty(address _address) external onlyOwner { require(!config.permanent, "16"); royalty = _address; } function royaltyInfo(uint tokenId, uint value) external view returns (address receiver, uint256 royaltyAmount) { if (royalty == address(0)) { // Default: No royalty return (royalty, 0); } else { // If the royalty address is set, call the contract to get the royalty values (, bytes memory r) = royalty.staticcall(abi.encodeWithSignature("get(address,uint256,uint256)", address(this), tokenId, value)); return abi.decode(r, (address,uint)); } } function supportsInterface(bytes4 interfaceId) public view virtual override(ERC721Upgradeable) returns (bool) { return (interfaceId == 0x2a55205a || super.supportsInterface(interfaceId)); } /********************************************************** * * UTIL * **********************************************************/ function _toString(uint value) internal pure returns (string memory) { uint temp = value; uint digits; while (temp != 0) { digits++; temp /= 10; } bytes memory buffer = new bytes(digits); while (value != 0) { digits--; buffer[digits] = bytes1(uint8(48 + uint(value % 10))); value /= 10; } return string(buffer); } function verify(Auth calldata auth, address account) internal pure returns (bool) { if (auth.key == "") return true; bytes32 computedHash = keccak256(abi.encodePacked(account)); for (uint256 i = 0; i < auth.proof.length; i++) { bytes32 proofElement = auth.proof[i]; if (computedHash <= proofElement) { computedHash = keccak256(abi.encodePacked(computedHash, proofElement)); } else { computedHash = keccak256(abi.encodePacked(proofElement, computedHash)); } } return computedHash == auth.key; } }
// SPDX-License-Identifier: MIT /*************************************************************************************************** * * This file is identical to * @openzeppelin/contracts-upgradeable/token/ERC721/ERC721Upgradeable.sol * with one exception: * * _name and _symbol are "internal" types inatead of "private" * => so the inheriting F0.sol contract can dynamically update it using setNS() * ***************************************************************************************************/ pragma solidity ^0.8.0; import "@openzeppelin/contracts-upgradeable/token/ERC721/IERC721Upgradeable.sol"; import "@openzeppelin/contracts-upgradeable/token/ERC721/IERC721ReceiverUpgradeable.sol"; import "@openzeppelin/contracts-upgradeable/token/ERC721/extensions/IERC721MetadataUpgradeable.sol"; import "@openzeppelin/contracts-upgradeable/utils/AddressUpgradeable.sol"; import "@openzeppelin/contracts-upgradeable/utils/ContextUpgradeable.sol"; import "@openzeppelin/contracts-upgradeable/utils/StringsUpgradeable.sol"; import "@openzeppelin/contracts-upgradeable/utils/introspection/ERC165Upgradeable.sol"; import "@openzeppelin/contracts-upgradeable/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 internal _name; // Token symbol string internal _symbol; // Mapping from token ID to owner address mapping(uint256 => address) private _owners; // Mapping owner address to token count mapping(address => uint256) private _balances; // Mapping from token ID to approved address mapping(uint256 => address) private _tokenApprovals; // Mapping from owner to operator approvals mapping(address => mapping(address => bool)) private _operatorApprovals; /** * @dev Initializes the contract by setting a `name` and a `symbol` to the token collection. */ function __ERC721_init(string memory name_, string memory symbol_) internal initializer { __Context_init_unchained(); __ERC165_init_unchained(); __ERC721_init_unchained(name_, symbol_); } function __ERC721_init_unchained(string memory name_, string memory symbol_) internal initializer { _name = name_; _symbol = symbol_; } /** * @dev See {IERC165-supportsInterface}. */ function supportsInterface(bytes4 interfaceId) public view virtual override(ERC165Upgradeable, IERC165Upgradeable) returns (bool) { return interfaceId == type(IERC721Upgradeable).interfaceId || interfaceId == type(IERC721MetadataUpgradeable).interfaceId || super.supportsInterface(interfaceId); } /** * @dev See {IERC721-balanceOf}. */ function balanceOf(address owner) public view virtual override returns (uint256) { require(owner != address(0), "ERC721: balance query for the zero address"); return _balances[owner]; } /** * @dev See {IERC721-ownerOf}. */ function ownerOf(uint256 tokenId) public view virtual override returns (address) { address owner = _owners[tokenId]; require(owner != address(0), "ERC721: owner query for nonexistent token"); return owner; } /** * @dev See {IERC721Metadata-name}. */ function name() public view virtual override returns (string memory) { return _name; } /** * @dev See {IERC721Metadata-symbol}. */ function symbol() public view virtual override returns (string memory) { return _symbol; } /** * @dev See {IERC721Metadata-tokenURI}. */ function tokenURI(uint256 tokenId) public view virtual override returns (string memory) { require(_exists(tokenId), "ERC721Metadata: URI query for nonexistent token"); string memory baseURI = _baseURI(); return bytes(baseURI).length > 0 ? string(abi.encodePacked(baseURI, tokenId.toString())) : ""; } /** * @dev Base URI for computing {tokenURI}. If set, the resulting URI for each * token will be the concatenation of the `baseURI` and the `tokenId`. Empty * by default, can be overriden in child contracts. */ function _baseURI() internal view virtual returns (string memory) { return ""; } /** * @dev See {IERC721-approve}. */ function approve(address to, uint256 tokenId) public virtual override { address owner = ERC721Upgradeable.ownerOf(tokenId); require(to != owner, "ERC721: approval to current owner"); require( _msgSender() == owner || isApprovedForAll(owner, _msgSender()), "ERC721: approve caller is not owner nor approved for all" ); _approve(to, tokenId); } /** * @dev See {IERC721-getApproved}. */ function getApproved(uint256 tokenId) public view virtual override returns (address) { require(_exists(tokenId), "ERC721: approved query for nonexistent token"); return _tokenApprovals[tokenId]; } /** * @dev See {IERC721-setApprovalForAll}. */ function setApprovalForAll(address operator, bool approved) public virtual override { require(operator != _msgSender(), "ERC721: approve to caller"); _operatorApprovals[_msgSender()][operator] = approved; emit ApprovalForAll(_msgSender(), operator, approved); } /** * @dev See {IERC721-isApprovedForAll}. */ function isApprovedForAll(address owner, address operator) public view virtual override returns (bool) { return _operatorApprovals[owner][operator]; } /** * @dev See {IERC721-transferFrom}. */ function transferFrom( address from, address to, uint256 tokenId ) public virtual override { //solhint-disable-next-line max-line-length require(_isApprovedOrOwner(_msgSender(), tokenId), "ERC721: transfer caller is not owner nor approved"); _transfer(from, to, tokenId); } /** * @dev See {IERC721-safeTransferFrom}. */ function safeTransferFrom( address from, address to, uint256 tokenId ) public virtual override { safeTransferFrom(from, to, tokenId, ""); } /** * @dev See {IERC721-safeTransferFrom}. */ function safeTransferFrom( address from, address to, uint256 tokenId, bytes memory _data ) public virtual override { require(_isApprovedOrOwner(_msgSender(), tokenId), "ERC721: transfer caller is not owner nor approved"); _safeTransfer(from, to, tokenId, _data); } /** * @dev Safely transfers `tokenId` token from `from` to `to`, checking first that contract recipients * are aware of the ERC721 protocol to prevent tokens from being forever locked. * * `_data` is additional data, it has no specified format and it is sent in call to `to`. * * This internal function is equivalent to {safeTransferFrom}, and can be used to e.g. * implement alternative mechanisms to perform token transfer, such as signature-based. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must exist and be owned by `from`. * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */ function _safeTransfer( address from, address to, uint256 tokenId, bytes memory _data ) internal virtual { _transfer(from, to, tokenId); require(_checkOnERC721Received(from, to, tokenId, _data), "ERC721: transfer to non ERC721Receiver implementer"); } /** * @dev Returns whether `tokenId` exists. * * Tokens can be managed by their owner or approved accounts via {approve} or {setApprovalForAll}. * * Tokens start existing when they are minted (`_mint`), * and stop existing when they are burned (`_burn`). */ function _exists(uint256 tokenId) internal view virtual returns (bool) { return _owners[tokenId] != address(0); } /** * @dev Returns whether `spender` is allowed to manage `tokenId`. * * Requirements: * * - `tokenId` must exist. */ function _isApprovedOrOwner(address spender, uint256 tokenId) internal view virtual returns (bool) { require(_exists(tokenId), "ERC721: operator query for nonexistent token"); address owner = ERC721Upgradeable.ownerOf(tokenId); return (spender == owner || getApproved(tokenId) == spender || isApprovedForAll(owner, spender)); } /** * @dev Safely mints `tokenId` and transfers it to `to`. * * Requirements: * * - `tokenId` must not exist. * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */ function _safeMint(address to, uint256 tokenId) internal virtual { _safeMint(to, tokenId, ""); } /** * @dev Same as {xref-ERC721-_safeMint-address-uint256-}[`_safeMint`], with an additional `data` parameter which is * forwarded in {IERC721Receiver-onERC721Received} to contract recipients. */ function _safeMint( address to, uint256 tokenId, bytes memory _data ) internal virtual { _mint(to, tokenId); require( _checkOnERC721Received(address(0), to, tokenId, _data), "ERC721: transfer to non ERC721Receiver implementer" ); } /** * @dev Mints `tokenId` and transfers it to `to`. * * WARNING: Usage of this method is discouraged, use {_safeMint} whenever possible * * Requirements: * * - `tokenId` must not exist. * - `to` cannot be the zero address. * * Emits a {Transfer} event. */ function _mint(address to, uint256 tokenId) internal virtual { require(to != address(0), "ERC721: mint to the zero address"); require(!_exists(tokenId), "ERC721: token already minted"); _beforeTokenTransfer(address(0), to, tokenId); _balances[to] += 1; _owners[tokenId] = to; emit Transfer(address(0), to, tokenId); } /** * @dev Destroys `tokenId`. * The approval is cleared when the token is burned. * * Requirements: * * - `tokenId` must exist. * * Emits a {Transfer} event. */ function _burn(uint256 tokenId) internal virtual { address owner = ERC721Upgradeable.ownerOf(tokenId); _beforeTokenTransfer(owner, address(0), tokenId); // Clear approvals _approve(address(0), tokenId); _balances[owner] -= 1; delete _owners[tokenId]; emit Transfer(owner, address(0), tokenId); } /** * @dev Transfers `tokenId` from `from` to `to`. * As opposed to {transferFrom}, this imposes no restrictions on msg.sender. * * Requirements: * * - `to` cannot be the zero address. * - `tokenId` token must be owned by `from`. * * Emits a {Transfer} event. */ function _transfer( address from, address to, uint256 tokenId ) internal virtual { require(ERC721Upgradeable.ownerOf(tokenId) == from, "ERC721: transfer of token that is not own"); require(to != address(0), "ERC721: transfer to the zero address"); _beforeTokenTransfer(from, to, tokenId); // Clear approvals from the previous owner _approve(address(0), tokenId); _balances[from] -= 1; _balances[to] += 1; _owners[tokenId] = to; emit Transfer(from, to, tokenId); } /** * @dev Approve `to` to operate on `tokenId` * * Emits a {Approval} event. */ function _approve(address to, uint256 tokenId) internal virtual { _tokenApprovals[tokenId] = to; emit Approval(ERC721Upgradeable.ownerOf(tokenId), to, tokenId); } /** * @dev Internal function to invoke {IERC721Receiver-onERC721Received} on a target address. * The call is not executed if the target address is not a contract. * * @param from address representing the previous owner of the given token ID * @param to target address that will receive the tokens * @param tokenId uint256 ID of the token to be transferred * @param _data bytes optional data to send along with the call * @return bool whether the call correctly returned the expected magic value */ function _checkOnERC721Received( address from, address to, uint256 tokenId, bytes memory _data ) private returns (bool) { if (to.isContract()) { try IERC721ReceiverUpgradeable(to).onERC721Received(_msgSender(), from, tokenId, _data) returns (bytes4 retval) { return retval == IERC721ReceiverUpgradeable.onERC721Received.selector; } catch (bytes memory reason) { if (reason.length == 0) { revert("ERC721: transfer to non ERC721Receiver implementer"); } else { assembly { revert(add(32, reason), mload(reason)) } } } } else { return true; } } /** * @dev Hook that is called before any token transfer. This includes minting * and burning. * * Calling conditions: * * - When `from` and `to` are both non-zero, ``from``'s `tokenId` will be * transferred to `to`. * - When `from` is zero, `tokenId` will be minted for `to`. * - When `to` is zero, ``from``'s `tokenId` will be burned. * - `from` and `to` are never both zero. * * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks]. */ function _beforeTokenTransfer( address from, address to, uint256 tokenId ) internal virtual {} uint256[44] private __gap; }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import "../utils/ContextUpgradeable.sol"; import "../proxy/utils/Initializable.sol"; /** * @dev Contract module which provides a basic access control mechanism, where * there is an account (an owner) that can be granted exclusive access to * specific functions. * * By default, the owner account will be the one that deploys the contract. This * can later be changed with {transferOwnership}. * * This module is used through inheritance. It will make available the modifier * `onlyOwner`, which can be applied to your functions to restrict their use to * the owner. */ abstract contract OwnableUpgradeable is Initializable, ContextUpgradeable { address private _owner; event OwnershipTransferred(address indexed previousOwner, address indexed newOwner); /** * @dev Initializes the contract setting the deployer as the initial owner. */ function __Ownable_init() internal initializer { __Context_init_unchained(); __Ownable_init_unchained(); } function __Ownable_init_unchained() internal initializer { _setOwner(_msgSender()); } /** * @dev Returns the address of the current owner. */ function owner() public view virtual returns (address) { return _owner; } /** * @dev Throws if called by any account other than the owner. */ modifier onlyOwner() { require(owner() == _msgSender(), "Ownable: caller is not the owner"); _; } /** * @dev Leaves the contract without owner. It will not be possible to call * `onlyOwner` functions anymore. Can only be called by the current owner. * * NOTE: Renouncing ownership will leave the contract without an owner, * thereby removing any functionality that is only available to the owner. */ function renounceOwnership() public virtual onlyOwner { _setOwner(address(0)); } /** * @dev Transfers ownership of the contract to a new account (`newOwner`). * Can only be called by the current owner. */ function transferOwnership(address newOwner) public virtual onlyOwner { require(newOwner != address(0), "Ownable: new owner is the zero address"); _setOwner(newOwner); } function _setOwner(address newOwner) private { address oldOwner = _owner; _owner = newOwner; emit OwnershipTransferred(oldOwner, newOwner); } uint256[49] private __gap; }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; /** * @dev This is a base contract to aid in writing upgradeable contracts, or any kind of contract that will be deployed * behind a proxy. Since a proxied contract can't have a constructor, it's common to move constructor logic to an * external initializer function, usually called `initialize`. It then becomes necessary to protect this initializer * function so it can only be called once. The {initializer} modifier provided by this contract will have this effect. * * TIP: To avoid leaving the proxy in an uninitialized state, the initializer function should be called as early as * possible by providing the encoded function call as the `_data` argument to {ERC1967Proxy-constructor}. * * CAUTION: When used with inheritance, manual care must be taken to not invoke a parent initializer twice, or to ensure * that all initializers are idempotent. This is not verified automatically as constructors are by Solidity. */ abstract contract Initializable { /** * @dev Indicates that the contract has been initialized. */ bool private _initialized; /** * @dev Indicates that the contract is in the process of being initialized. */ bool private _initializing; /** * @dev Modifier to protect an initializer function from being invoked twice. */ modifier initializer() { require(_initializing || !_initialized, "Initializable: contract is already initialized"); bool isTopLevelCall = !_initializing; if (isTopLevelCall) { _initializing = true; _initialized = true; } _; if (isTopLevelCall) { _initializing = false; } } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import "../../utils/introspection/IERC165Upgradeable.sol"; /** * @dev Required interface of an ERC721 compliant contract. */ interface IERC721Upgradeable is IERC165Upgradeable { /** * @dev Emitted when `tokenId` token is transferred from `from` to `to`. */ event Transfer(address indexed from, address indexed to, uint256 indexed tokenId); /** * @dev Emitted when `owner` enables `approved` to manage the `tokenId` token. */ event Approval(address indexed owner, address indexed approved, uint256 indexed tokenId); /** * @dev Emitted when `owner` enables or disables (`approved`) `operator` to manage all of its assets. */ event ApprovalForAll(address indexed owner, address indexed operator, bool approved); /** * @dev Returns the number of tokens in ``owner``'s account. */ function balanceOf(address owner) external view returns (uint256 balance); /** * @dev Returns the owner of the `tokenId` token. * * Requirements: * * - `tokenId` must exist. */ function ownerOf(uint256 tokenId) external view returns (address owner); /** * @dev Safely transfers `tokenId` token from `from` to `to`, checking first that contract recipients * are aware of the ERC721 protocol to prevent tokens from being forever locked. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must exist and be owned by `from`. * - If the caller is not `from`, it must be have been allowed to move this token by either {approve} or {setApprovalForAll}. * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */ function safeTransferFrom( address from, address to, uint256 tokenId ) external; /** * @dev Transfers `tokenId` token from `from` to `to`. * * WARNING: Usage of this method is discouraged, use {safeTransferFrom} whenever possible. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must be owned by `from`. * - If the caller is not `from`, it must be approved to move this token by either {approve} or {setApprovalForAll}. * * Emits a {Transfer} event. */ function transferFrom( address from, address to, uint256 tokenId ) external; /** * @dev Gives permission to `to` to transfer `tokenId` token to another account. * The approval is cleared when the token is transferred. * * Only a single account can be approved at a time, so approving the zero address clears previous approvals. * * Requirements: * * - The caller must own the token or be an approved operator. * - `tokenId` must exist. * * Emits an {Approval} event. */ function approve(address to, uint256 tokenId) external; /** * @dev Returns the account approved for `tokenId` token. * * Requirements: * * - `tokenId` must exist. */ function getApproved(uint256 tokenId) external view returns (address operator); /** * @dev Approve or remove `operator` as an operator for the caller. * Operators can call {transferFrom} or {safeTransferFrom} for any token owned by the caller. * * Requirements: * * - The `operator` cannot be the caller. * * Emits an {ApprovalForAll} event. */ function setApprovalForAll(address operator, bool _approved) external; /** * @dev Returns if the `operator` is allowed to manage all of the assets of `owner`. * * See {setApprovalForAll} */ function isApprovedForAll(address owner, address operator) external view returns (bool); /** * @dev Safely transfers `tokenId` token from `from` to `to`. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must exist and be owned by `from`. * - If the caller is not `from`, it must be approved to move this token by either {approve} or {setApprovalForAll}. * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */ function safeTransferFrom( address from, address to, uint256 tokenId, bytes calldata data ) external; }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; /** * @title ERC721 token receiver interface * @dev Interface for any contract that wants to support safeTransfers * from ERC721 asset contracts. */ interface IERC721ReceiverUpgradeable { /** * @dev Whenever an {IERC721} `tokenId` token is transferred to this contract via {IERC721-safeTransferFrom} * by `operator` from `from`, this function is called. * * It must return its Solidity selector to confirm the token transfer. * If any other value is returned or the interface is not implemented by the recipient, the transfer will be reverted. * * The selector can be obtained in Solidity with `IERC721.onERC721Received.selector`. */ function onERC721Received( address operator, address from, uint256 tokenId, bytes calldata data ) external returns (bytes4); }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import "../IERC721Upgradeable.sol"; /** * @title ERC-721 Non-Fungible Token Standard, optional metadata extension * @dev See https://eips.ethereum.org/EIPS/eip-721 */ interface IERC721MetadataUpgradeable is IERC721Upgradeable { /** * @dev Returns the token collection name. */ function name() external view returns (string memory); /** * @dev Returns the token collection symbol. */ function symbol() external view returns (string memory); /** * @dev Returns the Uniform Resource Identifier (URI) for `tokenId` token. */ function tokenURI(uint256 tokenId) external view returns (string memory); }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; /** * @dev Collection of functions related to the address type */ library AddressUpgradeable { /** * @dev Returns true if `account` is a contract. * * [IMPORTANT] * ==== * It is unsafe to assume that an address for which this function returns * false is an externally-owned account (EOA) and not a contract. * * Among others, `isContract` will return false for the following * types of addresses: * * - an externally-owned account * - a contract in construction * - an address where a contract will be created * - an address where a contract lived, but was destroyed * ==== */ function isContract(address account) internal view returns (bool) { // This method relies on extcodesize, which returns 0 for contracts in // construction, since the code is only stored at the end of the // constructor execution. uint256 size; assembly { size := extcodesize(account) } return size > 0; } /** * @dev Replacement for Solidity's `transfer`: sends `amount` wei to * `recipient`, forwarding all available gas and reverting on errors. * * https://eips.ethereum.org/EIPS/eip-1884[EIP1884] increases the gas cost * of certain opcodes, possibly making contracts go over the 2300 gas limit * imposed by `transfer`, making them unable to receive funds via * `transfer`. {sendValue} removes this limitation. * * https://diligence.consensys.net/posts/2019/09/stop-using-soliditys-transfer-now/[Learn more]. * * IMPORTANT: because control is transferred to `recipient`, care must be * taken to not create reentrancy vulnerabilities. Consider using * {ReentrancyGuard} or the * https://solidity.readthedocs.io/en/v0.5.11/security-considerations.html#use-the-checks-effects-interactions-pattern[checks-effects-interactions pattern]. */ function sendValue(address payable recipient, uint256 amount) internal { require(address(this).balance >= amount, "Address: insufficient balance"); (bool success, ) = recipient.call{value: amount}(""); require(success, "Address: unable to send value, recipient may have reverted"); } /** * @dev Performs a Solidity function call using a low level `call`. A * plain `call` is an unsafe replacement for a function call: use this * function instead. * * If `target` reverts with a revert reason, it is bubbled up by this * function (like regular Solidity function calls). * * Returns the raw returned data. To convert to the expected return value, * use https://solidity.readthedocs.io/en/latest/units-and-global-variables.html?highlight=abi.decode#abi-encoding-and-decoding-functions[`abi.decode`]. * * Requirements: * * - `target` must be a contract. * - calling `target` with `data` must not revert. * * _Available since v3.1._ */ function functionCall(address target, bytes memory data) internal returns (bytes memory) { return functionCall(target, data, "Address: low-level call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], but with * `errorMessage` as a fallback revert reason when `target` reverts. * * _Available since v3.1._ */ function functionCall( address target, bytes memory data, string memory errorMessage ) internal returns (bytes memory) { return functionCallWithValue(target, data, 0, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but also transferring `value` wei to `target`. * * Requirements: * * - the calling contract must have an ETH balance of at least `value`. * - the called Solidity function must be `payable`. * * _Available since v3.1._ */ function functionCallWithValue( address target, bytes memory data, uint256 value ) internal returns (bytes memory) { return functionCallWithValue(target, data, value, "Address: low-level call with value failed"); } /** * @dev Same as {xref-Address-functionCallWithValue-address-bytes-uint256-}[`functionCallWithValue`], but * with `errorMessage` as a fallback revert reason when `target` reverts. * * _Available since v3.1._ */ function functionCallWithValue( address target, bytes memory data, uint256 value, string memory errorMessage ) internal returns (bytes memory) { require(address(this).balance >= value, "Address: insufficient balance for call"); require(isContract(target), "Address: call to non-contract"); (bool success, bytes memory returndata) = target.call{value: value}(data); return verifyCallResult(success, returndata, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but performing a static call. * * _Available since v3.3._ */ function functionStaticCall(address target, bytes memory data) internal view returns (bytes memory) { return functionStaticCall(target, data, "Address: low-level static call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`], * but performing a static call. * * _Available since v3.3._ */ function functionStaticCall( address target, bytes memory data, string memory errorMessage ) internal view returns (bytes memory) { require(isContract(target), "Address: static call to non-contract"); (bool success, bytes memory returndata) = target.staticcall(data); return verifyCallResult(success, returndata, errorMessage); } /** * @dev Tool to verifies that a low level call was successful, and revert if it wasn't, either by bubbling the * revert reason using the provided one. * * _Available since v4.3._ */ function verifyCallResult( bool success, bytes memory returndata, string memory errorMessage ) internal pure returns (bytes memory) { if (success) { return returndata; } else { // Look for revert reason and bubble it up if present if (returndata.length > 0) { // The easiest way to bubble the revert reason is using memory via assembly assembly { let returndata_size := mload(returndata) revert(add(32, returndata), returndata_size) } } else { revert(errorMessage); } } } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import "../proxy/utils/Initializable.sol"; /** * @dev Provides information about the current execution context, including the * sender of the transaction and its data. While these are generally available * via msg.sender and msg.data, they should not be accessed in such a direct * manner, since when dealing with meta-transactions the account sending and * paying for execution may not be the actual sender (as far as an application * is concerned). * * This contract is only required for intermediate, library-like contracts. */ abstract contract ContextUpgradeable is Initializable { function __Context_init() internal initializer { __Context_init_unchained(); } function __Context_init_unchained() internal initializer { } function _msgSender() internal view virtual returns (address) { return msg.sender; } function _msgData() internal view virtual returns (bytes calldata) { return msg.data; } uint256[50] private __gap; }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; /** * @dev String operations. */ library StringsUpgradeable { bytes16 private constant _HEX_SYMBOLS = "0123456789abcdef"; /** * @dev Converts a `uint256` to its ASCII `string` decimal representation. */ function toString(uint256 value) internal pure returns (string memory) { // Inspired by OraclizeAPI's implementation - MIT licence // https://github.com/oraclize/ethereum-api/blob/b42146b063c7d6ee1358846c198246239e9360e8/oraclizeAPI_0.4.25.sol if (value == 0) { return "0"; } uint256 temp = value; uint256 digits; while (temp != 0) { digits++; temp /= 10; } bytes memory buffer = new bytes(digits); while (value != 0) { digits -= 1; buffer[digits] = bytes1(uint8(48 + uint256(value % 10))); value /= 10; } return string(buffer); } /** * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation. */ function toHexString(uint256 value) internal pure returns (string memory) { if (value == 0) { return "0x00"; } uint256 temp = value; uint256 length = 0; while (temp != 0) { length++; temp >>= 8; } return toHexString(value, length); } /** * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation with fixed length. */ function toHexString(uint256 value, uint256 length) internal pure returns (string memory) { bytes memory buffer = new bytes(2 * length + 2); buffer[0] = "0"; buffer[1] = "x"; for (uint256 i = 2 * length + 1; i > 1; --i) { buffer[i] = _HEX_SYMBOLS[value & 0xf]; value >>= 4; } require(value == 0, "Strings: hex length insufficient"); return string(buffer); } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import "./IERC165Upgradeable.sol"; import "../../proxy/utils/Initializable.sol"; /** * @dev Implementation of the {IERC165} interface. * * Contracts that want to implement ERC165 should inherit from this contract and override {supportsInterface} to check * for the additional interface id that will be supported. For example: * * ```solidity * function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) { * return interfaceId == type(MyInterface).interfaceId || super.supportsInterface(interfaceId); * } * ``` * * Alternatively, {ERC165Storage} provides an easier to use but more expensive implementation. */ abstract contract ERC165Upgradeable is Initializable, IERC165Upgradeable { function __ERC165_init() internal initializer { __ERC165_init_unchained(); } function __ERC165_init_unchained() internal initializer { } /** * @dev See {IERC165-supportsInterface}. */ function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) { return interfaceId == type(IERC165Upgradeable).interfaceId; } uint256[50] private __gap; }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; /** * @dev Interface of the ERC165 standard, as defined in the * https://eips.ethereum.org/EIPS/eip-165[EIP]. * * Implementers can declare support of contract interfaces, which can then be * queried by others ({ERC165Checker}). * * For an implementation, see {ERC165}. */ interface IERC165Upgradeable { /** * @dev Returns true if this contract implements the interface defined by * `interfaceId`. See the corresponding * https://eips.ethereum.org/EIPS/eip-165#how-interfaces-are-identified[EIP section] * to learn more about how these ids are created. * * This function call must use less than 30 000 gas. */ function supportsInterface(bytes4 interfaceId) external view returns (bool); }
{ "optimizer": { "enabled": true, "runs": 1000 }, "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":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":[{"components":[{"internalType":"string","name":"placeholder","type":"string"},{"internalType":"string","name":"base","type":"string"},{"internalType":"uint64","name":"supply","type":"uint64"},{"internalType":"bool","name":"permanent","type":"bool"}],"indexed":false,"internalType":"struct F0.Config","name":"config","type":"tuple"}],"name":"Configured","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"bytes32","name":"key","type":"bytes32"},{"indexed":true,"internalType":"bytes32","name":"cid","type":"bytes32"}],"name":"Invited","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"string","name":"name","type":"string"},{"indexed":false,"internalType":"string","name":"symbol","type":"string"}],"name":"NSUpdated","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Transfer","type":"event"},{"anonymous":false,"inputs":[{"components":[{"internalType":"address","name":"account","type":"address"},{"internalType":"bool","name":"permanent","type":"bool"}],"indexed":false,"internalType":"struct F0.Withdrawer","name":"withdrawer","type":"tuple"}],"name":"WithdrawerUpdated","type":"event"},{"inputs":[],"name":"URI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"approve","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_tokenId","type":"uint256"}],"name":"burn","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"config","outputs":[{"internalType":"string","name":"placeholder","type":"string"},{"internalType":"string","name":"base","type":"string"},{"internalType":"uint64","name":"supply","type":"uint64"},{"internalType":"bool","name":"permanent","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getApproved","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_receiver","type":"address"},{"internalType":"uint256","name":"_count","type":"uint256"}],"name":"gift","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"name","type":"string"},{"internalType":"string","name":"symbol","type":"string"},{"components":[{"internalType":"string","name":"placeholder","type":"string"},{"internalType":"string","name":"base","type":"string"},{"internalType":"uint64","name":"supply","type":"uint64"},{"internalType":"bool","name":"permanent","type":"bool"}],"internalType":"struct F0.Config","name":"_config","type":"tuple"}],"name":"initialize","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"name":"invite","outputs":[{"internalType":"uint128","name":"price","type":"uint128"},{"internalType":"uint64","name":"start","type":"uint64"},{"internalType":"uint64","name":"limit","type":"uint64"}],"stateMutability":"view","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":[{"components":[{"internalType":"bytes32","name":"key","type":"bytes32"},{"internalType":"bytes32[]","name":"proof","type":"bytes32[]"}],"internalType":"struct F0.Auth","name":"auth","type":"tuple"},{"internalType":"uint256","name":"_count","type":"uint256"}],"name":"mint","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"nextId","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":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"royalty","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"uint256","name":"value","type":"uint256"}],"name":"royaltyInfo","outputs":[{"internalType":"address","name":"receiver","type":"address"},{"internalType":"uint256","name":"royaltyAmount","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"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":[{"components":[{"internalType":"string","name":"placeholder","type":"string"},{"internalType":"string","name":"base","type":"string"},{"internalType":"uint64","name":"supply","type":"uint64"},{"internalType":"bool","name":"permanent","type":"bool"}],"internalType":"struct F0.Config","name":"_config","type":"tuple"}],"name":"setConfig","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"_key","type":"bytes32"},{"internalType":"bytes32","name":"_cid","type":"bytes32"},{"components":[{"internalType":"uint128","name":"price","type":"uint128"},{"internalType":"uint64","name":"start","type":"uint64"},{"internalType":"uint64","name":"limit","type":"uint64"}],"internalType":"struct F0.Invite","name":"_invite","type":"tuple"}],"name":"setInvite","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"name_","type":"string"},{"internalType":"string","name":"symbol_","type":"string"}],"name":"setNS","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_address","type":"address"}],"name":"setRoyalty","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"_uri","type":"string"}],"name":"setURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"components":[{"internalType":"address","name":"account","type":"address"},{"internalType":"bool","name":"permanent","type":"bool"}],"internalType":"struct F0.Withdrawer","name":"_withdrawer","type":"tuple"}],"name":"setWithdrawer","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":"withdraw","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"withdrawer","outputs":[{"internalType":"address","name":"account","type":"address"},{"internalType":"bool","name":"permanent","type":"bool"}],"stateMutability":"view","type":"function"}]
Contract Creation Code
608060405234801561001057600080fd5b50613e17806100206000396000f3fe6080604052600436106102195760003560e01c806357068f0a1161011d578063a22cb465116100b0578063cbce4c971161007f578063e4963dd511610064578063e4963dd5146106bc578063e985e9c5146106dc578063f2fde38b1461072557600080fd5b8063cbce4c9714610651578063cdc184241461067157600080fd5b8063a22cb465146105de578063b774cf90146105fe578063b88d4fde14610611578063c87b56dd1461063157600080fd5b8063715018a6116100ec578063715018a61461057157806379502c55146105865780638da5cb5b146105ab57806395d89b41146105c957600080fd5b806357068f0a146104ed57806361b8ce8c1461050d5780636352211e1461053157806370a082311461055157600080fd5b806329ee566c116101b057806335c938851161017f57806342842e0e1161016457806342842e0e1461048d57806342966c68146104ad5780634fc41a42146104cd57600080fd5b806335c93885146104655780633ccfd60b1461048557600080fd5b806329ee566c146103c65780632a55205a146103e65780632a6432a4146104255780632b2626781461044557600080fd5b8063095ea7b3116101ec578063095ea7b3146102cf5780631141d7de146102ef578063164ec6f51461030457806323b872dd146103a657600080fd5b806301ffc9a71461021e57806302fe53051461025357806306fdde0314610275578063081812fc14610297575b600080fd5b34801561022a57600080fd5b5061023e610239366004613202565b610745565b60405190151581526020015b60405180910390f35b34801561025f57600080fd5b5061027361026e36600461323a565b610789565b005b34801561028157600080fd5b5061028a6107f9565b60405161024a91906135e4565b3480156102a357600080fd5b506102b76102b23660046131ab565b61088b565b6040516001600160a01b03909116815260200161024a565b3480156102db57600080fd5b506102736102ea366004613180565b610920565b3480156102fb57600080fd5b5061028a610a6b565b34801561031057600080fd5b5061036d61031f3660046131ab565b60c9602052600090815260409020546fffffffffffffffffffffffffffffffff81169067ffffffffffffffff7001000000000000000000000000000000008204811691600160c01b90041683565b604080516fffffffffffffffffffffffffffffffff909416845267ffffffffffffffff928316602085015291169082015260600161024a565b3480156103b257600080fd5b506102736103c1366004613096565b610af9565b3480156103d257600080fd5b5060d1546102b7906001600160a01b031681565b3480156103f257600080fd5b506104066104013660046133f8565b610b81565b604080516001600160a01b03909316835260208301919091520161024a565b34801561043157600080fd5b50610273610440366004613015565b610c9d565b34801561045157600080fd5b506102736104603660046132e3565b610d78565b34801561047157600080fd5b5061027361048036600461327a565b610e49565b610273610f5d565b34801561049957600080fd5b506102736104a8366004613096565b6111cb565b3480156104b957600080fd5b506102736104c83660046131ab565b6111e6565b3480156104d957600080fd5b506102736104e83660046133dd565b611247565b3480156104f957600080fd5b506102736105083660046133aa565b611345565b34801561051957600080fd5b5061052360ce5481565b60405190815260200161024a565b34801561053d57600080fd5b506102b761054c3660046131ab565b61143d565b34801561055d57600080fd5b5061052361056c366004613015565b6114c8565b34801561057d57600080fd5b50610273611562565b34801561059257600080fd5b5061059b6115c8565b60405161024a94939291906135f7565b3480156105b757600080fd5b506097546001600160a01b03166102b7565b3480156105d557600080fd5b5061028a61170a565b3480156105ea57600080fd5b506102736105f9366004613153565b611719565b61027361060c366004613367565b6117de565b34801561061d57600080fd5b5061027361062c3660046130d6565b611a99565b34801561063d57600080fd5b5061028a61064c3660046131ab565b611b21565b34801561065d57600080fd5b5061027361066c366004613180565b611c9f565b34801561067d57600080fd5b5060cd5461069d906001600160a01b03811690600160a01b900460ff1682565b604080516001600160a01b03909316835290151560208301520161024a565b3480156106c857600080fd5b506102736106d73660046131c3565b611e10565b3480156106e857600080fd5b5061023e6106f736600461305e565b6001600160a01b039182166000908152606a6020908152604080832093909416825291909152205460ff1690565b34801561073157600080fd5b50610273610740366004613015565b611ec5565b60007f2a55205a000000000000000000000000000000000000000000000000000000006001600160e01b031983161480610783575061078382611fa4565b92915050565b6097546001600160a01b031633146107e85760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064015b60405180910390fd5b6107f460d08383612e04565b505050565b606060658054610808906139bf565b80601f0160208091040260200160405190810160405280929190818152602001828054610834906139bf565b80156108815780601f1061085657610100808354040283529160200191610881565b820191906000526020600020905b81548152906001019060200180831161086457829003601f168201915b5050505050905090565b6000818152606760205260408120546001600160a01b03166109045760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a20617070726f76656420717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b60648201526084016107df565b506000908152606960205260409020546001600160a01b031690565b600061092b8261143d565b9050806001600160a01b0316836001600160a01b031614156109b55760405162461bcd60e51b815260206004820152602160248201527f4552433732313a20617070726f76616c20746f2063757272656e74206f776e6560448201527f720000000000000000000000000000000000000000000000000000000000000060648201526084016107df565b336001600160a01b03821614806109ef57506001600160a01b0381166000908152606a6020908152604080832033845290915290205460ff165b610a615760405162461bcd60e51b815260206004820152603860248201527f4552433732313a20617070726f76652063616c6c6572206973206e6f74206f7760448201527f6e6572206e6f7220617070726f76656420666f7220616c6c000000000000000060648201526084016107df565b6107f4838361203f565b60d08054610a78906139bf565b80601f0160208091040260200160405190810160405280929190818152602001828054610aa4906139bf565b8015610af15780601f10610ac657610100808354040283529160200191610af1565b820191906000526020600020905b815481529060010190602001808311610ad457829003601f168201915b505050505081565b610b04335b826120ad565b610b765760405162461bcd60e51b815260206004820152603160248201527f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f60448201527f776e6572206e6f7220617070726f76656400000000000000000000000000000060648201526084016107df565b6107f48383836121a4565b60d15460009081906001600160a01b0316610bab57505060d1546001600160a01b03166000610c96565b60d15460405130602482015260448101869052606481018590526000916001600160a01b03169060840160408051601f198184030181529181526020820180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff167f1941472a0000000000000000000000000000000000000000000000000000000017905251610c3891906134e4565b600060405180830381855afa9150503d8060008114610c73576040519150601f19603f3d011682016040523d82523d6000602084013e610c78565b606091505b5091505080806020019051810190610c909190613031565b92509250505b9250929050565b6097546001600160a01b03163314610cf75760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064016107df565b60cc5468010000000000000000900460ff1615610d565760405162461bcd60e51b815260206004820152600260248201527f313600000000000000000000000000000000000000000000000000000000000060448201526064016107df565b60d180546001600160a01b0319166001600160a01b0392909216919091179055565b600054610100900460ff1680610d91575060005460ff16155b610df45760405162461bcd60e51b815260206004820152602e60248201527f496e697469616c697a61626c653a20636f6e747261637420697320616c72656160448201526d191e481a5b9a5d1a585b1a5e995960921b60648201526084016107df565b600054610100900460ff16158015610e16576000805461ffff19166101011790555b610e208484612371565b610e2861243f565b610e3182611345565b8015610e43576000805461ff00191690555b50505050565b6097546001600160a01b03163314610ea35760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064016107df565b60cc5468010000000000000000900460ff1615610f025760405162461bcd60e51b815260206004820152600160248201527f320000000000000000000000000000000000000000000000000000000000000060448201526064016107df565b610f0e60658585612e04565b50610f1b60668383612e04565b507f934066d47a89bfcab72db908a0701b9145131ee303cefb44553121c73419e8dd60656066604051610f4f92919061363f565b60405180910390a150505050565b6097546001600160a01b0316331480610f89575060cd546001600160a01b0316336001600160a01b0316145b610fd55760405162461bcd60e51b815260206004820152600160248201527f340000000000000000000000000000000000000000000000000000000000000060448201526064016107df565b60004790506000670de0b6b3a764000060cf54101561104857610ff960648361381d565b9050670de0b6b3a76400008160cf546110129190613805565b11156110305760cf5461102d90670de0b6b3a7640000613850565b90505b8060cf60008282546110429190613805565b90915550505b60cd546000906001600160a01b03161561106d5760cd546001600160a01b031661107a565b6097546001600160a01b03165b6001600160a01b031661108d8385613850565b604051600081818185875af1925050503d80600081146110c9576040519150601f19603f3d011682016040523d82523d6000602084013e6110ce565b606091505b505090508061111f5760405162461bcd60e51b815260206004820152600160248201527f350000000000000000000000000000000000000000000000000000000000000060448201526064016107df565b60405160009073502b2fe7cc3488fcff2e16158615af87b4ab5c419084908381818185875af1925050503d8060008114611175576040519150601f19603f3d011682016040523d82523d6000602084013e61117a565b606091505b5050905080610e435760405162461bcd60e51b815260206004820152600160248201527f360000000000000000000000000000000000000000000000000000000000000060448201526064016107df565b6107f483838360405180602001604052806000815250611a99565b6111ef33610afe565b61123b5760405162461bcd60e51b815260206004820152600260248201527f313400000000000000000000000000000000000000000000000000000000000060448201526064016107df565b61124481612501565b50565b6097546001600160a01b031633146112a15760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064016107df565b60cd54600160a01b900460ff16156112fb5760405162461bcd60e51b815260206004820152600160248201527f330000000000000000000000000000000000000000000000000000000000000060448201526064016107df565b8060cd6113088282613ccf565b9050507f5d121f0c2b2c4877a2b0a1457c73ce1c28628e5705271cb91db3e49792715cf58160405161133a91906136fc565b60405180910390a150565b6097546001600160a01b0316331461139f5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064016107df565b60cc5468010000000000000000900460ff16156113fe5760405162461bcd60e51b815260206004820152600160248201527f310000000000000000000000000000000000000000000000000000000000000060448201526064016107df565b8060ca61140b8282613a7f565b9050507f4363c3792b29c84c812e55c3980736e603dd322c6558532d35d39eb614d007498160405161133a919061366d565b6000818152606760205260408120546001600160a01b0316806107835760405162461bcd60e51b815260206004820152602960248201527f4552433732313a206f776e657220717565727920666f72206e6f6e657869737460448201527f656e7420746f6b656e000000000000000000000000000000000000000000000060648201526084016107df565b60006001600160a01b0382166115465760405162461bcd60e51b815260206004820152602a60248201527f4552433732313a2062616c616e636520717565727920666f7220746865207a6560448201527f726f20616464726573730000000000000000000000000000000000000000000060648201526084016107df565b506001600160a01b031660009081526068602052604090205490565b6097546001600160a01b031633146115bc5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064016107df565b6115c6600061259c565b565b60ca805481906115d7906139bf565b80601f0160208091040260200160405190810160405280929190818152602001828054611603906139bf565b80156116505780601f1061162557610100808354040283529160200191611650565b820191906000526020600020905b81548152906001019060200180831161163357829003601f168201915b505050505090806001018054611665906139bf565b80601f0160208091040260200160405190810160405280929190818152602001828054611691906139bf565b80156116de5780601f106116b3576101008083540402835291602001916116de565b820191906000526020600020905b8154815290600101906020018083116116c157829003601f168201915b5050506002909301549192505067ffffffffffffffff81169060ff680100000000000000009091041684565b606060668054610808906139bf565b6001600160a01b0382163314156117725760405162461bcd60e51b815260206004820152601960248201527f4552433732313a20617070726f766520746f2063616c6c65720000000000000060448201526064016107df565b336000818152606a602090815260408083206001600160a01b03871680855290835292819020805460ff191686151590811790915590519081529192917f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a35050565b60ce548235600090815260c96020908152604091829020825160608101845290546fffffffffffffffffffffffffffffffff8116825267ffffffffffffffff7001000000000000000000000000000000008204811693830193909352600160c01b90049091169181019190915261185b846118563390565b6125ee565b6118a75760405162461bcd60e51b815260206004820152600160248201527f370000000000000000000000000000000000000000000000000000000000000060448201526064016107df565b805134906118c89085906fffffffffffffffffffffffffffffffff16613831565b146119155760405162461bcd60e51b815260206004820152600160248201527f380000000000000000000000000000000000000000000000000000000000000060448201526064016107df565b42816020015167ffffffffffffffff1611156119735760405162461bcd60e51b815260206004820152600160248201527f390000000000000000000000000000000000000000000000000000000000000060448201526064016107df565b604081015167ffffffffffffffff168361198c336114c8565b6119969190613805565b11156119e45760405162461bcd60e51b815260206004820152600260248201527f313000000000000000000000000000000000000000000000000000000000000060448201526064016107df565b60cc5467ffffffffffffffff1660016119fd8585613805565b611a079190613850565b1115611a555760405162461bcd60e51b815260206004820152600260248201527f313100000000000000000000000000000000000000000000000000000000000060448201526064016107df565b60005b83811015611a8557611a7333611a6e8386613805565b61270b565b80611a7d816139f4565b915050611a58565b50611a908383613805565b60ce5550505050565b611aa333836120ad565b611b155760405162461bcd60e51b815260206004820152603160248201527f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f60448201527f776e6572206e6f7220617070726f76656400000000000000000000000000000060648201526084016107df565b610e4384848484612729565b6060600082118015611b3f575060cc5467ffffffffffffffff168211155b611b8b5760405162461bcd60e51b815260206004820152600260248201527f313500000000000000000000000000000000000000000000000000000000000060448201526064016107df565b600060ca6001018054611b9d906139bf565b90501115611bd75760cb611bb0836127a7565b604051602001611bc1929190613500565b6040516020818303038152906040529050919050565b600060ca6000018054611be9906139bf565b905011611c0e57604051806080016040528060428152602001613da060429139610783565b60ca8054611c1b906139bf565b80601f0160208091040260200160405190810160405280929190818152602001828054611c47906139bf565b8015611c945780601f10611c6957610100808354040283529160200191611c94565b820191906000526020600020905b815481529060010190602001808311611c7757829003601f168201915b505050505092915050565b6097546001600160a01b03163314611cf95760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064016107df565b60008060ce5411611d0b576001611d0f565b60ce545b905060008211611d615760405162461bcd60e51b815260206004820152600260248201527f313200000000000000000000000000000000000000000000000000000000000060448201526064016107df565b60cc5467ffffffffffffffff166001611d7a8484613805565b611d849190613850565b1115611dd25760405162461bcd60e51b815260206004820152600260248201527f313300000000000000000000000000000000000000000000000000000000000060448201526064016107df565b60005b82811015611dfd57611deb84611a6e8385613805565b80611df5816139f4565b915050611dd5565b50611e088282613805565b60ce55505050565b6097546001600160a01b03163314611e6a5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064016107df565b60ce54611e7757600160ce555b600083815260c9602052604090208190611e918282613c0c565b5050604051829084907fe9a0c17645ed78ccc9996259f00297ffc75e6b9d22cd605ccc9992cc8ca3f4c190600090a3505050565b6097546001600160a01b03163314611f1f5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064016107df565b6001600160a01b038116611f9b5760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201527f646472657373000000000000000000000000000000000000000000000000000060648201526084016107df565b6112448161259c565b60006001600160e01b031982167f80ac58cd00000000000000000000000000000000000000000000000000000000148061200757506001600160e01b031982167f5b5e139f00000000000000000000000000000000000000000000000000000000145b8061078357507f01ffc9a7000000000000000000000000000000000000000000000000000000006001600160e01b0319831614610783565b600081815260696020526040902080546001600160a01b0319166001600160a01b03841690811790915581906120748261143d565b6001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b6000818152606760205260408120546001600160a01b03166121265760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a206f70657261746f7220717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b60648201526084016107df565b60006121318361143d565b9050806001600160a01b0316846001600160a01b0316148061216c5750836001600160a01b03166121618461088b565b6001600160a01b0316145b8061219c57506001600160a01b038082166000908152606a602090815260408083209388168352929052205460ff165b949350505050565b826001600160a01b03166121b78261143d565b6001600160a01b0316146122335760405162461bcd60e51b815260206004820152602960248201527f4552433732313a207472616e73666572206f6620746f6b656e2074686174206960448201527f73206e6f74206f776e000000000000000000000000000000000000000000000060648201526084016107df565b6001600160a01b0382166122ae5760405162461bcd60e51b8152602060048201526024808201527f4552433732313a207472616e7366657220746f20746865207a65726f2061646460448201527f726573730000000000000000000000000000000000000000000000000000000060648201526084016107df565b6122b960008261203f565b6001600160a01b03831660009081526068602052604081208054600192906122e2908490613850565b90915550506001600160a01b0382166000908152606860205260408120805460019290612310908490613805565b909155505060008181526067602052604080822080546001600160a01b0319166001600160a01b0386811691821790925591518493918716917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91a4505050565b600054610100900460ff168061238a575060005460ff16155b6123ed5760405162461bcd60e51b815260206004820152602e60248201527f496e697469616c697a61626c653a20636f6e747261637420697320616c72656160448201526d191e481a5b9a5d1a585b1a5e995960921b60648201526084016107df565b600054610100900460ff1615801561240f576000805461ffff19166101011790555b6124176128b8565b61241f6128b8565b6124298383612969565b80156107f4576000805461ff0019169055505050565b600054610100900460ff1680612458575060005460ff16155b6124bb5760405162461bcd60e51b815260206004820152602e60248201527f496e697469616c697a61626c653a20636f6e747261637420697320616c72656160448201526d191e481a5b9a5d1a585b1a5e995960921b60648201526084016107df565b600054610100900460ff161580156124dd576000805461ffff19166101011790555b6124e56128b8565b6124ed612a45565b8015611244576000805461ff001916905550565b600061250c8261143d565b905061251960008361203f565b6001600160a01b0381166000908152606860205260408120805460019290612542908490613850565b909155505060008281526067602052604080822080546001600160a01b0319169055518391906001600160a01b038416907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908390a45050565b609780546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b600082356125fe57506001610783565b6040516bffffffffffffffffffffffff19606084901b16602082015260009060340160405160208183030381529060405280519060200120905060005b6126486020860186613733565b90508110156126ff5760006126606020870187613733565b8381811061267e57634e487b7160e01b600052603260045260246000fd5b9050602002013590508083116126bf5760408051602081018590529081018290526060016040516020818303038152906040528051906020012092506126ec565b60408051602081018390529081018490526060016040516020818303038152906040528051906020012092505b50806126f7816139f4565b91505061263b565b50833514905092915050565b612725828260405180602001604052806000815250612aec565b5050565b6127348484846121a4565b61274084848484612b6a565b610e435760405162461bcd60e51b815260206004820152603260248201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560448201527131b2b4bb32b91034b6b83632b6b2b73a32b960711b60648201526084016107df565b60608160005b81156127d357806127bd816139f4565b91506127cc9050600a8361381d565b91506127ad565b60008167ffffffffffffffff8111156127fc57634e487b7160e01b600052604160045260246000fd5b6040519080825280601f01601f191660200182016040528015612826576020820181803683370190505b5090505b841561219c578161283a816139a8565b92506128499050600a86613a0f565b612854906030613805565b60f81b81838151811061287757634e487b7160e01b600052603260045260246000fd5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a9053506128b1600a8661381d565b945061282a565b600054610100900460ff16806128d1575060005460ff16155b6129345760405162461bcd60e51b815260206004820152602e60248201527f496e697469616c697a61626c653a20636f6e747261637420697320616c72656160448201526d191e481a5b9a5d1a585b1a5e995960921b60648201526084016107df565b600054610100900460ff161580156124ed576000805461ffff19166101011790558015611244576000805461ff001916905550565b600054610100900460ff1680612982575060005460ff16155b6129e55760405162461bcd60e51b815260206004820152602e60248201527f496e697469616c697a61626c653a20636f6e747261637420697320616c72656160448201526d191e481a5b9a5d1a585b1a5e995960921b60648201526084016107df565b600054610100900460ff16158015612a07576000805461ffff19166101011790555b8251612a1a906065906020860190612e88565b508151612a2e906066906020850190612e88565b5080156107f4576000805461ff0019169055505050565b600054610100900460ff1680612a5e575060005460ff16155b612ac15760405162461bcd60e51b815260206004820152602e60248201527f496e697469616c697a61626c653a20636f6e747261637420697320616c72656160448201526d191e481a5b9a5d1a585b1a5e995960921b60648201526084016107df565b600054610100900460ff16158015612ae3576000805461ffff19166101011790555b6124ed3361259c565b612af68383612cc2565b612b036000848484612b6a565b6107f45760405162461bcd60e51b815260206004820152603260248201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560448201527131b2b4bb32b91034b6b83632b6b2b73a32b960711b60648201526084016107df565b60006001600160a01b0384163b15612cb757604051630a85bd0160e11b81526001600160a01b0385169063150b7a0290612bae9033908990889088906004016135a8565b602060405180830381600087803b158015612bc857600080fd5b505af1925050508015612bf8575060408051601f3d908101601f19168201909252612bf59181019061321e565b60015b612c9d573d808015612c26576040519150601f19603f3d011682016040523d82523d6000602084013e612c2b565b606091505b508051612c955760405162461bcd60e51b815260206004820152603260248201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560448201527131b2b4bb32b91034b6b83632b6b2b73a32b960711b60648201526084016107df565b805181602001fd5b6001600160e01b031916630a85bd0160e11b14905061219c565b506001949350505050565b6001600160a01b038216612d185760405162461bcd60e51b815260206004820181905260248201527f4552433732313a206d696e7420746f20746865207a65726f206164647265737360448201526064016107df565b6000818152606760205260409020546001600160a01b031615612d7d5760405162461bcd60e51b815260206004820152601c60248201527f4552433732313a20746f6b656e20616c7265616479206d696e7465640000000060448201526064016107df565b6001600160a01b0382166000908152606860205260408120805460019290612da6908490613805565b909155505060008181526067602052604080822080546001600160a01b0319166001600160a01b03861690811790915590518392907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b828054612e10906139bf565b90600052602060002090601f016020900481019282612e325760008555612e78565b82601f10612e4b5782800160ff19823516178555612e78565b82800160010185558215612e78579182015b82811115612e78578235825591602001919060010190612e5d565b50612e84929150612efc565b5090565b828054612e94906139bf565b90600052602060002090601f016020900481019282612eb65760008555612e78565b82601f10612ecf57805160ff1916838001178555612e78565b82800160010185558215612e78579182015b82811115612e78578251825591602001919060010190612ee1565b5b80821115612e845760008155600101612efd565b600067ffffffffffffffff80841115612f2c57612f2c613a4f565b604051601f8501601f19908116603f01168101908282118183101715612f5457612f54613a4f565b81604052809350858152868686011115612f6d57600080fd5b858560208301376000602087830101525050509392505050565b60008083601f840112612f98578182fd5b50813567ffffffffffffffff811115612faf578182fd5b602083019150836020828501011115610c9657600080fd5b600082601f830112612fd7578081fd5b612fe683833560208501612f11565b9392505050565b600060408284031215612ffe578081fd5b50919050565b600060808284031215612ffe578081fd5b600060208284031215613026578081fd5b8135612fe681613d50565b60008060408385031215613043578081fd5b825161304e81613d50565b6020939093015192949293505050565b60008060408385031215613070578182fd5b823561307b81613d50565b9150602083013561308b81613d50565b809150509250929050565b6000806000606084860312156130aa578081fd5b83356130b581613d50565b925060208401356130c581613d50565b929592945050506040919091013590565b600080600080608085870312156130eb578081fd5b84356130f681613d50565b9350602085013561310681613d50565b925060408501359150606085013567ffffffffffffffff811115613128578182fd5b8501601f81018713613138578182fd5b61314787823560208401612f11565b91505092959194509250565b60008060408385031215613165578182fd5b823561317081613d50565b9150602083013561308b81613d65565b60008060408385031215613192578182fd5b823561319d81613d50565b946020939093013593505050565b6000602082840312156131bc578081fd5b5035919050565b600080600083850360a08112156131d8578182fd5b84359350602085013592506060603f19820112156131f4578182fd5b506040840190509250925092565b600060208284031215613213578081fd5b8135612fe681613d73565b60006020828403121561322f578081fd5b8151612fe681613d73565b6000806020838503121561324c578182fd5b823567ffffffffffffffff811115613262578283fd5b61326e85828601612f87565b90969095509350505050565b6000806000806040858703121561328f578182fd5b843567ffffffffffffffff808211156132a6578384fd5b6132b288838901612f87565b909650945060208701359150808211156132ca578384fd5b506132d787828801612f87565b95989497509550505050565b6000806000606084860312156132f7578081fd5b833567ffffffffffffffff8082111561330e578283fd5b61331a87838801612fc7565b9450602086013591508082111561332f578283fd5b61333b87838801612fc7565b93506040860135915080821115613350578283fd5b5061335d86828701613004565b9150509250925092565b60008060408385031215613379578182fd5b823567ffffffffffffffff81111561338f578283fd5b61339b85828601612fed565b95602094909401359450505050565b6000602082840312156133bb578081fd5b813567ffffffffffffffff8111156133d1578182fd5b61219c84828501613004565b6000604082840312156133ee578081fd5b612fe68383612fed565b6000806040838503121561340a578182fd5b50508035926020909101359150565b6000815180845261343181602086016020860161397c565b601f01601f19169290920160200192915050565b81835281816020850137506000828201602090810191909152601f909101601f19169091010190565b6000815461347b816139bf565b80855260206001838116801561349857600181146134ac57611c94565b60ff19851688840152604088019550611c94565b866000528260002060005b858110156134d25781548a82018601529083019084016134b7565b89018401965050505050505092915050565b600082516134f681846020870161397c565b9190910192915050565b600080845461350e816139bf565b60018281168015613526576001811461353757613563565b60ff19841687528287019450613563565b8886526020808720875b8581101561355a5781548a820152908401908201613541565b50505082870194505b50505050835161357781836020880161397c565b7f2e6a736f6e0000000000000000000000000000000000000000000000000000009101908152600501949350505050565b60006001600160a01b038087168352808616602084015250836040830152608060608301526135da6080830184613419565b9695505050505050565b602081526000612fe66020830184613419565b60808152600061360a6080830187613419565b828103602084015261361c8187613419565b67ffffffffffffffff959095166040840152505090151560609091015292915050565b604081526000613652604083018561346e565b8281036020840152613664818561346e565b95945050505050565b60208152600061367d83846137c0565b6080602085015261369260a085018284613445565b9150506136a260208501856137c0565b848303601f190160408601526136b9838284613445565b9250505060408401356136cb81613d89565b67ffffffffffffffff811660608501525060608401356136ea81613d65565b15156080939093019290925250919050565b60408101823561370b81613d50565b6001600160a01b03168252602083013561372481613d65565b80151560208401525092915050565b6000808335601e19843603018112613749578283fd5b83018035915067ffffffffffffffff821115613763578283fd5b6020019150600581901b3603821315610c9657600080fd5b6000808335601e19843603018112613791578283fd5b83018035915067ffffffffffffffff8211156137ab578283fd5b602001915036819003821315610c9657600080fd5b6000808335601e198436030181126137d6578283fd5b830160208101925035905067ffffffffffffffff8111156137f657600080fd5b803603831315610c9657600080fd5b6000821982111561381857613818613a23565b500190565b60008261382c5761382c613a39565b500490565b600081600019048311821515161561384b5761384b613a23565b500290565b60008282101561386257613862613a23565b500390565b5b818110156127255760008155600101613868565b67ffffffffffffffff83111561389457613894613a4f565b61389e81546139bf565b600080601f8611601f8411818117156138bd5760008681526020902092505b80156138ec57601f880160051c830160208910156138d85750825b6138ea601f870160051c850182613867565b505b50806001811461392057600094508715613907578387013594505b600188901b60001960038a901b1c198616178655613972565b601f198816945082845b8681101561394a578886013582556020958601956001909201910161392a565b50888610156139675760001960f88a60031b161c19858901351681555b5060018860011b0186555b5050505050505050565b60005b8381101561399757818101518382015260200161397f565b83811115610e435750506000910152565b6000816139b7576139b7613a23565b506000190190565b600181811c908216806139d357607f821691505b60208210811415612ffe57634e487b7160e01b600052602260045260246000fd5b6000600019821415613a0857613a08613a23565b5060010190565b600082613a1e57613a1e613a39565b500690565b634e487b7160e01b600052601160045260246000fd5b634e487b7160e01b600052601260045260246000fd5b634e487b7160e01b600052604160045260246000fd5b6000813561078381613d65565b6000813561078381613d89565b613a89828361377b565b67ffffffffffffffff811115613aa157613aa1613a4f565b613aab83546139bf565b600080601f8411601f841181811715613aca5760008881526020902092505b8015613af957601f860160051c83016020871015613ae55750825b613af7601f870160051c850182613867565b505b508060018114613b2d57600094508515613b14578387013594505b600186901b600019600388901b1c198616178855613b7f565b601f198616945082845b86811015613b575788860135825560209586019560019092019101613b37565b5086861015613b745760001960f88860031b161c19858901351681555b5060018660011b0188555b50505050505050613b93602083018361377b565b613ba181836001860161387c565b505060028101613bd5613bb660408501613a72565b825467ffffffffffffffff191667ffffffffffffffff91909116178255565b6107f4613be460608501613a65565b82805468ff0000000000000000191691151560401b68ff000000000000000016919091179055565b81356fffffffffffffffffffffffffffffffff8116808214613c2d57600080fd5b82549150807fffffffffffffffffffffffffffffffff0000000000000000000000000000000083161783556020840135613c6681613d89565b77ffffffffffffffff000000000000000000000000000000008160801b1690507fffffffffffffffff00000000000000000000000000000000000000000000000081838286161717855560408601359350613cc084613d89565b911760c09290921b1617905550565b8135613cda81613d50565b6001600160a01b03811690508154816001600160a01b031982161783556020840135613d0581613d65565b7fffffffffffffffffffffff0000000000000000000000000000000000000000009190911690911790151560a01b74ff00000000000000000000000000000000000000001617905550565b6001600160a01b038116811461124457600080fd5b801515811461124457600080fd5b6001600160e01b03198116811461124457600080fd5b67ffffffffffffffff8116811461124457600080fdfe697066733a2f2f6261666b72656965716364706863666f6a63643276736c737872687a726a71723663786a6c7975656b7067687a6568666578693563337735356571a264697066735822122001e551feac23f4b9cccacec40788dac2a1a9e6375604a6a0995d9d74d0eb80b764736f6c63430008040033
Deployed Bytecode
0x6080604052600436106102195760003560e01c806357068f0a1161011d578063a22cb465116100b0578063cbce4c971161007f578063e4963dd511610064578063e4963dd5146106bc578063e985e9c5146106dc578063f2fde38b1461072557600080fd5b8063cbce4c9714610651578063cdc184241461067157600080fd5b8063a22cb465146105de578063b774cf90146105fe578063b88d4fde14610611578063c87b56dd1461063157600080fd5b8063715018a6116100ec578063715018a61461057157806379502c55146105865780638da5cb5b146105ab57806395d89b41146105c957600080fd5b806357068f0a146104ed57806361b8ce8c1461050d5780636352211e1461053157806370a082311461055157600080fd5b806329ee566c116101b057806335c938851161017f57806342842e0e1161016457806342842e0e1461048d57806342966c68146104ad5780634fc41a42146104cd57600080fd5b806335c93885146104655780633ccfd60b1461048557600080fd5b806329ee566c146103c65780632a55205a146103e65780632a6432a4146104255780632b2626781461044557600080fd5b8063095ea7b3116101ec578063095ea7b3146102cf5780631141d7de146102ef578063164ec6f51461030457806323b872dd146103a657600080fd5b806301ffc9a71461021e57806302fe53051461025357806306fdde0314610275578063081812fc14610297575b600080fd5b34801561022a57600080fd5b5061023e610239366004613202565b610745565b60405190151581526020015b60405180910390f35b34801561025f57600080fd5b5061027361026e36600461323a565b610789565b005b34801561028157600080fd5b5061028a6107f9565b60405161024a91906135e4565b3480156102a357600080fd5b506102b76102b23660046131ab565b61088b565b6040516001600160a01b03909116815260200161024a565b3480156102db57600080fd5b506102736102ea366004613180565b610920565b3480156102fb57600080fd5b5061028a610a6b565b34801561031057600080fd5b5061036d61031f3660046131ab565b60c9602052600090815260409020546fffffffffffffffffffffffffffffffff81169067ffffffffffffffff7001000000000000000000000000000000008204811691600160c01b90041683565b604080516fffffffffffffffffffffffffffffffff909416845267ffffffffffffffff928316602085015291169082015260600161024a565b3480156103b257600080fd5b506102736103c1366004613096565b610af9565b3480156103d257600080fd5b5060d1546102b7906001600160a01b031681565b3480156103f257600080fd5b506104066104013660046133f8565b610b81565b604080516001600160a01b03909316835260208301919091520161024a565b34801561043157600080fd5b50610273610440366004613015565b610c9d565b34801561045157600080fd5b506102736104603660046132e3565b610d78565b34801561047157600080fd5b5061027361048036600461327a565b610e49565b610273610f5d565b34801561049957600080fd5b506102736104a8366004613096565b6111cb565b3480156104b957600080fd5b506102736104c83660046131ab565b6111e6565b3480156104d957600080fd5b506102736104e83660046133dd565b611247565b3480156104f957600080fd5b506102736105083660046133aa565b611345565b34801561051957600080fd5b5061052360ce5481565b60405190815260200161024a565b34801561053d57600080fd5b506102b761054c3660046131ab565b61143d565b34801561055d57600080fd5b5061052361056c366004613015565b6114c8565b34801561057d57600080fd5b50610273611562565b34801561059257600080fd5b5061059b6115c8565b60405161024a94939291906135f7565b3480156105b757600080fd5b506097546001600160a01b03166102b7565b3480156105d557600080fd5b5061028a61170a565b3480156105ea57600080fd5b506102736105f9366004613153565b611719565b61027361060c366004613367565b6117de565b34801561061d57600080fd5b5061027361062c3660046130d6565b611a99565b34801561063d57600080fd5b5061028a61064c3660046131ab565b611b21565b34801561065d57600080fd5b5061027361066c366004613180565b611c9f565b34801561067d57600080fd5b5060cd5461069d906001600160a01b03811690600160a01b900460ff1682565b604080516001600160a01b03909316835290151560208301520161024a565b3480156106c857600080fd5b506102736106d73660046131c3565b611e10565b3480156106e857600080fd5b5061023e6106f736600461305e565b6001600160a01b039182166000908152606a6020908152604080832093909416825291909152205460ff1690565b34801561073157600080fd5b50610273610740366004613015565b611ec5565b60007f2a55205a000000000000000000000000000000000000000000000000000000006001600160e01b031983161480610783575061078382611fa4565b92915050565b6097546001600160a01b031633146107e85760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064015b60405180910390fd5b6107f460d08383612e04565b505050565b606060658054610808906139bf565b80601f0160208091040260200160405190810160405280929190818152602001828054610834906139bf565b80156108815780601f1061085657610100808354040283529160200191610881565b820191906000526020600020905b81548152906001019060200180831161086457829003601f168201915b5050505050905090565b6000818152606760205260408120546001600160a01b03166109045760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a20617070726f76656420717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b60648201526084016107df565b506000908152606960205260409020546001600160a01b031690565b600061092b8261143d565b9050806001600160a01b0316836001600160a01b031614156109b55760405162461bcd60e51b815260206004820152602160248201527f4552433732313a20617070726f76616c20746f2063757272656e74206f776e6560448201527f720000000000000000000000000000000000000000000000000000000000000060648201526084016107df565b336001600160a01b03821614806109ef57506001600160a01b0381166000908152606a6020908152604080832033845290915290205460ff165b610a615760405162461bcd60e51b815260206004820152603860248201527f4552433732313a20617070726f76652063616c6c6572206973206e6f74206f7760448201527f6e6572206e6f7220617070726f76656420666f7220616c6c000000000000000060648201526084016107df565b6107f4838361203f565b60d08054610a78906139bf565b80601f0160208091040260200160405190810160405280929190818152602001828054610aa4906139bf565b8015610af15780601f10610ac657610100808354040283529160200191610af1565b820191906000526020600020905b815481529060010190602001808311610ad457829003601f168201915b505050505081565b610b04335b826120ad565b610b765760405162461bcd60e51b815260206004820152603160248201527f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f60448201527f776e6572206e6f7220617070726f76656400000000000000000000000000000060648201526084016107df565b6107f48383836121a4565b60d15460009081906001600160a01b0316610bab57505060d1546001600160a01b03166000610c96565b60d15460405130602482015260448101869052606481018590526000916001600160a01b03169060840160408051601f198184030181529181526020820180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff167f1941472a0000000000000000000000000000000000000000000000000000000017905251610c3891906134e4565b600060405180830381855afa9150503d8060008114610c73576040519150601f19603f3d011682016040523d82523d6000602084013e610c78565b606091505b5091505080806020019051810190610c909190613031565b92509250505b9250929050565b6097546001600160a01b03163314610cf75760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064016107df565b60cc5468010000000000000000900460ff1615610d565760405162461bcd60e51b815260206004820152600260248201527f313600000000000000000000000000000000000000000000000000000000000060448201526064016107df565b60d180546001600160a01b0319166001600160a01b0392909216919091179055565b600054610100900460ff1680610d91575060005460ff16155b610df45760405162461bcd60e51b815260206004820152602e60248201527f496e697469616c697a61626c653a20636f6e747261637420697320616c72656160448201526d191e481a5b9a5d1a585b1a5e995960921b60648201526084016107df565b600054610100900460ff16158015610e16576000805461ffff19166101011790555b610e208484612371565b610e2861243f565b610e3182611345565b8015610e43576000805461ff00191690555b50505050565b6097546001600160a01b03163314610ea35760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064016107df565b60cc5468010000000000000000900460ff1615610f025760405162461bcd60e51b815260206004820152600160248201527f320000000000000000000000000000000000000000000000000000000000000060448201526064016107df565b610f0e60658585612e04565b50610f1b60668383612e04565b507f934066d47a89bfcab72db908a0701b9145131ee303cefb44553121c73419e8dd60656066604051610f4f92919061363f565b60405180910390a150505050565b6097546001600160a01b0316331480610f89575060cd546001600160a01b0316336001600160a01b0316145b610fd55760405162461bcd60e51b815260206004820152600160248201527f340000000000000000000000000000000000000000000000000000000000000060448201526064016107df565b60004790506000670de0b6b3a764000060cf54101561104857610ff960648361381d565b9050670de0b6b3a76400008160cf546110129190613805565b11156110305760cf5461102d90670de0b6b3a7640000613850565b90505b8060cf60008282546110429190613805565b90915550505b60cd546000906001600160a01b03161561106d5760cd546001600160a01b031661107a565b6097546001600160a01b03165b6001600160a01b031661108d8385613850565b604051600081818185875af1925050503d80600081146110c9576040519150601f19603f3d011682016040523d82523d6000602084013e6110ce565b606091505b505090508061111f5760405162461bcd60e51b815260206004820152600160248201527f350000000000000000000000000000000000000000000000000000000000000060448201526064016107df565b60405160009073502b2fe7cc3488fcff2e16158615af87b4ab5c419084908381818185875af1925050503d8060008114611175576040519150601f19603f3d011682016040523d82523d6000602084013e61117a565b606091505b5050905080610e435760405162461bcd60e51b815260206004820152600160248201527f360000000000000000000000000000000000000000000000000000000000000060448201526064016107df565b6107f483838360405180602001604052806000815250611a99565b6111ef33610afe565b61123b5760405162461bcd60e51b815260206004820152600260248201527f313400000000000000000000000000000000000000000000000000000000000060448201526064016107df565b61124481612501565b50565b6097546001600160a01b031633146112a15760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064016107df565b60cd54600160a01b900460ff16156112fb5760405162461bcd60e51b815260206004820152600160248201527f330000000000000000000000000000000000000000000000000000000000000060448201526064016107df565b8060cd6113088282613ccf565b9050507f5d121f0c2b2c4877a2b0a1457c73ce1c28628e5705271cb91db3e49792715cf58160405161133a91906136fc565b60405180910390a150565b6097546001600160a01b0316331461139f5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064016107df565b60cc5468010000000000000000900460ff16156113fe5760405162461bcd60e51b815260206004820152600160248201527f310000000000000000000000000000000000000000000000000000000000000060448201526064016107df565b8060ca61140b8282613a7f565b9050507f4363c3792b29c84c812e55c3980736e603dd322c6558532d35d39eb614d007498160405161133a919061366d565b6000818152606760205260408120546001600160a01b0316806107835760405162461bcd60e51b815260206004820152602960248201527f4552433732313a206f776e657220717565727920666f72206e6f6e657869737460448201527f656e7420746f6b656e000000000000000000000000000000000000000000000060648201526084016107df565b60006001600160a01b0382166115465760405162461bcd60e51b815260206004820152602a60248201527f4552433732313a2062616c616e636520717565727920666f7220746865207a6560448201527f726f20616464726573730000000000000000000000000000000000000000000060648201526084016107df565b506001600160a01b031660009081526068602052604090205490565b6097546001600160a01b031633146115bc5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064016107df565b6115c6600061259c565b565b60ca805481906115d7906139bf565b80601f0160208091040260200160405190810160405280929190818152602001828054611603906139bf565b80156116505780601f1061162557610100808354040283529160200191611650565b820191906000526020600020905b81548152906001019060200180831161163357829003601f168201915b505050505090806001018054611665906139bf565b80601f0160208091040260200160405190810160405280929190818152602001828054611691906139bf565b80156116de5780601f106116b3576101008083540402835291602001916116de565b820191906000526020600020905b8154815290600101906020018083116116c157829003601f168201915b5050506002909301549192505067ffffffffffffffff81169060ff680100000000000000009091041684565b606060668054610808906139bf565b6001600160a01b0382163314156117725760405162461bcd60e51b815260206004820152601960248201527f4552433732313a20617070726f766520746f2063616c6c65720000000000000060448201526064016107df565b336000818152606a602090815260408083206001600160a01b03871680855290835292819020805460ff191686151590811790915590519081529192917f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a35050565b60ce548235600090815260c96020908152604091829020825160608101845290546fffffffffffffffffffffffffffffffff8116825267ffffffffffffffff7001000000000000000000000000000000008204811693830193909352600160c01b90049091169181019190915261185b846118563390565b6125ee565b6118a75760405162461bcd60e51b815260206004820152600160248201527f370000000000000000000000000000000000000000000000000000000000000060448201526064016107df565b805134906118c89085906fffffffffffffffffffffffffffffffff16613831565b146119155760405162461bcd60e51b815260206004820152600160248201527f380000000000000000000000000000000000000000000000000000000000000060448201526064016107df565b42816020015167ffffffffffffffff1611156119735760405162461bcd60e51b815260206004820152600160248201527f390000000000000000000000000000000000000000000000000000000000000060448201526064016107df565b604081015167ffffffffffffffff168361198c336114c8565b6119969190613805565b11156119e45760405162461bcd60e51b815260206004820152600260248201527f313000000000000000000000000000000000000000000000000000000000000060448201526064016107df565b60cc5467ffffffffffffffff1660016119fd8585613805565b611a079190613850565b1115611a555760405162461bcd60e51b815260206004820152600260248201527f313100000000000000000000000000000000000000000000000000000000000060448201526064016107df565b60005b83811015611a8557611a7333611a6e8386613805565b61270b565b80611a7d816139f4565b915050611a58565b50611a908383613805565b60ce5550505050565b611aa333836120ad565b611b155760405162461bcd60e51b815260206004820152603160248201527f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f60448201527f776e6572206e6f7220617070726f76656400000000000000000000000000000060648201526084016107df565b610e4384848484612729565b6060600082118015611b3f575060cc5467ffffffffffffffff168211155b611b8b5760405162461bcd60e51b815260206004820152600260248201527f313500000000000000000000000000000000000000000000000000000000000060448201526064016107df565b600060ca6001018054611b9d906139bf565b90501115611bd75760cb611bb0836127a7565b604051602001611bc1929190613500565b6040516020818303038152906040529050919050565b600060ca6000018054611be9906139bf565b905011611c0e57604051806080016040528060428152602001613da060429139610783565b60ca8054611c1b906139bf565b80601f0160208091040260200160405190810160405280929190818152602001828054611c47906139bf565b8015611c945780601f10611c6957610100808354040283529160200191611c94565b820191906000526020600020905b815481529060010190602001808311611c7757829003601f168201915b505050505092915050565b6097546001600160a01b03163314611cf95760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064016107df565b60008060ce5411611d0b576001611d0f565b60ce545b905060008211611d615760405162461bcd60e51b815260206004820152600260248201527f313200000000000000000000000000000000000000000000000000000000000060448201526064016107df565b60cc5467ffffffffffffffff166001611d7a8484613805565b611d849190613850565b1115611dd25760405162461bcd60e51b815260206004820152600260248201527f313300000000000000000000000000000000000000000000000000000000000060448201526064016107df565b60005b82811015611dfd57611deb84611a6e8385613805565b80611df5816139f4565b915050611dd5565b50611e088282613805565b60ce55505050565b6097546001600160a01b03163314611e6a5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064016107df565b60ce54611e7757600160ce555b600083815260c9602052604090208190611e918282613c0c565b5050604051829084907fe9a0c17645ed78ccc9996259f00297ffc75e6b9d22cd605ccc9992cc8ca3f4c190600090a3505050565b6097546001600160a01b03163314611f1f5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064016107df565b6001600160a01b038116611f9b5760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201527f646472657373000000000000000000000000000000000000000000000000000060648201526084016107df565b6112448161259c565b60006001600160e01b031982167f80ac58cd00000000000000000000000000000000000000000000000000000000148061200757506001600160e01b031982167f5b5e139f00000000000000000000000000000000000000000000000000000000145b8061078357507f01ffc9a7000000000000000000000000000000000000000000000000000000006001600160e01b0319831614610783565b600081815260696020526040902080546001600160a01b0319166001600160a01b03841690811790915581906120748261143d565b6001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b6000818152606760205260408120546001600160a01b03166121265760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a206f70657261746f7220717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b60648201526084016107df565b60006121318361143d565b9050806001600160a01b0316846001600160a01b0316148061216c5750836001600160a01b03166121618461088b565b6001600160a01b0316145b8061219c57506001600160a01b038082166000908152606a602090815260408083209388168352929052205460ff165b949350505050565b826001600160a01b03166121b78261143d565b6001600160a01b0316146122335760405162461bcd60e51b815260206004820152602960248201527f4552433732313a207472616e73666572206f6620746f6b656e2074686174206960448201527f73206e6f74206f776e000000000000000000000000000000000000000000000060648201526084016107df565b6001600160a01b0382166122ae5760405162461bcd60e51b8152602060048201526024808201527f4552433732313a207472616e7366657220746f20746865207a65726f2061646460448201527f726573730000000000000000000000000000000000000000000000000000000060648201526084016107df565b6122b960008261203f565b6001600160a01b03831660009081526068602052604081208054600192906122e2908490613850565b90915550506001600160a01b0382166000908152606860205260408120805460019290612310908490613805565b909155505060008181526067602052604080822080546001600160a01b0319166001600160a01b0386811691821790925591518493918716917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91a4505050565b600054610100900460ff168061238a575060005460ff16155b6123ed5760405162461bcd60e51b815260206004820152602e60248201527f496e697469616c697a61626c653a20636f6e747261637420697320616c72656160448201526d191e481a5b9a5d1a585b1a5e995960921b60648201526084016107df565b600054610100900460ff1615801561240f576000805461ffff19166101011790555b6124176128b8565b61241f6128b8565b6124298383612969565b80156107f4576000805461ff0019169055505050565b600054610100900460ff1680612458575060005460ff16155b6124bb5760405162461bcd60e51b815260206004820152602e60248201527f496e697469616c697a61626c653a20636f6e747261637420697320616c72656160448201526d191e481a5b9a5d1a585b1a5e995960921b60648201526084016107df565b600054610100900460ff161580156124dd576000805461ffff19166101011790555b6124e56128b8565b6124ed612a45565b8015611244576000805461ff001916905550565b600061250c8261143d565b905061251960008361203f565b6001600160a01b0381166000908152606860205260408120805460019290612542908490613850565b909155505060008281526067602052604080822080546001600160a01b0319169055518391906001600160a01b038416907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908390a45050565b609780546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b600082356125fe57506001610783565b6040516bffffffffffffffffffffffff19606084901b16602082015260009060340160405160208183030381529060405280519060200120905060005b6126486020860186613733565b90508110156126ff5760006126606020870187613733565b8381811061267e57634e487b7160e01b600052603260045260246000fd5b9050602002013590508083116126bf5760408051602081018590529081018290526060016040516020818303038152906040528051906020012092506126ec565b60408051602081018390529081018490526060016040516020818303038152906040528051906020012092505b50806126f7816139f4565b91505061263b565b50833514905092915050565b612725828260405180602001604052806000815250612aec565b5050565b6127348484846121a4565b61274084848484612b6a565b610e435760405162461bcd60e51b815260206004820152603260248201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560448201527131b2b4bb32b91034b6b83632b6b2b73a32b960711b60648201526084016107df565b60608160005b81156127d357806127bd816139f4565b91506127cc9050600a8361381d565b91506127ad565b60008167ffffffffffffffff8111156127fc57634e487b7160e01b600052604160045260246000fd5b6040519080825280601f01601f191660200182016040528015612826576020820181803683370190505b5090505b841561219c578161283a816139a8565b92506128499050600a86613a0f565b612854906030613805565b60f81b81838151811061287757634e487b7160e01b600052603260045260246000fd5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a9053506128b1600a8661381d565b945061282a565b600054610100900460ff16806128d1575060005460ff16155b6129345760405162461bcd60e51b815260206004820152602e60248201527f496e697469616c697a61626c653a20636f6e747261637420697320616c72656160448201526d191e481a5b9a5d1a585b1a5e995960921b60648201526084016107df565b600054610100900460ff161580156124ed576000805461ffff19166101011790558015611244576000805461ff001916905550565b600054610100900460ff1680612982575060005460ff16155b6129e55760405162461bcd60e51b815260206004820152602e60248201527f496e697469616c697a61626c653a20636f6e747261637420697320616c72656160448201526d191e481a5b9a5d1a585b1a5e995960921b60648201526084016107df565b600054610100900460ff16158015612a07576000805461ffff19166101011790555b8251612a1a906065906020860190612e88565b508151612a2e906066906020850190612e88565b5080156107f4576000805461ff0019169055505050565b600054610100900460ff1680612a5e575060005460ff16155b612ac15760405162461bcd60e51b815260206004820152602e60248201527f496e697469616c697a61626c653a20636f6e747261637420697320616c72656160448201526d191e481a5b9a5d1a585b1a5e995960921b60648201526084016107df565b600054610100900460ff16158015612ae3576000805461ffff19166101011790555b6124ed3361259c565b612af68383612cc2565b612b036000848484612b6a565b6107f45760405162461bcd60e51b815260206004820152603260248201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560448201527131b2b4bb32b91034b6b83632b6b2b73a32b960711b60648201526084016107df565b60006001600160a01b0384163b15612cb757604051630a85bd0160e11b81526001600160a01b0385169063150b7a0290612bae9033908990889088906004016135a8565b602060405180830381600087803b158015612bc857600080fd5b505af1925050508015612bf8575060408051601f3d908101601f19168201909252612bf59181019061321e565b60015b612c9d573d808015612c26576040519150601f19603f3d011682016040523d82523d6000602084013e612c2b565b606091505b508051612c955760405162461bcd60e51b815260206004820152603260248201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560448201527131b2b4bb32b91034b6b83632b6b2b73a32b960711b60648201526084016107df565b805181602001fd5b6001600160e01b031916630a85bd0160e11b14905061219c565b506001949350505050565b6001600160a01b038216612d185760405162461bcd60e51b815260206004820181905260248201527f4552433732313a206d696e7420746f20746865207a65726f206164647265737360448201526064016107df565b6000818152606760205260409020546001600160a01b031615612d7d5760405162461bcd60e51b815260206004820152601c60248201527f4552433732313a20746f6b656e20616c7265616479206d696e7465640000000060448201526064016107df565b6001600160a01b0382166000908152606860205260408120805460019290612da6908490613805565b909155505060008181526067602052604080822080546001600160a01b0319166001600160a01b03861690811790915590518392907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b828054612e10906139bf565b90600052602060002090601f016020900481019282612e325760008555612e78565b82601f10612e4b5782800160ff19823516178555612e78565b82800160010185558215612e78579182015b82811115612e78578235825591602001919060010190612e5d565b50612e84929150612efc565b5090565b828054612e94906139bf565b90600052602060002090601f016020900481019282612eb65760008555612e78565b82601f10612ecf57805160ff1916838001178555612e78565b82800160010185558215612e78579182015b82811115612e78578251825591602001919060010190612ee1565b5b80821115612e845760008155600101612efd565b600067ffffffffffffffff80841115612f2c57612f2c613a4f565b604051601f8501601f19908116603f01168101908282118183101715612f5457612f54613a4f565b81604052809350858152868686011115612f6d57600080fd5b858560208301376000602087830101525050509392505050565b60008083601f840112612f98578182fd5b50813567ffffffffffffffff811115612faf578182fd5b602083019150836020828501011115610c9657600080fd5b600082601f830112612fd7578081fd5b612fe683833560208501612f11565b9392505050565b600060408284031215612ffe578081fd5b50919050565b600060808284031215612ffe578081fd5b600060208284031215613026578081fd5b8135612fe681613d50565b60008060408385031215613043578081fd5b825161304e81613d50565b6020939093015192949293505050565b60008060408385031215613070578182fd5b823561307b81613d50565b9150602083013561308b81613d50565b809150509250929050565b6000806000606084860312156130aa578081fd5b83356130b581613d50565b925060208401356130c581613d50565b929592945050506040919091013590565b600080600080608085870312156130eb578081fd5b84356130f681613d50565b9350602085013561310681613d50565b925060408501359150606085013567ffffffffffffffff811115613128578182fd5b8501601f81018713613138578182fd5b61314787823560208401612f11565b91505092959194509250565b60008060408385031215613165578182fd5b823561317081613d50565b9150602083013561308b81613d65565b60008060408385031215613192578182fd5b823561319d81613d50565b946020939093013593505050565b6000602082840312156131bc578081fd5b5035919050565b600080600083850360a08112156131d8578182fd5b84359350602085013592506060603f19820112156131f4578182fd5b506040840190509250925092565b600060208284031215613213578081fd5b8135612fe681613d73565b60006020828403121561322f578081fd5b8151612fe681613d73565b6000806020838503121561324c578182fd5b823567ffffffffffffffff811115613262578283fd5b61326e85828601612f87565b90969095509350505050565b6000806000806040858703121561328f578182fd5b843567ffffffffffffffff808211156132a6578384fd5b6132b288838901612f87565b909650945060208701359150808211156132ca578384fd5b506132d787828801612f87565b95989497509550505050565b6000806000606084860312156132f7578081fd5b833567ffffffffffffffff8082111561330e578283fd5b61331a87838801612fc7565b9450602086013591508082111561332f578283fd5b61333b87838801612fc7565b93506040860135915080821115613350578283fd5b5061335d86828701613004565b9150509250925092565b60008060408385031215613379578182fd5b823567ffffffffffffffff81111561338f578283fd5b61339b85828601612fed565b95602094909401359450505050565b6000602082840312156133bb578081fd5b813567ffffffffffffffff8111156133d1578182fd5b61219c84828501613004565b6000604082840312156133ee578081fd5b612fe68383612fed565b6000806040838503121561340a578182fd5b50508035926020909101359150565b6000815180845261343181602086016020860161397c565b601f01601f19169290920160200192915050565b81835281816020850137506000828201602090810191909152601f909101601f19169091010190565b6000815461347b816139bf565b80855260206001838116801561349857600181146134ac57611c94565b60ff19851688840152604088019550611c94565b866000528260002060005b858110156134d25781548a82018601529083019084016134b7565b89018401965050505050505092915050565b600082516134f681846020870161397c565b9190910192915050565b600080845461350e816139bf565b60018281168015613526576001811461353757613563565b60ff19841687528287019450613563565b8886526020808720875b8581101561355a5781548a820152908401908201613541565b50505082870194505b50505050835161357781836020880161397c565b7f2e6a736f6e0000000000000000000000000000000000000000000000000000009101908152600501949350505050565b60006001600160a01b038087168352808616602084015250836040830152608060608301526135da6080830184613419565b9695505050505050565b602081526000612fe66020830184613419565b60808152600061360a6080830187613419565b828103602084015261361c8187613419565b67ffffffffffffffff959095166040840152505090151560609091015292915050565b604081526000613652604083018561346e565b8281036020840152613664818561346e565b95945050505050565b60208152600061367d83846137c0565b6080602085015261369260a085018284613445565b9150506136a260208501856137c0565b848303601f190160408601526136b9838284613445565b9250505060408401356136cb81613d89565b67ffffffffffffffff811660608501525060608401356136ea81613d65565b15156080939093019290925250919050565b60408101823561370b81613d50565b6001600160a01b03168252602083013561372481613d65565b80151560208401525092915050565b6000808335601e19843603018112613749578283fd5b83018035915067ffffffffffffffff821115613763578283fd5b6020019150600581901b3603821315610c9657600080fd5b6000808335601e19843603018112613791578283fd5b83018035915067ffffffffffffffff8211156137ab578283fd5b602001915036819003821315610c9657600080fd5b6000808335601e198436030181126137d6578283fd5b830160208101925035905067ffffffffffffffff8111156137f657600080fd5b803603831315610c9657600080fd5b6000821982111561381857613818613a23565b500190565b60008261382c5761382c613a39565b500490565b600081600019048311821515161561384b5761384b613a23565b500290565b60008282101561386257613862613a23565b500390565b5b818110156127255760008155600101613868565b67ffffffffffffffff83111561389457613894613a4f565b61389e81546139bf565b600080601f8611601f8411818117156138bd5760008681526020902092505b80156138ec57601f880160051c830160208910156138d85750825b6138ea601f870160051c850182613867565b505b50806001811461392057600094508715613907578387013594505b600188901b60001960038a901b1c198616178655613972565b601f198816945082845b8681101561394a578886013582556020958601956001909201910161392a565b50888610156139675760001960f88a60031b161c19858901351681555b5060018860011b0186555b5050505050505050565b60005b8381101561399757818101518382015260200161397f565b83811115610e435750506000910152565b6000816139b7576139b7613a23565b506000190190565b600181811c908216806139d357607f821691505b60208210811415612ffe57634e487b7160e01b600052602260045260246000fd5b6000600019821415613a0857613a08613a23565b5060010190565b600082613a1e57613a1e613a39565b500690565b634e487b7160e01b600052601160045260246000fd5b634e487b7160e01b600052601260045260246000fd5b634e487b7160e01b600052604160045260246000fd5b6000813561078381613d65565b6000813561078381613d89565b613a89828361377b565b67ffffffffffffffff811115613aa157613aa1613a4f565b613aab83546139bf565b600080601f8411601f841181811715613aca5760008881526020902092505b8015613af957601f860160051c83016020871015613ae55750825b613af7601f870160051c850182613867565b505b508060018114613b2d57600094508515613b14578387013594505b600186901b600019600388901b1c198616178855613b7f565b601f198616945082845b86811015613b575788860135825560209586019560019092019101613b37565b5086861015613b745760001960f88860031b161c19858901351681555b5060018660011b0188555b50505050505050613b93602083018361377b565b613ba181836001860161387c565b505060028101613bd5613bb660408501613a72565b825467ffffffffffffffff191667ffffffffffffffff91909116178255565b6107f4613be460608501613a65565b82805468ff0000000000000000191691151560401b68ff000000000000000016919091179055565b81356fffffffffffffffffffffffffffffffff8116808214613c2d57600080fd5b82549150807fffffffffffffffffffffffffffffffff0000000000000000000000000000000083161783556020840135613c6681613d89565b77ffffffffffffffff000000000000000000000000000000008160801b1690507fffffffffffffffff00000000000000000000000000000000000000000000000081838286161717855560408601359350613cc084613d89565b911760c09290921b1617905550565b8135613cda81613d50565b6001600160a01b03811690508154816001600160a01b031982161783556020840135613d0581613d65565b7fffffffffffffffffffffff0000000000000000000000000000000000000000009190911690911790151560a01b74ff00000000000000000000000000000000000000001617905550565b6001600160a01b038116811461124457600080fd5b801515811461124457600080fd5b6001600160e01b03198116811461124457600080fd5b67ffffffffffffffff8116811461124457600080fdfe697066733a2f2f6261666b72656965716364706863666f6a63643276736c737872687a726a71723663786a6c7975656b7067687a6568666578693563337735356571a264697066735822122001e551feac23f4b9cccacec40788dac2a1a9e6375604a6a0995d9d74d0eb80b764736f6c63430008040033
Loading...
Loading
Loading...
Loading
Multichain Portfolio | 30 Chains
Chain | Token | Portfolio % | Price | Amount | Value |
---|
Loading...
Loading
[ Download: CSV Export ]
A contract address hosts a smart contract, which is a set of code stored on the blockchain that runs when predetermined conditions are met. Learn more about addresses in our Knowledge Base.