ERC-721
DAO
Overview
Max Total Supply
1,153 SQUIGGLEDAO
Holders
239
Market
Volume (24H)
N/A
Min Price (24H)
N/A
Max Price (24H)
N/A
Other Info
Token Contract
Balance
1 SQUIGGLEDAOLoading...
Loading
Loading...
Loading
Loading...
Loading
# | Exchange | Pair | Price | 24H Volume | % Volume |
---|
Contract Source Code Verified (Exact Match)
Contract Name:
SdNft
Compiler Version
v0.8.9+commit.e5eed63a
Optimization Enabled:
No with 200 runs
Other Settings:
default evmVersion
Contract Source Code (Solidity Standard Json-Input format)
// SPDX-License-Identifier: MIT pragma solidity ^0.8.9; // import "hardhat/console.sol"; import "./ERC2981.sol"; import "@openzeppelin/contracts/token/ERC721/ERC721.sol"; import "@openzeppelin/contracts/access/Ownable.sol"; import "@openzeppelin/contracts/utils/Counters.sol"; import "@openzeppelin/contracts/token/ERC20/IERC20.sol"; import "@openzeppelin/contracts/token/ERC721/extensions/ERC721Enumerable.sol"; /// @title Squiggle DAO membership NFT /// @author Arkaydeus twitter.com/arkaydeus /// @notice ERC721 SD membership token to be minted with SQUIG contract SdNft is ERC721, ERC721Enumerable, ERC2981, Ownable { using Counters for Counters.Counter; enum SalePhase { Deployed, Swap, Paused } event Minted( address indexed _from, address indexed _to, uint256 indexed _tokenId ); // Public variables SalePhase public salePhase = SalePhase.Deployed; address public squiggleErc20Address; // Values are set at deployment but are expected to be as follows uint256 public mintSquigPrice = 10000000; uint256 public squigSupply = 1000000000000000; // Private variables Counters.Counter private _tokenIdCounter; string private contractURI; /// @notice This function is called by the owner of the contract to initiate the NFT /// @dev SQUIG token and current supply needed to prevent further tokens being minted /// @dev Note that SQUIG has decimal precision of 4, so we need to multiply by 10000 /// @param _squiggleErc20Address SQUIG deployed address /// @param _contractURI base path for metadata /// @param _mintSquigPrice price for the swap in SQUIG /// @param _squigSupply current supply of SQUIG issued (to prevent additional SQUIG mint) constructor( address _squiggleErc20Address, string memory _contractURI, uint256 _mintSquigPrice, uint256 _squigSupply ) ERC721("SdNft", "SQUIGGLEDAO") { squiggleErc20Address = _squiggleErc20Address; contractURI = _contractURI; mintSquigPrice = _mintSquigPrice; squigSupply = _squigSupply; } /// Mint using SQUIG /// @notice mints tokens in sequence in exchange for SQUIG token /// @param _to address to mint to /// @param _tokenIn SQUIG token address /// @param _count how many tokens to mint /// @param _amountIn amount of SQUIG token to use (decimals 4) function squigMint( address _to, address _tokenIn, uint256 _count, uint256 _amountIn ) external { require(salePhase > SalePhase.Deployed, "Swap is not yet live"); require(salePhase < SalePhase.Paused, "Swap is currently paused"); require( (_tokenIn == squiggleErc20Address), "Supplied token not SQUIG." ); require( squigSupply == IERC20(squiggleErc20Address).totalSupply(), "SQUIG supply has changed." ); require( (_amountIn / _count) == mintSquigPrice, "Transaction value did not equal swap price." ); IERC20(_tokenIn).transferFrom(msg.sender, address(this), _amountIn); for (uint256 i = 0; i < _count; i++) { _mint(_to); } } /// Mint /// @dev internal function called by squigMint to mint a token /// @param _to wallet to which token is minted function _mint(address _to) private { uint256 tokenId = _tokenIdCounter.current(); _tokenIdCounter.increment(); _safeMint(_to, tokenId); emit Minted(msg.sender, _to, tokenId); } /// Enter Phase /// @dev Sets the sale state allowing pause and resume /// @param _salePhase the phase to set function enterPhase(SalePhase _salePhase) external onlyOwner { require(_salePhase != SalePhase.Deployed, "Cannot set as deployed"); salePhase = _salePhase; } /// Set supply /// @dev Reset the amount of SQUIG that has been minted in case of legitimate mint /// @param _squigSupply the amount of SQUIG that has been minted function setSupply(uint256 _squigSupply) external onlyOwner { squigSupply = _squigSupply; } /// Set contract URI /// @dev Allows the owner to change the metadata base URI /// @param _contractURI the new base URI function setContractURI(string memory _contractURI) external onlyOwner { contractURI = _contractURI; } /// Base URI /// @dev returns the base URI for the metadata function _baseURI() internal view override returns (string memory) { return contractURI; } /// Set default royalty /// @dev Allows the owner to set the default royalty /// @param _receiver the address to receive the royalty /// @param _feeNumerator the amount of the royalty in basis points (750 = 7.5%) function setDefaultRoyalty(address _receiver, uint96 _feeNumerator) public onlyOwner { _setDefaultRoyalty(_receiver, _feeNumerator); } // The following functions are overrides required by Solidity. function _beforeTokenTransfer( address from, address to, uint256 tokenId ) internal override(ERC721, ERC721Enumerable) { super._beforeTokenTransfer(from, to, tokenId); } function _burn(uint256 tokenId) internal override(ERC721) { super._burn(tokenId); } function supportsInterface(bytes4 interfaceId) public view override(ERC721, ERC721Enumerable, ERC2981) returns (bool) { return super.supportsInterface(interfaceId); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.0 (token/common/ERC2981.sol) pragma solidity ^0.8.0; import "./IERC2981.sol"; import "@openzeppelin/contracts/utils/introspection/ERC165.sol"; /** * @dev Implementation of the NFT Royalty Standard, a standardized way to retrieve royalty payment information. * * Royalty information can be specified globally for all token ids via {_setDefaultRoyalty}, and/or individually for * specific token ids via {_setTokenRoyalty}. The latter takes precedence over the first. * * Royalty is specified as a fraction of sale price. {_feeDenominator} is overridable but defaults to 10000, meaning the * fee is specified in basis points by default. * * IMPORTANT: ERC-2981 only specifies a way to signal royalty information and does not enforce its payment. See * https://eips.ethereum.org/EIPS/eip-2981#optional-royalty-payments[Rationale] in the EIP. Marketplaces are expected to * voluntarily pay royalties together with sales, but note that this standard is not yet widely supported. * * _Available since v4.5._ */ abstract contract ERC2981 is IERC2981, ERC165 { struct RoyaltyInfo { address receiver; uint96 royaltyFraction; } RoyaltyInfo private _defaultRoyaltyInfo; mapping(uint256 => RoyaltyInfo) private _tokenRoyaltyInfo; /** * @dev See {IERC165-supportsInterface}. */ function supportsInterface(bytes4 interfaceId) public view virtual override(IERC165, ERC165) returns (bool) { return interfaceId == type(IERC2981).interfaceId || super.supportsInterface(interfaceId); } /** * @inheritdoc IERC2981 */ function royaltyInfo(uint256 _tokenId, uint256 _salePrice) external view virtual override returns (address, uint256) { RoyaltyInfo memory royalty = _tokenRoyaltyInfo[_tokenId]; if (royalty.receiver == address(0)) { royalty = _defaultRoyaltyInfo; } uint256 royaltyAmount = (_salePrice * royalty.royaltyFraction) / _feeDenominator(); return (royalty.receiver, royaltyAmount); } /** * @dev The denominator with which to interpret the fee set in {_setTokenRoyalty} and {_setDefaultRoyalty} as a * fraction of the sale price. Defaults to 10000 so fees are expressed in basis points, but may be customized by an * override. */ function _feeDenominator() internal pure virtual returns (uint96) { return 10000; } /** * @dev Sets the royalty information that all ids in this contract will default to. * * Requirements: * * - `receiver` cannot be the zero address. * - `feeNumerator` cannot be greater than the fee denominator. */ function _setDefaultRoyalty(address receiver, uint96 feeNumerator) internal virtual { require( feeNumerator <= _feeDenominator(), "ERC2981: royalty fee will exceed salePrice" ); require(receiver != address(0), "ERC2981: invalid receiver"); _defaultRoyaltyInfo = RoyaltyInfo(receiver, feeNumerator); } /** * @dev Removes default royalty information. */ function _deleteDefaultRoyalty() internal virtual { delete _defaultRoyaltyInfo; } /** * @dev Sets the royalty information for a specific token id, overriding the global default. * * Requirements: * * - `tokenId` must be already minted. * - `receiver` cannot be the zero address. * - `feeNumerator` cannot be greater than the fee denominator. */ function _setTokenRoyalty( uint256 tokenId, address receiver, uint96 feeNumerator ) internal virtual { require( feeNumerator <= _feeDenominator(), "ERC2981: royalty fee will exceed salePrice" ); require(receiver != address(0), "ERC2981: Invalid parameters"); _tokenRoyaltyInfo[tokenId] = RoyaltyInfo(receiver, feeNumerator); } /** * @dev Resets royalty information for the token id back to the global default. */ function _resetTokenRoyalty(uint256 tokenId) internal virtual { delete _tokenRoyaltyInfo[tokenId]; } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.7.0) (token/ERC721/ERC721.sol) 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: address zero is not a valid owner"); 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: invalid token ID"); 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) { _requireMinted(tokenId); string memory baseURI = _baseURI(); return bytes(baseURI).length > 0 ? string(abi.encodePacked(baseURI, tokenId.toString())) : ""; } /** * @dev Base URI for computing {tokenURI}. If set, the resulting URI for each * token will be the concatenation of the `baseURI` and the `tokenId`. Empty * by default, can be overridden in child contracts. */ function _baseURI() internal view virtual returns (string memory) { return ""; } /** * @dev See {IERC721-approve}. */ function approve(address to, uint256 tokenId) public virtual override { address owner = ERC721.ownerOf(tokenId); require(to != owner, "ERC721: approval to current owner"); require( _msgSender() == owner || isApprovedForAll(owner, _msgSender()), "ERC721: approve caller is not token owner nor approved for all" ); _approve(to, tokenId); } /** * @dev See {IERC721-getApproved}. */ function getApproved(uint256 tokenId) public view virtual override returns (address) { _requireMinted(tokenId); return _tokenApprovals[tokenId]; } /** * @dev See {IERC721-setApprovalForAll}. */ function setApprovalForAll(address operator, bool approved) public virtual override { _setApprovalForAll(_msgSender(), operator, approved); } /** * @dev See {IERC721-isApprovedForAll}. */ function isApprovedForAll(address owner, address operator) public view virtual override returns (bool) { return _operatorApprovals[owner][operator]; } /** * @dev See {IERC721-transferFrom}. */ function transferFrom( address from, address to, uint256 tokenId ) public virtual override { //solhint-disable-next-line max-line-length require(_isApprovedOrOwner(_msgSender(), tokenId), "ERC721: caller is not token 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: caller is not token 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) { address owner = ERC721.ownerOf(tokenId); return (spender == owner || isApprovedForAll(owner, spender) || getApproved(tokenId) == spender); } /** * @dev Safely mints `tokenId` and transfers it to `to`. * * Requirements: * * - `tokenId` must not exist. * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */ function _safeMint(address to, uint256 tokenId) internal virtual { _safeMint(to, tokenId, ""); } /** * @dev Same as {xref-ERC721-_safeMint-address-uint256-}[`_safeMint`], with an additional `data` parameter which is * forwarded in {IERC721Receiver-onERC721Received} to contract recipients. */ function _safeMint( address to, uint256 tokenId, bytes memory data ) internal virtual { _mint(to, tokenId); require( _checkOnERC721Received(address(0), to, tokenId, data), "ERC721: transfer to non ERC721Receiver implementer" ); } /** * @dev Mints `tokenId` and transfers it to `to`. * * WARNING: Usage of this method is discouraged, use {_safeMint} whenever possible * * Requirements: * * - `tokenId` must not exist. * - `to` cannot be the zero address. * * Emits a {Transfer} event. */ function _mint(address to, uint256 tokenId) internal virtual { require(to != address(0), "ERC721: mint to the zero address"); require(!_exists(tokenId), "ERC721: token already minted"); _beforeTokenTransfer(address(0), to, tokenId); _balances[to] += 1; _owners[tokenId] = to; emit Transfer(address(0), to, tokenId); _afterTokenTransfer(address(0), to, tokenId); } /** * @dev Destroys `tokenId`. * The approval is cleared when the token is burned. * * Requirements: * * - `tokenId` must exist. * * Emits a {Transfer} event. */ function _burn(uint256 tokenId) internal virtual { address owner = 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); _afterTokenTransfer(owner, address(0), tokenId); } /** * @dev Transfers `tokenId` from `from` to `to`. * As opposed to {transferFrom}, this imposes no restrictions on msg.sender. * * Requirements: * * - `to` cannot be the zero address. * - `tokenId` token must be owned by `from`. * * Emits a {Transfer} event. */ function _transfer( address from, address to, uint256 tokenId ) internal virtual { require(ERC721.ownerOf(tokenId) == from, "ERC721: transfer from incorrect owner"); require(to != address(0), "ERC721: transfer to the zero address"); _beforeTokenTransfer(from, to, tokenId); // Clear approvals from the previous owner _approve(address(0), tokenId); _balances[from] -= 1; _balances[to] += 1; _owners[tokenId] = to; emit Transfer(from, to, tokenId); _afterTokenTransfer(from, to, tokenId); } /** * @dev Approve `to` to operate on `tokenId` * * Emits an {Approval} event. */ function _approve(address to, uint256 tokenId) internal virtual { _tokenApprovals[tokenId] = to; emit Approval(ERC721.ownerOf(tokenId), to, tokenId); } /** * @dev Approve `operator` to operate on all of `owner` tokens * * Emits an {ApprovalForAll} event. */ function _setApprovalForAll( address owner, address operator, bool approved ) internal virtual { require(owner != operator, "ERC721: approve to caller"); _operatorApprovals[owner][operator] = approved; emit ApprovalForAll(owner, operator, approved); } /** * @dev Reverts if the `tokenId` has not been minted yet. */ function _requireMinted(uint256 tokenId) internal view virtual { require(_exists(tokenId), "ERC721: invalid token ID"); } /** * @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 { /// @solidity memory-safe-assembly assembly { revert(add(32, reason), mload(reason)) } } } } else { return true; } } /** * @dev Hook that is called before any token transfer. This includes minting * and burning. * * Calling conditions: * * - When `from` and `to` are both non-zero, ``from``'s `tokenId` will be * transferred to `to`. * - When `from` is zero, `tokenId` will be minted for `to`. * - When `to` is zero, ``from``'s `tokenId` will be burned. * - `from` and `to` are never both zero. * * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks]. */ function _beforeTokenTransfer( address from, address to, uint256 tokenId ) internal virtual {} /** * @dev Hook that is called after any transfer of tokens. This includes * minting and burning. * * Calling conditions: * * - when `from` and `to` are both non-zero. * - `from` and `to` are never both zero. * * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks]. */ function _afterTokenTransfer( address from, address to, uint256 tokenId ) internal virtual {} }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.7.0) (access/Ownable.sol) 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() { _transferOwnership(_msgSender()); } /** * @dev Throws if called by any account other than the owner. */ modifier onlyOwner() { _checkOwner(); _; } /** * @dev Returns the address of the current owner. */ function owner() public view virtual returns (address) { return _owner; } /** * @dev Throws if the sender is not the owner. */ function _checkOwner() internal view virtual { require(owner() == _msgSender(), "Ownable: caller is not the owner"); } /** * @dev Leaves the contract without owner. It will not be possible to call * `onlyOwner` functions anymore. Can only be called by the current owner. * * NOTE: Renouncing ownership will leave the contract without an owner, * thereby removing any functionality that is only available to the owner. */ function renounceOwnership() public virtual onlyOwner { _transferOwnership(address(0)); } /** * @dev Transfers ownership of the contract to a new account (`newOwner`). * Can only be called by the current owner. */ function transferOwnership(address newOwner) public virtual onlyOwner { require(newOwner != address(0), "Ownable: new owner is the zero address"); _transferOwnership(newOwner); } /** * @dev Transfers ownership of the contract to a new account (`newOwner`). * Internal function without access restriction. */ function _transferOwnership(address newOwner) internal virtual { address oldOwner = _owner; _owner = newOwner; emit OwnershipTransferred(oldOwner, newOwner); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/Counters.sol) pragma solidity ^0.8.0; /** * @title Counters * @author Matt Condon (@shrugs) * @dev Provides counters that can only be incremented, decremented or reset. This can be used e.g. to track the number * of elements in a mapping, issuing ERC721 ids, or counting request ids. * * Include with `using Counters for Counters.Counter;` */ library Counters { struct Counter { // This variable should never be directly accessed by users of the library: interactions must be restricted to // the library's function. As of Solidity v0.5.2, this cannot be enforced, though there is a proposal to add // this feature: see https://github.com/ethereum/solidity/issues/4637 uint256 _value; // default: 0 } function current(Counter storage counter) internal view returns (uint256) { return counter._value; } function increment(Counter storage counter) internal { unchecked { counter._value += 1; } } function decrement(Counter storage counter) internal { uint256 value = counter._value; require(value > 0, "Counter: decrement overflow"); unchecked { counter._value = value - 1; } } function reset(Counter storage counter) internal { counter._value = 0; } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.6.0) (token/ERC20/IERC20.sol) pragma solidity ^0.8.0; /** * @dev Interface of the ERC20 standard as defined in the EIP. */ interface IERC20 { /** * @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); /** * @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 `to`. * * Returns a boolean value indicating whether the operation succeeded. * * Emits a {Transfer} event. */ function transfer(address to, 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 `from` to `to` 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 from, address to, uint256 amount ) external returns (bool); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (token/ERC721/extensions/ERC721Enumerable.sol) pragma solidity ^0.8.0; import "../ERC721.sol"; import "./IERC721Enumerable.sol"; /** * @dev This implements an optional extension of {ERC721} defined in the EIP that adds * enumerability of all the token ids in the contract as well as all token ids owned by each * account. */ abstract contract ERC721Enumerable is ERC721, IERC721Enumerable { // Mapping from owner to list of owned token IDs mapping(address => mapping(uint256 => uint256)) private _ownedTokens; // Mapping from token ID to index of the owner tokens list mapping(uint256 => uint256) private _ownedTokensIndex; // Array with all token ids, used for enumeration uint256[] private _allTokens; // Mapping from token id to position in the allTokens array mapping(uint256 => uint256) private _allTokensIndex; /** * @dev See {IERC165-supportsInterface}. */ function supportsInterface(bytes4 interfaceId) public view virtual override(IERC165, ERC721) returns (bool) { return interfaceId == type(IERC721Enumerable).interfaceId || super.supportsInterface(interfaceId); } /** * @dev See {IERC721Enumerable-tokenOfOwnerByIndex}. */ function tokenOfOwnerByIndex(address owner, uint256 index) public view virtual override returns (uint256) { require(index < ERC721.balanceOf(owner), "ERC721Enumerable: owner index out of bounds"); return _ownedTokens[owner][index]; } /** * @dev See {IERC721Enumerable-totalSupply}. */ function totalSupply() public view virtual override returns (uint256) { return _allTokens.length; } /** * @dev See {IERC721Enumerable-tokenByIndex}. */ function tokenByIndex(uint256 index) public view virtual override returns (uint256) { require(index < ERC721Enumerable.totalSupply(), "ERC721Enumerable: global index out of bounds"); return _allTokens[index]; } /** * @dev Hook that is called before any token transfer. This includes minting * and burning. * * Calling conditions: * * - When `from` and `to` are both non-zero, ``from``'s `tokenId` will be * transferred to `to`. * - When `from` is zero, `tokenId` will be minted for `to`. * - When `to` is zero, ``from``'s `tokenId` will be burned. * - `from` cannot be the zero address. * - `to` cannot be the zero address. * * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks]. */ function _beforeTokenTransfer( address from, address to, uint256 tokenId ) internal virtual override { super._beforeTokenTransfer(from, to, tokenId); if (from == address(0)) { _addTokenToAllTokensEnumeration(tokenId); } else if (from != to) { _removeTokenFromOwnerEnumeration(from, tokenId); } if (to == address(0)) { _removeTokenFromAllTokensEnumeration(tokenId); } else if (to != from) { _addTokenToOwnerEnumeration(to, tokenId); } } /** * @dev Private function to add a token to this extension's ownership-tracking data structures. * @param to address representing the new owner of the given token ID * @param tokenId uint256 ID of the token to be added to the tokens list of the given address */ function _addTokenToOwnerEnumeration(address to, uint256 tokenId) private { uint256 length = ERC721.balanceOf(to); _ownedTokens[to][length] = tokenId; _ownedTokensIndex[tokenId] = length; } /** * @dev Private function to add a token to this extension's token tracking data structures. * @param tokenId uint256 ID of the token to be added to the tokens list */ function _addTokenToAllTokensEnumeration(uint256 tokenId) private { _allTokensIndex[tokenId] = _allTokens.length; _allTokens.push(tokenId); } /** * @dev Private function to remove a token from this extension's ownership-tracking data structures. Note that * while the token is not assigned a new owner, the `_ownedTokensIndex` mapping is _not_ updated: this allows for * gas optimizations e.g. when performing a transfer operation (avoiding double writes). * This has O(1) time complexity, but alters the order of the _ownedTokens array. * @param from address representing the previous owner of the given token ID * @param tokenId uint256 ID of the token to be removed from the tokens list of the given address */ function _removeTokenFromOwnerEnumeration(address from, uint256 tokenId) private { // To prevent a gap in from's tokens array, we store the last token in the index of the token to delete, and // then delete the last slot (swap and pop). uint256 lastTokenIndex = ERC721.balanceOf(from) - 1; uint256 tokenIndex = _ownedTokensIndex[tokenId]; // When the token to delete is the last token, the swap operation is unnecessary if (tokenIndex != lastTokenIndex) { uint256 lastTokenId = _ownedTokens[from][lastTokenIndex]; _ownedTokens[from][tokenIndex] = lastTokenId; // Move the last token to the slot of the to-delete token _ownedTokensIndex[lastTokenId] = tokenIndex; // Update the moved token's index } // This also deletes the contents at the last position of the array delete _ownedTokensIndex[tokenId]; delete _ownedTokens[from][lastTokenIndex]; } /** * @dev Private function to remove a token from this extension's token tracking data structures. * This has O(1) time complexity, but alters the order of the _allTokens array. * @param tokenId uint256 ID of the token to be removed from the tokens list */ function _removeTokenFromAllTokensEnumeration(uint256 tokenId) private { // To prevent a gap in the tokens array, we store the last token in the index of the token to delete, and // then delete the last slot (swap and pop). uint256 lastTokenIndex = _allTokens.length - 1; uint256 tokenIndex = _allTokensIndex[tokenId]; // When the token to delete is the last token, the swap operation is unnecessary. However, since this occurs so // rarely (when the last minted token is burnt) that we still do the swap here to avoid the gas cost of adding // an 'if' statement (like in _removeTokenFromOwnerEnumeration) uint256 lastTokenId = _allTokens[lastTokenIndex]; _allTokens[tokenIndex] = lastTokenId; // Move the last token to the slot of the to-delete token _allTokensIndex[lastTokenId] = tokenIndex; // Update the moved token's index // This also deletes the contents at the last position of the array delete _allTokensIndex[tokenId]; _allTokens.pop(); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (interfaces/IERC2981.sol) pragma solidity ^0.8.0; import "@openzeppelin/contracts/utils/introspection/IERC165.sol"; /** * @dev Interface for the NFT Royalty Standard. * * A standardized way to retrieve royalty payment information for non-fungible tokens (NFTs) to enable universal * support for royalty payments across all NFT marketplaces and ecosystem participants. * * _Available since v4.5._ */ interface IERC2981 is IERC165 { /** * @dev Returns how much royalty is owed and to whom, based on a sale price that may be denominated in any unit of * exchange. The royalty amount is denominated and should be payed in that same unit of exchange. */ function royaltyInfo(uint256 tokenId, uint256 salePrice) external view returns (address receiver, uint256 royaltyAmount); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/introspection/ERC165.sol) 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 // OpenZeppelin Contracts v4.4.1 (utils/introspection/IERC165.sol) pragma solidity ^0.8.0; /** * @dev Interface of the ERC165 standard, as defined in the * https://eips.ethereum.org/EIPS/eip-165[EIP]. * * Implementers can declare support of contract interfaces, which can then be * queried by others ({ERC165Checker}). * * For an implementation, see {ERC165}. */ interface 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 // OpenZeppelin Contracts (last updated v4.7.0) (token/ERC721/IERC721.sol) 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`. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must exist and be owned by `from`. * - If the caller is not `from`, it must be approved to move this token by either {approve} or {setApprovalForAll}. * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */ function safeTransferFrom( address from, address to, uint256 tokenId, bytes calldata data ) external; /** * @dev Safely transfers `tokenId` token from `from` to `to`, checking first that contract recipients * are aware of the ERC721 protocol to prevent tokens from being forever locked. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must exist and be owned by `from`. * - If the caller is not `from`, it must have been allowed to move this token by either {approve} or {setApprovalForAll}. * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */ function safeTransferFrom( address from, address to, uint256 tokenId ) external; /** * @dev Transfers `tokenId` token from `from` to `to`. * * WARNING: Usage of this method is discouraged, use {safeTransferFrom} whenever possible. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must be owned by `from`. * - If the caller is not `from`, it must be approved to move this token by either {approve} or {setApprovalForAll}. * * Emits a {Transfer} event. */ function transferFrom( address from, address to, uint256 tokenId ) external; /** * @dev Gives permission to `to` to transfer `tokenId` token to another account. * The approval is cleared when the token is transferred. * * Only a single account can be approved at a time, so approving the zero address clears previous approvals. * * Requirements: * * - The caller must own the token or be an approved operator. * - `tokenId` must exist. * * Emits an {Approval} event. */ function approve(address to, uint256 tokenId) external; /** * @dev Approve or remove `operator` as an operator for the caller. * Operators can call {transferFrom} or {safeTransferFrom} for any token owned by the caller. * * Requirements: * * - The `operator` cannot be the caller. * * Emits an {ApprovalForAll} event. */ function setApprovalForAll(address operator, bool _approved) external; /** * @dev Returns the account approved for `tokenId` token. * * Requirements: * * - `tokenId` must exist. */ function getApproved(uint256 tokenId) external view returns (address operator); /** * @dev Returns if the `operator` is allowed to manage all of the assets of `owner`. * * See {setApprovalForAll} */ function isApprovedForAll(address owner, address operator) external view returns (bool); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.6.0) (token/ERC721/IERC721Receiver.sol) pragma solidity ^0.8.0; /** * @title ERC721 token receiver interface * @dev Interface for any contract that wants to support safeTransfers * from ERC721 asset contracts. */ interface 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 `IERC721Receiver.onERC721Received.selector`. */ function onERC721Received( address operator, address from, uint256 tokenId, bytes calldata data ) external returns (bytes4); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (token/ERC721/extensions/IERC721Metadata.sol) pragma solidity ^0.8.0; import "../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 // OpenZeppelin Contracts (last updated v4.7.0) (utils/Address.sol) pragma solidity ^0.8.1; /** * @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 * ==== * * [IMPORTANT] * ==== * You shouldn't rely on `isContract` to protect against flash loan attacks! * * Preventing calls from contracts is highly discouraged. It breaks composability, breaks support for smart wallets * like Gnosis Safe, and does not provide security since it can be circumvented by calling from a contract * constructor. * ==== */ function isContract(address account) internal view returns (bool) { // This method relies on extcodesize/address.code.length, which returns 0 // for contracts in construction, since the code is only stored at the end // of the constructor execution. return account.code.length > 0; } /** * @dev Replacement for Solidity's `transfer`: sends `amount` wei to * `recipient`, forwarding all available gas and reverting on errors. * * https://eips.ethereum.org/EIPS/eip-1884[EIP1884] increases the gas cost * of certain opcodes, possibly making contracts go over the 2300 gas limit * imposed by `transfer`, making them unable to receive funds via * `transfer`. {sendValue} removes this limitation. * * https://diligence.consensys.net/posts/2019/09/stop-using-soliditys-transfer-now/[Learn more]. * * IMPORTANT: because control is transferred to `recipient`, care must be * taken to not create reentrancy vulnerabilities. Consider using * {ReentrancyGuard} or the * https://solidity.readthedocs.io/en/v0.5.11/security-considerations.html#use-the-checks-effects-interactions-pattern[checks-effects-interactions pattern]. */ function sendValue(address payable recipient, uint256 amount) internal { require(address(this).balance >= amount, "Address: insufficient balance"); (bool success, ) = recipient.call{value: amount}(""); require(success, "Address: unable to send value, recipient may have reverted"); } /** * @dev Performs a Solidity function call using a low level `call`. A * plain `call` is an unsafe replacement for a function call: use this * function instead. * * If `target` reverts with a revert reason, it is bubbled up by this * function (like regular Solidity function calls). * * Returns the raw returned data. To convert to the expected return value, * use https://solidity.readthedocs.io/en/latest/units-and-global-variables.html?highlight=abi.decode#abi-encoding-and-decoding-functions[`abi.decode`]. * * Requirements: * * - `target` must be a contract. * - calling `target` with `data` must not revert. * * _Available since v3.1._ */ function functionCall(address target, bytes memory data) internal returns (bytes memory) { return functionCall(target, data, "Address: low-level call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], but with * `errorMessage` as a fallback revert reason when `target` reverts. * * _Available since v3.1._ */ function functionCall( address target, bytes memory data, string memory errorMessage ) internal returns (bytes memory) { return functionCallWithValue(target, data, 0, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but also transferring `value` wei to `target`. * * Requirements: * * - the calling contract must have an ETH balance of at least `value`. * - the called Solidity function must be `payable`. * * _Available since v3.1._ */ function functionCallWithValue( address target, bytes memory data, uint256 value ) internal returns (bytes memory) { return functionCallWithValue(target, data, value, "Address: low-level call with value failed"); } /** * @dev Same as {xref-Address-functionCallWithValue-address-bytes-uint256-}[`functionCallWithValue`], but * with `errorMessage` as a fallback revert reason when `target` reverts. * * _Available since v3.1._ */ function functionCallWithValue( address target, bytes memory data, uint256 value, string memory errorMessage ) internal returns (bytes memory) { require(address(this).balance >= value, "Address: insufficient balance for call"); require(isContract(target), "Address: call to non-contract"); (bool success, bytes memory returndata) = target.call{value: value}(data); return verifyCallResult(success, returndata, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but performing a static call. * * _Available since v3.3._ */ function functionStaticCall(address target, bytes memory data) internal view returns (bytes memory) { return functionStaticCall(target, data, "Address: low-level static call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`], * but performing a static call. * * _Available since v3.3._ */ function functionStaticCall( address target, bytes memory data, string memory errorMessage ) internal view returns (bytes memory) { require(isContract(target), "Address: static call to non-contract"); (bool success, bytes memory returndata) = target.staticcall(data); return verifyCallResult(success, returndata, errorMessage); } /** * @dev 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 /// @solidity memory-safe-assembly assembly { let returndata_size := mload(returndata) revert(add(32, returndata), returndata_size) } } else { revert(errorMessage); } } } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/Context.sol) pragma solidity ^0.8.0; /** * @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 // OpenZeppelin Contracts (last updated v4.7.0) (utils/Strings.sol) pragma solidity ^0.8.0; /** * @dev String operations. */ library Strings { bytes16 private constant _HEX_SYMBOLS = "0123456789abcdef"; uint8 private constant _ADDRESS_LENGTH = 20; /** * @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); } /** * @dev Converts an `address` with fixed length of 20 bytes to its not checksummed ASCII `string` hexadecimal representation. */ function toHexString(address addr) internal pure returns (string memory) { return toHexString(uint256(uint160(addr)), _ADDRESS_LENGTH); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.5.0) (token/ERC721/extensions/IERC721Enumerable.sol) pragma solidity ^0.8.0; import "../IERC721.sol"; /** * @title ERC-721 Non-Fungible Token Standard, optional enumeration extension * @dev See https://eips.ethereum.org/EIPS/eip-721 */ interface IERC721Enumerable is IERC721 { /** * @dev Returns the total amount of tokens stored by the contract. */ function totalSupply() external view returns (uint256); /** * @dev Returns a token ID owned by `owner` at a given `index` of its token list. * Use along with {balanceOf} to enumerate all of ``owner``'s tokens. */ function tokenOfOwnerByIndex(address owner, uint256 index) external view returns (uint256); /** * @dev Returns a token ID at a given `index` of all the tokens stored by the contract. * Use along with {totalSupply} to enumerate all tokens. */ function tokenByIndex(uint256 index) external view returns (uint256); }
{ "optimizer": { "enabled": false, "runs": 200 }, "outputSelection": { "*": { "*": [ "evm.bytecode", "evm.deployedBytecode", "devdoc", "userdoc", "metadata", "abi" ] } }, "libraries": {} }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"inputs":[{"internalType":"address","name":"_squiggleErc20Address","type":"address"},{"internalType":"string","name":"_contractURI","type":"string"},{"internalType":"uint256","name":"_mintSquigPrice","type":"uint256"},{"internalType":"uint256","name":"_squigSupply","type":"uint256"}],"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":"_from","type":"address"},{"indexed":true,"internalType":"address","name":"_to","type":"address"},{"indexed":true,"internalType":"uint256","name":"_tokenId","type":"uint256"}],"name":"Minted","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Transfer","type":"event"},{"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":"enum SdNft.SalePhase","name":"_salePhase","type":"uint8"}],"name":"enterPhase","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getApproved","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"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":"mintSquigPrice","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"ownerOf","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_tokenId","type":"uint256"},{"internalType":"uint256","name":"_salePrice","type":"uint256"}],"name":"royaltyInfo","outputs":[{"internalType":"address","name":"","type":"address"},{"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":"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":"salePhase","outputs":[{"internalType":"enum SdNft.SalePhase","name":"","type":"uint8"}],"stateMutability":"view","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":"_contractURI","type":"string"}],"name":"setContractURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_receiver","type":"address"},{"internalType":"uint96","name":"_feeNumerator","type":"uint96"}],"name":"setDefaultRoyalty","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_squigSupply","type":"uint256"}],"name":"setSupply","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_to","type":"address"},{"internalType":"address","name":"_tokenIn","type":"address"},{"internalType":"uint256","name":"_count","type":"uint256"},{"internalType":"uint256","name":"_amountIn","type":"uint256"}],"name":"squigMint","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"squigSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"squiggleErc20Address","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes4","name":"interfaceId","type":"bytes4"}],"name":"supportsInterface","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"index","type":"uint256"}],"name":"tokenByIndex","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"uint256","name":"index","type":"uint256"}],"name":"tokenOfOwnerByIndex","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"tokenURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"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"}]
Contract Creation Code
60806040526000600c60146101000a81548160ff021916908360028111156200002d576200002c62000327565b5b021790555062989680600e5566038d7ea4c68000600f553480156200005157600080fd5b5060405162004ac338038062004ac3833981810160405281019062000077919062000593565b6040518060400160405280600581526020017f53644e66740000000000000000000000000000000000000000000000000000008152506040518060400160405280600b81526020017f5351554947474c4544414f0000000000000000000000000000000000000000008152508160009080519060200190620000fb92919062000277565b5080600190805190602001906200011492919062000277565b505050620001376200012b620001a960201b60201c565b620001b160201b60201c565b83600d60006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555082601190805190602001906200019092919062000277565b5081600e8190555080600f819055505050505062000689565b600033905090565b6000600c60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905081600c60006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b828054620002859062000653565b90600052602060002090601f016020900481019282620002a95760008555620002f5565b82601f10620002c457805160ff1916838001178555620002f5565b82800160010185558215620002f5579182015b82811115620002f4578251825591602001919060010190620002d7565b5b50905062000304919062000308565b5090565b5b808211156200032357600081600090555060010162000309565b5090565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602160045260246000fd5b6000604051905090565b600080fd5b600080fd5b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b600062000397826200036a565b9050919050565b620003a9816200038a565b8114620003b557600080fd5b50565b600081519050620003c9816200039e565b92915050565b600080fd5b600080fd5b6000601f19601f8301169050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b6200042482620003d9565b810181811067ffffffffffffffff82111715620004465762000445620003ea565b5b80604052505050565b60006200045b62000356565b905062000469828262000419565b919050565b600067ffffffffffffffff8211156200048c576200048b620003ea565b5b6200049782620003d9565b9050602081019050919050565b60005b83811015620004c4578082015181840152602081019050620004a7565b83811115620004d4576000848401525b50505050565b6000620004f1620004eb846200046e565b6200044f565b90508281526020810184848401111562000510576200050f620003d4565b5b6200051d848285620004a4565b509392505050565b600082601f8301126200053d576200053c620003cf565b5b81516200054f848260208601620004da565b91505092915050565b6000819050919050565b6200056d8162000558565b81146200057957600080fd5b50565b6000815190506200058d8162000562565b92915050565b60008060008060808587031215620005b057620005af62000360565b5b6000620005c087828801620003b8565b945050602085015167ffffffffffffffff811115620005e457620005e362000365565b5b620005f28782880162000525565b935050604062000605878288016200057c565b925050606062000618878288016200057c565b91505092959194509250565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b600060028204905060018216806200066c57607f821691505b6020821081141562000683576200068262000624565b5b50919050565b61442a80620006996000396000f3fe608060405234801561001057600080fd5b50600436106101cf5760003560e01c8063581d49ce1161010457806398d2613e116100a2578063deb9be5911610071578063deb9be591461052d578063e4f2487a14610549578063e985e9c514610567578063f2fde38b14610597576101cf565b806398d2613e146104a7578063a22cb465146104c5578063b88d4fde146104e1578063c87b56dd146104fd576101cf565b8063715018a6116100de578063715018a6146104455780638da5cb5b1461044f578063938e3d7b1461046d57806395d89b4114610489576101cf565b8063581d49ce146103c75780636352211e146103e557806370a0823114610415576101cf565b80632a55205a116101715780633a5cdf361161014b5780633a5cdf36146103415780633b4c4b251461035f57806342842e0e1461037b5780634f6ccce714610397576101cf565b80632a55205a146102c45780632f745c59146102f55780633123387b14610325576101cf565b8063081812fc116101ad578063081812fc1461023e578063095ea7b31461026e57806318160ddd1461028a57806323b872dd146102a8576101cf565b806301ffc9a7146101d457806304634d8d1461020457806306fdde0314610220575b600080fd5b6101ee60048036038101906101e99190612b55565b6105b3565b6040516101fb9190612b9d565b60405180910390f35b61021e60048036038101906102199190612c5a565b6105c5565b005b6102286105db565b6040516102359190612d33565b60405180910390f35b61025860048036038101906102539190612d8b565b61066d565b6040516102659190612dc7565b60405180910390f35b61028860048036038101906102839190612de2565b6106b3565b005b6102926107cb565b60405161029f9190612e31565b60405180910390f35b6102c260048036038101906102bd9190612e4c565b6107d8565b005b6102de60048036038101906102d99190612e9f565b610838565b6040516102ec929190612edf565b60405180910390f35b61030f600480360381019061030a9190612de2565b610a23565b60405161031c9190612e31565b60405180910390f35b61033f600480360381019061033a9190612f2d565b610ac8565b005b610349610b65565b6040516103569190612dc7565b60405180910390f35b61037960048036038101906103749190612d8b565b610b8b565b005b61039560048036038101906103909190612e4c565b610b9d565b005b6103b160048036038101906103ac9190612d8b565b610bbd565b6040516103be9190612e31565b60405180910390f35b6103cf610c2e565b6040516103dc9190612e31565b60405180910390f35b6103ff60048036038101906103fa9190612d8b565b610c34565b60405161040c9190612dc7565b60405180910390f35b61042f600480360381019061042a9190612f5a565b610ce6565b60405161043c9190612e31565b60405180910390f35b61044d610d9e565b005b610457610db2565b6040516104649190612dc7565b60405180910390f35b610487600480360381019061048291906130bc565b610ddc565b005b610491610dfe565b60405161049e9190612d33565b60405180910390f35b6104af610e90565b6040516104bc9190612e31565b60405180910390f35b6104df60048036038101906104da9190613131565b610e96565b005b6104fb60048036038101906104f69190613212565b610eac565b005b61051760048036038101906105129190612d8b565b610f0e565b6040516105249190612d33565b60405180910390f35b61054760048036038101906105429190613295565b610f76565b005b6105516112e1565b60405161055e9190613373565b60405180910390f35b610581600480360381019061057c919061338e565b6112f4565b60405161058e9190612b9d565b60405180910390f35b6105b160048036038101906105ac9190612f5a565b611388565b005b60006105be8261140c565b9050919050565b6105cd611486565b6105d78282611504565b5050565b6060600080546105ea906133fd565b80601f0160208091040260200160405190810160405280929190818152602001828054610616906133fd565b80156106635780601f1061063857610100808354040283529160200191610663565b820191906000526020600020905b81548152906001019060200180831161064657829003601f168201915b5050505050905090565b60006106788261169a565b6004600083815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050919050565b60006106be82610c34565b90508073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff16141561072f576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610726906134a1565b60405180910390fd5b8073ffffffffffffffffffffffffffffffffffffffff1661074e6116e5565b73ffffffffffffffffffffffffffffffffffffffff16148061077d575061077c816107776116e5565b6112f4565b5b6107bc576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016107b390613533565b60405180910390fd5b6107c683836116ed565b505050565b6000600880549050905090565b6107e96107e36116e5565b826117a6565b610828576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161081f906135c5565b60405180910390fd5b61083383838361183b565b505050565b6000806000600b60008681526020019081526020016000206040518060400160405290816000820160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020016000820160149054906101000a90046bffffffffffffffffffffffff166bffffffffffffffffffffffff166bffffffffffffffffffffffff16815250509050600073ffffffffffffffffffffffffffffffffffffffff16816000015173ffffffffffffffffffffffffffffffffffffffff1614156109ce57600a6040518060400160405290816000820160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020016000820160149054906101000a90046bffffffffffffffffffffffff166bffffffffffffffffffffffff166bffffffffffffffffffffffff168152505090505b60006109d8611aa2565b6bffffffffffffffffffffffff1682602001516bffffffffffffffffffffffff1686610a049190613614565b610a0e919061369d565b90508160000151819350935050509250929050565b6000610a2e83610ce6565b8210610a6f576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610a6690613740565b60405180910390fd5b600660008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600083815260200190815260200160002054905092915050565b610ad0611486565b60006002811115610ae457610ae36132fc565b5b816002811115610af757610af66132fc565b5b1415610b38576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610b2f906137ac565b60405180910390fd5b80600c60146101000a81548160ff02191690836002811115610b5d57610b5c6132fc565b5b021790555050565b600d60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b610b93611486565b80600f8190555050565b610bb883838360405180602001604052806000815250610eac565b505050565b6000610bc76107cb565b8210610c08576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610bff9061383e565b60405180910390fd5b60088281548110610c1c57610c1b61385e565b5b90600052602060002001549050919050565b600f5481565b6000806002600084815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff161415610cdd576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610cd4906138d9565b60405180910390fd5b80915050919050565b60008073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161415610d57576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610d4e9061396b565b60405180910390fd5b600360008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020549050919050565b610da6611486565b610db06000611aac565b565b6000600c60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b610de4611486565b8060119080519060200190610dfa929190612a46565b5050565b606060018054610e0d906133fd565b80601f0160208091040260200160405190810160405280929190818152602001828054610e39906133fd565b8015610e865780601f10610e5b57610100808354040283529160200191610e86565b820191906000526020600020905b815481529060010190602001808311610e6957829003601f168201915b5050505050905090565b600e5481565b610ea8610ea16116e5565b8383611b72565b5050565b610ebd610eb76116e5565b836117a6565b610efc576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610ef3906135c5565b60405180910390fd5b610f0884848484611cdf565b50505050565b6060610f198261169a565b6000610f23611d3b565b90506000815111610f435760405180602001604052806000815250610f6e565b80610f4d84611dcd565b604051602001610f5e9291906139c7565b6040516020818303038152906040525b915050919050565b60006002811115610f8a57610f896132fc565b5b600c60149054906101000a900460ff166002811115610fac57610fab6132fc565b5b11610fec576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610fe390613a37565b60405180910390fd5b600280811115610fff57610ffe6132fc565b5b600c60149054906101000a900460ff166002811115611021576110206132fc565b5b10611061576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161105890613aa3565b60405180910390fd5b600d60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff16146110f1576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016110e890613b0f565b60405180910390fd5b600d60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166318160ddd6040518163ffffffff1660e01b815260040160206040518083038186803b15801561115957600080fd5b505afa15801561116d573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906111919190613b44565b600f54146111d4576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016111cb90613bbd565b60405180910390fd5b600e5482826111e3919061369d565b14611223576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161121a90613c4f565b60405180910390fd5b8273ffffffffffffffffffffffffffffffffffffffff166323b872dd3330846040518463ffffffff1660e01b815260040161126093929190613c6f565b602060405180830381600087803b15801561127a57600080fd5b505af115801561128e573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906112b29190613cbb565b5060005b828110156112da576112c785611f2e565b80806112d290613ce8565b9150506112b6565b5050505050565b600c60149054906101000a900460ff1681565b6000600560008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16905092915050565b611390611486565b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff161415611400576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016113f790613da3565b60405180910390fd5b61140981611aac565b50565b60007f2a55205a000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916148061147f575061147e82611faf565b5b9050919050565b61148e6116e5565b73ffffffffffffffffffffffffffffffffffffffff166114ac610db2565b73ffffffffffffffffffffffffffffffffffffffff1614611502576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016114f990613e0f565b60405180910390fd5b565b61150c611aa2565b6bffffffffffffffffffffffff16816bffffffffffffffffffffffff16111561156a576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161156190613ea1565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1614156115da576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016115d190613f0d565b60405180910390fd5b60405180604001604052808373ffffffffffffffffffffffffffffffffffffffff168152602001826bffffffffffffffffffffffff16815250600a60008201518160000160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555060208201518160000160146101000a8154816bffffffffffffffffffffffff02191690836bffffffffffffffffffffffff1602179055509050505050565b6116a381612029565b6116e2576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016116d9906138d9565b60405180910390fd5b50565b600033905090565b816004600083815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550808273ffffffffffffffffffffffffffffffffffffffff1661176083610c34565b73ffffffffffffffffffffffffffffffffffffffff167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b6000806117b283610c34565b90508073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff1614806117f457506117f381856112f4565b5b8061183257508373ffffffffffffffffffffffffffffffffffffffff1661181a8461066d565b73ffffffffffffffffffffffffffffffffffffffff16145b91505092915050565b8273ffffffffffffffffffffffffffffffffffffffff1661185b82610c34565b73ffffffffffffffffffffffffffffffffffffffff16146118b1576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016118a890613f9f565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161415611921576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161191890614031565b60405180910390fd5b61192c838383612095565b6119376000826116ed565b6001600360008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008282546119879190614051565b925050819055506001600360008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008282546119de9190614085565b92505081905550816002600083815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550808273ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a4611a9d8383836120a5565b505050565b6000612710905090565b6000600c60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905081600c60006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b8173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff161415611be1576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611bd890614127565b60405180910390fd5b80600560008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055508173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff167f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c3183604051611cd29190612b9d565b60405180910390a3505050565b611cea84848461183b565b611cf6848484846120aa565b611d35576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611d2c906141b9565b60405180910390fd5b50505050565b606060118054611d4a906133fd565b80601f0160208091040260200160405190810160405280929190818152602001828054611d76906133fd565b8015611dc35780601f10611d9857610100808354040283529160200191611dc3565b820191906000526020600020905b815481529060010190602001808311611da657829003601f168201915b5050505050905090565b60606000821415611e15576040518060400160405280600181526020017f30000000000000000000000000000000000000000000000000000000000000008152509050611f29565b600082905060005b60008214611e47578080611e3090613ce8565b915050600a82611e40919061369d565b9150611e1d565b60008167ffffffffffffffff811115611e6357611e62612f91565b5b6040519080825280601f01601f191660200182016040528015611e955781602001600182028036833780820191505090505b5090505b60008514611f2257600182611eae9190614051565b9150600a85611ebd91906141d9565b6030611ec99190614085565b60f81b818381518110611edf57611ede61385e565b5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a905350600a85611f1b919061369d565b9450611e99565b8093505050505b919050565b6000611f3a6010612241565b9050611f46601061224f565b611f508282612265565b808273ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff167f9d228d69b5fdb8d273a2336f8fb8612d039631024ea9bf09c424a9503aa078f060405160405180910390a45050565b60007f780e9d63000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19161480612022575061202182612283565b5b9050919050565b60008073ffffffffffffffffffffffffffffffffffffffff166002600084815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1614159050919050565b6120a0838383612365565b505050565b505050565b60006120cb8473ffffffffffffffffffffffffffffffffffffffff16612479565b15612234578373ffffffffffffffffffffffffffffffffffffffff1663150b7a026120f46116e5565b8786866040518563ffffffff1660e01b8152600401612116949392919061425f565b602060405180830381600087803b15801561213057600080fd5b505af192505050801561216157506040513d601f19601f8201168201806040525081019061215e91906142c0565b60015b6121e4573d8060008114612191576040519150601f19603f3d011682016040523d82523d6000602084013e612196565b606091505b506000815114156121dc576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016121d3906141b9565b60405180910390fd5b805181602001fd5b63150b7a0260e01b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916817bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614915050612239565b600190505b949350505050565b600081600001549050919050565b6001816000016000828254019250508190555050565b61227f82826040518060200160405280600081525061249c565b5050565b60007f80ac58cd000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916148061234e57507f5b5e139f000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b8061235e575061235d826124f7565b5b9050919050565b612370838383612561565b600073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff1614156123b3576123ae81612566565b6123f2565b8173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff16146123f1576123f083826125af565b5b5b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161415612435576124308161271c565b612474565b8273ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff16146124735761247282826127ed565b5b5b505050565b6000808273ffffffffffffffffffffffffffffffffffffffff163b119050919050565b6124a6838361286c565b6124b360008484846120aa565b6124f2576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016124e9906141b9565b60405180910390fd5b505050565b60007f01ffc9a7000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916149050919050565b505050565b6008805490506009600083815260200190815260200160002081905550600881908060018154018082558091505060019003906000526020600020016000909190919091505550565b600060016125bc84610ce6565b6125c69190614051565b90506000600760008481526020019081526020016000205490508181146126ab576000600660008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600084815260200190815260200160002054905080600660008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600084815260200190815260200160002081905550816007600083815260200190815260200160002081905550505b6007600084815260200190815260200160002060009055600660008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008381526020019081526020016000206000905550505050565b600060016008805490506127309190614051565b90506000600960008481526020019081526020016000205490506000600883815481106127605761275f61385e565b5b9060005260206000200154905080600883815481106127825761278161385e565b5b9060005260206000200181905550816009600083815260200190815260200160002081905550600960008581526020019081526020016000206000905560088054806127d1576127d06142ed565b5b6001900381819060005260206000200160009055905550505050565b60006127f883610ce6565b905081600660008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600083815260200190815260200160002081905550806007600084815260200190815260200160002081905550505050565b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1614156128dc576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016128d390614368565b60405180910390fd5b6128e581612029565b15612925576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161291c906143d4565b60405180910390fd5b61293160008383612095565b6001600360008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008282546129819190614085565b92505081905550816002600083815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550808273ffffffffffffffffffffffffffffffffffffffff16600073ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a4612a42600083836120a5565b5050565b828054612a52906133fd565b90600052602060002090601f016020900481019282612a745760008555612abb565b82601f10612a8d57805160ff1916838001178555612abb565b82800160010185558215612abb579182015b82811115612aba578251825591602001919060010190612a9f565b5b509050612ac89190612acc565b5090565b5b80821115612ae5576000816000905550600101612acd565b5090565b6000604051905090565b600080fd5b600080fd5b60007fffffffff0000000000000000000000000000000000000000000000000000000082169050919050565b612b3281612afd565b8114612b3d57600080fd5b50565b600081359050612b4f81612b29565b92915050565b600060208284031215612b6b57612b6a612af3565b5b6000612b7984828501612b40565b91505092915050565b60008115159050919050565b612b9781612b82565b82525050565b6000602082019050612bb26000830184612b8e565b92915050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000612be382612bb8565b9050919050565b612bf381612bd8565b8114612bfe57600080fd5b50565b600081359050612c1081612bea565b92915050565b60006bffffffffffffffffffffffff82169050919050565b612c3781612c16565b8114612c4257600080fd5b50565b600081359050612c5481612c2e565b92915050565b60008060408385031215612c7157612c70612af3565b5b6000612c7f85828601612c01565b9250506020612c9085828601612c45565b9150509250929050565b600081519050919050565b600082825260208201905092915050565b60005b83811015612cd4578082015181840152602081019050612cb9565b83811115612ce3576000848401525b50505050565b6000601f19601f8301169050919050565b6000612d0582612c9a565b612d0f8185612ca5565b9350612d1f818560208601612cb6565b612d2881612ce9565b840191505092915050565b60006020820190508181036000830152612d4d8184612cfa565b905092915050565b6000819050919050565b612d6881612d55565b8114612d7357600080fd5b50565b600081359050612d8581612d5f565b92915050565b600060208284031215612da157612da0612af3565b5b6000612daf84828501612d76565b91505092915050565b612dc181612bd8565b82525050565b6000602082019050612ddc6000830184612db8565b92915050565b60008060408385031215612df957612df8612af3565b5b6000612e0785828601612c01565b9250506020612e1885828601612d76565b9150509250929050565b612e2b81612d55565b82525050565b6000602082019050612e466000830184612e22565b92915050565b600080600060608486031215612e6557612e64612af3565b5b6000612e7386828701612c01565b9350506020612e8486828701612c01565b9250506040612e9586828701612d76565b9150509250925092565b60008060408385031215612eb657612eb5612af3565b5b6000612ec485828601612d76565b9250506020612ed585828601612d76565b9150509250929050565b6000604082019050612ef46000830185612db8565b612f016020830184612e22565b9392505050565b60038110612f1557600080fd5b50565b600081359050612f2781612f08565b92915050565b600060208284031215612f4357612f42612af3565b5b6000612f5184828501612f18565b91505092915050565b600060208284031215612f7057612f6f612af3565b5b6000612f7e84828501612c01565b91505092915050565b600080fd5b600080fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b612fc982612ce9565b810181811067ffffffffffffffff82111715612fe857612fe7612f91565b5b80604052505050565b6000612ffb612ae9565b90506130078282612fc0565b919050565b600067ffffffffffffffff82111561302757613026612f91565b5b61303082612ce9565b9050602081019050919050565b82818337600083830152505050565b600061305f61305a8461300c565b612ff1565b90508281526020810184848401111561307b5761307a612f8c565b5b61308684828561303d565b509392505050565b600082601f8301126130a3576130a2612f87565b5b81356130b384826020860161304c565b91505092915050565b6000602082840312156130d2576130d1612af3565b5b600082013567ffffffffffffffff8111156130f0576130ef612af8565b5b6130fc8482850161308e565b91505092915050565b61310e81612b82565b811461311957600080fd5b50565b60008135905061312b81613105565b92915050565b6000806040838503121561314857613147612af3565b5b600061315685828601612c01565b92505060206131678582860161311c565b9150509250929050565b600067ffffffffffffffff82111561318c5761318b612f91565b5b61319582612ce9565b9050602081019050919050565b60006131b56131b084613171565b612ff1565b9050828152602081018484840111156131d1576131d0612f8c565b5b6131dc84828561303d565b509392505050565b600082601f8301126131f9576131f8612f87565b5b81356132098482602086016131a2565b91505092915050565b6000806000806080858703121561322c5761322b612af3565b5b600061323a87828801612c01565b945050602061324b87828801612c01565b935050604061325c87828801612d76565b925050606085013567ffffffffffffffff81111561327d5761327c612af8565b5b613289878288016131e4565b91505092959194509250565b600080600080608085870312156132af576132ae612af3565b5b60006132bd87828801612c01565b94505060206132ce87828801612c01565b93505060406132df87828801612d76565b92505060606132f087828801612d76565b91505092959194509250565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602160045260246000fd5b6003811061333c5761333b6132fc565b5b50565b600081905061334d8261332b565b919050565b600061335d8261333f565b9050919050565b61336d81613352565b82525050565b60006020820190506133886000830184613364565b92915050565b600080604083850312156133a5576133a4612af3565b5b60006133b385828601612c01565b92505060206133c485828601612c01565b9150509250929050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b6000600282049050600182168061341557607f821691505b60208210811415613429576134286133ce565b5b50919050565b7f4552433732313a20617070726f76616c20746f2063757272656e74206f776e6560008201527f7200000000000000000000000000000000000000000000000000000000000000602082015250565b600061348b602183612ca5565b91506134968261342f565b604082019050919050565b600060208201905081810360008301526134ba8161347e565b9050919050565b7f4552433732313a20617070726f76652063616c6c6572206973206e6f7420746f60008201527f6b656e206f776e6572206e6f7220617070726f76656420666f7220616c6c0000602082015250565b600061351d603e83612ca5565b9150613528826134c1565b604082019050919050565b6000602082019050818103600083015261354c81613510565b9050919050565b7f4552433732313a2063616c6c6572206973206e6f7420746f6b656e206f776e6560008201527f72206e6f7220617070726f766564000000000000000000000000000000000000602082015250565b60006135af602e83612ca5565b91506135ba82613553565b604082019050919050565b600060208201905081810360008301526135de816135a2565b9050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b600061361f82612d55565b915061362a83612d55565b9250817fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0483118215151615613663576136626135e5565b5b828202905092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b60006136a882612d55565b91506136b383612d55565b9250826136c3576136c261366e565b5b828204905092915050565b7f455243373231456e756d657261626c653a206f776e657220696e646578206f7560008201527f74206f6620626f756e6473000000000000000000000000000000000000000000602082015250565b600061372a602b83612ca5565b9150613735826136ce565b604082019050919050565b600060208201905081810360008301526137598161371d565b9050919050565b7f43616e6e6f7420736574206173206465706c6f79656400000000000000000000600082015250565b6000613796601683612ca5565b91506137a182613760565b602082019050919050565b600060208201905081810360008301526137c581613789565b9050919050565b7f455243373231456e756d657261626c653a20676c6f62616c20696e646578206f60008201527f7574206f6620626f756e64730000000000000000000000000000000000000000602082015250565b6000613828602c83612ca5565b9150613833826137cc565b604082019050919050565b600060208201905081810360008301526138578161381b565b9050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b7f4552433732313a20696e76616c696420746f6b656e2049440000000000000000600082015250565b60006138c3601883612ca5565b91506138ce8261388d565b602082019050919050565b600060208201905081810360008301526138f2816138b6565b9050919050565b7f4552433732313a2061646472657373207a65726f206973206e6f74206120766160008201527f6c6964206f776e65720000000000000000000000000000000000000000000000602082015250565b6000613955602983612ca5565b9150613960826138f9565b604082019050919050565b6000602082019050818103600083015261398481613948565b9050919050565b600081905092915050565b60006139a182612c9a565b6139ab818561398b565b93506139bb818560208601612cb6565b80840191505092915050565b60006139d38285613996565b91506139df8284613996565b91508190509392505050565b7f53776170206973206e6f7420796574206c697665000000000000000000000000600082015250565b6000613a21601483612ca5565b9150613a2c826139eb565b602082019050919050565b60006020820190508181036000830152613a5081613a14565b9050919050565b7f537761702069732063757272656e746c79207061757365640000000000000000600082015250565b6000613a8d601883612ca5565b9150613a9882613a57565b602082019050919050565b60006020820190508181036000830152613abc81613a80565b9050919050565b7f537570706c69656420746f6b656e206e6f742053515549472e00000000000000600082015250565b6000613af9601983612ca5565b9150613b0482613ac3565b602082019050919050565b60006020820190508181036000830152613b2881613aec565b9050919050565b600081519050613b3e81612d5f565b92915050565b600060208284031215613b5a57613b59612af3565b5b6000613b6884828501613b2f565b91505092915050565b7f535155494720737570706c7920686173206368616e6765642e00000000000000600082015250565b6000613ba7601983612ca5565b9150613bb282613b71565b602082019050919050565b60006020820190508181036000830152613bd681613b9a565b9050919050565b7f5472616e73616374696f6e2076616c756520646964206e6f7420657175616c2060008201527f737761702070726963652e000000000000000000000000000000000000000000602082015250565b6000613c39602b83612ca5565b9150613c4482613bdd565b604082019050919050565b60006020820190508181036000830152613c6881613c2c565b9050919050565b6000606082019050613c846000830186612db8565b613c916020830185612db8565b613c9e6040830184612e22565b949350505050565b600081519050613cb581613105565b92915050565b600060208284031215613cd157613cd0612af3565b5b6000613cdf84828501613ca6565b91505092915050565b6000613cf382612d55565b91507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff821415613d2657613d256135e5565b5b600182019050919050565b7f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160008201527f6464726573730000000000000000000000000000000000000000000000000000602082015250565b6000613d8d602683612ca5565b9150613d9882613d31565b604082019050919050565b60006020820190508181036000830152613dbc81613d80565b9050919050565b7f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572600082015250565b6000613df9602083612ca5565b9150613e0482613dc3565b602082019050919050565b60006020820190508181036000830152613e2881613dec565b9050919050565b7f455243323938313a20726f79616c7479206665652077696c6c2065786365656460008201527f2073616c65507269636500000000000000000000000000000000000000000000602082015250565b6000613e8b602a83612ca5565b9150613e9682613e2f565b604082019050919050565b60006020820190508181036000830152613eba81613e7e565b9050919050565b7f455243323938313a20696e76616c696420726563656976657200000000000000600082015250565b6000613ef7601983612ca5565b9150613f0282613ec1565b602082019050919050565b60006020820190508181036000830152613f2681613eea565b9050919050565b7f4552433732313a207472616e736665722066726f6d20696e636f72726563742060008201527f6f776e6572000000000000000000000000000000000000000000000000000000602082015250565b6000613f89602583612ca5565b9150613f9482613f2d565b604082019050919050565b60006020820190508181036000830152613fb881613f7c565b9050919050565b7f4552433732313a207472616e7366657220746f20746865207a65726f2061646460008201527f7265737300000000000000000000000000000000000000000000000000000000602082015250565b600061401b602483612ca5565b915061402682613fbf565b604082019050919050565b6000602082019050818103600083015261404a8161400e565b9050919050565b600061405c82612d55565b915061406783612d55565b92508282101561407a576140796135e5565b5b828203905092915050565b600061409082612d55565b915061409b83612d55565b9250827fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff038211156140d0576140cf6135e5565b5b828201905092915050565b7f4552433732313a20617070726f766520746f2063616c6c657200000000000000600082015250565b6000614111601983612ca5565b915061411c826140db565b602082019050919050565b6000602082019050818103600083015261414081614104565b9050919050565b7f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560008201527f63656976657220696d706c656d656e7465720000000000000000000000000000602082015250565b60006141a3603283612ca5565b91506141ae82614147565b604082019050919050565b600060208201905081810360008301526141d281614196565b9050919050565b60006141e482612d55565b91506141ef83612d55565b9250826141ff576141fe61366e565b5b828206905092915050565b600081519050919050565b600082825260208201905092915050565b60006142318261420a565b61423b8185614215565b935061424b818560208601612cb6565b61425481612ce9565b840191505092915050565b60006080820190506142746000830187612db8565b6142816020830186612db8565b61428e6040830185612e22565b81810360608301526142a08184614226565b905095945050505050565b6000815190506142ba81612b29565b92915050565b6000602082840312156142d6576142d5612af3565b5b60006142e4848285016142ab565b91505092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603160045260246000fd5b7f4552433732313a206d696e7420746f20746865207a65726f2061646472657373600082015250565b6000614352602083612ca5565b915061435d8261431c565b602082019050919050565b6000602082019050818103600083015261438181614345565b9050919050565b7f4552433732313a20746f6b656e20616c7265616479206d696e74656400000000600082015250565b60006143be601c83612ca5565b91506143c982614388565b602082019050919050565b600060208201905081810360008301526143ed816143b1565b905091905056fea26469706673582212206ede3856788a86a8c9334d80cb530a53d87b231e625a15db633ae5523dc5a4ce64736f6c63430008090033000000000000000000000000373acda15ce392362e4b46ed97a7feecd7ef9eb80000000000000000000000000000000000000000000000000000000000000080000000000000000000000000000000000000000000000000000000000098968000000000000000000000000000000000000000000000000000038d7ea4c68000000000000000000000000000000000000000000000000000000000000000002d68747470733a2f2f6e66742e7371756967676c6564616f2e636f6d2f6d656d626572736869702f746f6b656e2f00000000000000000000000000000000000000
Deployed Bytecode
0x608060405234801561001057600080fd5b50600436106101cf5760003560e01c8063581d49ce1161010457806398d2613e116100a2578063deb9be5911610071578063deb9be591461052d578063e4f2487a14610549578063e985e9c514610567578063f2fde38b14610597576101cf565b806398d2613e146104a7578063a22cb465146104c5578063b88d4fde146104e1578063c87b56dd146104fd576101cf565b8063715018a6116100de578063715018a6146104455780638da5cb5b1461044f578063938e3d7b1461046d57806395d89b4114610489576101cf565b8063581d49ce146103c75780636352211e146103e557806370a0823114610415576101cf565b80632a55205a116101715780633a5cdf361161014b5780633a5cdf36146103415780633b4c4b251461035f57806342842e0e1461037b5780634f6ccce714610397576101cf565b80632a55205a146102c45780632f745c59146102f55780633123387b14610325576101cf565b8063081812fc116101ad578063081812fc1461023e578063095ea7b31461026e57806318160ddd1461028a57806323b872dd146102a8576101cf565b806301ffc9a7146101d457806304634d8d1461020457806306fdde0314610220575b600080fd5b6101ee60048036038101906101e99190612b55565b6105b3565b6040516101fb9190612b9d565b60405180910390f35b61021e60048036038101906102199190612c5a565b6105c5565b005b6102286105db565b6040516102359190612d33565b60405180910390f35b61025860048036038101906102539190612d8b565b61066d565b6040516102659190612dc7565b60405180910390f35b61028860048036038101906102839190612de2565b6106b3565b005b6102926107cb565b60405161029f9190612e31565b60405180910390f35b6102c260048036038101906102bd9190612e4c565b6107d8565b005b6102de60048036038101906102d99190612e9f565b610838565b6040516102ec929190612edf565b60405180910390f35b61030f600480360381019061030a9190612de2565b610a23565b60405161031c9190612e31565b60405180910390f35b61033f600480360381019061033a9190612f2d565b610ac8565b005b610349610b65565b6040516103569190612dc7565b60405180910390f35b61037960048036038101906103749190612d8b565b610b8b565b005b61039560048036038101906103909190612e4c565b610b9d565b005b6103b160048036038101906103ac9190612d8b565b610bbd565b6040516103be9190612e31565b60405180910390f35b6103cf610c2e565b6040516103dc9190612e31565b60405180910390f35b6103ff60048036038101906103fa9190612d8b565b610c34565b60405161040c9190612dc7565b60405180910390f35b61042f600480360381019061042a9190612f5a565b610ce6565b60405161043c9190612e31565b60405180910390f35b61044d610d9e565b005b610457610db2565b6040516104649190612dc7565b60405180910390f35b610487600480360381019061048291906130bc565b610ddc565b005b610491610dfe565b60405161049e9190612d33565b60405180910390f35b6104af610e90565b6040516104bc9190612e31565b60405180910390f35b6104df60048036038101906104da9190613131565b610e96565b005b6104fb60048036038101906104f69190613212565b610eac565b005b61051760048036038101906105129190612d8b565b610f0e565b6040516105249190612d33565b60405180910390f35b61054760048036038101906105429190613295565b610f76565b005b6105516112e1565b60405161055e9190613373565b60405180910390f35b610581600480360381019061057c919061338e565b6112f4565b60405161058e9190612b9d565b60405180910390f35b6105b160048036038101906105ac9190612f5a565b611388565b005b60006105be8261140c565b9050919050565b6105cd611486565b6105d78282611504565b5050565b6060600080546105ea906133fd565b80601f0160208091040260200160405190810160405280929190818152602001828054610616906133fd565b80156106635780601f1061063857610100808354040283529160200191610663565b820191906000526020600020905b81548152906001019060200180831161064657829003601f168201915b5050505050905090565b60006106788261169a565b6004600083815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050919050565b60006106be82610c34565b90508073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff16141561072f576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610726906134a1565b60405180910390fd5b8073ffffffffffffffffffffffffffffffffffffffff1661074e6116e5565b73ffffffffffffffffffffffffffffffffffffffff16148061077d575061077c816107776116e5565b6112f4565b5b6107bc576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016107b390613533565b60405180910390fd5b6107c683836116ed565b505050565b6000600880549050905090565b6107e96107e36116e5565b826117a6565b610828576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161081f906135c5565b60405180910390fd5b61083383838361183b565b505050565b6000806000600b60008681526020019081526020016000206040518060400160405290816000820160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020016000820160149054906101000a90046bffffffffffffffffffffffff166bffffffffffffffffffffffff166bffffffffffffffffffffffff16815250509050600073ffffffffffffffffffffffffffffffffffffffff16816000015173ffffffffffffffffffffffffffffffffffffffff1614156109ce57600a6040518060400160405290816000820160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020016000820160149054906101000a90046bffffffffffffffffffffffff166bffffffffffffffffffffffff166bffffffffffffffffffffffff168152505090505b60006109d8611aa2565b6bffffffffffffffffffffffff1682602001516bffffffffffffffffffffffff1686610a049190613614565b610a0e919061369d565b90508160000151819350935050509250929050565b6000610a2e83610ce6565b8210610a6f576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610a6690613740565b60405180910390fd5b600660008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600083815260200190815260200160002054905092915050565b610ad0611486565b60006002811115610ae457610ae36132fc565b5b816002811115610af757610af66132fc565b5b1415610b38576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610b2f906137ac565b60405180910390fd5b80600c60146101000a81548160ff02191690836002811115610b5d57610b5c6132fc565b5b021790555050565b600d60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b610b93611486565b80600f8190555050565b610bb883838360405180602001604052806000815250610eac565b505050565b6000610bc76107cb565b8210610c08576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610bff9061383e565b60405180910390fd5b60088281548110610c1c57610c1b61385e565b5b90600052602060002001549050919050565b600f5481565b6000806002600084815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff161415610cdd576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610cd4906138d9565b60405180910390fd5b80915050919050565b60008073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161415610d57576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610d4e9061396b565b60405180910390fd5b600360008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020549050919050565b610da6611486565b610db06000611aac565b565b6000600c60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b610de4611486565b8060119080519060200190610dfa929190612a46565b5050565b606060018054610e0d906133fd565b80601f0160208091040260200160405190810160405280929190818152602001828054610e39906133fd565b8015610e865780601f10610e5b57610100808354040283529160200191610e86565b820191906000526020600020905b815481529060010190602001808311610e6957829003601f168201915b5050505050905090565b600e5481565b610ea8610ea16116e5565b8383611b72565b5050565b610ebd610eb76116e5565b836117a6565b610efc576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610ef3906135c5565b60405180910390fd5b610f0884848484611cdf565b50505050565b6060610f198261169a565b6000610f23611d3b565b90506000815111610f435760405180602001604052806000815250610f6e565b80610f4d84611dcd565b604051602001610f5e9291906139c7565b6040516020818303038152906040525b915050919050565b60006002811115610f8a57610f896132fc565b5b600c60149054906101000a900460ff166002811115610fac57610fab6132fc565b5b11610fec576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610fe390613a37565b60405180910390fd5b600280811115610fff57610ffe6132fc565b5b600c60149054906101000a900460ff166002811115611021576110206132fc565b5b10611061576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161105890613aa3565b60405180910390fd5b600d60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff16146110f1576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016110e890613b0f565b60405180910390fd5b600d60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166318160ddd6040518163ffffffff1660e01b815260040160206040518083038186803b15801561115957600080fd5b505afa15801561116d573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906111919190613b44565b600f54146111d4576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016111cb90613bbd565b60405180910390fd5b600e5482826111e3919061369d565b14611223576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161121a90613c4f565b60405180910390fd5b8273ffffffffffffffffffffffffffffffffffffffff166323b872dd3330846040518463ffffffff1660e01b815260040161126093929190613c6f565b602060405180830381600087803b15801561127a57600080fd5b505af115801561128e573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906112b29190613cbb565b5060005b828110156112da576112c785611f2e565b80806112d290613ce8565b9150506112b6565b5050505050565b600c60149054906101000a900460ff1681565b6000600560008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16905092915050565b611390611486565b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff161415611400576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016113f790613da3565b60405180910390fd5b61140981611aac565b50565b60007f2a55205a000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916148061147f575061147e82611faf565b5b9050919050565b61148e6116e5565b73ffffffffffffffffffffffffffffffffffffffff166114ac610db2565b73ffffffffffffffffffffffffffffffffffffffff1614611502576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016114f990613e0f565b60405180910390fd5b565b61150c611aa2565b6bffffffffffffffffffffffff16816bffffffffffffffffffffffff16111561156a576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161156190613ea1565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1614156115da576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016115d190613f0d565b60405180910390fd5b60405180604001604052808373ffffffffffffffffffffffffffffffffffffffff168152602001826bffffffffffffffffffffffff16815250600a60008201518160000160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555060208201518160000160146101000a8154816bffffffffffffffffffffffff02191690836bffffffffffffffffffffffff1602179055509050505050565b6116a381612029565b6116e2576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016116d9906138d9565b60405180910390fd5b50565b600033905090565b816004600083815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550808273ffffffffffffffffffffffffffffffffffffffff1661176083610c34565b73ffffffffffffffffffffffffffffffffffffffff167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b6000806117b283610c34565b90508073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff1614806117f457506117f381856112f4565b5b8061183257508373ffffffffffffffffffffffffffffffffffffffff1661181a8461066d565b73ffffffffffffffffffffffffffffffffffffffff16145b91505092915050565b8273ffffffffffffffffffffffffffffffffffffffff1661185b82610c34565b73ffffffffffffffffffffffffffffffffffffffff16146118b1576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016118a890613f9f565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161415611921576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161191890614031565b60405180910390fd5b61192c838383612095565b6119376000826116ed565b6001600360008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008282546119879190614051565b925050819055506001600360008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008282546119de9190614085565b92505081905550816002600083815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550808273ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a4611a9d8383836120a5565b505050565b6000612710905090565b6000600c60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905081600c60006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b8173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff161415611be1576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611bd890614127565b60405180910390fd5b80600560008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055508173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff167f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c3183604051611cd29190612b9d565b60405180910390a3505050565b611cea84848461183b565b611cf6848484846120aa565b611d35576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611d2c906141b9565b60405180910390fd5b50505050565b606060118054611d4a906133fd565b80601f0160208091040260200160405190810160405280929190818152602001828054611d76906133fd565b8015611dc35780601f10611d9857610100808354040283529160200191611dc3565b820191906000526020600020905b815481529060010190602001808311611da657829003601f168201915b5050505050905090565b60606000821415611e15576040518060400160405280600181526020017f30000000000000000000000000000000000000000000000000000000000000008152509050611f29565b600082905060005b60008214611e47578080611e3090613ce8565b915050600a82611e40919061369d565b9150611e1d565b60008167ffffffffffffffff811115611e6357611e62612f91565b5b6040519080825280601f01601f191660200182016040528015611e955781602001600182028036833780820191505090505b5090505b60008514611f2257600182611eae9190614051565b9150600a85611ebd91906141d9565b6030611ec99190614085565b60f81b818381518110611edf57611ede61385e565b5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a905350600a85611f1b919061369d565b9450611e99565b8093505050505b919050565b6000611f3a6010612241565b9050611f46601061224f565b611f508282612265565b808273ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff167f9d228d69b5fdb8d273a2336f8fb8612d039631024ea9bf09c424a9503aa078f060405160405180910390a45050565b60007f780e9d63000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19161480612022575061202182612283565b5b9050919050565b60008073ffffffffffffffffffffffffffffffffffffffff166002600084815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1614159050919050565b6120a0838383612365565b505050565b505050565b60006120cb8473ffffffffffffffffffffffffffffffffffffffff16612479565b15612234578373ffffffffffffffffffffffffffffffffffffffff1663150b7a026120f46116e5565b8786866040518563ffffffff1660e01b8152600401612116949392919061425f565b602060405180830381600087803b15801561213057600080fd5b505af192505050801561216157506040513d601f19601f8201168201806040525081019061215e91906142c0565b60015b6121e4573d8060008114612191576040519150601f19603f3d011682016040523d82523d6000602084013e612196565b606091505b506000815114156121dc576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016121d3906141b9565b60405180910390fd5b805181602001fd5b63150b7a0260e01b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916817bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614915050612239565b600190505b949350505050565b600081600001549050919050565b6001816000016000828254019250508190555050565b61227f82826040518060200160405280600081525061249c565b5050565b60007f80ac58cd000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916148061234e57507f5b5e139f000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b8061235e575061235d826124f7565b5b9050919050565b612370838383612561565b600073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff1614156123b3576123ae81612566565b6123f2565b8173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff16146123f1576123f083826125af565b5b5b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161415612435576124308161271c565b612474565b8273ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff16146124735761247282826127ed565b5b5b505050565b6000808273ffffffffffffffffffffffffffffffffffffffff163b119050919050565b6124a6838361286c565b6124b360008484846120aa565b6124f2576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016124e9906141b9565b60405180910390fd5b505050565b60007f01ffc9a7000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916149050919050565b505050565b6008805490506009600083815260200190815260200160002081905550600881908060018154018082558091505060019003906000526020600020016000909190919091505550565b600060016125bc84610ce6565b6125c69190614051565b90506000600760008481526020019081526020016000205490508181146126ab576000600660008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600084815260200190815260200160002054905080600660008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600084815260200190815260200160002081905550816007600083815260200190815260200160002081905550505b6007600084815260200190815260200160002060009055600660008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008381526020019081526020016000206000905550505050565b600060016008805490506127309190614051565b90506000600960008481526020019081526020016000205490506000600883815481106127605761275f61385e565b5b9060005260206000200154905080600883815481106127825761278161385e565b5b9060005260206000200181905550816009600083815260200190815260200160002081905550600960008581526020019081526020016000206000905560088054806127d1576127d06142ed565b5b6001900381819060005260206000200160009055905550505050565b60006127f883610ce6565b905081600660008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600083815260200190815260200160002081905550806007600084815260200190815260200160002081905550505050565b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1614156128dc576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016128d390614368565b60405180910390fd5b6128e581612029565b15612925576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161291c906143d4565b60405180910390fd5b61293160008383612095565b6001600360008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008282546129819190614085565b92505081905550816002600083815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550808273ffffffffffffffffffffffffffffffffffffffff16600073ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a4612a42600083836120a5565b5050565b828054612a52906133fd565b90600052602060002090601f016020900481019282612a745760008555612abb565b82601f10612a8d57805160ff1916838001178555612abb565b82800160010185558215612abb579182015b82811115612aba578251825591602001919060010190612a9f565b5b509050612ac89190612acc565b5090565b5b80821115612ae5576000816000905550600101612acd565b5090565b6000604051905090565b600080fd5b600080fd5b60007fffffffff0000000000000000000000000000000000000000000000000000000082169050919050565b612b3281612afd565b8114612b3d57600080fd5b50565b600081359050612b4f81612b29565b92915050565b600060208284031215612b6b57612b6a612af3565b5b6000612b7984828501612b40565b91505092915050565b60008115159050919050565b612b9781612b82565b82525050565b6000602082019050612bb26000830184612b8e565b92915050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000612be382612bb8565b9050919050565b612bf381612bd8565b8114612bfe57600080fd5b50565b600081359050612c1081612bea565b92915050565b60006bffffffffffffffffffffffff82169050919050565b612c3781612c16565b8114612c4257600080fd5b50565b600081359050612c5481612c2e565b92915050565b60008060408385031215612c7157612c70612af3565b5b6000612c7f85828601612c01565b9250506020612c9085828601612c45565b9150509250929050565b600081519050919050565b600082825260208201905092915050565b60005b83811015612cd4578082015181840152602081019050612cb9565b83811115612ce3576000848401525b50505050565b6000601f19601f8301169050919050565b6000612d0582612c9a565b612d0f8185612ca5565b9350612d1f818560208601612cb6565b612d2881612ce9565b840191505092915050565b60006020820190508181036000830152612d4d8184612cfa565b905092915050565b6000819050919050565b612d6881612d55565b8114612d7357600080fd5b50565b600081359050612d8581612d5f565b92915050565b600060208284031215612da157612da0612af3565b5b6000612daf84828501612d76565b91505092915050565b612dc181612bd8565b82525050565b6000602082019050612ddc6000830184612db8565b92915050565b60008060408385031215612df957612df8612af3565b5b6000612e0785828601612c01565b9250506020612e1885828601612d76565b9150509250929050565b612e2b81612d55565b82525050565b6000602082019050612e466000830184612e22565b92915050565b600080600060608486031215612e6557612e64612af3565b5b6000612e7386828701612c01565b9350506020612e8486828701612c01565b9250506040612e9586828701612d76565b9150509250925092565b60008060408385031215612eb657612eb5612af3565b5b6000612ec485828601612d76565b9250506020612ed585828601612d76565b9150509250929050565b6000604082019050612ef46000830185612db8565b612f016020830184612e22565b9392505050565b60038110612f1557600080fd5b50565b600081359050612f2781612f08565b92915050565b600060208284031215612f4357612f42612af3565b5b6000612f5184828501612f18565b91505092915050565b600060208284031215612f7057612f6f612af3565b5b6000612f7e84828501612c01565b91505092915050565b600080fd5b600080fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b612fc982612ce9565b810181811067ffffffffffffffff82111715612fe857612fe7612f91565b5b80604052505050565b6000612ffb612ae9565b90506130078282612fc0565b919050565b600067ffffffffffffffff82111561302757613026612f91565b5b61303082612ce9565b9050602081019050919050565b82818337600083830152505050565b600061305f61305a8461300c565b612ff1565b90508281526020810184848401111561307b5761307a612f8c565b5b61308684828561303d565b509392505050565b600082601f8301126130a3576130a2612f87565b5b81356130b384826020860161304c565b91505092915050565b6000602082840312156130d2576130d1612af3565b5b600082013567ffffffffffffffff8111156130f0576130ef612af8565b5b6130fc8482850161308e565b91505092915050565b61310e81612b82565b811461311957600080fd5b50565b60008135905061312b81613105565b92915050565b6000806040838503121561314857613147612af3565b5b600061315685828601612c01565b92505060206131678582860161311c565b9150509250929050565b600067ffffffffffffffff82111561318c5761318b612f91565b5b61319582612ce9565b9050602081019050919050565b60006131b56131b084613171565b612ff1565b9050828152602081018484840111156131d1576131d0612f8c565b5b6131dc84828561303d565b509392505050565b600082601f8301126131f9576131f8612f87565b5b81356132098482602086016131a2565b91505092915050565b6000806000806080858703121561322c5761322b612af3565b5b600061323a87828801612c01565b945050602061324b87828801612c01565b935050604061325c87828801612d76565b925050606085013567ffffffffffffffff81111561327d5761327c612af8565b5b613289878288016131e4565b91505092959194509250565b600080600080608085870312156132af576132ae612af3565b5b60006132bd87828801612c01565b94505060206132ce87828801612c01565b93505060406132df87828801612d76565b92505060606132f087828801612d76565b91505092959194509250565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602160045260246000fd5b6003811061333c5761333b6132fc565b5b50565b600081905061334d8261332b565b919050565b600061335d8261333f565b9050919050565b61336d81613352565b82525050565b60006020820190506133886000830184613364565b92915050565b600080604083850312156133a5576133a4612af3565b5b60006133b385828601612c01565b92505060206133c485828601612c01565b9150509250929050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b6000600282049050600182168061341557607f821691505b60208210811415613429576134286133ce565b5b50919050565b7f4552433732313a20617070726f76616c20746f2063757272656e74206f776e6560008201527f7200000000000000000000000000000000000000000000000000000000000000602082015250565b600061348b602183612ca5565b91506134968261342f565b604082019050919050565b600060208201905081810360008301526134ba8161347e565b9050919050565b7f4552433732313a20617070726f76652063616c6c6572206973206e6f7420746f60008201527f6b656e206f776e6572206e6f7220617070726f76656420666f7220616c6c0000602082015250565b600061351d603e83612ca5565b9150613528826134c1565b604082019050919050565b6000602082019050818103600083015261354c81613510565b9050919050565b7f4552433732313a2063616c6c6572206973206e6f7420746f6b656e206f776e6560008201527f72206e6f7220617070726f766564000000000000000000000000000000000000602082015250565b60006135af602e83612ca5565b91506135ba82613553565b604082019050919050565b600060208201905081810360008301526135de816135a2565b9050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b600061361f82612d55565b915061362a83612d55565b9250817fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0483118215151615613663576136626135e5565b5b828202905092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b60006136a882612d55565b91506136b383612d55565b9250826136c3576136c261366e565b5b828204905092915050565b7f455243373231456e756d657261626c653a206f776e657220696e646578206f7560008201527f74206f6620626f756e6473000000000000000000000000000000000000000000602082015250565b600061372a602b83612ca5565b9150613735826136ce565b604082019050919050565b600060208201905081810360008301526137598161371d565b9050919050565b7f43616e6e6f7420736574206173206465706c6f79656400000000000000000000600082015250565b6000613796601683612ca5565b91506137a182613760565b602082019050919050565b600060208201905081810360008301526137c581613789565b9050919050565b7f455243373231456e756d657261626c653a20676c6f62616c20696e646578206f60008201527f7574206f6620626f756e64730000000000000000000000000000000000000000602082015250565b6000613828602c83612ca5565b9150613833826137cc565b604082019050919050565b600060208201905081810360008301526138578161381b565b9050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b7f4552433732313a20696e76616c696420746f6b656e2049440000000000000000600082015250565b60006138c3601883612ca5565b91506138ce8261388d565b602082019050919050565b600060208201905081810360008301526138f2816138b6565b9050919050565b7f4552433732313a2061646472657373207a65726f206973206e6f74206120766160008201527f6c6964206f776e65720000000000000000000000000000000000000000000000602082015250565b6000613955602983612ca5565b9150613960826138f9565b604082019050919050565b6000602082019050818103600083015261398481613948565b9050919050565b600081905092915050565b60006139a182612c9a565b6139ab818561398b565b93506139bb818560208601612cb6565b80840191505092915050565b60006139d38285613996565b91506139df8284613996565b91508190509392505050565b7f53776170206973206e6f7420796574206c697665000000000000000000000000600082015250565b6000613a21601483612ca5565b9150613a2c826139eb565b602082019050919050565b60006020820190508181036000830152613a5081613a14565b9050919050565b7f537761702069732063757272656e746c79207061757365640000000000000000600082015250565b6000613a8d601883612ca5565b9150613a9882613a57565b602082019050919050565b60006020820190508181036000830152613abc81613a80565b9050919050565b7f537570706c69656420746f6b656e206e6f742053515549472e00000000000000600082015250565b6000613af9601983612ca5565b9150613b0482613ac3565b602082019050919050565b60006020820190508181036000830152613b2881613aec565b9050919050565b600081519050613b3e81612d5f565b92915050565b600060208284031215613b5a57613b59612af3565b5b6000613b6884828501613b2f565b91505092915050565b7f535155494720737570706c7920686173206368616e6765642e00000000000000600082015250565b6000613ba7601983612ca5565b9150613bb282613b71565b602082019050919050565b60006020820190508181036000830152613bd681613b9a565b9050919050565b7f5472616e73616374696f6e2076616c756520646964206e6f7420657175616c2060008201527f737761702070726963652e000000000000000000000000000000000000000000602082015250565b6000613c39602b83612ca5565b9150613c4482613bdd565b604082019050919050565b60006020820190508181036000830152613c6881613c2c565b9050919050565b6000606082019050613c846000830186612db8565b613c916020830185612db8565b613c9e6040830184612e22565b949350505050565b600081519050613cb581613105565b92915050565b600060208284031215613cd157613cd0612af3565b5b6000613cdf84828501613ca6565b91505092915050565b6000613cf382612d55565b91507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff821415613d2657613d256135e5565b5b600182019050919050565b7f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160008201527f6464726573730000000000000000000000000000000000000000000000000000602082015250565b6000613d8d602683612ca5565b9150613d9882613d31565b604082019050919050565b60006020820190508181036000830152613dbc81613d80565b9050919050565b7f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572600082015250565b6000613df9602083612ca5565b9150613e0482613dc3565b602082019050919050565b60006020820190508181036000830152613e2881613dec565b9050919050565b7f455243323938313a20726f79616c7479206665652077696c6c2065786365656460008201527f2073616c65507269636500000000000000000000000000000000000000000000602082015250565b6000613e8b602a83612ca5565b9150613e9682613e2f565b604082019050919050565b60006020820190508181036000830152613eba81613e7e565b9050919050565b7f455243323938313a20696e76616c696420726563656976657200000000000000600082015250565b6000613ef7601983612ca5565b9150613f0282613ec1565b602082019050919050565b60006020820190508181036000830152613f2681613eea565b9050919050565b7f4552433732313a207472616e736665722066726f6d20696e636f72726563742060008201527f6f776e6572000000000000000000000000000000000000000000000000000000602082015250565b6000613f89602583612ca5565b9150613f9482613f2d565b604082019050919050565b60006020820190508181036000830152613fb881613f7c565b9050919050565b7f4552433732313a207472616e7366657220746f20746865207a65726f2061646460008201527f7265737300000000000000000000000000000000000000000000000000000000602082015250565b600061401b602483612ca5565b915061402682613fbf565b604082019050919050565b6000602082019050818103600083015261404a8161400e565b9050919050565b600061405c82612d55565b915061406783612d55565b92508282101561407a576140796135e5565b5b828203905092915050565b600061409082612d55565b915061409b83612d55565b9250827fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff038211156140d0576140cf6135e5565b5b828201905092915050565b7f4552433732313a20617070726f766520746f2063616c6c657200000000000000600082015250565b6000614111601983612ca5565b915061411c826140db565b602082019050919050565b6000602082019050818103600083015261414081614104565b9050919050565b7f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560008201527f63656976657220696d706c656d656e7465720000000000000000000000000000602082015250565b60006141a3603283612ca5565b91506141ae82614147565b604082019050919050565b600060208201905081810360008301526141d281614196565b9050919050565b60006141e482612d55565b91506141ef83612d55565b9250826141ff576141fe61366e565b5b828206905092915050565b600081519050919050565b600082825260208201905092915050565b60006142318261420a565b61423b8185614215565b935061424b818560208601612cb6565b61425481612ce9565b840191505092915050565b60006080820190506142746000830187612db8565b6142816020830186612db8565b61428e6040830185612e22565b81810360608301526142a08184614226565b905095945050505050565b6000815190506142ba81612b29565b92915050565b6000602082840312156142d6576142d5612af3565b5b60006142e4848285016142ab565b91505092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603160045260246000fd5b7f4552433732313a206d696e7420746f20746865207a65726f2061646472657373600082015250565b6000614352602083612ca5565b915061435d8261431c565b602082019050919050565b6000602082019050818103600083015261438181614345565b9050919050565b7f4552433732313a20746f6b656e20616c7265616479206d696e74656400000000600082015250565b60006143be601c83612ca5565b91506143c982614388565b602082019050919050565b600060208201905081810360008301526143ed816143b1565b905091905056fea26469706673582212206ede3856788a86a8c9334d80cb530a53d87b231e625a15db633ae5523dc5a4ce64736f6c63430008090033
Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)
000000000000000000000000373acda15ce392362e4b46ed97a7feecd7ef9eb80000000000000000000000000000000000000000000000000000000000000080000000000000000000000000000000000000000000000000000000000098968000000000000000000000000000000000000000000000000000038d7ea4c68000000000000000000000000000000000000000000000000000000000000000002d68747470733a2f2f6e66742e7371756967676c6564616f2e636f6d2f6d656d626572736869702f746f6b656e2f00000000000000000000000000000000000000
-----Decoded View---------------
Arg [0] : _squiggleErc20Address (address): 0x373acdA15Ce392362e4b46ED97a7feEcD7EF9EB8
Arg [1] : _contractURI (string): https://nft.squiggledao.com/membership/token/
Arg [2] : _mintSquigPrice (uint256): 10000000
Arg [3] : _squigSupply (uint256): 1000000000000000
-----Encoded View---------------
7 Constructor Arguments found :
Arg [0] : 000000000000000000000000373acda15ce392362e4b46ed97a7feecd7ef9eb8
Arg [1] : 0000000000000000000000000000000000000000000000000000000000000080
Arg [2] : 0000000000000000000000000000000000000000000000000000000000989680
Arg [3] : 00000000000000000000000000000000000000000000000000038d7ea4c68000
Arg [4] : 000000000000000000000000000000000000000000000000000000000000002d
Arg [5] : 68747470733a2f2f6e66742e7371756967676c6564616f2e636f6d2f6d656d62
Arg [6] : 6572736869702f746f6b656e2f00000000000000000000000000000000000000
Loading...
Loading
Loading...
Loading
[ Download: CSV Export ]
[ Download: CSV Export ]
A token is a representation of an on-chain or off-chain asset. The token page shows information such as price, total supply, holders, transfers and social links. Learn more about this page in our Knowledge Base.