Feature Tip: Add private address tag to any address under My Name Tag !
Overview
ETH Balance
0 ETH
Eth Value
$0.00More Info
Private Name Tags
ContractCreator
TokenTracker
Latest 21 from a total of 21 transactions
Transaction Hash |
Method
|
Block
|
From
|
To
|
|||||
---|---|---|---|---|---|---|---|---|---|
Set Approval For... | 20551141 | 131 days ago | IN | 0 ETH | 0.00002238 | ||||
Set Approval For... | 20303621 | 166 days ago | IN | 0 ETH | 0.00021296 | ||||
Set Approval For... | 19480063 | 281 days ago | IN | 0 ETH | 0.0013202 | ||||
Set Approval For... | 19480012 | 281 days ago | IN | 0 ETH | 0.00127194 | ||||
Set Approval For... | 19279806 | 309 days ago | IN | 0 ETH | 0.00174445 | ||||
Transfer From | 18219596 | 458 days ago | IN | 0 ETH | 0.00081634 | ||||
Set Approval For... | 18105806 | 474 days ago | IN | 0 ETH | 0.00041557 | ||||
Set Approval For... | 18102760 | 474 days ago | IN | 0 ETH | 0.00041557 | ||||
Set Approval For... | 17407655 | 572 days ago | IN | 0 ETH | 0.00092032 | ||||
Set Approval For... | 16278592 | 730 days ago | IN | 0 ETH | 0.00075666 | ||||
Transfer From | 14744840 | 962 days ago | IN | 0 ETH | 0.00349665 | ||||
Set Approval For... | 14714454 | 967 days ago | IN | 0 ETH | 0.00151933 | ||||
Transfer From | 14457089 | 1007 days ago | IN | 0 ETH | 0.00306731 | ||||
Transfer From | 14452141 | 1008 days ago | IN | 0 ETH | 0.00254503 | ||||
Transfer From | 14452141 | 1008 days ago | IN | 0 ETH | 0.00392178 | ||||
Approve | 14445894 | 1009 days ago | IN | 0 ETH | 0.00326802 | ||||
Transfer From | 14435135 | 1011 days ago | IN | 0 ETH | 0.0016514 | ||||
Set Approval For... | 14231184 | 1043 days ago | IN | 0 ETH | 0.00511899 | ||||
Set Approval For... | 14227116 | 1043 days ago | IN | 0 ETH | 0.00246438 | ||||
Transfer From | 14219525 | 1044 days ago | IN | 0 ETH | 0.00418228 | ||||
Set Approval For... | 14218078 | 1045 days ago | IN | 0 ETH | 0.0035428 |
Latest 1 internal transaction
Advanced mode:
Parent Transaction Hash | Block |
From
|
To
|
|||
---|---|---|---|---|---|---|
14169388 | 1052 days ago | Contract Creation | 0 ETH |
Loading...
Loading
Contract Name:
SocietyInitialArtSale
Compiler Version
v0.8.9+commit.e5eed63a
Optimization Enabled:
Yes with 10000 runs
Other Settings:
default evmVersion
Contract Source Code (Solidity Standard Json-Input format)
// SPDX-License-Identifier: UNLICENSED pragma solidity 0.8.9; // ____ _ _ ____ ____ __ ___ __ ____ ____ _ _ // (_ _)/ )( \( __) / ___) / \ / __)( )( __)(_ _)( \/ ) // )( ) __ ( ) _) \___ \( O )( (__ )( ) _) )( ) / // (__) \_)(_/(____) (____/ \__/ \___)(__)(____) (__) (__/ // import "@openzeppelin/contracts/token/ERC721/ERC721.sol"; import "@openzeppelin/contracts/interfaces/IERC721Receiver.sol"; import "@openzeppelin/contracts/interfaces/IERC2981.sol"; import "@openzeppelin/contracts/access/Ownable.sol"; import "@openzeppelin/contracts/security/ReentrancyGuard.sol"; import "@openzeppelin/contracts/token/ERC20/IERC20.sol"; // The Society mints artwork for the initial collection using this contract. // // Each piece of artwork comes along with the membership purchase. // So the minting mechanism can only be called by the membership contract. // And the total supply is capped to the membership total supply. contract SocietyInitialArtSale is ERC721, IERC2981, IERC721Receiver, Ownable { // This references the SocietyMember contract. // It is authorized to call `mintTo` in the context of selling membership. address public mintingContract; // We generate the next token ID by incrementing this counter. uint16 private ids; // This contains the base URI (e.g. "https://example.com/tokens/") // that is used to produce a URI for the metadata about // each token (e.g. "https://example.com/tokens/1234") string private baseURI; // This indicates that the base URI has been sealed. // This lets The Society make the metadata immutable once it // has been placed into permanent IPFS storage. bool public isSealed; event Sealed(uint256 totalSupply, string baseURI); // For exchanges that support ERC2981, this sets our royalty rate. // NOTE: whereas "percent" is /100, this uses "per mille" which is /1000 uint256 private royaltyPerMille; // To enable gas-free listings on OpenSea we integrate with the proxy registry. address private openSeaProxyRegistry; // The Society can disable gas-free listings in case OpenSea is compromised. bool private isOpenSeaProxyEnabled = true; struct Config { address mintingContract; uint256 royaltyPerMille; address openSeaProxyRegistry; } constructor(Config memory config) ERC721("Art", "ART") { mintingContract = config.mintingContract; royaltyPerMille = config.royaltyPerMille; openSeaProxyRegistry = config.openSeaProxyRegistry; } // This is called by the membership contract to mint artwork to a new member. // See SocietyMember#mint() function mintTo(address to) external { require( mintingContract == msg.sender, "this art is minted in the context of purchasing membership" ); _mint(to, generateTokenId()); } // // Admin Methods // // This allows the Society to withdraw any received funds. // NOTE: This method exists to avoid the sad scenario where someone // accidentally sends tokens to this address and the tokens get stuck. function withdraw() public onlyOwner { uint256 balance = address(this).balance; payable(msg.sender).transfer(balance); } // This allows the Society to withdraw any received ERC20 tokens. // NOTE: This method exists to avoid the sad scenario where someone // accidentally sends tokens to this address and the tokens get stuck. function withdrawERC20Tokens(IERC20 token) external onlyOwner { uint256 balance = token.balanceOf(address(this)); token.transfer(msg.sender, balance); } // This allows the Society to withdraw any received ERC721 tokens. // NOTE: This method exists to avoid the sad scenario where someone // accidentally sends tokens to this address and the tokens get stuck. function withdrawERC721Token(IERC721 token, uint256 tokenId) external onlyOwner { token.transferFrom(address(this), msg.sender, tokenId); } // The society can update the baseURI for metadata // e.g. if there is a hosting change function setBaseURI(string memory uri) public onlyOwner { require(!isSealed, "base URI cannot change after it has been sealed"); baseURI = uri; } // This lets The Society make the metadata immutable once it // has been placed into permanent IPFS storage. function seal() public onlyOwner { mintingContract = address(0); isSealed = true; emit Sealed(ids, baseURI); } // The society can update the ERC2981 royalty rate // NOTE: whereas "percent" is /100, this uses "per mille" which is /1000 function setRoyalty(uint256 _royaltyPerMille) public onlyOwner { royaltyPerMille = _royaltyPerMille; } // The society can disable gas-less listings for security in case OpenSea is compromised. function setOpenSeaProxyEnabled(bool isEnabled) external onlyOwner { isOpenSeaProxyEnabled = isEnabled; } // The society can change the minting contract in case the membership drive fails and // we need to conduct the remainder of the sale directly. function setMintingContract(address mintingContract_) external onlyOwner { require(!isSealed, "minting contract cannot be changed after sealing"); mintingContract = mintingContract_; } // // Interface Override Methods // // The sale contract can receive ETH deposits. receive() external payable {} // The sale contract can receive ERC721 tokens. // See IERC721Receiver function onERC721Received( address, address, uint256, bytes calldata ) public virtual override returns (bytes4) { return this.onERC721Received.selector; } // This hooks into the ERC721 implementation // it is used by `tokenURI(..)` to produce the full thing. function _baseURI() internal view override returns (string memory) { return baseURI; } // This exposes the ERC2981 royalty rate. function royaltyInfo(uint256 tokenId, uint256 salePrice) external view returns (address receiver, uint256 royaltyAmount) { require(_exists(tokenId), "not a valid token"); return (owner(), (salePrice * royaltyPerMille) / 1000); } // This is a partial implementation of ERC721Enumerable function totalSupply() external view returns (uint256) { return ids; } // This is a partial implementation of ERC721Enumerable function tokenByIndex(uint256 _index) external view returns (uint256) { require(_exists(_index + 1), "bad token index"); return _index + 1; } // This hooks into approvals to allow gas-free listings on OpenSea. // It also allows single-transaction membership refunds. function isApprovedForAll(address owner, address operator) public view override returns (bool) { if (isOpenSeaProxyEnabled) { ProxyRegistry registry = ProxyRegistry(openSeaProxyRegistry); if (address(registry.proxies(owner)) == operator) { return true; } } // NOTE: mintingContract is set to address(0) when this sale is #seal()-ed. if (mintingContract == operator) { return true; } return super.isApprovedForAll(owner, operator); } // This implements ERC165 and announces that we // support the ERC2981 (royalty info) interface. function supportsInterface(bytes4 interfaceId) public view virtual override(IERC165, ERC721) returns (bool) { if (interfaceId == type(IERC2981).interfaceId) { return true; } return super.supportsInterface(interfaceId); } // // Private Helper Methods // // Create the next token ID to be used. function generateTokenId() private returns (uint256) { ids += 1; return ids; } } // These types define our interface to the OpenSea proxy registry. // We use these to support gas-free listings. contract OwnableDelegateProxy { } contract ProxyRegistry { mapping(address => OwnableDelegateProxy) public proxies; }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import "./IERC721.sol"; import "./IERC721Receiver.sol"; import "./extensions/IERC721Metadata.sol"; import "../../utils/Address.sol"; import "../../utils/Context.sol"; import "../../utils/Strings.sol"; import "../../utils/introspection/ERC165.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 ERC721 is Context, ERC165, IERC721, IERC721Metadata { using Address for address; using Strings for uint256; // Token name string private _name; // Token symbol string private _symbol; // Mapping from token ID to owner address mapping(uint256 => address) private _owners; // Mapping owner address to token count mapping(address => uint256) private _balances; // Mapping from token ID to approved address mapping(uint256 => address) private _tokenApprovals; // Mapping from owner to operator approvals mapping(address => mapping(address => bool)) private _operatorApprovals; /** * @dev Initializes the contract by setting a `name` and a `symbol` to the token collection. */ constructor(string memory name_, string memory symbol_) { _name = name_; _symbol = symbol_; } /** * @dev See {IERC165-supportsInterface}. */ function supportsInterface(bytes4 interfaceId) public view virtual override(ERC165, IERC165) returns (bool) { return interfaceId == type(IERC721).interfaceId || interfaceId == type(IERC721Metadata).interfaceId || super.supportsInterface(interfaceId); } /** * @dev See {IERC721-balanceOf}. */ function balanceOf(address owner) public view virtual override returns (uint256) { require(owner != address(0), "ERC721: 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 = ERC721.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 = ERC721.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 = ERC721.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(ERC721.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(ERC721.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 IERC721Receiver(to).onERC721Received(_msgSender(), from, tokenId, _data) returns (bytes4 retval) { return retval == IERC721Receiver.onERC721Received.selector; } catch (bytes memory reason) { if (reason.length == 0) { revert("ERC721: transfer to non ERC721Receiver implementer"); } else { 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 {} }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import "../token/ERC721/IERC721Receiver.sol";
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import "./IERC165.sol"; /** * @dev Interface for the NFT Royalty Standard */ interface IERC2981 is IERC165 { /** * @dev Called with the sale price to determine how much royalty is owed and to whom. * @param tokenId - the NFT asset queried for royalty information * @param salePrice - the sale price of the NFT asset specified by `tokenId` * @return receiver - address of who should be sent the royalty payment * @return royaltyAmount - the royalty payment amount for `salePrice` */ function royaltyInfo(uint256 tokenId, uint256 salePrice) external view returns (address receiver, uint256 royaltyAmount); }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import "../utils/Context.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 Ownable is Context { address private _owner; event OwnershipTransferred(address indexed previousOwner, address indexed newOwner); /** * @dev Initializes the contract setting the deployer as the initial owner. */ constructor() { _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); } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; /** * @dev Contract module that helps prevent reentrant calls to a function. * * Inheriting from `ReentrancyGuard` will make the {nonReentrant} modifier * available, which can be applied to functions to make sure there are no nested * (reentrant) calls to them. * * Note that because there is a single `nonReentrant` guard, functions marked as * `nonReentrant` may not call one another. This can be worked around by making * those functions `private`, and then adding `external` `nonReentrant` entry * points to them. * * TIP: If you would like to learn more about reentrancy and alternative ways * to protect against it, check out our blog post * https://blog.openzeppelin.com/reentrancy-after-istanbul/[Reentrancy After Istanbul]. */ abstract contract ReentrancyGuard { // Booleans are more expensive than uint256 or any type that takes up a full // word because each write operation emits an extra SLOAD to first read the // slot's contents, replace the bits taken up by the boolean, and then write // back. This is the compiler's defense against contract upgrades and // pointer aliasing, and it cannot be disabled. // The values being non-zero value makes deployment a bit more expensive, // but in exchange the refund on every call to nonReentrant will be lower in // amount. Since refunds are capped to a percentage of the total // transaction's gas, it is best to keep them low in cases like this one, to // increase the likelihood of the full refund coming into effect. uint256 private constant _NOT_ENTERED = 1; uint256 private constant _ENTERED = 2; uint256 private _status; constructor() { _status = _NOT_ENTERED; } /** * @dev Prevents a contract from calling itself, directly or indirectly. * Calling a `nonReentrant` function from another `nonReentrant` * function is not supported. It is possible to prevent this from happening * by making the `nonReentrant` function external, and make it call a * `private` function that does the actual work. */ modifier nonReentrant() { // On the first call to nonReentrant, _notEntered will be true require(_status != _ENTERED, "ReentrancyGuard: reentrant call"); // Any calls to nonReentrant after this point will fail _status = _ENTERED; _; // By storing the original value once again, a refund is triggered (see // https://eips.ethereum.org/EIPS/eip-2200) _status = _NOT_ENTERED; } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; /** * @dev Interface of the ERC20 standard as defined in the EIP. */ interface IERC20 { /** * @dev Returns the amount of tokens in existence. */ function totalSupply() external view returns (uint256); /** * @dev Returns the amount of tokens owned by `account`. */ function balanceOf(address account) external view returns (uint256); /** * @dev Moves `amount` tokens from the caller's account to `recipient`. * * Returns a boolean value indicating whether the operation succeeded. * * Emits a {Transfer} event. */ function transfer(address recipient, uint256 amount) external returns (bool); /** * @dev Returns the remaining number of tokens that `spender` will be * allowed to spend on behalf of `owner` through {transferFrom}. This is * zero by default. * * This value changes when {approve} or {transferFrom} are called. */ function allowance(address owner, address spender) external view returns (uint256); /** * @dev Sets `amount` as the allowance of `spender` over the caller's tokens. * * Returns a boolean value indicating whether the operation succeeded. * * IMPORTANT: Beware that changing an allowance with this method brings the risk * that someone may use both the old and the new allowance by unfortunate * transaction ordering. One possible solution to mitigate this race * condition is to first reduce the spender's allowance to 0 and set the * desired value afterwards: * https://github.com/ethereum/EIPs/issues/20#issuecomment-263524729 * * Emits an {Approval} event. */ function approve(address spender, uint256 amount) external returns (bool); /** * @dev Moves `amount` tokens from `sender` to `recipient` using the * allowance mechanism. `amount` is then deducted from the caller's * allowance. * * Returns a boolean value indicating whether the operation succeeded. * * Emits a {Transfer} event. */ function transferFrom( address sender, address recipient, uint256 amount ) external returns (bool); /** * @dev Emitted when `value` tokens are moved from one account (`from`) to * another (`to`). * * Note that `value` may be zero. */ event Transfer(address indexed from, address indexed to, uint256 value); /** * @dev Emitted when the allowance of a `spender` for an `owner` is set by * a call to {approve}. `value` is the new allowance. */ event Approval(address indexed owner, address indexed spender, uint256 value); }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import "../../utils/introspection/IERC165.sol"; /** * @dev Required interface of an ERC721 compliant contract. */ interface IERC721 is IERC165 { /** * @dev Emitted when `tokenId` token is transferred from `from` to `to`. */ event Transfer(address indexed from, address indexed to, uint256 indexed tokenId); /** * @dev Emitted when `owner` enables `approved` to manage the `tokenId` token. */ event Approval(address indexed owner, address indexed approved, uint256 indexed tokenId); /** * @dev Emitted when `owner` enables or disables (`approved`) `operator` to manage all of its assets. */ event ApprovalForAll(address indexed owner, address indexed operator, bool approved); /** * @dev Returns the number of tokens in ``owner``'s account. */ function balanceOf(address owner) external view returns (uint256 balance); /** * @dev Returns the owner of the `tokenId` token. * * Requirements: * * - `tokenId` must exist. */ function ownerOf(uint256 tokenId) external view returns (address owner); /** * @dev Safely transfers `tokenId` token from `from` to `to`, 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 IERC721Receiver { /** * @dev Whenever an {IERC721} `tokenId` token is transferred to this contract via {IERC721-safeTransferFrom} * by `operator` from `from`, this function is called. * * It must return its Solidity selector to confirm the token transfer. * If any other value is returned or the interface is not implemented by the recipient, the transfer will be reverted. * * The selector can be obtained in Solidity with `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 "../IERC721.sol"; /** * @title ERC-721 Non-Fungible Token Standard, optional metadata extension * @dev See https://eips.ethereum.org/EIPS/eip-721 */ interface IERC721Metadata is IERC721 { /** * @dev Returns the token collection name. */ function name() external view returns (string memory); /** * @dev Returns the token collection symbol. */ function symbol() external view returns (string memory); /** * @dev Returns the Uniform Resource Identifier (URI) for `tokenId` token. */ function tokenURI(uint256 tokenId) external view returns (string memory); }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; /** * @dev Collection of functions related to the address type */ library Address { /** * @dev Returns true if `account` is a contract. * * [IMPORTANT] * ==== * It is unsafe to assume that an address for which this function returns * false is an externally-owned account (EOA) and not a contract. * * Among others, `isContract` will return false for the following * types of addresses: * * - an externally-owned account * - a contract in construction * - an address where a contract will be created * - an address where a contract lived, but was destroyed * ==== */ 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 Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but performing a delegate call. * * _Available since v3.4._ */ function functionDelegateCall(address target, bytes memory data) internal returns (bytes memory) { return functionDelegateCall(target, data, "Address: low-level delegate call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`], * but performing a delegate call. * * _Available since v3.4._ */ function functionDelegateCall( address target, bytes memory data, string memory errorMessage ) internal returns (bytes memory) { require(isContract(target), "Address: delegate call to non-contract"); (bool success, bytes memory returndata) = target.delegatecall(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 Provides information about the current execution context, including the * sender of the transaction and its data. While these are generally available * via msg.sender and msg.data, they should not be accessed in such a direct * manner, since when dealing with meta-transactions the account sending and * paying for execution may not be the actual sender (as far as an application * is concerned). * * This contract is only required for intermediate, library-like contracts. */ abstract contract Context { function _msgSender() internal view virtual returns (address) { return msg.sender; } function _msgData() internal view virtual returns (bytes calldata) { return msg.data; } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; /** * @dev String operations. */ library Strings { bytes16 private constant _HEX_SYMBOLS = "0123456789abcdef"; /** * @dev Converts a `uint256` to its ASCII `string` decimal representation. */ function toString(uint256 value) internal pure returns (string memory) { // Inspired by OraclizeAPI's implementation - MIT licence // https://github.com/oraclize/ethereum-api/blob/b42146b063c7d6ee1358846c198246239e9360e8/oraclizeAPI_0.4.25.sol if (value == 0) { return "0"; } uint256 temp = value; uint256 digits; while (temp != 0) { digits++; temp /= 10; } bytes memory buffer = new bytes(digits); while (value != 0) { digits -= 1; buffer[digits] = bytes1(uint8(48 + uint256(value % 10))); value /= 10; } return string(buffer); } /** * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation. */ function toHexString(uint256 value) internal pure returns (string memory) { if (value == 0) { return "0x00"; } uint256 temp = value; uint256 length = 0; while (temp != 0) { length++; temp >>= 8; } return toHexString(value, length); } /** * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation with fixed length. */ function toHexString(uint256 value, uint256 length) internal pure returns (string memory) { bytes memory buffer = new bytes(2 * length + 2); buffer[0] = "0"; buffer[1] = "x"; for (uint256 i = 2 * length + 1; i > 1; --i) { buffer[i] = _HEX_SYMBOLS[value & 0xf]; value >>= 4; } require(value == 0, "Strings: hex length insufficient"); return string(buffer); } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import "./IERC165.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 ERC165 is IERC165 { /** * @dev See {IERC165-supportsInterface}. */ function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) { return interfaceId == type(IERC165).interfaceId; } }
// 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 IERC165 { /** * @dev Returns true if this contract implements the interface defined by * `interfaceId`. See the corresponding * https://eips.ethereum.org/EIPS/eip-165#how-interfaces-are-identified[EIP section] * to learn more about how these ids are created. * * This function call must use less than 30 000 gas. */ function supportsInterface(bytes4 interfaceId) external view returns (bool); }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import "../utils/introspection/IERC165.sol";
{ "optimizer": { "enabled": true, "runs": 10000 }, "outputSelection": { "*": { "*": [ "evm.bytecode", "evm.deployedBytecode", "devdoc", "userdoc", "metadata", "abi" ] } }, "libraries": {} }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"inputs":[{"components":[{"internalType":"address","name":"mintingContract","type":"address"},{"internalType":"uint256","name":"royaltyPerMille","type":"uint256"},{"internalType":"address","name":"openSeaProxyRegistry","type":"address"}],"internalType":"struct SocietyInitialArtSale.Config","name":"config","type":"tuple"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"approved","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":false,"internalType":"bool","name":"approved","type":"bool"}],"name":"ApprovalForAll","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"totalSupply","type":"uint256"},{"indexed":false,"internalType":"string","name":"baseURI","type":"string"}],"name":"Sealed","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Transfer","type":"event"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"approve","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getApproved","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"operator","type":"address"}],"name":"isApprovedForAll","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"isSealed","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"}],"name":"mintTo","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"mintingContract","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"},{"internalType":"address","name":"","type":"address"},{"internalType":"uint256","name":"","type":"uint256"},{"internalType":"bytes","name":"","type":"bytes"}],"name":"onERC721Received","outputs":[{"internalType":"bytes4","name":"","type":"bytes4"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"ownerOf","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"uint256","name":"salePrice","type":"uint256"}],"name":"royaltyInfo","outputs":[{"internalType":"address","name":"receiver","type":"address"},{"internalType":"uint256","name":"royaltyAmount","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"bytes","name":"_data","type":"bytes"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"seal","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"operator","type":"address"},{"internalType":"bool","name":"approved","type":"bool"}],"name":"setApprovalForAll","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"uri","type":"string"}],"name":"setBaseURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"mintingContract_","type":"address"}],"name":"setMintingContract","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bool","name":"isEnabled","type":"bool"}],"name":"setOpenSeaProxyEnabled","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_royaltyPerMille","type":"uint256"}],"name":"setRoyalty","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes4","name":"interfaceId","type":"bytes4"}],"name":"supportsInterface","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_index","type":"uint256"}],"name":"tokenByIndex","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"tokenURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"transferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"withdraw","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"contract IERC20","name":"token","type":"address"}],"name":"withdrawERC20Tokens","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"contract IERC721","name":"token","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"withdrawERC721Token","outputs":[],"stateMutability":"nonpayable","type":"function"},{"stateMutability":"payable","type":"receive"}]
Contract Creation Code
6080604052600b805460ff60a01b1916600160a01b1790553480156200002457600080fd5b5060405162002e0038038062002e00833981016040819052620000479162000224565b60405180604001604052806003815260200162105c9d60ea1b8152506040518060400160405280600381526020016210549560ea1b81525081600090805190602001906200009792919062000161565b508051620000ad90600190602084019062000161565b505050620000ca620000c46200010b60201b60201c565b6200010f565b8051600780546001600160a01b03199081166001600160a01b03938416179091556020830151600a55604090920151600b80549093169116179055620002d9565b3390565b600680546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b8280546200016f906200029c565b90600052602060002090601f016020900481019282620001935760008555620001de565b82601f10620001ae57805160ff1916838001178555620001de565b82800160010185558215620001de579182015b82811115620001de578251825591602001919060010190620001c1565b50620001ec929150620001f0565b5090565b5b80821115620001ec5760008155600101620001f1565b80516001600160a01b03811681146200021f57600080fd5b919050565b6000606082840312156200023757600080fd5b604051606081016001600160401b03811182821017156200026857634e487b7160e01b600052604160045260246000fd5b604052620002768362000207565b815260208301516020820152620002906040840162000207565b60408201529392505050565b600181811c90821680620002b157607f821691505b60208210811415620002d357634e487b7160e01b600052602260045260246000fd5b50919050565b612b1780620002e96000396000f3fe6080604052600436106101dc5760003560e01c80634ff7ff321161010257806395d89b4111610095578063c87b56dd11610064578063c87b56dd146105d5578063d2f6f67d146105f5578063e985e9c514610615578063f2fde38b1461063557600080fd5b806395d89b4114610560578063a22cb46514610575578063b88d4fde14610595578063c56e1375146105b557600080fd5b806370a08231116100d157806370a08231146104ed578063715018a61461050d578063755edd17146105225780638da5cb5b1461054257600080fd5b80634ff7ff321461047357806355f804b314610493578063631f9852146104b35780636352211e146104cd57600080fd5b806323b872dd1161017a5780633fb27b85116101495780633fb27b85146103fe5780634209a2e11461041357806342842e0e146104335780634f6ccce71461045357600080fd5b806323b872dd1461036a5780632a55205a1461038a5780633aaed7b9146103c95780633ccfd60b146103e957600080fd5b8063095ea7b3116101b6578063095ea7b314610277578063150b7a021461029957806318160ddd1461030f57806321b02b641461034a57600080fd5b806301ffc9a7146101e857806306fdde031461021d578063081812fc1461023f57600080fd5b366101e357005b600080fd5b3480156101f457600080fd5b50610208610203366004612312565b610655565b60405190151581526020015b60405180910390f35b34801561022957600080fd5b506102326106b8565b60405161021491906123a5565b34801561024b57600080fd5b5061025f61025a3660046123b8565b61074a565b6040516001600160a01b039091168152602001610214565b34801561028357600080fd5b506102976102923660046123e6565b6107f5565b005b3480156102a557600080fd5b506102de6102b4366004612412565b7f150b7a020000000000000000000000000000000000000000000000000000000095945050505050565b6040517fffffffff000000000000000000000000000000000000000000000000000000009091168152602001610214565b34801561031b57600080fd5b5060075474010000000000000000000000000000000000000000900461ffff165b604051908152602001610214565b34801561035657600080fd5b506102976103653660046124bf565b610927565b34801561037657600080fd5b506102976103853660046124dc565b6109cb565b34801561039657600080fd5b506103aa6103a536600461251d565b610a52565b604080516001600160a01b039093168352602083019190915201610214565b3480156103d557600080fd5b506102976103e43660046123e6565b610aea565b3480156103f557600080fd5b50610297610bc7565b34801561040a57600080fd5b50610297610c54565b34801561041f57600080fd5b5061029761042e3660046123b8565b610d5c565b34801561043f57600080fd5b5061029761044e3660046124dc565b610dbb565b34801561045f57600080fd5b5061033c61046e3660046123b8565b610dd6565b34801561047f57600080fd5b5061029761048e36600461253f565b610e5a565b34801561049f57600080fd5b506102976104ae36600461261f565b610fe3565b3480156104bf57600080fd5b506009546102089060ff1681565b3480156104d957600080fd5b5061025f6104e83660046123b8565b6110c9565b3480156104f957600080fd5b5061033c61050836600461253f565b611154565b34801561051957600080fd5b506102976111ee565b34801561052e57600080fd5b5061029761053d36600461253f565b611254565b34801561054e57600080fd5b506006546001600160a01b031661025f565b34801561056c57600080fd5b506102326112e8565b34801561058157600080fd5b50610297610590366004612668565b6112f7565b3480156105a157600080fd5b506102976105b03660046126a1565b6113da565b3480156105c157600080fd5b506102976105d036600461253f565b611468565b3480156105e157600080fd5b506102326105f03660046123b8565b611575565b34801561060157600080fd5b5060075461025f906001600160a01b031681565b34801561062157600080fd5b50610208610630366004612721565b61165e565b34801561064157600080fd5b5061029761065036600461253f565b611787565b60007fffffffff0000000000000000000000000000000000000000000000000000000082167f2a55205a0000000000000000000000000000000000000000000000000000000014156106a957506001919050565b6106b282611866565b92915050565b6060600080546106c79061274f565b80601f01602080910402602001604051908101604052809291908181526020018280546106f39061274f565b80156107405780601f1061071557610100808354040283529160200191610740565b820191906000526020600020905b81548152906001019060200180831161072357829003601f168201915b5050505050905090565b6000818152600260205260408120546001600160a01b03166107d95760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a20617070726f76656420717565727920666f72206e6f6e657860448201527f697374656e7420746f6b656e000000000000000000000000000000000000000060648201526084015b60405180910390fd5b506000908152600460205260409020546001600160a01b031690565b6000610800826110c9565b9050806001600160a01b0316836001600160a01b0316141561088a5760405162461bcd60e51b815260206004820152602160248201527f4552433732313a20617070726f76616c20746f2063757272656e74206f776e6560448201527f720000000000000000000000000000000000000000000000000000000000000060648201526084016107d0565b336001600160a01b03821614806108a657506108a6813361165e565b6109185760405162461bcd60e51b815260206004820152603860248201527f4552433732313a20617070726f76652063616c6c6572206973206e6f74206f7760448201527f6e6572206e6f7220617070726f76656420666f7220616c6c000000000000000060648201526084016107d0565b6109228383611949565b505050565b6006546001600160a01b031633146109815760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064016107d0565b600b805491151574010000000000000000000000000000000000000000027fffffffffffffffffffffff00ffffffffffffffffffffffffffffffffffffffff909216919091179055565b6109d533826119cf565b610a475760405162461bcd60e51b815260206004820152603160248201527f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f60448201527f776e6572206e6f7220617070726f76656400000000000000000000000000000060648201526084016107d0565b610922838383611ab7565b60008281526002602052604081205481906001600160a01b0316610ab85760405162461bcd60e51b815260206004820152601160248201527f6e6f7420612076616c696420746f6b656e00000000000000000000000000000060448201526064016107d0565b6006546001600160a01b03166103e8600a5485610ad591906127d2565b610adf919061283e565b915091509250929050565b6006546001600160a01b03163314610b445760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064016107d0565b6040517f23b872dd000000000000000000000000000000000000000000000000000000008152306004820152336024820152604481018290526001600160a01b038316906323b872dd90606401600060405180830381600087803b158015610bab57600080fd5b505af1158015610bbf573d6000803e3d6000fd5b505050505050565b6006546001600160a01b03163314610c215760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064016107d0565b6040514790339082156108fc029083906000818181858888f19350505050158015610c50573d6000803e3d6000fd5b5050565b6006546001600160a01b03163314610cae5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064016107d0565b600780547fffffffffffffffffffffffff00000000000000000000000000000000000000001690819055600980547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff001660011790556040517f9bac72168dc85160aed1173926f5d9bccbd9eb5a846dbb016a58871e020704cc91610d52917401000000000000000000000000000000000000000090910461ffff1690600890612852565b60405180910390a1565b6006546001600160a01b03163314610db65760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064016107d0565b600a55565b610922838383604051806020016040528060008152506113da565b6000610e03610de683600161293e565b6000908152600260205260409020546001600160a01b0316151590565b610e4f5760405162461bcd60e51b815260206004820152600f60248201527f62616420746f6b656e20696e646578000000000000000000000000000000000060448201526064016107d0565b6106b282600161293e565b6006546001600160a01b03163314610eb45760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064016107d0565b6040517f70a082310000000000000000000000000000000000000000000000000000000081523060048201526000906001600160a01b038316906370a082319060240160206040518083038186803b158015610f0f57600080fd5b505afa158015610f23573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610f479190612956565b6040517fa9059cbb000000000000000000000000000000000000000000000000000000008152336004820152602481018290529091506001600160a01b0383169063a9059cbb90604401602060405180830381600087803b158015610fab57600080fd5b505af1158015610fbf573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610922919061296f565b6006546001600160a01b0316331461103d5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064016107d0565b60095460ff16156110b65760405162461bcd60e51b815260206004820152602f60248201527f62617365205552492063616e6e6f74206368616e67652061667465722069742060448201527f686173206265656e207365616c6564000000000000000000000000000000000060648201526084016107d0565b8051610c5090600890602084019061224b565b6000818152600260205260408120546001600160a01b0316806106b25760405162461bcd60e51b815260206004820152602960248201527f4552433732313a206f776e657220717565727920666f72206e6f6e657869737460448201527f656e7420746f6b656e000000000000000000000000000000000000000000000060648201526084016107d0565b60006001600160a01b0382166111d25760405162461bcd60e51b815260206004820152602a60248201527f4552433732313a2062616c616e636520717565727920666f7220746865207a6560448201527f726f20616464726573730000000000000000000000000000000000000000000060648201526084016107d0565b506001600160a01b031660009081526003602052604090205490565b6006546001600160a01b031633146112485760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064016107d0565b6112526000611c9c565b565b6007546001600160a01b031633146112d45760405162461bcd60e51b815260206004820152603a60248201527f7468697320617274206973206d696e74656420696e2074686520636f6e74657860448201527f74206f662070757263686173696e67206d656d6265727368697000000000000060648201526084016107d0565b6112e5816112e0611d06565b611d5c565b50565b6060600180546106c79061274f565b6001600160a01b0382163314156113505760405162461bcd60e51b815260206004820152601960248201527f4552433732313a20617070726f766520746f2063616c6c65720000000000000060448201526064016107d0565b3360008181526005602090815260408083206001600160a01b0387168085529083529281902080547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff001686151590811790915590519081529192917f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a35050565b6113e433836119cf565b6114565760405162461bcd60e51b815260206004820152603160248201527f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f60448201527f776e6572206e6f7220617070726f76656400000000000000000000000000000060648201526084016107d0565b61146284848484611eb6565b50505050565b6006546001600160a01b031633146114c25760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064016107d0565b60095460ff161561153b5760405162461bcd60e51b815260206004820152603060248201527f6d696e74696e6720636f6e74726163742063616e6e6f74206265206368616e6760448201527f6564206166746572207365616c696e670000000000000000000000000000000060648201526084016107d0565b600780547fffffffffffffffffffffffff0000000000000000000000000000000000000000166001600160a01b0392909216919091179055565b6000818152600260205260409020546060906001600160a01b03166116025760405162461bcd60e51b815260206004820152602f60248201527f4552433732314d657461646174613a2055524920717565727920666f72206e6f60448201527f6e6578697374656e7420746f6b656e000000000000000000000000000000000060648201526084016107d0565b600061160c611f3f565b9050600081511161162c5760405180602001604052806000815250611657565b8061163684611f4e565b60405160200161164792919061298c565b6040516020818303038152906040525b9392505050565b600b5460009074010000000000000000000000000000000000000000900460ff161561173a57600b546040517fc45527910000000000000000000000000000000000000000000000000000000081526001600160a01b03858116600483015291821691841690829063c45527919060240160206040518083038186803b1580156116e757600080fd5b505afa1580156116fb573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061171f91906129bb565b6001600160a01b031614156117385760019150506106b2565b505b6007546001600160a01b0383811691161415611758575060016106b2565b506001600160a01b03918216600090815260056020908152604080832093909416825291909152205460ff1690565b6006546001600160a01b031633146117e15760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064016107d0565b6001600160a01b03811661185d5760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201527f646472657373000000000000000000000000000000000000000000000000000060648201526084016107d0565b6112e581611c9c565b60007fffffffff0000000000000000000000000000000000000000000000000000000082167f80ac58cd0000000000000000000000000000000000000000000000000000000014806118f957507fffffffff0000000000000000000000000000000000000000000000000000000082167f5b5e139f00000000000000000000000000000000000000000000000000000000145b806106b257507f01ffc9a7000000000000000000000000000000000000000000000000000000007fffffffff000000000000000000000000000000000000000000000000000000008316146106b2565b600081815260046020526040902080547fffffffffffffffffffffffff0000000000000000000000000000000000000000166001600160a01b0384169081179091558190611996826110c9565b6001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b6000818152600260205260408120546001600160a01b0316611a595760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a206f70657261746f7220717565727920666f72206e6f6e657860448201527f697374656e7420746f6b656e000000000000000000000000000000000000000060648201526084016107d0565b6000611a64836110c9565b9050806001600160a01b0316846001600160a01b03161480611a9f5750836001600160a01b0316611a948461074a565b6001600160a01b0316145b80611aaf5750611aaf818561165e565b949350505050565b826001600160a01b0316611aca826110c9565b6001600160a01b031614611b465760405162461bcd60e51b815260206004820152602960248201527f4552433732313a207472616e73666572206f6620746f6b656e2074686174206960448201527f73206e6f74206f776e000000000000000000000000000000000000000000000060648201526084016107d0565b6001600160a01b038216611bc15760405162461bcd60e51b8152602060048201526024808201527f4552433732313a207472616e7366657220746f20746865207a65726f2061646460448201527f726573730000000000000000000000000000000000000000000000000000000060648201526084016107d0565b611bcc600082611949565b6001600160a01b0383166000908152600360205260408120805460019290611bf59084906129d8565b90915550506001600160a01b0382166000908152600360205260408120805460019290611c2390849061293e565b909155505060008181526002602052604080822080547fffffffffffffffffffffffff0000000000000000000000000000000000000000166001600160a01b0386811691821790925591518493918716917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91a4505050565b600680546001600160a01b038381167fffffffffffffffffffffffff0000000000000000000000000000000000000000831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b60006001600760148282829054906101000a900461ffff16611d2891906129ef565b92506101000a81548161ffff021916908361ffff160217905550600760149054906101000a900461ffff1661ffff16905090565b6001600160a01b038216611db25760405162461bcd60e51b815260206004820181905260248201527f4552433732313a206d696e7420746f20746865207a65726f206164647265737360448201526064016107d0565b6000818152600260205260409020546001600160a01b031615611e175760405162461bcd60e51b815260206004820152601c60248201527f4552433732313a20746f6b656e20616c7265616479206d696e7465640000000060448201526064016107d0565b6001600160a01b0382166000908152600360205260408120805460019290611e4090849061293e565b909155505060008181526002602052604080822080547fffffffffffffffffffffffff0000000000000000000000000000000000000000166001600160a01b03861690811790915590518392907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b611ec1848484611ab7565b611ecd84848484612080565b6114625760405162461bcd60e51b815260206004820152603260248201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560448201527f63656976657220696d706c656d656e746572000000000000000000000000000060648201526084016107d0565b6060600880546106c79061274f565b606081611f8e57505060408051808201909152600181527f3000000000000000000000000000000000000000000000000000000000000000602082015290565b8160005b8115611fb85780611fa281612a0c565b9150611fb19050600a8361283e565b9150611f92565b60008167ffffffffffffffff811115611fd357611fd361255c565b6040519080825280601f01601f191660200182016040528015611ffd576020820181803683370190505b5090505b8415611aaf576120126001836129d8565b915061201f600a86612a45565b61202a90603061293e565b60f81b81838151811061203f5761203f612a59565b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a905350612079600a8661283e565b9450612001565b60006001600160a01b0384163b15612240576040517f150b7a020000000000000000000000000000000000000000000000000000000081526001600160a01b0385169063150b7a02906120dd903390899088908890600401612a88565b602060405180830381600087803b1580156120f757600080fd5b505af1925050508015612145575060408051601f3d9081017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe016820190925261214291810190612ac4565b60015b6121f5573d808015612173576040519150601f19603f3d011682016040523d82523d6000602084013e612178565b606091505b5080516121ed5760405162461bcd60e51b815260206004820152603260248201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560448201527f63656976657220696d706c656d656e746572000000000000000000000000000060648201526084016107d0565b805181602001fd5b7fffffffff00000000000000000000000000000000000000000000000000000000167f150b7a0200000000000000000000000000000000000000000000000000000000149050611aaf565b506001949350505050565b8280546122579061274f565b90600052602060002090601f01602090048101928261227957600085556122bf565b82601f1061229257805160ff19168380011785556122bf565b828001600101855582156122bf579182015b828111156122bf5782518255916020019190600101906122a4565b506122cb9291506122cf565b5090565b5b808211156122cb57600081556001016122d0565b7fffffffff00000000000000000000000000000000000000000000000000000000811681146112e557600080fd5b60006020828403121561232457600080fd5b8135611657816122e4565b60005b8381101561234a578181015183820152602001612332565b838111156114625750506000910152565b6000815180845261237381602086016020860161232f565b601f017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0169290920160200192915050565b602081526000611657602083018461235b565b6000602082840312156123ca57600080fd5b5035919050565b6001600160a01b03811681146112e557600080fd5b600080604083850312156123f957600080fd5b8235612404816123d1565b946020939093013593505050565b60008060008060006080868803121561242a57600080fd5b8535612435816123d1565b94506020860135612445816123d1565b935060408601359250606086013567ffffffffffffffff8082111561246957600080fd5b818801915088601f83011261247d57600080fd5b81358181111561248c57600080fd5b89602082850101111561249e57600080fd5b9699959850939650602001949392505050565b80151581146112e557600080fd5b6000602082840312156124d157600080fd5b8135611657816124b1565b6000806000606084860312156124f157600080fd5b83356124fc816123d1565b9250602084013561250c816123d1565b929592945050506040919091013590565b6000806040838503121561253057600080fd5b50508035926020909101359150565b60006020828403121561255157600080fd5b8135611657816123d1565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b600067ffffffffffffffff808411156125a6576125a661255c565b604051601f85017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0908116603f011681019082821181831017156125ec576125ec61255c565b8160405280935085815286868601111561260557600080fd5b858560208301376000602087830101525050509392505050565b60006020828403121561263157600080fd5b813567ffffffffffffffff81111561264857600080fd5b8201601f8101841361265957600080fd5b611aaf8482356020840161258b565b6000806040838503121561267b57600080fd5b8235612686816123d1565b91506020830135612696816124b1565b809150509250929050565b600080600080608085870312156126b757600080fd5b84356126c2816123d1565b935060208501356126d2816123d1565b925060408501359150606085013567ffffffffffffffff8111156126f557600080fd5b8501601f8101871361270657600080fd5b6127158782356020840161258b565b91505092959194509250565b6000806040838503121561273457600080fd5b823561273f816123d1565b91506020830135612696816123d1565b600181811c9082168061276357607f821691505b6020821081141561279d577f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b50919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b6000817fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff048311821515161561280a5761280a6127a3565b500290565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b60008261284d5761284d61280f565b500490565b61ffff83168152600060206040818401526000845481600182811c91508083168061287e57607f831692505b8583108114156128b5577f4e487b710000000000000000000000000000000000000000000000000000000085526022600452602485fd5b60408801839052606088018180156128d457600181146129035761292e565b7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0086168252878201965061292e565b60008b81526020902060005b868110156129285781548482015290850190890161290f565b83019750505b50949a9950505050505050505050565b60008219821115612951576129516127a3565b500190565b60006020828403121561296857600080fd5b5051919050565b60006020828403121561298157600080fd5b8151611657816124b1565b6000835161299e81846020880161232f565b8351908301906129b281836020880161232f565b01949350505050565b6000602082840312156129cd57600080fd5b8151611657816123d1565b6000828210156129ea576129ea6127a3565b500390565b600061ffff8083168185168083038211156129b2576129b26127a3565b60007fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff821415612a3e57612a3e6127a3565b5060010190565b600082612a5457612a5461280f565b500690565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b60006001600160a01b03808716835280861660208401525083604083015260806060830152612aba608083018461235b565b9695505050505050565b600060208284031215612ad657600080fd5b8151611657816122e456fea26469706673582212203978542c2f0cde9ae81243b28d5690617cd0f04888b64c9fc0f51e9df68cff1264736f6c6343000809003300000000000000000000000089e37352cdd93be06f82a6180740f3d756ae09410000000000000000000000000000000000000000000000000000000000000019000000000000000000000000a5409ec958c83c3f309868babaca7c86dcb077c1
Deployed Bytecode
0x6080604052600436106101dc5760003560e01c80634ff7ff321161010257806395d89b4111610095578063c87b56dd11610064578063c87b56dd146105d5578063d2f6f67d146105f5578063e985e9c514610615578063f2fde38b1461063557600080fd5b806395d89b4114610560578063a22cb46514610575578063b88d4fde14610595578063c56e1375146105b557600080fd5b806370a08231116100d157806370a08231146104ed578063715018a61461050d578063755edd17146105225780638da5cb5b1461054257600080fd5b80634ff7ff321461047357806355f804b314610493578063631f9852146104b35780636352211e146104cd57600080fd5b806323b872dd1161017a5780633fb27b85116101495780633fb27b85146103fe5780634209a2e11461041357806342842e0e146104335780634f6ccce71461045357600080fd5b806323b872dd1461036a5780632a55205a1461038a5780633aaed7b9146103c95780633ccfd60b146103e957600080fd5b8063095ea7b3116101b6578063095ea7b314610277578063150b7a021461029957806318160ddd1461030f57806321b02b641461034a57600080fd5b806301ffc9a7146101e857806306fdde031461021d578063081812fc1461023f57600080fd5b366101e357005b600080fd5b3480156101f457600080fd5b50610208610203366004612312565b610655565b60405190151581526020015b60405180910390f35b34801561022957600080fd5b506102326106b8565b60405161021491906123a5565b34801561024b57600080fd5b5061025f61025a3660046123b8565b61074a565b6040516001600160a01b039091168152602001610214565b34801561028357600080fd5b506102976102923660046123e6565b6107f5565b005b3480156102a557600080fd5b506102de6102b4366004612412565b7f150b7a020000000000000000000000000000000000000000000000000000000095945050505050565b6040517fffffffff000000000000000000000000000000000000000000000000000000009091168152602001610214565b34801561031b57600080fd5b5060075474010000000000000000000000000000000000000000900461ffff165b604051908152602001610214565b34801561035657600080fd5b506102976103653660046124bf565b610927565b34801561037657600080fd5b506102976103853660046124dc565b6109cb565b34801561039657600080fd5b506103aa6103a536600461251d565b610a52565b604080516001600160a01b039093168352602083019190915201610214565b3480156103d557600080fd5b506102976103e43660046123e6565b610aea565b3480156103f557600080fd5b50610297610bc7565b34801561040a57600080fd5b50610297610c54565b34801561041f57600080fd5b5061029761042e3660046123b8565b610d5c565b34801561043f57600080fd5b5061029761044e3660046124dc565b610dbb565b34801561045f57600080fd5b5061033c61046e3660046123b8565b610dd6565b34801561047f57600080fd5b5061029761048e36600461253f565b610e5a565b34801561049f57600080fd5b506102976104ae36600461261f565b610fe3565b3480156104bf57600080fd5b506009546102089060ff1681565b3480156104d957600080fd5b5061025f6104e83660046123b8565b6110c9565b3480156104f957600080fd5b5061033c61050836600461253f565b611154565b34801561051957600080fd5b506102976111ee565b34801561052e57600080fd5b5061029761053d36600461253f565b611254565b34801561054e57600080fd5b506006546001600160a01b031661025f565b34801561056c57600080fd5b506102326112e8565b34801561058157600080fd5b50610297610590366004612668565b6112f7565b3480156105a157600080fd5b506102976105b03660046126a1565b6113da565b3480156105c157600080fd5b506102976105d036600461253f565b611468565b3480156105e157600080fd5b506102326105f03660046123b8565b611575565b34801561060157600080fd5b5060075461025f906001600160a01b031681565b34801561062157600080fd5b50610208610630366004612721565b61165e565b34801561064157600080fd5b5061029761065036600461253f565b611787565b60007fffffffff0000000000000000000000000000000000000000000000000000000082167f2a55205a0000000000000000000000000000000000000000000000000000000014156106a957506001919050565b6106b282611866565b92915050565b6060600080546106c79061274f565b80601f01602080910402602001604051908101604052809291908181526020018280546106f39061274f565b80156107405780601f1061071557610100808354040283529160200191610740565b820191906000526020600020905b81548152906001019060200180831161072357829003601f168201915b5050505050905090565b6000818152600260205260408120546001600160a01b03166107d95760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a20617070726f76656420717565727920666f72206e6f6e657860448201527f697374656e7420746f6b656e000000000000000000000000000000000000000060648201526084015b60405180910390fd5b506000908152600460205260409020546001600160a01b031690565b6000610800826110c9565b9050806001600160a01b0316836001600160a01b0316141561088a5760405162461bcd60e51b815260206004820152602160248201527f4552433732313a20617070726f76616c20746f2063757272656e74206f776e6560448201527f720000000000000000000000000000000000000000000000000000000000000060648201526084016107d0565b336001600160a01b03821614806108a657506108a6813361165e565b6109185760405162461bcd60e51b815260206004820152603860248201527f4552433732313a20617070726f76652063616c6c6572206973206e6f74206f7760448201527f6e6572206e6f7220617070726f76656420666f7220616c6c000000000000000060648201526084016107d0565b6109228383611949565b505050565b6006546001600160a01b031633146109815760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064016107d0565b600b805491151574010000000000000000000000000000000000000000027fffffffffffffffffffffff00ffffffffffffffffffffffffffffffffffffffff909216919091179055565b6109d533826119cf565b610a475760405162461bcd60e51b815260206004820152603160248201527f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f60448201527f776e6572206e6f7220617070726f76656400000000000000000000000000000060648201526084016107d0565b610922838383611ab7565b60008281526002602052604081205481906001600160a01b0316610ab85760405162461bcd60e51b815260206004820152601160248201527f6e6f7420612076616c696420746f6b656e00000000000000000000000000000060448201526064016107d0565b6006546001600160a01b03166103e8600a5485610ad591906127d2565b610adf919061283e565b915091509250929050565b6006546001600160a01b03163314610b445760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064016107d0565b6040517f23b872dd000000000000000000000000000000000000000000000000000000008152306004820152336024820152604481018290526001600160a01b038316906323b872dd90606401600060405180830381600087803b158015610bab57600080fd5b505af1158015610bbf573d6000803e3d6000fd5b505050505050565b6006546001600160a01b03163314610c215760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064016107d0565b6040514790339082156108fc029083906000818181858888f19350505050158015610c50573d6000803e3d6000fd5b5050565b6006546001600160a01b03163314610cae5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064016107d0565b600780547fffffffffffffffffffffffff00000000000000000000000000000000000000001690819055600980547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff001660011790556040517f9bac72168dc85160aed1173926f5d9bccbd9eb5a846dbb016a58871e020704cc91610d52917401000000000000000000000000000000000000000090910461ffff1690600890612852565b60405180910390a1565b6006546001600160a01b03163314610db65760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064016107d0565b600a55565b610922838383604051806020016040528060008152506113da565b6000610e03610de683600161293e565b6000908152600260205260409020546001600160a01b0316151590565b610e4f5760405162461bcd60e51b815260206004820152600f60248201527f62616420746f6b656e20696e646578000000000000000000000000000000000060448201526064016107d0565b6106b282600161293e565b6006546001600160a01b03163314610eb45760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064016107d0565b6040517f70a082310000000000000000000000000000000000000000000000000000000081523060048201526000906001600160a01b038316906370a082319060240160206040518083038186803b158015610f0f57600080fd5b505afa158015610f23573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610f479190612956565b6040517fa9059cbb000000000000000000000000000000000000000000000000000000008152336004820152602481018290529091506001600160a01b0383169063a9059cbb90604401602060405180830381600087803b158015610fab57600080fd5b505af1158015610fbf573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610922919061296f565b6006546001600160a01b0316331461103d5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064016107d0565b60095460ff16156110b65760405162461bcd60e51b815260206004820152602f60248201527f62617365205552492063616e6e6f74206368616e67652061667465722069742060448201527f686173206265656e207365616c6564000000000000000000000000000000000060648201526084016107d0565b8051610c5090600890602084019061224b565b6000818152600260205260408120546001600160a01b0316806106b25760405162461bcd60e51b815260206004820152602960248201527f4552433732313a206f776e657220717565727920666f72206e6f6e657869737460448201527f656e7420746f6b656e000000000000000000000000000000000000000000000060648201526084016107d0565b60006001600160a01b0382166111d25760405162461bcd60e51b815260206004820152602a60248201527f4552433732313a2062616c616e636520717565727920666f7220746865207a6560448201527f726f20616464726573730000000000000000000000000000000000000000000060648201526084016107d0565b506001600160a01b031660009081526003602052604090205490565b6006546001600160a01b031633146112485760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064016107d0565b6112526000611c9c565b565b6007546001600160a01b031633146112d45760405162461bcd60e51b815260206004820152603a60248201527f7468697320617274206973206d696e74656420696e2074686520636f6e74657860448201527f74206f662070757263686173696e67206d656d6265727368697000000000000060648201526084016107d0565b6112e5816112e0611d06565b611d5c565b50565b6060600180546106c79061274f565b6001600160a01b0382163314156113505760405162461bcd60e51b815260206004820152601960248201527f4552433732313a20617070726f766520746f2063616c6c65720000000000000060448201526064016107d0565b3360008181526005602090815260408083206001600160a01b0387168085529083529281902080547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff001686151590811790915590519081529192917f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a35050565b6113e433836119cf565b6114565760405162461bcd60e51b815260206004820152603160248201527f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f60448201527f776e6572206e6f7220617070726f76656400000000000000000000000000000060648201526084016107d0565b61146284848484611eb6565b50505050565b6006546001600160a01b031633146114c25760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064016107d0565b60095460ff161561153b5760405162461bcd60e51b815260206004820152603060248201527f6d696e74696e6720636f6e74726163742063616e6e6f74206265206368616e6760448201527f6564206166746572207365616c696e670000000000000000000000000000000060648201526084016107d0565b600780547fffffffffffffffffffffffff0000000000000000000000000000000000000000166001600160a01b0392909216919091179055565b6000818152600260205260409020546060906001600160a01b03166116025760405162461bcd60e51b815260206004820152602f60248201527f4552433732314d657461646174613a2055524920717565727920666f72206e6f60448201527f6e6578697374656e7420746f6b656e000000000000000000000000000000000060648201526084016107d0565b600061160c611f3f565b9050600081511161162c5760405180602001604052806000815250611657565b8061163684611f4e565b60405160200161164792919061298c565b6040516020818303038152906040525b9392505050565b600b5460009074010000000000000000000000000000000000000000900460ff161561173a57600b546040517fc45527910000000000000000000000000000000000000000000000000000000081526001600160a01b03858116600483015291821691841690829063c45527919060240160206040518083038186803b1580156116e757600080fd5b505afa1580156116fb573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061171f91906129bb565b6001600160a01b031614156117385760019150506106b2565b505b6007546001600160a01b0383811691161415611758575060016106b2565b506001600160a01b03918216600090815260056020908152604080832093909416825291909152205460ff1690565b6006546001600160a01b031633146117e15760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064016107d0565b6001600160a01b03811661185d5760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201527f646472657373000000000000000000000000000000000000000000000000000060648201526084016107d0565b6112e581611c9c565b60007fffffffff0000000000000000000000000000000000000000000000000000000082167f80ac58cd0000000000000000000000000000000000000000000000000000000014806118f957507fffffffff0000000000000000000000000000000000000000000000000000000082167f5b5e139f00000000000000000000000000000000000000000000000000000000145b806106b257507f01ffc9a7000000000000000000000000000000000000000000000000000000007fffffffff000000000000000000000000000000000000000000000000000000008316146106b2565b600081815260046020526040902080547fffffffffffffffffffffffff0000000000000000000000000000000000000000166001600160a01b0384169081179091558190611996826110c9565b6001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b6000818152600260205260408120546001600160a01b0316611a595760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a206f70657261746f7220717565727920666f72206e6f6e657860448201527f697374656e7420746f6b656e000000000000000000000000000000000000000060648201526084016107d0565b6000611a64836110c9565b9050806001600160a01b0316846001600160a01b03161480611a9f5750836001600160a01b0316611a948461074a565b6001600160a01b0316145b80611aaf5750611aaf818561165e565b949350505050565b826001600160a01b0316611aca826110c9565b6001600160a01b031614611b465760405162461bcd60e51b815260206004820152602960248201527f4552433732313a207472616e73666572206f6620746f6b656e2074686174206960448201527f73206e6f74206f776e000000000000000000000000000000000000000000000060648201526084016107d0565b6001600160a01b038216611bc15760405162461bcd60e51b8152602060048201526024808201527f4552433732313a207472616e7366657220746f20746865207a65726f2061646460448201527f726573730000000000000000000000000000000000000000000000000000000060648201526084016107d0565b611bcc600082611949565b6001600160a01b0383166000908152600360205260408120805460019290611bf59084906129d8565b90915550506001600160a01b0382166000908152600360205260408120805460019290611c2390849061293e565b909155505060008181526002602052604080822080547fffffffffffffffffffffffff0000000000000000000000000000000000000000166001600160a01b0386811691821790925591518493918716917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91a4505050565b600680546001600160a01b038381167fffffffffffffffffffffffff0000000000000000000000000000000000000000831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b60006001600760148282829054906101000a900461ffff16611d2891906129ef565b92506101000a81548161ffff021916908361ffff160217905550600760149054906101000a900461ffff1661ffff16905090565b6001600160a01b038216611db25760405162461bcd60e51b815260206004820181905260248201527f4552433732313a206d696e7420746f20746865207a65726f206164647265737360448201526064016107d0565b6000818152600260205260409020546001600160a01b031615611e175760405162461bcd60e51b815260206004820152601c60248201527f4552433732313a20746f6b656e20616c7265616479206d696e7465640000000060448201526064016107d0565b6001600160a01b0382166000908152600360205260408120805460019290611e4090849061293e565b909155505060008181526002602052604080822080547fffffffffffffffffffffffff0000000000000000000000000000000000000000166001600160a01b03861690811790915590518392907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b611ec1848484611ab7565b611ecd84848484612080565b6114625760405162461bcd60e51b815260206004820152603260248201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560448201527f63656976657220696d706c656d656e746572000000000000000000000000000060648201526084016107d0565b6060600880546106c79061274f565b606081611f8e57505060408051808201909152600181527f3000000000000000000000000000000000000000000000000000000000000000602082015290565b8160005b8115611fb85780611fa281612a0c565b9150611fb19050600a8361283e565b9150611f92565b60008167ffffffffffffffff811115611fd357611fd361255c565b6040519080825280601f01601f191660200182016040528015611ffd576020820181803683370190505b5090505b8415611aaf576120126001836129d8565b915061201f600a86612a45565b61202a90603061293e565b60f81b81838151811061203f5761203f612a59565b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a905350612079600a8661283e565b9450612001565b60006001600160a01b0384163b15612240576040517f150b7a020000000000000000000000000000000000000000000000000000000081526001600160a01b0385169063150b7a02906120dd903390899088908890600401612a88565b602060405180830381600087803b1580156120f757600080fd5b505af1925050508015612145575060408051601f3d9081017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe016820190925261214291810190612ac4565b60015b6121f5573d808015612173576040519150601f19603f3d011682016040523d82523d6000602084013e612178565b606091505b5080516121ed5760405162461bcd60e51b815260206004820152603260248201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560448201527f63656976657220696d706c656d656e746572000000000000000000000000000060648201526084016107d0565b805181602001fd5b7fffffffff00000000000000000000000000000000000000000000000000000000167f150b7a0200000000000000000000000000000000000000000000000000000000149050611aaf565b506001949350505050565b8280546122579061274f565b90600052602060002090601f01602090048101928261227957600085556122bf565b82601f1061229257805160ff19168380011785556122bf565b828001600101855582156122bf579182015b828111156122bf5782518255916020019190600101906122a4565b506122cb9291506122cf565b5090565b5b808211156122cb57600081556001016122d0565b7fffffffff00000000000000000000000000000000000000000000000000000000811681146112e557600080fd5b60006020828403121561232457600080fd5b8135611657816122e4565b60005b8381101561234a578181015183820152602001612332565b838111156114625750506000910152565b6000815180845261237381602086016020860161232f565b601f017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0169290920160200192915050565b602081526000611657602083018461235b565b6000602082840312156123ca57600080fd5b5035919050565b6001600160a01b03811681146112e557600080fd5b600080604083850312156123f957600080fd5b8235612404816123d1565b946020939093013593505050565b60008060008060006080868803121561242a57600080fd5b8535612435816123d1565b94506020860135612445816123d1565b935060408601359250606086013567ffffffffffffffff8082111561246957600080fd5b818801915088601f83011261247d57600080fd5b81358181111561248c57600080fd5b89602082850101111561249e57600080fd5b9699959850939650602001949392505050565b80151581146112e557600080fd5b6000602082840312156124d157600080fd5b8135611657816124b1565b6000806000606084860312156124f157600080fd5b83356124fc816123d1565b9250602084013561250c816123d1565b929592945050506040919091013590565b6000806040838503121561253057600080fd5b50508035926020909101359150565b60006020828403121561255157600080fd5b8135611657816123d1565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b600067ffffffffffffffff808411156125a6576125a661255c565b604051601f85017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0908116603f011681019082821181831017156125ec576125ec61255c565b8160405280935085815286868601111561260557600080fd5b858560208301376000602087830101525050509392505050565b60006020828403121561263157600080fd5b813567ffffffffffffffff81111561264857600080fd5b8201601f8101841361265957600080fd5b611aaf8482356020840161258b565b6000806040838503121561267b57600080fd5b8235612686816123d1565b91506020830135612696816124b1565b809150509250929050565b600080600080608085870312156126b757600080fd5b84356126c2816123d1565b935060208501356126d2816123d1565b925060408501359150606085013567ffffffffffffffff8111156126f557600080fd5b8501601f8101871361270657600080fd5b6127158782356020840161258b565b91505092959194509250565b6000806040838503121561273457600080fd5b823561273f816123d1565b91506020830135612696816123d1565b600181811c9082168061276357607f821691505b6020821081141561279d577f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b50919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b6000817fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff048311821515161561280a5761280a6127a3565b500290565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b60008261284d5761284d61280f565b500490565b61ffff83168152600060206040818401526000845481600182811c91508083168061287e57607f831692505b8583108114156128b5577f4e487b710000000000000000000000000000000000000000000000000000000085526022600452602485fd5b60408801839052606088018180156128d457600181146129035761292e565b7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0086168252878201965061292e565b60008b81526020902060005b868110156129285781548482015290850190890161290f565b83019750505b50949a9950505050505050505050565b60008219821115612951576129516127a3565b500190565b60006020828403121561296857600080fd5b5051919050565b60006020828403121561298157600080fd5b8151611657816124b1565b6000835161299e81846020880161232f565b8351908301906129b281836020880161232f565b01949350505050565b6000602082840312156129cd57600080fd5b8151611657816123d1565b6000828210156129ea576129ea6127a3565b500390565b600061ffff8083168185168083038211156129b2576129b26127a3565b60007fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff821415612a3e57612a3e6127a3565b5060010190565b600082612a5457612a5461280f565b500690565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b60006001600160a01b03808716835280861660208401525083604083015260806060830152612aba608083018461235b565b9695505050505050565b600060208284031215612ad657600080fd5b8151611657816122e456fea26469706673582212203978542c2f0cde9ae81243b28d5690617cd0f04888b64c9fc0f51e9df68cff1264736f6c63430008090033
Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)
00000000000000000000000089e37352cdd93be06f82a6180740f3d756ae09410000000000000000000000000000000000000000000000000000000000000019000000000000000000000000a5409ec958c83c3f309868babaca7c86dcb077c1
-----Decoded View---------------
Arg [0] : config (tuple): System.Collections.Generic.List`1[Nethereum.ABI.FunctionEncoding.ParameterOutput]
-----Encoded View---------------
3 Constructor Arguments found :
Arg [0] : 00000000000000000000000089e37352cdd93be06f82a6180740f3d756ae0941
Arg [1] : 0000000000000000000000000000000000000000000000000000000000000019
Arg [2] : 000000000000000000000000a5409ec958c83c3f309868babaca7c86dcb077c1
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.