Overview
ETH Balance
0.448000000000000009 ETH
Eth Value
$1,668.56 (@ $3,724.47/ETH)Token Holdings
More Info
Private Name Tags
ContractCreator
TokenTracker
Latest 25 from a total of 3,591 transactions
Transaction Hash |
Method
|
Block
|
From
|
To
|
|||||
---|---|---|---|---|---|---|---|---|---|
Safe Transfer Fr... | 20572737 | 101 days ago | IN | 0 ETH | 0.00007032 | ||||
Set Approval For... | 20203659 | 152 days ago | IN | 0 ETH | 0.00011659 | ||||
Set Approval For... | 20026457 | 177 days ago | IN | 0 ETH | 0.00095067 | ||||
Set Approval For... | 19995850 | 181 days ago | IN | 0 ETH | 0.00021338 | ||||
Set Approval For... | 19964471 | 186 days ago | IN | 0 ETH | 0.00043292 | ||||
Set Approval For... | 19880885 | 197 days ago | IN | 0 ETH | 0.00018455 | ||||
Set Approval For... | 19864937 | 200 days ago | IN | 0 ETH | 0.00020774 | ||||
Set Approval For... | 19857179 | 201 days ago | IN | 0 ETH | 0.00013548 | ||||
Safe Transfer Fr... | 19848258 | 202 days ago | IN | 0 ETH | 0.00027848 | ||||
Set Approval For... | 19657661 | 229 days ago | IN | 0 ETH | 0.00036738 | ||||
Set Approval For... | 19459740 | 257 days ago | IN | 0 ETH | 0.00053585 | ||||
Set Approval For... | 19434912 | 260 days ago | IN | 0 ETH | 0.00119761 | ||||
Set Approval For... | 19342937 | 273 days ago | IN | 0 ETH | 0.00268728 | ||||
Set Approval For... | 19340523 | 273 days ago | IN | 0 ETH | 0.00248265 | ||||
Set Approval For... | 19340427 | 273 days ago | IN | 0 ETH | 0.00138524 | ||||
Set Approval For... | 19340426 | 273 days ago | IN | 0 ETH | 0.0024743 | ||||
Set Approval For... | 19331841 | 274 days ago | IN | 0 ETH | 0.00261055 | ||||
Set Approval For... | 19161496 | 298 days ago | IN | 0 ETH | 0.0003985 | ||||
Set Approval For... | 18898450 | 335 days ago | IN | 0 ETH | 0.00069857 | ||||
Set Approval For... | 18803710 | 349 days ago | IN | 0 ETH | 0.00078668 | ||||
Set Approval For... | 18802138 | 349 days ago | IN | 0 ETH | 0.00078671 | ||||
Set Approval For... | 18733958 | 358 days ago | IN | 0 ETH | 0.00176902 | ||||
Set Approval For... | 18674709 | 367 days ago | IN | 0 ETH | 0.00155073 | ||||
Set Approval For... | 18671873 | 367 days ago | IN | 0 ETH | 0.00171208 | ||||
Set Approval For... | 18671341 | 367 days ago | IN | 0 ETH | 0.00203773 |
Latest 19 internal transactions
Advanced mode:
Parent Transaction Hash | Block | From | To | |||
---|---|---|---|---|---|---|
14755761 | 933 days ago | 1.708 ETH | ||||
14461013 | 979 days ago | 1.876 ETH | ||||
14457339 | 980 days ago | 1.876 ETH | ||||
14457335 | 980 days ago | 1.876 ETH | ||||
14344712 | 997 days ago | 6.75307302 ETH | ||||
14269673 | 1009 days ago | 5.49307302 ETH | ||||
14217346 | 1017 days ago | 5.32507302 ETH | ||||
14212569 | 1018 days ago | 5.32507302 ETH | ||||
14212560 | 1018 days ago | 5.32507302 ETH | ||||
13977600 | 1054 days ago | 6.36 ETH | ||||
13977541 | 1054 days ago | 6.36 ETH | ||||
13977511 | 1054 days ago | 6.36 ETH | ||||
13977499 | 1054 days ago | 6.36 ETH | ||||
13977323 | 1054 days ago | 6.36 ETH | ||||
13887384 | 1068 days ago | 20.80186 ETH | ||||
13887314 | 1068 days ago | 20.80186 ETH | ||||
13886973 | 1068 days ago | 20.80186 ETH | ||||
13886931 | 1068 days ago | 20.80186 ETH | ||||
13886888 | 1068 days ago | 20.80186 ETH |
Loading...
Loading
Contract Name:
DegenerateGrannyRetirementClub
Compiler Version
v0.8.7+commit.e28d00a7
Optimization Enabled:
Yes with 200 runs
Other Settings:
default evmVersion
Contract Source Code (Solidity Standard Json-Input format)
//SPDX-License-Identifier: UNLICENSED pragma solidity ^0.8.0; /** Copyrights Paladins-Tech All rights reserved For any commercial use contact us at paladins-tech.eth */ import "@openzeppelin/contracts/token/ERC1155/ERC1155.sol"; import "@openzeppelin/contracts/finance/PaymentSplitter.sol"; import "@openzeppelin/contracts/access/Ownable.sol"; import "@openzeppelin/contracts/utils/cryptography/ECDSA.sol"; contract DegenerateGrannyRetirementClub is ERC1155, PaymentSplitter, Ownable { string public name = "DegenerateGrannyRetirementClub"; address[] private team_ = [ 0x76299b8be5bA5723cF4C60fc41C76Df30E094922, 0x5428A759608643Bf6598400F6ab56490f4C015E6, 0x553C9df7B78b5c5Ea2B00B64E1280aE3A264d9F4, 0x3A70344c268cD039B107D9f65705F6092303c919, 0x83932858105913FE67b3ECe4506bFf35748d0b42 ]; uint256[] private teamShares_ = [20, 20, 20, 20, 20]; using Strings for uint256; using ECDSA for bytes32; uint256 public constant MAX_PUBLIC_PRESALE_SUPPLY = 600; uint256 public constant MAX_SUPPLY = 6000; uint256 public constant TEAM_RESERVE = 30; uint256 public constant MAX_GIFT = 300; uint256 public publicSalePrice = 0.2 ether; uint256 public constant PRIVATE_PRESALE_PRICE = 0.10 ether; uint256 public constant PUBLIC_PRESALE_PRICE = 0.15 ether; address private freeMintAddress = 0xb176a50074c5f91de893E25aCaDFBBCf35736EBc; address private privatePresaleAddress = 0x2b793A6C3a5CFb8bb1318152075a1D3597c2A81a; address private publicPresaleAddress = 0xF88c22D209887389C79F9a5C567b535aCdc0dfD4; uint256 currentSupply; uint256 currentPublicPresaleSupply; uint256 currentGift; string public baseURI; string public notRevealedUri; bool public revealed = false; bool private teamReserved; enum WorkflowStatus { Before, FreeMint, PrivatePresale, PublicPresale, Sale, SoldOut, Paused } WorkflowStatus public workflow; mapping(address => uint256) public tokensPerWallet; mapping(address => uint256) public freeMintPerWallet; mapping(address => uint256) public publicPresalePerWallet; mapping(address => uint256) public privatePresalePerWallet; constructor(string memory _baseUri) ERC1155(_baseUri) PaymentSplitter(team_, teamShares_) { workflow = WorkflowStatus.Before; } //GETTERS function getSaleStatus() public view returns (WorkflowStatus) { return workflow; } function getSalePrice() public view returns (uint256) { return publicSalePrice; } //END GETTERS //SIGNATURE VERIFICATION function verifyAddressSigner( address referenceAddress, bytes32 messageHash, bytes memory signature ) internal pure returns (bool) { return referenceAddress == messageHash.toEthSignedMessageHash().recover(signature); } function hashMessage(uint256 number, address sender) private pure returns (bytes32) { return keccak256(abi.encode(number, sender)); } //END SIGNATURE VERIFICATION //HELPER FUNCTIONS function mintBatch( address to, uint256 baseId, uint256 number ) internal { for (uint256 i = 0; i < number; i++) { _mint(to, baseId + i, 1, new bytes(0)); } } //END HELPER FUNCTIONS //MINT FUNCTIONS /** Claims tokens for free paying only gas fees */ function freeMint( uint256 number, uint256 max, bytes calldata signature ) external { uint256 supply = currentSupply; require( verifyAddressSigner( freeMintAddress, hashMessage(max, msg.sender), signature ), "SIGNATURE_VALIDATION_FAILED" ); require(workflow == WorkflowStatus.FreeMint, "DegenerateGrannyRetirementClub: Freemint has not started!"); require( freeMintPerWallet[msg.sender] + number <= max, "DegenerateGrannyRetirementClub: You can't mint more than your allowed number of NFTs." ); currentSupply += number; freeMintPerWallet[msg.sender] += number; mintBatch(msg.sender, supply, number); } function privatePresaleMint( uint256 number, uint256 max, bytes calldata signature ) external payable { uint256 supply = currentSupply; require( verifyAddressSigner( privatePresaleAddress, hashMessage(max, msg.sender), signature ), "SIGNATURE_VALIDATION_FAILED" ); require(workflow == WorkflowStatus.PrivatePresale, "DegenerateGrannyRetirementClub: Private Presale has not started!"); require( privatePresalePerWallet[msg.sender] + number <= max, "DegenerateGrannyRetirementClub: You can't mint more than your allowed number of NFTs." ); require( msg.value >= number * PRIVATE_PRESALE_PRICE, "DegenerateGrannyRetirementClub: Insufficient funds" ); currentSupply += number; privatePresalePerWallet[msg.sender] += number; mintBatch(msg.sender, supply, number); } function publicPresaleMint( uint256 number, uint256 max, bytes calldata signature ) external payable { uint256 supply = currentSupply; require( verifyAddressSigner( publicPresaleAddress, hashMessage(max, msg.sender), signature ), "SIGNATURE_VALIDATION_FAILED" ); require(workflow == WorkflowStatus.PublicPresale, "DegenerateGrannyRetirementClub: Public Presale has not started!"); require( currentPublicPresaleSupply + number <= MAX_PUBLIC_PRESALE_SUPPLY, "DegenerateGrannyRetirementClub: Public presale sold out !" ); require( publicPresalePerWallet[msg.sender] + number <= max, "DegenerateGrannyRetirementClub: You can't mint more than your allowed number of NFTs." ); require( msg.value >= number * PUBLIC_PRESALE_PRICE, "DegenerateGrannyRetirementClub: Insufficient funds" ); currentSupply += number; publicPresalePerWallet[msg.sender] += number; currentPublicPresaleSupply += number; mintBatch(msg.sender, supply, number); } function publicSaleMint(uint256 amount) external payable { require(amount > 0, "You must mint at least one NFT."); uint256 supply = currentSupply; require(supply + amount <= MAX_SUPPLY, "DegenerateGrannyRetirementClub: Sold out!"); require( workflow == WorkflowStatus.Sale, "DegenerateGrannyRetirementClub: public sale not started." ); require( msg.value >= publicSalePrice * amount, "DegenerateGrannyRetirementClub: Insuficient funds" ); tokensPerWallet[msg.sender] += amount; currentSupply += amount; mintBatch(msg.sender, supply, amount); } /** Mints reserve for the team. Only callable once. Amount fixed. */ function teamReserve() external onlyOwner { require(teamReserved == false, "DegenerateGrannyRetirementClub: Team already reserved"); uint256 supply = currentGift; require( supply + TEAM_RESERVE <= MAX_SUPPLY, "DegenerateGrannyRetirementClub: Mint too large" ); teamReserved = true; currentSupply += TEAM_RESERVE; mintBatch(msg.sender, currentSupply - TEAM_RESERVE, TEAM_RESERVE); } function forceMint(uint256 number) external onlyOwner { uint256 supply = currentGift; require( supply + number <= MAX_GIFT, "DegenerateGrannyRetirementClub: You can't mint more than max supply" ); currentSupply += number; currentGift += number; mintBatch(msg.sender, currentSupply - number, number); } function airdrop(address[] calldata addresses) external onlyOwner { uint256 supply = currentGift; require( addresses.length + supply <= MAX_GIFT, "DegenerateGrannyRetirementClub: You can't airdrop more than max gift" ); uint256 baseId = currentSupply; currentSupply += addresses.length; currentGift += addresses.length; for (uint256 i = 0; i < addresses.length; i++) { _mint(addresses[i], baseId + i, 1, new bytes(0)); } } // END MINT FUNCTIONS function setUpFreemint() external onlyOwner { workflow = WorkflowStatus.FreeMint; } function setUpPrivatePresale() external onlyOwner { workflow = WorkflowStatus.PrivatePresale; } function setUpPublicPresale() external onlyOwner { workflow = WorkflowStatus.PublicPresale; } function setUpSale() external onlyOwner { workflow = WorkflowStatus.Sale; } function pauseSale() external onlyOwner { workflow = WorkflowStatus.Paused; } /** Automatic reveal is too dangerous : manual reveal is better. It allows much more flexibility and is the reveal is still instantaneous. Note that images on OpenSea will take a little bit of time to update. This is OpenSea responsability, it has nothing to do with the contract. */ function reveal() public onlyOwner { revealed = true; } function setNotRevealedURI(string memory _notRevealedURI) public onlyOwner { notRevealedUri = _notRevealedURI; } function setBaseURI(string memory _newBaseURI) public onlyOwner { baseURI = _newBaseURI; } function setFreeMintAddress(address _newAddress) public onlyOwner { require(_newAddress != address(0), "CAN'T PUT 0 ADDRESS"); freeMintAddress = _newAddress; } function setPrivatePresaleAddress(address _newAddress) public onlyOwner { require(_newAddress != address(0), "CAN'T PUT 0 ADDRESS"); privatePresaleAddress = _newAddress; } function setPublicPresaleAddress(address _newAddress) public onlyOwner { require(_newAddress != address(0), "CAN'T PUT 0 ADDRESS"); publicPresaleAddress = _newAddress; } function setSalePrice(uint256 _newPrice) public onlyOwner { publicSalePrice = _newPrice; } function uri(uint256 tokenId) public view override returns (string memory) { if (!revealed) { return notRevealedUri; } else { return baseURI; } } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (token/ERC1155/ERC1155.sol) pragma solidity ^0.8.0; import "./IERC1155.sol"; import "./IERC1155Receiver.sol"; import "./extensions/IERC1155MetadataURI.sol"; import "../../utils/Address.sol"; import "../../utils/Context.sol"; import "../../utils/introspection/ERC165.sol"; /** * @dev Implementation of the basic standard multi-token. * See https://eips.ethereum.org/EIPS/eip-1155 * Originally based on code by Enjin: https://github.com/enjin/erc-1155 * * _Available since v3.1._ */ contract ERC1155 is Context, ERC165, IERC1155, IERC1155MetadataURI { using Address for address; // Mapping from token ID to account balances mapping(uint256 => mapping(address => uint256)) private _balances; // Mapping from account to operator approvals mapping(address => mapping(address => bool)) private _operatorApprovals; // Used as the URI for all token types by relying on ID substitution, e.g. https://token-cdn-domain/{id}.json string private _uri; /** * @dev See {_setURI}. */ constructor(string memory uri_) { _setURI(uri_); } /** * @dev See {IERC165-supportsInterface}. */ function supportsInterface(bytes4 interfaceId) public view virtual override(ERC165, IERC165) returns (bool) { return interfaceId == type(IERC1155).interfaceId || interfaceId == type(IERC1155MetadataURI).interfaceId || super.supportsInterface(interfaceId); } /** * @dev See {IERC1155MetadataURI-uri}. * * This implementation returns the same URI for *all* token types. It relies * on the token type ID substitution mechanism * https://eips.ethereum.org/EIPS/eip-1155#metadata[defined in the EIP]. * * Clients calling this function must replace the `\{id\}` substring with the * actual token type ID. */ function uri(uint256) public view virtual override returns (string memory) { return _uri; } /** * @dev See {IERC1155-balanceOf}. * * Requirements: * * - `account` cannot be the zero address. */ function balanceOf(address account, uint256 id) public view virtual override returns (uint256) { require(account != address(0), "ERC1155: balance query for the zero address"); return _balances[id][account]; } /** * @dev See {IERC1155-balanceOfBatch}. * * Requirements: * * - `accounts` and `ids` must have the same length. */ function balanceOfBatch(address[] memory accounts, uint256[] memory ids) public view virtual override returns (uint256[] memory) { require(accounts.length == ids.length, "ERC1155: accounts and ids length mismatch"); uint256[] memory batchBalances = new uint256[](accounts.length); for (uint256 i = 0; i < accounts.length; ++i) { batchBalances[i] = balanceOf(accounts[i], ids[i]); } return batchBalances; } /** * @dev See {IERC1155-setApprovalForAll}. */ function setApprovalForAll(address operator, bool approved) public virtual override { _setApprovalForAll(_msgSender(), operator, approved); } /** * @dev See {IERC1155-isApprovedForAll}. */ function isApprovedForAll(address account, address operator) public view virtual override returns (bool) { return _operatorApprovals[account][operator]; } /** * @dev See {IERC1155-safeTransferFrom}. */ function safeTransferFrom( address from, address to, uint256 id, uint256 amount, bytes memory data ) public virtual override { require( from == _msgSender() || isApprovedForAll(from, _msgSender()), "ERC1155: caller is not owner nor approved" ); _safeTransferFrom(from, to, id, amount, data); } /** * @dev See {IERC1155-safeBatchTransferFrom}. */ function safeBatchTransferFrom( address from, address to, uint256[] memory ids, uint256[] memory amounts, bytes memory data ) public virtual override { require( from == _msgSender() || isApprovedForAll(from, _msgSender()), "ERC1155: transfer caller is not owner nor approved" ); _safeBatchTransferFrom(from, to, ids, amounts, data); } /** * @dev Transfers `amount` tokens of token type `id` from `from` to `to`. * * Emits a {TransferSingle} event. * * Requirements: * * - `to` cannot be the zero address. * - `from` must have a balance of tokens of type `id` of at least `amount`. * - If `to` refers to a smart contract, it must implement {IERC1155Receiver-onERC1155Received} and return the * acceptance magic value. */ function _safeTransferFrom( address from, address to, uint256 id, uint256 amount, bytes memory data ) internal virtual { require(to != address(0), "ERC1155: transfer to the zero address"); address operator = _msgSender(); _beforeTokenTransfer(operator, from, to, _asSingletonArray(id), _asSingletonArray(amount), data); uint256 fromBalance = _balances[id][from]; require(fromBalance >= amount, "ERC1155: insufficient balance for transfer"); unchecked { _balances[id][from] = fromBalance - amount; } _balances[id][to] += amount; emit TransferSingle(operator, from, to, id, amount); _doSafeTransferAcceptanceCheck(operator, from, to, id, amount, data); } /** * @dev xref:ROOT:erc1155.adoc#batch-operations[Batched] version of {_safeTransferFrom}. * * Emits a {TransferBatch} event. * * Requirements: * * - If `to` refers to a smart contract, it must implement {IERC1155Receiver-onERC1155BatchReceived} and return the * acceptance magic value. */ function _safeBatchTransferFrom( address from, address to, uint256[] memory ids, uint256[] memory amounts, bytes memory data ) internal virtual { require(ids.length == amounts.length, "ERC1155: ids and amounts length mismatch"); require(to != address(0), "ERC1155: transfer to the zero address"); address operator = _msgSender(); _beforeTokenTransfer(operator, from, to, ids, amounts, data); for (uint256 i = 0; i < ids.length; ++i) { uint256 id = ids[i]; uint256 amount = amounts[i]; uint256 fromBalance = _balances[id][from]; require(fromBalance >= amount, "ERC1155: insufficient balance for transfer"); unchecked { _balances[id][from] = fromBalance - amount; } _balances[id][to] += amount; } emit TransferBatch(operator, from, to, ids, amounts); _doSafeBatchTransferAcceptanceCheck(operator, from, to, ids, amounts, data); } /** * @dev Sets a new URI for all token types, by relying on the token type ID * substitution mechanism * https://eips.ethereum.org/EIPS/eip-1155#metadata[defined in the EIP]. * * By this mechanism, any occurrence of the `\{id\}` substring in either the * URI or any of the amounts in the JSON file at said URI will be replaced by * clients with the token type ID. * * For example, the `https://token-cdn-domain/\{id\}.json` URI would be * interpreted by clients as * `https://token-cdn-domain/000000000000000000000000000000000000000000000000000000000004cce0.json` * for token type ID 0x4cce0. * * See {uri}. * * Because these URIs cannot be meaningfully represented by the {URI} event, * this function emits no events. */ function _setURI(string memory newuri) internal virtual { _uri = newuri; } /** * @dev Creates `amount` tokens of token type `id`, and assigns them to `to`. * * Emits a {TransferSingle} event. * * Requirements: * * - `to` cannot be the zero address. * - If `to` refers to a smart contract, it must implement {IERC1155Receiver-onERC1155Received} and return the * acceptance magic value. */ function _mint( address to, uint256 id, uint256 amount, bytes memory data ) internal virtual { require(to != address(0), "ERC1155: mint to the zero address"); address operator = _msgSender(); _beforeTokenTransfer(operator, address(0), to, _asSingletonArray(id), _asSingletonArray(amount), data); _balances[id][to] += amount; emit TransferSingle(operator, address(0), to, id, amount); _doSafeTransferAcceptanceCheck(operator, address(0), to, id, amount, data); } /** * @dev xref:ROOT:erc1155.adoc#batch-operations[Batched] version of {_mint}. * * Requirements: * * - `ids` and `amounts` must have the same length. * - If `to` refers to a smart contract, it must implement {IERC1155Receiver-onERC1155BatchReceived} and return the * acceptance magic value. */ function _mintBatch( address to, uint256[] memory ids, uint256[] memory amounts, bytes memory data ) internal virtual { require(to != address(0), "ERC1155: mint to the zero address"); require(ids.length == amounts.length, "ERC1155: ids and amounts length mismatch"); address operator = _msgSender(); _beforeTokenTransfer(operator, address(0), to, ids, amounts, data); for (uint256 i = 0; i < ids.length; i++) { _balances[ids[i]][to] += amounts[i]; } emit TransferBatch(operator, address(0), to, ids, amounts); _doSafeBatchTransferAcceptanceCheck(operator, address(0), to, ids, amounts, data); } /** * @dev Destroys `amount` tokens of token type `id` from `from` * * Requirements: * * - `from` cannot be the zero address. * - `from` must have at least `amount` tokens of token type `id`. */ function _burn( address from, uint256 id, uint256 amount ) internal virtual { require(from != address(0), "ERC1155: burn from the zero address"); address operator = _msgSender(); _beforeTokenTransfer(operator, from, address(0), _asSingletonArray(id), _asSingletonArray(amount), ""); uint256 fromBalance = _balances[id][from]; require(fromBalance >= amount, "ERC1155: burn amount exceeds balance"); unchecked { _balances[id][from] = fromBalance - amount; } emit TransferSingle(operator, from, address(0), id, amount); } /** * @dev xref:ROOT:erc1155.adoc#batch-operations[Batched] version of {_burn}. * * Requirements: * * - `ids` and `amounts` must have the same length. */ function _burnBatch( address from, uint256[] memory ids, uint256[] memory amounts ) internal virtual { require(from != address(0), "ERC1155: burn from the zero address"); require(ids.length == amounts.length, "ERC1155: ids and amounts length mismatch"); address operator = _msgSender(); _beforeTokenTransfer(operator, from, address(0), ids, amounts, ""); for (uint256 i = 0; i < ids.length; i++) { uint256 id = ids[i]; uint256 amount = amounts[i]; uint256 fromBalance = _balances[id][from]; require(fromBalance >= amount, "ERC1155: burn amount exceeds balance"); unchecked { _balances[id][from] = fromBalance - amount; } } emit TransferBatch(operator, from, address(0), ids, amounts); } /** * @dev Approve `operator` to operate on all of `owner` tokens * * Emits a {ApprovalForAll} event. */ function _setApprovalForAll( address owner, address operator, bool approved ) internal virtual { require(owner != operator, "ERC1155: setting approval status for self"); _operatorApprovals[owner][operator] = approved; emit ApprovalForAll(owner, operator, approved); } /** * @dev Hook that is called before any token transfer. This includes minting * and burning, as well as batched variants. * * The same hook is called on both single and batched variants. For single * transfers, the length of the `id` and `amount` arrays will be 1. * * Calling conditions (for each `id` and `amount` pair): * * - When `from` and `to` are both non-zero, `amount` of ``from``'s tokens * of token type `id` will be transferred to `to`. * - When `from` is zero, `amount` tokens of token type `id` will be minted * for `to`. * - when `to` is zero, `amount` of ``from``'s tokens of token type `id` * will be burned. * - `from` and `to` are never both zero. * - `ids` and `amounts` have the same, non-zero length. * * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks]. */ function _beforeTokenTransfer( address operator, address from, address to, uint256[] memory ids, uint256[] memory amounts, bytes memory data ) internal virtual {} function _doSafeTransferAcceptanceCheck( address operator, address from, address to, uint256 id, uint256 amount, bytes memory data ) private { if (to.isContract()) { try IERC1155Receiver(to).onERC1155Received(operator, from, id, amount, data) returns (bytes4 response) { if (response != IERC1155Receiver.onERC1155Received.selector) { revert("ERC1155: ERC1155Receiver rejected tokens"); } } catch Error(string memory reason) { revert(reason); } catch { revert("ERC1155: transfer to non ERC1155Receiver implementer"); } } } function _doSafeBatchTransferAcceptanceCheck( address operator, address from, address to, uint256[] memory ids, uint256[] memory amounts, bytes memory data ) private { if (to.isContract()) { try IERC1155Receiver(to).onERC1155BatchReceived(operator, from, ids, amounts, data) returns ( bytes4 response ) { if (response != IERC1155Receiver.onERC1155BatchReceived.selector) { revert("ERC1155: ERC1155Receiver rejected tokens"); } } catch Error(string memory reason) { revert(reason); } catch { revert("ERC1155: transfer to non ERC1155Receiver implementer"); } } } function _asSingletonArray(uint256 element) private pure returns (uint256[] memory) { uint256[] memory array = new uint256[](1); array[0] = element; return array; } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (finance/PaymentSplitter.sol) pragma solidity ^0.8.0; import "../token/ERC20/utils/SafeERC20.sol"; import "../utils/Address.sol"; import "../utils/Context.sol"; /** * @title PaymentSplitter * @dev This contract allows to split Ether payments among a group of accounts. The sender does not need to be aware * that the Ether will be split in this way, since it is handled transparently by the contract. * * The split can be in equal parts or in any other arbitrary proportion. The way this is specified is by assigning each * account to a number of shares. Of all the Ether that this contract receives, each account will then be able to claim * an amount proportional to the percentage of total shares they were assigned. * * `PaymentSplitter` follows a _pull payment_ model. This means that payments are not automatically forwarded to the * accounts but kept in this contract, and the actual transfer is triggered as a separate step by calling the {release} * function. * * NOTE: This contract assumes that ERC20 tokens will behave similarly to native tokens (Ether). Rebasing tokens, and * tokens that apply fees during transfers, are likely to not be supported as expected. If in doubt, we encourage you * to run tests before sending real value to this contract. */ contract PaymentSplitter is Context { event PayeeAdded(address account, uint256 shares); event PaymentReleased(address to, uint256 amount); event ERC20PaymentReleased(IERC20 indexed token, address to, uint256 amount); event PaymentReceived(address from, uint256 amount); uint256 private _totalShares; uint256 private _totalReleased; mapping(address => uint256) private _shares; mapping(address => uint256) private _released; address[] private _payees; mapping(IERC20 => uint256) private _erc20TotalReleased; mapping(IERC20 => mapping(address => uint256)) private _erc20Released; /** * @dev Creates an instance of `PaymentSplitter` where each account in `payees` is assigned the number of shares at * the matching position in the `shares` array. * * All addresses in `payees` must be non-zero. Both arrays must have the same non-zero length, and there must be no * duplicates in `payees`. */ constructor(address[] memory payees, uint256[] memory shares_) payable { require(payees.length == shares_.length, "PaymentSplitter: payees and shares length mismatch"); require(payees.length > 0, "PaymentSplitter: no payees"); for (uint256 i = 0; i < payees.length; i++) { _addPayee(payees[i], shares_[i]); } } /** * @dev The Ether received will be logged with {PaymentReceived} events. Note that these events are not fully * reliable: it's possible for a contract to receive Ether without triggering this function. This only affects the * reliability of the events, and not the actual splitting of Ether. * * To learn more about this see the Solidity documentation for * https://solidity.readthedocs.io/en/latest/contracts.html#fallback-function[fallback * functions]. */ receive() external payable virtual { emit PaymentReceived(_msgSender(), msg.value); } /** * @dev Getter for the total shares held by payees. */ function totalShares() public view returns (uint256) { return _totalShares; } /** * @dev Getter for the total amount of Ether already released. */ function totalReleased() public view returns (uint256) { return _totalReleased; } /** * @dev Getter for the total amount of `token` already released. `token` should be the address of an IERC20 * contract. */ function totalReleased(IERC20 token) public view returns (uint256) { return _erc20TotalReleased[token]; } /** * @dev Getter for the amount of shares held by an account. */ function shares(address account) public view returns (uint256) { return _shares[account]; } /** * @dev Getter for the amount of Ether already released to a payee. */ function released(address account) public view returns (uint256) { return _released[account]; } /** * @dev Getter for the amount of `token` tokens already released to a payee. `token` should be the address of an * IERC20 contract. */ function released(IERC20 token, address account) public view returns (uint256) { return _erc20Released[token][account]; } /** * @dev Getter for the address of the payee number `index`. */ function payee(uint256 index) public view returns (address) { return _payees[index]; } /** * @dev Triggers a transfer to `account` of the amount of Ether they are owed, according to their percentage of the * total shares and their previous withdrawals. */ function release(address payable account) public virtual { require(_shares[account] > 0, "PaymentSplitter: account has no shares"); uint256 totalReceived = address(this).balance + totalReleased(); uint256 payment = _pendingPayment(account, totalReceived, released(account)); require(payment != 0, "PaymentSplitter: account is not due payment"); _released[account] += payment; _totalReleased += payment; Address.sendValue(account, payment); emit PaymentReleased(account, payment); } /** * @dev Triggers a transfer to `account` of the amount of `token` tokens they are owed, according to their * percentage of the total shares and their previous withdrawals. `token` must be the address of an IERC20 * contract. */ function release(IERC20 token, address account) public virtual { require(_shares[account] > 0, "PaymentSplitter: account has no shares"); uint256 totalReceived = token.balanceOf(address(this)) + totalReleased(token); uint256 payment = _pendingPayment(account, totalReceived, released(token, account)); require(payment != 0, "PaymentSplitter: account is not due payment"); _erc20Released[token][account] += payment; _erc20TotalReleased[token] += payment; SafeERC20.safeTransfer(token, account, payment); emit ERC20PaymentReleased(token, account, payment); } /** * @dev internal logic for computing the pending payment of an `account` given the token historical balances and * already released amounts. */ function _pendingPayment( address account, uint256 totalReceived, uint256 alreadyReleased ) private view returns (uint256) { return (totalReceived * _shares[account]) / _totalShares - alreadyReleased; } /** * @dev Add a new payee to the contract. * @param account The address of the payee to add. * @param shares_ The number of shares owned by the payee. */ function _addPayee(address account, uint256 shares_) private { require(account != address(0), "PaymentSplitter: account is the zero address"); require(shares_ > 0, "PaymentSplitter: shares are 0"); require(_shares[account] == 0, "PaymentSplitter: account already has shares"); _payees.push(account); _shares[account] = shares_; _totalShares = _totalShares + shares_; emit PayeeAdded(account, shares_); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (access/Ownable.sol) pragma solidity ^0.8.0; import "../utils/Context.sol"; /** * @dev Contract module which provides a basic access control mechanism, where * there is an account (an owner) that can be granted exclusive access to * specific functions. * * By default, the owner account will be the one that deploys the contract. This * can later be changed with {transferOwnership}. * * This module is used through inheritance. It will make available the modifier * `onlyOwner`, which can be applied to your functions to restrict their use to * the owner. */ abstract contract Ownable is Context { address private _owner; event OwnershipTransferred(address indexed previousOwner, address indexed newOwner); /** * @dev Initializes the contract setting the deployer as the initial owner. */ constructor() { _transferOwnership(_msgSender()); } /** * @dev 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 { _transferOwnership(address(0)); } /** * @dev Transfers ownership of the contract to a new account (`newOwner`). * Can only be called by the current owner. */ function transferOwnership(address newOwner) public virtual onlyOwner { require(newOwner != address(0), "Ownable: new owner is the zero address"); _transferOwnership(newOwner); } /** * @dev Transfers ownership of the contract to a new account (`newOwner`). * Internal function without access restriction. */ function _transferOwnership(address newOwner) internal virtual { address oldOwner = _owner; _owner = newOwner; emit OwnershipTransferred(oldOwner, newOwner); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/cryptography/ECDSA.sol) pragma solidity ^0.8.0; import "../Strings.sol"; /** * @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 { enum RecoverError { NoError, InvalidSignature, InvalidSignatureLength, InvalidSignatureS, InvalidSignatureV } function _throwError(RecoverError error) private pure { if (error == RecoverError.NoError) { return; // no error: do nothing } else if (error == RecoverError.InvalidSignature) { revert("ECDSA: invalid signature"); } else if (error == RecoverError.InvalidSignatureLength) { revert("ECDSA: invalid signature length"); } else if (error == RecoverError.InvalidSignatureS) { revert("ECDSA: invalid signature 's' value"); } else if (error == RecoverError.InvalidSignatureV) { revert("ECDSA: invalid signature 'v' value"); } } /** * @dev Returns the address that signed a hashed message (`hash`) with * `signature` or error string. 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] * * _Available since v4.3._ */ function tryRecover(bytes32 hash, bytes memory signature) internal pure returns (address, RecoverError) { // 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 tryRecover(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 tryRecover(hash, r, vs); } else { return (address(0), RecoverError.InvalidSignatureLength); } } /** * @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. */ function recover(bytes32 hash, bytes memory signature) internal pure returns (address) { (address recovered, RecoverError error) = tryRecover(hash, signature); _throwError(error); return recovered; } /** * @dev Overload of {ECDSA-tryRecover} 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.3._ */ function tryRecover( bytes32 hash, bytes32 r, bytes32 vs ) internal pure returns (address, RecoverError) { bytes32 s; uint8 v; assembly { s := and(vs, 0x7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff) v := add(shr(255, vs), 27) } return tryRecover(hash, v, r, s); } /** * @dev Overload of {ECDSA-recover} that receives the `r and `vs` short-signature fields separately. * * _Available since v4.2._ */ function recover( bytes32 hash, bytes32 r, bytes32 vs ) internal pure returns (address) { (address recovered, RecoverError error) = tryRecover(hash, r, vs); _throwError(error); return recovered; } /** * @dev Overload of {ECDSA-tryRecover} that receives the `v`, * `r` and `s` signature fields separately. * * _Available since v4.3._ */ function tryRecover( bytes32 hash, uint8 v, bytes32 r, bytes32 s ) internal pure returns (address, RecoverError) { // 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 (301): 0 < s < secp256k1n ÷ 2 + 1, and for v in (302): 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. if (uint256(s) > 0x7FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF5D576E7357A4501DDFE92F46681B20A0) { return (address(0), RecoverError.InvalidSignatureS); } if (v != 27 && v != 28) { return (address(0), RecoverError.InvalidSignatureV); } // If the signature is valid (and not malleable), return the signer address address signer = ecrecover(hash, v, r, s); if (signer == address(0)) { return (address(0), RecoverError.InvalidSignature); } return (signer, RecoverError.NoError); } /** * @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) { (address recovered, RecoverError error) = tryRecover(hash, v, r, s); _throwError(error); return recovered; } /** * @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 Message, created from `s`. 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(bytes memory s) internal pure returns (bytes32) { return keccak256(abi.encodePacked("\x19Ethereum Signed Message:\n", Strings.toString(s.length), s)); } /** * @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 // OpenZeppelin Contracts v4.4.1 (token/ERC1155/IERC1155.sol) pragma solidity ^0.8.0; import "../../utils/introspection/IERC165.sol"; /** * @dev Required interface of an ERC1155 compliant contract, as defined in the * https://eips.ethereum.org/EIPS/eip-1155[EIP]. * * _Available since v3.1._ */ interface IERC1155 is IERC165 { /** * @dev Emitted when `value` tokens of token type `id` are transferred from `from` to `to` by `operator`. */ event TransferSingle(address indexed operator, address indexed from, address indexed to, uint256 id, uint256 value); /** * @dev Equivalent to multiple {TransferSingle} events, where `operator`, `from` and `to` are the same for all * transfers. */ event TransferBatch( address indexed operator, address indexed from, address indexed to, uint256[] ids, uint256[] values ); /** * @dev Emitted when `account` grants or revokes permission to `operator` to transfer their tokens, according to * `approved`. */ event ApprovalForAll(address indexed account, address indexed operator, bool approved); /** * @dev Emitted when the URI for token type `id` changes to `value`, if it is a non-programmatic URI. * * If an {URI} event was emitted for `id`, the standard * https://eips.ethereum.org/EIPS/eip-1155#metadata-extensions[guarantees] that `value` will equal the value * returned by {IERC1155MetadataURI-uri}. */ event URI(string value, uint256 indexed id); /** * @dev Returns the amount of tokens of token type `id` owned by `account`. * * Requirements: * * - `account` cannot be the zero address. */ function balanceOf(address account, uint256 id) external view returns (uint256); /** * @dev xref:ROOT:erc1155.adoc#batch-operations[Batched] version of {balanceOf}. * * Requirements: * * - `accounts` and `ids` must have the same length. */ function balanceOfBatch(address[] calldata accounts, uint256[] calldata ids) external view returns (uint256[] memory); /** * @dev Grants or revokes permission to `operator` to transfer the caller's tokens, according to `approved`, * * Emits an {ApprovalForAll} event. * * Requirements: * * - `operator` cannot be the caller. */ function setApprovalForAll(address operator, bool approved) external; /** * @dev Returns true if `operator` is approved to transfer ``account``'s tokens. * * See {setApprovalForAll}. */ function isApprovedForAll(address account, address operator) external view returns (bool); /** * @dev Transfers `amount` tokens of token type `id` from `from` to `to`. * * Emits a {TransferSingle} event. * * Requirements: * * - `to` cannot be the zero address. * - If the caller is not `from`, it must be have been approved to spend ``from``'s tokens via {setApprovalForAll}. * - `from` must have a balance of tokens of type `id` of at least `amount`. * - If `to` refers to a smart contract, it must implement {IERC1155Receiver-onERC1155Received} and return the * acceptance magic value. */ function safeTransferFrom( address from, address to, uint256 id, uint256 amount, bytes calldata data ) external; /** * @dev xref:ROOT:erc1155.adoc#batch-operations[Batched] version of {safeTransferFrom}. * * Emits a {TransferBatch} event. * * Requirements: * * - `ids` and `amounts` must have the same length. * - If `to` refers to a smart contract, it must implement {IERC1155Receiver-onERC1155BatchReceived} and return the * acceptance magic value. */ function safeBatchTransferFrom( address from, address to, uint256[] calldata ids, uint256[] calldata amounts, bytes calldata data ) external; }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (token/ERC1155/IERC1155Receiver.sol) pragma solidity ^0.8.0; import "../../utils/introspection/IERC165.sol"; /** * @dev _Available since v3.1._ */ interface IERC1155Receiver is IERC165 { /** @dev Handles the receipt of a single ERC1155 token type. This function is called at the end of a `safeTransferFrom` after the balance has been updated. To accept the transfer, this must return `bytes4(keccak256("onERC1155Received(address,address,uint256,uint256,bytes)"))` (i.e. 0xf23a6e61, or its own function selector). @param operator The address which initiated the transfer (i.e. msg.sender) @param from The address which previously owned the token @param id The ID of the token being transferred @param value The amount of tokens being transferred @param data Additional data with no specified format @return `bytes4(keccak256("onERC1155Received(address,address,uint256,uint256,bytes)"))` if transfer is allowed */ function onERC1155Received( address operator, address from, uint256 id, uint256 value, bytes calldata data ) external returns (bytes4); /** @dev Handles the receipt of a multiple ERC1155 token types. This function is called at the end of a `safeBatchTransferFrom` after the balances have been updated. To accept the transfer(s), this must return `bytes4(keccak256("onERC1155BatchReceived(address,address,uint256[],uint256[],bytes)"))` (i.e. 0xbc197c81, or its own function selector). @param operator The address which initiated the batch transfer (i.e. msg.sender) @param from The address which previously owned the token @param ids An array containing ids of each token being transferred (order and length must match values array) @param values An array containing amounts of each token being transferred (order and length must match ids array) @param data Additional data with no specified format @return `bytes4(keccak256("onERC1155BatchReceived(address,address,uint256[],uint256[],bytes)"))` if transfer is allowed */ function onERC1155BatchReceived( address operator, address from, uint256[] calldata ids, uint256[] calldata values, bytes calldata data ) external returns (bytes4); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (token/ERC1155/extensions/IERC1155MetadataURI.sol) pragma solidity ^0.8.0; import "../IERC1155.sol"; /** * @dev Interface of the optional ERC1155MetadataExtension interface, as defined * in the https://eips.ethereum.org/EIPS/eip-1155#metadata-extensions[EIP]. * * _Available since v3.1._ */ interface IERC1155MetadataURI is IERC1155 { /** * @dev Returns the URI for token type `id`. * * If the `\{id\}` substring is present in the URI, it must be replaced by * clients with the actual token type ID. */ function uri(uint256 id) external view returns (string memory); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/Address.sol) pragma solidity ^0.8.0; /** * @dev Collection of functions related to the address type */ library Address { /** * @dev Returns true if `account` is a contract. * * [IMPORTANT] * ==== * It is unsafe to assume that an address for which this function returns * false is an externally-owned account (EOA) and not a contract. * * Among others, `isContract` will return false for the following * types of addresses: * * - an externally-owned account * - a contract in construction * - an address where a contract will be created * - an address where a contract lived, but was destroyed * ==== */ function isContract(address account) internal view returns (bool) { // This method relies on extcodesize, which returns 0 for contracts in // construction, since the code is only stored at the end of the // constructor execution. uint256 size; assembly { size := extcodesize(account) } return size > 0; } /** * @dev Replacement for Solidity's `transfer`: sends `amount` wei to * `recipient`, forwarding all available gas and reverting on errors. * * https://eips.ethereum.org/EIPS/eip-1884[EIP1884] increases the gas cost * of certain opcodes, possibly making contracts go over the 2300 gas limit * imposed by `transfer`, making them unable to receive funds via * `transfer`. {sendValue} removes this limitation. * * https://diligence.consensys.net/posts/2019/09/stop-using-soliditys-transfer-now/[Learn more]. * * IMPORTANT: because control is transferred to `recipient`, care must be * taken to not create reentrancy vulnerabilities. Consider using * {ReentrancyGuard} or the * https://solidity.readthedocs.io/en/v0.5.11/security-considerations.html#use-the-checks-effects-interactions-pattern[checks-effects-interactions pattern]. */ function sendValue(address payable recipient, uint256 amount) internal { require(address(this).balance >= amount, "Address: insufficient balance"); (bool success, ) = recipient.call{value: amount}(""); require(success, "Address: unable to send value, recipient may have reverted"); } /** * @dev Performs a Solidity function call using a low level `call`. A * plain `call` is an unsafe replacement for a function call: use this * function instead. * * If `target` reverts with a revert reason, it is bubbled up by this * function (like regular Solidity function calls). * * Returns the raw returned data. To convert to the expected return value, * use https://solidity.readthedocs.io/en/latest/units-and-global-variables.html?highlight=abi.decode#abi-encoding-and-decoding-functions[`abi.decode`]. * * Requirements: * * - `target` must be a contract. * - calling `target` with `data` must not revert. * * _Available since v3.1._ */ function functionCall(address target, bytes memory data) internal returns (bytes memory) { return functionCall(target, data, "Address: low-level call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], but with * `errorMessage` as a fallback revert reason when `target` reverts. * * _Available since v3.1._ */ function functionCall( address target, bytes memory data, string memory errorMessage ) internal returns (bytes memory) { return functionCallWithValue(target, data, 0, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but also transferring `value` wei to `target`. * * Requirements: * * - the calling contract must have an ETH balance of at least `value`. * - the called Solidity function must be `payable`. * * _Available since v3.1._ */ function functionCallWithValue( address target, bytes memory data, uint256 value ) internal returns (bytes memory) { return functionCallWithValue(target, data, value, "Address: low-level call with value failed"); } /** * @dev Same as {xref-Address-functionCallWithValue-address-bytes-uint256-}[`functionCallWithValue`], but * with `errorMessage` as a fallback revert reason when `target` reverts. * * _Available since v3.1._ */ function functionCallWithValue( address target, bytes memory data, uint256 value, string memory errorMessage ) internal returns (bytes memory) { require(address(this).balance >= value, "Address: insufficient balance for call"); require(isContract(target), "Address: call to non-contract"); (bool success, bytes memory returndata) = target.call{value: value}(data); return verifyCallResult(success, returndata, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but performing a static call. * * _Available since v3.3._ */ function functionStaticCall(address target, bytes memory data) internal view returns (bytes memory) { return functionStaticCall(target, data, "Address: low-level static call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`], * but performing a static call. * * _Available since v3.3._ */ function functionStaticCall( address target, bytes memory data, string memory errorMessage ) internal view returns (bytes memory) { require(isContract(target), "Address: static call to non-contract"); (bool success, bytes memory returndata) = target.staticcall(data); return verifyCallResult(success, returndata, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but performing a delegate call. * * _Available since v3.4._ */ function functionDelegateCall(address target, bytes memory data) internal returns (bytes memory) { return functionDelegateCall(target, data, "Address: low-level delegate call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`], * but performing a delegate call. * * _Available since v3.4._ */ function functionDelegateCall( address target, bytes memory data, string memory errorMessage ) internal returns (bytes memory) { require(isContract(target), "Address: delegate call to non-contract"); (bool success, bytes memory returndata) = target.delegatecall(data); return verifyCallResult(success, returndata, errorMessage); } /** * @dev Tool to verifies that a low level call was successful, and revert if it wasn't, either by bubbling the * revert reason using the provided one. * * _Available since v4.3._ */ function verifyCallResult( bool success, bytes memory returndata, string memory errorMessage ) internal pure returns (bytes memory) { if (success) { return returndata; } else { // Look for revert reason and bubble it up if present if (returndata.length > 0) { // The easiest way to bubble the revert reason is using memory via assembly assembly { let returndata_size := mload(returndata) revert(add(32, returndata), returndata_size) } } else { revert(errorMessage); } } } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/Context.sol) pragma solidity ^0.8.0; /** * @dev Provides information about the current execution context, including the * sender of the transaction and its data. While these are generally available * via msg.sender and msg.data, they should not be accessed in such a direct * manner, since when dealing with meta-transactions the account sending and * paying for execution may not be the actual sender (as far as an application * is concerned). * * This contract is only required for intermediate, library-like contracts. */ abstract contract Context { function _msgSender() internal view virtual returns (address) { return msg.sender; } function _msgData() internal view virtual returns (bytes calldata) { return msg.data; } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/introspection/ERC165.sol) pragma solidity ^0.8.0; import "./IERC165.sol"; /** * @dev Implementation of the {IERC165} interface. * * Contracts that want to implement ERC165 should inherit from this contract and override {supportsInterface} to check * for the additional interface id that will be supported. For example: * * ```solidity * function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) { * return interfaceId == type(MyInterface).interfaceId || super.supportsInterface(interfaceId); * } * ``` * * Alternatively, {ERC165Storage} provides an easier to use but more expensive implementation. */ abstract contract ERC165 is IERC165 { /** * @dev See {IERC165-supportsInterface}. */ function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) { return interfaceId == type(IERC165).interfaceId; } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/introspection/IERC165.sol) pragma solidity ^0.8.0; /** * @dev Interface of the ERC165 standard, as defined in the * https://eips.ethereum.org/EIPS/eip-165[EIP]. * * Implementers can declare support of contract interfaces, which can then be * queried by others ({ERC165Checker}). * * For an implementation, see {ERC165}. */ interface IERC165 { /** * @dev Returns true if this contract implements the interface defined by * `interfaceId`. See the corresponding * https://eips.ethereum.org/EIPS/eip-165#how-interfaces-are-identified[EIP section] * to learn more about how these ids are created. * * This function call must use less than 30 000 gas. */ function supportsInterface(bytes4 interfaceId) external view returns (bool); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (token/ERC20/utils/SafeERC20.sol) pragma solidity ^0.8.0; import "../IERC20.sol"; import "../../../utils/Address.sol"; /** * @title SafeERC20 * @dev Wrappers around ERC20 operations that throw on failure (when the token * contract returns false). Tokens that return no value (and instead revert or * throw on failure) are also supported, non-reverting calls are assumed to be * successful. * To use this library you can add a `using SafeERC20 for IERC20;` statement to your contract, * which allows you to call the safe operations as `token.safeTransfer(...)`, etc. */ library SafeERC20 { using Address for address; function safeTransfer( IERC20 token, address to, uint256 value ) internal { _callOptionalReturn(token, abi.encodeWithSelector(token.transfer.selector, to, value)); } function safeTransferFrom( IERC20 token, address from, address to, uint256 value ) internal { _callOptionalReturn(token, abi.encodeWithSelector(token.transferFrom.selector, from, to, value)); } /** * @dev Deprecated. This function has issues similar to the ones found in * {IERC20-approve}, and its usage is discouraged. * * Whenever possible, use {safeIncreaseAllowance} and * {safeDecreaseAllowance} instead. */ function safeApprove( IERC20 token, address spender, uint256 value ) internal { // safeApprove should only be called when setting an initial allowance, // or when resetting it to zero. To increase and decrease it, use // 'safeIncreaseAllowance' and 'safeDecreaseAllowance' require( (value == 0) || (token.allowance(address(this), spender) == 0), "SafeERC20: approve from non-zero to non-zero allowance" ); _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, value)); } function safeIncreaseAllowance( IERC20 token, address spender, uint256 value ) internal { uint256 newAllowance = token.allowance(address(this), spender) + value; _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, newAllowance)); } function safeDecreaseAllowance( IERC20 token, address spender, uint256 value ) internal { unchecked { uint256 oldAllowance = token.allowance(address(this), spender); require(oldAllowance >= value, "SafeERC20: decreased allowance below zero"); uint256 newAllowance = oldAllowance - value; _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, newAllowance)); } } /** * @dev Imitates a Solidity high-level call (i.e. a regular function call to a contract), relaxing the requirement * on the return value: the return value is optional (but if data is returned, it must not be false). * @param token The token targeted by the call. * @param data The call data (encoded using abi.encode or one of its variants). */ function _callOptionalReturn(IERC20 token, bytes memory data) private { // We need to perform a low level call here, to bypass Solidity's return data size checking mechanism, since // we're implementing it ourselves. We use {Address.functionCall} to perform this call, which verifies that // the target address contains contract code and also asserts for success in the low-level call. bytes memory returndata = address(token).functionCall(data, "SafeERC20: low-level call failed"); if (returndata.length > 0) { // Return data is optional require(abi.decode(returndata, (bool)), "SafeERC20: ERC20 operation did not succeed"); } } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (token/ERC20/IERC20.sol) pragma solidity ^0.8.0; /** * @dev Interface of the ERC20 standard as defined in the EIP. */ interface IERC20 { /** * @dev Returns the amount of tokens in existence. */ function totalSupply() external view returns (uint256); /** * @dev Returns the amount of tokens owned by `account`. */ function balanceOf(address account) external view returns (uint256); /** * @dev Moves `amount` tokens from the caller's account to `recipient`. * * Returns a boolean value indicating whether the operation succeeded. * * Emits a {Transfer} event. */ function transfer(address recipient, uint256 amount) external returns (bool); /** * @dev Returns the remaining number of tokens that `spender` will be * allowed to spend on behalf of `owner` through {transferFrom}. This is * zero by default. * * This value changes when {approve} or {transferFrom} are called. */ function allowance(address owner, address spender) external view returns (uint256); /** * @dev Sets `amount` as the allowance of `spender` over the caller's tokens. * * Returns a boolean value indicating whether the operation succeeded. * * IMPORTANT: Beware that changing an allowance with this method brings the risk * that someone may use both the old and the new allowance by unfortunate * transaction ordering. One possible solution to mitigate this race * condition is to first reduce the spender's allowance to 0 and set the * desired value afterwards: * https://github.com/ethereum/EIPs/issues/20#issuecomment-263524729 * * Emits an {Approval} event. */ function approve(address spender, uint256 amount) external returns (bool); /** * @dev Moves `amount` tokens from `sender` to `recipient` using the * allowance mechanism. `amount` is then deducted from the caller's * allowance. * * Returns a boolean value indicating whether the operation succeeded. * * Emits a {Transfer} event. */ function transferFrom( address sender, address recipient, uint256 amount ) external returns (bool); /** * @dev Emitted when `value` tokens are moved from one account (`from`) to * another (`to`). * * Note that `value` may be zero. */ event Transfer(address indexed from, address indexed to, uint256 value); /** * @dev Emitted when the allowance of a `spender` for an `owner` is set by * a call to {approve}. `value` is the new allowance. */ event Approval(address indexed owner, address indexed spender, uint256 value); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/Strings.sol) 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); } }
{ "optimizer": { "enabled": true, "runs": 200 }, "outputSelection": { "*": { "*": [ "evm.bytecode", "evm.deployedBytecode", "devdoc", "userdoc", "metadata", "abi" ] } }, "libraries": {} }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"inputs":[{"internalType":"string","name":"_baseUri","type":"string"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"account","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":"contract IERC20","name":"token","type":"address"},{"indexed":false,"internalType":"address","name":"to","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"ERC20PaymentReleased","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"account","type":"address"},{"indexed":false,"internalType":"uint256","name":"shares","type":"uint256"}],"name":"PayeeAdded","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"from","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"PaymentReceived","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"to","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"PaymentReleased","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":false,"internalType":"uint256[]","name":"ids","type":"uint256[]"},{"indexed":false,"internalType":"uint256[]","name":"values","type":"uint256[]"}],"name":"TransferBatch","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":false,"internalType":"uint256","name":"id","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"value","type":"uint256"}],"name":"TransferSingle","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"string","name":"value","type":"string"},{"indexed":true,"internalType":"uint256","name":"id","type":"uint256"}],"name":"URI","type":"event"},{"inputs":[],"name":"MAX_GIFT","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"MAX_PUBLIC_PRESALE_SUPPLY","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"MAX_SUPPLY","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"PRIVATE_PRESALE_PRICE","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"PUBLIC_PRESALE_PRICE","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"TEAM_RESERVE","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address[]","name":"addresses","type":"address[]"}],"name":"airdrop","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"},{"internalType":"uint256","name":"id","type":"uint256"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address[]","name":"accounts","type":"address[]"},{"internalType":"uint256[]","name":"ids","type":"uint256[]"}],"name":"balanceOfBatch","outputs":[{"internalType":"uint256[]","name":"","type":"uint256[]"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"baseURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"number","type":"uint256"}],"name":"forceMint","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"number","type":"uint256"},{"internalType":"uint256","name":"max","type":"uint256"},{"internalType":"bytes","name":"signature","type":"bytes"}],"name":"freeMint","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"freeMintPerWallet","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getSalePrice","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getSaleStatus","outputs":[{"internalType":"enum DegenerateGrannyRetirementClub.WorkflowStatus","name":"","type":"uint8"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"},{"internalType":"address","name":"operator","type":"address"}],"name":"isApprovedForAll","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"notRevealedUri","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"pauseSale","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"index","type":"uint256"}],"name":"payee","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"number","type":"uint256"},{"internalType":"uint256","name":"max","type":"uint256"},{"internalType":"bytes","name":"signature","type":"bytes"}],"name":"privatePresaleMint","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"privatePresalePerWallet","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"number","type":"uint256"},{"internalType":"uint256","name":"max","type":"uint256"},{"internalType":"bytes","name":"signature","type":"bytes"}],"name":"publicPresaleMint","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"publicPresalePerWallet","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"publicSaleMint","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"publicSalePrice","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address payable","name":"account","type":"address"}],"name":"release","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"contract IERC20","name":"token","type":"address"},{"internalType":"address","name":"account","type":"address"}],"name":"release","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"contract IERC20","name":"token","type":"address"},{"internalType":"address","name":"account","type":"address"}],"name":"released","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"released","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"reveal","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"revealed","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256[]","name":"ids","type":"uint256[]"},{"internalType":"uint256[]","name":"amounts","type":"uint256[]"},{"internalType":"bytes","name":"data","type":"bytes"}],"name":"safeBatchTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"id","type":"uint256"},{"internalType":"uint256","name":"amount","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":"_newBaseURI","type":"string"}],"name":"setBaseURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_newAddress","type":"address"}],"name":"setFreeMintAddress","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"_notRevealedURI","type":"string"}],"name":"setNotRevealedURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_newAddress","type":"address"}],"name":"setPrivatePresaleAddress","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_newAddress","type":"address"}],"name":"setPublicPresaleAddress","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_newPrice","type":"uint256"}],"name":"setSalePrice","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"setUpFreemint","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"setUpPrivatePresale","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"setUpPublicPresale","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"setUpSale","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"shares","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes4","name":"interfaceId","type":"bytes4"}],"name":"supportsInterface","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"teamReserve","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"tokensPerWallet","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"contract IERC20","name":"token","type":"address"}],"name":"totalReleased","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalReleased","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalShares","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"uri","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"workflow","outputs":[{"internalType":"enum DegenerateGrannyRetirementClub.WorkflowStatus","name":"","type":"uint8"}],"stateMutability":"view","type":"function"},{"stateMutability":"payable","type":"receive"}]
Contract Creation Code
60c0604052601e60808190527f446567656e65726174654772616e6e795265746972656d656e74436c7562000060a09081526200004091600b919062000646565b506040805160a0810182527376299b8be5ba5723cf4c60fc41c76df30e0949228152735428a759608643bf6598400f6ab56490f4c015e6602082015273553c9df7b78b5c5ea2b00b64e1280ae3a264d9f491810191909152733a70344c268cd039b107d9f65705f6092303c91960608201527383932858105913fe67b3ece4506bff35748d0b426080820152620000dc90600c906005620006d5565b506040805160a0810182526014808252602082018190529181018290526060810182905260808101919091526200011890600d9060056200072d565b506702c68af0bb140000600e55600f80546001600160a01b031990811673b176a50074c5f91de893e25acadfbbcf35736ebc17909155601080548216732b793a6c3a5cfb8bb1318152075a1d3597c2a81a1790556011805490911673f88c22d209887389c79f9a5c567b535acdc0dfd41790556017805460ff19169055348015620001a257600080fd5b506040516200477038038062004770833981016040819052620001c59162000787565b600c8054806020026020016040519081016040528092919081815260200182805480156200021d57602002820191906000526020600020905b81546001600160a01b03168152600190910190602001808311620001fe575b5050505050600d8054806020026020016040519081016040528092919081815260200182805480156200027057602002820191906000526020600020905b8154815260200190600101908083116200025b575b5050505050826200028781620003e960201b60201c565b508051825114620002fa5760405162461bcd60e51b815260206004820152603260248201527f5061796d656e7453706c69747465723a2070617965657320616e6420736861726044820152710cae640d8cadccee8d040dad2e6dac2e8c6d60731b60648201526084015b60405180910390fd5b60008251116200034d5760405162461bcd60e51b815260206004820152601a60248201527f5061796d656e7453706c69747465723a206e6f207061796565730000000000006044820152606401620002f1565b60005b8251811015620003b957620003a4838281518110620003735762000373620008ef565b6020026020010151838381518110620003905762000390620008ef565b60200260200101516200040260201b60201c565b80620003b081620008bb565b91505062000350565b505050620003d6620003d0620005f060201b60201c565b620005f4565b506017805462ff0000191690556200091b565b8051620003fe90600290602084019062000646565b5050565b6001600160a01b0382166200046f5760405162461bcd60e51b815260206004820152602c60248201527f5061796d656e7453706c69747465723a206163636f756e74206973207468652060448201526b7a65726f206164647265737360a01b6064820152608401620002f1565b60008111620004c15760405162461bcd60e51b815260206004820152601d60248201527f5061796d656e7453706c69747465723a207368617265732061726520300000006044820152606401620002f1565b6001600160a01b038216600090815260056020526040902054156200053d5760405162461bcd60e51b815260206004820152602b60248201527f5061796d656e7453706c69747465723a206163636f756e7420616c726561647960448201526a206861732073686172657360a81b6064820152608401620002f1565b60078054600181019091557fa66cc928b5edb82af9bd49922954155ab7b0942694bea4ce44661d9a8736c6880180546001600160a01b0319166001600160a01b0384169081179091556000908152600560205260409020819055600354620005a790829062000863565b600355604080516001600160a01b0384168152602081018390527f40c340f65e17194d14ddddb073d3c9f888e3cb52b5aae0c6c7706b4fbc905fac910160405180910390a15050565b3390565b600a80546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b82805462000654906200087e565b90600052602060002090601f016020900481019282620006785760008555620006c3565b82601f106200069357805160ff1916838001178555620006c3565b82800160010185558215620006c3579182015b82811115620006c3578251825591602001919060010190620006a6565b50620006d192915062000770565b5090565b828054828255906000526020600020908101928215620006c3579160200282015b82811115620006c357825182546001600160a01b0319166001600160a01b03909116178255602090920191600190910190620006f6565b828054828255906000526020600020908101928215620006c3579160200282015b82811115620006c3578251829060ff169055916020019190600101906200074e565b5b80821115620006d1576000815560010162000771565b600060208083850312156200079b57600080fd5b82516001600160401b0380821115620007b357600080fd5b818501915085601f830112620007c857600080fd5b815181811115620007dd57620007dd62000905565b604051601f8201601f19908116603f0116810190838211818310171562000808576200080862000905565b8160405282815288868487010111156200082157600080fd5b600093505b8284101562000845578484018601518185018701529285019262000826565b82841115620008575760008684830101525b98975050505050505050565b60008219821115620008795762000879620008d9565b500190565b600181811c908216806200089357607f821691505b60208210811415620008b557634e487b7160e01b600052602260045260246000fd5b50919050565b6000600019821415620008d257620008d2620008d9565b5060010190565b634e487b7160e01b600052601160045260246000fd5b634e487b7160e01b600052603260045260246000fd5b634e487b7160e01b600052604160045260246000fd5b613e45806200092b6000396000f3fe6080604052600436106103795760003560e01c8063715018a6116101d1578063a475b5dd11610102578063d79779b2116100a0578063e985e9c51161006f578063e985e9c514610a5d578063f242432a14610aa6578063f2c4ce1e14610ac6578063f2fde38b14610ae657600080fd5b8063d79779b2146109dd578063e33b7de314610a13578063e5408eae14610a28578063e7db1b4314610a3d57600080fd5b8063b3ea88de116100dc578063b3ea88de14610948578063ce7c2ac214610975578063d6c29b4e146109ab578063d6f41cc1146109c157600080fd5b8063a475b5dd146108f3578063aedd0a9614610908578063b3ab66b01461093557600080fd5b80639852595c1161016f5780639a620b01116101495780639a620b01146108885780639b6860c81461089d578063a22cb465146108b3578063a3344125146108d357600080fd5b80639852595c14610816578063986b57781461084c57806398ef690a1461086c57600080fd5b806384c2f89f116101ab57806384c2f89f1461076c5780638b83209b146107995780638c3c4b34146107d15780638da5cb5b146107f857600080fd5b8063715018a614610721578063729ad39e1461073657806380d06c521461075657600080fd5b80632fbc0bf1116102ab57806348b750441161024957806355367ba91161022357806355367ba9146106b757806355f804b3146106cc5780636c0360eb146106ec5780636c1fff591461070157600080fd5b806348b75044146106505780634e1273f414610670578063518302271461069d57600080fd5b80633a98ef39116102855780633a98ef39146105cb578063406072a9146105e0578063413e4bcb146106265780634287f14a1461063b57600080fd5b80632fbc0bf11461058b57806332cb6b0c146105a057806337855a8e146105b657600080fd5b80631919fed7116103185780631f76059d116102f25780631f76059d1461050b578063207f32421461051e57806320ad36841461053e5780632eb2c2d61461056b57600080fd5b80631919fed7146104b65780631d00fbb2146104d65780631f2898c3146104f657600080fd5b8063081c8c4411610354578063081c8c441461044c5780630e89341c14610461578063104c0b8e14610481578063191655871461049657600080fd5b8062fdd58e146103c757806301ffc9a7146103fa57806306fdde031461042a57600080fd5b366103c2577f6ef95f06320e7a25a04a175ca677b7052bdd97131872c2192525a629f51be77033604080516001600160a01b0390921682523460208301520160405180910390a1005b600080fd5b3480156103d357600080fd5b506103e76103e236600461346e565b610b06565b6040519081526020015b60405180910390f35b34801561040657600080fd5b5061041a6104153660046135ff565b610b9d565b60405190151581526020016103f1565b34801561043657600080fd5b5061043f610bef565b6040516103f191906138b8565b34801561045857600080fd5b5061043f610c7d565b34801561046d57600080fd5b5061043f61047c366004613682565b610c8a565b61049461048f3660046136b4565b610d36565b005b3480156104a257600080fd5b506104946104b13660046132d3565b610f71565b3480156104c257600080fd5b506104946104d1366004613682565b61109f565b3480156104e257600080fd5b506104946104f13660046132d3565b6110ce565b34801561050257600080fd5b50610494611140565b6104946105193660046136b4565b611185565b34801561052a57600080fd5b506104946105393660046136b4565b6112e2565b34801561054a57600080fd5b506103e76105593660046132d3565b601b6020526000908152604090205481565b34801561057757600080fd5b50610494610586366004613329565b61140c565b34801561059757600080fd5b50600e546103e7565b3480156105ac57600080fd5b506103e761177081565b3480156105c257600080fd5b5061049461149c565b3480156105d757600080fd5b506003546103e7565b3480156105ec57600080fd5b506103e76105fb3660046132f0565b6001600160a01b03918216600090815260096020908152604080832093909416825291909152205490565b34801561063257600080fd5b506104946114de565b34801561064757600080fd5b50610494611520565b34801561065c57600080fd5b5061049461066b3660046132f0565b61165b565b34801561067c57600080fd5b5061069061068b36600461350f565b611843565b6040516103f1919061384f565b3480156106a957600080fd5b5060175461041a9060ff1681565b3480156106c357600080fd5b5061049461196d565b3480156106d857600080fd5b506104946106e7366004613639565b6119af565b3480156106f857600080fd5b5061043f6119f0565b34801561070d57600080fd5b5061049461071c366004613682565b6119fd565b34801561072d57600080fd5b50610494611aef565b34801561074257600080fd5b5061049461075136600461349a565b611b25565b34801561076257600080fd5b506103e761025881565b34801561077857600080fd5b506103e76107873660046132d3565b60196020526000908152604090205481565b3480156107a557600080fd5b506107b96107b4366004613682565b611c6a565b6040516001600160a01b0390911681526020016103f1565b3480156107dd57600080fd5b5060175462010000900460ff165b6040516103f19190613890565b34801561080457600080fd5b50600a546001600160a01b03166107b9565b34801561082257600080fd5b506103e76108313660046132d3565b6001600160a01b031660009081526006602052604090205490565b34801561085857600080fd5b506104946108673660046132d3565b611c9a565b34801561087857600080fd5b506103e7670214e8348c4f000081565b34801561089457600080fd5b50610494611d0c565b3480156108a957600080fd5b506103e7600e5481565b3480156108bf57600080fd5b506104946108ce366004613440565b611d4e565b3480156108df57600080fd5b506017546107eb9062010000900460ff1681565b3480156108ff57600080fd5b50610494611d59565b34801561091457600080fd5b506103e76109233660046132d3565b60186020526000908152604090205481565b610494610943366004613682565b611d92565b34801561095457600080fd5b506103e76109633660046132d3565b601a6020526000908152604090205481565b34801561098157600080fd5b506103e76109903660046132d3565b6001600160a01b031660009081526005602052604090205490565b3480156109b757600080fd5b506103e761012c81565b3480156109cd57600080fd5b506103e767016345785d8a000081565b3480156109e957600080fd5b506103e76109f83660046132d3565b6001600160a01b031660009081526008602052604090205490565b348015610a1f57600080fd5b506004546103e7565b348015610a3457600080fd5b506103e7601e81565b348015610a4957600080fd5b50610494610a583660046132d3565b611f6e565b348015610a6957600080fd5b5061041a610a783660046132f0565b6001600160a01b03918216600090815260016020908152604080832093909416825291909152205460ff1690565b348015610ab257600080fd5b50610494610ac13660046133d7565b611fe0565b348015610ad257600080fd5b50610494610ae1366004613639565b612067565b348015610af257600080fd5b50610494610b013660046132d3565b6120a4565b60006001600160a01b038316610b775760405162461bcd60e51b815260206004820152602b60248201527f455243313135353a2062616c616e636520717565727920666f7220746865207a60448201526a65726f206164647265737360a81b60648201526084015b60405180910390fd5b506000908152602081815260408083206001600160a01b03949094168352929052205490565b60006001600160e01b03198216636cdb3d1360e11b1480610bce57506001600160e01b031982166303a24d0760e21b145b80610be957506301ffc9a760e01b6001600160e01b03198316145b92915050565b600b8054610bfc90613c35565b80601f0160208091040260200160405190810160405280929190818152602001828054610c2890613c35565b8015610c755780601f10610c4a57610100808354040283529160200191610c75565b820191906000526020600020905b815481529060010190602001808311610c5857829003601f168201915b505050505081565b60168054610bfc90613c35565b60175460609060ff16610d295760168054610ca490613c35565b80601f0160208091040260200160405190810160405280929190818152602001828054610cd090613c35565b8015610d1d5780601f10610cf257610100808354040283529160200191610d1d565b820191906000526020600020905b815481529060010190602001808311610d0057829003601f168201915b50505050509050919050565b60158054610ca490613c35565b601254601154610d8f906001600160a01b0316610d53863361213c565b85858080601f01602080910402602001604051908101604052809392919081815260200183838082843760009201919091525061218192505050565b610dab5760405162461bcd60e51b8152600401610b6e90613959565b600360175462010000900460ff166006811115610dca57610dca613cce565b14610e2b5760405162461bcd60e51b815260206004820152603f6024820152600080516020613df083398151915260448201527f5075626c69632050726573616c6520686173206e6f74207374617274656421006064820152608401610b6e565b61025885601354610e3c9190613b99565b1115610e9e5760405162461bcd60e51b81526020600482015260396024820152600080516020613df083398151915260448201527f5075626c69632070726573616c6520736f6c64206f75742021000000000000006064820152608401610b6e565b336000908152601a60205260409020548490610ebb908790613b99565b1115610ed95760405162461bcd60e51b8152600401610b6e90613a20565b610eeb670214e8348c4f000086613bd3565b341015610f0a5760405162461bcd60e51b8152600401610b6e90613b35565b8460126000828254610f1c9190613b99565b9091555050336000908152601a602052604081208054879290610f40908490613b99565b925050819055508460136000828254610f599190613b99565b90915550610f6a9050338287612202565b5050505050565b6001600160a01b038116600090815260056020526040902054610fa65760405162461bcd60e51b8152600401610b6e90613913565b6000610fb160045490565b610fbb9047613b99565b90506000610fe88383610fe3866001600160a01b031660009081526006602052604090205490565b612233565b9050806110075760405162461bcd60e51b8152600401610b6e90613990565b6001600160a01b0383166000908152600660205260408120805483929061102f908490613b99565b9250508190555080600460008282546110489190613b99565b9091555061105890508382612279565b604080516001600160a01b0385168152602081018390527fdf20fd1e76bc69d672e4814fafb2c449bba3a5369d8359adf9e05e6fde87b056910160405180910390a1505050565b600a546001600160a01b031633146110c95760405162461bcd60e51b8152600401610b6e90613b00565b600e55565b600a546001600160a01b031633146110f85760405162461bcd60e51b8152600401610b6e90613b00565b6001600160a01b03811661111e5760405162461bcd60e51b8152600401610b6e90613a89565b601180546001600160a01b0319166001600160a01b0392909216919091179055565b600a546001600160a01b0316331461116a5760405162461bcd60e51b8152600401610b6e90613b00565b601780546004919062ff0000191662010000835b0217905550565b6012546010546111a2906001600160a01b0316610d53863361213c565b6111be5760405162461bcd60e51b8152600401610b6e90613959565b600260175462010000900460ff1660068111156111dd576111dd613cce565b14611240576040805162461bcd60e51b8152602060048201526024810191909152600080516020613df083398151915260448201527f507269766174652050726573616c6520686173206e6f742073746172746564216064820152608401610b6e565b336000908152601b6020526040902054849061125d908790613b99565b111561127b5760405162461bcd60e51b8152600401610b6e90613a20565b61128d67016345785d8a000086613bd3565b3410156112ac5760405162461bcd60e51b8152600401610b6e90613b35565b84601260008282546112be9190613b99565b9091555050336000908152601b602052604081208054879290610f59908490613b99565b601254600f546112ff906001600160a01b0316610d53863361213c565b61131b5760405162461bcd60e51b8152600401610b6e90613959565b600160175462010000900460ff16600681111561133a5761133a613cce565b1461139b5760405162461bcd60e51b81526020600482015260396024820152600080516020613df083398151915260448201527f467265656d696e7420686173206e6f74207374617274656421000000000000006064820152608401610b6e565b3360009081526019602052604090205484906113b8908790613b99565b11156113d65760405162461bcd60e51b8152600401610b6e90613a20565b84601260008282546113e89190613b99565b90915550503360009081526019602052604081208054879290610f59908490613b99565b6001600160a01b03851633148061142857506114288533610a78565b61148f5760405162461bcd60e51b815260206004820152603260248201527f455243313135353a207472616e736665722063616c6c6572206973206e6f74206044820152711bdddb995c881b9bdc88185c1c1c9bdd995960721b6064820152608401610b6e565b610f6a8585858585612397565b600a546001600160a01b031633146114c65760405162461bcd60e51b8152600401610b6e90613b00565b601780546001919062ff00001916620100008361117e565b600a546001600160a01b031633146115085760405162461bcd60e51b8152600401610b6e90613b00565b601780546002919062ff00001916620100008361117e565b600a546001600160a01b0316331461154a5760405162461bcd60e51b8152600401610b6e90613b00565b601754610100900460ff16156115ae5760405162461bcd60e51b81526020600482015260356024820152600080516020613df08339815191526044820152741519585b48185b1c9958591e481c995cd95c9d9959605a1b6064820152608401610b6e565b6014546117706115bf601e83613b99565b11156116125760405162461bcd60e51b815260206004820152602e6024820152600080516020613df083398151915260448201526d4d696e7420746f6f206c6172676560901b6064820152608401610b6e565b6017805461ff00191661010017905560128054601e9190600090611637908490613b99565b9250508190555061165833601e6012546116519190613bf2565b601e612202565b50565b6001600160a01b0381166000908152600560205260409020546116905760405162461bcd60e51b8152600401610b6e90613913565b6001600160a01b0382166000908152600860205260408120546040516370a0823160e01b81523060048201526001600160a01b038516906370a082319060240160206040518083038186803b1580156116e857600080fd5b505afa1580156116fc573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611720919061369b565b61172a9190613b99565b905060006117638383610fe387876001600160a01b03918216600090815260096020908152604080832093909416825291909152205490565b9050806117825760405162461bcd60e51b8152600401610b6e90613990565b6001600160a01b038085166000908152600960209081526040808320938716835292905290812080548392906117b9908490613b99565b90915550506001600160a01b038416600090815260086020526040812080548392906117e6908490613b99565b909155506117f79050848483612574565b604080516001600160a01b038581168252602082018490528616917f3be5b7a71e84ed12875d241991c70855ac5817d847039e17a9d895c1ceb0f18a910160405180910390a250505050565b606081518351146118a85760405162461bcd60e51b815260206004820152602960248201527f455243313135353a206163636f756e747320616e6420696473206c656e677468604482015268040dad2e6dac2e8c6d60bb1b6064820152608401610b6e565b6000835167ffffffffffffffff8111156118c4576118c4613cfa565b6040519080825280602002602001820160405280156118ed578160200160208202803683370190505b50905060005b84518110156119655761193885828151811061191157611911613ce4565b602002602001015185838151811061192b5761192b613ce4565b6020026020010151610b06565b82828151811061194a5761194a613ce4565b602090810291909101015261195e81613c9d565b90506118f3565b509392505050565b600a546001600160a01b031633146119975760405162461bcd60e51b8152600401610b6e90613b00565b601780546006919062ff00001916620100008361117e565b600a546001600160a01b031633146119d95760405162461bcd60e51b8152600401610b6e90613b00565b80516119ec906015906020840190613145565b5050565b60158054610bfc90613c35565b600a546001600160a01b03163314611a275760405162461bcd60e51b8152600401610b6e90613b00565b60145461012c611a378383613b99565b1115611aa55760405162461bcd60e51b81526020600482015260436024820152600080516020613df083398151915260448201527f596f752063616e2774206d696e74206d6f7265207468616e206d617820737570606482015262706c7960e81b608482015260a401610b6e565b8160126000828254611ab79190613b99565b925050819055508160146000828254611ad09190613b99565b925050819055506119ec3383601254611ae99190613bf2565b84612202565b600a546001600160a01b03163314611b195760405162461bcd60e51b8152600401610b6e90613b00565b611b2360006125c6565b565b600a546001600160a01b03163314611b4f5760405162461bcd60e51b8152600401610b6e90613b00565b60145461012c611b5f8284613b99565b1115611bcf5760405162461bcd60e51b815260206004820152604460248201819052600080516020613df0833981519152908201527f596f752063616e27742061697264726f70206d6f7265207468616e206d61782060648201526319da599d60e21b608482015260a401610b6e565b601280549083906000611be28385613b99565b909155505060148054849190600090611bfc908490613b99565b90915550600090505b83811015610f6a57611c58858583818110611c2257611c22613ce4565b9050602002016020810190611c3791906132d3565b611c418385613b99565b604080516000815260208101909152600190612618565b80611c6281613c9d565b915050611c05565b600060078281548110611c7f57611c7f613ce4565b6000918252602090912001546001600160a01b031692915050565b600a546001600160a01b03163314611cc45760405162461bcd60e51b8152600401610b6e90613b00565b6001600160a01b038116611cea5760405162461bcd60e51b8152600401610b6e90613a89565b601080546001600160a01b0319166001600160a01b0392909216919091179055565b600a546001600160a01b03163314611d365760405162461bcd60e51b8152600401610b6e90613b00565b601780546003919062ff00001916620100008361117e565b6119ec338383612722565b600a546001600160a01b03163314611d835760405162461bcd60e51b8152600401610b6e90613b00565b6017805460ff19166001179055565b60008111611de25760405162461bcd60e51b815260206004820152601f60248201527f596f75206d757374206d696e74206174206c65617374206f6e65204e46542e006044820152606401610b6e565b601254611770611df28383613b99565b1115611e405760405162461bcd60e51b81526020600482015260296024820152600080516020613df0833981519152604482015268536f6c64206f75742160b81b6064820152608401610b6e565b600460175462010000900460ff166006811115611e5f57611e5f613cce565b14611ec05760405162461bcd60e51b81526020600482015260386024820152600080516020613df083398151915260448201527f7075626c69632073616c65206e6f7420737461727465642e00000000000000006064820152608401610b6e565b81600e54611ece9190613bd3565b341015611f255760405162461bcd60e51b81526020600482015260316024820152600080516020613df0833981519152604482015270496e737566696369656e742066756e647360781b6064820152608401610b6e565b3360009081526018602052604081208054849290611f44908490613b99565b925050819055508160126000828254611f5d9190613b99565b909155506119ec9050338284612202565b600a546001600160a01b03163314611f985760405162461bcd60e51b8152600401610b6e90613b00565b6001600160a01b038116611fbe5760405162461bcd60e51b8152600401610b6e90613a89565b600f80546001600160a01b0319166001600160a01b0392909216919091179055565b6001600160a01b038516331480611ffc5750611ffc8533610a78565b61205a5760405162461bcd60e51b815260206004820152602960248201527f455243313135353a2063616c6c6572206973206e6f74206f776e6572206e6f7260448201526808185c1c1c9bdd995960ba1b6064820152608401610b6e565b610f6a8585858585612803565b600a546001600160a01b031633146120915760405162461bcd60e51b8152600401610b6e90613b00565b80516119ec906016906020840190613145565b600a546001600160a01b031633146120ce5760405162461bcd60e51b8152600401610b6e90613b00565b6001600160a01b0381166121335760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401610b6e565b611658816125c6565b600082826040516020016121639291909182526001600160a01b0316602082015260400190565b60405160208183030381529060405280519060200120905092915050565b60006121e4826121de856040517f19457468657265756d205369676e6564204d6573736167653a0a3332000000006020820152603c8101829052600090605c01604051602081830303815290604052805190602001209050919050565b90612920565b6001600160a01b0316846001600160a01b03161490505b9392505050565b60005b8181101561222d5761221b84611c418386613b99565b8061222581613c9d565b915050612205565b50505050565b6003546001600160a01b0384166000908152600560205260408120549091839161225d9086613bd3565b6122679190613bb1565b6122719190613bf2565b949350505050565b804710156122c95760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a20696e73756666696369656e742062616c616e63650000006044820152606401610b6e565b6000826001600160a01b03168260405160006040518083038185875af1925050503d8060008114612316576040519150601f19603f3d011682016040523d82523d6000602084013e61231b565b606091505b50509050806123925760405162461bcd60e51b815260206004820152603a60248201527f416464726573733a20756e61626c6520746f2073656e642076616c75652c207260448201527f6563697069656e74206d617920686176652072657665727465640000000000006064820152608401610b6e565b505050565b81518351146123f95760405162461bcd60e51b815260206004820152602860248201527f455243313135353a2069647320616e6420616d6f756e7473206c656e677468206044820152670dad2e6dac2e8c6d60c31b6064820152608401610b6e565b6001600160a01b03841661241f5760405162461bcd60e51b8152600401610b6e906139db565b3360005b845181101561250657600085828151811061244057612440613ce4565b60200260200101519050600085838151811061245e5761245e613ce4565b602090810291909101810151600084815280835260408082206001600160a01b038e1683529093529190912054909150818110156124ae5760405162461bcd60e51b8152600401610b6e90613ab6565b6000838152602081815260408083206001600160a01b038e8116855292528083208585039055908b168252812080548492906124eb908490613b99565b92505081905550505050806124ff90613c9d565b9050612423565b50846001600160a01b0316866001600160a01b0316826001600160a01b03167f4a39dc06d4c0dbc64b70af90fd698a233a518aa5d07e595d983b8c0526c8f7fb8787604051612556929190613862565b60405180910390a461256c81878787878761293c565b505050505050565b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180516001600160e01b031663a9059cbb60e01b179052612392908490612aa7565b600a80546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b6001600160a01b0384166126785760405162461bcd60e51b815260206004820152602160248201527f455243313135353a206d696e7420746f20746865207a65726f206164647265736044820152607360f81b6064820152608401610b6e565b336126928160008761268988612b79565b610f6a88612b79565b6000848152602081815260408083206001600160a01b0389168452909152812080548592906126c2908490613b99565b909155505060408051858152602081018590526001600160a01b0380881692600092918516917fc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f62910160405180910390a4610f6a81600087878787612bc4565b816001600160a01b0316836001600160a01b031614156127965760405162461bcd60e51b815260206004820152602960248201527f455243313135353a2073657474696e6720617070726f76616c20737461747573604482015268103337b91039b2b63360b91b6064820152608401610b6e565b6001600160a01b03838116600081815260016020908152604080832094871680845294825291829020805460ff191686151590811790915591519182527f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a3505050565b6001600160a01b0384166128295760405162461bcd60e51b8152600401610b6e906139db565b3361283981878761268988612b79565b6000848152602081815260408083206001600160a01b038a1684529091529020548381101561287a5760405162461bcd60e51b8152600401610b6e90613ab6565b6000858152602081815260408083206001600160a01b038b81168552925280832087850390559088168252812080548692906128b7908490613b99565b909155505060408051868152602081018690526001600160a01b03808916928a821692918616917fc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f62910160405180910390a4612917828888888888612bc4565b50505050505050565b600080600061292f8585612c8e565b9150915061196581612cfe565b6001600160a01b0384163b1561256c5760405163bc197c8160e01b81526001600160a01b0385169063bc197c819061298090899089908890889088906004016137b7565b602060405180830381600087803b15801561299a57600080fd5b505af19250505080156129ca575060408051601f3d908101601f191682019092526129c79181019061361c565b60015b612a77576129d6613d10565b806308c379a01415612a1057506129eb613d2c565b806129f65750612a12565b8060405162461bcd60e51b8152600401610b6e91906138b8565b505b60405162461bcd60e51b815260206004820152603460248201527f455243313135353a207472616e7366657220746f206e6f6e20455243313135356044820152732932b1b2b4bb32b91034b6b83632b6b2b73a32b960611b6064820152608401610b6e565b6001600160e01b0319811663bc197c8160e01b146129175760405162461bcd60e51b8152600401610b6e906138cb565b6000612afc826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564815250856001600160a01b0316612eb99092919063ffffffff16565b8051909150156123925780806020019051810190612b1a91906135e2565b6123925760405162461bcd60e51b815260206004820152602a60248201527f5361666545524332303a204552433230206f7065726174696f6e20646964206e6044820152691bdd081cdd58d8d9595960b21b6064820152608401610b6e565b60408051600180825281830190925260609160009190602080830190803683370190505090508281600081518110612bb357612bb3613ce4565b602090810291909101015292915050565b6001600160a01b0384163b1561256c5760405163f23a6e6160e01b81526001600160a01b0385169063f23a6e6190612c089089908990889088908890600401613815565b602060405180830381600087803b158015612c2257600080fd5b505af1925050508015612c52575060408051601f3d908101601f19168201909252612c4f9181019061361c565b60015b612c5e576129d6613d10565b6001600160e01b0319811663f23a6e6160e01b146129175760405162461bcd60e51b8152600401610b6e906138cb565b600080825160411415612cc55760208301516040840151606085015160001a612cb987828585612ec8565b94509450505050612cf7565b825160401415612cef5760208301516040840151612ce4868383612fb5565b935093505050612cf7565b506000905060025b9250929050565b6000816004811115612d1257612d12613cce565b1415612d1b5750565b6001816004811115612d2f57612d2f613cce565b1415612d7d5760405162461bcd60e51b815260206004820152601860248201527f45434453413a20696e76616c6964207369676e617475726500000000000000006044820152606401610b6e565b6002816004811115612d9157612d91613cce565b1415612ddf5760405162461bcd60e51b815260206004820152601f60248201527f45434453413a20696e76616c6964207369676e6174757265206c656e677468006044820152606401610b6e565b6003816004811115612df357612df3613cce565b1415612e4c5760405162461bcd60e51b815260206004820152602260248201527f45434453413a20696e76616c6964207369676e6174757265202773272076616c604482015261756560f01b6064820152608401610b6e565b6004816004811115612e6057612e60613cce565b14156116585760405162461bcd60e51b815260206004820152602260248201527f45434453413a20696e76616c6964207369676e6174757265202776272076616c604482015261756560f01b6064820152608401610b6e565b60606122718484600085612fe4565b6000807f7fffffffffffffffffffffffffffffff5d576e7357a4501ddfe92f46681b20a0831115612eff5750600090506003612fac565b8460ff16601b14158015612f1757508460ff16601c14155b15612f285750600090506004612fac565b6040805160008082526020820180845289905260ff881692820192909252606081018690526080810185905260019060a0016020604051602081039080840390855afa158015612f7c573d6000803e3d6000fd5b5050604051601f1901519150506001600160a01b038116612fa557600060019250925050612fac565b9150600090505b94509492505050565b6000806001600160ff1b03831660ff84901c601b01612fd687828885612ec8565b935093505050935093915050565b6060824710156130455760405162461bcd60e51b815260206004820152602660248201527f416464726573733a20696e73756666696369656e742062616c616e636520666f6044820152651c8818d85b1b60d21b6064820152608401610b6e565b843b6130935760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e74726163740000006044820152606401610b6e565b600080866001600160a01b031685876040516130af919061379b565b60006040518083038185875af1925050503d80600081146130ec576040519150601f19603f3d011682016040523d82523d6000602084013e6130f1565b606091505b509150915061310182828661310c565b979650505050505050565b6060831561311b5750816121fb565b82511561312b5782518084602001fd5b8160405162461bcd60e51b8152600401610b6e91906138b8565b82805461315190613c35565b90600052602060002090601f01602090048101928261317357600085556131b9565b82601f1061318c57805160ff19168380011785556131b9565b828001600101855582156131b9579182015b828111156131b957825182559160200191906001019061319e565b506131c59291506131c9565b5090565b5b808211156131c557600081556001016131ca565b600067ffffffffffffffff8311156131f8576131f8613cfa565b60405161320f601f8501601f191660200182613c70565b80915083815284848401111561322457600080fd5b83836020830137600060208583010152509392505050565b600082601f83011261324d57600080fd5b8135602061325a82613b75565b6040516132678282613c70565b8381528281019150858301600585901b8701840188101561328757600080fd5b60005b858110156132a65781358452928401929084019060010161328a565b5090979650505050505050565b600082601f8301126132c457600080fd5b6121fb838335602085016131de565b6000602082840312156132e557600080fd5b81356121fb81613db6565b6000806040838503121561330357600080fd5b823561330e81613db6565b9150602083013561331e81613db6565b809150509250929050565b600080600080600060a0868803121561334157600080fd5b853561334c81613db6565b9450602086013561335c81613db6565b9350604086013567ffffffffffffffff8082111561337957600080fd5b61338589838a0161323c565b9450606088013591508082111561339b57600080fd5b6133a789838a0161323c565b935060808801359150808211156133bd57600080fd5b506133ca888289016132b3565b9150509295509295909350565b600080600080600060a086880312156133ef57600080fd5b85356133fa81613db6565b9450602086013561340a81613db6565b93506040860135925060608601359150608086013567ffffffffffffffff81111561343457600080fd5b6133ca888289016132b3565b6000806040838503121561345357600080fd5b823561345e81613db6565b9150602083013561331e81613dcb565b6000806040838503121561348157600080fd5b823561348c81613db6565b946020939093013593505050565b600080602083850312156134ad57600080fd5b823567ffffffffffffffff808211156134c557600080fd5b818501915085601f8301126134d957600080fd5b8135818111156134e857600080fd5b8660208260051b85010111156134fd57600080fd5b60209290920196919550909350505050565b6000806040838503121561352257600080fd5b823567ffffffffffffffff8082111561353a57600080fd5b818501915085601f83011261354e57600080fd5b8135602061355b82613b75565b6040516135688282613c70565b8381528281019150858301600585901b870184018b101561358857600080fd5b600096505b848710156135b45780356135a081613db6565b83526001969096019591830191830161358d565b50965050860135925050808211156135cb57600080fd5b506135d88582860161323c565b9150509250929050565b6000602082840312156135f457600080fd5b81516121fb81613dcb565b60006020828403121561361157600080fd5b81356121fb81613dd9565b60006020828403121561362e57600080fd5b81516121fb81613dd9565b60006020828403121561364b57600080fd5b813567ffffffffffffffff81111561366257600080fd5b8201601f8101841361367357600080fd5b612271848235602084016131de565b60006020828403121561369457600080fd5b5035919050565b6000602082840312156136ad57600080fd5b5051919050565b600080600080606085870312156136ca57600080fd5b8435935060208501359250604085013567ffffffffffffffff808211156136f057600080fd5b818701915087601f83011261370457600080fd5b81358181111561371357600080fd5b88602082850101111561372557600080fd5b95989497505060200194505050565b600081518084526020808501945080840160005b8381101561376457815187529582019590820190600101613748565b509495945050505050565b60008151808452613787816020860160208601613c09565b601f01601f19169290920160200192915050565b600082516137ad818460208701613c09565b9190910192915050565b6001600160a01b0386811682528516602082015260a0604082018190526000906137e390830186613734565b82810360608401526137f58186613734565b90508281036080840152613809818561376f565b98975050505050505050565b6001600160a01b03868116825285166020820152604081018490526060810183905260a0608082018190526000906131019083018461376f565b6020815260006121fb6020830184613734565b6040815260006138756040830185613734565b82810360208401526138878185613734565b95945050505050565b60208101600783106138b257634e487b7160e01b600052602160045260246000fd5b91905290565b6020815260006121fb602083018461376f565b60208082526028908201527f455243313135353a204552433131353552656365697665722072656a656374656040820152676420746f6b656e7360c01b606082015260800190565b60208082526026908201527f5061796d656e7453706c69747465723a206163636f756e7420686173206e6f2060408201526573686172657360d01b606082015260800190565b6020808252601b908201527f5349474e41545552455f56414c49444154494f4e5f4641494c45440000000000604082015260600190565b6020808252602b908201527f5061796d656e7453706c69747465723a206163636f756e74206973206e6f742060408201526a191d59481c185e5b595b9d60aa1b606082015260800190565b60208082526025908201527f455243313135353a207472616e7366657220746f20746865207a65726f206164604082015264647265737360d81b606082015260800190565b6020808252605590820152600080516020613df083398151915260408201527f596f752063616e2774206d696e74206d6f7265207468616e20796f757220616c6060820152743637bbb2b210373ab6b132b91037b31027232a399760591b608082015260a00190565b60208082526013908201527243414e2754205055542030204144445245535360681b604082015260600190565b6020808252602a908201527f455243313135353a20696e73756666696369656e742062616c616e636520666f60408201526939103a3930b739b332b960b11b606082015260800190565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b6020808252603290820152600080516020613df0833981519152604082015271496e73756666696369656e742066756e647360701b606082015260800190565b600067ffffffffffffffff821115613b8f57613b8f613cfa565b5060051b60200190565b60008219821115613bac57613bac613cb8565b500190565b600082613bce57634e487b7160e01b600052601260045260246000fd5b500490565b6000816000190483118215151615613bed57613bed613cb8565b500290565b600082821015613c0457613c04613cb8565b500390565b60005b83811015613c24578181015183820152602001613c0c565b8381111561222d5750506000910152565b600181811c90821680613c4957607f821691505b60208210811415613c6a57634e487b7160e01b600052602260045260246000fd5b50919050565b601f8201601f1916810167ffffffffffffffff81118282101715613c9657613c96613cfa565b6040525050565b6000600019821415613cb157613cb1613cb8565b5060010190565b634e487b7160e01b600052601160045260246000fd5b634e487b7160e01b600052602160045260246000fd5b634e487b7160e01b600052603260045260246000fd5b634e487b7160e01b600052604160045260246000fd5b600060033d1115613d295760046000803e5060005160e01c5b90565b600060443d1015613d3a5790565b6040516003193d81016004833e81513d67ffffffffffffffff8160248401118184111715613d6a57505050505090565b8285019150815181811115613d825750505050505090565b843d8701016020828501011115613d9c5750505050505090565b613dab60208286010187613c70565b509095945050505050565b6001600160a01b038116811461165857600080fd5b801515811461165857600080fd5b6001600160e01b03198116811461165857600080fdfe446567656e65726174654772616e6e795265746972656d656e74436c75623a20a26469706673582212209c8489f27612aff205abe16a84a8ba0600c3fac842416666c506d1e2f5c97d0664736f6c6343000807003300000000000000000000000000000000000000000000000000000000000000200000000000000000000000000000000000000000000000000000000000000000
Deployed Bytecode
0x6080604052600436106103795760003560e01c8063715018a6116101d1578063a475b5dd11610102578063d79779b2116100a0578063e985e9c51161006f578063e985e9c514610a5d578063f242432a14610aa6578063f2c4ce1e14610ac6578063f2fde38b14610ae657600080fd5b8063d79779b2146109dd578063e33b7de314610a13578063e5408eae14610a28578063e7db1b4314610a3d57600080fd5b8063b3ea88de116100dc578063b3ea88de14610948578063ce7c2ac214610975578063d6c29b4e146109ab578063d6f41cc1146109c157600080fd5b8063a475b5dd146108f3578063aedd0a9614610908578063b3ab66b01461093557600080fd5b80639852595c1161016f5780639a620b01116101495780639a620b01146108885780639b6860c81461089d578063a22cb465146108b3578063a3344125146108d357600080fd5b80639852595c14610816578063986b57781461084c57806398ef690a1461086c57600080fd5b806384c2f89f116101ab57806384c2f89f1461076c5780638b83209b146107995780638c3c4b34146107d15780638da5cb5b146107f857600080fd5b8063715018a614610721578063729ad39e1461073657806380d06c521461075657600080fd5b80632fbc0bf1116102ab57806348b750441161024957806355367ba91161022357806355367ba9146106b757806355f804b3146106cc5780636c0360eb146106ec5780636c1fff591461070157600080fd5b806348b75044146106505780634e1273f414610670578063518302271461069d57600080fd5b80633a98ef39116102855780633a98ef39146105cb578063406072a9146105e0578063413e4bcb146106265780634287f14a1461063b57600080fd5b80632fbc0bf11461058b57806332cb6b0c146105a057806337855a8e146105b657600080fd5b80631919fed7116103185780631f76059d116102f25780631f76059d1461050b578063207f32421461051e57806320ad36841461053e5780632eb2c2d61461056b57600080fd5b80631919fed7146104b65780631d00fbb2146104d65780631f2898c3146104f657600080fd5b8063081c8c4411610354578063081c8c441461044c5780630e89341c14610461578063104c0b8e14610481578063191655871461049657600080fd5b8062fdd58e146103c757806301ffc9a7146103fa57806306fdde031461042a57600080fd5b366103c2577f6ef95f06320e7a25a04a175ca677b7052bdd97131872c2192525a629f51be77033604080516001600160a01b0390921682523460208301520160405180910390a1005b600080fd5b3480156103d357600080fd5b506103e76103e236600461346e565b610b06565b6040519081526020015b60405180910390f35b34801561040657600080fd5b5061041a6104153660046135ff565b610b9d565b60405190151581526020016103f1565b34801561043657600080fd5b5061043f610bef565b6040516103f191906138b8565b34801561045857600080fd5b5061043f610c7d565b34801561046d57600080fd5b5061043f61047c366004613682565b610c8a565b61049461048f3660046136b4565b610d36565b005b3480156104a257600080fd5b506104946104b13660046132d3565b610f71565b3480156104c257600080fd5b506104946104d1366004613682565b61109f565b3480156104e257600080fd5b506104946104f13660046132d3565b6110ce565b34801561050257600080fd5b50610494611140565b6104946105193660046136b4565b611185565b34801561052a57600080fd5b506104946105393660046136b4565b6112e2565b34801561054a57600080fd5b506103e76105593660046132d3565b601b6020526000908152604090205481565b34801561057757600080fd5b50610494610586366004613329565b61140c565b34801561059757600080fd5b50600e546103e7565b3480156105ac57600080fd5b506103e761177081565b3480156105c257600080fd5b5061049461149c565b3480156105d757600080fd5b506003546103e7565b3480156105ec57600080fd5b506103e76105fb3660046132f0565b6001600160a01b03918216600090815260096020908152604080832093909416825291909152205490565b34801561063257600080fd5b506104946114de565b34801561064757600080fd5b50610494611520565b34801561065c57600080fd5b5061049461066b3660046132f0565b61165b565b34801561067c57600080fd5b5061069061068b36600461350f565b611843565b6040516103f1919061384f565b3480156106a957600080fd5b5060175461041a9060ff1681565b3480156106c357600080fd5b5061049461196d565b3480156106d857600080fd5b506104946106e7366004613639565b6119af565b3480156106f857600080fd5b5061043f6119f0565b34801561070d57600080fd5b5061049461071c366004613682565b6119fd565b34801561072d57600080fd5b50610494611aef565b34801561074257600080fd5b5061049461075136600461349a565b611b25565b34801561076257600080fd5b506103e761025881565b34801561077857600080fd5b506103e76107873660046132d3565b60196020526000908152604090205481565b3480156107a557600080fd5b506107b96107b4366004613682565b611c6a565b6040516001600160a01b0390911681526020016103f1565b3480156107dd57600080fd5b5060175462010000900460ff165b6040516103f19190613890565b34801561080457600080fd5b50600a546001600160a01b03166107b9565b34801561082257600080fd5b506103e76108313660046132d3565b6001600160a01b031660009081526006602052604090205490565b34801561085857600080fd5b506104946108673660046132d3565b611c9a565b34801561087857600080fd5b506103e7670214e8348c4f000081565b34801561089457600080fd5b50610494611d0c565b3480156108a957600080fd5b506103e7600e5481565b3480156108bf57600080fd5b506104946108ce366004613440565b611d4e565b3480156108df57600080fd5b506017546107eb9062010000900460ff1681565b3480156108ff57600080fd5b50610494611d59565b34801561091457600080fd5b506103e76109233660046132d3565b60186020526000908152604090205481565b610494610943366004613682565b611d92565b34801561095457600080fd5b506103e76109633660046132d3565b601a6020526000908152604090205481565b34801561098157600080fd5b506103e76109903660046132d3565b6001600160a01b031660009081526005602052604090205490565b3480156109b757600080fd5b506103e761012c81565b3480156109cd57600080fd5b506103e767016345785d8a000081565b3480156109e957600080fd5b506103e76109f83660046132d3565b6001600160a01b031660009081526008602052604090205490565b348015610a1f57600080fd5b506004546103e7565b348015610a3457600080fd5b506103e7601e81565b348015610a4957600080fd5b50610494610a583660046132d3565b611f6e565b348015610a6957600080fd5b5061041a610a783660046132f0565b6001600160a01b03918216600090815260016020908152604080832093909416825291909152205460ff1690565b348015610ab257600080fd5b50610494610ac13660046133d7565b611fe0565b348015610ad257600080fd5b50610494610ae1366004613639565b612067565b348015610af257600080fd5b50610494610b013660046132d3565b6120a4565b60006001600160a01b038316610b775760405162461bcd60e51b815260206004820152602b60248201527f455243313135353a2062616c616e636520717565727920666f7220746865207a60448201526a65726f206164647265737360a81b60648201526084015b60405180910390fd5b506000908152602081815260408083206001600160a01b03949094168352929052205490565b60006001600160e01b03198216636cdb3d1360e11b1480610bce57506001600160e01b031982166303a24d0760e21b145b80610be957506301ffc9a760e01b6001600160e01b03198316145b92915050565b600b8054610bfc90613c35565b80601f0160208091040260200160405190810160405280929190818152602001828054610c2890613c35565b8015610c755780601f10610c4a57610100808354040283529160200191610c75565b820191906000526020600020905b815481529060010190602001808311610c5857829003601f168201915b505050505081565b60168054610bfc90613c35565b60175460609060ff16610d295760168054610ca490613c35565b80601f0160208091040260200160405190810160405280929190818152602001828054610cd090613c35565b8015610d1d5780601f10610cf257610100808354040283529160200191610d1d565b820191906000526020600020905b815481529060010190602001808311610d0057829003601f168201915b50505050509050919050565b60158054610ca490613c35565b601254601154610d8f906001600160a01b0316610d53863361213c565b85858080601f01602080910402602001604051908101604052809392919081815260200183838082843760009201919091525061218192505050565b610dab5760405162461bcd60e51b8152600401610b6e90613959565b600360175462010000900460ff166006811115610dca57610dca613cce565b14610e2b5760405162461bcd60e51b815260206004820152603f6024820152600080516020613df083398151915260448201527f5075626c69632050726573616c6520686173206e6f74207374617274656421006064820152608401610b6e565b61025885601354610e3c9190613b99565b1115610e9e5760405162461bcd60e51b81526020600482015260396024820152600080516020613df083398151915260448201527f5075626c69632070726573616c6520736f6c64206f75742021000000000000006064820152608401610b6e565b336000908152601a60205260409020548490610ebb908790613b99565b1115610ed95760405162461bcd60e51b8152600401610b6e90613a20565b610eeb670214e8348c4f000086613bd3565b341015610f0a5760405162461bcd60e51b8152600401610b6e90613b35565b8460126000828254610f1c9190613b99565b9091555050336000908152601a602052604081208054879290610f40908490613b99565b925050819055508460136000828254610f599190613b99565b90915550610f6a9050338287612202565b5050505050565b6001600160a01b038116600090815260056020526040902054610fa65760405162461bcd60e51b8152600401610b6e90613913565b6000610fb160045490565b610fbb9047613b99565b90506000610fe88383610fe3866001600160a01b031660009081526006602052604090205490565b612233565b9050806110075760405162461bcd60e51b8152600401610b6e90613990565b6001600160a01b0383166000908152600660205260408120805483929061102f908490613b99565b9250508190555080600460008282546110489190613b99565b9091555061105890508382612279565b604080516001600160a01b0385168152602081018390527fdf20fd1e76bc69d672e4814fafb2c449bba3a5369d8359adf9e05e6fde87b056910160405180910390a1505050565b600a546001600160a01b031633146110c95760405162461bcd60e51b8152600401610b6e90613b00565b600e55565b600a546001600160a01b031633146110f85760405162461bcd60e51b8152600401610b6e90613b00565b6001600160a01b03811661111e5760405162461bcd60e51b8152600401610b6e90613a89565b601180546001600160a01b0319166001600160a01b0392909216919091179055565b600a546001600160a01b0316331461116a5760405162461bcd60e51b8152600401610b6e90613b00565b601780546004919062ff0000191662010000835b0217905550565b6012546010546111a2906001600160a01b0316610d53863361213c565b6111be5760405162461bcd60e51b8152600401610b6e90613959565b600260175462010000900460ff1660068111156111dd576111dd613cce565b14611240576040805162461bcd60e51b8152602060048201526024810191909152600080516020613df083398151915260448201527f507269766174652050726573616c6520686173206e6f742073746172746564216064820152608401610b6e565b336000908152601b6020526040902054849061125d908790613b99565b111561127b5760405162461bcd60e51b8152600401610b6e90613a20565b61128d67016345785d8a000086613bd3565b3410156112ac5760405162461bcd60e51b8152600401610b6e90613b35565b84601260008282546112be9190613b99565b9091555050336000908152601b602052604081208054879290610f59908490613b99565b601254600f546112ff906001600160a01b0316610d53863361213c565b61131b5760405162461bcd60e51b8152600401610b6e90613959565b600160175462010000900460ff16600681111561133a5761133a613cce565b1461139b5760405162461bcd60e51b81526020600482015260396024820152600080516020613df083398151915260448201527f467265656d696e7420686173206e6f74207374617274656421000000000000006064820152608401610b6e565b3360009081526019602052604090205484906113b8908790613b99565b11156113d65760405162461bcd60e51b8152600401610b6e90613a20565b84601260008282546113e89190613b99565b90915550503360009081526019602052604081208054879290610f59908490613b99565b6001600160a01b03851633148061142857506114288533610a78565b61148f5760405162461bcd60e51b815260206004820152603260248201527f455243313135353a207472616e736665722063616c6c6572206973206e6f74206044820152711bdddb995c881b9bdc88185c1c1c9bdd995960721b6064820152608401610b6e565b610f6a8585858585612397565b600a546001600160a01b031633146114c65760405162461bcd60e51b8152600401610b6e90613b00565b601780546001919062ff00001916620100008361117e565b600a546001600160a01b031633146115085760405162461bcd60e51b8152600401610b6e90613b00565b601780546002919062ff00001916620100008361117e565b600a546001600160a01b0316331461154a5760405162461bcd60e51b8152600401610b6e90613b00565b601754610100900460ff16156115ae5760405162461bcd60e51b81526020600482015260356024820152600080516020613df08339815191526044820152741519585b48185b1c9958591e481c995cd95c9d9959605a1b6064820152608401610b6e565b6014546117706115bf601e83613b99565b11156116125760405162461bcd60e51b815260206004820152602e6024820152600080516020613df083398151915260448201526d4d696e7420746f6f206c6172676560901b6064820152608401610b6e565b6017805461ff00191661010017905560128054601e9190600090611637908490613b99565b9250508190555061165833601e6012546116519190613bf2565b601e612202565b50565b6001600160a01b0381166000908152600560205260409020546116905760405162461bcd60e51b8152600401610b6e90613913565b6001600160a01b0382166000908152600860205260408120546040516370a0823160e01b81523060048201526001600160a01b038516906370a082319060240160206040518083038186803b1580156116e857600080fd5b505afa1580156116fc573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611720919061369b565b61172a9190613b99565b905060006117638383610fe387876001600160a01b03918216600090815260096020908152604080832093909416825291909152205490565b9050806117825760405162461bcd60e51b8152600401610b6e90613990565b6001600160a01b038085166000908152600960209081526040808320938716835292905290812080548392906117b9908490613b99565b90915550506001600160a01b038416600090815260086020526040812080548392906117e6908490613b99565b909155506117f79050848483612574565b604080516001600160a01b038581168252602082018490528616917f3be5b7a71e84ed12875d241991c70855ac5817d847039e17a9d895c1ceb0f18a910160405180910390a250505050565b606081518351146118a85760405162461bcd60e51b815260206004820152602960248201527f455243313135353a206163636f756e747320616e6420696473206c656e677468604482015268040dad2e6dac2e8c6d60bb1b6064820152608401610b6e565b6000835167ffffffffffffffff8111156118c4576118c4613cfa565b6040519080825280602002602001820160405280156118ed578160200160208202803683370190505b50905060005b84518110156119655761193885828151811061191157611911613ce4565b602002602001015185838151811061192b5761192b613ce4565b6020026020010151610b06565b82828151811061194a5761194a613ce4565b602090810291909101015261195e81613c9d565b90506118f3565b509392505050565b600a546001600160a01b031633146119975760405162461bcd60e51b8152600401610b6e90613b00565b601780546006919062ff00001916620100008361117e565b600a546001600160a01b031633146119d95760405162461bcd60e51b8152600401610b6e90613b00565b80516119ec906015906020840190613145565b5050565b60158054610bfc90613c35565b600a546001600160a01b03163314611a275760405162461bcd60e51b8152600401610b6e90613b00565b60145461012c611a378383613b99565b1115611aa55760405162461bcd60e51b81526020600482015260436024820152600080516020613df083398151915260448201527f596f752063616e2774206d696e74206d6f7265207468616e206d617820737570606482015262706c7960e81b608482015260a401610b6e565b8160126000828254611ab79190613b99565b925050819055508160146000828254611ad09190613b99565b925050819055506119ec3383601254611ae99190613bf2565b84612202565b600a546001600160a01b03163314611b195760405162461bcd60e51b8152600401610b6e90613b00565b611b2360006125c6565b565b600a546001600160a01b03163314611b4f5760405162461bcd60e51b8152600401610b6e90613b00565b60145461012c611b5f8284613b99565b1115611bcf5760405162461bcd60e51b815260206004820152604460248201819052600080516020613df0833981519152908201527f596f752063616e27742061697264726f70206d6f7265207468616e206d61782060648201526319da599d60e21b608482015260a401610b6e565b601280549083906000611be28385613b99565b909155505060148054849190600090611bfc908490613b99565b90915550600090505b83811015610f6a57611c58858583818110611c2257611c22613ce4565b9050602002016020810190611c3791906132d3565b611c418385613b99565b604080516000815260208101909152600190612618565b80611c6281613c9d565b915050611c05565b600060078281548110611c7f57611c7f613ce4565b6000918252602090912001546001600160a01b031692915050565b600a546001600160a01b03163314611cc45760405162461bcd60e51b8152600401610b6e90613b00565b6001600160a01b038116611cea5760405162461bcd60e51b8152600401610b6e90613a89565b601080546001600160a01b0319166001600160a01b0392909216919091179055565b600a546001600160a01b03163314611d365760405162461bcd60e51b8152600401610b6e90613b00565b601780546003919062ff00001916620100008361117e565b6119ec338383612722565b600a546001600160a01b03163314611d835760405162461bcd60e51b8152600401610b6e90613b00565b6017805460ff19166001179055565b60008111611de25760405162461bcd60e51b815260206004820152601f60248201527f596f75206d757374206d696e74206174206c65617374206f6e65204e46542e006044820152606401610b6e565b601254611770611df28383613b99565b1115611e405760405162461bcd60e51b81526020600482015260296024820152600080516020613df0833981519152604482015268536f6c64206f75742160b81b6064820152608401610b6e565b600460175462010000900460ff166006811115611e5f57611e5f613cce565b14611ec05760405162461bcd60e51b81526020600482015260386024820152600080516020613df083398151915260448201527f7075626c69632073616c65206e6f7420737461727465642e00000000000000006064820152608401610b6e565b81600e54611ece9190613bd3565b341015611f255760405162461bcd60e51b81526020600482015260316024820152600080516020613df0833981519152604482015270496e737566696369656e742066756e647360781b6064820152608401610b6e565b3360009081526018602052604081208054849290611f44908490613b99565b925050819055508160126000828254611f5d9190613b99565b909155506119ec9050338284612202565b600a546001600160a01b03163314611f985760405162461bcd60e51b8152600401610b6e90613b00565b6001600160a01b038116611fbe5760405162461bcd60e51b8152600401610b6e90613a89565b600f80546001600160a01b0319166001600160a01b0392909216919091179055565b6001600160a01b038516331480611ffc5750611ffc8533610a78565b61205a5760405162461bcd60e51b815260206004820152602960248201527f455243313135353a2063616c6c6572206973206e6f74206f776e6572206e6f7260448201526808185c1c1c9bdd995960ba1b6064820152608401610b6e565b610f6a8585858585612803565b600a546001600160a01b031633146120915760405162461bcd60e51b8152600401610b6e90613b00565b80516119ec906016906020840190613145565b600a546001600160a01b031633146120ce5760405162461bcd60e51b8152600401610b6e90613b00565b6001600160a01b0381166121335760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401610b6e565b611658816125c6565b600082826040516020016121639291909182526001600160a01b0316602082015260400190565b60405160208183030381529060405280519060200120905092915050565b60006121e4826121de856040517f19457468657265756d205369676e6564204d6573736167653a0a3332000000006020820152603c8101829052600090605c01604051602081830303815290604052805190602001209050919050565b90612920565b6001600160a01b0316846001600160a01b03161490505b9392505050565b60005b8181101561222d5761221b84611c418386613b99565b8061222581613c9d565b915050612205565b50505050565b6003546001600160a01b0384166000908152600560205260408120549091839161225d9086613bd3565b6122679190613bb1565b6122719190613bf2565b949350505050565b804710156122c95760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a20696e73756666696369656e742062616c616e63650000006044820152606401610b6e565b6000826001600160a01b03168260405160006040518083038185875af1925050503d8060008114612316576040519150601f19603f3d011682016040523d82523d6000602084013e61231b565b606091505b50509050806123925760405162461bcd60e51b815260206004820152603a60248201527f416464726573733a20756e61626c6520746f2073656e642076616c75652c207260448201527f6563697069656e74206d617920686176652072657665727465640000000000006064820152608401610b6e565b505050565b81518351146123f95760405162461bcd60e51b815260206004820152602860248201527f455243313135353a2069647320616e6420616d6f756e7473206c656e677468206044820152670dad2e6dac2e8c6d60c31b6064820152608401610b6e565b6001600160a01b03841661241f5760405162461bcd60e51b8152600401610b6e906139db565b3360005b845181101561250657600085828151811061244057612440613ce4565b60200260200101519050600085838151811061245e5761245e613ce4565b602090810291909101810151600084815280835260408082206001600160a01b038e1683529093529190912054909150818110156124ae5760405162461bcd60e51b8152600401610b6e90613ab6565b6000838152602081815260408083206001600160a01b038e8116855292528083208585039055908b168252812080548492906124eb908490613b99565b92505081905550505050806124ff90613c9d565b9050612423565b50846001600160a01b0316866001600160a01b0316826001600160a01b03167f4a39dc06d4c0dbc64b70af90fd698a233a518aa5d07e595d983b8c0526c8f7fb8787604051612556929190613862565b60405180910390a461256c81878787878761293c565b505050505050565b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180516001600160e01b031663a9059cbb60e01b179052612392908490612aa7565b600a80546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b6001600160a01b0384166126785760405162461bcd60e51b815260206004820152602160248201527f455243313135353a206d696e7420746f20746865207a65726f206164647265736044820152607360f81b6064820152608401610b6e565b336126928160008761268988612b79565b610f6a88612b79565b6000848152602081815260408083206001600160a01b0389168452909152812080548592906126c2908490613b99565b909155505060408051858152602081018590526001600160a01b0380881692600092918516917fc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f62910160405180910390a4610f6a81600087878787612bc4565b816001600160a01b0316836001600160a01b031614156127965760405162461bcd60e51b815260206004820152602960248201527f455243313135353a2073657474696e6720617070726f76616c20737461747573604482015268103337b91039b2b63360b91b6064820152608401610b6e565b6001600160a01b03838116600081815260016020908152604080832094871680845294825291829020805460ff191686151590811790915591519182527f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a3505050565b6001600160a01b0384166128295760405162461bcd60e51b8152600401610b6e906139db565b3361283981878761268988612b79565b6000848152602081815260408083206001600160a01b038a1684529091529020548381101561287a5760405162461bcd60e51b8152600401610b6e90613ab6565b6000858152602081815260408083206001600160a01b038b81168552925280832087850390559088168252812080548692906128b7908490613b99565b909155505060408051868152602081018690526001600160a01b03808916928a821692918616917fc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f62910160405180910390a4612917828888888888612bc4565b50505050505050565b600080600061292f8585612c8e565b9150915061196581612cfe565b6001600160a01b0384163b1561256c5760405163bc197c8160e01b81526001600160a01b0385169063bc197c819061298090899089908890889088906004016137b7565b602060405180830381600087803b15801561299a57600080fd5b505af19250505080156129ca575060408051601f3d908101601f191682019092526129c79181019061361c565b60015b612a77576129d6613d10565b806308c379a01415612a1057506129eb613d2c565b806129f65750612a12565b8060405162461bcd60e51b8152600401610b6e91906138b8565b505b60405162461bcd60e51b815260206004820152603460248201527f455243313135353a207472616e7366657220746f206e6f6e20455243313135356044820152732932b1b2b4bb32b91034b6b83632b6b2b73a32b960611b6064820152608401610b6e565b6001600160e01b0319811663bc197c8160e01b146129175760405162461bcd60e51b8152600401610b6e906138cb565b6000612afc826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564815250856001600160a01b0316612eb99092919063ffffffff16565b8051909150156123925780806020019051810190612b1a91906135e2565b6123925760405162461bcd60e51b815260206004820152602a60248201527f5361666545524332303a204552433230206f7065726174696f6e20646964206e6044820152691bdd081cdd58d8d9595960b21b6064820152608401610b6e565b60408051600180825281830190925260609160009190602080830190803683370190505090508281600081518110612bb357612bb3613ce4565b602090810291909101015292915050565b6001600160a01b0384163b1561256c5760405163f23a6e6160e01b81526001600160a01b0385169063f23a6e6190612c089089908990889088908890600401613815565b602060405180830381600087803b158015612c2257600080fd5b505af1925050508015612c52575060408051601f3d908101601f19168201909252612c4f9181019061361c565b60015b612c5e576129d6613d10565b6001600160e01b0319811663f23a6e6160e01b146129175760405162461bcd60e51b8152600401610b6e906138cb565b600080825160411415612cc55760208301516040840151606085015160001a612cb987828585612ec8565b94509450505050612cf7565b825160401415612cef5760208301516040840151612ce4868383612fb5565b935093505050612cf7565b506000905060025b9250929050565b6000816004811115612d1257612d12613cce565b1415612d1b5750565b6001816004811115612d2f57612d2f613cce565b1415612d7d5760405162461bcd60e51b815260206004820152601860248201527f45434453413a20696e76616c6964207369676e617475726500000000000000006044820152606401610b6e565b6002816004811115612d9157612d91613cce565b1415612ddf5760405162461bcd60e51b815260206004820152601f60248201527f45434453413a20696e76616c6964207369676e6174757265206c656e677468006044820152606401610b6e565b6003816004811115612df357612df3613cce565b1415612e4c5760405162461bcd60e51b815260206004820152602260248201527f45434453413a20696e76616c6964207369676e6174757265202773272076616c604482015261756560f01b6064820152608401610b6e565b6004816004811115612e6057612e60613cce565b14156116585760405162461bcd60e51b815260206004820152602260248201527f45434453413a20696e76616c6964207369676e6174757265202776272076616c604482015261756560f01b6064820152608401610b6e565b60606122718484600085612fe4565b6000807f7fffffffffffffffffffffffffffffff5d576e7357a4501ddfe92f46681b20a0831115612eff5750600090506003612fac565b8460ff16601b14158015612f1757508460ff16601c14155b15612f285750600090506004612fac565b6040805160008082526020820180845289905260ff881692820192909252606081018690526080810185905260019060a0016020604051602081039080840390855afa158015612f7c573d6000803e3d6000fd5b5050604051601f1901519150506001600160a01b038116612fa557600060019250925050612fac565b9150600090505b94509492505050565b6000806001600160ff1b03831660ff84901c601b01612fd687828885612ec8565b935093505050935093915050565b6060824710156130455760405162461bcd60e51b815260206004820152602660248201527f416464726573733a20696e73756666696369656e742062616c616e636520666f6044820152651c8818d85b1b60d21b6064820152608401610b6e565b843b6130935760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e74726163740000006044820152606401610b6e565b600080866001600160a01b031685876040516130af919061379b565b60006040518083038185875af1925050503d80600081146130ec576040519150601f19603f3d011682016040523d82523d6000602084013e6130f1565b606091505b509150915061310182828661310c565b979650505050505050565b6060831561311b5750816121fb565b82511561312b5782518084602001fd5b8160405162461bcd60e51b8152600401610b6e91906138b8565b82805461315190613c35565b90600052602060002090601f01602090048101928261317357600085556131b9565b82601f1061318c57805160ff19168380011785556131b9565b828001600101855582156131b9579182015b828111156131b957825182559160200191906001019061319e565b506131c59291506131c9565b5090565b5b808211156131c557600081556001016131ca565b600067ffffffffffffffff8311156131f8576131f8613cfa565b60405161320f601f8501601f191660200182613c70565b80915083815284848401111561322457600080fd5b83836020830137600060208583010152509392505050565b600082601f83011261324d57600080fd5b8135602061325a82613b75565b6040516132678282613c70565b8381528281019150858301600585901b8701840188101561328757600080fd5b60005b858110156132a65781358452928401929084019060010161328a565b5090979650505050505050565b600082601f8301126132c457600080fd5b6121fb838335602085016131de565b6000602082840312156132e557600080fd5b81356121fb81613db6565b6000806040838503121561330357600080fd5b823561330e81613db6565b9150602083013561331e81613db6565b809150509250929050565b600080600080600060a0868803121561334157600080fd5b853561334c81613db6565b9450602086013561335c81613db6565b9350604086013567ffffffffffffffff8082111561337957600080fd5b61338589838a0161323c565b9450606088013591508082111561339b57600080fd5b6133a789838a0161323c565b935060808801359150808211156133bd57600080fd5b506133ca888289016132b3565b9150509295509295909350565b600080600080600060a086880312156133ef57600080fd5b85356133fa81613db6565b9450602086013561340a81613db6565b93506040860135925060608601359150608086013567ffffffffffffffff81111561343457600080fd5b6133ca888289016132b3565b6000806040838503121561345357600080fd5b823561345e81613db6565b9150602083013561331e81613dcb565b6000806040838503121561348157600080fd5b823561348c81613db6565b946020939093013593505050565b600080602083850312156134ad57600080fd5b823567ffffffffffffffff808211156134c557600080fd5b818501915085601f8301126134d957600080fd5b8135818111156134e857600080fd5b8660208260051b85010111156134fd57600080fd5b60209290920196919550909350505050565b6000806040838503121561352257600080fd5b823567ffffffffffffffff8082111561353a57600080fd5b818501915085601f83011261354e57600080fd5b8135602061355b82613b75565b6040516135688282613c70565b8381528281019150858301600585901b870184018b101561358857600080fd5b600096505b848710156135b45780356135a081613db6565b83526001969096019591830191830161358d565b50965050860135925050808211156135cb57600080fd5b506135d88582860161323c565b9150509250929050565b6000602082840312156135f457600080fd5b81516121fb81613dcb565b60006020828403121561361157600080fd5b81356121fb81613dd9565b60006020828403121561362e57600080fd5b81516121fb81613dd9565b60006020828403121561364b57600080fd5b813567ffffffffffffffff81111561366257600080fd5b8201601f8101841361367357600080fd5b612271848235602084016131de565b60006020828403121561369457600080fd5b5035919050565b6000602082840312156136ad57600080fd5b5051919050565b600080600080606085870312156136ca57600080fd5b8435935060208501359250604085013567ffffffffffffffff808211156136f057600080fd5b818701915087601f83011261370457600080fd5b81358181111561371357600080fd5b88602082850101111561372557600080fd5b95989497505060200194505050565b600081518084526020808501945080840160005b8381101561376457815187529582019590820190600101613748565b509495945050505050565b60008151808452613787816020860160208601613c09565b601f01601f19169290920160200192915050565b600082516137ad818460208701613c09565b9190910192915050565b6001600160a01b0386811682528516602082015260a0604082018190526000906137e390830186613734565b82810360608401526137f58186613734565b90508281036080840152613809818561376f565b98975050505050505050565b6001600160a01b03868116825285166020820152604081018490526060810183905260a0608082018190526000906131019083018461376f565b6020815260006121fb6020830184613734565b6040815260006138756040830185613734565b82810360208401526138878185613734565b95945050505050565b60208101600783106138b257634e487b7160e01b600052602160045260246000fd5b91905290565b6020815260006121fb602083018461376f565b60208082526028908201527f455243313135353a204552433131353552656365697665722072656a656374656040820152676420746f6b656e7360c01b606082015260800190565b60208082526026908201527f5061796d656e7453706c69747465723a206163636f756e7420686173206e6f2060408201526573686172657360d01b606082015260800190565b6020808252601b908201527f5349474e41545552455f56414c49444154494f4e5f4641494c45440000000000604082015260600190565b6020808252602b908201527f5061796d656e7453706c69747465723a206163636f756e74206973206e6f742060408201526a191d59481c185e5b595b9d60aa1b606082015260800190565b60208082526025908201527f455243313135353a207472616e7366657220746f20746865207a65726f206164604082015264647265737360d81b606082015260800190565b6020808252605590820152600080516020613df083398151915260408201527f596f752063616e2774206d696e74206d6f7265207468616e20796f757220616c6060820152743637bbb2b210373ab6b132b91037b31027232a399760591b608082015260a00190565b60208082526013908201527243414e2754205055542030204144445245535360681b604082015260600190565b6020808252602a908201527f455243313135353a20696e73756666696369656e742062616c616e636520666f60408201526939103a3930b739b332b960b11b606082015260800190565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b6020808252603290820152600080516020613df0833981519152604082015271496e73756666696369656e742066756e647360701b606082015260800190565b600067ffffffffffffffff821115613b8f57613b8f613cfa565b5060051b60200190565b60008219821115613bac57613bac613cb8565b500190565b600082613bce57634e487b7160e01b600052601260045260246000fd5b500490565b6000816000190483118215151615613bed57613bed613cb8565b500290565b600082821015613c0457613c04613cb8565b500390565b60005b83811015613c24578181015183820152602001613c0c565b8381111561222d5750506000910152565b600181811c90821680613c4957607f821691505b60208210811415613c6a57634e487b7160e01b600052602260045260246000fd5b50919050565b601f8201601f1916810167ffffffffffffffff81118282101715613c9657613c96613cfa565b6040525050565b6000600019821415613cb157613cb1613cb8565b5060010190565b634e487b7160e01b600052601160045260246000fd5b634e487b7160e01b600052602160045260246000fd5b634e487b7160e01b600052603260045260246000fd5b634e487b7160e01b600052604160045260246000fd5b600060033d1115613d295760046000803e5060005160e01c5b90565b600060443d1015613d3a5790565b6040516003193d81016004833e81513d67ffffffffffffffff8160248401118184111715613d6a57505050505090565b8285019150815181811115613d825750505050505090565b843d8701016020828501011115613d9c5750505050505090565b613dab60208286010187613c70565b509095945050505050565b6001600160a01b038116811461165857600080fd5b801515811461165857600080fd5b6001600160e01b03198116811461165857600080fdfe446567656e65726174654772616e6e795265746972656d656e74436c75623a20a26469706673582212209c8489f27612aff205abe16a84a8ba0600c3fac842416666c506d1e2f5c97d0664736f6c63430008070033
Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)
00000000000000000000000000000000000000000000000000000000000000200000000000000000000000000000000000000000000000000000000000000000
-----Decoded View---------------
Arg [0] : _baseUri (string):
-----Encoded View---------------
2 Constructor Arguments found :
Arg [0] : 0000000000000000000000000000000000000000000000000000000000000020
Arg [1] : 0000000000000000000000000000000000000000000000000000000000000000
Loading...
Loading
Loading...
Loading
OVERVIEW
Welcome to the home of Degenerate Granny Official on OpenSea. Discover the best items in this collection.MINT IS LIVE: https://mint.retirementclubnft.com/Multichain Portfolio | 30 Chains
Chain | Token | Portfolio % | Price | Amount | Value |
---|---|---|---|---|---|
ETH | Ether (ETH) | 100.00% | $3,720.74 | 0.448 | $1,666.89 |
Loading...
Loading
[ Download: CSV Export ]
[ Download: CSV Export ]
A contract address hosts a smart contract, which is a set of code stored on the blockchain that runs when predetermined conditions are met. Learn more about addresses in our Knowledge Base.