Overview
ETH Balance
0 ETH
Eth Value
$0.00More Info
Private Name Tags
ContractCreator
Latest 25 from a total of 334 transactions
Transaction Hash |
Method
|
Block
|
From
|
To
|
|||||
---|---|---|---|---|---|---|---|---|---|
Genesis | 19200955 | 289 days ago | IN | 0 ETH | 0.00910934 | ||||
Genesis | 18142746 | 438 days ago | IN | 0 ETH | 0.00458451 | ||||
Genesis | 18037519 | 453 days ago | IN | 0 ETH | 0.00526294 | ||||
Add Collection | 18017673 | 455 days ago | IN | 0 ETH | 0.00056322 | ||||
Add Collection | 18017137 | 455 days ago | IN | 0 ETH | 0.00064938 | ||||
Add Collection | 18017130 | 455 days ago | IN | 0 ETH | 0.00065006 | ||||
Genesis | 18008417 | 457 days ago | IN | 0 ETH | 0.004079 | ||||
Genesis | 18008403 | 457 days ago | IN | 0 ETH | 0.00403938 | ||||
Genesis | 17501152 | 528 days ago | IN | 0 ETH | 0.00325542 | ||||
Genesis | 17438462 | 537 days ago | IN | 0 ETH | 0.01108138 | ||||
Genesis | 17220118 | 567 days ago | IN | 0 ETH | 0.02752169 | ||||
Genesis | 17215040 | 568 days ago | IN | 0 ETH | 0.03587592 | ||||
Genesis | 17197726 | 570 days ago | IN | 0 ETH | 0.053129 | ||||
Genesis | 17103501 | 584 days ago | IN | 0 ETH | 0.0105557 | ||||
Genesis | 17095199 | 585 days ago | IN | 0 ETH | 0.00637392 | ||||
Genesis | 17053750 | 591 days ago | IN | 0 ETH | 0.00814574 | ||||
Genesis | 17037860 | 593 days ago | IN | 0 ETH | 0.01056148 | ||||
Genesis | 17021471 | 595 days ago | IN | 0 ETH | 0.00570485 | ||||
Genesis | 17018306 | 596 days ago | IN | 0 ETH | 0.00746267 | ||||
Genesis | 17002241 | 598 days ago | IN | 0 ETH | 0.00693503 | ||||
Add Collection | 16967695 | 603 days ago | IN | 0 ETH | 0.00066103 | ||||
Genesis | 16913302 | 611 days ago | IN | 0 ETH | 0.00569671 | ||||
Add Collection | 16912074 | 611 days ago | IN | 0 ETH | 0.00078787 | ||||
Add Collection | 16864823 | 617 days ago | IN | 0 ETH | 0.00062311 | ||||
Genesis | 16863272 | 618 days ago | IN | 0 ETH | 0.00681944 |
Latest 25 internal transactions (View All)
Advanced mode:
Loading...
Loading
Contract Name:
Factory
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 pragma solidity ^0.8.4; //import 'hardhat/console.sol'; import "@openzeppelin/contracts-upgradeable/proxy/ClonesUpgradeable.sol"; import "@openzeppelin/contracts-upgradeable/access/OwnableUpgradeable.sol"; import "./F0.sol"; contract Factory is OwnableUpgradeable { event CollectionAdded(address indexed sender, address indexed receiver, address collection); address public immutable implementation; constructor() { implementation = address(new F0()); __Ownable_init(); } /******************************************************************************** * * Create a collection with "name", "symbol" and "config", * and send it to "_receiver" * ********************************************************************************/ function genesis(address _receiver, string memory name, string memory symbol, F0.Config calldata config) external payable returns (address) { address clone = ClonesUpgradeable.clone(implementation); F0 token = F0(clone); token.initialize(name, symbol, config); token.transferOwnership(_receiver); if (msg.value > 0) { (bool sent, ) = payable(_receiver).call{value: msg.value}(""); require(sent, "1"); } emit CollectionAdded(_msgSender(), _receiver, clone); return clone; } /******************************************************************************** * * Pin collection to home page * only can be called by the collection owner * * when transferring ownership, the following needs to happen in this exact order: * 1. factory.addCollection() should be called first, * 2. call token.transferOwnership() called next * * Because once the ownership is transferred, only the owner can add to dashboard * * If the sender forgets to call factory.addCollection(), * the receiver needs to go to the collection page and call addCollection() * themselves to add to their dashboard * ********************************************************************************/ function addCollection(address _receiver, address _collection) external { F0 token = F0(_collection); address _collectionOwner = token.owner(); require(_msgSender() == _collectionOwner, "2"); emit CollectionAdded(_msgSender(), _receiver, _collection); } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; /** * @dev https://eips.ethereum.org/EIPS/eip-1167[EIP 1167] is a standard for * deploying minimal proxy contracts, also known as "clones". * * > To simply and cheaply clone contract functionality in an immutable way, this standard specifies * > a minimal bytecode implementation that delegates all calls to a known, fixed address. * * The library includes functions to deploy a proxy using either `create` (traditional deployment) or `create2` * (salted deterministic deployment). It also includes functions to predict the addresses of clones deployed using the * deterministic method. * * _Available since v3.4._ */ library ClonesUpgradeable { /** * @dev Deploys and returns the address of a clone that mimics the behaviour of `implementation`. * * This function uses the create opcode, which should never revert. */ function clone(address implementation) internal returns (address instance) { assembly { let ptr := mload(0x40) mstore(ptr, 0x3d602d80600a3d3981f3363d3d373d3d3d363d73000000000000000000000000) mstore(add(ptr, 0x14), shl(0x60, implementation)) mstore(add(ptr, 0x28), 0x5af43d82803e903d91602b57fd5bf30000000000000000000000000000000000) instance := create(0, ptr, 0x37) } require(instance != address(0), "ERC1167: create failed"); } /** * @dev Deploys and returns the address of a clone that mimics the behaviour of `implementation`. * * This function uses the create2 opcode and a `salt` to deterministically deploy * the clone. Using the same `implementation` and `salt` multiple time will revert, since * the clones cannot be deployed twice at the same address. */ function cloneDeterministic(address implementation, bytes32 salt) internal returns (address instance) { assembly { let ptr := mload(0x40) mstore(ptr, 0x3d602d80600a3d3981f3363d3d373d3d3d363d73000000000000000000000000) mstore(add(ptr, 0x14), shl(0x60, implementation)) mstore(add(ptr, 0x28), 0x5af43d82803e903d91602b57fd5bf30000000000000000000000000000000000) instance := create2(0, ptr, 0x37, salt) } require(instance != address(0), "ERC1167: create2 failed"); } /** * @dev Computes the address of a clone deployed using {Clones-cloneDeterministic}. */ function predictDeterministicAddress( address implementation, bytes32 salt, address deployer ) internal pure returns (address predicted) { assembly { let ptr := mload(0x40) mstore(ptr, 0x3d602d80600a3d3981f3363d3d373d3d3d363d73000000000000000000000000) mstore(add(ptr, 0x14), shl(0x60, implementation)) mstore(add(ptr, 0x28), 0x5af43d82803e903d91602b57fd5bf3ff00000000000000000000000000000000) mstore(add(ptr, 0x38), shl(0x60, deployer)) mstore(add(ptr, 0x4c), salt) mstore(add(ptr, 0x6c), keccak256(ptr, 0x37)) predicted := keccak256(add(ptr, 0x37), 0x55) } } /** * @dev Computes the address of a clone deployed using {Clones-cloneDeterministic}. */ function predictDeterministicAddress(address implementation, bytes32 salt) internal view returns (address predicted) { return predictDeterministicAddress(implementation, salt, address(this)); } }
// 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: 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; } struct Invitelist { bytes32 key; bytes32 cid; Invite invite; } /********************************************************** * * VARIABLES * **********************************************************/ mapping (bytes32 => Invite) public invite; Config public config; Withdrawer public withdrawer; uint public nextId; uint private feeUsed; string public URI; address public royalty; mapping (address => mapping(bytes32 => uint)) private minted; /********************************************************** * * 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 setInvites(Invitelist[] calldata invitelist) external onlyOwner { if (nextId==0) nextId = 1; // delay nextId setting until the first invite is made. for(uint i=0; i<invitelist.length; i++) { Invitelist calldata list = invitelist[i]; invite[list.key] = list.invite; emit Invited(list.key, list.cid); } } 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(minted[_msgSender()][auth.key] + _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; minted[_msgSender()][auth.key] += _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 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 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 /*************************************************************************************************** * * 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/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; /** * @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
[{"inputs":[],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"sender","type":"address"},{"indexed":true,"internalType":"address","name":"receiver","type":"address"},{"indexed":false,"internalType":"address","name":"collection","type":"address"}],"name":"CollectionAdded","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"},{"inputs":[{"internalType":"address","name":"_receiver","type":"address"},{"internalType":"address","name":"_collection","type":"address"}],"name":"addCollection","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_receiver","type":"address"},{"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":"genesis","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"implementation","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"}]
Contract Creation Code
60a06040523480156200001157600080fd5b506040516200002090620002aa565b604051809103906000f0801580156200003d573d6000803e3d6000fd5b5060601b6001600160601b031916608052620000586200005e565b620002b8565b600054610100900460ff168062000078575060005460ff16155b620000d05760405162461bcd60e51b815260206004820152602e602482015260008051602062004d8083398151915260448201526d191e481a5b9a5d1a585b1a5e995960921b60648201526084015b60405180910390fd5b600054610100900460ff16158015620000f3576000805461ffff19166101011790555b620000fd6200011d565b62000107620001c2565b80156200011a576000805461ff00191690555b50565b600054610100900460ff168062000137575060005460ff16155b6200018b5760405162461bcd60e51b815260206004820152602e602482015260008051602062004d8083398151915260448201526d191e481a5b9a5d1a585b1a5e995960921b6064820152608401620000c7565b600054610100900460ff1615801562000107576000805461ffff191661010117905580156200011a576000805461ff001916905550565b600054610100900460ff1680620001dc575060005460ff16155b620002305760405162461bcd60e51b815260206004820152602e602482015260008051602062004d8083398151915260448201526d191e481a5b9a5d1a585b1a5e995960921b6064820152608401620000c7565b600054610100900460ff1615801562000253576000805461ffff19166101011790555b6200010733603380546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b61402c8062000d5483390190565b60805160601c610a77620002dd60003960008181607c01526102d10152610a776000f3fe6080604052600436106100655760003560e01c8063909b8a3711610043578063909b8a37146100ef578063b3203f501461010f578063f2fde38b1461012257600080fd5b80635c60da1b1461006a578063715018a6146100ba5780638da5cb5b146100d1575b600080fd5b34801561007657600080fd5b5061009e7f000000000000000000000000000000000000000000000000000000000000000081565b6040516001600160a01b03909116815260200160405180910390f35b3480156100c657600080fd5b506100cf610142565b005b3480156100dd57600080fd5b506033546001600160a01b031661009e565b3480156100fb57600080fd5b506100cf61010a3660046107b2565b6101ad565b61009e61011d3660046107ea565b6102c9565b34801561012e57600080fd5b506100cf61013d366004610773565b6104e5565b6033546001600160a01b031633146101a15760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064015b60405180910390fd5b6101ab60006105c7565b565b60008190506000816001600160a01b0316638da5cb5b6040518163ffffffff1660e01b815260040160206040518083038186803b1580156101ed57600080fd5b505afa158015610201573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906102259190610796565b9050336001600160a01b0382161461027f5760405162461bcd60e51b815260206004820152600160248201527f32000000000000000000000000000000000000000000000000000000000000006044820152606401610198565b604080516001600160a01b03858116825291519186169133917fac6afecff3051723434121cfeb5eb7618214e75741c93afb13fc8659aafc1715919081900360200190a350505050565b6000806102f57f0000000000000000000000000000000000000000000000000000000000000000610631565b6040517f2b26267800000000000000000000000000000000000000000000000000000000815290915081906001600160a01b03821690632b26267890610343908990899089906004016108f9565b600060405180830381600087803b15801561035d57600080fd5b505af1158015610371573d6000803e3d6000fd5b50506040517ff2fde38b0000000000000000000000000000000000000000000000000000000081526001600160a01b038a811660048301528416925063f2fde38b9150602401600060405180830381600087803b1580156103d157600080fd5b505af11580156103e5573d6000803e3d6000fd5b505050506000341115610497576000876001600160a01b03163460405160006040518083038185875af1925050503d806000811461043f576040519150601f19603f3d011682016040523d82523d6000602084013e610444565b606091505b50509050806104955760405162461bcd60e51b815260206004820152600160248201527f31000000000000000000000000000000000000000000000000000000000000006044820152606401610198565b505b604080516001600160a01b03848116825291519189169133917fac6afecff3051723434121cfeb5eb7618214e75741c93afb13fc8659aafc1715919081900360200190a35095945050505050565b6033546001600160a01b0316331461053f5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610198565b6001600160a01b0381166105bb5760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201527f64647265737300000000000000000000000000000000000000000000000000006064820152608401610198565b6105c4816105c7565b50565b603380546001600160a01b038381167fffffffffffffffffffffffff0000000000000000000000000000000000000000831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b60006040517f3d602d80600a3d3981f3363d3d373d3d3d363d7300000000000000000000000081528260601b60148201527f5af43d82803e903d91602b57fd5bf3000000000000000000000000000000000060288201526037816000f09150506001600160a01b0381166106e75760405162461bcd60e51b815260206004820152601660248201527f455243313136373a20637265617465206661696c6564000000000000000000006044820152606401610198565b919050565b600082601f8301126106fc578081fd5b813567ffffffffffffffff80821115610717576107176109fd565b604051601f8301601f19908116603f0116810190828211818310171561073f5761073f6109fd565b81604052838152866020858801011115610757578485fd5b8360208701602083013792830160200193909352509392505050565b600060208284031215610784578081fd5b813561078f81610a2c565b9392505050565b6000602082840312156107a7578081fd5b815161078f81610a2c565b600080604083850312156107c4578081fd5b82356107cf81610a2c565b915060208301356107df81610a2c565b809150509250929050565b600080600080608085870312156107ff578182fd5b843561080a81610a2c565b9350602085013567ffffffffffffffff80821115610826578384fd5b610832888389016106ec565b94506040870135915080821115610847578384fd5b610853888389016106ec565b93506060870135915080821115610868578283fd5b5085016080818803121561087a578182fd5b939692955090935050565b81835281816020850137506000828201602090810191909152601f909101601f19169091010190565b60008151808452815b818110156108d3576020818501810151868301820152016108b7565b818111156108e45782602083870101525b50601f01601f19169290920160200192915050565b60608152600061090c60608301866108ae565b828103602084015261091e81866108ae565b9050828103604084015261093284856109b1565b60808352610944608084018284610885565b91505061095460208601866109b1565b8383036020850152610967838284610885565b92505050604085013567ffffffffffffffff8116808214610986578485fd5b6040840152506060850135801515811461099e578384fd5b8015156060840152509695505050505050565b6000808335601e198436030181126109c7578283fd5b830160208101925035905067ffffffffffffffff8111156109e757600080fd5b8036038313156109f657600080fd5b9250929050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b6001600160a01b03811681146105c457600080fdfea264697066735822122049488f7f252ea7c5e878e00a1f8d8f16311ef356203a49cd8cae0fd43438aba064736f6c63430008040033608060405234801561001057600080fd5b5061400c806100206000396000f3fe6080604052600436106102345760003560e01c806357068f0a11610138578063a22cb465116100b0578063cbce4c971161007f578063e4963dd511610064578063e4963dd5146106f7578063e985e9c514610717578063f2fde38b1461076057600080fd5b8063cbce4c971461068c578063cdc18424146106ac57600080fd5b8063a22cb46514610619578063b774cf9014610639578063b88d4fde1461064c578063c87b56dd1461066c57600080fd5b806370a082311161010757806379502c55116100ec57806379502c55146105c15780638da5cb5b146105e657806395d89b411461060457600080fd5b806370a082311461058c578063715018a6146105ac57600080fd5b806357068f0a1461050857806361b8ce8c146105285780636352211e1461054c5780636f5ba15a1461056c57600080fd5b806329ee566c116101cb57806335c938851161019a57806342842e0e1161017f57806342842e0e146104a857806342966c68146104c85780634fc41a42146104e857600080fd5b806335c93885146104805780633ccfd60b146104a057600080fd5b806329ee566c146103e15780632a55205a146104015780632a6432a4146104405780632b2626781461046057600080fd5b8063095ea7b311610207578063095ea7b3146102ea5780631141d7de1461030a578063164ec6f51461031f57806323b872dd146103c157600080fd5b806301ffc9a71461023957806302fe53051461026e57806306fdde0314610290578063081812fc146102b2575b600080fd5b34801561024557600080fd5b506102596102543660046133f7565b610780565b60405190151581526020015b60405180910390f35b34801561027a57600080fd5b5061028e61028936600461342f565b6107c4565b005b34801561029c57600080fd5b506102a5610834565b60405161026591906137d9565b3480156102be57600080fd5b506102d26102cd3660046133a0565b6108c6565b6040516001600160a01b039091168152602001610265565b3480156102f657600080fd5b5061028e610305366004613305565b61095b565b34801561031657600080fd5b506102a5610aa6565b34801561032b57600080fd5b5061038861033a3660046133a0565b60c9602052600090815260409020546fffffffffffffffffffffffffffffffff81169067ffffffffffffffff7001000000000000000000000000000000008204811691600160c01b90041683565b604080516fffffffffffffffffffffffffffffffff909416845267ffffffffffffffff9283166020850152911690820152606001610265565b3480156103cd57600080fd5b5061028e6103dc36600461321b565b610b34565b3480156103ed57600080fd5b5060d1546102d2906001600160a01b031681565b34801561040d57600080fd5b5061042161041c3660046135ed565b610bbc565b604080516001600160a01b039093168352602083019190915201610265565b34801561044c57600080fd5b5061028e61045b36600461319a565b610cd8565b34801561046c57600080fd5b5061028e61047b3660046134d8565b610db3565b34801561048c57600080fd5b5061028e61049b36600461346f565b610e84565b61028e610f98565b3480156104b457600080fd5b5061028e6104c336600461321b565b611206565b3480156104d457600080fd5b5061028e6104e33660046133a0565b611221565b3480156104f457600080fd5b5061028e6105033660046135d2565b611282565b34801561051457600080fd5b5061028e61052336600461359f565b611380565b34801561053457600080fd5b5061053e60ce5481565b604051908152602001610265565b34801561055857600080fd5b506102d26105673660046133a0565b611478565b34801561057857600080fd5b5061028e610587366004613330565b611503565b34801561059857600080fd5b5061053e6105a736600461319a565b611607565b3480156105b857600080fd5b5061028e6116a1565b3480156105cd57600080fd5b506105d6611707565b60405161026594939291906137ec565b3480156105f257600080fd5b506097546001600160a01b03166102d2565b34801561061057600080fd5b506102a5611849565b34801561062557600080fd5b5061028e6106343660046132d8565b611858565b61028e61064736600461355c565b61191d565b34801561065857600080fd5b5061028e61066736600461325b565b611c1e565b34801561067857600080fd5b506102a56106873660046133a0565b611ca6565b34801561069857600080fd5b5061028e6106a7366004613305565b611e24565b3480156106b857600080fd5b5060cd546106d8906001600160a01b03811690600160a01b900460ff1682565b604080516001600160a01b039093168352901515602083015201610265565b34801561070357600080fd5b5061028e6107123660046133b8565b611f95565b34801561072357600080fd5b506102596107323660046131e3565b6001600160a01b039182166000908152606a6020908152604080832093909416825291909152205460ff1690565b34801561076c57600080fd5b5061028e61077b36600461319a565b61204a565b60007f2a55205a000000000000000000000000000000000000000000000000000000006001600160e01b0319831614806107be57506107be82612129565b92915050565b6097546001600160a01b031633146108235760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064015b60405180910390fd5b61082f60d08383612f89565b505050565b60606065805461084390613bb4565b80601f016020809104026020016040519081016040528092919081815260200182805461086f90613bb4565b80156108bc5780601f10610891576101008083540402835291602001916108bc565b820191906000526020600020905b81548152906001019060200180831161089f57829003601f168201915b5050505050905090565b6000818152606760205260408120546001600160a01b031661093f5760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a20617070726f76656420717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b606482015260840161081a565b506000908152606960205260409020546001600160a01b031690565b600061096682611478565b9050806001600160a01b0316836001600160a01b031614156109f05760405162461bcd60e51b815260206004820152602160248201527f4552433732313a20617070726f76616c20746f2063757272656e74206f776e6560448201527f7200000000000000000000000000000000000000000000000000000000000000606482015260840161081a565b336001600160a01b0382161480610a2a57506001600160a01b0381166000908152606a6020908152604080832033845290915290205460ff165b610a9c5760405162461bcd60e51b815260206004820152603860248201527f4552433732313a20617070726f76652063616c6c6572206973206e6f74206f7760448201527f6e6572206e6f7220617070726f76656420666f7220616c6c0000000000000000606482015260840161081a565b61082f83836121c4565b60d08054610ab390613bb4565b80601f0160208091040260200160405190810160405280929190818152602001828054610adf90613bb4565b8015610b2c5780601f10610b0157610100808354040283529160200191610b2c565b820191906000526020600020905b815481529060010190602001808311610b0f57829003601f168201915b505050505081565b610b3f335b82612232565b610bb15760405162461bcd60e51b815260206004820152603160248201527f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f60448201527f776e6572206e6f7220617070726f766564000000000000000000000000000000606482015260840161081a565b61082f838383612329565b60d15460009081906001600160a01b0316610be657505060d1546001600160a01b03166000610cd1565b60d15460405130602482015260448101869052606481018590526000916001600160a01b03169060840160408051601f198184030181529181526020820180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff167f1941472a0000000000000000000000000000000000000000000000000000000017905251610c7391906136d9565b600060405180830381855afa9150503d8060008114610cae576040519150601f19603f3d011682016040523d82523d6000602084013e610cb3565b606091505b5091505080806020019051810190610ccb91906131b6565b92509250505b9250929050565b6097546001600160a01b03163314610d325760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015260640161081a565b60cc5468010000000000000000900460ff1615610d915760405162461bcd60e51b815260206004820152600260248201527f3136000000000000000000000000000000000000000000000000000000000000604482015260640161081a565b60d180546001600160a01b0319166001600160a01b0392909216919091179055565b600054610100900460ff1680610dcc575060005460ff16155b610e2f5760405162461bcd60e51b815260206004820152602e60248201527f496e697469616c697a61626c653a20636f6e747261637420697320616c72656160448201526d191e481a5b9a5d1a585b1a5e995960921b606482015260840161081a565b600054610100900460ff16158015610e51576000805461ffff19166101011790555b610e5b84846124f6565b610e636125c4565b610e6c82611380565b8015610e7e576000805461ff00191690555b50505050565b6097546001600160a01b03163314610ede5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015260640161081a565b60cc5468010000000000000000900460ff1615610f3d5760405162461bcd60e51b815260206004820152600160248201527f3200000000000000000000000000000000000000000000000000000000000000604482015260640161081a565b610f4960658585612f89565b50610f5660668383612f89565b507f934066d47a89bfcab72db908a0701b9145131ee303cefb44553121c73419e8dd60656066604051610f8a929190613834565b60405180910390a150505050565b6097546001600160a01b0316331480610fc4575060cd546001600160a01b0316336001600160a01b0316145b6110105760405162461bcd60e51b815260206004820152600160248201527f3400000000000000000000000000000000000000000000000000000000000000604482015260640161081a565b60004790506000670de0b6b3a764000060cf54101561108357611034606483613a12565b9050670de0b6b3a76400008160cf5461104d91906139fa565b111561106b5760cf5461106890670de0b6b3a7640000613a45565b90505b8060cf600082825461107d91906139fa565b90915550505b60cd546000906001600160a01b0316156110a85760cd546001600160a01b03166110b5565b6097546001600160a01b03165b6001600160a01b03166110c88385613a45565b604051600081818185875af1925050503d8060008114611104576040519150601f19603f3d011682016040523d82523d6000602084013e611109565b606091505b505090508061115a5760405162461bcd60e51b815260206004820152600160248201527f3500000000000000000000000000000000000000000000000000000000000000604482015260640161081a565b60405160009073502b2fe7cc3488fcff2e16158615af87b4ab5c419084908381818185875af1925050503d80600081146111b0576040519150601f19603f3d011682016040523d82523d6000602084013e6111b5565b606091505b5050905080610e7e5760405162461bcd60e51b815260206004820152600160248201527f3600000000000000000000000000000000000000000000000000000000000000604482015260640161081a565b61082f83838360405180602001604052806000815250611c1e565b61122a33610b39565b6112765760405162461bcd60e51b815260206004820152600260248201527f3134000000000000000000000000000000000000000000000000000000000000604482015260640161081a565b61127f81612686565b50565b6097546001600160a01b031633146112dc5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015260640161081a565b60cd54600160a01b900460ff16156113365760405162461bcd60e51b815260206004820152600160248201527f3300000000000000000000000000000000000000000000000000000000000000604482015260640161081a565b8060cd6113438282613ec4565b9050507f5d121f0c2b2c4877a2b0a1457c73ce1c28628e5705271cb91db3e49792715cf58160405161137591906138f1565b60405180910390a150565b6097546001600160a01b031633146113da5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015260640161081a565b60cc5468010000000000000000900460ff16156114395760405162461bcd60e51b815260206004820152600160248201527f3100000000000000000000000000000000000000000000000000000000000000604482015260640161081a565b8060ca6114468282613c74565b9050507f4363c3792b29c84c812e55c3980736e603dd322c6558532d35d39eb614d00749816040516113759190613862565b6000818152606760205260408120546001600160a01b0316806107be5760405162461bcd60e51b815260206004820152602960248201527f4552433732313a206f776e657220717565727920666f72206e6f6e657869737460448201527f656e7420746f6b656e0000000000000000000000000000000000000000000000606482015260840161081a565b6097546001600160a01b0316331461155d5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015260640161081a565b60ce5461156a57600160ce555b60005b8181101561082f573683838381811061159657634e487b7160e01b600052603260045260246000fd5b60a002919091018035600090815260c9602052604090819020919350830191506115c08282613e01565b50506040516020820135908235907fe9a0c17645ed78ccc9996259f00297ffc75e6b9d22cd605ccc9992cc8ca3f4c190600090a350806115ff81613be9565b91505061156d565b60006001600160a01b0382166116855760405162461bcd60e51b815260206004820152602a60248201527f4552433732313a2062616c616e636520717565727920666f7220746865207a6560448201527f726f206164647265737300000000000000000000000000000000000000000000606482015260840161081a565b506001600160a01b031660009081526068602052604090205490565b6097546001600160a01b031633146116fb5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015260640161081a565b6117056000612721565b565b60ca8054819061171690613bb4565b80601f016020809104026020016040519081016040528092919081815260200182805461174290613bb4565b801561178f5780601f106117645761010080835404028352916020019161178f565b820191906000526020600020905b81548152906001019060200180831161177257829003601f168201915b5050505050908060010180546117a490613bb4565b80601f01602080910402602001604051908101604052809291908181526020018280546117d090613bb4565b801561181d5780601f106117f25761010080835404028352916020019161181d565b820191906000526020600020905b81548152906001019060200180831161180057829003601f168201915b5050506002909301549192505067ffffffffffffffff81169060ff680100000000000000009091041684565b60606066805461084390613bb4565b6001600160a01b0382163314156118b15760405162461bcd60e51b815260206004820152601960248201527f4552433732313a20617070726f766520746f2063616c6c657200000000000000604482015260640161081a565b336000818152606a602090815260408083206001600160a01b03871680855290835292819020805460ff191686151590811790915590519081529192917f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a35050565b60ce548235600090815260c96020908152604091829020825160608101845290546fffffffffffffffffffffffffffffffff8116825267ffffffffffffffff7001000000000000000000000000000000008204811693830193909352600160c01b90049091169181019190915261199a846119953390565b612773565b6119e65760405162461bcd60e51b815260206004820152600160248201527f3700000000000000000000000000000000000000000000000000000000000000604482015260640161081a565b80513490611a079085906fffffffffffffffffffffffffffffffff16613a26565b14611a545760405162461bcd60e51b815260206004820152600160248201527f3800000000000000000000000000000000000000000000000000000000000000604482015260640161081a565b42816020015167ffffffffffffffff161115611ab25760405162461bcd60e51b815260206004820152600160248201527f3900000000000000000000000000000000000000000000000000000000000000604482015260640161081a565b60408181015133600090815260d26020908152838220883583529052919091205467ffffffffffffffff90911690611aeb9085906139fa565b1115611b395760405162461bcd60e51b815260206004820152600260248201527f3130000000000000000000000000000000000000000000000000000000000000604482015260640161081a565b60cc5467ffffffffffffffff166001611b5285856139fa565b611b5c9190613a45565b1115611baa5760405162461bcd60e51b815260206004820152600260248201527f3131000000000000000000000000000000000000000000000000000000000000604482015260640161081a565b60005b83811015611bda57611bc833611bc383866139fa565b612890565b80611bd281613be9565b915050611bad565b50611be583836139fa565b60ce5533600090815260d2602090815260408083208735845290915281208054859290611c139084906139fa565b909155505050505050565b611c283383612232565b611c9a5760405162461bcd60e51b815260206004820152603160248201527f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f60448201527f776e6572206e6f7220617070726f766564000000000000000000000000000000606482015260840161081a565b610e7e848484846128ae565b6060600082118015611cc4575060cc5467ffffffffffffffff168211155b611d105760405162461bcd60e51b815260206004820152600260248201527f3135000000000000000000000000000000000000000000000000000000000000604482015260640161081a565b600060ca6001018054611d2290613bb4565b90501115611d5c5760cb611d358361292c565b604051602001611d469291906136f5565b6040516020818303038152906040529050919050565b600060ca6000018054611d6e90613bb4565b905011611d9357604051806080016040528060428152602001613f95604291396107be565b60ca8054611da090613bb4565b80601f0160208091040260200160405190810160405280929190818152602001828054611dcc90613bb4565b8015611e195780601f10611dee57610100808354040283529160200191611e19565b820191906000526020600020905b815481529060010190602001808311611dfc57829003601f168201915b505050505092915050565b6097546001600160a01b03163314611e7e5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015260640161081a565b60008060ce5411611e90576001611e94565b60ce545b905060008211611ee65760405162461bcd60e51b815260206004820152600260248201527f3132000000000000000000000000000000000000000000000000000000000000604482015260640161081a565b60cc5467ffffffffffffffff166001611eff84846139fa565b611f099190613a45565b1115611f575760405162461bcd60e51b815260206004820152600260248201527f3133000000000000000000000000000000000000000000000000000000000000604482015260640161081a565b60005b82811015611f8257611f7084611bc383856139fa565b80611f7a81613be9565b915050611f5a565b50611f8d82826139fa565b60ce55505050565b6097546001600160a01b03163314611fef5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015260640161081a565b60ce54611ffc57600160ce555b600083815260c96020526040902081906120168282613e01565b5050604051829084907fe9a0c17645ed78ccc9996259f00297ffc75e6b9d22cd605ccc9992cc8ca3f4c190600090a3505050565b6097546001600160a01b031633146120a45760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015260640161081a565b6001600160a01b0381166121205760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201527f6464726573730000000000000000000000000000000000000000000000000000606482015260840161081a565b61127f81612721565b60006001600160e01b031982167f80ac58cd00000000000000000000000000000000000000000000000000000000148061218c57506001600160e01b031982167f5b5e139f00000000000000000000000000000000000000000000000000000000145b806107be57507f01ffc9a7000000000000000000000000000000000000000000000000000000006001600160e01b03198316146107be565b600081815260696020526040902080546001600160a01b0319166001600160a01b03841690811790915581906121f982611478565b6001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b6000818152606760205260408120546001600160a01b03166122ab5760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a206f70657261746f7220717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b606482015260840161081a565b60006122b683611478565b9050806001600160a01b0316846001600160a01b031614806122f15750836001600160a01b03166122e6846108c6565b6001600160a01b0316145b8061232157506001600160a01b038082166000908152606a602090815260408083209388168352929052205460ff165b949350505050565b826001600160a01b031661233c82611478565b6001600160a01b0316146123b85760405162461bcd60e51b815260206004820152602960248201527f4552433732313a207472616e73666572206f6620746f6b656e2074686174206960448201527f73206e6f74206f776e0000000000000000000000000000000000000000000000606482015260840161081a565b6001600160a01b0382166124335760405162461bcd60e51b8152602060048201526024808201527f4552433732313a207472616e7366657220746f20746865207a65726f2061646460448201527f7265737300000000000000000000000000000000000000000000000000000000606482015260840161081a565b61243e6000826121c4565b6001600160a01b0383166000908152606860205260408120805460019290612467908490613a45565b90915550506001600160a01b03821660009081526068602052604081208054600192906124959084906139fa565b909155505060008181526067602052604080822080546001600160a01b0319166001600160a01b0386811691821790925591518493918716917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91a4505050565b600054610100900460ff168061250f575060005460ff16155b6125725760405162461bcd60e51b815260206004820152602e60248201527f496e697469616c697a61626c653a20636f6e747261637420697320616c72656160448201526d191e481a5b9a5d1a585b1a5e995960921b606482015260840161081a565b600054610100900460ff16158015612594576000805461ffff19166101011790555b61259c612a3d565b6125a4612a3d565b6125ae8383612aee565b801561082f576000805461ff0019169055505050565b600054610100900460ff16806125dd575060005460ff16155b6126405760405162461bcd60e51b815260206004820152602e60248201527f496e697469616c697a61626c653a20636f6e747261637420697320616c72656160448201526d191e481a5b9a5d1a585b1a5e995960921b606482015260840161081a565b600054610100900460ff16158015612662576000805461ffff19166101011790555b61266a612a3d565b612672612bca565b801561127f576000805461ff001916905550565b600061269182611478565b905061269e6000836121c4565b6001600160a01b03811660009081526068602052604081208054600192906126c7908490613a45565b909155505060008281526067602052604080822080546001600160a01b0319169055518391906001600160a01b038416907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908390a45050565b609780546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b60008235612783575060016107be565b6040516bffffffffffffffffffffffff19606084901b16602082015260009060340160405160208183030381529060405280519060200120905060005b6127cd6020860186613928565b90508110156128845760006127e56020870187613928565b8381811061280357634e487b7160e01b600052603260045260246000fd5b905060200201359050808311612844576040805160208101859052908101829052606001604051602081830303815290604052805190602001209250612871565b60408051602081018390529081018490526060016040516020818303038152906040528051906020012092505b508061287c81613be9565b9150506127c0565b50833514905092915050565b6128aa828260405180602001604052806000815250612c71565b5050565b6128b9848484612329565b6128c584848484612cef565b610e7e5760405162461bcd60e51b815260206004820152603260248201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560448201527131b2b4bb32b91034b6b83632b6b2b73a32b960711b606482015260840161081a565b60608160005b8115612958578061294281613be9565b91506129519050600a83613a12565b9150612932565b60008167ffffffffffffffff81111561298157634e487b7160e01b600052604160045260246000fd5b6040519080825280601f01601f1916602001820160405280156129ab576020820181803683370190505b5090505b841561232157816129bf81613b9d565b92506129ce9050600a86613c04565b6129d99060306139fa565b60f81b8183815181106129fc57634e487b7160e01b600052603260045260246000fd5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a905350612a36600a86613a12565b94506129af565b600054610100900460ff1680612a56575060005460ff16155b612ab95760405162461bcd60e51b815260206004820152602e60248201527f496e697469616c697a61626c653a20636f6e747261637420697320616c72656160448201526d191e481a5b9a5d1a585b1a5e995960921b606482015260840161081a565b600054610100900460ff16158015612672576000805461ffff1916610101179055801561127f576000805461ff001916905550565b600054610100900460ff1680612b07575060005460ff16155b612b6a5760405162461bcd60e51b815260206004820152602e60248201527f496e697469616c697a61626c653a20636f6e747261637420697320616c72656160448201526d191e481a5b9a5d1a585b1a5e995960921b606482015260840161081a565b600054610100900460ff16158015612b8c576000805461ffff19166101011790555b8251612b9f90606590602086019061300d565b508151612bb390606690602085019061300d565b50801561082f576000805461ff0019169055505050565b600054610100900460ff1680612be3575060005460ff16155b612c465760405162461bcd60e51b815260206004820152602e60248201527f496e697469616c697a61626c653a20636f6e747261637420697320616c72656160448201526d191e481a5b9a5d1a585b1a5e995960921b606482015260840161081a565b600054610100900460ff16158015612c68576000805461ffff19166101011790555b61267233612721565b612c7b8383612e47565b612c886000848484612cef565b61082f5760405162461bcd60e51b815260206004820152603260248201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560448201527131b2b4bb32b91034b6b83632b6b2b73a32b960711b606482015260840161081a565b60006001600160a01b0384163b15612e3c57604051630a85bd0160e11b81526001600160a01b0385169063150b7a0290612d3390339089908890889060040161379d565b602060405180830381600087803b158015612d4d57600080fd5b505af1925050508015612d7d575060408051601f3d908101601f19168201909252612d7a91810190613413565b60015b612e22573d808015612dab576040519150601f19603f3d011682016040523d82523d6000602084013e612db0565b606091505b508051612e1a5760405162461bcd60e51b815260206004820152603260248201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560448201527131b2b4bb32b91034b6b83632b6b2b73a32b960711b606482015260840161081a565b805181602001fd5b6001600160e01b031916630a85bd0160e11b149050612321565b506001949350505050565b6001600160a01b038216612e9d5760405162461bcd60e51b815260206004820181905260248201527f4552433732313a206d696e7420746f20746865207a65726f2061646472657373604482015260640161081a565b6000818152606760205260409020546001600160a01b031615612f025760405162461bcd60e51b815260206004820152601c60248201527f4552433732313a20746f6b656e20616c7265616479206d696e74656400000000604482015260640161081a565b6001600160a01b0382166000908152606860205260408120805460019290612f2b9084906139fa565b909155505060008181526067602052604080822080546001600160a01b0319166001600160a01b03861690811790915590518392907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b828054612f9590613bb4565b90600052602060002090601f016020900481019282612fb75760008555612ffd565b82601f10612fd05782800160ff19823516178555612ffd565b82800160010185558215612ffd579182015b82811115612ffd578235825591602001919060010190612fe2565b50613009929150613081565b5090565b82805461301990613bb4565b90600052602060002090601f01602090048101928261303b5760008555612ffd565b82601f1061305457805160ff1916838001178555612ffd565b82800160010185558215612ffd579182015b82811115612ffd578251825591602001919060010190613066565b5b808211156130095760008155600101613082565b600067ffffffffffffffff808411156130b1576130b1613c44565b604051601f8501601f19908116603f011681019082821181831017156130d9576130d9613c44565b816040528093508581528686860111156130f257600080fd5b858560208301376000602087830101525050509392505050565b60008083601f84011261311d578182fd5b50813567ffffffffffffffff811115613134578182fd5b602083019150836020828501011115610cd157600080fd5b600082601f83011261315c578081fd5b61316b83833560208501613096565b9392505050565b600060408284031215613183578081fd5b50919050565b600060808284031215613183578081fd5b6000602082840312156131ab578081fd5b813561316b81613f45565b600080604083850312156131c8578081fd5b82516131d381613f45565b6020939093015192949293505050565b600080604083850312156131f5578182fd5b823561320081613f45565b9150602083013561321081613f45565b809150509250929050565b60008060006060848603121561322f578081fd5b833561323a81613f45565b9250602084013561324a81613f45565b929592945050506040919091013590565b60008060008060808587031215613270578081fd5b843561327b81613f45565b9350602085013561328b81613f45565b925060408501359150606085013567ffffffffffffffff8111156132ad578182fd5b8501601f810187136132bd578182fd5b6132cc87823560208401613096565b91505092959194509250565b600080604083850312156132ea578182fd5b82356132f581613f45565b9150602083013561321081613f5a565b60008060408385031215613317578182fd5b823561332281613f45565b946020939093013593505050565b60008060208385031215613342578182fd5b823567ffffffffffffffff80821115613359578384fd5b818501915085601f83011261336c578384fd5b81358181111561337a578485fd5b86602060a08302850101111561338e578485fd5b60209290920196919550909350505050565b6000602082840312156133b1578081fd5b5035919050565b600080600083850360a08112156133cd578182fd5b84359350602085013592506060603f19820112156133e9578182fd5b506040840190509250925092565b600060208284031215613408578081fd5b813561316b81613f68565b600060208284031215613424578081fd5b815161316b81613f68565b60008060208385031215613441578182fd5b823567ffffffffffffffff811115613457578283fd5b6134638582860161310c565b90969095509350505050565b60008060008060408587031215613484578182fd5b843567ffffffffffffffff8082111561349b578384fd5b6134a78883890161310c565b909650945060208701359150808211156134bf578384fd5b506134cc8782880161310c565b95989497509550505050565b6000806000606084860312156134ec578081fd5b833567ffffffffffffffff80821115613503578283fd5b61350f8783880161314c565b94506020860135915080821115613524578283fd5b6135308783880161314c565b93506040860135915080821115613545578283fd5b5061355286828701613189565b9150509250925092565b6000806040838503121561356e578182fd5b823567ffffffffffffffff811115613584578283fd5b61359085828601613172565b95602094909401359450505050565b6000602082840312156135b0578081fd5b813567ffffffffffffffff8111156135c6578182fd5b61232184828501613189565b6000604082840312156135e3578081fd5b61316b8383613172565b600080604083850312156135ff578182fd5b50508035926020909101359150565b60008151808452613626816020860160208601613b71565b601f01601f19169290920160200192915050565b81835281816020850137506000828201602090810191909152601f909101601f19169091010190565b6000815461367081613bb4565b80855260206001838116801561368d57600181146136a157611e19565b60ff19851688840152604088019550611e19565b866000528260002060005b858110156136c75781548a82018601529083019084016136ac565b89018401965050505050505092915050565b600082516136eb818460208701613b71565b9190910192915050565b600080845461370381613bb4565b6001828116801561371b576001811461372c57613758565b60ff19841687528287019450613758565b8886526020808720875b8581101561374f5781548a820152908401908201613736565b50505082870194505b50505050835161376c818360208801613b71565b7f2e6a736f6e0000000000000000000000000000000000000000000000000000009101908152600501949350505050565b60006001600160a01b038087168352808616602084015250836040830152608060608301526137cf608083018461360e565b9695505050505050565b60208152600061316b602083018461360e565b6080815260006137ff608083018761360e565b8281036020840152613811818761360e565b67ffffffffffffffff959095166040840152505090151560609091015292915050565b6040815260006138476040830185613663565b82810360208401526138598185613663565b95945050505050565b60208152600061387283846139b5565b6080602085015261388760a08501828461363a565b91505061389760208501856139b5565b848303601f190160408601526138ae83828461363a565b9250505060408401356138c081613f7e565b67ffffffffffffffff811660608501525060608401356138df81613f5a565b15156080939093019290925250919050565b60408101823561390081613f45565b6001600160a01b03168252602083013561391981613f5a565b80151560208401525092915050565b6000808335601e1984360301811261393e578283fd5b83018035915067ffffffffffffffff821115613958578283fd5b6020019150600581901b3603821315610cd157600080fd5b6000808335601e19843603018112613986578283fd5b83018035915067ffffffffffffffff8211156139a0578283fd5b602001915036819003821315610cd157600080fd5b6000808335601e198436030181126139cb578283fd5b830160208101925035905067ffffffffffffffff8111156139eb57600080fd5b803603831315610cd157600080fd5b60008219821115613a0d57613a0d613c18565b500190565b600082613a2157613a21613c2e565b500490565b6000816000190483118215151615613a4057613a40613c18565b500290565b600082821015613a5757613a57613c18565b500390565b5b818110156128aa5760008155600101613a5d565b67ffffffffffffffff831115613a8957613a89613c44565b613a938154613bb4565b600080601f8611601f841181811715613ab25760008681526020902092505b8015613ae157601f880160051c83016020891015613acd5750825b613adf601f870160051c850182613a5c565b505b508060018114613b1557600094508715613afc578387013594505b600188901b60001960038a901b1c198616178655613b67565b601f198816945082845b86811015613b3f5788860135825560209586019560019092019101613b1f565b5088861015613b5c5760001960f88a60031b161c19858901351681555b5060018860011b0186555b5050505050505050565b60005b83811015613b8c578181015183820152602001613b74565b83811115610e7e5750506000910152565b600081613bac57613bac613c18565b506000190190565b600181811c90821680613bc857607f821691505b6020821081141561318357634e487b7160e01b600052602260045260246000fd5b6000600019821415613bfd57613bfd613c18565b5060010190565b600082613c1357613c13613c2e565b500690565b634e487b7160e01b600052601160045260246000fd5b634e487b7160e01b600052601260045260246000fd5b634e487b7160e01b600052604160045260246000fd5b600081356107be81613f5a565b600081356107be81613f7e565b613c7e8283613970565b67ffffffffffffffff811115613c9657613c96613c44565b613ca08354613bb4565b600080601f8411601f841181811715613cbf5760008881526020902092505b8015613cee57601f860160051c83016020871015613cda5750825b613cec601f870160051c850182613a5c565b505b508060018114613d2257600094508515613d09578387013594505b600186901b600019600388901b1c198616178855613d74565b601f198616945082845b86811015613d4c5788860135825560209586019560019092019101613d2c565b5086861015613d695760001960f88860031b161c19858901351681555b5060018660011b0188555b50505050505050613d886020830183613970565b613d96818360018601613a71565b505060028101613dca613dab60408501613c67565b825467ffffffffffffffff191667ffffffffffffffff91909116178255565b61082f613dd960608501613c5a565b82805468ff0000000000000000191691151560401b68ff000000000000000016919091179055565b81356fffffffffffffffffffffffffffffffff8116808214613e2257600080fd5b82549150807fffffffffffffffffffffffffffffffff0000000000000000000000000000000083161783556020840135613e5b81613f7e565b77ffffffffffffffff000000000000000000000000000000008160801b1690507fffffffffffffffff00000000000000000000000000000000000000000000000081838286161717855560408601359350613eb584613f7e565b911760c09290921b1617905550565b8135613ecf81613f45565b6001600160a01b03811690508154816001600160a01b031982161783556020840135613efa81613f5a565b7fffffffffffffffffffffff0000000000000000000000000000000000000000009190911690911790151560a01b74ff00000000000000000000000000000000000000001617905550565b6001600160a01b038116811461127f57600080fd5b801515811461127f57600080fd5b6001600160e01b03198116811461127f57600080fd5b67ffffffffffffffff8116811461127f57600080fdfe697066733a2f2f6261666b72656965716364706863666f6a63643276736c737872687a726a71723663786a6c7975656b7067687a6568666578693563337735356571a2646970667358221220a69723306d7c7c596409be16203a93eccb22a1387cd0b3b09f2fc8265559a3be64736f6c63430008040033496e697469616c697a61626c653a20636f6e747261637420697320616c726561
Deployed Bytecode
0x6080604052600436106100655760003560e01c8063909b8a3711610043578063909b8a37146100ef578063b3203f501461010f578063f2fde38b1461012257600080fd5b80635c60da1b1461006a578063715018a6146100ba5780638da5cb5b146100d1575b600080fd5b34801561007657600080fd5b5061009e7f000000000000000000000000cc11f660e119cf5c320d46a6ee5b3a9b5e26a70c81565b6040516001600160a01b03909116815260200160405180910390f35b3480156100c657600080fd5b506100cf610142565b005b3480156100dd57600080fd5b506033546001600160a01b031661009e565b3480156100fb57600080fd5b506100cf61010a3660046107b2565b6101ad565b61009e61011d3660046107ea565b6102c9565b34801561012e57600080fd5b506100cf61013d366004610773565b6104e5565b6033546001600160a01b031633146101a15760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064015b60405180910390fd5b6101ab60006105c7565b565b60008190506000816001600160a01b0316638da5cb5b6040518163ffffffff1660e01b815260040160206040518083038186803b1580156101ed57600080fd5b505afa158015610201573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906102259190610796565b9050336001600160a01b0382161461027f5760405162461bcd60e51b815260206004820152600160248201527f32000000000000000000000000000000000000000000000000000000000000006044820152606401610198565b604080516001600160a01b03858116825291519186169133917fac6afecff3051723434121cfeb5eb7618214e75741c93afb13fc8659aafc1715919081900360200190a350505050565b6000806102f57f000000000000000000000000cc11f660e119cf5c320d46a6ee5b3a9b5e26a70c610631565b6040517f2b26267800000000000000000000000000000000000000000000000000000000815290915081906001600160a01b03821690632b26267890610343908990899089906004016108f9565b600060405180830381600087803b15801561035d57600080fd5b505af1158015610371573d6000803e3d6000fd5b50506040517ff2fde38b0000000000000000000000000000000000000000000000000000000081526001600160a01b038a811660048301528416925063f2fde38b9150602401600060405180830381600087803b1580156103d157600080fd5b505af11580156103e5573d6000803e3d6000fd5b505050506000341115610497576000876001600160a01b03163460405160006040518083038185875af1925050503d806000811461043f576040519150601f19603f3d011682016040523d82523d6000602084013e610444565b606091505b50509050806104955760405162461bcd60e51b815260206004820152600160248201527f31000000000000000000000000000000000000000000000000000000000000006044820152606401610198565b505b604080516001600160a01b03848116825291519189169133917fac6afecff3051723434121cfeb5eb7618214e75741c93afb13fc8659aafc1715919081900360200190a35095945050505050565b6033546001600160a01b0316331461053f5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610198565b6001600160a01b0381166105bb5760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201527f64647265737300000000000000000000000000000000000000000000000000006064820152608401610198565b6105c4816105c7565b50565b603380546001600160a01b038381167fffffffffffffffffffffffff0000000000000000000000000000000000000000831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b60006040517f3d602d80600a3d3981f3363d3d373d3d3d363d7300000000000000000000000081528260601b60148201527f5af43d82803e903d91602b57fd5bf3000000000000000000000000000000000060288201526037816000f09150506001600160a01b0381166106e75760405162461bcd60e51b815260206004820152601660248201527f455243313136373a20637265617465206661696c6564000000000000000000006044820152606401610198565b919050565b600082601f8301126106fc578081fd5b813567ffffffffffffffff80821115610717576107176109fd565b604051601f8301601f19908116603f0116810190828211818310171561073f5761073f6109fd565b81604052838152866020858801011115610757578485fd5b8360208701602083013792830160200193909352509392505050565b600060208284031215610784578081fd5b813561078f81610a2c565b9392505050565b6000602082840312156107a7578081fd5b815161078f81610a2c565b600080604083850312156107c4578081fd5b82356107cf81610a2c565b915060208301356107df81610a2c565b809150509250929050565b600080600080608085870312156107ff578182fd5b843561080a81610a2c565b9350602085013567ffffffffffffffff80821115610826578384fd5b610832888389016106ec565b94506040870135915080821115610847578384fd5b610853888389016106ec565b93506060870135915080821115610868578283fd5b5085016080818803121561087a578182fd5b939692955090935050565b81835281816020850137506000828201602090810191909152601f909101601f19169091010190565b60008151808452815b818110156108d3576020818501810151868301820152016108b7565b818111156108e45782602083870101525b50601f01601f19169290920160200192915050565b60608152600061090c60608301866108ae565b828103602084015261091e81866108ae565b9050828103604084015261093284856109b1565b60808352610944608084018284610885565b91505061095460208601866109b1565b8383036020850152610967838284610885565b92505050604085013567ffffffffffffffff8116808214610986578485fd5b6040840152506060850135801515811461099e578384fd5b8015156060840152509695505050505050565b6000808335601e198436030181126109c7578283fd5b830160208101925035905067ffffffffffffffff8111156109e757600080fd5b8036038313156109f657600080fd5b9250929050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b6001600160a01b03811681146105c457600080fdfea264697066735822122049488f7f252ea7c5e878e00a1f8d8f16311ef356203a49cd8cae0fd43438aba064736f6c63430008040033
Loading...
Loading
Loading...
Loading
Multichain Portfolio | 30 Chains
Chain | Token | Portfolio % | Price | Amount | Value |
---|
Loading...
Loading
[ Download: CSV Export ]
[ 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.