Contract Overview
[ Download CSV Export ]
Contract Name:
Apollo2022
Compiler Version
v0.8.10+commit.fc410830
Optimization Enabled:
Yes with 200 runs
Other Settings:
default evmVersion
Contract Source Code (Solidity Standard Json-Input format)
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import "./AbstractApollo2022.sol"; import "@openzeppelin/contracts/token/ERC20/IERC20.sol"; import "@openzeppelin/contracts/token/ERC20/utils/SafeERC20.sol"; /** * @title Apollo2022 Boarding Passes Contract * @dev Extends ERC1155 Token Standard basic implementation */ contract Apollo2022 is AbstractApollo2022 { using SafeERC20 for IERC20; event ClaimTicket(address indexed account); event BuyTicket(address indexed account, address indexed sender, uint256 amount); event SetupRelease(uint256 start, uint256 end, uint256 supply); event ReserveTickets(address indexed account, uint256 amount); uint256 public constant maxSupply = 10000; /// @dev buys + claims <= maxMintsPerAddr uint256 public constant maxMintsPerAddr = 5; uint256 public constant maxClaimsPerAddr = 1; uint256 public buyPrice = 0.01 ether; uint256 public reserveMaxAmount = 1000; uint256 public reserveAmount; uint256 public releaseStart; uint256 public releaseEnd; uint256 public releaseDuration; uint256 public releaseMaxSupply; uint256 public releaseMinted; uint256 public curMaxSupply; IERC20 public immutable weth; mapping(address => uint256) public mintsPerAddr; mapping(address => uint256) public claimsPerAddr; constructor(string memory _uri, IERC20 _weth) ERC1155(_uri) ERC1155Supply() { weth = _weth; name = "LCA Boarding Passes"; symbol = "LCAPASS"; } modifier onlyEOA() { require(msg.sender == tx.origin, "Must use EOA"); _; } function setupRelease( uint256 _releaseStart, uint256 _releaseEnd, uint256 _releaseMaxSupply ) external onlyOwner { require( block.timestamp > releaseEnd && available() == 0, "Previous release is still running" ); require(curMaxSupply + _releaseMaxSupply <= maxSupply, "Incorrect releaseMaxSupply value"); releaseStart = _releaseStart; releaseEnd = _releaseEnd; releaseDuration = _releaseEnd - _releaseStart; releaseMaxSupply = _releaseMaxSupply; curMaxSupply += _releaseMaxSupply; releaseMinted = 0; emit SetupRelease(_releaseStart, _releaseEnd, _releaseMaxSupply); } function setBuyPrice( uint256 _buyPrice ) external onlyOwner { buyPrice = _buyPrice; } function withdrawWETH() external onlyOwner { weth.safeTransfer(msg.sender, weth.balanceOf(address(this))); } function available() public view returns (uint256) { uint256 remaining = releaseMaxSupply - releaseMinted; if (block.timestamp < releaseStart) { return 0; } else if (block.timestamp > releaseEnd) { return remaining; } else { uint256 released = (releaseMaxSupply * (block.timestamp - releaseStart)) / releaseDuration; return (released > releaseMinted) ? released - releaseMinted : 0; } } function claimTicket() external onlyEOA { require(claimsPerAddr[msg.sender] < maxClaimsPerAddr, "Max claims per address exceeded"); require(mintsPerAddr[msg.sender] < maxMintsPerAddr, "Max mints per address exceeded"); require(totalTicketSupply() < curMaxSupply, "Mint would exceed max supply of Tickets"); require(available() > 0, "No tickets available"); claimsPerAddr[msg.sender]++; _releaseMint(msg.sender, 1); emit ClaimTicket(msg.sender); } function buyTicket(address to, uint256 numberOfTokens) external onlyEOA { require( mintsPerAddr[to] + numberOfTokens <= maxMintsPerAddr, "Max mints per address exceeded" ); require( totalTicketSupply() + numberOfTokens <= curMaxSupply, "Mint would exceed max supply of Tickets" ); uint256 amount = numberOfTokens * buyPrice; weth.safeTransferFrom(address(msg.sender), address(this), amount); _releaseMint(to, numberOfTokens); emit BuyTicket(to, msg.sender, numberOfTokens); } function reserveTickets(address to, uint256 numberOfTokens) external onlyOwner { require( curMaxSupply + numberOfTokens <= maxSupply, "Mint would exceed max supply of Tickets" ); require( reserveAmount + numberOfTokens <= reserveMaxAmount, "Mint would exeed max allowed reserve amount" ); curMaxSupply += numberOfTokens; reserveAmount += numberOfTokens; _mintTickets(to, numberOfTokens); emit ReserveTickets(to, numberOfTokens); } function _releaseMint(address to, uint256 amount) internal { mintsPerAddr[to] += amount; releaseMinted += amount; _mintTickets(to, amount); } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import "@openzeppelin/contracts/access/Ownable.sol"; import "@openzeppelin/contracts/token/ERC1155/ERC1155.sol"; import "@openzeppelin/contracts/token/ERC1155/extensions/ERC1155Supply.sol"; import "@openzeppelin/contracts/token/ERC20/IERC20.sol"; import "@openzeppelin/contracts/token/ERC20/utils/SafeERC20.sol"; abstract contract AbstractApollo2022 is ERC1155, ERC1155Supply, Ownable { string public name; string public symbol; uint256 public constant tokenID = 0; function setURI(string memory newURI) external onlyOwner { _setURI(newURI); emit URI(newURI, tokenID); } function totalTicketSupply() public view returns(uint256) { return totalSupply(tokenID); } function ticketBalanceOf(address account) public view returns(uint256){ return balanceOf(account, tokenID); } function _mintTickets(address account, uint256 amount) internal { _mint(account, tokenID, amount, ""); } function uri(uint256 _id) public view override returns (string memory){ require(_id == tokenID, "ERC721Metadata: URI query for nonexistent token"); return super.uri(_id); } /* ***************************** */ function _mint( address account, uint256 id, uint256 amount, bytes memory data ) internal virtual override(ERC1155, ERC1155Supply) { super._mint(account, id, amount, data); } function _mintBatch( address to, uint256[] memory ids, uint256[] memory amounts, bytes memory data ) internal virtual override(ERC1155, ERC1155Supply) { super._mintBatch(to, ids, amounts, data); } function _burn( address account, uint256 id, uint256 amount ) internal virtual override(ERC1155, ERC1155Supply) { super._burn(account, id, amount); } function _burnBatch( address account, uint256[] memory ids, uint256[] memory amounts ) internal virtual override(ERC1155, ERC1155Supply) { super._burnBatch(account, ids, amounts); } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; /** * @dev Interface of the ERC20 standard as defined in the EIP. */ interface IERC20 { /** * @dev Returns the amount of tokens in existence. */ function totalSupply() external view returns (uint256); /** * @dev Returns the amount of tokens owned by `account`. */ function balanceOf(address account) external view returns (uint256); /** * @dev Moves `amount` tokens from the caller's account to `recipient`. * * Returns a boolean value indicating whether the operation succeeded. * * Emits a {Transfer} event. */ function transfer(address recipient, uint256 amount) external returns (bool); /** * @dev Returns the remaining number of tokens that `spender` will be * allowed to spend on behalf of `owner` through {transferFrom}. This is * zero by default. * * This value changes when {approve} or {transferFrom} are called. */ function allowance(address owner, address spender) external view returns (uint256); /** * @dev Sets `amount` as the allowance of `spender` over the caller's tokens. * * Returns a boolean value indicating whether the operation succeeded. * * IMPORTANT: Beware that changing an allowance with this method brings the risk * that someone may use both the old and the new allowance by unfortunate * transaction ordering. One possible solution to mitigate this race * condition is to first reduce the spender's allowance to 0 and set the * desired value afterwards: * https://github.com/ethereum/EIPs/issues/20#issuecomment-263524729 * * Emits an {Approval} event. */ function approve(address spender, uint256 amount) external returns (bool); /** * @dev Moves `amount` tokens from `sender` to `recipient` using the * allowance mechanism. `amount` is then deducted from the caller's * allowance. * * Returns a boolean value indicating whether the operation succeeded. * * Emits a {Transfer} event. */ function transferFrom( address sender, address recipient, uint256 amount ) external returns (bool); /** * @dev Emitted when `value` tokens are moved from one account (`from`) to * another (`to`). * * Note that `value` may be zero. */ event Transfer(address indexed from, address indexed to, uint256 value); /** * @dev Emitted when the allowance of a `spender` for an `owner` is set by * a call to {approve}. `value` is the new allowance. */ event Approval(address indexed owner, address indexed spender, uint256 value); }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import "../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 pragma solidity ^0.8.0; import "../utils/Context.sol"; /** * @dev Contract module which provides a basic access control mechanism, where * there is an account (an owner) that can be granted exclusive access to * specific functions. * * By default, the owner account will be the one that deploys the contract. This * can later be changed with {transferOwnership}. * * This module is used through inheritance. It will make available the modifier * `onlyOwner`, which can be applied to your functions to restrict their use to * the owner. */ abstract contract Ownable is Context { address private _owner; event OwnershipTransferred(address indexed previousOwner, address indexed newOwner); /** * @dev Initializes the contract setting the deployer as the initial owner. */ constructor() { _setOwner(_msgSender()); } /** * @dev Returns the address of the current owner. */ function owner() public view virtual returns (address) { return _owner; } /** * @dev Throws if called by any account other than the owner. */ modifier onlyOwner() { require(owner() == _msgSender(), "Ownable: caller is not the owner"); _; } /** * @dev Leaves the contract without owner. It will not be possible to call * `onlyOwner` functions anymore. Can only be called by the current owner. * * NOTE: Renouncing ownership will leave the contract without an owner, * thereby removing any functionality that is only available to the owner. */ function renounceOwnership() public virtual onlyOwner { _setOwner(address(0)); } /** * @dev Transfers ownership of the contract to a new account (`newOwner`). * Can only be called by the current owner. */ function transferOwnership(address newOwner) public virtual onlyOwner { require(newOwner != address(0), "Ownable: new owner is the zero address"); _setOwner(newOwner); } function _setOwner(address newOwner) private { address oldOwner = _owner; _owner = newOwner; emit OwnershipTransferred(oldOwner, newOwner); } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import "./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 { require(_msgSender() != operator, "ERC1155: setting approval status for self"); _operatorApprovals[_msgSender()][operator] = approved; emit ApprovalForAll(_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 `account`. * * Emits a {TransferSingle} event. * * Requirements: * * - `account` cannot be the zero address. * - If `account` refers to a smart contract, it must implement {IERC1155Receiver-onERC1155Received} and return the * acceptance magic value. */ function _mint( address account, uint256 id, uint256 amount, bytes memory data ) internal virtual { require(account != address(0), "ERC1155: mint to the zero address"); address operator = _msgSender(); _beforeTokenTransfer(operator, address(0), account, _asSingletonArray(id), _asSingletonArray(amount), data); _balances[id][account] += amount; emit TransferSingle(operator, address(0), account, id, amount); _doSafeTransferAcceptanceCheck(operator, address(0), account, 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 `account` * * Requirements: * * - `account` cannot be the zero address. * - `account` must have at least `amount` tokens of token type `id`. */ function _burn( address account, uint256 id, uint256 amount ) internal virtual { require(account != address(0), "ERC1155: burn from the zero address"); address operator = _msgSender(); _beforeTokenTransfer(operator, account, address(0), _asSingletonArray(id), _asSingletonArray(amount), ""); uint256 accountBalance = _balances[id][account]; require(accountBalance >= amount, "ERC1155: burn amount exceeds balance"); unchecked { _balances[id][account] = accountBalance - amount; } emit TransferSingle(operator, account, 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 account, uint256[] memory ids, uint256[] memory amounts ) internal virtual { require(account != address(0), "ERC1155: burn from the zero address"); require(ids.length == amounts.length, "ERC1155: ids and amounts length mismatch"); address operator = _msgSender(); _beforeTokenTransfer(operator, account, address(0), ids, amounts, ""); for (uint256 i = 0; i < ids.length; i++) { uint256 id = ids[i]; uint256 amount = amounts[i]; uint256 accountBalance = _balances[id][account]; require(accountBalance >= amount, "ERC1155: burn amount exceeds balance"); unchecked { _balances[id][account] = accountBalance - amount; } } emit TransferBatch(operator, account, address(0), ids, amounts); } /** * @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 pragma solidity ^0.8.0; import "../ERC1155.sol"; /** * @dev Extension of ERC1155 that adds tracking of total supply per id. * * Useful for scenarios where Fungible and Non-fungible tokens have to be * clearly identified. Note: While a totalSupply of 1 might mean the * corresponding is an NFT, there is no guarantees that no other token with the * same id are not going to be minted. */ abstract contract ERC1155Supply is ERC1155 { mapping(uint256 => uint256) private _totalSupply; /** * @dev Total amount of tokens in with a given id. */ function totalSupply(uint256 id) public view virtual returns (uint256) { return _totalSupply[id]; } /** * @dev Indicates weither any token exist with a given id, or not. */ function exists(uint256 id) public view virtual returns (bool) { return ERC1155Supply.totalSupply(id) > 0; } /** * @dev See {ERC1155-_mint}. */ function _mint( address account, uint256 id, uint256 amount, bytes memory data ) internal virtual override { super._mint(account, id, amount, data); _totalSupply[id] += amount; } /** * @dev See {ERC1155-_mintBatch}. */ function _mintBatch( address to, uint256[] memory ids, uint256[] memory amounts, bytes memory data ) internal virtual override { super._mintBatch(to, ids, amounts, data); for (uint256 i = 0; i < ids.length; ++i) { _totalSupply[ids[i]] += amounts[i]; } } /** * @dev See {ERC1155-_burn}. */ function _burn( address account, uint256 id, uint256 amount ) internal virtual override { super._burn(account, id, amount); _totalSupply[id] -= amount; } /** * @dev See {ERC1155-_burnBatch}. */ function _burnBatch( address account, uint256[] memory ids, uint256[] memory amounts ) internal virtual override { super._burnBatch(account, ids, amounts); for (uint256 i = 0; i < ids.length; ++i) { _totalSupply[ids[i]] -= amounts[i]; } } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; /** * @dev Provides information about the current execution context, including the * sender of the transaction and its data. While these are generally available * via msg.sender and msg.data, they should not be accessed in such a direct * manner, since when dealing with meta-transactions the account sending and * paying for execution may not be the actual sender (as far as an application * is concerned). * * This contract is only required for intermediate, library-like contracts. */ abstract contract Context { function _msgSender() internal view virtual returns (address) { return msg.sender; } function _msgData() internal view virtual returns (bytes calldata) { return msg.data; } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; 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 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 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 pragma solidity ^0.8.0; /** * @dev Collection of functions related to the address type */ library Address { /** * @dev Returns true if `account` is a contract. * * [IMPORTANT] * ==== * It is unsafe to assume that an address for which this function returns * false is an externally-owned account (EOA) and not a contract. * * Among others, `isContract` will return false for the following * types of addresses: * * - an externally-owned account * - a contract in construction * - an address where a contract will be created * - an address where a contract lived, but was destroyed * ==== */ function isContract(address account) internal view returns (bool) { // This method relies on extcodesize, which returns 0 for contracts in // construction, since the code is only stored at the end of the // constructor execution. uint256 size; assembly { size := extcodesize(account) } return size > 0; } /** * @dev Replacement for Solidity's `transfer`: sends `amount` wei to * `recipient`, forwarding all available gas and reverting on errors. * * https://eips.ethereum.org/EIPS/eip-1884[EIP1884] increases the gas cost * of certain opcodes, possibly making contracts go over the 2300 gas limit * imposed by `transfer`, making them unable to receive funds via * `transfer`. {sendValue} removes this limitation. * * https://diligence.consensys.net/posts/2019/09/stop-using-soliditys-transfer-now/[Learn more]. * * IMPORTANT: because control is transferred to `recipient`, care must be * taken to not create reentrancy vulnerabilities. Consider using * {ReentrancyGuard} or the * https://solidity.readthedocs.io/en/v0.5.11/security-considerations.html#use-the-checks-effects-interactions-pattern[checks-effects-interactions pattern]. */ function sendValue(address payable recipient, uint256 amount) internal { require(address(this).balance >= amount, "Address: insufficient balance"); (bool success, ) = recipient.call{value: amount}(""); require(success, "Address: unable to send value, recipient may have reverted"); } /** * @dev Performs a Solidity function call using a low level `call`. A * plain `call` is an unsafe replacement for a function call: use this * function instead. * * If `target` reverts with a revert reason, it is bubbled up by this * function (like regular Solidity function calls). * * Returns the raw returned data. To convert to the expected return value, * use https://solidity.readthedocs.io/en/latest/units-and-global-variables.html?highlight=abi.decode#abi-encoding-and-decoding-functions[`abi.decode`]. * * Requirements: * * - `target` must be a contract. * - calling `target` with `data` must not revert. * * _Available since v3.1._ */ function functionCall(address target, bytes memory data) internal returns (bytes memory) { return functionCall(target, data, "Address: low-level call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], but with * `errorMessage` as a fallback revert reason when `target` reverts. * * _Available since v3.1._ */ function functionCall( address target, bytes memory data, string memory errorMessage ) internal returns (bytes memory) { return functionCallWithValue(target, data, 0, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but also transferring `value` wei to `target`. * * Requirements: * * - the calling contract must have an ETH balance of at least `value`. * - the called Solidity function must be `payable`. * * _Available since v3.1._ */ function functionCallWithValue( address target, bytes memory data, uint256 value ) internal returns (bytes memory) { return functionCallWithValue(target, data, value, "Address: low-level call with value failed"); } /** * @dev Same as {xref-Address-functionCallWithValue-address-bytes-uint256-}[`functionCallWithValue`], but * with `errorMessage` as a fallback revert reason when `target` reverts. * * _Available since v3.1._ */ function functionCallWithValue( address target, bytes memory data, uint256 value, string memory errorMessage ) internal returns (bytes memory) { require(address(this).balance >= value, "Address: insufficient balance for call"); require(isContract(target), "Address: call to non-contract"); (bool success, bytes memory returndata) = target.call{value: value}(data); return verifyCallResult(success, returndata, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but performing a static call. * * _Available since v3.3._ */ function functionStaticCall(address target, bytes memory data) internal view returns (bytes memory) { return functionStaticCall(target, data, "Address: low-level static call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`], * but performing a static call. * * _Available since v3.3._ */ function functionStaticCall( address target, bytes memory data, string memory errorMessage ) internal view returns (bytes memory) { require(isContract(target), "Address: static call to non-contract"); (bool success, bytes memory returndata) = target.staticcall(data); return verifyCallResult(success, returndata, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but performing a delegate call. * * _Available since v3.4._ */ function functionDelegateCall(address target, bytes memory data) internal returns (bytes memory) { return functionDelegateCall(target, data, "Address: low-level delegate call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`], * but performing a delegate call. * * _Available since v3.4._ */ function functionDelegateCall( address target, bytes memory data, string memory errorMessage ) internal returns (bytes memory) { require(isContract(target), "Address: delegate call to non-contract"); (bool success, bytes memory returndata) = target.delegatecall(data); return verifyCallResult(success, returndata, errorMessage); } /** * @dev Tool to verifies that a low level call was successful, and revert if it wasn't, either by bubbling the * revert reason using the provided one. * * _Available since v4.3._ */ function verifyCallResult( bool success, bytes memory returndata, string memory errorMessage ) internal pure returns (bytes memory) { if (success) { return returndata; } else { // Look for revert reason and bubble it up if present if (returndata.length > 0) { // The easiest way to bubble the revert reason is using memory via assembly assembly { let returndata_size := mload(returndata) revert(add(32, returndata), returndata_size) } } else { revert(errorMessage); } } } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import "./IERC165.sol"; /** * @dev Implementation of the {IERC165} interface. * * Contracts that want to implement ERC165 should inherit from this contract and override {supportsInterface} to check * for the additional interface id that will be supported. For example: * * ```solidity * function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) { * return interfaceId == type(MyInterface).interfaceId || super.supportsInterface(interfaceId); * } * ``` * * Alternatively, {ERC165Storage} provides an easier to use but more expensive implementation. */ abstract contract ERC165 is IERC165 { /** * @dev See {IERC165-supportsInterface}. */ function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) { return interfaceId == type(IERC165).interfaceId; } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; /** * @dev Interface of the ERC165 standard, as defined in the * https://eips.ethereum.org/EIPS/eip-165[EIP]. * * Implementers can declare support of contract interfaces, which can then be * queried by others ({ERC165Checker}). * * For an implementation, see {ERC165}. */ interface IERC165 { /** * @dev Returns true if this contract implements the interface defined by * `interfaceId`. See the corresponding * https://eips.ethereum.org/EIPS/eip-165#how-interfaces-are-identified[EIP section] * to learn more about how these ids are created. * * This function call must use less than 30 000 gas. */ function supportsInterface(bytes4 interfaceId) external view returns (bool); }
{ "optimizer": { "enabled": true, "runs": 200 }, "outputSelection": { "*": { "*": [ "evm.bytecode", "evm.deployedBytecode", "devdoc", "userdoc", "metadata", "abi" ] } }, "metadata": { "useLiteralContent": true }, "libraries": {} }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"inputs":[{"internalType":"string","name":"_uri","type":"string"},{"internalType":"contract IERC20","name":"_weth","type":"address"}],"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":"address","name":"account","type":"address"},{"indexed":true,"internalType":"address","name":"sender","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"BuyTicket","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"account","type":"address"}],"name":"ClaimTicket","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"account","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"ReserveTickets","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"start","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"end","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"supply","type":"uint256"}],"name":"SetupRelease","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":"available","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","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":"buyPrice","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"numberOfTokens","type":"uint256"}],"name":"buyTicket","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"claimTicket","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"claimsPerAddr","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"curMaxSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"id","type":"uint256"}],"name":"exists","outputs":[{"internalType":"bool","name":"","type":"bool"}],"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":"maxClaimsPerAddr","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"maxMintsPerAddr","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"maxSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"mintsPerAddr","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"releaseDuration","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"releaseEnd","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"releaseMaxSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"releaseMinted","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"releaseStart","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"reserveAmount","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"reserveMaxAmount","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"numberOfTokens","type":"uint256"}],"name":"reserveTickets","outputs":[],"stateMutability":"nonpayable","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":"uint256","name":"_buyPrice","type":"uint256"}],"name":"setBuyPrice","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"newURI","type":"string"}],"name":"setURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_releaseStart","type":"uint256"},{"internalType":"uint256","name":"_releaseEnd","type":"uint256"},{"internalType":"uint256","name":"_releaseMaxSupply","type":"uint256"}],"name":"setupRelease","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes4","name":"interfaceId","type":"bytes4"}],"name":"supportsInterface","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"ticketBalanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"tokenID","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"id","type":"uint256"}],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalTicketSupply","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":"_id","type":"uint256"}],"name":"uri","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"weth","outputs":[{"internalType":"contract IERC20","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"withdrawWETH","outputs":[],"stateMutability":"nonpayable","type":"function"}]
Contract Creation Code
60a0604052662386f26fc100006007556103e86008553480156200002257600080fd5b5060405162002cdb38038062002cdb83398101604081905262000045916200022e565b816200005181620000ea565b506200005d3362000103565b6001600160a01b0381166080526040805180820190915260138082527f4c434120426f617264696e6720506173736573000000000000000000000000006020909201918252620000b09160059162000155565b50604080518082019091526007808252664c43415041535360c81b6020909201918252620000e19160069162000155565b5050506200035c565b8051620000ff90600290602084019062000155565b5050565b600480546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b82805462000163906200031f565b90600052602060002090601f016020900481019282620001875760008555620001d2565b82601f10620001a257805160ff1916838001178555620001d2565b82800160010185558215620001d2579182015b82811115620001d2578251825591602001919060010190620001b5565b50620001e0929150620001e4565b5090565b5b80821115620001e05760008155600101620001e5565b634e487b7160e01b600052604160045260246000fd5b80516001600160a01b03811681146200022957600080fd5b919050565b600080604083850312156200024257600080fd5b82516001600160401b03808211156200025a57600080fd5b818501915085601f8301126200026f57600080fd5b815181811115620002845762000284620001fb565b604051601f8201601f19908116603f01168101908382118183101715620002af57620002af620001fb565b81604052828152602093508884848701011115620002cc57600080fd5b600091505b82821015620002f05784820184015181830185015290830190620002d1565b82821115620003025760008484830101525b95506200031491505085820162000211565b925050509250929050565b600181811c908216806200033457607f821691505b602082108114156200035657634e487b7160e01b600052602260045260246000fd5b50919050565b60805161294e6200038d6000396000818161035401528181610aa001528181610b150152610dc6015261294e6000f3fe608060405234801561001057600080fd5b50600436106102525760003560e01c80636b49e5f911610146578063a22cb465116100c3578063cd34f0ee11610087578063cd34f0ee14610503578063d5abeb011461050c578063e985e9c514610515578063f242432a14610551578063f2fde38b14610564578063f9b418911461057757600080fd5b8063a22cb465146104a0578063a5c42ef1146104b3578063ab8caf3b146104bb578063bd85b039146104c3578063c4d2696d146104e357600080fd5b80638bf22a0e1161010a5780638bf22a0e146104635780638da5cb5b1461046c57806393e0682b1461047d57806395d89b41146104905780639c84e6f21461049857600080fd5b80636b49e5f914610437578063715018a614610440578063766e33f4146104485780638033fe49146104515780638620410b1461045a57600080fd5b80633fc8cef3116101d45780634e1273f4116101985780634e1273f4146103c75780634f558e79146103e757806356ce0f671461040957806363ae8d6c1461041157806366a5ef2f1461042457600080fd5b80633fc8cef31461034f57806344098c9f1461038e57806348a0d754146103ae5780634b09b72a146103b65780634c02f62e146103bf57600080fd5b80630e89341c1161021b5780630e89341c146102dd5780631966ebb8146102f05780632240dbdb146102f95780632c4e422d146103295780632eb2c2d61461033c57600080fd5b8062fdd58e1461025757806301ffc9a71461027d57806302fe5305146102a057806306fdde03146102b55780630e75822c146102ca575b600080fd5b61026a610265366004611f89565b610580565b6040519081526020015b60405180910390f35b61029061028b366004611fc9565b610617565b6040519015158152602001610274565b6102b36102ae366004612087565b610669565b005b6102bd6106d8565b6040516102749190612130565b6102b36102d8366004611f89565b610766565b6102bd6102eb366004612143565b6108b4565b61026a600f5481565b6000805260036020527f3617319a054d772f909f7c479a2cebe5066e836a939412e32403c99029b92eff5461026a565b61026a61033736600461215c565b610925565b6102b361034a36600461222c565b610932565b6103767f000000000000000000000000000000000000000000000000000000000000000081565b6040516001600160a01b039091168152602001610274565b61026a61039c36600461215c565b60106020526000908152604090205481565b61026a6109c9565b61026a60095481565b6102b3610a53565b6103da6103d53660046122d6565b610b3e565b60405161027491906123dc565b6102906103f5366004612143565b600090815260036020526040902054151590565b61026a600181565b6102b361041f366004612143565b610c68565b6102b3610432366004611f89565b610c97565b61026a600d5481565b6102b3610e3d565b61026a600a5481565b61026a600b5481565b61026a60075481565b61026a60085481565b6004546001600160a01b0316610376565b6102b361048b3660046123ef565b610e71565b6102bd610fe7565b6102b3610ff4565b6102b36104ae366004612429565b6111e1565b61026a600081565b61026a600581565b61026a6104d1366004612143565b60009081526003602052604090205490565b61026a6104f136600461215c565b60116020526000908152604090205481565b61026a600e5481565b61026a61271081565b610290610523366004612460565b6001600160a01b03918216600090815260016020908152604080832093909416825291909152205460ff1690565b6102b361055f366004612493565b6112b8565b6102b361057236600461215c565b61133f565b61026a600c5481565b60006001600160a01b0383166105f15760405162461bcd60e51b815260206004820152602b60248201527f455243313135353a2062616c616e636520717565727920666f7220746865207a60448201526a65726f206164647265737360a81b60648201526084015b60405180910390fd5b506000908152602081815260408083206001600160a01b03949094168352929052205490565b60006001600160e01b03198216636cdb3d1360e11b148061064857506001600160e01b031982166303a24d0760e21b145b8061066357506301ffc9a760e01b6001600160e01b03198316145b92915050565b6004546001600160a01b031633146106935760405162461bcd60e51b81526004016105e8906124f8565b61069c816113da565b60007f6bb7ff708619ba0610cba295a58592e0451dee2622938c8755667688daf3529b826040516106cd9190612130565b60405180910390a250565b600580546106e59061252d565b80601f01602080910402602001604051908101604052809291908181526020018280546107119061252d565b801561075e5780601f106107335761010080835404028352916020019161075e565b820191906000526020600020905b81548152906001019060200180831161074157829003601f168201915b505050505081565b6004546001600160a01b031633146107905760405162461bcd60e51b81526004016105e8906124f8565b61271081600f546107a1919061257e565b11156107bf5760405162461bcd60e51b81526004016105e890612596565b600854816009546107d0919061257e565b11156108325760405162461bcd60e51b815260206004820152602b60248201527f4d696e7420776f756c64206578656564206d617820616c6c6f7765642072657360448201526a195c9d9948185b5bdd5b9d60aa1b60648201526084016105e8565b80600f6000828254610844919061257e565b92505081905550806009600082825461085d919061257e565b9091555061086d905082826113f1565b816001600160a01b03167fdc1be2b3178a4f8f792d301d58c67ced5cf041ef7c9601aaedbd3ccf3957ddc3826040516108a891815260200190565b60405180910390a25050565b6060811561091c5760405162461bcd60e51b815260206004820152602f60248201527f4552433732314d657461646174613a2055524920717565727920666f72206e6f60448201526e3732bc34b9ba32b73a103a37b5b2b760891b60648201526084016105e8565b6106638261140d565b6000610663826000610580565b6001600160a01b03851633148061094e575061094e8533610523565b6109b55760405162461bcd60e51b815260206004820152603260248201527f455243313135353a207472616e736665722063616c6c6572206973206e6f74206044820152711bdddb995c881b9bdc88185c1c1c9bdd995960721b60648201526084016105e8565b6109c285858585856114a1565b5050505050565b600080600e54600d546109dc91906125dd565b9050600a544210156109f057600091505090565b600b544211156109ff57919050565b6000600c54600a5442610a1291906125dd565b600d54610a1f91906125f4565b610a299190612613565b9050600e548111610a3b576000610a48565b600e54610a4890826125dd565b9250505090565b5090565b6004546001600160a01b03163314610a7d5760405162461bcd60e51b81526004016105e8906124f8565b6040516370a0823160e01b8152306004820152610b3c9033906001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016906370a0823190602401602060405180830381865afa158015610ae7573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610b0b9190612635565b6001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016919061167e565b565b60608151835114610ba35760405162461bcd60e51b815260206004820152602960248201527f455243313135353a206163636f756e747320616e6420696473206c656e677468604482015268040dad2e6dac2e8c6d60bb1b60648201526084016105e8565b6000835167ffffffffffffffff811115610bbf57610bbf611fe6565b604051908082528060200260200182016040528015610be8578160200160208202803683370190505b50905060005b8451811015610c6057610c33858281518110610c0c57610c0c61264e565b6020026020010151858381518110610c2657610c2661264e565b6020026020010151610580565b828281518110610c4557610c4561264e565b6020908102919091010152610c5981612664565b9050610bee565b509392505050565b6004546001600160a01b03163314610c925760405162461bcd60e51b81526004016105e8906124f8565b600755565b333214610cd55760405162461bcd60e51b815260206004820152600c60248201526b4d7573742075736520454f4160a01b60448201526064016105e8565b6001600160a01b038216600090815260106020526040902054600590610cfc90839061257e565b1115610d4a5760405162461bcd60e51b815260206004820152601e60248201527f4d6178206d696e7473207065722061646472657373206578636565646564000060448201526064016105e8565b600f5481610d7f6000805260036020527f3617319a054d772f909f7c479a2cebe5066e836a939412e32403c99029b92eff5490565b610d89919061257e565b1115610da75760405162461bcd60e51b81526004016105e890612596565b600060075482610db791906125f4565b9050610dee6001600160a01b037f0000000000000000000000000000000000000000000000000000000000000000163330846116e6565b610df88383611724565b60405182815233906001600160a01b038516907f183b7d2009bd295f45618f67543e0ff22bd119ab0449f00482d31b796b1707869060200160405180910390a3505050565b6004546001600160a01b03163314610e675760405162461bcd60e51b81526004016105e8906124f8565b610b3c6000611775565b6004546001600160a01b03163314610e9b5760405162461bcd60e51b81526004016105e8906124f8565b600b5442118015610eb15750610eaf6109c9565b155b610f075760405162461bcd60e51b815260206004820152602160248201527f50726576696f75732072656c65617365206973207374696c6c2072756e6e696e6044820152606760f81b60648201526084016105e8565b61271081600f54610f18919061257e565b1115610f665760405162461bcd60e51b815260206004820181905260248201527f496e636f72726563742072656c656173654d6178537570706c792076616c756560448201526064016105e8565b600a839055600b829055610f7a83836125dd565b600c55600d819055600f8054829190600090610f9790849061257e565b90915550506000600e5560408051848152602081018490529081018290527f161f863c66e922aa93d8c39fcabf4d758415785c253e261588ec6e5de68cb03a9060600160405180910390a1505050565b600680546106e59061252d565b3332146110325760405162461bcd60e51b815260206004820152600c60248201526b4d7573742075736520454f4160a01b60448201526064016105e8565b336000908152601160205260409020546001116110915760405162461bcd60e51b815260206004820152601f60248201527f4d617820636c61696d732070657220616464726573732065786365656465640060448201526064016105e8565b336000908152601060205260409020546005116110f05760405162461bcd60e51b815260206004820152601e60248201527f4d6178206d696e7473207065722061646472657373206578636565646564000060448201526064016105e8565b600f546000805260036020527f3617319a054d772f909f7c479a2cebe5066e836a939412e32403c99029b92eff541061113b5760405162461bcd60e51b81526004016105e890612596565b60006111456109c9565b116111895760405162461bcd60e51b81526020600482015260146024820152734e6f207469636b65747320617661696c61626c6560601b60448201526064016105e8565b3360009081526011602052604081208054916111a483612664565b91905055506111b4336001611724565b60405133907f1b95c0400d5c41a0ede89b5c1e59863547019bfb3ec7c4d321f59262fcc6c79890600090a2565b336001600160a01b038316141561124c5760405162461bcd60e51b815260206004820152602960248201527f455243313135353a2073657474696e6720617070726f76616c20737461747573604482015268103337b91039b2b63360b91b60648201526084016105e8565b3360008181526001602090815260408083206001600160a01b03871680855290835292819020805460ff191686151590811790915590519081529192917f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a35050565b6001600160a01b0385163314806112d457506112d48533610523565b6113325760405162461bcd60e51b815260206004820152602960248201527f455243313135353a2063616c6c6572206973206e6f74206f776e6572206e6f7260448201526808185c1c1c9bdd995960ba1b60648201526084016105e8565b6109c285858585856117c7565b6004546001600160a01b031633146113695760405162461bcd60e51b81526004016105e8906124f8565b6001600160a01b0381166113ce5760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b60648201526084016105e8565b6113d781611775565b50565b80516113ed906002906020840190611edd565b5050565b6113ed82600083604051806020016040528060008152506118ed565b60606002805461141c9061252d565b80601f01602080910402602001604051908101604052809291908181526020018280546114489061252d565b80156114955780601f1061146a57610100808354040283529160200191611495565b820191906000526020600020905b81548152906001019060200180831161147857829003601f168201915b50505050509050919050565b81518351146115035760405162461bcd60e51b815260206004820152602860248201527f455243313135353a2069647320616e6420616d6f756e7473206c656e677468206044820152670dad2e6dac2e8c6d60c31b60648201526084016105e8565b6001600160a01b0384166115295760405162461bcd60e51b81526004016105e89061267f565b3360005b845181101561161057600085828151811061154a5761154a61264e565b6020026020010151905060008583815181106115685761156861264e565b602090810291909101810151600084815280835260408082206001600160a01b038e1683529093529190912054909150818110156115b85760405162461bcd60e51b81526004016105e8906126c4565b6000838152602081815260408083206001600160a01b038e8116855292528083208585039055908b168252812080548492906115f590849061257e565b925050819055505050508061160990612664565b905061152d565b50846001600160a01b0316866001600160a01b0316826001600160a01b03167f4a39dc06d4c0dbc64b70af90fd698a233a518aa5d07e595d983b8c0526c8f7fb878760405161166092919061270e565b60405180910390a46116768187878787876118f9565b505050505050565b6040516001600160a01b0383166024820152604481018290526116e190849063a9059cbb60e01b906064015b60408051601f198184030181529190526020810180516001600160e01b03166001600160e01b031990931692909217909152611a55565b505050565b6040516001600160a01b038085166024830152831660448201526064810182905261171e9085906323b872dd60e01b906084016116aa565b50505050565b6001600160a01b0382166000908152601060205260408120805483929061174c90849061257e565b9250508190555080600e6000828254611765919061257e565b909155506113ed905082826113f1565b600480546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b6001600160a01b0384166117ed5760405162461bcd60e51b81526004016105e89061267f565b336118068187876117fd88611b27565b6109c288611b27565b6000848152602081815260408083206001600160a01b038a168452909152902054838110156118475760405162461bcd60e51b81526004016105e8906126c4565b6000858152602081815260408083206001600160a01b038b811685529252808320878503905590881682528120805486929061188490849061257e565b909155505060408051868152602081018690526001600160a01b03808916928a821692918616917fc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f62910160405180910390a46118e4828888888888611b72565b50505050505050565b61171e84848484611c2d565b6001600160a01b0384163b156116765760405163bc197c8160e01b81526001600160a01b0385169063bc197c819061193d908990899088908890889060040161273c565b6020604051808303816000875af1925050508015611978575060408051601f3d908101601f191682019092526119759181019061279a565b60015b611a25576119846127b7565b806308c379a014156119be57506119996127d3565b806119a457506119c0565b8060405162461bcd60e51b81526004016105e89190612130565b505b60405162461bcd60e51b815260206004820152603460248201527f455243313135353a207472616e7366657220746f206e6f6e20455243313135356044820152732932b1b2b4bb32b91034b6b83632b6b2b73a32b960611b60648201526084016105e8565b6001600160e01b0319811663bc197c8160e01b146118e45760405162461bcd60e51b81526004016105e89061285d565b6000611aaa826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564815250856001600160a01b0316611c629092919063ffffffff16565b8051909150156116e15780806020019051810190611ac891906128a5565b6116e15760405162461bcd60e51b815260206004820152602a60248201527f5361666545524332303a204552433230206f7065726174696f6e20646964206e6044820152691bdd081cdd58d8d9595960b21b60648201526084016105e8565b60408051600180825281830190925260609160009190602080830190803683370190505090508281600081518110611b6157611b6161264e565b602090810291909101015292915050565b6001600160a01b0384163b156116765760405163f23a6e6160e01b81526001600160a01b0385169063f23a6e6190611bb690899089908890889088906004016128c2565b6020604051808303816000875af1925050508015611bf1575060408051601f3d908101601f19168201909252611bee9181019061279a565b60015b611bfd576119846127b7565b6001600160e01b0319811663f23a6e6160e01b146118e45760405162461bcd60e51b81526004016105e89061285d565b611c3984848484611c7b565b60008381526003602052604081208054849290611c5790849061257e565b909155505050505050565b6060611c718484600085611d7c565b90505b9392505050565b6001600160a01b038416611cdb5760405162461bcd60e51b815260206004820152602160248201527f455243313135353a206d696e7420746f20746865207a65726f206164647265736044820152607360f81b60648201526084016105e8565b33611cec816000876117fd88611b27565b6000848152602081815260408083206001600160a01b038916845290915281208054859290611d1c90849061257e565b909155505060408051858152602081018590526001600160a01b0380881692600092918516917fc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f62910160405180910390a46109c281600087878787611b72565b606082471015611ddd5760405162461bcd60e51b815260206004820152602660248201527f416464726573733a20696e73756666696369656e742062616c616e636520666f6044820152651c8818d85b1b60d21b60648201526084016105e8565b843b611e2b5760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e747261637400000060448201526064016105e8565b600080866001600160a01b03168587604051611e4791906128fc565b60006040518083038185875af1925050503d8060008114611e84576040519150601f19603f3d011682016040523d82523d6000602084013e611e89565b606091505b5091509150611e99828286611ea4565b979650505050505050565b60608315611eb3575081611c74565b825115611ec35782518084602001fd5b8160405162461bcd60e51b81526004016105e89190612130565b828054611ee99061252d565b90600052602060002090601f016020900481019282611f0b5760008555611f51565b82601f10611f2457805160ff1916838001178555611f51565b82800160010185558215611f51579182015b82811115611f51578251825591602001919060010190611f36565b50610a4f9291505b80821115610a4f5760008155600101611f59565b80356001600160a01b0381168114611f8457600080fd5b919050565b60008060408385031215611f9c57600080fd5b611fa583611f6d565b946020939093013593505050565b6001600160e01b0319811681146113d757600080fd5b600060208284031215611fdb57600080fd5b8135611c7481611fb3565b634e487b7160e01b600052604160045260246000fd5b601f8201601f1916810167ffffffffffffffff8111828210171561202257612022611fe6565b6040525050565b600067ffffffffffffffff83111561204357612043611fe6565b60405161205a601f8501601f191660200182611ffc565b80915083815284848401111561206f57600080fd5b83836020830137600060208583010152509392505050565b60006020828403121561209957600080fd5b813567ffffffffffffffff8111156120b057600080fd5b8201601f810184136120c157600080fd5b6120d084823560208401612029565b949350505050565b60005b838110156120f35781810151838201526020016120db565b8381111561171e5750506000910152565b6000815180845261211c8160208601602086016120d8565b601f01601f19169290920160200192915050565b602081526000611c746020830184612104565b60006020828403121561215557600080fd5b5035919050565b60006020828403121561216e57600080fd5b611c7482611f6d565b600067ffffffffffffffff82111561219157612191611fe6565b5060051b60200190565b600082601f8301126121ac57600080fd5b813560206121b982612177565b6040516121c68282611ffc565b83815260059390931b85018201928281019150868411156121e657600080fd5b8286015b8481101561220157803583529183019183016121ea565b509695505050505050565b600082601f83011261221d57600080fd5b611c7483833560208501612029565b600080600080600060a0868803121561224457600080fd5b61224d86611f6d565b945061225b60208701611f6d565b9350604086013567ffffffffffffffff8082111561227857600080fd5b61228489838a0161219b565b9450606088013591508082111561229a57600080fd5b6122a689838a0161219b565b935060808801359150808211156122bc57600080fd5b506122c98882890161220c565b9150509295509295909350565b600080604083850312156122e957600080fd5b823567ffffffffffffffff8082111561230157600080fd5b818501915085601f83011261231557600080fd5b8135602061232282612177565b60405161232f8282611ffc565b83815260059390931b850182019282810191508984111561234f57600080fd5b948201945b838610156123745761236586611f6d565b82529482019490820190612354565b9650508601359250508082111561238a57600080fd5b506123978582860161219b565b9150509250929050565b600081518084526020808501945080840160005b838110156123d1578151875295820195908201906001016123b5565b509495945050505050565b602081526000611c7460208301846123a1565b60008060006060848603121561240457600080fd5b505081359360208301359350604090920135919050565b80151581146113d757600080fd5b6000806040838503121561243c57600080fd5b61244583611f6d565b915060208301356124558161241b565b809150509250929050565b6000806040838503121561247357600080fd5b61247c83611f6d565b915061248a60208401611f6d565b90509250929050565b600080600080600060a086880312156124ab57600080fd5b6124b486611f6d565b94506124c260208701611f6d565b93506040860135925060608601359150608086013567ffffffffffffffff8111156124ec57600080fd5b6122c98882890161220c565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b600181811c9082168061254157607f821691505b6020821081141561256257634e487b7160e01b600052602260045260246000fd5b50919050565b634e487b7160e01b600052601160045260246000fd5b6000821982111561259157612591612568565b500190565b60208082526027908201527f4d696e7420776f756c6420657863656564206d617820737570706c79206f66206040820152665469636b65747360c81b606082015260800190565b6000828210156125ef576125ef612568565b500390565b600081600019048311821515161561260e5761260e612568565b500290565b60008261263057634e487b7160e01b600052601260045260246000fd5b500490565b60006020828403121561264757600080fd5b5051919050565b634e487b7160e01b600052603260045260246000fd5b600060001982141561267857612678612568565b5060010190565b60208082526025908201527f455243313135353a207472616e7366657220746f20746865207a65726f206164604082015264647265737360d81b606082015260800190565b6020808252602a908201527f455243313135353a20696e73756666696369656e742062616c616e636520666f60408201526939103a3930b739b332b960b11b606082015260800190565b60408152600061272160408301856123a1565b828103602084015261273381856123a1565b95945050505050565b6001600160a01b0386811682528516602082015260a060408201819052600090612768908301866123a1565b828103606084015261277a81866123a1565b9050828103608084015261278e8185612104565b98975050505050505050565b6000602082840312156127ac57600080fd5b8151611c7481611fb3565b600060033d11156127d05760046000803e5060005160e01c5b90565b600060443d10156127e15790565b6040516003193d81016004833e81513d67ffffffffffffffff816024840111818411171561281157505050505090565b82850191508151818111156128295750505050505090565b843d87010160208285010111156128435750505050505090565b61285260208286010187611ffc565b509095945050505050565b60208082526028908201527f455243313135353a204552433131353552656365697665722072656a656374656040820152676420746f6b656e7360c01b606082015260800190565b6000602082840312156128b757600080fd5b8151611c748161241b565b6001600160a01b03868116825285166020820152604081018490526060810183905260a060808201819052600090611e9990830184612104565b6000825161290e8184602087016120d8565b919091019291505056fea264697066735822122090aa5f05191394daaf2991ccb058bfa6db8fda8593723e29e2182914bcf9aa3164736f6c634300080a003300000000000000000000000000000000000000000000000000000000000000400000000000000000000000007ceb23fd6bc0add59e62ac25578270cff1b9f6190000000000000000000000000000000000000000000000000000000000000035697066733a2f2f516d563935517575557834666f6268677976684b5054687733574637656631324b5553634568486175654473584d0000000000000000000000
Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)
00000000000000000000000000000000000000000000000000000000000000400000000000000000000000007ceb23fd6bc0add59e62ac25578270cff1b9f6190000000000000000000000000000000000000000000000000000000000000035697066733a2f2f516d563935517575557834666f6268677976684b5054687733574637656631324b5553634568486175654473584d0000000000000000000000
-----Decoded View---------------
Arg [0] : _uri (string): ipfs://QmV95QuuUx4fobhgyvhKPThw3WF7ef12KUScEhHaueDsXM
Arg [1] : _weth (address): 0x7ceb23fd6bc0add59e62ac25578270cff1b9f619
-----Encoded View---------------
5 Constructor Arguments found :
Arg [0] : 0000000000000000000000000000000000000000000000000000000000000040
Arg [1] : 0000000000000000000000007ceb23fd6bc0add59e62ac25578270cff1b9f619
Arg [2] : 0000000000000000000000000000000000000000000000000000000000000035
Arg [3] : 697066733a2f2f516d563935517575557834666f6268677976684b5054687733
Arg [4] : 574637656631324b5553634568486175654473584d0000000000000000000000
Age | Block | Fee Address | BC Fee Address | Voting Power | Jailed | Incoming |
---|
Make sure to use the "Vote Down" button for any spammy posts, and the "Vote Up" for interesting conversations.