ERC-721
Overview
Max Total Supply
41 ASTG
Holders
40
Market
Volume (24H)
N/A
Min Price (24H)
N/A
Max Price (24H)
N/A
Other Info
Token Contract
Balance
1 ASTGLoading...
Loading
Loading...
Loading
Loading...
Loading
# | Exchange | Pair | Price | 24H Volume | % Volume |
---|
Contract Name:
Astraglade
Compiler Version
v0.8.0+commit.c7dfd78e
Contract Source Code (Solidity Standard Json-Input format)
//SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import '@openzeppelin/contracts/utils/cryptography/ECDSA.sol'; import '@openzeppelin/contracts/utils/Strings.sol'; import './ERC721Ownable.sol'; import './ERC2981/IERC2981Royalties.sol'; /// @title Astraglade /// @author Simon Fremaux (@dievardump) contract Astraglade is IERC2981Royalties, ERC721Ownable { using ECDSA for bytes32; using Strings for uint256; struct MintingOrder { address to; uint256 expiration; string jsonPart; } uint256 public nextTokenId; address public mintSigner; uint256 constant MAX_SUPPLY = 11111; uint256 constant PRICE = 0.0888 ether; mapping(uint256 => string) internal tokenGeneratedString; mapping(bytes32 => uint256) public messageToTokenId; /// @notice constructor /// @param name_ name of the contract (see ERC721) /// @param symbol_ symbol of the contract (see ERC721) /// @param contractURI_ The contract URI (containing its metadata) - can be empty "" /// @param openseaProxyRegistry_ OpenSea's proxy registry to allow gas-less listings - can be address(0) /// @param mintSigner_ Address of the wallet used to sign minting orders /// @param owner_ Address to whom transfer ownership (can be address(0), then owner is deployer) constructor( string memory name_, string memory symbol_, string memory contractURI_, address openseaProxyRegistry_, address mintSigner_, address owner_ ) ERC721Ownable( name_, symbol_, contractURI_, openseaProxyRegistry_, owner_ ) { mintSigner = mintSigner_; } /// @notice Mint one token using a minting order /// @dev mintingSignature must be a signature that matches `mintSigner` for `mintingOrder` /// @param mintingOrder the minting order /// @param mintingSignature signature for the mintingOrder function mint( MintingOrder memory mintingOrder, bytes memory mintingSignature ) external payable { bytes32 message = hashMintingOrder(mintingOrder) .toEthSignedMessageHash(); require( message.recover(mintingSignature) == mintSigner, 'Wrong minting order signature.' ); require( mintingOrder.expiration >= block.timestamp, 'Minting order expired.' ); require( mintingOrder.to == _msgSender(), 'Minting order for another address.' ); require(messageToTokenId[message] == 0, 'Token already minted.'); uint256 tokenId = nextTokenId + 1; require(tokenId <= MAX_SUPPLY, 'Max supply already reached.'); require(msg.value == PRICE, 'Incorrect value.'); messageToTokenId[message] = tokenId; _safeMint(mintingOrder.to, tokenId, ''); tokenGeneratedString[tokenId] = mintingOrder.jsonPart; nextTokenId = tokenId; } /// @inheritdoc ERC165 function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) { return ERC721Enumerable.supportsInterface(interfaceId) || interfaceId == type(IERC2981Royalties).interfaceId; } /// @notice Helper to get the price /// @return the price to mint function getPrice() external pure returns (uint256) { return PRICE; } /// @notice tokenURI override that returns a data:json application /// @inheritdoc ERC721 function tokenURI(uint256 tokenId) public view override returns (string memory) { require( _exists(tokenId), 'ERC721Metadata: URI query for nonexistent token' ); string memory astraType; if (tokenId <= 10) { astraType = 'Universa'; } else if (tokenId <= 100) { astraType = 'Galactica'; } else if (tokenId <= 1000) { astraType = 'Nebula'; } else if (tokenId <= 3000) { astraType = 'Meteora'; } else if (tokenId <= 10000) { astraType = 'Solaris'; } else if (tokenId <= 11110) { astraType = 'Supernova'; } else { astraType = 'Quanta'; } return string( abi.encodePacked( 'data:application/json;utf8,{"name":"Astraglade - ', tokenId.toString(), ' - ', astraType, '","license":"CC BY-SA 4.0","description":"Astraglade is an interactive, generative, 3D collectible experiment. Astraglades are collected through a unique social collection mechanism. Each version of Astraglade can be signed with a signature which will remain in the artwork forever.","created_by":"Fabin Rasheed","twitter":"@astraglade",', tokenGeneratedString[tokenId], '}' ) ); } /// @notice Hash the Minting Order so it can be signed by the signer /// @param mintingOrder the minting order /// @return the hash to sign function hashMintingOrder(MintingOrder memory mintingOrder) public pure returns (bytes32) { return keccak256(abi.encode(mintingOrder)); } /// @notice Helper for the owner to change current minting signer /// @dev needs to be owner /// @param mintSigner_ new signer function setMintingSigner(address mintSigner_) public onlyOwner { require(mintSigner_ != address(0), 'Signer address required'); mintSigner = mintSigner_; } /// @dev Owner withdraw balance function function withdraw() external onlyOwner { uint256 balance_ = address(this).balance; payable(address(0xe4657aF058E3f844919c3ee713DF09c3F2949447)).transfer( (balance_ * 30) / 100 ); payable(address(0xb275E5aa8011eA32506a91449B190213224aEc1e)).transfer( (balance_ * 35) / 100 ); payable(address(0xdAC81C3642b520584eD0E743729F238D1c350E62)).transfer( address(this).balance ); } /// @notice 10% royalties going to this contract /// @inheritdoc IERC2981Royalties function royaltyInfo(uint256, uint256 value) external view override returns (address receiver, uint256 royaltyAmount) { receiver = address(this); royaltyAmount = (value * 1000) / 10000; } /// @notice Helpers that returns the MintingOrder plus the message to sign /// @param to the address of the creator /// @param jsonPart the json to mint /// @return mintingOrder and message to hash function createMintingOrder(address to, string memory jsonPart) external view returns (MintingOrder memory mintingOrder, bytes32 message) { mintingOrder = MintingOrder({ to: to, expiration: block.timestamp + 15 * 60, jsonPart: jsonPart }); message = hashMintingOrder(mintingOrder); } /// @notice returns a tokenId from an mintingOrder, used to know if already minted /// @param mintingOrder the minting order to check /// @return an integer. 0 if not minted, else the tokenId function tokenIdFromOrder(MintingOrder memory mintingOrder) external view returns (uint256) { bytes32 message = hashMintingOrder(mintingOrder) .toEthSignedMessageHash(); return messageToTokenId[message]; } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import "../utils/Context.sol"; /** * @dev Contract module which provides a basic access control mechanism, where * there is an account (an owner) that can be granted exclusive access to * specific functions. * * By default, the owner account will be the one that deploys the contract. This * can later be changed with {transferOwnership}. * * This module is used through inheritance. It will make available the modifier * `onlyOwner`, which can be applied to your functions to restrict their use to * the owner. */ abstract contract Ownable is Context { address private _owner; event OwnershipTransferred(address indexed previousOwner, address indexed newOwner); /** * @dev Initializes the contract setting the deployer as the initial owner. */ constructor() { _setOwner(_msgSender()); } /** * @dev Returns the address of the current owner. */ function owner() public view virtual returns (address) { return _owner; } /** * @dev Throws if called by any account other than the owner. */ modifier onlyOwner() { require(owner() == _msgSender(), "Ownable: caller is not the owner"); _; } /** * @dev Leaves the contract without owner. It will not be possible to call * `onlyOwner` functions anymore. Can only be called by the current owner. * * NOTE: Renouncing ownership will leave the contract without an owner, * thereby removing any functionality that is only available to the owner. */ function renounceOwnership() public virtual onlyOwner { _setOwner(address(0)); } /** * @dev Transfers ownership of the contract to a new account (`newOwner`). * Can only be called by the current owner. */ function transferOwnership(address newOwner) public virtual onlyOwner { require(newOwner != address(0), "Ownable: new owner is the zero address"); _setOwner(newOwner); } function _setOwner(address newOwner) private { address oldOwner = _owner; _owner = newOwner; emit OwnershipTransferred(oldOwner, newOwner); } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import "./IERC721.sol"; import "./IERC721Receiver.sol"; import "./extensions/IERC721Metadata.sol"; import "../../utils/Address.sol"; import "../../utils/Context.sol"; import "../../utils/Strings.sol"; import "../../utils/introspection/ERC165.sol"; /** * @dev Implementation of https://eips.ethereum.org/EIPS/eip-721[ERC721] Non-Fungible Token Standard, including * the Metadata extension, but not including the Enumerable extension, which is available separately as * {ERC721Enumerable}. */ contract ERC721 is Context, ERC165, IERC721, IERC721Metadata { using Address for address; using Strings for uint256; // Token name string private _name; // Token symbol string private _symbol; // Mapping from token ID to owner address mapping(uint256 => address) private _owners; // Mapping owner address to token count mapping(address => uint256) private _balances; // Mapping from token ID to approved address mapping(uint256 => address) private _tokenApprovals; // Mapping from owner to operator approvals mapping(address => mapping(address => bool)) private _operatorApprovals; /** * @dev Initializes the contract by setting a `name` and a `symbol` to the token collection. */ constructor(string memory name_, string memory symbol_) { _name = name_; _symbol = symbol_; } /** * @dev See {IERC165-supportsInterface}. */ function supportsInterface(bytes4 interfaceId) public view virtual override(ERC165, IERC165) returns (bool) { return interfaceId == type(IERC721).interfaceId || interfaceId == type(IERC721Metadata).interfaceId || super.supportsInterface(interfaceId); } /** * @dev See {IERC721-balanceOf}. */ function balanceOf(address owner) public view virtual override returns (uint256) { require(owner != address(0), "ERC721: balance query for the zero address"); return _balances[owner]; } /** * @dev See {IERC721-ownerOf}. */ function ownerOf(uint256 tokenId) public view virtual override returns (address) { address owner = _owners[tokenId]; require(owner != address(0), "ERC721: owner query for nonexistent token"); return owner; } /** * @dev See {IERC721Metadata-name}. */ function name() public view virtual override returns (string memory) { return _name; } /** * @dev See {IERC721Metadata-symbol}. */ function symbol() public view virtual override returns (string memory) { return _symbol; } /** * @dev See {IERC721Metadata-tokenURI}. */ function tokenURI(uint256 tokenId) public view virtual override returns (string memory) { require(_exists(tokenId), "ERC721Metadata: URI query for nonexistent token"); string memory baseURI = _baseURI(); return bytes(baseURI).length > 0 ? string(abi.encodePacked(baseURI, tokenId.toString())) : ""; } /** * @dev Base URI for computing {tokenURI}. If set, the resulting URI for each * token will be the concatenation of the `baseURI` and the `tokenId`. Empty * by default, can be overriden in child contracts. */ function _baseURI() internal view virtual returns (string memory) { return ""; } /** * @dev See {IERC721-approve}. */ function approve(address to, uint256 tokenId) public virtual override { address owner = ERC721.ownerOf(tokenId); require(to != owner, "ERC721: approval to current owner"); require( _msgSender() == owner || isApprovedForAll(owner, _msgSender()), "ERC721: approve caller is not owner nor approved for all" ); _approve(to, tokenId); } /** * @dev See {IERC721-getApproved}. */ function getApproved(uint256 tokenId) public view virtual override returns (address) { require(_exists(tokenId), "ERC721: approved query for nonexistent token"); return _tokenApprovals[tokenId]; } /** * @dev See {IERC721-setApprovalForAll}. */ function setApprovalForAll(address operator, bool approved) public virtual override { require(operator != _msgSender(), "ERC721: approve to caller"); _operatorApprovals[_msgSender()][operator] = approved; emit ApprovalForAll(_msgSender(), operator, approved); } /** * @dev See {IERC721-isApprovedForAll}. */ function isApprovedForAll(address owner, address operator) public view virtual override returns (bool) { return _operatorApprovals[owner][operator]; } /** * @dev See {IERC721-transferFrom}. */ function transferFrom( address from, address to, uint256 tokenId ) public virtual override { //solhint-disable-next-line max-line-length require(_isApprovedOrOwner(_msgSender(), tokenId), "ERC721: transfer caller is not owner nor approved"); _transfer(from, to, tokenId); } /** * @dev See {IERC721-safeTransferFrom}. */ function safeTransferFrom( address from, address to, uint256 tokenId ) public virtual override { safeTransferFrom(from, to, tokenId, ""); } /** * @dev See {IERC721-safeTransferFrom}. */ function safeTransferFrom( address from, address to, uint256 tokenId, bytes memory _data ) public virtual override { require(_isApprovedOrOwner(_msgSender(), tokenId), "ERC721: transfer caller is not owner nor approved"); _safeTransfer(from, to, tokenId, _data); } /** * @dev Safely transfers `tokenId` token from `from` to `to`, checking first that contract recipients * are aware of the ERC721 protocol to prevent tokens from being forever locked. * * `_data` is additional data, it has no specified format and it is sent in call to `to`. * * This internal function is equivalent to {safeTransferFrom}, and can be used to e.g. * implement alternative mechanisms to perform token transfer, such as signature-based. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must exist and be owned by `from`. * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */ function _safeTransfer( address from, address to, uint256 tokenId, bytes memory _data ) internal virtual { _transfer(from, to, tokenId); require(_checkOnERC721Received(from, to, tokenId, _data), "ERC721: transfer to non ERC721Receiver implementer"); } /** * @dev Returns whether `tokenId` exists. * * Tokens can be managed by their owner or approved accounts via {approve} or {setApprovalForAll}. * * Tokens start existing when they are minted (`_mint`), * and stop existing when they are burned (`_burn`). */ function _exists(uint256 tokenId) internal view virtual returns (bool) { return _owners[tokenId] != address(0); } /** * @dev Returns whether `spender` is allowed to manage `tokenId`. * * Requirements: * * - `tokenId` must exist. */ function _isApprovedOrOwner(address spender, uint256 tokenId) internal view virtual returns (bool) { require(_exists(tokenId), "ERC721: operator query for nonexistent token"); address owner = ERC721.ownerOf(tokenId); return (spender == owner || getApproved(tokenId) == spender || isApprovedForAll(owner, spender)); } /** * @dev Safely mints `tokenId` and transfers it to `to`. * * Requirements: * * - `tokenId` must not exist. * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */ function _safeMint(address to, uint256 tokenId) internal virtual { _safeMint(to, tokenId, ""); } /** * @dev Same as {xref-ERC721-_safeMint-address-uint256-}[`_safeMint`], with an additional `data` parameter which is * forwarded in {IERC721Receiver-onERC721Received} to contract recipients. */ function _safeMint( address to, uint256 tokenId, bytes memory _data ) internal virtual { _mint(to, tokenId); require( _checkOnERC721Received(address(0), to, tokenId, _data), "ERC721: transfer to non ERC721Receiver implementer" ); } /** * @dev Mints `tokenId` and transfers it to `to`. * * WARNING: Usage of this method is discouraged, use {_safeMint} whenever possible * * Requirements: * * - `tokenId` must not exist. * - `to` cannot be the zero address. * * Emits a {Transfer} event. */ function _mint(address to, uint256 tokenId) internal virtual { require(to != address(0), "ERC721: mint to the zero address"); require(!_exists(tokenId), "ERC721: token already minted"); _beforeTokenTransfer(address(0), to, tokenId); _balances[to] += 1; _owners[tokenId] = to; emit Transfer(address(0), to, tokenId); } /** * @dev Destroys `tokenId`. * The approval is cleared when the token is burned. * * Requirements: * * - `tokenId` must exist. * * Emits a {Transfer} event. */ function _burn(uint256 tokenId) internal virtual { address owner = ERC721.ownerOf(tokenId); _beforeTokenTransfer(owner, address(0), tokenId); // Clear approvals _approve(address(0), tokenId); _balances[owner] -= 1; delete _owners[tokenId]; emit Transfer(owner, address(0), tokenId); } /** * @dev Transfers `tokenId` from `from` to `to`. * As opposed to {transferFrom}, this imposes no restrictions on msg.sender. * * Requirements: * * - `to` cannot be the zero address. * - `tokenId` token must be owned by `from`. * * Emits a {Transfer} event. */ function _transfer( address from, address to, uint256 tokenId ) internal virtual { require(ERC721.ownerOf(tokenId) == from, "ERC721: transfer of token that is not own"); require(to != address(0), "ERC721: transfer to the zero address"); _beforeTokenTransfer(from, to, tokenId); // Clear approvals from the previous owner _approve(address(0), tokenId); _balances[from] -= 1; _balances[to] += 1; _owners[tokenId] = to; emit Transfer(from, to, tokenId); } /** * @dev Approve `to` to operate on `tokenId` * * Emits a {Approval} event. */ function _approve(address to, uint256 tokenId) internal virtual { _tokenApprovals[tokenId] = to; emit Approval(ERC721.ownerOf(tokenId), to, tokenId); } /** * @dev Internal function to invoke {IERC721Receiver-onERC721Received} on a target address. * The call is not executed if the target address is not a contract. * * @param from address representing the previous owner of the given token ID * @param to target address that will receive the tokens * @param tokenId uint256 ID of the token to be transferred * @param _data bytes optional data to send along with the call * @return bool whether the call correctly returned the expected magic value */ function _checkOnERC721Received( address from, address to, uint256 tokenId, bytes memory _data ) private returns (bool) { if (to.isContract()) { try IERC721Receiver(to).onERC721Received(_msgSender(), from, tokenId, _data) returns (bytes4 retval) { return retval == IERC721Receiver(to).onERC721Received.selector; } catch (bytes memory reason) { if (reason.length == 0) { revert("ERC721: transfer to non ERC721Receiver implementer"); } else { assembly { revert(add(32, reason), mload(reason)) } } } } else { return true; } } /** * @dev Hook that is called before any token transfer. This includes minting * and burning. * * Calling conditions: * * - When `from` and `to` are both non-zero, ``from``'s `tokenId` will be * transferred to `to`. * - When `from` is zero, `tokenId` will be minted for `to`. * - When `to` is zero, ``from``'s `tokenId` will be burned. * - `from` and `to` are never both zero. * * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks]. */ function _beforeTokenTransfer( address from, address to, uint256 tokenId ) internal virtual {} }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import "../../utils/introspection/IERC165.sol"; /** * @dev Required interface of an ERC721 compliant contract. */ interface IERC721 is IERC165 { /** * @dev Emitted when `tokenId` token is transferred from `from` to `to`. */ event Transfer(address indexed from, address indexed to, uint256 indexed tokenId); /** * @dev Emitted when `owner` enables `approved` to manage the `tokenId` token. */ event Approval(address indexed owner, address indexed approved, uint256 indexed tokenId); /** * @dev Emitted when `owner` enables or disables (`approved`) `operator` to manage all of its assets. */ event ApprovalForAll(address indexed owner, address indexed operator, bool approved); /** * @dev Returns the number of tokens in ``owner``'s account. */ function balanceOf(address owner) external view returns (uint256 balance); /** * @dev Returns the owner of the `tokenId` token. * * Requirements: * * - `tokenId` must exist. */ function ownerOf(uint256 tokenId) external view returns (address owner); /** * @dev Safely transfers `tokenId` token from `from` to `to`, checking first that contract recipients * are aware of the ERC721 protocol to prevent tokens from being forever locked. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must exist and be owned by `from`. * - If the caller is not `from`, it must be have been allowed to move this token by either {approve} or {setApprovalForAll}. * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */ function safeTransferFrom( address from, address to, uint256 tokenId ) external; /** * @dev Transfers `tokenId` token from `from` to `to`. * * WARNING: Usage of this method is discouraged, use {safeTransferFrom} whenever possible. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must be owned by `from`. * - If the caller is not `from`, it must be approved to move this token by either {approve} or {setApprovalForAll}. * * Emits a {Transfer} event. */ function transferFrom( address from, address to, uint256 tokenId ) external; /** * @dev Gives permission to `to` to transfer `tokenId` token to another account. * The approval is cleared when the token is transferred. * * Only a single account can be approved at a time, so approving the zero address clears previous approvals. * * Requirements: * * - The caller must own the token or be an approved operator. * - `tokenId` must exist. * * Emits an {Approval} event. */ function approve(address to, uint256 tokenId) external; /** * @dev Returns the account approved for `tokenId` token. * * Requirements: * * - `tokenId` must exist. */ function getApproved(uint256 tokenId) external view returns (address operator); /** * @dev Approve or remove `operator` as an operator for the caller. * Operators can call {transferFrom} or {safeTransferFrom} for any token owned by the caller. * * Requirements: * * - The `operator` cannot be the caller. * * Emits an {ApprovalForAll} event. */ function setApprovalForAll(address operator, bool _approved) external; /** * @dev Returns if the `operator` is allowed to manage all of the assets of `owner`. * * See {setApprovalForAll} */ function isApprovedForAll(address owner, address operator) external view returns (bool); /** * @dev Safely transfers `tokenId` token from `from` to `to`. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must exist and be owned by `from`. * - If the caller is not `from`, it must be approved to move this token by either {approve} or {setApprovalForAll}. * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */ function safeTransferFrom( address from, address to, uint256 tokenId, bytes calldata data ) external; }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; /** * @title ERC721 token receiver interface * @dev Interface for any contract that wants to support safeTransfers * from ERC721 asset contracts. */ interface IERC721Receiver { /** * @dev Whenever an {IERC721} `tokenId` token is transferred to this contract via {IERC721-safeTransferFrom} * by `operator` from `from`, this function is called. * * It must return its Solidity selector to confirm the token transfer. * If any other value is returned or the interface is not implemented by the recipient, the transfer will be reverted. * * The selector can be obtained in Solidity with `IERC721.onERC721Received.selector`. */ function onERC721Received( address operator, address from, uint256 tokenId, bytes calldata data ) external returns (bytes4); }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import "../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 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 tokenId); /** * @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); }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import "../IERC721.sol"; /** * @title ERC-721 Non-Fungible Token Standard, optional metadata extension * @dev See https://eips.ethereum.org/EIPS/eip-721 */ interface IERC721Metadata is IERC721 { /** * @dev Returns the token collection name. */ function name() external view returns (string memory); /** * @dev Returns the token collection symbol. */ function symbol() external view returns (string memory); /** * @dev Returns the Uniform Resource Identifier (URI) for `tokenId` token. */ function tokenURI(uint256 tokenId) external view returns (string memory); }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; /** * @dev Collection of functions related to the address type */ library Address { /** * @dev Returns true if `account` is a contract. * * [IMPORTANT] * ==== * It is unsafe to assume that an address for which this function returns * false is an externally-owned account (EOA) and not a contract. * * Among others, `isContract` will return false for the following * types of addresses: * * - an externally-owned account * - a contract in construction * - an address where a contract will be created * - an address where a contract lived, but was destroyed * ==== */ function isContract(address account) internal view returns (bool) { // This method relies on extcodesize, which returns 0 for contracts in // construction, since the code is only stored at the end of the // constructor execution. uint256 size; assembly { size := extcodesize(account) } return size > 0; } /** * @dev Replacement for Solidity's `transfer`: sends `amount` wei to * `recipient`, forwarding all available gas and reverting on errors. * * https://eips.ethereum.org/EIPS/eip-1884[EIP1884] increases the gas cost * of certain opcodes, possibly making contracts go over the 2300 gas limit * imposed by `transfer`, making them unable to receive funds via * `transfer`. {sendValue} removes this limitation. * * https://diligence.consensys.net/posts/2019/09/stop-using-soliditys-transfer-now/[Learn more]. * * IMPORTANT: because control is transferred to `recipient`, care must be * taken to not create reentrancy vulnerabilities. Consider using * {ReentrancyGuard} or the * https://solidity.readthedocs.io/en/v0.5.11/security-considerations.html#use-the-checks-effects-interactions-pattern[checks-effects-interactions pattern]. */ function sendValue(address payable recipient, uint256 amount) internal { require(address(this).balance >= amount, "Address: insufficient balance"); (bool success, ) = recipient.call{value: amount}(""); require(success, "Address: unable to send value, recipient may have reverted"); } /** * @dev Performs a Solidity function call using a low level `call`. A * plain `call` is an unsafe replacement for a function call: use this * function instead. * * If `target` reverts with a revert reason, it is bubbled up by this * function (like regular Solidity function calls). * * Returns the raw returned data. To convert to the expected return value, * use https://solidity.readthedocs.io/en/latest/units-and-global-variables.html?highlight=abi.decode#abi-encoding-and-decoding-functions[`abi.decode`]. * * Requirements: * * - `target` must be a contract. * - calling `target` with `data` must not revert. * * _Available since v3.1._ */ function functionCall(address target, bytes memory data) internal returns (bytes memory) { return functionCall(target, data, "Address: low-level call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], but with * `errorMessage` as a fallback revert reason when `target` reverts. * * _Available since v3.1._ */ function functionCall( address target, bytes memory data, string memory errorMessage ) internal returns (bytes memory) { return functionCallWithValue(target, data, 0, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but also transferring `value` wei to `target`. * * Requirements: * * - the calling contract must have an ETH balance of at least `value`. * - the called Solidity function must be `payable`. * * _Available since v3.1._ */ function functionCallWithValue( address target, bytes memory data, uint256 value ) internal returns (bytes memory) { return functionCallWithValue(target, data, value, "Address: low-level call with value failed"); } /** * @dev Same as {xref-Address-functionCallWithValue-address-bytes-uint256-}[`functionCallWithValue`], but * with `errorMessage` as a fallback revert reason when `target` reverts. * * _Available since v3.1._ */ function functionCallWithValue( address target, bytes memory data, uint256 value, string memory errorMessage ) internal returns (bytes memory) { require(address(this).balance >= value, "Address: insufficient balance for call"); require(isContract(target), "Address: call to non-contract"); (bool success, bytes memory returndata) = target.call{value: value}(data); return _verifyCallResult(success, returndata, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but performing a static call. * * _Available since v3.3._ */ function functionStaticCall(address target, bytes memory data) internal view returns (bytes memory) { return functionStaticCall(target, data, "Address: low-level static call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`], * but performing a static call. * * _Available since v3.3._ */ function functionStaticCall( address target, bytes memory data, string memory errorMessage ) internal view returns (bytes memory) { require(isContract(target), "Address: static call to non-contract"); (bool success, bytes memory returndata) = target.staticcall(data); return _verifyCallResult(success, returndata, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but performing a delegate call. * * _Available since v3.4._ */ function functionDelegateCall(address target, bytes memory data) internal returns (bytes memory) { return functionDelegateCall(target, data, "Address: low-level delegate call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`], * but performing a delegate call. * * _Available since v3.4._ */ function functionDelegateCall( address target, bytes memory data, string memory errorMessage ) internal returns (bytes memory) { require(isContract(target), "Address: delegate call to non-contract"); (bool success, bytes memory returndata) = target.delegatecall(data); return _verifyCallResult(success, returndata, errorMessage); } function _verifyCallResult( bool success, bytes memory returndata, string memory errorMessage ) private pure returns (bytes memory) { if (success) { return returndata; } else { // Look for revert reason and bubble it up if present if (returndata.length > 0) { // The easiest way to bubble the revert reason is using memory via assembly assembly { let returndata_size := mload(returndata) revert(add(32, returndata), returndata_size) } } else { revert(errorMessage); } } } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; /* * @dev Provides information about the current execution context, including the * sender of the transaction and its data. While these are generally available * via msg.sender and msg.data, they should not be accessed in such a direct * manner, since when dealing with meta-transactions the account sending and * paying for execution may not be the actual sender (as far as an application * is concerned). * * This contract is only required for intermediate, library-like contracts. */ abstract contract Context { function _msgSender() internal view virtual returns (address) { return msg.sender; } function _msgData() internal view virtual returns (bytes calldata) { return msg.data; } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; /** * @dev String operations. */ library Strings { bytes16 private constant _HEX_SYMBOLS = "0123456789abcdef"; /** * @dev Converts a `uint256` to its ASCII `string` decimal representation. */ function toString(uint256 value) internal pure returns (string memory) { // Inspired by OraclizeAPI's implementation - MIT licence // https://github.com/oraclize/ethereum-api/blob/b42146b063c7d6ee1358846c198246239e9360e8/oraclizeAPI_0.4.25.sol if (value == 0) { return "0"; } uint256 temp = value; uint256 digits; while (temp != 0) { digits++; temp /= 10; } bytes memory buffer = new bytes(digits); while (value != 0) { digits -= 1; buffer[digits] = bytes1(uint8(48 + uint256(value % 10))); value /= 10; } return string(buffer); } /** * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation. */ function toHexString(uint256 value) internal pure returns (string memory) { if (value == 0) { return "0x00"; } uint256 temp = value; uint256 length = 0; while (temp != 0) { length++; temp >>= 8; } return toHexString(value, length); } /** * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation with fixed length. */ function toHexString(uint256 value, uint256 length) internal pure returns (string memory) { bytes memory buffer = new bytes(2 * length + 2); buffer[0] = "0"; buffer[1] = "x"; for (uint256 i = 2 * length + 1; i > 1; --i) { buffer[i] = _HEX_SYMBOLS[value & 0xf]; value >>= 4; } require(value == 0, "Strings: hex length insufficient"); return string(buffer); } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; /** * @dev Elliptic Curve Digital Signature Algorithm (ECDSA) operations. * * These functions can be used to verify that a message was signed by the holder * of the private keys of a given address. */ library ECDSA { /** * @dev Returns the address that signed a hashed message (`hash`) with * `signature`. This address can then be used for verification purposes. * * The `ecrecover` EVM opcode allows for malleable (non-unique) signatures: * this function rejects them by requiring the `s` value to be in the lower * half order, and the `v` value to be either 27 or 28. * * IMPORTANT: `hash` _must_ be the result of a hash operation for the * verification to be secure: it is possible to craft signatures that * recover to arbitrary addresses for non-hashed data. A safe way to ensure * this is by receiving a hash of the original message (which may otherwise * be too long), and then calling {toEthSignedMessageHash} on it. * * Documentation for signature generation: * - with https://web3js.readthedocs.io/en/v1.3.4/web3-eth-accounts.html#sign[Web3.js] * - with https://docs.ethers.io/v5/api/signer/#Signer-signMessage[ethers] */ function recover(bytes32 hash, bytes memory signature) internal pure returns (address) { // Check the signature length // - case 65: r,s,v signature (standard) // - case 64: r,vs signature (cf https://eips.ethereum.org/EIPS/eip-2098) _Available since v4.1._ if (signature.length == 65) { bytes32 r; bytes32 s; uint8 v; // ecrecover takes the signature parameters, and the only way to get them // currently is to use assembly. assembly { r := mload(add(signature, 0x20)) s := mload(add(signature, 0x40)) v := byte(0, mload(add(signature, 0x60))) } return recover(hash, v, r, s); } else if (signature.length == 64) { bytes32 r; bytes32 vs; // ecrecover takes the signature parameters, and the only way to get them // currently is to use assembly. assembly { r := mload(add(signature, 0x20)) vs := mload(add(signature, 0x40)) } return recover(hash, r, vs); } else { revert("ECDSA: invalid signature length"); } } /** * @dev Overload of {ECDSA-recover} that receives the `r` and `vs` short-signature fields separately. * * See https://eips.ethereum.org/EIPS/eip-2098[EIP-2098 short signatures] * * _Available since v4.2._ */ function recover( bytes32 hash, bytes32 r, bytes32 vs ) internal pure returns (address) { bytes32 s; uint8 v; assembly { s := and(vs, 0x7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff) v := add(shr(255, vs), 27) } return recover(hash, v, r, s); } /** * @dev Overload of {ECDSA-recover} that receives the `v`, `r` and `s` signature fields separately. */ function recover( bytes32 hash, uint8 v, bytes32 r, bytes32 s ) internal pure returns (address) { // EIP-2 still allows signature malleability for ecrecover(). Remove this possibility and make the signature // unique. Appendix F in the Ethereum Yellow paper (https://ethereum.github.io/yellowpaper/paper.pdf), defines // the valid range for s in (281): 0 < s < secp256k1n ÷ 2 + 1, and for v in (282): v ∈ {27, 28}. Most // signatures from current libraries generate a unique signature with an s-value in the lower half order. // // If your library generates malleable signatures, such as s-values in the upper range, calculate a new s-value // with 0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFEBAAEDCE6AF48A03BBFD25E8CD0364141 - s1 and flip v from 27 to 28 or // vice versa. If your library also generates signatures with 0/1 for v instead 27/28, add 27 to v to accept // these malleable signatures as well. require( uint256(s) <= 0x7FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF5D576E7357A4501DDFE92F46681B20A0, "ECDSA: invalid signature 's' value" ); require(v == 27 || v == 28, "ECDSA: invalid signature 'v' value"); // If the signature is valid (and not malleable), return the signer address address signer = ecrecover(hash, v, r, s); require(signer != address(0), "ECDSA: invalid signature"); return signer; } /** * @dev Returns an Ethereum Signed Message, created from a `hash`. This * produces hash corresponding to the one signed with the * https://eth.wiki/json-rpc/API#eth_sign[`eth_sign`] * JSON-RPC method as part of EIP-191. * * See {recover}. */ function toEthSignedMessageHash(bytes32 hash) internal pure returns (bytes32) { // 32 is the length in bytes of hash, // enforced by the type signature above return keccak256(abi.encodePacked("\x19Ethereum Signed Message:\n32", hash)); } /** * @dev Returns an Ethereum Signed Typed Data, created from a * `domainSeparator` and a `structHash`. This produces hash corresponding * to the one signed with the * https://eips.ethereum.org/EIPS/eip-712[`eth_signTypedData`] * JSON-RPC method as part of EIP-712. * * See {recover}. */ function toTypedDataHash(bytes32 domainSeparator, bytes32 structHash) internal pure returns (bytes32) { return keccak256(abi.encodePacked("\x19\x01", domainSeparator, structHash)); } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import "./IERC165.sol"; /** * @dev Implementation of the {IERC165} interface. * * Contracts that want to implement ERC165 should inherit from this contract and override {supportsInterface} to check * for the additional interface id that will be supported. For example: * * ```solidity * function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) { * return interfaceId == type(MyInterface).interfaceId || super.supportsInterface(interfaceId); * } * ``` * * Alternatively, {ERC165Storage} provides an easier to use but more expensive implementation. */ abstract contract ERC165 is IERC165 { /** * @dev See {IERC165-supportsInterface}. */ function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) { return interfaceId == type(IERC165).interfaceId; } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; /** * @dev Interface of the ERC165 standard, as defined in the * https://eips.ethereum.org/EIPS/eip-165[EIP]. * * Implementers can declare support of contract interfaces, which can then be * queried by others ({ERC165Checker}). * * For an implementation, see {ERC165}. */ interface IERC165 { /** * @dev Returns true if this contract implements the interface defined by * `interfaceId`. See the corresponding * https://eips.ethereum.org/EIPS/eip-165#how-interfaces-are-identified[EIP section] * to learn more about how these ids are created. * * This function call must use less than 30 000 gas. */ function supportsInterface(bytes4 interfaceId) external view returns (bool); }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; /// @title IERC2981Royalties /// @dev Interface for the ERC2981 - Token Royalty standard interface IERC2981Royalties { /// @notice Called with the sale price to determine how much royalty // is owed and to whom. /// @param _tokenId - the NFT asset queried for royalty information /// @param _value - the sale price of the NFT asset specified by _tokenId /// @return _receiver - address of who should be sent the royalty payment /// @return _royaltyAmount - the royalty payment amount for value sale price function royaltyInfo(uint256 _tokenId, uint256 _value) external view returns (address _receiver, uint256 _royaltyAmount); }
//SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import '@openzeppelin/contracts/access/Ownable.sol'; import '@openzeppelin/contracts/token/ERC721/extensions/ERC721Enumerable.sol'; import './OpenSea/BaseOpenSea.sol'; /// @title ERC721Ownable /// @author Simon Fremaux (@dievardump) contract ERC721Ownable is Ownable, ERC721Enumerable, BaseOpenSea { /// @notice constructor /// @param name_ name of the contract (see ERC721) /// @param symbol_ symbol of the contract (see ERC721) /// @param contractURI_ The contract URI (containing its metadata) - can be empty "" /// @param openseaProxyRegistry_ OpenSea's proxy registry to allow gas-less listings - can be address(0) /// @param owner_ Address to whom transfer ownership (can be address(0), then owner is deployer) constructor( string memory name_, string memory symbol_, string memory contractURI_, address openseaProxyRegistry_, address owner_ ) ERC721(name_, symbol_) { // set contract uri if present if (bytes(contractURI_).length > 0) { _setContractURI(contractURI_); } // set OpenSea proxyRegistry for gas-less trading if present if (address(0) != openseaProxyRegistry_) { _setOpenSeaRegistry(openseaProxyRegistry_); } // transferOwnership if needed if (address(0) != owner_) { transferOwnership(owner_); } } /// @notice Allows to burn a tokenId /// @dev Burns `tokenId`. See {ERC721-_burn}. The caller must own `tokenId` or be an approved operator. /// @param tokenId the tokenId to burn function burn(uint256 tokenId) public virtual { require( _isApprovedOrOwner(_msgSender(), tokenId), 'ERC721Burnable: caller is not owner nor approved' ); _burn(tokenId); } /// @notice Allows gas-less trading on OpenSea by safelisting the Proxy of the user /// @dev Override isApprovedForAll to check first if current operator is owner's OpenSea proxy /// @inheritdoc ERC721 function isApprovedForAll(address owner, address operator) public view override returns (bool) { // allows gas less trading on OpenSea if (isOwnersOpenSeaProxy(owner, operator)) { return true; } return super.isApprovedForAll(owner, operator); } /// @notice Helper for the owner of the contract to set the new contract URI /// @dev needs to be owner /// @param contractURI_ new contract URI function setContractURI(string memory contractURI_) external onlyOwner { _setContractURI(contractURI_); } }
//SPDX-License-Identifier: MIT pragma solidity ^0.8.0; /// @title OpenSea contract helper that defines a few things /// @author Simon Fremaux (@dievardump) /// @dev This is a contract used to add OpenSea's support contract BaseOpenSea { string private _contractURI; ProxyRegistry private _proxyRegistry; /// @notice Returns the contract URI function. Used on OpenSea to get details // about a contract (owner, royalties etc...) function contractURI() public view returns (string memory) { return _contractURI; } /// @notice Helper for OpenSea gas-less trading /// @dev Allows to check if `operator` is owner's OpenSea proxy /// @param owner the owner we check for /// @param operator the operator (proxy) we check for function isOwnersOpenSeaProxy(address owner, address operator) public view returns (bool) { ProxyRegistry proxyRegistry = _proxyRegistry; return // we have a proxy registry address address(proxyRegistry) != address(0) && // current operator is owner's proxy address address(proxyRegistry.proxies(owner)) == operator; } /// @dev Internal function to set the _contractURI /// @param contractURI_ the new contract uri function _setContractURI(string memory contractURI_) internal { _contractURI = contractURI_; } /// @dev Internal function to set the _proxyRegistry /// @param proxyRegistryAddress the new proxy registry address function _setOpenSeaRegistry(address proxyRegistryAddress) internal { _proxyRegistry = ProxyRegistry(proxyRegistryAddress); } } contract OwnableDelegateProxy {} contract ProxyRegistry { mapping(address => OwnableDelegateProxy) public proxies; }
{ "evmVersion": "istanbul", "libraries": {}, "metadata": { "bytecodeHash": "ipfs", "useLiteralContent": true }, "optimizer": { "enabled": true, "runs": 200 }, "remappings": [], "outputSelection": { "*": { "*": [ "evm.bytecode", "evm.deployedBytecode", "abi" ] } } }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"inputs":[{"internalType":"string","name":"name_","type":"string"},{"internalType":"string","name":"symbol_","type":"string"},{"internalType":"string","name":"contractURI_","type":"string"},{"internalType":"address","name":"openseaProxyRegistry_","type":"address"},{"internalType":"address","name":"mintSigner_","type":"address"},{"internalType":"address","name":"owner_","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"approved","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":false,"internalType":"bool","name":"approved","type":"bool"}],"name":"ApprovalForAll","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Transfer","type":"event"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"approve","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"burn","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"contractURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"string","name":"jsonPart","type":"string"}],"name":"createMintingOrder","outputs":[{"components":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"expiration","type":"uint256"},{"internalType":"string","name":"jsonPart","type":"string"}],"internalType":"struct Astraglade.MintingOrder","name":"mintingOrder","type":"tuple"},{"internalType":"bytes32","name":"message","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getApproved","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getPrice","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"pure","type":"function"},{"inputs":[{"components":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"expiration","type":"uint256"},{"internalType":"string","name":"jsonPart","type":"string"}],"internalType":"struct Astraglade.MintingOrder","name":"mintingOrder","type":"tuple"}],"name":"hashMintingOrder","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"pure","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":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"operator","type":"address"}],"name":"isOwnersOpenSeaProxy","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"name":"messageToTokenId","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"components":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"expiration","type":"uint256"},{"internalType":"string","name":"jsonPart","type":"string"}],"internalType":"struct Astraglade.MintingOrder","name":"mintingOrder","type":"tuple"},{"internalType":"bytes","name":"mintingSignature","type":"bytes"}],"name":"mint","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"mintSigner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"nextTokenId","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"ownerOf","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"},{"internalType":"uint256","name":"value","type":"uint256"}],"name":"royaltyInfo","outputs":[{"internalType":"address","name":"receiver","type":"address"},{"internalType":"uint256","name":"royaltyAmount","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"bytes","name":"_data","type":"bytes"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"operator","type":"address"},{"internalType":"bool","name":"approved","type":"bool"}],"name":"setApprovalForAll","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"contractURI_","type":"string"}],"name":"setContractURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"mintSigner_","type":"address"}],"name":"setMintingSigner","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes4","name":"interfaceId","type":"bytes4"}],"name":"supportsInterface","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"index","type":"uint256"}],"name":"tokenByIndex","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"components":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"expiration","type":"uint256"},{"internalType":"string","name":"jsonPart","type":"string"}],"internalType":"struct Astraglade.MintingOrder","name":"mintingOrder","type":"tuple"}],"name":"tokenIdFromOrder","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"},{"inputs":[],"name":"withdraw","outputs":[],"stateMutability":"nonpayable","type":"function"}]
Contract Creation Code
60806040523480156200001157600080fd5b506040516200357f3803806200357f83398101604081905262000034916200038b565b858585858484846200004f62000049620000f9565b620000fd565b8151620000649060019060208501906200021d565b5080516200007a9060029060208401906200021d565b50508351159050620000915762000091836200014d565b6001600160a01b03821615620000ac57620000ac8262000166565b6001600160a01b03811615620000c757620000c78162000188565b5050600e80546001600160a01b0319166001600160a01b039690961695909517909455506200051d9650505050505050565b3390565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b80516200016290600b9060208401906200021d565b5050565b600c80546001600160a01b0319166001600160a01b0392909216919091179055565b62000192620000f9565b6001600160a01b0316620001a56200020e565b6001600160a01b031614620001d75760405162461bcd60e51b8152600401620001ce9062000495565b60405180910390fd5b6001600160a01b038116620002005760405162461bcd60e51b8152600401620001ce906200044f565b6200020b81620000fd565b50565b6000546001600160a01b031690565b8280546200022b90620004ca565b90600052602060002090601f0160209004810192826200024f57600085556200029a565b82601f106200026a57805160ff19168380011785556200029a565b828001600101855582156200029a579182015b828111156200029a5782518255916020019190600101906200027d565b50620002a8929150620002ac565b5090565b5b80821115620002a85760008155600101620002ad565b80516001600160a01b0381168114620002db57600080fd5b919050565b600082601f830112620002f1578081fd5b81516001600160401b03808211156200030e576200030e62000507565b6040516020601f8401601f191682018101838111838210171562000336576200033662000507565b60405283825285840181018710156200034d578485fd5b8492505b8383101562000370578583018101518284018201529182019162000351565b838311156200038157848185840101525b5095945050505050565b60008060008060008060c08789031215620003a4578182fd5b86516001600160401b0380821115620003bb578384fd5b620003c98a838b01620002e0565b97506020890151915080821115620003df578384fd5b620003ed8a838b01620002e0565b9650604089015191508082111562000403578384fd5b506200041289828a01620002e0565b9450506200042360608801620002c3565b92506200043360808801620002c3565b91506200044360a08801620002c3565b90509295509295509295565b60208082526026908201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160408201526564647265737360d01b606082015260800190565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b600281046001821680620004df57607f821691505b602082108114156200050157634e487b7160e01b600052602260045260246000fd5b50919050565b634e487b7160e01b600052604160045260246000fd5b613052806200052d6000396000f3fe6080604052600436106101f95760003560e01c806367e341cf1161010d578063a22cb465116100a0578063c97f31bb1161006f578063c97f31bb14610594578063e8a3d485146105b4578063e985e9c5146105c9578063f17af48d146105e9578063f2fde38b146105fe576101f9565b8063a22cb46514610514578063a5f6029014610534578063b88d4fde14610554578063c87b56dd14610574576101f9565b80638da5cb5b116100dc5780638da5cb5b146104b5578063938e3d7b146104ca57806395d89b41146104ea57806398d5fdca146104ff576101f9565b806367e341cf1461044b57806370a082311461046b578063715018a61461048b57806375794a3c146104a0576101f9565b80632f745c591161019057806342966c681161015f57806342966c68146103ab5780634b51b3c6146103cb5780634f6ccce7146103eb5780636102de981461040b5780636352211e1461042b576101f9565b80632f745c59146103285780633c87d334146103485780633ccfd60b1461037657806342842e0e1461038b576101f9565b806318160ddd116101cc57806318160ddd146102a557806323b872dd146102c75780632736bf13146102e75780632a55205a146102fa576101f9565b806301ffc9a7146101fe57806306fdde0314610234578063081812fc14610256578063095ea7b314610283575b600080fd5b34801561020a57600080fd5b5061021e610219366004612193565b61061e565b60405161022b9190612682565b60405180910390f35b34801561024057600080fd5b5061024961064c565b60405161022b91906126b4565b34801561026257600080fd5b5061027661027136600461217b565b6106de565b60405161022b9190612622565b34801561028f57600080fd5b506102a361029e366004612150565b61072a565b005b3480156102b157600080fd5b506102ba6107c2565b60405161022b919061268d565b3480156102d357600080fd5b506102a36102e2366004612027565b6107c8565b6102a36102f536600461224d565b610800565b34801561030657600080fd5b5061031a6103153660046122a4565b610997565b60405161022b929190612669565b34801561033457600080fd5b506102ba610343366004612150565b6109bc565b34801561035457600080fd5b50610368610363366004612102565b610a11565b60405161022b929190612e89565b34801561038257600080fd5b506102a3610a56565b34801561039757600080fd5b506102a36103a6366004612027565b610b8a565b3480156103b757600080fd5b506102a36103c636600461217b565b610ba5565b3480156103d757600080fd5b506102ba6103e636600461221a565b610bd8565b3480156103f757600080fd5b506102ba61040636600461217b565b610bfd565b34801561041757600080fd5b5061021e610426366004611fef565b610c58565b34801561043757600080fd5b5061027661044636600461217b565b610d0a565b34801561045757600080fd5b506102ba61046636600461221a565b610d3f565b34801561047757600080fd5b506102ba610486366004611fd3565b610d6f565b34801561049757600080fd5b506102a3610db3565b3480156104ac57600080fd5b506102ba610dfe565b3480156104c157600080fd5b50610276610e04565b3480156104d657600080fd5b506102a36104e53660046121e7565b610e13565b3480156104f657600080fd5b50610249610e5b565b34801561050b57600080fd5b506102ba610e6a565b34801561052057600080fd5b506102a361052f3660046120d1565b610e76565b34801561054057600080fd5b506102a361054f366004611fd3565b610f44565b34801561056057600080fd5b506102a361056f366004612067565b610fcb565b34801561058057600080fd5b5061024961058f36600461217b565b61100a565b3480156105a057600080fd5b506102ba6105af36600461217b565b6111a8565b3480156105c057600080fd5b506102496111ba565b3480156105d557600080fd5b5061021e6105e4366004611fef565b6111c9565b3480156105f557600080fd5b506102766111f3565b34801561060a57600080fd5b506102a3610619366004611fd3565b611202565b600061062982611270565b8061064457506001600160e01b0319821663152a902d60e11b145b90505b919050565b60606001805461065b90612f45565b80601f016020809104026020016040519081016040528092919081815260200182805461068790612f45565b80156106d45780601f106106a9576101008083540402835291602001916106d4565b820191906000526020600020905b8154815290600101906020018083116106b757829003601f168201915b5050505050905090565b60006106e982611295565b61070e5760405162461bcd60e51b815260040161070590612b97565b60405180910390fd5b506000908152600560205260409020546001600160a01b031690565b600061073582610d0a565b9050806001600160a01b0316836001600160a01b031614156107695760405162461bcd60e51b815260040161070590612cda565b806001600160a01b031661077b6112b2565b6001600160a01b031614806107975750610797816105e46112b2565b6107b35760405162461bcd60e51b8152600401610705906129f9565b6107bd83836112b6565b505050565b60095490565b6107d96107d36112b2565b82611324565b6107f55760405162461bcd60e51b815260040161070590612d52565b6107bd8383836113a1565b600061081361080e84610d3f565b6114ce565b600e549091506001600160a01b031661082c82846114e1565b6001600160a01b0316146108525760405162461bcd60e51b815260040161070590612def565b42836020015110156108765760405162461bcd60e51b815260040161070590612987565b61087e6112b2565b6001600160a01b031683600001516001600160a01b0316146108b25760405162461bcd60e51b8152600401610705906129b7565b600081815260106020526040902054156108de5760405162461bcd60e51b815260040161070590612735565b6000600d5460016108ef9190612eb7565b9050612b678111156109135760405162461bcd60e51b815260040161070590612b60565b67013b7b21280e0000341461093a5760405162461bcd60e51b815260040161070590612be3565b60008281526010602090815260408083208490558651815192830190915291815261096791908390611555565b6040808501516000838152600f6020908152929020815161098e9391929190910190611e0b565b50600d55505050565b3060006127106109a9846103e8612ee3565b6109b39190612ecf565b90509250929050565b60006109c783610d6f565b82106109e55760405162461bcd60e51b815260040161070590612764565b506001600160a01b03821660009081526007602090815260408083208484529091529020545b92915050565b610a19611e8f565b60006040518060600160405280856001600160a01b0316815260200142610384610a439190612eb7565b815260200184905291506109b382610d3f565b610a5e6112b2565b6001600160a01b0316610a6f610e04565b6001600160a01b031614610a955760405162461bcd60e51b815260040161070590612c0d565b4773e4657af058e3f844919c3ee713df09c3f29494476108fc6064610abb84601e612ee3565b610ac59190612ecf565b6040518115909202916000818181858888f19350505050158015610aed573d6000803e3d6000fd5b5073b275e5aa8011ea32506a91449b190213224aec1e6108fc6064610b13846023612ee3565b610b1d9190612ecf565b6040518115909202916000818181858888f19350505050158015610b45573d6000803e3d6000fd5b5060405173dac81c3642b520584ed0e743729f238d1c350e62904780156108fc02916000818181858888f19350505050158015610b86573d6000803e3d6000fd5b5050565b6107bd83838360405180602001604052806000815250610fcb565b610bb06107d36112b2565b610bcc5760405162461bcd60e51b815260040161070590612e26565b610bd581611588565b50565b600080610be761080e84610d3f565b6000908152601060205260409020549392505050565b6000610c076107c2565b8210610c255760405162461bcd60e51b815260040161070590612da3565b60098281548110610c4657634e487b7160e01b600052603260045260246000fd5b90600052602060002001549050919050565b600c546000906001600160a01b03168015801590610d025750826001600160a01b0316816001600160a01b031663c4552791866040518263ffffffff1660e01b8152600401610ca79190612622565b60206040518083038186803b158015610cbf57600080fd5b505afa158015610cd3573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610cf791906121cb565b6001600160a01b0316145b949350505050565b6000818152600360205260408120546001600160a01b0316806106445760405162461bcd60e51b815260040161070590612aa0565b600081604051602001610d529190612e76565b604051602081830303815290604052805190602001209050919050565b60006001600160a01b038216610d975760405162461bcd60e51b815260040161070590612a56565b506001600160a01b031660009081526004602052604090205490565b610dbb6112b2565b6001600160a01b0316610dcc610e04565b6001600160a01b031614610df25760405162461bcd60e51b815260040161070590612c0d565b610dfc600061162f565b565b600d5481565b6000546001600160a01b031690565b610e1b6112b2565b6001600160a01b0316610e2c610e04565b6001600160a01b031614610e525760405162461bcd60e51b815260040161070590612c0d565b610bd58161167f565b60606002805461065b90612f45565b67013b7b21280e000090565b610e7e6112b2565b6001600160a01b0316826001600160a01b03161415610eaf5760405162461bcd60e51b8152600401610705906128c2565b8060066000610ebc6112b2565b6001600160a01b03908116825260208083019390935260409182016000908120918716808252919093529120805460ff191692151592909217909155610f006112b2565b6001600160a01b03167f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c3183604051610f389190612682565b60405180910390a35050565b610f4c6112b2565b6001600160a01b0316610f5d610e04565b6001600160a01b031614610f835760405162461bcd60e51b815260040161070590612c0d565b6001600160a01b038116610fa95760405162461bcd60e51b815260040161070590612d1b565b600e80546001600160a01b0319166001600160a01b0392909216919091179055565b610fdc610fd66112b2565b83611324565b610ff85760405162461bcd60e51b815260040161070590612d52565b61100484848484611692565b50505050565b606061101582611295565b6110315760405162461bcd60e51b815260040161070590612c8b565b6060600a83116110605750604080518082019091526008815267556e69766572736160c01b6020820152611162565b6064831161108e575060408051808201909152600981526847616c61637469636160b81b6020820152611162565b6103e883116110ba57506040805180820190915260068152654e6562756c6160d01b6020820152611162565b610bb883116110e757506040805180820190915260078152664d6574656f726160c81b6020820152611162565b61271083116111145750604080518082019091526007815266536f6c6172697360c81b6020820152611162565b612b668311611143575060408051808201909152600981526853757065726e6f766160b81b6020820152611162565b506040805180820190915260068152655175616e746160d01b60208201525b61116b836116c5565b81600f6000868152602001908152602001600020604051602001611191939291906123f8565b604051602081830303815290604052915050919050565b60106020526000908152604090205481565b6060600b805461065b90612f45565b60006111d58383610c58565b156111e257506001610a0b565b6111ec83836117e0565b9392505050565b600e546001600160a01b031681565b61120a6112b2565b6001600160a01b031661121b610e04565b6001600160a01b0316146112415760405162461bcd60e51b815260040161070590612c0d565b6001600160a01b0381166112675760405162461bcd60e51b815260040161070590612801565b610bd58161162f565b60006001600160e01b0319821663780e9d6360e01b148061064457506106448261180e565b6000908152600360205260409020546001600160a01b0316151590565b3390565b600081815260056020526040902080546001600160a01b0319166001600160a01b03841690811790915581906112eb82610d0a565b6001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b600061132f82611295565b61134b5760405162461bcd60e51b81526004016107059061293b565b600061135683610d0a565b9050806001600160a01b0316846001600160a01b031614806113915750836001600160a01b0316611386846106de565b6001600160a01b0316145b80610d025750610d0281856111c9565b826001600160a01b03166113b482610d0a565b6001600160a01b0316146113da5760405162461bcd60e51b815260040161070590612c42565b6001600160a01b0382166114005760405162461bcd60e51b81526004016107059061287e565b61140b83838361184e565b6114166000826112b6565b6001600160a01b038316600090815260046020526040812080546001929061143f908490612f02565b90915550506001600160a01b038216600090815260046020526040812080546001929061146d908490612eb7565b909155505060008181526003602052604080822080546001600160a01b0319166001600160a01b0386811691821790925591518493918716917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91a4505050565b600081604051602001610d5291906123c7565b60008151604114156115155760208201516040830151606084015160001a61150b868285856118d7565b9350505050610a0b565b81516040141561153d57602082015160408301516115348583836119cd565b92505050610a0b565b60405162461bcd60e51b8152600401610705906126fe565b61155f83836119f7565b61156c6000848484611ad6565b6107bd5760405162461bcd60e51b8152600401610705906127af565b600061159382610d0a565b90506115a18160008461184e565b6115ac6000836112b6565b6001600160a01b03811660009081526004602052604081208054600192906115d5908490612f02565b909155505060008281526003602052604080822080546001600160a01b0319169055518391906001600160a01b038416907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908390a45050565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b8051610b8690600b906020840190611e0b565b61169d8484846113a1565b6116a984848484611ad6565b6110045760405162461bcd60e51b8152600401610705906127af565b6060816116ea57506040805180820190915260018152600360fc1b6020820152610647565b8160005b811561171457806116fe81612f80565b915061170d9050600a83612ecf565b91506116ee565b60008167ffffffffffffffff81111561173d57634e487b7160e01b600052604160045260246000fd5b6040519080825280601f01601f191660200182016040528015611767576020820181803683370190505b5090505b8415610d025761177c600183612f02565b9150611789600a86612f9b565b611794906030612eb7565b60f81b8183815181106117b757634e487b7160e01b600052603260045260246000fd5b60200101906001600160f81b031916908160001a9053506117d9600a86612ecf565b945061176b565b6001600160a01b03918216600090815260066020908152604080832093909416825291909152205460ff1690565b60006001600160e01b031982166380ac58cd60e01b148061183f57506001600160e01b03198216635b5e139f60e01b145b80610644575061064482611bee565b6118598383836107bd565b6001600160a01b0383166118755761187081611c07565b611898565b816001600160a01b0316836001600160a01b031614611898576118988382611c4b565b6001600160a01b0382166118b4576118af81611ce8565b6107bd565b826001600160a01b0316826001600160a01b0316146107bd576107bd8282611dc1565b60007f7fffffffffffffffffffffffffffffff5d576e7357a4501ddfe92f46681b20a08211156119195760405162461bcd60e51b8152600401610705906128f9565b8360ff16601b148061192e57508360ff16601c145b61194a5760405162461bcd60e51b815260040161070590612ae9565b60006001868686866040516000815260200160405260405161196f9493929190612696565b6020604051602081039080840390855afa158015611991573d6000803e3d6000fd5b5050604051601f1901519150506001600160a01b0381166119c45760405162461bcd60e51b8152600401610705906126c7565b95945050505050565b60006001600160ff1b03821660ff83901c601b016119ed868287856118d7565b9695505050505050565b6001600160a01b038216611a1d5760405162461bcd60e51b815260040161070590612b2b565b611a2681611295565b15611a435760405162461bcd60e51b815260040161070590612847565b611a4f6000838361184e565b6001600160a01b0382166000908152600460205260408120805460019290611a78908490612eb7565b909155505060008181526003602052604080822080546001600160a01b0319166001600160a01b03861690811790915590518392907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b6000611aea846001600160a01b0316611e05565b15611be657836001600160a01b031663150b7a02611b066112b2565b8786866040518563ffffffff1660e01b8152600401611b289493929190612636565b602060405180830381600087803b158015611b4257600080fd5b505af1925050508015611b72575060408051601f3d908101601f19168201909252611b6f918101906121af565b60015b611bcc573d808015611ba0576040519150601f19603f3d011682016040523d82523d6000602084013e611ba5565b606091505b508051611bc45760405162461bcd60e51b8152600401610705906127af565b805181602001fd5b6001600160e01b031916630a85bd0160e11b149050610d02565b506001610d02565b6001600160e01b031981166301ffc9a760e01b14919050565b600980546000838152600a60205260408120829055600182018355919091527f6e1540171b6c0c960b71a7020d9f60077f6af931a8bbf590da0223dacf75c7af0155565b60006001611c5884610d6f565b611c629190612f02565b600083815260086020526040902054909150808214611cb5576001600160a01b03841660009081526007602090815260408083208584528252808320548484528184208190558352600890915290208190555b5060009182526008602090815260408084208490556001600160a01b039094168352600781528383209183525290812055565b600954600090611cfa90600190612f02565b6000838152600a602052604081205460098054939450909284908110611d3057634e487b7160e01b600052603260045260246000fd5b906000526020600020015490508060098381548110611d5f57634e487b7160e01b600052603260045260246000fd5b6000918252602080832090910192909255828152600a90915260408082208490558582528120556009805480611da557634e487b7160e01b600052603160045260246000fd5b6001900381819060005260206000200160009055905550505050565b6000611dcc83610d6f565b6001600160a01b039093166000908152600760209081526040808320868452825280832085905593825260089052919091209190915550565b3b151590565b828054611e1790612f45565b90600052602060002090601f016020900481019282611e395760008555611e7f565b82601f10611e5257805160ff1916838001178555611e7f565b82800160010185558215611e7f579182015b82811115611e7f578251825591602001919060010190611e64565b50611e8b929150611eb9565b5090565b604051806060016040528060006001600160a01b0316815260200160008152602001606081525090565b5b80821115611e8b5760008155600101611eba565b600082601f830112611ede578081fd5b813567ffffffffffffffff80821115611ef957611ef9612fdb565b604051601f8301601f191681016020018281118282101715611f1d57611f1d612fdb565b604052828152848301602001861015611f34578384fd5b82602086016020830137918201602001929092529392505050565b600060608284031215611f60578081fd5b6040516060810167ffffffffffffffff8282108183111715611f8457611f84612fdb565b8160405282935084359150611f9882612ff1565b818352602085013560208401526040850135915080821115611fb957600080fd5b50611fc685828601611ece565b6040830152505092915050565b600060208284031215611fe4578081fd5b81356111ec81612ff1565b60008060408385031215612001578081fd5b823561200c81612ff1565b9150602083013561201c81612ff1565b809150509250929050565b60008060006060848603121561203b578081fd5b833561204681612ff1565b9250602084013561205681612ff1565b929592945050506040919091013590565b6000806000806080858703121561207c578081fd5b843561208781612ff1565b9350602085013561209781612ff1565b925060408501359150606085013567ffffffffffffffff8111156120b9578182fd5b6120c587828801611ece565b91505092959194509250565b600080604083850312156120e3578182fd5b82356120ee81612ff1565b91506020830135801515811461201c578182fd5b60008060408385031215612114578182fd5b823561211f81612ff1565b9150602083013567ffffffffffffffff81111561213a578182fd5b61214685828601611ece565b9150509250929050565b60008060408385031215612162578182fd5b823561216d81612ff1565b946020939093013593505050565b60006020828403121561218c578081fd5b5035919050565b6000602082840312156121a4578081fd5b81356111ec81613006565b6000602082840312156121c0578081fd5b81516111ec81613006565b6000602082840312156121dc578081fd5b81516111ec81612ff1565b6000602082840312156121f8578081fd5b813567ffffffffffffffff81111561220e578182fd5b610d0284828501611ece565b60006020828403121561222b578081fd5b813567ffffffffffffffff811115612241578182fd5b610d0284828501611f4f565b6000806040838503121561225f578182fd5b823567ffffffffffffffff80821115612276578384fd5b61228286838701611f4f565b93506020850135915080821115612297578283fd5b5061214685828601611ece565b600080604083850312156122b6578182fd5b50508035926020909101359150565b600081518084526122dd816020860160208601612f19565b601f01601f19169290920160200192915050565b80546000906002810460018083168061230b57607f831692505b602080841082141561232b57634e487b7160e01b86526022600452602486fd5b81801561233f57600181146123505761237d565b60ff1986168952848901965061237d565b61235988612eab565b60005b868110156123755781548b82015290850190830161235c565b505084890196505b50505050505092915050565b607d60f81b815260010190565b600060018060a01b03825116835260208201516020840152604082015160606040850152610d0260608501826122c5565b7f19457468657265756d205369676e6564204d6573736167653a0a3332000000008152601c810191909152603c0190565b60007f646174613a6170706c69636174696f6e2f6a736f6e3b757466382c7b226e616d825270032911d1120b9ba3930b3b630b23290169607d1b6020830152845161244a816031850160208901612f19565b6201016960ed1b603191840191820152845161246d816034840160208901612f19565b7f222c226c6963656e7365223a2243432042592d534120342e30222c2264657363603492909101918201527f72697074696f6e223a224173747261676c61646520697320616e20696e74657260548201527f6163746976652c2067656e657261746976652c20334420636f6c6c656374696260748201527f6c65206578706572696d656e742e204173747261676c6164657320617265206360948201527f6f6c6c6563746564207468726f756768206120756e6971756520736f6369616c60b48201527f20636f6c6c656374696f6e206d656368616e69736d2e2045616368207665727360d48201527f696f6e206f66204173747261676c6164652063616e206265207369676e65642060f48201527f776974682061207369676e61747572652077686963682077696c6c2072656d616101148201527f696e20696e2074686520617274776f726b20666f72657665722e222c226372656101348201527f617465645f6279223a22466162696e2052617368656564222c22747769747465610154820152701c888e8890185cdd1c9859db185919488b607a1b6101748201526119ed61261d6101858301866122f1565b612389565b6001600160a01b0391909116815260200190565b6001600160a01b03858116825284166020820152604081018390526080606082018190526000906119ed908301846122c5565b6001600160a01b03929092168252602082015260400190565b901515815260200190565b90815260200190565b93845260ff9290921660208401526040830152606082015260800190565b6000602082526111ec60208301846122c5565b60208082526018908201527f45434453413a20696e76616c6964207369676e61747572650000000000000000604082015260600190565b6020808252601f908201527f45434453413a20696e76616c6964207369676e6174757265206c656e67746800604082015260600190565b6020808252601590820152742a37b5b2b71030b63932b0b23c9036b4b73a32b21760591b604082015260600190565b6020808252602b908201527f455243373231456e756d657261626c653a206f776e657220696e646578206f7560408201526a74206f6620626f756e647360a81b606082015260800190565b60208082526032908201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560408201527131b2b4bb32b91034b6b83632b6b2b73a32b960711b606082015260800190565b60208082526026908201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160408201526564647265737360d01b606082015260800190565b6020808252601c908201527f4552433732313a20746f6b656e20616c7265616479206d696e74656400000000604082015260600190565b60208082526024908201527f4552433732313a207472616e7366657220746f20746865207a65726f206164646040820152637265737360e01b606082015260800190565b60208082526019908201527f4552433732313a20617070726f766520746f2063616c6c657200000000000000604082015260600190565b60208082526022908201527f45434453413a20696e76616c6964207369676e6174757265202773272076616c604082015261756560f01b606082015260800190565b6020808252602c908201527f4552433732313a206f70657261746f7220717565727920666f72206e6f6e657860408201526b34b9ba32b73a103a37b5b2b760a11b606082015260800190565b60208082526016908201527526b4b73a34b7339037b93232b91032bc3834b932b21760511b604082015260600190565b60208082526022908201527f4d696e74696e67206f7264657220666f7220616e6f7468657220616464726573604082015261399760f11b606082015260800190565b60208082526038908201527f4552433732313a20617070726f76652063616c6c6572206973206e6f74206f7760408201527f6e6572206e6f7220617070726f76656420666f7220616c6c0000000000000000606082015260800190565b6020808252602a908201527f4552433732313a2062616c616e636520717565727920666f7220746865207a65604082015269726f206164647265737360b01b606082015260800190565b60208082526029908201527f4552433732313a206f776e657220717565727920666f72206e6f6e657869737460408201526832b73a103a37b5b2b760b91b606082015260800190565b60208082526022908201527f45434453413a20696e76616c6964207369676e6174757265202776272076616c604082015261756560f01b606082015260800190565b6020808252818101527f4552433732313a206d696e7420746f20746865207a65726f2061646472657373604082015260600190565b6020808252601b908201527f4d617820737570706c7920616c726561647920726561636865642e0000000000604082015260600190565b6020808252602c908201527f4552433732313a20617070726f76656420717565727920666f72206e6f6e657860408201526b34b9ba32b73a103a37b5b2b760a11b606082015260800190565b60208082526010908201526f24b731b7b93932b1ba103b30b63ab29760811b604082015260600190565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b60208082526029908201527f4552433732313a207472616e73666572206f6620746f6b656e2074686174206960408201526839903737ba1037bbb760b91b606082015260800190565b6020808252602f908201527f4552433732314d657461646174613a2055524920717565727920666f72206e6f60408201526e3732bc34b9ba32b73a103a37b5b2b760891b606082015260800190565b60208082526021908201527f4552433732313a20617070726f76616c20746f2063757272656e74206f776e656040820152603960f91b606082015260800190565b60208082526017908201527f5369676e65722061646472657373207265717569726564000000000000000000604082015260600190565b60208082526031908201527f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f6040820152701ddb995c881b9bdc88185c1c1c9bdd9959607a1b606082015260800190565b6020808252602c908201527f455243373231456e756d657261626c653a20676c6f62616c20696e646578206f60408201526b7574206f6620626f756e647360a01b606082015260800190565b6020808252601e908201527f57726f6e67206d696e74696e67206f72646572207369676e61747572652e0000604082015260600190565b60208082526030908201527f4552433732314275726e61626c653a2063616c6c6572206973206e6f74206f7760408201526f1b995c881b9bdc88185c1c1c9bdd995960821b606082015260800190565b6000602082526111ec6020830184612396565b600060408252612e9c6040830185612396565b90508260208301529392505050565b60009081526020902090565b60008219821115612eca57612eca612faf565b500190565b600082612ede57612ede612fc5565b500490565b6000816000190483118215151615612efd57612efd612faf565b500290565b600082821015612f1457612f14612faf565b500390565b60005b83811015612f34578181015183820152602001612f1c565b838111156110045750506000910152565b600281046001821680612f5957607f821691505b60208210811415612f7a57634e487b7160e01b600052602260045260246000fd5b50919050565b6000600019821415612f9457612f94612faf565b5060010190565b600082612faa57612faa612fc5565b500690565b634e487b7160e01b600052601160045260246000fd5b634e487b7160e01b600052601260045260246000fd5b634e487b7160e01b600052604160045260246000fd5b6001600160a01b0381168114610bd557600080fd5b6001600160e01b031981168114610bd557600080fdfea26469706673582212200cd76aa2c5620b60c33984a731e341e1ba8fe082d76d5614017d5ea60f25b1b164736f6c6343000800003300000000000000000000000000000000000000000000000000000000000000c000000000000000000000000000000000000000000000000000000000000001000000000000000000000000000000000000000000000000000000000000000140000000000000000000000000a5409ec958c83c3f309868babaca7c86dcb077c1000000000000000000000000181f8d7ac9bfcda272fc07419f1593874f0724cb000000000000000000000000f2a841f4025159e5a845de3172384a7bca00ddde000000000000000000000000000000000000000000000000000000000000000a4173747261676c6164650000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000044153544700000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000003a697066733a2f2f697066732f516d526d3170785a65426937316952616a4c626333706167374d5679656b61434d53574c63436f426a3775553668000000000000
Deployed Bytecode
0x6080604052600436106101f95760003560e01c806367e341cf1161010d578063a22cb465116100a0578063c97f31bb1161006f578063c97f31bb14610594578063e8a3d485146105b4578063e985e9c5146105c9578063f17af48d146105e9578063f2fde38b146105fe576101f9565b8063a22cb46514610514578063a5f6029014610534578063b88d4fde14610554578063c87b56dd14610574576101f9565b80638da5cb5b116100dc5780638da5cb5b146104b5578063938e3d7b146104ca57806395d89b41146104ea57806398d5fdca146104ff576101f9565b806367e341cf1461044b57806370a082311461046b578063715018a61461048b57806375794a3c146104a0576101f9565b80632f745c591161019057806342966c681161015f57806342966c68146103ab5780634b51b3c6146103cb5780634f6ccce7146103eb5780636102de981461040b5780636352211e1461042b576101f9565b80632f745c59146103285780633c87d334146103485780633ccfd60b1461037657806342842e0e1461038b576101f9565b806318160ddd116101cc57806318160ddd146102a557806323b872dd146102c75780632736bf13146102e75780632a55205a146102fa576101f9565b806301ffc9a7146101fe57806306fdde0314610234578063081812fc14610256578063095ea7b314610283575b600080fd5b34801561020a57600080fd5b5061021e610219366004612193565b61061e565b60405161022b9190612682565b60405180910390f35b34801561024057600080fd5b5061024961064c565b60405161022b91906126b4565b34801561026257600080fd5b5061027661027136600461217b565b6106de565b60405161022b9190612622565b34801561028f57600080fd5b506102a361029e366004612150565b61072a565b005b3480156102b157600080fd5b506102ba6107c2565b60405161022b919061268d565b3480156102d357600080fd5b506102a36102e2366004612027565b6107c8565b6102a36102f536600461224d565b610800565b34801561030657600080fd5b5061031a6103153660046122a4565b610997565b60405161022b929190612669565b34801561033457600080fd5b506102ba610343366004612150565b6109bc565b34801561035457600080fd5b50610368610363366004612102565b610a11565b60405161022b929190612e89565b34801561038257600080fd5b506102a3610a56565b34801561039757600080fd5b506102a36103a6366004612027565b610b8a565b3480156103b757600080fd5b506102a36103c636600461217b565b610ba5565b3480156103d757600080fd5b506102ba6103e636600461221a565b610bd8565b3480156103f757600080fd5b506102ba61040636600461217b565b610bfd565b34801561041757600080fd5b5061021e610426366004611fef565b610c58565b34801561043757600080fd5b5061027661044636600461217b565b610d0a565b34801561045757600080fd5b506102ba61046636600461221a565b610d3f565b34801561047757600080fd5b506102ba610486366004611fd3565b610d6f565b34801561049757600080fd5b506102a3610db3565b3480156104ac57600080fd5b506102ba610dfe565b3480156104c157600080fd5b50610276610e04565b3480156104d657600080fd5b506102a36104e53660046121e7565b610e13565b3480156104f657600080fd5b50610249610e5b565b34801561050b57600080fd5b506102ba610e6a565b34801561052057600080fd5b506102a361052f3660046120d1565b610e76565b34801561054057600080fd5b506102a361054f366004611fd3565b610f44565b34801561056057600080fd5b506102a361056f366004612067565b610fcb565b34801561058057600080fd5b5061024961058f36600461217b565b61100a565b3480156105a057600080fd5b506102ba6105af36600461217b565b6111a8565b3480156105c057600080fd5b506102496111ba565b3480156105d557600080fd5b5061021e6105e4366004611fef565b6111c9565b3480156105f557600080fd5b506102766111f3565b34801561060a57600080fd5b506102a3610619366004611fd3565b611202565b600061062982611270565b8061064457506001600160e01b0319821663152a902d60e11b145b90505b919050565b60606001805461065b90612f45565b80601f016020809104026020016040519081016040528092919081815260200182805461068790612f45565b80156106d45780601f106106a9576101008083540402835291602001916106d4565b820191906000526020600020905b8154815290600101906020018083116106b757829003601f168201915b5050505050905090565b60006106e982611295565b61070e5760405162461bcd60e51b815260040161070590612b97565b60405180910390fd5b506000908152600560205260409020546001600160a01b031690565b600061073582610d0a565b9050806001600160a01b0316836001600160a01b031614156107695760405162461bcd60e51b815260040161070590612cda565b806001600160a01b031661077b6112b2565b6001600160a01b031614806107975750610797816105e46112b2565b6107b35760405162461bcd60e51b8152600401610705906129f9565b6107bd83836112b6565b505050565b60095490565b6107d96107d36112b2565b82611324565b6107f55760405162461bcd60e51b815260040161070590612d52565b6107bd8383836113a1565b600061081361080e84610d3f565b6114ce565b600e549091506001600160a01b031661082c82846114e1565b6001600160a01b0316146108525760405162461bcd60e51b815260040161070590612def565b42836020015110156108765760405162461bcd60e51b815260040161070590612987565b61087e6112b2565b6001600160a01b031683600001516001600160a01b0316146108b25760405162461bcd60e51b8152600401610705906129b7565b600081815260106020526040902054156108de5760405162461bcd60e51b815260040161070590612735565b6000600d5460016108ef9190612eb7565b9050612b678111156109135760405162461bcd60e51b815260040161070590612b60565b67013b7b21280e0000341461093a5760405162461bcd60e51b815260040161070590612be3565b60008281526010602090815260408083208490558651815192830190915291815261096791908390611555565b6040808501516000838152600f6020908152929020815161098e9391929190910190611e0b565b50600d55505050565b3060006127106109a9846103e8612ee3565b6109b39190612ecf565b90509250929050565b60006109c783610d6f565b82106109e55760405162461bcd60e51b815260040161070590612764565b506001600160a01b03821660009081526007602090815260408083208484529091529020545b92915050565b610a19611e8f565b60006040518060600160405280856001600160a01b0316815260200142610384610a439190612eb7565b815260200184905291506109b382610d3f565b610a5e6112b2565b6001600160a01b0316610a6f610e04565b6001600160a01b031614610a955760405162461bcd60e51b815260040161070590612c0d565b4773e4657af058e3f844919c3ee713df09c3f29494476108fc6064610abb84601e612ee3565b610ac59190612ecf565b6040518115909202916000818181858888f19350505050158015610aed573d6000803e3d6000fd5b5073b275e5aa8011ea32506a91449b190213224aec1e6108fc6064610b13846023612ee3565b610b1d9190612ecf565b6040518115909202916000818181858888f19350505050158015610b45573d6000803e3d6000fd5b5060405173dac81c3642b520584ed0e743729f238d1c350e62904780156108fc02916000818181858888f19350505050158015610b86573d6000803e3d6000fd5b5050565b6107bd83838360405180602001604052806000815250610fcb565b610bb06107d36112b2565b610bcc5760405162461bcd60e51b815260040161070590612e26565b610bd581611588565b50565b600080610be761080e84610d3f565b6000908152601060205260409020549392505050565b6000610c076107c2565b8210610c255760405162461bcd60e51b815260040161070590612da3565b60098281548110610c4657634e487b7160e01b600052603260045260246000fd5b90600052602060002001549050919050565b600c546000906001600160a01b03168015801590610d025750826001600160a01b0316816001600160a01b031663c4552791866040518263ffffffff1660e01b8152600401610ca79190612622565b60206040518083038186803b158015610cbf57600080fd5b505afa158015610cd3573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610cf791906121cb565b6001600160a01b0316145b949350505050565b6000818152600360205260408120546001600160a01b0316806106445760405162461bcd60e51b815260040161070590612aa0565b600081604051602001610d529190612e76565b604051602081830303815290604052805190602001209050919050565b60006001600160a01b038216610d975760405162461bcd60e51b815260040161070590612a56565b506001600160a01b031660009081526004602052604090205490565b610dbb6112b2565b6001600160a01b0316610dcc610e04565b6001600160a01b031614610df25760405162461bcd60e51b815260040161070590612c0d565b610dfc600061162f565b565b600d5481565b6000546001600160a01b031690565b610e1b6112b2565b6001600160a01b0316610e2c610e04565b6001600160a01b031614610e525760405162461bcd60e51b815260040161070590612c0d565b610bd58161167f565b60606002805461065b90612f45565b67013b7b21280e000090565b610e7e6112b2565b6001600160a01b0316826001600160a01b03161415610eaf5760405162461bcd60e51b8152600401610705906128c2565b8060066000610ebc6112b2565b6001600160a01b03908116825260208083019390935260409182016000908120918716808252919093529120805460ff191692151592909217909155610f006112b2565b6001600160a01b03167f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c3183604051610f389190612682565b60405180910390a35050565b610f4c6112b2565b6001600160a01b0316610f5d610e04565b6001600160a01b031614610f835760405162461bcd60e51b815260040161070590612c0d565b6001600160a01b038116610fa95760405162461bcd60e51b815260040161070590612d1b565b600e80546001600160a01b0319166001600160a01b0392909216919091179055565b610fdc610fd66112b2565b83611324565b610ff85760405162461bcd60e51b815260040161070590612d52565b61100484848484611692565b50505050565b606061101582611295565b6110315760405162461bcd60e51b815260040161070590612c8b565b6060600a83116110605750604080518082019091526008815267556e69766572736160c01b6020820152611162565b6064831161108e575060408051808201909152600981526847616c61637469636160b81b6020820152611162565b6103e883116110ba57506040805180820190915260068152654e6562756c6160d01b6020820152611162565b610bb883116110e757506040805180820190915260078152664d6574656f726160c81b6020820152611162565b61271083116111145750604080518082019091526007815266536f6c6172697360c81b6020820152611162565b612b668311611143575060408051808201909152600981526853757065726e6f766160b81b6020820152611162565b506040805180820190915260068152655175616e746160d01b60208201525b61116b836116c5565b81600f6000868152602001908152602001600020604051602001611191939291906123f8565b604051602081830303815290604052915050919050565b60106020526000908152604090205481565b6060600b805461065b90612f45565b60006111d58383610c58565b156111e257506001610a0b565b6111ec83836117e0565b9392505050565b600e546001600160a01b031681565b61120a6112b2565b6001600160a01b031661121b610e04565b6001600160a01b0316146112415760405162461bcd60e51b815260040161070590612c0d565b6001600160a01b0381166112675760405162461bcd60e51b815260040161070590612801565b610bd58161162f565b60006001600160e01b0319821663780e9d6360e01b148061064457506106448261180e565b6000908152600360205260409020546001600160a01b0316151590565b3390565b600081815260056020526040902080546001600160a01b0319166001600160a01b03841690811790915581906112eb82610d0a565b6001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b600061132f82611295565b61134b5760405162461bcd60e51b81526004016107059061293b565b600061135683610d0a565b9050806001600160a01b0316846001600160a01b031614806113915750836001600160a01b0316611386846106de565b6001600160a01b0316145b80610d025750610d0281856111c9565b826001600160a01b03166113b482610d0a565b6001600160a01b0316146113da5760405162461bcd60e51b815260040161070590612c42565b6001600160a01b0382166114005760405162461bcd60e51b81526004016107059061287e565b61140b83838361184e565b6114166000826112b6565b6001600160a01b038316600090815260046020526040812080546001929061143f908490612f02565b90915550506001600160a01b038216600090815260046020526040812080546001929061146d908490612eb7565b909155505060008181526003602052604080822080546001600160a01b0319166001600160a01b0386811691821790925591518493918716917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91a4505050565b600081604051602001610d5291906123c7565b60008151604114156115155760208201516040830151606084015160001a61150b868285856118d7565b9350505050610a0b565b81516040141561153d57602082015160408301516115348583836119cd565b92505050610a0b565b60405162461bcd60e51b8152600401610705906126fe565b61155f83836119f7565b61156c6000848484611ad6565b6107bd5760405162461bcd60e51b8152600401610705906127af565b600061159382610d0a565b90506115a18160008461184e565b6115ac6000836112b6565b6001600160a01b03811660009081526004602052604081208054600192906115d5908490612f02565b909155505060008281526003602052604080822080546001600160a01b0319169055518391906001600160a01b038416907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908390a45050565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b8051610b8690600b906020840190611e0b565b61169d8484846113a1565b6116a984848484611ad6565b6110045760405162461bcd60e51b8152600401610705906127af565b6060816116ea57506040805180820190915260018152600360fc1b6020820152610647565b8160005b811561171457806116fe81612f80565b915061170d9050600a83612ecf565b91506116ee565b60008167ffffffffffffffff81111561173d57634e487b7160e01b600052604160045260246000fd5b6040519080825280601f01601f191660200182016040528015611767576020820181803683370190505b5090505b8415610d025761177c600183612f02565b9150611789600a86612f9b565b611794906030612eb7565b60f81b8183815181106117b757634e487b7160e01b600052603260045260246000fd5b60200101906001600160f81b031916908160001a9053506117d9600a86612ecf565b945061176b565b6001600160a01b03918216600090815260066020908152604080832093909416825291909152205460ff1690565b60006001600160e01b031982166380ac58cd60e01b148061183f57506001600160e01b03198216635b5e139f60e01b145b80610644575061064482611bee565b6118598383836107bd565b6001600160a01b0383166118755761187081611c07565b611898565b816001600160a01b0316836001600160a01b031614611898576118988382611c4b565b6001600160a01b0382166118b4576118af81611ce8565b6107bd565b826001600160a01b0316826001600160a01b0316146107bd576107bd8282611dc1565b60007f7fffffffffffffffffffffffffffffff5d576e7357a4501ddfe92f46681b20a08211156119195760405162461bcd60e51b8152600401610705906128f9565b8360ff16601b148061192e57508360ff16601c145b61194a5760405162461bcd60e51b815260040161070590612ae9565b60006001868686866040516000815260200160405260405161196f9493929190612696565b6020604051602081039080840390855afa158015611991573d6000803e3d6000fd5b5050604051601f1901519150506001600160a01b0381166119c45760405162461bcd60e51b8152600401610705906126c7565b95945050505050565b60006001600160ff1b03821660ff83901c601b016119ed868287856118d7565b9695505050505050565b6001600160a01b038216611a1d5760405162461bcd60e51b815260040161070590612b2b565b611a2681611295565b15611a435760405162461bcd60e51b815260040161070590612847565b611a4f6000838361184e565b6001600160a01b0382166000908152600460205260408120805460019290611a78908490612eb7565b909155505060008181526003602052604080822080546001600160a01b0319166001600160a01b03861690811790915590518392907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b6000611aea846001600160a01b0316611e05565b15611be657836001600160a01b031663150b7a02611b066112b2565b8786866040518563ffffffff1660e01b8152600401611b289493929190612636565b602060405180830381600087803b158015611b4257600080fd5b505af1925050508015611b72575060408051601f3d908101601f19168201909252611b6f918101906121af565b60015b611bcc573d808015611ba0576040519150601f19603f3d011682016040523d82523d6000602084013e611ba5565b606091505b508051611bc45760405162461bcd60e51b8152600401610705906127af565b805181602001fd5b6001600160e01b031916630a85bd0160e11b149050610d02565b506001610d02565b6001600160e01b031981166301ffc9a760e01b14919050565b600980546000838152600a60205260408120829055600182018355919091527f6e1540171b6c0c960b71a7020d9f60077f6af931a8bbf590da0223dacf75c7af0155565b60006001611c5884610d6f565b611c629190612f02565b600083815260086020526040902054909150808214611cb5576001600160a01b03841660009081526007602090815260408083208584528252808320548484528184208190558352600890915290208190555b5060009182526008602090815260408084208490556001600160a01b039094168352600781528383209183525290812055565b600954600090611cfa90600190612f02565b6000838152600a602052604081205460098054939450909284908110611d3057634e487b7160e01b600052603260045260246000fd5b906000526020600020015490508060098381548110611d5f57634e487b7160e01b600052603260045260246000fd5b6000918252602080832090910192909255828152600a90915260408082208490558582528120556009805480611da557634e487b7160e01b600052603160045260246000fd5b6001900381819060005260206000200160009055905550505050565b6000611dcc83610d6f565b6001600160a01b039093166000908152600760209081526040808320868452825280832085905593825260089052919091209190915550565b3b151590565b828054611e1790612f45565b90600052602060002090601f016020900481019282611e395760008555611e7f565b82601f10611e5257805160ff1916838001178555611e7f565b82800160010185558215611e7f579182015b82811115611e7f578251825591602001919060010190611e64565b50611e8b929150611eb9565b5090565b604051806060016040528060006001600160a01b0316815260200160008152602001606081525090565b5b80821115611e8b5760008155600101611eba565b600082601f830112611ede578081fd5b813567ffffffffffffffff80821115611ef957611ef9612fdb565b604051601f8301601f191681016020018281118282101715611f1d57611f1d612fdb565b604052828152848301602001861015611f34578384fd5b82602086016020830137918201602001929092529392505050565b600060608284031215611f60578081fd5b6040516060810167ffffffffffffffff8282108183111715611f8457611f84612fdb565b8160405282935084359150611f9882612ff1565b818352602085013560208401526040850135915080821115611fb957600080fd5b50611fc685828601611ece565b6040830152505092915050565b600060208284031215611fe4578081fd5b81356111ec81612ff1565b60008060408385031215612001578081fd5b823561200c81612ff1565b9150602083013561201c81612ff1565b809150509250929050565b60008060006060848603121561203b578081fd5b833561204681612ff1565b9250602084013561205681612ff1565b929592945050506040919091013590565b6000806000806080858703121561207c578081fd5b843561208781612ff1565b9350602085013561209781612ff1565b925060408501359150606085013567ffffffffffffffff8111156120b9578182fd5b6120c587828801611ece565b91505092959194509250565b600080604083850312156120e3578182fd5b82356120ee81612ff1565b91506020830135801515811461201c578182fd5b60008060408385031215612114578182fd5b823561211f81612ff1565b9150602083013567ffffffffffffffff81111561213a578182fd5b61214685828601611ece565b9150509250929050565b60008060408385031215612162578182fd5b823561216d81612ff1565b946020939093013593505050565b60006020828403121561218c578081fd5b5035919050565b6000602082840312156121a4578081fd5b81356111ec81613006565b6000602082840312156121c0578081fd5b81516111ec81613006565b6000602082840312156121dc578081fd5b81516111ec81612ff1565b6000602082840312156121f8578081fd5b813567ffffffffffffffff81111561220e578182fd5b610d0284828501611ece565b60006020828403121561222b578081fd5b813567ffffffffffffffff811115612241578182fd5b610d0284828501611f4f565b6000806040838503121561225f578182fd5b823567ffffffffffffffff80821115612276578384fd5b61228286838701611f4f565b93506020850135915080821115612297578283fd5b5061214685828601611ece565b600080604083850312156122b6578182fd5b50508035926020909101359150565b600081518084526122dd816020860160208601612f19565b601f01601f19169290920160200192915050565b80546000906002810460018083168061230b57607f831692505b602080841082141561232b57634e487b7160e01b86526022600452602486fd5b81801561233f57600181146123505761237d565b60ff1986168952848901965061237d565b61235988612eab565b60005b868110156123755781548b82015290850190830161235c565b505084890196505b50505050505092915050565b607d60f81b815260010190565b600060018060a01b03825116835260208201516020840152604082015160606040850152610d0260608501826122c5565b7f19457468657265756d205369676e6564204d6573736167653a0a3332000000008152601c810191909152603c0190565b60007f646174613a6170706c69636174696f6e2f6a736f6e3b757466382c7b226e616d825270032911d1120b9ba3930b3b630b23290169607d1b6020830152845161244a816031850160208901612f19565b6201016960ed1b603191840191820152845161246d816034840160208901612f19565b7f222c226c6963656e7365223a2243432042592d534120342e30222c2264657363603492909101918201527f72697074696f6e223a224173747261676c61646520697320616e20696e74657260548201527f6163746976652c2067656e657261746976652c20334420636f6c6c656374696260748201527f6c65206578706572696d656e742e204173747261676c6164657320617265206360948201527f6f6c6c6563746564207468726f756768206120756e6971756520736f6369616c60b48201527f20636f6c6c656374696f6e206d656368616e69736d2e2045616368207665727360d48201527f696f6e206f66204173747261676c6164652063616e206265207369676e65642060f48201527f776974682061207369676e61747572652077686963682077696c6c2072656d616101148201527f696e20696e2074686520617274776f726b20666f72657665722e222c226372656101348201527f617465645f6279223a22466162696e2052617368656564222c22747769747465610154820152701c888e8890185cdd1c9859db185919488b607a1b6101748201526119ed61261d6101858301866122f1565b612389565b6001600160a01b0391909116815260200190565b6001600160a01b03858116825284166020820152604081018390526080606082018190526000906119ed908301846122c5565b6001600160a01b03929092168252602082015260400190565b901515815260200190565b90815260200190565b93845260ff9290921660208401526040830152606082015260800190565b6000602082526111ec60208301846122c5565b60208082526018908201527f45434453413a20696e76616c6964207369676e61747572650000000000000000604082015260600190565b6020808252601f908201527f45434453413a20696e76616c6964207369676e6174757265206c656e67746800604082015260600190565b6020808252601590820152742a37b5b2b71030b63932b0b23c9036b4b73a32b21760591b604082015260600190565b6020808252602b908201527f455243373231456e756d657261626c653a206f776e657220696e646578206f7560408201526a74206f6620626f756e647360a81b606082015260800190565b60208082526032908201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560408201527131b2b4bb32b91034b6b83632b6b2b73a32b960711b606082015260800190565b60208082526026908201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160408201526564647265737360d01b606082015260800190565b6020808252601c908201527f4552433732313a20746f6b656e20616c7265616479206d696e74656400000000604082015260600190565b60208082526024908201527f4552433732313a207472616e7366657220746f20746865207a65726f206164646040820152637265737360e01b606082015260800190565b60208082526019908201527f4552433732313a20617070726f766520746f2063616c6c657200000000000000604082015260600190565b60208082526022908201527f45434453413a20696e76616c6964207369676e6174757265202773272076616c604082015261756560f01b606082015260800190565b6020808252602c908201527f4552433732313a206f70657261746f7220717565727920666f72206e6f6e657860408201526b34b9ba32b73a103a37b5b2b760a11b606082015260800190565b60208082526016908201527526b4b73a34b7339037b93232b91032bc3834b932b21760511b604082015260600190565b60208082526022908201527f4d696e74696e67206f7264657220666f7220616e6f7468657220616464726573604082015261399760f11b606082015260800190565b60208082526038908201527f4552433732313a20617070726f76652063616c6c6572206973206e6f74206f7760408201527f6e6572206e6f7220617070726f76656420666f7220616c6c0000000000000000606082015260800190565b6020808252602a908201527f4552433732313a2062616c616e636520717565727920666f7220746865207a65604082015269726f206164647265737360b01b606082015260800190565b60208082526029908201527f4552433732313a206f776e657220717565727920666f72206e6f6e657869737460408201526832b73a103a37b5b2b760b91b606082015260800190565b60208082526022908201527f45434453413a20696e76616c6964207369676e6174757265202776272076616c604082015261756560f01b606082015260800190565b6020808252818101527f4552433732313a206d696e7420746f20746865207a65726f2061646472657373604082015260600190565b6020808252601b908201527f4d617820737570706c7920616c726561647920726561636865642e0000000000604082015260600190565b6020808252602c908201527f4552433732313a20617070726f76656420717565727920666f72206e6f6e657860408201526b34b9ba32b73a103a37b5b2b760a11b606082015260800190565b60208082526010908201526f24b731b7b93932b1ba103b30b63ab29760811b604082015260600190565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b60208082526029908201527f4552433732313a207472616e73666572206f6620746f6b656e2074686174206960408201526839903737ba1037bbb760b91b606082015260800190565b6020808252602f908201527f4552433732314d657461646174613a2055524920717565727920666f72206e6f60408201526e3732bc34b9ba32b73a103a37b5b2b760891b606082015260800190565b60208082526021908201527f4552433732313a20617070726f76616c20746f2063757272656e74206f776e656040820152603960f91b606082015260800190565b60208082526017908201527f5369676e65722061646472657373207265717569726564000000000000000000604082015260600190565b60208082526031908201527f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f6040820152701ddb995c881b9bdc88185c1c1c9bdd9959607a1b606082015260800190565b6020808252602c908201527f455243373231456e756d657261626c653a20676c6f62616c20696e646578206f60408201526b7574206f6620626f756e647360a01b606082015260800190565b6020808252601e908201527f57726f6e67206d696e74696e67206f72646572207369676e61747572652e0000604082015260600190565b60208082526030908201527f4552433732314275726e61626c653a2063616c6c6572206973206e6f74206f7760408201526f1b995c881b9bdc88185c1c1c9bdd995960821b606082015260800190565b6000602082526111ec6020830184612396565b600060408252612e9c6040830185612396565b90508260208301529392505050565b60009081526020902090565b60008219821115612eca57612eca612faf565b500190565b600082612ede57612ede612fc5565b500490565b6000816000190483118215151615612efd57612efd612faf565b500290565b600082821015612f1457612f14612faf565b500390565b60005b83811015612f34578181015183820152602001612f1c565b838111156110045750506000910152565b600281046001821680612f5957607f821691505b60208210811415612f7a57634e487b7160e01b600052602260045260246000fd5b50919050565b6000600019821415612f9457612f94612faf565b5060010190565b600082612faa57612faa612fc5565b500690565b634e487b7160e01b600052601160045260246000fd5b634e487b7160e01b600052601260045260246000fd5b634e487b7160e01b600052604160045260246000fd5b6001600160a01b0381168114610bd557600080fd5b6001600160e01b031981168114610bd557600080fdfea26469706673582212200cd76aa2c5620b60c33984a731e341e1ba8fe082d76d5614017d5ea60f25b1b164736f6c63430008000033
Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)
00000000000000000000000000000000000000000000000000000000000000c000000000000000000000000000000000000000000000000000000000000001000000000000000000000000000000000000000000000000000000000000000140000000000000000000000000a5409ec958c83c3f309868babaca7c86dcb077c1000000000000000000000000181f8d7ac9bfcda272fc07419f1593874f0724cb000000000000000000000000f2a841f4025159e5a845de3172384a7bca00ddde000000000000000000000000000000000000000000000000000000000000000a4173747261676c6164650000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000044153544700000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000003a697066733a2f2f697066732f516d526d3170785a65426937316952616a4c626333706167374d5679656b61434d53574c63436f426a3775553668000000000000
-----Decoded View---------------
Arg [0] : name_ (string): Astraglade
Arg [1] : symbol_ (string): ASTG
Arg [2] : contractURI_ (string): ipfs://ipfs/QmRm1pxZeBi71iRajLbc3pag7MVyekaCMSWLcCoBj7uU6h
Arg [3] : openseaProxyRegistry_ (address): 0xa5409ec958C83C3f309868babACA7c86DCB077c1
Arg [4] : mintSigner_ (address): 0x181F8d7ac9bFcDa272fC07419F1593874F0724Cb
Arg [5] : owner_ (address): 0xF2A841F4025159e5a845de3172384A7bCa00dDdE
-----Encoded View---------------
13 Constructor Arguments found :
Arg [0] : 00000000000000000000000000000000000000000000000000000000000000c0
Arg [1] : 0000000000000000000000000000000000000000000000000000000000000100
Arg [2] : 0000000000000000000000000000000000000000000000000000000000000140
Arg [3] : 000000000000000000000000a5409ec958c83c3f309868babaca7c86dcb077c1
Arg [4] : 000000000000000000000000181f8d7ac9bfcda272fc07419f1593874f0724cb
Arg [5] : 000000000000000000000000f2a841f4025159e5a845de3172384a7bca00ddde
Arg [6] : 000000000000000000000000000000000000000000000000000000000000000a
Arg [7] : 4173747261676c61646500000000000000000000000000000000000000000000
Arg [8] : 0000000000000000000000000000000000000000000000000000000000000004
Arg [9] : 4153544700000000000000000000000000000000000000000000000000000000
Arg [10] : 000000000000000000000000000000000000000000000000000000000000003a
Arg [11] : 697066733a2f2f697066732f516d526d3170785a65426937316952616a4c6263
Arg [12] : 33706167374d5679656b61434d53574c63436f426a3775553668000000000000
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.