Feature Tip: Add private address tag to any address under My Name Tag !
ERC-1155
NFT
Overview
Max Total Supply
7,570
Holders
3,814
Market
Volume (24H)
0.3476 ETH
Min Price (24H)
$93.48 @ 0.029900 ETH
Max Price (24H)
$156.33 @ 0.050000 ETH
Other Info
Token Contract
Loading...
Loading
Loading...
Loading
Loading...
Loading
# | Exchange | Pair | Price | 24H Volume | % Volume |
---|
Contract Name:
PortalNft
Compiler Version
v0.8.0+commit.c7dfd78e
Optimization Enabled:
Yes with 1000 runs
Other Settings:
default evmVersion
Contract Source Code (Solidity Standard Json-Input format)
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; /* * @title ERC1155 token for The Nifty Portal * @author NFTNick.eth */ //////////////////////////////////////////////////////////////////////////// // // // ________ ___ ________ _________ ___ ___ // // |\ ___ \|\ \|\ _____\\___ ___\ |\ \ / /| // // \ \ \\ \ \ \ \ \ \__/\|___ \ \_| \ \ \/ / / // // \ \ \\ \ \ \ \ \ __\ \ \ \ \ \ / / // // \ \ \\ \ \ \ \ \ \_| \ \ \ \/ / / // // \ \__\\ \__\ \__\ \__\ \ \__\__/ / / // // \|__| \|__|\|__|\|__| \|__|\___/ / // // \|___|/ // // ________ ________ ________ _________ ________ ___ // // |\ __ \|\ __ \|\ __ \|\___ ___\\ __ \|\ \ // // \ \ \|\ \ \ \|\ \ \ \|\ \|___ \ \_\ \ \|\ \ \ \ // // \ \ ____\ \ \\\ \ \ _ _\ \ \ \ \ \ __ \ \ \ // // \ \ \___|\ \ \\\ \ \ \\ \| \ \ \ \ \ \ \ \ \ \____ // // \ \__\ \ \_______\ \__\\ _\ \ \__\ \ \__\ \__\ \_______\ // // \|__| \|_______|\|__|\|__| \|__| \|__|\|__|\|_______| // // // //////////////////////////////////////////////////////////////////////////// import './utils/ERC1155Bouncer.sol'; // Set up a bouncer at the Portal door for those VIPs! contract PortalNft is ERC1155Bouncer { uint public activelyMintingNft = 0; uint256 public maxSupply = 7777; uint256 public mintPrice = 0.069 ether; // 420 uint public publicMintLimit = 3; uint256 public publicMintTime = 1642431600; // Bouncer that only let's in pre-approved members string private constant SIGNING_DOMAIN = "TheNifty"; string private constant SIGNATURE_VERSION = "1"; // Caps on mints mapping(uint256 => mapping(address => uint256)) public premintTxs; mapping(uint256 => mapping(address => uint256)) public publicTxs; event Printed(uint256 indexed index, address indexed account, uint256 amount); constructor( string memory _name, string memory _symbol, string memory _uri ) ERC1155(_uri) EIP712(SIGNING_DOMAIN, SIGNATURE_VERSION) { name_ = _name; symbol_ = _symbol; // Send community & team NFTs to The Nifty NFT wallet _mint(0xb75D95FB8bC0FC8e156a8fd1d9669be94160c11F, 0, 100, ""); } /** * @notice withdraw balance * * @param _addr the address we are sending the CAYYYYYYUSH to */ function withdraw(address _addr) external onlyOwner { uint256 balance = address(this).balance; payable(_addr).transfer(balance); } /** * @notice edit the mint price * * @param _mintPrice the new price in wei */ function setPrice(uint256 _mintPrice) external onlyOwner { mintPrice = _mintPrice; } /** * @notice edit windows * * @param _publicMintTime UNIX timestamp for burn window opening time * @param _publicMintLimit The max number of NFTs public minters can mint per txn * @param _maxSupply The total number of NFTs that can be minted */ function editMintSettings( uint256 _publicMintTime, uint256 _publicMintLimit, uint256 _maxSupply ) external onlyOwner { publicMintTime = _publicMintTime; publicMintLimit = _publicMintLimit; maxSupply = _maxSupply; } /** * @notice change the mint phase * * @param _tokenId the new token that we're minting */ function setMintingToken(uint _tokenId) external onlyOwner { activelyMintingNft = _tokenId; } /** * @notice early minting * * @param voucher the voucher used to claim * @param numberOfTokens how many they'd like to mint */ function voucherMint(NFTVoucher calldata voucher, uint numberOfTokens) external payable whenNotPaused { require(premintTxs[activelyMintingNft][msg.sender] < 1 , "wallet mint limit"); address signer = _verify(voucher); require(hasRole(BOUNCER_ROLE, signer), "signature invalid"); require(numberOfTokens <= voucher.mintLimit, "invalid mint count"); require(msg.sender == voucher.minter, "invalid voucher"); require(totalSupply(activelyMintingNft) + numberOfTokens <= maxSupply, "supply exceeded"); require(block.timestamp >= voucher.start, "invalid mint time"); premintTxs[activelyMintingNft][msg.sender] += 1; _issuePortalPasses(numberOfTokens); } /** * @notice special minting method only for contract owner * * @param addr the address these should be minted to * @param numberOfTokens how many to mint */ function ownerMint(address addr, uint numberOfTokens) external onlyOwner { require(totalSupply(0) + numberOfTokens <= maxSupply, "Max supply reached"); _mint(addr, 0, numberOfTokens, ""); emit Printed(0, addr, numberOfTokens); } /** * @notice public mint phase * * @param numberOfTokens how many to mint */ function publicMint(uint numberOfTokens) external payable whenNotPaused { require(block.timestamp >= publicMintTime, "public mint closed"); require(publicTxs[activelyMintingNft][msg.sender] < 1 , "wallet mint limit"); require(numberOfTokens > 0 && numberOfTokens <= publicMintLimit, "exceeds max nfts per txn"); // Limited transactions per wallet on public mint publicTxs[activelyMintingNft][msg.sender] += 1; _issuePortalPasses(numberOfTokens); } /** * @notice global function for issuing the portal passes (the core minting function) * * @param amount the amount of tokens to mint */ function _issuePortalPasses(uint256 amount) private { require(totalSupply(0) + amount <= maxSupply, "Purchase: Max supply reached"); require(msg.value == amount * mintPrice, "Purchase: Incorrect payment"); _mint(msg.sender, 0, amount, ""); emit Printed(0, msg.sender, amount); } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import "@openzeppelin/contracts/token/ERC1155/ERC1155.sol"; import "@openzeppelin/contracts/utils/cryptography/ECDSA.sol"; import "@openzeppelin/contracts/utils/cryptography/draft-EIP712.sol"; import "@openzeppelin/contracts/access/AccessControl.sol"; import '@openzeppelin/contracts/token/ERC1155/extensions/ERC1155Supply.sol'; import '@openzeppelin/contracts/token/ERC1155/extensions/ERC1155Burnable.sol'; import '@openzeppelin/contracts/security/Pausable.sol'; import './OffchainBouncer.sol'; library OpenSeaGasFreeListing { /** @notice Returns whether the operator is an OpenSea proxy for the owner, thus allowing it to list without the token owner paying gas. @dev ERC{721,1155}.isApprovedForAll should be overriden to also check if this function returns true. */ function isApprovedForAll(address owner, address operator) internal view returns (bool) { OSProxy registry; assembly { switch chainid() case 1 { // mainnet registry := 0xa5409ec958c83c3f309868babaca7c86dcb077c1 } case 4 { // rinkeby registry := 0xf57b2c51ded3a29e6891aba85459d600256cf317 } } return address(registry) != address(0) && address(registry.proxies(owner)) == operator; } } contract OwnableDelegateProxy { } contract OSProxy { mapping(address => OwnableDelegateProxy) public proxies; } abstract contract ERC1155Bouncer is OffchainBouncer, ERC1155, ERC1155Supply, ERC1155Burnable, Pausable { string name_; string symbol_; function pause() external onlyOwner { _pause(); } function unpause() external onlyOwner { _unpause(); } /** * @notice change the base URI for the NFT * * @param baseURI the new NFT uri base */ function setURI(string memory baseURI) external onlyOwner { _setURI(baseURI); } /** * @notice returns the metadata uri for a given id * * @param _id the NFT to return metadata for */ function uri(uint256 _id) public view override returns (string memory) { require(exists(_id), "URI: nonexistent token"); return string(abi.encodePacked(super.uri(_id), Strings.toString(_id), ".json")); } // Required overrides function supportsInterface(bytes4 interfaceId) public view virtual override (AccessControl, ERC1155) returns (bool) { return ERC1155.supportsInterface(interfaceId) || AccessControl.supportsInterface(interfaceId); } function _beforeTokenTransfer( address operator, address from, address to, uint256[] memory ids, uint256[] memory amounts, bytes memory data ) internal virtual override(ERC1155, ERC1155Supply) { super._beforeTokenTransfer(operator, from, to, ids, amounts, data); } /** * OpenSea gas-free listings. */ function isApprovedForAll(address owner, address operator) public view override returns (bool) { return OpenSeaGasFreeListing.isApprovedForAll(owner, operator) || super.isApprovedForAll(owner, operator); } }
// 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 (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 (utils/cryptography/draft-EIP712.sol) pragma solidity ^0.8.0; import "./ECDSA.sol"; /** * @dev https://eips.ethereum.org/EIPS/eip-712[EIP 712] is a standard for hashing and signing of typed structured data. * * The encoding specified in the EIP is very generic, and such a generic implementation in Solidity is not feasible, * thus this contract does not implement the encoding itself. Protocols need to implement the type-specific encoding * they need in their contracts using a combination of `abi.encode` and `keccak256`. * * This contract implements the EIP 712 domain separator ({_domainSeparatorV4}) that is used as part of the encoding * scheme, and the final step of the encoding to obtain the message digest that is then signed via ECDSA * ({_hashTypedDataV4}). * * The implementation of the domain separator was designed to be as efficient as possible while still properly updating * the chain id to protect against replay attacks on an eventual fork of the chain. * * NOTE: This contract implements the version of the encoding known as "v4", as implemented by the JSON RPC method * https://docs.metamask.io/guide/signing-data.html[`eth_signTypedDataV4` in MetaMask]. * * _Available since v3.4._ */ abstract contract EIP712 { /* solhint-disable var-name-mixedcase */ // Cache the domain separator as an immutable value, but also store the chain id that it corresponds to, in order to // invalidate the cached domain separator if the chain id changes. bytes32 private immutable _CACHED_DOMAIN_SEPARATOR; uint256 private immutable _CACHED_CHAIN_ID; address private immutable _CACHED_THIS; bytes32 private immutable _HASHED_NAME; bytes32 private immutable _HASHED_VERSION; bytes32 private immutable _TYPE_HASH; /* solhint-enable var-name-mixedcase */ /** * @dev Initializes the domain separator and parameter caches. * * The meaning of `name` and `version` is specified in * https://eips.ethereum.org/EIPS/eip-712#definition-of-domainseparator[EIP 712]: * * - `name`: the user readable name of the signing domain, i.e. the name of the DApp or the protocol. * - `version`: the current major version of the signing domain. * * NOTE: These parameters cannot be changed except through a xref:learn::upgrading-smart-contracts.adoc[smart * contract upgrade]. */ constructor(string memory name, string memory version) { bytes32 hashedName = keccak256(bytes(name)); bytes32 hashedVersion = keccak256(bytes(version)); bytes32 typeHash = keccak256( "EIP712Domain(string name,string version,uint256 chainId,address verifyingContract)" ); _HASHED_NAME = hashedName; _HASHED_VERSION = hashedVersion; _CACHED_CHAIN_ID = block.chainid; _CACHED_DOMAIN_SEPARATOR = _buildDomainSeparator(typeHash, hashedName, hashedVersion); _CACHED_THIS = address(this); _TYPE_HASH = typeHash; } /** * @dev Returns the domain separator for the current chain. */ function _domainSeparatorV4() internal view returns (bytes32) { if (address(this) == _CACHED_THIS && block.chainid == _CACHED_CHAIN_ID) { return _CACHED_DOMAIN_SEPARATOR; } else { return _buildDomainSeparator(_TYPE_HASH, _HASHED_NAME, _HASHED_VERSION); } } function _buildDomainSeparator( bytes32 typeHash, bytes32 nameHash, bytes32 versionHash ) private view returns (bytes32) { return keccak256(abi.encode(typeHash, nameHash, versionHash, block.chainid, address(this))); } /** * @dev Given an already https://eips.ethereum.org/EIPS/eip-712#definition-of-hashstruct[hashed struct], this * function returns the hash of the fully encoded EIP712 message for this domain. * * This hash can be used together with {ECDSA-recover} to obtain the signer of a message. For example: * * ```solidity * bytes32 digest = _hashTypedDataV4(keccak256(abi.encode( * keccak256("Mail(address to,string contents)"), * mailTo, * keccak256(bytes(mailContents)) * ))); * address signer = ECDSA.recover(digest, signature); * ``` */ function _hashTypedDataV4(bytes32 structHash) internal view virtual returns (bytes32) { return ECDSA.toTypedDataHash(_domainSeparatorV4(), structHash); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (access/AccessControl.sol) pragma solidity ^0.8.0; import "./IAccessControl.sol"; import "../utils/Context.sol"; import "../utils/Strings.sol"; import "../utils/introspection/ERC165.sol"; /** * @dev Contract module that allows children to implement role-based access * control mechanisms. This is a lightweight version that doesn't allow enumerating role * members except through off-chain means by accessing the contract event logs. Some * applications may benefit from on-chain enumerability, for those cases see * {AccessControlEnumerable}. * * Roles are referred to by their `bytes32` identifier. These should be exposed * in the external API and be unique. The best way to achieve this is by * using `public constant` hash digests: * * ``` * bytes32 public constant MY_ROLE = keccak256("MY_ROLE"); * ``` * * Roles can be used to represent a set of permissions. To restrict access to a * function call, use {hasRole}: * * ``` * function foo() public { * require(hasRole(MY_ROLE, msg.sender)); * ... * } * ``` * * Roles can be granted and revoked dynamically via the {grantRole} and * {revokeRole} functions. Each role has an associated admin role, and only * accounts that have a role's admin role can call {grantRole} and {revokeRole}. * * By default, the admin role for all roles is `DEFAULT_ADMIN_ROLE`, which means * that only accounts with this role will be able to grant or revoke other * roles. More complex role relationships can be created by using * {_setRoleAdmin}. * * WARNING: The `DEFAULT_ADMIN_ROLE` is also its own admin: it has permission to * grant and revoke this role. Extra precautions should be taken to secure * accounts that have been granted it. */ abstract contract AccessControl is Context, IAccessControl, ERC165 { struct RoleData { mapping(address => bool) members; bytes32 adminRole; } mapping(bytes32 => RoleData) private _roles; bytes32 public constant DEFAULT_ADMIN_ROLE = 0x00; /** * @dev Modifier that checks that an account has a specific role. Reverts * with a standardized message including the required role. * * The format of the revert reason is given by the following regular expression: * * /^AccessControl: account (0x[0-9a-f]{40}) is missing role (0x[0-9a-f]{64})$/ * * _Available since v4.1._ */ modifier onlyRole(bytes32 role) { _checkRole(role, _msgSender()); _; } /** * @dev See {IERC165-supportsInterface}. */ function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) { return interfaceId == type(IAccessControl).interfaceId || super.supportsInterface(interfaceId); } /** * @dev Returns `true` if `account` has been granted `role`. */ function hasRole(bytes32 role, address account) public view override returns (bool) { return _roles[role].members[account]; } /** * @dev Revert with a standard message if `account` is missing `role`. * * The format of the revert reason is given by the following regular expression: * * /^AccessControl: account (0x[0-9a-f]{40}) is missing role (0x[0-9a-f]{64})$/ */ function _checkRole(bytes32 role, address account) internal view { if (!hasRole(role, account)) { revert( string( abi.encodePacked( "AccessControl: account ", Strings.toHexString(uint160(account), 20), " is missing role ", Strings.toHexString(uint256(role), 32) ) ) ); } } /** * @dev Returns the admin role that controls `role`. See {grantRole} and * {revokeRole}. * * To change a role's admin, use {_setRoleAdmin}. */ function getRoleAdmin(bytes32 role) public view override returns (bytes32) { return _roles[role].adminRole; } /** * @dev Grants `role` to `account`. * * If `account` had not been already granted `role`, emits a {RoleGranted} * event. * * Requirements: * * - the caller must have ``role``'s admin role. */ function grantRole(bytes32 role, address account) public virtual override onlyRole(getRoleAdmin(role)) { _grantRole(role, account); } /** * @dev Revokes `role` from `account`. * * If `account` had been granted `role`, emits a {RoleRevoked} event. * * Requirements: * * - the caller must have ``role``'s admin role. */ function revokeRole(bytes32 role, address account) public virtual override onlyRole(getRoleAdmin(role)) { _revokeRole(role, account); } /** * @dev Revokes `role` from the calling account. * * Roles are often managed via {grantRole} and {revokeRole}: this function's * purpose is to provide a mechanism for accounts to lose their privileges * if they are compromised (such as when a trusted device is misplaced). * * If the calling account had been revoked `role`, emits a {RoleRevoked} * event. * * Requirements: * * - the caller must be `account`. */ function renounceRole(bytes32 role, address account) public virtual override { require(account == _msgSender(), "AccessControl: can only renounce roles for self"); _revokeRole(role, account); } /** * @dev Grants `role` to `account`. * * If `account` had not been already granted `role`, emits a {RoleGranted} * event. Note that unlike {grantRole}, this function doesn't perform any * checks on the calling account. * * [WARNING] * ==== * This function should only be called from the constructor when setting * up the initial roles for the system. * * Using this function in any other way is effectively circumventing the admin * system imposed by {AccessControl}. * ==== * * NOTE: This function is deprecated in favor of {_grantRole}. */ function _setupRole(bytes32 role, address account) internal virtual { _grantRole(role, account); } /** * @dev Sets `adminRole` as ``role``'s admin role. * * Emits a {RoleAdminChanged} event. */ function _setRoleAdmin(bytes32 role, bytes32 adminRole) internal virtual { bytes32 previousAdminRole = getRoleAdmin(role); _roles[role].adminRole = adminRole; emit RoleAdminChanged(role, previousAdminRole, adminRole); } /** * @dev Grants `role` to `account`. * * Internal function without access restriction. */ function _grantRole(bytes32 role, address account) internal virtual { if (!hasRole(role, account)) { _roles[role].members[account] = true; emit RoleGranted(role, account, _msgSender()); } } /** * @dev Revokes `role` from `account`. * * Internal function without access restriction. */ function _revokeRole(bytes32 role, address account) internal virtual { if (hasRole(role, account)) { _roles[role].members[account] = false; emit RoleRevoked(role, account, _msgSender()); } } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (token/ERC1155/extensions/ERC1155Supply.sol) 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 whether 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-_beforeTokenTransfer}. */ function _beforeTokenTransfer( address operator, address from, address to, uint256[] memory ids, uint256[] memory amounts, bytes memory data ) internal virtual override { super._beforeTokenTransfer(operator, from, to, ids, amounts, data); if (from == address(0)) { for (uint256 i = 0; i < ids.length; ++i) { _totalSupply[ids[i]] += amounts[i]; } } if (to == address(0)) { for (uint256 i = 0; i < ids.length; ++i) { _totalSupply[ids[i]] -= amounts[i]; } } } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (token/ERC1155/extensions/ERC1155Burnable.sol) pragma solidity ^0.8.0; import "../ERC1155.sol"; /** * @dev Extension of {ERC1155} that allows token holders to destroy both their * own tokens and those that they have been approved to use. * * _Available since v3.1._ */ abstract contract ERC1155Burnable is ERC1155 { function burn( address account, uint256 id, uint256 value ) public virtual { require( account == _msgSender() || isApprovedForAll(account, _msgSender()), "ERC1155: caller is not owner nor approved" ); _burn(account, id, value); } function burnBatch( address account, uint256[] memory ids, uint256[] memory values ) public virtual { require( account == _msgSender() || isApprovedForAll(account, _msgSender()), "ERC1155: caller is not owner nor approved" ); _burnBatch(account, ids, values); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (security/Pausable.sol) pragma solidity ^0.8.0; import "../utils/Context.sol"; /** * @dev Contract module which allows children to implement an emergency stop * mechanism that can be triggered by an authorized account. * * This module is used through inheritance. It will make available the * modifiers `whenNotPaused` and `whenPaused`, which can be applied to * the functions of your contract. Note that they will not be pausable by * simply including this module, only once the modifiers are put in place. */ abstract contract Pausable is Context { /** * @dev Emitted when the pause is triggered by `account`. */ event Paused(address account); /** * @dev Emitted when the pause is lifted by `account`. */ event Unpaused(address account); bool private _paused; /** * @dev Initializes the contract in unpaused state. */ constructor() { _paused = false; } /** * @dev Returns true if the contract is paused, and false otherwise. */ function paused() public view virtual returns (bool) { return _paused; } /** * @dev Modifier to make a function callable only when the contract is not paused. * * Requirements: * * - The contract must not be paused. */ modifier whenNotPaused() { require(!paused(), "Pausable: paused"); _; } /** * @dev Modifier to make a function callable only when the contract is paused. * * Requirements: * * - The contract must be paused. */ modifier whenPaused() { require(paused(), "Pausable: not paused"); _; } /** * @dev Triggers stopped state. * * Requirements: * * - The contract must not be paused. */ function _pause() internal virtual whenNotPaused { _paused = true; emit Paused(_msgSender()); } /** * @dev Returns to normal state. * * Requirements: * * - The contract must be paused. */ function _unpause() internal virtual whenPaused { _paused = false; emit Unpaused(_msgSender()); } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; /* * @title Offchain whitelist module using vouchers * @author NFTNick.eth */ import "@openzeppelin/contracts/utils/cryptography/ECDSA.sol"; import "@openzeppelin/contracts/utils/cryptography/draft-EIP712.sol"; import "@openzeppelin/contracts/access/AccessControl.sol"; import '@openzeppelin/contracts/access/Ownable.sol'; abstract contract OffchainBouncer is AccessControl, Ownable, EIP712 { bytes32 public constant BOUNCER_ROLE = keccak256("BOUNCER_ROLE"); struct NFTVoucher { address minter; uint mintLimit; uint256 start; bytes signature; } /// @notice Used to define who's capable of generating the whitelist. function addBouncer(address bouncer_) external onlyOwner { _setupRole(BOUNCER_ROLE, payable(bouncer_)); } /// @notice Returns a hash of the given NFTVoucher, prepared using EIP712 typed data hashing rules. /// @param voucher An NFTVoucher to hash. function _hash(NFTVoucher calldata voucher) internal view returns (bytes32) { return _hashTypedDataV4(keccak256(abi.encode( keccak256("NFTVoucher(address minter,uint mintLimit,uint256 start)"), voucher.minter, voucher.mintLimit, voucher.start ) )); } /// @notice Verifies the signature for a given NFTVoucher, returning the address of the signer. /// @dev Will revert if the signature is invalid. Does not verify that the signer is authorized to mint NFTs. /// @param voucher An NFTVoucher describing an unminted NFT. function _verify(NFTVoucher calldata voucher) internal view returns (address) { bytes32 digest = _hash(voucher); return ECDSA.recover(digest, voucher.signature); } /// @notice Used for signing the voucher being generated function getChainID() external view returns (uint256) { uint256 id; assembly { id := chainid() } return id; } }
// 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 (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); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (access/IAccessControl.sol) pragma solidity ^0.8.0; /** * @dev External interface of AccessControl declared to support ERC165 detection. */ interface IAccessControl { /** * @dev Emitted when `newAdminRole` is set as ``role``'s admin role, replacing `previousAdminRole` * * `DEFAULT_ADMIN_ROLE` is the starting admin for all roles, despite * {RoleAdminChanged} not being emitted signaling this. * * _Available since v3.1._ */ event RoleAdminChanged(bytes32 indexed role, bytes32 indexed previousAdminRole, bytes32 indexed newAdminRole); /** * @dev Emitted when `account` is granted `role`. * * `sender` is the account that originated the contract call, an admin role * bearer except when using {AccessControl-_setupRole}. */ event RoleGranted(bytes32 indexed role, address indexed account, address indexed sender); /** * @dev Emitted when `account` is revoked `role`. * * `sender` is the account that originated the contract call: * - if using `revokeRole`, it is the admin role bearer * - if using `renounceRole`, it is the role bearer (i.e. `account`) */ event RoleRevoked(bytes32 indexed role, address indexed account, address indexed sender); /** * @dev Returns `true` if `account` has been granted `role`. */ function hasRole(bytes32 role, address account) external view returns (bool); /** * @dev Returns the admin role that controls `role`. See {grantRole} and * {revokeRole}. * * To change a role's admin, use {AccessControl-_setRoleAdmin}. */ function getRoleAdmin(bytes32 role) external view returns (bytes32); /** * @dev Grants `role` to `account`. * * If `account` had not been already granted `role`, emits a {RoleGranted} * event. * * Requirements: * * - the caller must have ``role``'s admin role. */ function grantRole(bytes32 role, address account) external; /** * @dev Revokes `role` from `account`. * * If `account` had been granted `role`, emits a {RoleRevoked} event. * * Requirements: * * - the caller must have ``role``'s admin role. */ function revokeRole(bytes32 role, address account) external; /** * @dev Revokes `role` from the calling account. * * Roles are often managed via {grantRole} and {revokeRole}: this function's * purpose is to provide a mechanism for accounts to lose their privileges * if they are compromised (such as when a trusted device is misplaced). * * If the calling account had been granted `role`, emits a {RoleRevoked} * event. * * Requirements: * * - the caller must be `account`. */ function renounceRole(bytes32 role, address account) external; }
// 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); } }
{ "optimizer": { "enabled": true, "runs": 1000 }, "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":"_name","type":"string"},{"internalType":"string","name":"_symbol","type":"string"},{"internalType":"string","name":"_uri","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":"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"}],"name":"Paused","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"uint256","name":"index","type":"uint256"},{"indexed":true,"internalType":"address","name":"account","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"Printed","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"bytes32","name":"role","type":"bytes32"},{"indexed":true,"internalType":"bytes32","name":"previousAdminRole","type":"bytes32"},{"indexed":true,"internalType":"bytes32","name":"newAdminRole","type":"bytes32"}],"name":"RoleAdminChanged","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"bytes32","name":"role","type":"bytes32"},{"indexed":true,"internalType":"address","name":"account","type":"address"},{"indexed":true,"internalType":"address","name":"sender","type":"address"}],"name":"RoleGranted","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"bytes32","name":"role","type":"bytes32"},{"indexed":true,"internalType":"address","name":"account","type":"address"},{"indexed":true,"internalType":"address","name":"sender","type":"address"}],"name":"RoleRevoked","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"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"account","type":"address"}],"name":"Unpaused","type":"event"},{"inputs":[],"name":"BOUNCER_ROLE","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"DEFAULT_ADMIN_ROLE","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"activelyMintingNft","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"bouncer_","type":"address"}],"name":"addBouncer","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":[{"internalType":"address","name":"account","type":"address"},{"internalType":"uint256","name":"id","type":"uint256"},{"internalType":"uint256","name":"value","type":"uint256"}],"name":"burn","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"},{"internalType":"uint256[]","name":"ids","type":"uint256[]"},{"internalType":"uint256[]","name":"values","type":"uint256[]"}],"name":"burnBatch","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_publicMintTime","type":"uint256"},{"internalType":"uint256","name":"_publicMintLimit","type":"uint256"},{"internalType":"uint256","name":"_maxSupply","type":"uint256"}],"name":"editMintSettings","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"id","type":"uint256"}],"name":"exists","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getChainID","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"}],"name":"getRoleAdmin","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"},{"internalType":"address","name":"account","type":"address"}],"name":"grantRole","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"},{"internalType":"address","name":"account","type":"address"}],"name":"hasRole","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"operator","type":"address"}],"name":"isApprovedForAll","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"maxSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"mintPrice","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"addr","type":"address"},{"internalType":"uint256","name":"numberOfTokens","type":"uint256"}],"name":"ownerMint","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"pause","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"paused","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"},{"internalType":"address","name":"","type":"address"}],"name":"premintTxs","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"numberOfTokens","type":"uint256"}],"name":"publicMint","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"publicMintLimit","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"publicMintTime","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"},{"internalType":"address","name":"","type":"address"}],"name":"publicTxs","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"},{"internalType":"address","name":"account","type":"address"}],"name":"renounceRole","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"},{"internalType":"address","name":"account","type":"address"}],"name":"revokeRole","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":"_tokenId","type":"uint256"}],"name":"setMintingToken","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_mintPrice","type":"uint256"}],"name":"setPrice","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"baseURI","type":"string"}],"name":"setURI","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":[{"internalType":"uint256","name":"id","type":"uint256"}],"name":"totalSupply","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":[],"name":"unpause","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":[{"components":[{"internalType":"address","name":"minter","type":"address"},{"internalType":"uint256","name":"mintLimit","type":"uint256"},{"internalType":"uint256","name":"start","type":"uint256"},{"internalType":"bytes","name":"signature","type":"bytes"}],"internalType":"struct OffchainBouncer.NFTVoucher","name":"voucher","type":"tuple"},{"internalType":"uint256","name":"numberOfTokens","type":"uint256"}],"name":"voucherMint","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"address","name":"_addr","type":"address"}],"name":"withdraw","outputs":[],"stateMutability":"nonpayable","type":"function"}]
Contract Creation Code
6101406040526000600955611e61600a5566f5232269808000600b556003600c556361e58470600d553480156200003557600080fd5b5060405162004e8038038062004e808339810160408190526200005891620007e0565b80604051806040016040528060088152602001675468654e6966747960c01b815250604051806040016040528060018152602001603160f81b815250620000ae620000a86200019760201b60201c565b6200019c565b815160208084019190912082519183019190912060e08290526101008190524660a0527f8b73c3c69bb8fe3d512ecc4cf759cc79239f7b179b0ffacaa9a75d522b39400f620000ff818484620001ee565b6080523060601b60c05261012052506200011e9250839150506200022a565b506006805460ff1916905582516200013e90600790602086019062000680565b5081516200015490600890602085019062000680565b506200018e73b75d95fb8bc0fc8e156a8fd1d9669be94160c11f60006064604051806020016040528060008152506200024360201b60201c565b50505062000bbc565b335b90565b600180546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b600083838346306040516020016200020b959493929190620008e2565b6040516020818303038152906040528051906020012090509392505050565b80516200023f90600490602084019062000680565b5050565b6001600160a01b038416620002755760405162461bcd60e51b81526004016200026c90620009c8565b60405180910390fd5b60006200028162000197565b9050620002a881600087620002968862000355565b620002a18862000355565b87620003af565b60008481526002602090815260408083206001600160a01b038916845290915281208054859290620002dc90849062000a17565b92505081905550846001600160a01b031660006001600160a01b0316826001600160a01b03167fc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f6287876040516200033592919062000a09565b60405180910390a46200034e81600087878787620003d2565b5050505050565b604080516001808252818301909252606091600091906020808301908036833701905050905082816000815181106200039e57634e487b7160e01b600052603260045260246000fd5b602090810291909101015292915050565b620003ca8686868686866200050960201b6200138e1760201c565b505050505050565b620003f1846001600160a01b03166200067a60201b620014ea1760201c565b15620003ca5760405163f23a6e6160e01b81526001600160a01b0385169063f23a6e61906200042d90899089908890889088906004016200089b565b602060405180830381600087803b1580156200044857600080fd5b505af19250505080156200047b575060408051601f3d908101601f191682019092526200047891810190620007af565b60015b620004cd576200048a62000b0c565b80620004975750620004b3565b8060405162461bcd60e51b81526004016200026c91906200090e565b60405162461bcd60e51b81526004016200026c9062000923565b6001600160e01b0319811663f23a6e6160e01b14620005005760405162461bcd60e51b81526004016200026c9062000980565b50505050505050565b62000524868686868686620003ca60201b620014e21760201c565b6001600160a01b038516620005d05760005b8351811015620005ce578281815181106200056157634e487b7160e01b600052603260045260246000fd5b6020026020010151600560008684815181106200058e57634e487b7160e01b600052603260045260246000fd5b602002602001015181526020019081526020016000206000828254620005b5919062000a17565b90915550620005c690508162000abc565b905062000536565b505b6001600160a01b038416620003ca5760005b835181101562000500578281815181106200060d57634e487b7160e01b600052603260045260246000fd5b6020026020010151600560008684815181106200063a57634e487b7160e01b600052603260045260246000fd5b60200260200101518152602001908152602001600020600082825462000661919062000a32565b909155506200067290508162000abc565b9050620005e2565b3b151590565b8280546200068e9062000a7f565b90600052602060002090601f016020900481019282620006b25760008555620006fd565b82601f10620006cd57805160ff1916838001178555620006fd565b82800160010185558215620006fd579182015b82811115620006fd578251825591602001919060010190620006e0565b506200070b9291506200070f565b5090565b5b808211156200070b576000815560010162000710565b600082601f83011262000737578081fd5b81516001600160401b038082111562000754576200075462000af0565b604051601f8301601f1916810160200182811182821017156200077b576200077b62000af0565b60405282815284830160200186101562000793578384fd5b620007a683602083016020880162000a4c565b95945050505050565b600060208284031215620007c1578081fd5b81516001600160e01b031981168114620007d9578182fd5b9392505050565b600080600060608486031215620007f5578182fd5b83516001600160401b03808211156200080c578384fd5b6200081a8783880162000726565b9450602086015191508082111562000830578384fd5b6200083e8783880162000726565b9350604086015191508082111562000854578283fd5b50620008638682870162000726565b9150509250925092565b600081518084526200088781602086016020860162000a4c565b601f01601f19169290920160200192915050565b6001600160a01b03868116825285166020820152604081018490526060810183905260a060808201819052600090620008d7908301846200086d565b979650505050505050565b9485526020850193909352604084019190915260608301526001600160a01b0316608082015260a00190565b600060208252620007d960208301846200086d565b60208082526034908201527f455243313135353a207472616e7366657220746f206e6f6e204552433131353560408201527f526563656976657220696d706c656d656e746572000000000000000000000000606082015260800190565b60208082526028908201527f455243313135353a204552433131353552656365697665722072656a656374656040820152676420746f6b656e7360c01b606082015260800190565b60208082526021908201527f455243313135353a206d696e7420746f20746865207a65726f206164647265736040820152607360f81b606082015260800190565b918252602082015260400190565b6000821982111562000a2d5762000a2d62000ada565b500190565b60008282101562000a475762000a4762000ada565b500390565b60005b8381101562000a6957818101518382015260200162000a4f565b8381111562000a79576000848401525b50505050565b60028104600182168062000a9457607f821691505b6020821081141562000ab657634e487b7160e01b600052602260045260246000fd5b50919050565b600060001982141562000ad35762000ad362000ada565b5060010190565b634e487b7160e01b600052601160045260246000fd5b634e487b7160e01b600052604160045260246000fd5b60e01c90565b600060443d101562000b1e5762000199565b600481823e6308c379a062000b34825162000b06565b1462000b405762000199565b6040513d600319016004823e80513d6001600160401b03808311602484018310171562000b71575050505062000199565b8284019250825191508082111562000b8d575050505062000199565b503d8301602082840101111562000ba75750505062000199565b601f01601f1916810160200160405291505090565b60805160a05160c05160601c60e051610100516101205161427162000c0f6000396000612abf01526000612b0101526000612ae001526000612a4201526000612a6c01526000612a9601526142716000f3fe6080604052600436106102d05760003560e01c80636ddb533611610179578063a22cb465116100d6578063d547741f1161008a578063f242432a11610064578063f242432a14610758578063f2fde38b14610778578063f5298aca14610798576102d0565b8063d547741f14610703578063d5abeb0114610723578063e985e9c514610738576102d0565b8063bb485b88116100bb578063bb485b88146106ae578063bd85b039146106c3578063c2868de2146106e3576102d0565b8063a22cb4651461067b578063a9fdc4c91461069b576102d0565b806391b7f5ed1161012d5780639323f562116101125780639323f562146106265780639615c30f14610646578063a217fddf14610666576102d0565b806391b7f5ed146105e657806391d1485414610606576102d0565b80638456cb591161015e5780638456cb591461058f578063888764c8146105a45780638da5cb5b146105c4576102d0565b80636ddb533614610565578063715018a61461057a576102d0565b80633f4ba83a1161023257806351cff8d9116101e65780635e403472116101c05780635e4034721461051b5780636817c76c146105305780636b20c45414610545576102d0565b806351cff8d9146104d1578063564b81ef146104f15780635c975abb14610506576102d0565b80634e1273f4116102175780634e1273f41461046f5780634f558e791461049c5780634fba122e146104bc576102d0565b80633f4ba83a1461043a578063484b973c1461044f576102d0565b80632db11544116102895780632f2ff15d1161026e5780632f2ff15d146103da578063319f98ba146103fa57806336568abe1461041a576102d0565b80632db11544146103a75780632eb2c2d6146103ba576102d0565b806302fe5305116102ba57806302fe5305146103385780630e89341c1461035a578063248a9ca314610387576102d0565b8062fdd58e146102d557806301ffc9a71461030b575b600080fd5b3480156102e157600080fd5b506102f56102f0366004613046565b6107b8565b6040516103029190613514565b60405180910390f35b34801561031757600080fd5b5061032b6103263660046131a1565b610811565b6040516103029190613509565b34801561034457600080fd5b506103586103533660046131f5565b610833565b005b34801561036657600080fd5b5061037a610375366004613165565b61087e565b604051610302919061358b565b34801561039357600080fd5b506102f56103a2366004613165565b6108de565b6103586103b5366004613165565b6108f3565b3480156103c657600080fd5b506103586103d5366004612e91565b6109e0565b3480156103e657600080fd5b506103586103f536600461317d565b610a3e565b34801561040657600080fd5b50610358610415366004613165565b610a67565b34801561042657600080fd5b5061035861043536600461317d565b610aab565b34801561044657600080fd5b50610358610af1565b34801561045b57600080fd5b5061035861046a366004613046565b610b3a565b34801561047b57600080fd5b5061048f61048a3660046130a5565b610c12565b60405161030291906134c8565b3480156104a857600080fd5b5061032b6104b7366004613165565b610d32565b3480156104c857600080fd5b506102f5610d45565b3480156104dd57600080fd5b506103586104ec366004612e3d565b610d69565b3480156104fd57600080fd5b506102f5610de0565b34801561051257600080fd5b5061032b610de5565b34801561052757600080fd5b506102f5610dee565b34801561053c57600080fd5b506102f5610df4565b34801561055157600080fd5b50610358610560366004612fa2565b610dfa565b34801561057157600080fd5b506102f5610e4f565b34801561058657600080fd5b50610358610e55565b34801561059b57600080fd5b50610358610e9e565b3480156105b057600080fd5b506103586105bf366004612e3d565b610ee5565b3480156105d057600080fd5b506105d9610f4e565b6040516103029190613413565b3480156105f257600080fd5b50610358610601366004613165565b610f5d565b34801561061257600080fd5b5061032b61062136600461317d565b610fa1565b34801561063257600080fd5b506102f561064136600461317d565b610fca565b34801561065257600080fd5b506102f561066136600461317d565b610fe7565b34801561067257600080fd5b506102f5611004565b34801561068757600080fd5b50610358610696366004613015565b611009565b6103586106a936600461323b565b61101b565b3480156106ba57600080fd5b506102f56111c7565b3480156106cf57600080fd5b506102f56106de366004613165565b6111cd565b3480156106ef57600080fd5b506103586106fe366004613274565b6111df565b34801561070f57600080fd5b5061035861071e36600461317d565b61122c565b34801561072f57600080fd5b506102f561124b565b34801561074457600080fd5b5061032b610753366004612e59565b611251565b34801561076457600080fd5b50610358610773366004612f3b565b611274565b34801561078457600080fd5b50610358610793366004612e3d565b6112cb565b3480156107a457600080fd5b506103586107b3366004613071565b611339565b60006001600160a01b0383166107e95760405162461bcd60e51b81526004016107e0906137a0565b60405180910390fd5b5060009081526002602090815260408083206001600160a01b03949094168352929052205490565b600061081c826114f0565b8061082b575061082b8261155d565b90505b919050565b61083b61159b565b6001600160a01b031661084c610f4e565b6001600160a01b0316146108725760405162461bcd60e51b81526004016107e090613c1f565b61087b8161159f565b50565b606061088982610d32565b6108a55760405162461bcd60e51b81526004016107e090613c8b565b6108ae826115b2565b6108b783611646565b6040516020016108c8929190613305565b6040516020818303038152906040529050919050565b60009081526020819052604090206001015490565b6108fb610de5565b156109185760405162461bcd60e51b81526004016107e0906139fb565b600d5442101561093a5760405162461bcd60e51b81526004016107e090613aec565b6009546000908152600f602090815260408083203384529091529020546001116109765760405162461bcd60e51b81526004016107e090613f38565b6000811180156109885750600c548111155b6109a45760405162461bcd60e51b81526004016107e09061394b565b6009546000908152600f6020908152604080832033845290915281208054600192906109d1908490614010565b9091555061087b905081611769565b6109e861159b565b6001600160a01b0316856001600160a01b03161480610a0e5750610a0e8561075361159b565b610a2a5760405162461bcd60e51b81526004016107e090613a8f565b610a37858585858561182c565b5050505050565b610a47826108de565b610a5881610a5361159b565b6119f8565b610a628383611a5c565b505050565b610a6f61159b565b6001600160a01b0316610a80610f4e565b6001600160a01b031614610aa65760405162461bcd60e51b81526004016107e090613c1f565b600955565b610ab361159b565b6001600160a01b0316816001600160a01b031614610ae35760405162461bcd60e51b81526004016107e090613edb565b610aed8282611ae1565b5050565b610af961159b565b6001600160a01b0316610b0a610f4e565b6001600160a01b031614610b305760405162461bcd60e51b81526004016107e090613c1f565b610b38611b64565b565b610b4261159b565b6001600160a01b0316610b53610f4e565b6001600160a01b031614610b795760405162461bcd60e51b81526004016107e090613c1f565b600a5481610b8760006111cd565b610b919190614010565b1115610baf5760405162461bcd60e51b81526004016107e090613cc2565b610bcb8260008360405180602001604052806000815250611bd2565b816001600160a01b031660007f7cfb504ca17ed613872a7f410dc34702087995bca0445a0418c4d1be951abc3f83604051610c069190613514565b60405180910390a35050565b60608151835114610c355760405162461bcd60e51b81526004016107e090613d56565b6000835167ffffffffffffffff811115610c5f57634e487b7160e01b600052604160045260246000fd5b604051908082528060200260200182016040528015610c88578160200160208202803683370190505b50905060005b8451811015610d2a57610cef858281518110610cba57634e487b7160e01b600052603260045260246000fd5b6020026020010151858381518110610ce257634e487b7160e01b600052603260045260246000fd5b60200260200101516107b8565b828281518110610d0f57634e487b7160e01b600052603260045260246000fd5b6020908102919091010152610d23816140f4565b9050610c8e565b509392505050565b600080610d3e836111cd565b1192915050565b7fe4115595bf7ae7cb05bc1951822961d8747bf58987ea2e3c7e4c3ff109c676a581565b610d7161159b565b6001600160a01b0316610d82610f4e565b6001600160a01b031614610da85760405162461bcd60e51b81526004016107e090613c1f565b60405147906001600160a01b0383169082156108fc029083906000818181858888f19350505050158015610a62573d6000803e3d6000fd5b465b90565b60065460ff1690565b600d5481565b600b5481565b610e0261159b565b6001600160a01b0316836001600160a01b03161480610e285750610e288361075361159b565b610e445760405162461bcd60e51b81526004016107e0906138b7565b610a62838383611cc3565b60095481565b610e5d61159b565b6001600160a01b0316610e6e610f4e565b6001600160a01b031614610e945760405162461bcd60e51b81526004016107e090613c1f565b610b386000611e77565b610ea661159b565b6001600160a01b0316610eb7610f4e565b6001600160a01b031614610edd5760405162461bcd60e51b81526004016107e090613c1f565b610b38611ee1565b610eed61159b565b6001600160a01b0316610efe610f4e565b6001600160a01b031614610f245760405162461bcd60e51b81526004016107e090613c1f565b61087b7fe4115595bf7ae7cb05bc1951822961d8747bf58987ea2e3c7e4c3ff109c676a582611f3c565b6001546001600160a01b031690565b610f6561159b565b6001600160a01b0316610f76610f4e565b6001600160a01b031614610f9c5760405162461bcd60e51b81526004016107e090613c1f565b600b55565b6000918252602082815260408084206001600160a01b0393909316845291905290205460ff1690565b600e60209081526000928352604080842090915290825290205481565b600f60209081526000928352604080842090915290825290205481565b600081565b610aed61101461159b565b8383611f46565b611023610de5565b156110405760405162461bcd60e51b81526004016107e0906139fb565b6009546000908152600e6020908152604080832033845290915290205460011161107c5760405162461bcd60e51b81526004016107e090613f38565b600061108783611fe9565b90506110b37fe4115595bf7ae7cb05bc1951822961d8747bf58987ea2e3c7e4c3ff109c676a582610fa1565b6110cf5760405162461bcd60e51b81526004016107e090613769565b82602001358211156110f35760405162461bcd60e51b81526004016107e090613e6d565b6111006020840184612e3d565b6001600160a01b0316336001600160a01b0316146111305760405162461bcd60e51b81526004016107e0906139c4565b600a548261113f6009546111cd565b6111499190614010565b11156111675760405162461bcd60e51b81526004016107e090613c54565b826040013542101561118b5760405162461bcd60e51b81526004016107e0906136c4565b6009546000908152600e6020908152604080832033845290915281208054600192906111b8908490614010565b90915550610a62905082611769565b600c5481565b60009081526005602052604090205490565b6111e761159b565b6001600160a01b03166111f8610f4e565b6001600160a01b03161461121e5760405162461bcd60e51b81526004016107e090613c1f565b600d92909255600c55600a55565b611235826108de565b61124181610a5361159b565b610a628383611ae1565b600a5481565b600061125d8383612042565b8061126d575061126d838361213b565b9392505050565b61127c61159b565b6001600160a01b0316856001600160a01b031614806112a257506112a28561075361159b565b6112be5760405162461bcd60e51b81526004016107e0906138b7565b610a378585858585612169565b6112d361159b565b6001600160a01b03166112e4610f4e565b6001600160a01b03161461130a5760405162461bcd60e51b81526004016107e090613c1f565b6001600160a01b0381166113305760405162461bcd60e51b81526004016107e0906137fd565b61087b81611e77565b61134161159b565b6001600160a01b0316836001600160a01b0316148061136757506113678361075361159b565b6113835760405162461bcd60e51b81526004016107e0906138b7565b610a62838383612298565b61139c8686868686866114e2565b6001600160a01b03851661143f5760005b835181101561143d578281815181106113d657634e487b7160e01b600052603260045260246000fd5b60200260200101516005600086848151811061140257634e487b7160e01b600052603260045260246000fd5b6020026020010151815260200190815260200160002060008282546114279190614010565b909155506114369050816140f4565b90506113ad565b505b6001600160a01b0384166114e25760005b83518110156114e05782818151811061147957634e487b7160e01b600052603260045260246000fd5b6020026020010151600560008684815181106114a557634e487b7160e01b600052603260045260246000fd5b6020026020010151815260200190815260200160002060008282546114ca919061405b565b909155506114d99050816140f4565b9050611450565b505b505050505050565b3b151590565b60006001600160e01b031982167fd9b67a2600000000000000000000000000000000000000000000000000000000148061081c57506001600160e01b031982167f0e89341c00000000000000000000000000000000000000000000000000000000148061082b575061082b825b60006001600160e01b031982167f7965db0b00000000000000000000000000000000000000000000000000000000148061082b575061082b826123ab565b3390565b8051610aed906004906020840190612cc1565b6060600480546115c1906140b9565b80601f01602080910402602001604051908101604052809291908181526020018280546115ed906140b9565b801561163a5780601f1061160f5761010080835404028352916020019161163a565b820191906000526020600020905b81548152906001019060200180831161161d57829003601f168201915b50505050509050919050565b60608161166b57506040805180820190915260018152600360fc1b602082015261082e565b8160005b8115611695578061167f816140f4565b915061168e9050600a83614028565b915061166f565b60008167ffffffffffffffff8111156116be57634e487b7160e01b600052604160045260246000fd5b6040519080825280601f01601f1916602001820160405280156116e8576020820181803683370190505b5090505b8415611761576116fd60018361405b565b915061170a600a8661410f565b611715906030614010565b60f81b81838151811061173857634e487b7160e01b600052603260045260246000fd5b60200101906001600160f81b031916908160001a90535061175a600a86614028565b94506116ec565b949350505050565b600a548161177760006111cd565b6117819190614010565b111561179f5760405162461bcd60e51b81526004016107e090613914565b600b546117ac908261403c565b34146117ca5760405162461bcd60e51b81526004016107e090613ea4565b6117e63360008360405180602001604052806000815250611bd2565b336001600160a01b031660007f7cfb504ca17ed613872a7f410dc34702087995bca0445a0418c4d1be951abc3f836040516118219190613514565b60405180910390a350565b815183511461184d5760405162461bcd60e51b81526004016107e090613db3565b6001600160a01b0384166118735760405162461bcd60e51b81526004016107e090613a32565b600061187d61159b565b905061188d8187878787876123dd565b60005b84518110156119925760008582815181106118bb57634e487b7160e01b600052603260045260246000fd5b6020026020010151905060008583815181106118e757634e487b7160e01b600052603260045260246000fd5b60209081029190910181015160008481526002835260408082206001600160a01b038e1683529093529190912054909150818110156119385760405162461bcd60e51b81526004016107e090613bc2565b60008381526002602090815260408083206001600160a01b038e8116855292528083208585039055908b16825281208054849290611977908490614010565b925050819055505050508061198b906140f4565b9050611890565b50846001600160a01b0316866001600160a01b0316826001600160a01b03167f4a39dc06d4c0dbc64b70af90fd698a233a518aa5d07e595d983b8c0526c8f7fb87876040516119e29291906134db565b60405180910390a46114e28187878787876123eb565b611a028282610fa1565b610aed57611a1a816001600160a01b031660146124f9565b611a258360206124f9565b604051602001611a36929190613392565b60408051601f198184030181529082905262461bcd60e51b82526107e09160040161358b565b611a668282610fa1565b610aed576000828152602081815260408083206001600160a01b03851684529091529020805460ff19166001179055611a9d61159b565b6001600160a01b0316816001600160a01b0316837f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d60405160405180910390a45050565b611aeb8282610fa1565b15610aed576000828152602081815260408083206001600160a01b03851684529091529020805460ff19169055611b2061159b565b6001600160a01b0316816001600160a01b0316837ff6391f5c32d9c69d2a47ea670b442974b53935d1edc7fd64eb21e047a839171b60405160405180910390a45050565b611b6c610de5565b611b885760405162461bcd60e51b81526004016107e0906136fb565b6006805460ff191690557f5db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa611bbb61159b565b604051611bc89190613413565b60405180910390a1565b6001600160a01b038416611bf85760405162461bcd60e51b81526004016107e090613e10565b6000611c0261159b565b9050611c2381600087611c14886126d4565b611c1d886126d4565b876123dd565b60008481526002602090815260408083206001600160a01b038916845290915281208054859290611c55908490614010565b92505081905550846001600160a01b031660006001600160a01b0316826001600160a01b03167fc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f628787604051611cac929190613f6f565b60405180910390a4610a378160008787878761272d565b6001600160a01b038316611ce95760405162461bcd60e51b81526004016107e090613b65565b8051825114611d0a5760405162461bcd60e51b81526004016107e090613db3565b6000611d1461159b565b9050611d34818560008686604051806020016040528060008152506123dd565b60005b8351811015611e18576000848281518110611d6257634e487b7160e01b600052603260045260246000fd5b602002602001015190506000848381518110611d8e57634e487b7160e01b600052603260045260246000fd5b60209081029190910181015160008481526002835260408082206001600160a01b038c168352909352919091205490915081811015611ddf5760405162461bcd60e51b81526004016107e09061385a565b60009283526002602090815260408085206001600160a01b038b1686529091529092209103905580611e10816140f4565b915050611d37565b5060006001600160a01b0316846001600160a01b0316826001600160a01b03167f4a39dc06d4c0dbc64b70af90fd698a233a518aa5d07e595d983b8c0526c8f7fb8686604051611e699291906134db565b60405180910390a450505050565b600180546001600160a01b038381167fffffffffffffffffffffffff0000000000000000000000000000000000000000831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b611ee9610de5565b15611f065760405162461bcd60e51b81526004016107e0906139fb565b6006805460ff191660011790557f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a258611bbb61159b565b610aed8282611a5c565b816001600160a01b0316836001600160a01b03161415611f785760405162461bcd60e51b81526004016107e090613cf9565b6001600160a01b0383811660008181526003602090815260408083209487168084529490915290819020805460ff1916851515179055517f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c3190611fdc908590613509565b60405180910390a3505050565b600080611ff5836127fe565b905061126d816120086060860186613f7d565b8080601f01602080910402602001604051908101604052809392919081815260200183838082843760009201919091525061286992505050565b600080466001811461205b57600481146120775761208f565b73a5409ec958c83c3f309868babaca7c86dcb077c1915061208f565b73f57b2c51ded3a29e6891aba85459d600256cf31791505b506001600160a01b038116158015906117615750826001600160a01b0316816001600160a01b031663c4552791866040518263ffffffff1660e01b81526004016120d99190613413565b60206040518083038186803b1580156120f157600080fd5b505afa158015612105573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061212991906131d9565b6001600160a01b031614949350505050565b6001600160a01b03918216600090815260036020908152604080832093909416825291909152205460ff1690565b6001600160a01b03841661218f5760405162461bcd60e51b81526004016107e090613a32565b600061219961159b565b90506121aa818787611c14886126d4565b60008481526002602090815260408083206001600160a01b038a168452909152902054838110156121ed5760405162461bcd60e51b81526004016107e090613bc2565b60008581526002602090815260408083206001600160a01b038b811685529252808320878503905590881682528120805486929061222c908490614010565b92505081905550856001600160a01b0316876001600160a01b0316836001600160a01b03167fc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f628888604051612282929190613f6f565b60405180910390a46114e082888888888861272d565b6001600160a01b0383166122be5760405162461bcd60e51b81526004016107e090613b65565b60006122c861159b565b90506122f8818560006122da876126d4565b6122e3876126d4565b604051806020016040528060008152506123dd565b60008381526002602090815260408083206001600160a01b03881684529091529020548281101561233b5760405162461bcd60e51b81526004016107e09061385a565b60008481526002602090815260408083206001600160a01b03808a16808652919093528184208786039055905190918516907fc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f629061239c9089908990613f6f565b60405180910390a45050505050565b6001600160e01b031981167f01ffc9a70000000000000000000000000000000000000000000000000000000014919050565b6114e286868686868661138e565b6123fd846001600160a01b03166114ea565b156114e25760405163bc197c8160e01b81526001600160a01b0385169063bc197c81906124369089908990889088908890600401613427565b602060405180830381600087803b15801561245057600080fd5b505af1925050508015612480575060408051601f3d908101601f1916820190925261247d918101906131bd565b60015b6124c95761248c61416b565b8061249757506124b1565b8060405162461bcd60e51b81526004016107e0919061358b565b60405162461bcd60e51b81526004016107e0906135d5565b6001600160e01b0319811663bc197c8160e01b146114e05760405162461bcd60e51b81526004016107e090613667565b6060600061250883600261403c565b612513906002614010565b67ffffffffffffffff81111561253957634e487b7160e01b600052604160045260246000fd5b6040519080825280601f01601f191660200182016040528015612563576020820181803683370190505b509050600360fc1b8160008151811061258c57634e487b7160e01b600052603260045260246000fd5b60200101906001600160f81b031916908160001a9053507f7800000000000000000000000000000000000000000000000000000000000000816001815181106125e557634e487b7160e01b600052603260045260246000fd5b60200101906001600160f81b031916908160001a905350600061260984600261403c565b612614906001614010565b90505b60018111156126b5577f303132333435363738396162636465660000000000000000000000000000000085600f166010811061266357634e487b7160e01b600052603260045260246000fd5b1a60f81b82828151811061268757634e487b7160e01b600052603260045260246000fd5b60200101906001600160f81b031916908160001a90535060049490941c936126ae816140a2565b9050612617565b50831561126d5760405162461bcd60e51b81526004016107e090613632565b6040805160018082528183019092526060916000919060208083019080368337019050509050828160008151811061271c57634e487b7160e01b600052603260045260246000fd5b602090810291909101015292915050565b61273f846001600160a01b03166114ea565b156114e25760405163f23a6e6160e01b81526001600160a01b0385169063f23a6e61906127789089908990889088908890600401613485565b602060405180830381600087803b15801561279257600080fd5b505af19250505080156127c2575060408051601f3d908101601f191682019092526127bf918101906131bd565b60015b6127ce5761248c61416b565b6001600160e01b0319811663f23a6e6160e01b146114e05760405162461bcd60e51b81526004016107e090613667565b600061082b7f3f275fccc8eae6c2a0844811e23a340ef4154c2e02c42659e2d5076e72dcff516128316020850185612e3d565b8460200135856040013560405160200161284e949392919061351d565b60405160208183030381529060405280519060200120612885565b60008060006128788585612898565b91509150610d2a81612908565b600061082b612892612a35565b83612b2c565b6000808251604114156128cf5760208301516040840151606085015160001a6128c387828585612b5f565b94509450505050612901565b8251604014156128f957602083015160408401516128ee868383612c3f565b935093505050612901565b506000905060025b9250929050565b600081600481111561292a57634e487b7160e01b600052602160045260246000fd5b14156129355761087b565b600181600481111561295757634e487b7160e01b600052602160045260246000fd5b14156129755760405162461bcd60e51b81526004016107e09061359e565b600281600481111561299757634e487b7160e01b600052602160045260246000fd5b14156129b55760405162461bcd60e51b81526004016107e090613732565b60038160048111156129d757634e487b7160e01b600052602160045260246000fd5b14156129f55760405162461bcd60e51b81526004016107e090613982565b6004816004811115612a1757634e487b7160e01b600052602160045260246000fd5b141561087b5760405162461bcd60e51b81526004016107e090613b23565b6000306001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016148015612a8e57507f000000000000000000000000000000000000000000000000000000000000000046145b15612aba57507f0000000000000000000000000000000000000000000000000000000000000000610de2565b612b257f00000000000000000000000000000000000000000000000000000000000000007f00000000000000000000000000000000000000000000000000000000000000007f0000000000000000000000000000000000000000000000000000000000000000612c87565b9050610de2565b60008282604051602001612b4192919061335c565b60405160208183030381529060405280519060200120905092915050565b6000807f7fffffffffffffffffffffffffffffff5d576e7357a4501ddfe92f46681b20a0831115612b965750600090506003612c36565b8460ff16601b14158015612bae57508460ff16601c14155b15612bbf5750600090506004612c36565b600060018787878760405160008152602001604052604051612be4949392919061356d565b6020604051602081039080840390855afa158015612c06573d6000803e3d6000fd5b5050604051601f1901519150506001600160a01b038116612c2f57600060019250925050612c36565b9150600090505b94509492505050565b6000807f7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff831660ff84901c601b01612c7987828885612b5f565b935093505050935093915050565b60008383834630604051602001612ca2959493929190613541565b6040516020818303038152906040528051906020012090509392505050565b828054612ccd906140b9565b90600052602060002090601f016020900481019282612cef5760008555612d35565b82601f10612d0857805160ff1916838001178555612d35565b82800160010185558215612d35579182015b82811115612d35578251825591602001919060010190612d1a565b50612d41929150612d45565b5090565b5b80821115612d415760008155600101612d46565b600067ffffffffffffffff831115612d7457612d7461414f565b612d87601f8401601f1916602001613fc2565b9050828152838383011115612d9b57600080fd5b828260208301376000602084830101529392505050565b600082601f830112612dc2578081fd5b81356020612dd7612dd283613fec565b613fc2565b8281528181019085830183850287018401881015612df3578586fd5b855b85811015612e1157813584529284019290840190600101612df5565b5090979650505050505050565b600082601f830112612e2e578081fd5b61126d83833560208501612d5a565b600060208284031215612e4e578081fd5b813561126d81614210565b60008060408385031215612e6b578081fd5b8235612e7681614210565b91506020830135612e8681614210565b809150509250929050565b600080600080600060a08688031215612ea8578081fd5b8535612eb381614210565b94506020860135612ec381614210565b9350604086013567ffffffffffffffff80821115612edf578283fd5b612eeb89838a01612db2565b94506060880135915080821115612f00578283fd5b612f0c89838a01612db2565b93506080880135915080821115612f21578283fd5b50612f2e88828901612e1e565b9150509295509295909350565b600080600080600060a08688031215612f52578081fd5b8535612f5d81614210565b94506020860135612f6d81614210565b93506040860135925060608601359150608086013567ffffffffffffffff811115612f96578182fd5b612f2e88828901612e1e565b600080600060608486031215612fb6578283fd5b8335612fc181614210565b9250602084013567ffffffffffffffff80821115612fdd578384fd5b612fe987838801612db2565b93506040860135915080821115612ffe578283fd5b5061300b86828701612db2565b9150509250925092565b60008060408385031215613027578182fd5b823561303281614210565b915060208301358015158114612e86578182fd5b60008060408385031215613058578182fd5b823561306381614210565b946020939093013593505050565b600080600060608486031215613085578081fd5b833561309081614210565b95602085013595506040909401359392505050565b600080604083850312156130b7578182fd5b823567ffffffffffffffff808211156130ce578384fd5b818501915085601f8301126130e1578384fd5b813560206130f1612dd283613fec565b82815281810190858301838502870184018b101561310d578889fd5b8896505b8487101561313857803561312481614210565b835260019690960195918301918301613111565b509650508601359250508082111561314e578283fd5b5061315b85828601612db2565b9150509250929050565b600060208284031215613176578081fd5b5035919050565b6000806040838503121561318f578182fd5b823591506020830135612e8681614210565b6000602082840312156131b2578081fd5b813561126d81614225565b6000602082840312156131ce578081fd5b815161126d81614225565b6000602082840312156131ea578081fd5b815161126d81614210565b600060208284031215613206578081fd5b813567ffffffffffffffff81111561321c578182fd5b8201601f8101841361322c578182fd5b61176184823560208401612d5a565b6000806040838503121561324d578182fd5b823567ffffffffffffffff811115613263578283fd5b830160808186031215613063578283fd5b600080600060608486031215613288578081fd5b505081359360208301359350604090920135919050565b6000815180845260208085019450808401835b838110156132ce578151875295820195908201906001016132b2565b509495945050505050565b600081518084526132f1816020860160208601614072565b601f01601f19169290920160200192915050565b60008351613317818460208801614072565b83519083019061332b818360208801614072565b7f2e6a736f6e0000000000000000000000000000000000000000000000000000009101908152600501949350505050565b7f190100000000000000000000000000000000000000000000000000000000000081526002810192909252602282015260420190565b60007f416363657373436f6e74726f6c3a206163636f756e7420000000000000000000825283516133ca816017850160208801614072565b7f206973206d697373696e6720726f6c65200000000000000000000000000000006017918401918201528351613407816028840160208801614072565b01602801949350505050565b6001600160a01b0391909116815260200190565b60006001600160a01b03808816835280871660208401525060a0604083015261345360a083018661329f565b8281036060840152613465818661329f565b9050828103608084015261347981856132d9565b98975050505050505050565b60006001600160a01b03808816835280871660208401525084604083015283606083015260a060808301526134bd60a08301846132d9565b979650505050505050565b60006020825261126d602083018461329f565b6000604082526134ee604083018561329f565b8281036020840152613500818561329f565b95945050505050565b901515815260200190565b90815260200190565b9384526001600160a01b039290921660208401526040830152606082015260800190565b9485526020850193909352604084019190915260608301526001600160a01b0316608082015260a00190565b93845260ff9290921660208401526040830152606082015260800190565b60006020825261126d60208301846132d9565b60208082526018908201527f45434453413a20696e76616c6964207369676e61747572650000000000000000604082015260600190565b60208082526034908201527f455243313135353a207472616e7366657220746f206e6f6e204552433131353560408201527f526563656976657220696d706c656d656e746572000000000000000000000000606082015260800190565b6020808252818101527f537472696e67733a20686578206c656e67746820696e73756666696369656e74604082015260600190565b60208082526028908201527f455243313135353a204552433131353552656365697665722072656a6563746560408201527f6420746f6b656e73000000000000000000000000000000000000000000000000606082015260800190565b60208082526011908201527f696e76616c6964206d696e742074696d65000000000000000000000000000000604082015260600190565b60208082526014908201527f5061757361626c653a206e6f7420706175736564000000000000000000000000604082015260600190565b6020808252601f908201527f45434453413a20696e76616c6964207369676e6174757265206c656e67746800604082015260600190565b60208082526011908201527f7369676e617475726520696e76616c6964000000000000000000000000000000604082015260600190565b6020808252602b908201527f455243313135353a2062616c616e636520717565727920666f7220746865207a60408201527f65726f2061646472657373000000000000000000000000000000000000000000606082015260800190565b60208082526026908201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160408201527f6464726573730000000000000000000000000000000000000000000000000000606082015260800190565b60208082526024908201527f455243313135353a206275726e20616d6f756e7420657863656564732062616c60408201527f616e636500000000000000000000000000000000000000000000000000000000606082015260800190565b60208082526029908201527f455243313135353a2063616c6c6572206973206e6f74206f776e6572206e6f7260408201527f20617070726f7665640000000000000000000000000000000000000000000000606082015260800190565b6020808252601c908201527f50757263686173653a204d617820737570706c79207265616368656400000000604082015260600190565b60208082526018908201527f65786365656473206d6178206e667473207065722074786e0000000000000000604082015260600190565b60208082526022908201527f45434453413a20696e76616c6964207369676e6174757265202773272076616c604082015261756560f01b606082015260800190565b6020808252600f908201527f696e76616c696420766f75636865720000000000000000000000000000000000604082015260600190565b60208082526010908201527f5061757361626c653a2070617573656400000000000000000000000000000000604082015260600190565b60208082526025908201527f455243313135353a207472616e7366657220746f20746865207a65726f20616460408201527f6472657373000000000000000000000000000000000000000000000000000000606082015260800190565b60208082526032908201527f455243313135353a207472616e736665722063616c6c6572206973206e6f742060408201527f6f776e6572206e6f7220617070726f7665640000000000000000000000000000606082015260800190565b60208082526012908201527f7075626c6963206d696e7420636c6f7365640000000000000000000000000000604082015260600190565b60208082526022908201527f45434453413a20696e76616c6964207369676e6174757265202776272076616c604082015261756560f01b606082015260800190565b60208082526023908201527f455243313135353a206275726e2066726f6d20746865207a65726f206164647260408201527f6573730000000000000000000000000000000000000000000000000000000000606082015260800190565b6020808252602a908201527f455243313135353a20696e73756666696369656e742062616c616e636520666f60408201527f72207472616e7366657200000000000000000000000000000000000000000000606082015260800190565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b6020808252600f908201527f737570706c792065786365656465640000000000000000000000000000000000604082015260600190565b60208082526016908201527f5552493a206e6f6e6578697374656e7420746f6b656e00000000000000000000604082015260600190565b60208082526012908201527f4d617820737570706c7920726561636865640000000000000000000000000000604082015260600190565b60208082526029908201527f455243313135353a2073657474696e6720617070726f76616c2073746174757360408201527f20666f722073656c660000000000000000000000000000000000000000000000606082015260800190565b60208082526029908201527f455243313135353a206163636f756e747320616e6420696473206c656e67746860408201527f206d69736d617463680000000000000000000000000000000000000000000000606082015260800190565b60208082526028908201527f455243313135353a2069647320616e6420616d6f756e7473206c656e6774682060408201527f6d69736d61746368000000000000000000000000000000000000000000000000606082015260800190565b60208082526021908201527f455243313135353a206d696e7420746f20746865207a65726f2061646472657360408201527f7300000000000000000000000000000000000000000000000000000000000000606082015260800190565b60208082526012908201527f696e76616c6964206d696e7420636f756e740000000000000000000000000000604082015260600190565b6020808252601b908201527f50757263686173653a20496e636f7272656374207061796d656e740000000000604082015260600190565b6020808252602f908201527f416363657373436f6e74726f6c3a2063616e206f6e6c792072656e6f756e636560408201527f20726f6c657320666f722073656c660000000000000000000000000000000000606082015260800190565b60208082526011908201527f77616c6c6574206d696e74206c696d6974000000000000000000000000000000604082015260600190565b918252602082015260400190565b6000808335601e19843603018112613f93578283fd5b83018035915067ffffffffffffffff821115613fad578283fd5b60200191503681900382131561290157600080fd5b60405181810167ffffffffffffffff81118282101715613fe457613fe461414f565b604052919050565b600067ffffffffffffffff8211156140065761400661414f565b5060209081020190565b6000821982111561402357614023614123565b500190565b60008261403757614037614139565b500490565b600081600019048311821515161561405657614056614123565b500290565b60008282101561406d5761406d614123565b500390565b60005b8381101561408d578181015183820152602001614075565b8381111561409c576000848401525b50505050565b6000816140b1576140b1614123565b506000190190565b6002810460018216806140cd57607f821691505b602082108114156140ee57634e487b7160e01b600052602260045260246000fd5b50919050565b600060001982141561410857614108614123565b5060010190565b60008261411e5761411e614139565b500690565b634e487b7160e01b600052601160045260246000fd5b634e487b7160e01b600052601260045260246000fd5b634e487b7160e01b600052604160045260246000fd5b60e01c90565b600060443d101561417b57610de2565b600481823e6308c379a061418f8251614165565b1461419957610de2565b6040513d600319016004823e80513d67ffffffffffffffff81602484011181841117156141c95750505050610de2565b828401925082519150808211156141e35750505050610de2565b503d830160208284010111156141fb57505050610de2565b601f01601f1916810160200160405291505090565b6001600160a01b038116811461087b57600080fd5b6001600160e01b03198116811461087b57600080fdfea26469706673582212200abaf16dba38c3664b92db0f4eed248f8c019e38a3baaf3d3224be1e5d565df664736f6c63430008000033000000000000000000000000000000000000000000000000000000000000006000000000000000000000000000000000000000000000000000000000000000a000000000000000000000000000000000000000000000000000000000000000e00000000000000000000000000000000000000000000000000000000000000006506f7274616c000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000045052544c000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000036697066733a2f2f516d544c626f4833686568477441754d4377704846655a435a6e7975776e7841364a6b51514c5a42534e476a35702f00000000000000000000
Deployed Bytecode
0x6080604052600436106102d05760003560e01c80636ddb533611610179578063a22cb465116100d6578063d547741f1161008a578063f242432a11610064578063f242432a14610758578063f2fde38b14610778578063f5298aca14610798576102d0565b8063d547741f14610703578063d5abeb0114610723578063e985e9c514610738576102d0565b8063bb485b88116100bb578063bb485b88146106ae578063bd85b039146106c3578063c2868de2146106e3576102d0565b8063a22cb4651461067b578063a9fdc4c91461069b576102d0565b806391b7f5ed1161012d5780639323f562116101125780639323f562146106265780639615c30f14610646578063a217fddf14610666576102d0565b806391b7f5ed146105e657806391d1485414610606576102d0565b80638456cb591161015e5780638456cb591461058f578063888764c8146105a45780638da5cb5b146105c4576102d0565b80636ddb533614610565578063715018a61461057a576102d0565b80633f4ba83a1161023257806351cff8d9116101e65780635e403472116101c05780635e4034721461051b5780636817c76c146105305780636b20c45414610545576102d0565b806351cff8d9146104d1578063564b81ef146104f15780635c975abb14610506576102d0565b80634e1273f4116102175780634e1273f41461046f5780634f558e791461049c5780634fba122e146104bc576102d0565b80633f4ba83a1461043a578063484b973c1461044f576102d0565b80632db11544116102895780632f2ff15d1161026e5780632f2ff15d146103da578063319f98ba146103fa57806336568abe1461041a576102d0565b80632db11544146103a75780632eb2c2d6146103ba576102d0565b806302fe5305116102ba57806302fe5305146103385780630e89341c1461035a578063248a9ca314610387576102d0565b8062fdd58e146102d557806301ffc9a71461030b575b600080fd5b3480156102e157600080fd5b506102f56102f0366004613046565b6107b8565b6040516103029190613514565b60405180910390f35b34801561031757600080fd5b5061032b6103263660046131a1565b610811565b6040516103029190613509565b34801561034457600080fd5b506103586103533660046131f5565b610833565b005b34801561036657600080fd5b5061037a610375366004613165565b61087e565b604051610302919061358b565b34801561039357600080fd5b506102f56103a2366004613165565b6108de565b6103586103b5366004613165565b6108f3565b3480156103c657600080fd5b506103586103d5366004612e91565b6109e0565b3480156103e657600080fd5b506103586103f536600461317d565b610a3e565b34801561040657600080fd5b50610358610415366004613165565b610a67565b34801561042657600080fd5b5061035861043536600461317d565b610aab565b34801561044657600080fd5b50610358610af1565b34801561045b57600080fd5b5061035861046a366004613046565b610b3a565b34801561047b57600080fd5b5061048f61048a3660046130a5565b610c12565b60405161030291906134c8565b3480156104a857600080fd5b5061032b6104b7366004613165565b610d32565b3480156104c857600080fd5b506102f5610d45565b3480156104dd57600080fd5b506103586104ec366004612e3d565b610d69565b3480156104fd57600080fd5b506102f5610de0565b34801561051257600080fd5b5061032b610de5565b34801561052757600080fd5b506102f5610dee565b34801561053c57600080fd5b506102f5610df4565b34801561055157600080fd5b50610358610560366004612fa2565b610dfa565b34801561057157600080fd5b506102f5610e4f565b34801561058657600080fd5b50610358610e55565b34801561059b57600080fd5b50610358610e9e565b3480156105b057600080fd5b506103586105bf366004612e3d565b610ee5565b3480156105d057600080fd5b506105d9610f4e565b6040516103029190613413565b3480156105f257600080fd5b50610358610601366004613165565b610f5d565b34801561061257600080fd5b5061032b61062136600461317d565b610fa1565b34801561063257600080fd5b506102f561064136600461317d565b610fca565b34801561065257600080fd5b506102f561066136600461317d565b610fe7565b34801561067257600080fd5b506102f5611004565b34801561068757600080fd5b50610358610696366004613015565b611009565b6103586106a936600461323b565b61101b565b3480156106ba57600080fd5b506102f56111c7565b3480156106cf57600080fd5b506102f56106de366004613165565b6111cd565b3480156106ef57600080fd5b506103586106fe366004613274565b6111df565b34801561070f57600080fd5b5061035861071e36600461317d565b61122c565b34801561072f57600080fd5b506102f561124b565b34801561074457600080fd5b5061032b610753366004612e59565b611251565b34801561076457600080fd5b50610358610773366004612f3b565b611274565b34801561078457600080fd5b50610358610793366004612e3d565b6112cb565b3480156107a457600080fd5b506103586107b3366004613071565b611339565b60006001600160a01b0383166107e95760405162461bcd60e51b81526004016107e0906137a0565b60405180910390fd5b5060009081526002602090815260408083206001600160a01b03949094168352929052205490565b600061081c826114f0565b8061082b575061082b8261155d565b90505b919050565b61083b61159b565b6001600160a01b031661084c610f4e565b6001600160a01b0316146108725760405162461bcd60e51b81526004016107e090613c1f565b61087b8161159f565b50565b606061088982610d32565b6108a55760405162461bcd60e51b81526004016107e090613c8b565b6108ae826115b2565b6108b783611646565b6040516020016108c8929190613305565b6040516020818303038152906040529050919050565b60009081526020819052604090206001015490565b6108fb610de5565b156109185760405162461bcd60e51b81526004016107e0906139fb565b600d5442101561093a5760405162461bcd60e51b81526004016107e090613aec565b6009546000908152600f602090815260408083203384529091529020546001116109765760405162461bcd60e51b81526004016107e090613f38565b6000811180156109885750600c548111155b6109a45760405162461bcd60e51b81526004016107e09061394b565b6009546000908152600f6020908152604080832033845290915281208054600192906109d1908490614010565b9091555061087b905081611769565b6109e861159b565b6001600160a01b0316856001600160a01b03161480610a0e5750610a0e8561075361159b565b610a2a5760405162461bcd60e51b81526004016107e090613a8f565b610a37858585858561182c565b5050505050565b610a47826108de565b610a5881610a5361159b565b6119f8565b610a628383611a5c565b505050565b610a6f61159b565b6001600160a01b0316610a80610f4e565b6001600160a01b031614610aa65760405162461bcd60e51b81526004016107e090613c1f565b600955565b610ab361159b565b6001600160a01b0316816001600160a01b031614610ae35760405162461bcd60e51b81526004016107e090613edb565b610aed8282611ae1565b5050565b610af961159b565b6001600160a01b0316610b0a610f4e565b6001600160a01b031614610b305760405162461bcd60e51b81526004016107e090613c1f565b610b38611b64565b565b610b4261159b565b6001600160a01b0316610b53610f4e565b6001600160a01b031614610b795760405162461bcd60e51b81526004016107e090613c1f565b600a5481610b8760006111cd565b610b919190614010565b1115610baf5760405162461bcd60e51b81526004016107e090613cc2565b610bcb8260008360405180602001604052806000815250611bd2565b816001600160a01b031660007f7cfb504ca17ed613872a7f410dc34702087995bca0445a0418c4d1be951abc3f83604051610c069190613514565b60405180910390a35050565b60608151835114610c355760405162461bcd60e51b81526004016107e090613d56565b6000835167ffffffffffffffff811115610c5f57634e487b7160e01b600052604160045260246000fd5b604051908082528060200260200182016040528015610c88578160200160208202803683370190505b50905060005b8451811015610d2a57610cef858281518110610cba57634e487b7160e01b600052603260045260246000fd5b6020026020010151858381518110610ce257634e487b7160e01b600052603260045260246000fd5b60200260200101516107b8565b828281518110610d0f57634e487b7160e01b600052603260045260246000fd5b6020908102919091010152610d23816140f4565b9050610c8e565b509392505050565b600080610d3e836111cd565b1192915050565b7fe4115595bf7ae7cb05bc1951822961d8747bf58987ea2e3c7e4c3ff109c676a581565b610d7161159b565b6001600160a01b0316610d82610f4e565b6001600160a01b031614610da85760405162461bcd60e51b81526004016107e090613c1f565b60405147906001600160a01b0383169082156108fc029083906000818181858888f19350505050158015610a62573d6000803e3d6000fd5b465b90565b60065460ff1690565b600d5481565b600b5481565b610e0261159b565b6001600160a01b0316836001600160a01b03161480610e285750610e288361075361159b565b610e445760405162461bcd60e51b81526004016107e0906138b7565b610a62838383611cc3565b60095481565b610e5d61159b565b6001600160a01b0316610e6e610f4e565b6001600160a01b031614610e945760405162461bcd60e51b81526004016107e090613c1f565b610b386000611e77565b610ea661159b565b6001600160a01b0316610eb7610f4e565b6001600160a01b031614610edd5760405162461bcd60e51b81526004016107e090613c1f565b610b38611ee1565b610eed61159b565b6001600160a01b0316610efe610f4e565b6001600160a01b031614610f245760405162461bcd60e51b81526004016107e090613c1f565b61087b7fe4115595bf7ae7cb05bc1951822961d8747bf58987ea2e3c7e4c3ff109c676a582611f3c565b6001546001600160a01b031690565b610f6561159b565b6001600160a01b0316610f76610f4e565b6001600160a01b031614610f9c5760405162461bcd60e51b81526004016107e090613c1f565b600b55565b6000918252602082815260408084206001600160a01b0393909316845291905290205460ff1690565b600e60209081526000928352604080842090915290825290205481565b600f60209081526000928352604080842090915290825290205481565b600081565b610aed61101461159b565b8383611f46565b611023610de5565b156110405760405162461bcd60e51b81526004016107e0906139fb565b6009546000908152600e6020908152604080832033845290915290205460011161107c5760405162461bcd60e51b81526004016107e090613f38565b600061108783611fe9565b90506110b37fe4115595bf7ae7cb05bc1951822961d8747bf58987ea2e3c7e4c3ff109c676a582610fa1565b6110cf5760405162461bcd60e51b81526004016107e090613769565b82602001358211156110f35760405162461bcd60e51b81526004016107e090613e6d565b6111006020840184612e3d565b6001600160a01b0316336001600160a01b0316146111305760405162461bcd60e51b81526004016107e0906139c4565b600a548261113f6009546111cd565b6111499190614010565b11156111675760405162461bcd60e51b81526004016107e090613c54565b826040013542101561118b5760405162461bcd60e51b81526004016107e0906136c4565b6009546000908152600e6020908152604080832033845290915281208054600192906111b8908490614010565b90915550610a62905082611769565b600c5481565b60009081526005602052604090205490565b6111e761159b565b6001600160a01b03166111f8610f4e565b6001600160a01b03161461121e5760405162461bcd60e51b81526004016107e090613c1f565b600d92909255600c55600a55565b611235826108de565b61124181610a5361159b565b610a628383611ae1565b600a5481565b600061125d8383612042565b8061126d575061126d838361213b565b9392505050565b61127c61159b565b6001600160a01b0316856001600160a01b031614806112a257506112a28561075361159b565b6112be5760405162461bcd60e51b81526004016107e0906138b7565b610a378585858585612169565b6112d361159b565b6001600160a01b03166112e4610f4e565b6001600160a01b03161461130a5760405162461bcd60e51b81526004016107e090613c1f565b6001600160a01b0381166113305760405162461bcd60e51b81526004016107e0906137fd565b61087b81611e77565b61134161159b565b6001600160a01b0316836001600160a01b0316148061136757506113678361075361159b565b6113835760405162461bcd60e51b81526004016107e0906138b7565b610a62838383612298565b61139c8686868686866114e2565b6001600160a01b03851661143f5760005b835181101561143d578281815181106113d657634e487b7160e01b600052603260045260246000fd5b60200260200101516005600086848151811061140257634e487b7160e01b600052603260045260246000fd5b6020026020010151815260200190815260200160002060008282546114279190614010565b909155506114369050816140f4565b90506113ad565b505b6001600160a01b0384166114e25760005b83518110156114e05782818151811061147957634e487b7160e01b600052603260045260246000fd5b6020026020010151600560008684815181106114a557634e487b7160e01b600052603260045260246000fd5b6020026020010151815260200190815260200160002060008282546114ca919061405b565b909155506114d99050816140f4565b9050611450565b505b505050505050565b3b151590565b60006001600160e01b031982167fd9b67a2600000000000000000000000000000000000000000000000000000000148061081c57506001600160e01b031982167f0e89341c00000000000000000000000000000000000000000000000000000000148061082b575061082b825b60006001600160e01b031982167f7965db0b00000000000000000000000000000000000000000000000000000000148061082b575061082b826123ab565b3390565b8051610aed906004906020840190612cc1565b6060600480546115c1906140b9565b80601f01602080910402602001604051908101604052809291908181526020018280546115ed906140b9565b801561163a5780601f1061160f5761010080835404028352916020019161163a565b820191906000526020600020905b81548152906001019060200180831161161d57829003601f168201915b50505050509050919050565b60608161166b57506040805180820190915260018152600360fc1b602082015261082e565b8160005b8115611695578061167f816140f4565b915061168e9050600a83614028565b915061166f565b60008167ffffffffffffffff8111156116be57634e487b7160e01b600052604160045260246000fd5b6040519080825280601f01601f1916602001820160405280156116e8576020820181803683370190505b5090505b8415611761576116fd60018361405b565b915061170a600a8661410f565b611715906030614010565b60f81b81838151811061173857634e487b7160e01b600052603260045260246000fd5b60200101906001600160f81b031916908160001a90535061175a600a86614028565b94506116ec565b949350505050565b600a548161177760006111cd565b6117819190614010565b111561179f5760405162461bcd60e51b81526004016107e090613914565b600b546117ac908261403c565b34146117ca5760405162461bcd60e51b81526004016107e090613ea4565b6117e63360008360405180602001604052806000815250611bd2565b336001600160a01b031660007f7cfb504ca17ed613872a7f410dc34702087995bca0445a0418c4d1be951abc3f836040516118219190613514565b60405180910390a350565b815183511461184d5760405162461bcd60e51b81526004016107e090613db3565b6001600160a01b0384166118735760405162461bcd60e51b81526004016107e090613a32565b600061187d61159b565b905061188d8187878787876123dd565b60005b84518110156119925760008582815181106118bb57634e487b7160e01b600052603260045260246000fd5b6020026020010151905060008583815181106118e757634e487b7160e01b600052603260045260246000fd5b60209081029190910181015160008481526002835260408082206001600160a01b038e1683529093529190912054909150818110156119385760405162461bcd60e51b81526004016107e090613bc2565b60008381526002602090815260408083206001600160a01b038e8116855292528083208585039055908b16825281208054849290611977908490614010565b925050819055505050508061198b906140f4565b9050611890565b50846001600160a01b0316866001600160a01b0316826001600160a01b03167f4a39dc06d4c0dbc64b70af90fd698a233a518aa5d07e595d983b8c0526c8f7fb87876040516119e29291906134db565b60405180910390a46114e28187878787876123eb565b611a028282610fa1565b610aed57611a1a816001600160a01b031660146124f9565b611a258360206124f9565b604051602001611a36929190613392565b60408051601f198184030181529082905262461bcd60e51b82526107e09160040161358b565b611a668282610fa1565b610aed576000828152602081815260408083206001600160a01b03851684529091529020805460ff19166001179055611a9d61159b565b6001600160a01b0316816001600160a01b0316837f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d60405160405180910390a45050565b611aeb8282610fa1565b15610aed576000828152602081815260408083206001600160a01b03851684529091529020805460ff19169055611b2061159b565b6001600160a01b0316816001600160a01b0316837ff6391f5c32d9c69d2a47ea670b442974b53935d1edc7fd64eb21e047a839171b60405160405180910390a45050565b611b6c610de5565b611b885760405162461bcd60e51b81526004016107e0906136fb565b6006805460ff191690557f5db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa611bbb61159b565b604051611bc89190613413565b60405180910390a1565b6001600160a01b038416611bf85760405162461bcd60e51b81526004016107e090613e10565b6000611c0261159b565b9050611c2381600087611c14886126d4565b611c1d886126d4565b876123dd565b60008481526002602090815260408083206001600160a01b038916845290915281208054859290611c55908490614010565b92505081905550846001600160a01b031660006001600160a01b0316826001600160a01b03167fc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f628787604051611cac929190613f6f565b60405180910390a4610a378160008787878761272d565b6001600160a01b038316611ce95760405162461bcd60e51b81526004016107e090613b65565b8051825114611d0a5760405162461bcd60e51b81526004016107e090613db3565b6000611d1461159b565b9050611d34818560008686604051806020016040528060008152506123dd565b60005b8351811015611e18576000848281518110611d6257634e487b7160e01b600052603260045260246000fd5b602002602001015190506000848381518110611d8e57634e487b7160e01b600052603260045260246000fd5b60209081029190910181015160008481526002835260408082206001600160a01b038c168352909352919091205490915081811015611ddf5760405162461bcd60e51b81526004016107e09061385a565b60009283526002602090815260408085206001600160a01b038b1686529091529092209103905580611e10816140f4565b915050611d37565b5060006001600160a01b0316846001600160a01b0316826001600160a01b03167f4a39dc06d4c0dbc64b70af90fd698a233a518aa5d07e595d983b8c0526c8f7fb8686604051611e699291906134db565b60405180910390a450505050565b600180546001600160a01b038381167fffffffffffffffffffffffff0000000000000000000000000000000000000000831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b611ee9610de5565b15611f065760405162461bcd60e51b81526004016107e0906139fb565b6006805460ff191660011790557f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a258611bbb61159b565b610aed8282611a5c565b816001600160a01b0316836001600160a01b03161415611f785760405162461bcd60e51b81526004016107e090613cf9565b6001600160a01b0383811660008181526003602090815260408083209487168084529490915290819020805460ff1916851515179055517f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c3190611fdc908590613509565b60405180910390a3505050565b600080611ff5836127fe565b905061126d816120086060860186613f7d565b8080601f01602080910402602001604051908101604052809392919081815260200183838082843760009201919091525061286992505050565b600080466001811461205b57600481146120775761208f565b73a5409ec958c83c3f309868babaca7c86dcb077c1915061208f565b73f57b2c51ded3a29e6891aba85459d600256cf31791505b506001600160a01b038116158015906117615750826001600160a01b0316816001600160a01b031663c4552791866040518263ffffffff1660e01b81526004016120d99190613413565b60206040518083038186803b1580156120f157600080fd5b505afa158015612105573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061212991906131d9565b6001600160a01b031614949350505050565b6001600160a01b03918216600090815260036020908152604080832093909416825291909152205460ff1690565b6001600160a01b03841661218f5760405162461bcd60e51b81526004016107e090613a32565b600061219961159b565b90506121aa818787611c14886126d4565b60008481526002602090815260408083206001600160a01b038a168452909152902054838110156121ed5760405162461bcd60e51b81526004016107e090613bc2565b60008581526002602090815260408083206001600160a01b038b811685529252808320878503905590881682528120805486929061222c908490614010565b92505081905550856001600160a01b0316876001600160a01b0316836001600160a01b03167fc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f628888604051612282929190613f6f565b60405180910390a46114e082888888888861272d565b6001600160a01b0383166122be5760405162461bcd60e51b81526004016107e090613b65565b60006122c861159b565b90506122f8818560006122da876126d4565b6122e3876126d4565b604051806020016040528060008152506123dd565b60008381526002602090815260408083206001600160a01b03881684529091529020548281101561233b5760405162461bcd60e51b81526004016107e09061385a565b60008481526002602090815260408083206001600160a01b03808a16808652919093528184208786039055905190918516907fc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f629061239c9089908990613f6f565b60405180910390a45050505050565b6001600160e01b031981167f01ffc9a70000000000000000000000000000000000000000000000000000000014919050565b6114e286868686868661138e565b6123fd846001600160a01b03166114ea565b156114e25760405163bc197c8160e01b81526001600160a01b0385169063bc197c81906124369089908990889088908890600401613427565b602060405180830381600087803b15801561245057600080fd5b505af1925050508015612480575060408051601f3d908101601f1916820190925261247d918101906131bd565b60015b6124c95761248c61416b565b8061249757506124b1565b8060405162461bcd60e51b81526004016107e0919061358b565b60405162461bcd60e51b81526004016107e0906135d5565b6001600160e01b0319811663bc197c8160e01b146114e05760405162461bcd60e51b81526004016107e090613667565b6060600061250883600261403c565b612513906002614010565b67ffffffffffffffff81111561253957634e487b7160e01b600052604160045260246000fd5b6040519080825280601f01601f191660200182016040528015612563576020820181803683370190505b509050600360fc1b8160008151811061258c57634e487b7160e01b600052603260045260246000fd5b60200101906001600160f81b031916908160001a9053507f7800000000000000000000000000000000000000000000000000000000000000816001815181106125e557634e487b7160e01b600052603260045260246000fd5b60200101906001600160f81b031916908160001a905350600061260984600261403c565b612614906001614010565b90505b60018111156126b5577f303132333435363738396162636465660000000000000000000000000000000085600f166010811061266357634e487b7160e01b600052603260045260246000fd5b1a60f81b82828151811061268757634e487b7160e01b600052603260045260246000fd5b60200101906001600160f81b031916908160001a90535060049490941c936126ae816140a2565b9050612617565b50831561126d5760405162461bcd60e51b81526004016107e090613632565b6040805160018082528183019092526060916000919060208083019080368337019050509050828160008151811061271c57634e487b7160e01b600052603260045260246000fd5b602090810291909101015292915050565b61273f846001600160a01b03166114ea565b156114e25760405163f23a6e6160e01b81526001600160a01b0385169063f23a6e61906127789089908990889088908890600401613485565b602060405180830381600087803b15801561279257600080fd5b505af19250505080156127c2575060408051601f3d908101601f191682019092526127bf918101906131bd565b60015b6127ce5761248c61416b565b6001600160e01b0319811663f23a6e6160e01b146114e05760405162461bcd60e51b81526004016107e090613667565b600061082b7f3f275fccc8eae6c2a0844811e23a340ef4154c2e02c42659e2d5076e72dcff516128316020850185612e3d565b8460200135856040013560405160200161284e949392919061351d565b60405160208183030381529060405280519060200120612885565b60008060006128788585612898565b91509150610d2a81612908565b600061082b612892612a35565b83612b2c565b6000808251604114156128cf5760208301516040840151606085015160001a6128c387828585612b5f565b94509450505050612901565b8251604014156128f957602083015160408401516128ee868383612c3f565b935093505050612901565b506000905060025b9250929050565b600081600481111561292a57634e487b7160e01b600052602160045260246000fd5b14156129355761087b565b600181600481111561295757634e487b7160e01b600052602160045260246000fd5b14156129755760405162461bcd60e51b81526004016107e09061359e565b600281600481111561299757634e487b7160e01b600052602160045260246000fd5b14156129b55760405162461bcd60e51b81526004016107e090613732565b60038160048111156129d757634e487b7160e01b600052602160045260246000fd5b14156129f55760405162461bcd60e51b81526004016107e090613982565b6004816004811115612a1757634e487b7160e01b600052602160045260246000fd5b141561087b5760405162461bcd60e51b81526004016107e090613b23565b6000306001600160a01b037f000000000000000000000000d374410e9bb22f3771ffbd0b40a07c0cf44a04fc16148015612a8e57507f000000000000000000000000000000000000000000000000000000000000000146145b15612aba57507fb8708eae186924bd0ea75613f004d988f10c5c0a8f21ac0bb551226e83c5c72b610de2565b612b257f8b73c3c69bb8fe3d512ecc4cf759cc79239f7b179b0ffacaa9a75d522b39400f7fe2c71ec89b6f3fcc4a5d3255095944c4525b57bbacc1bdb07e23423c528e067e7fc89efdaa54c0f20c7adf612882df0950f5a951637e0307cdcb4c672f298b8bc6612c87565b9050610de2565b60008282604051602001612b4192919061335c565b60405160208183030381529060405280519060200120905092915050565b6000807f7fffffffffffffffffffffffffffffff5d576e7357a4501ddfe92f46681b20a0831115612b965750600090506003612c36565b8460ff16601b14158015612bae57508460ff16601c14155b15612bbf5750600090506004612c36565b600060018787878760405160008152602001604052604051612be4949392919061356d565b6020604051602081039080840390855afa158015612c06573d6000803e3d6000fd5b5050604051601f1901519150506001600160a01b038116612c2f57600060019250925050612c36565b9150600090505b94509492505050565b6000807f7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff831660ff84901c601b01612c7987828885612b5f565b935093505050935093915050565b60008383834630604051602001612ca2959493929190613541565b6040516020818303038152906040528051906020012090509392505050565b828054612ccd906140b9565b90600052602060002090601f016020900481019282612cef5760008555612d35565b82601f10612d0857805160ff1916838001178555612d35565b82800160010185558215612d35579182015b82811115612d35578251825591602001919060010190612d1a565b50612d41929150612d45565b5090565b5b80821115612d415760008155600101612d46565b600067ffffffffffffffff831115612d7457612d7461414f565b612d87601f8401601f1916602001613fc2565b9050828152838383011115612d9b57600080fd5b828260208301376000602084830101529392505050565b600082601f830112612dc2578081fd5b81356020612dd7612dd283613fec565b613fc2565b8281528181019085830183850287018401881015612df3578586fd5b855b85811015612e1157813584529284019290840190600101612df5565b5090979650505050505050565b600082601f830112612e2e578081fd5b61126d83833560208501612d5a565b600060208284031215612e4e578081fd5b813561126d81614210565b60008060408385031215612e6b578081fd5b8235612e7681614210565b91506020830135612e8681614210565b809150509250929050565b600080600080600060a08688031215612ea8578081fd5b8535612eb381614210565b94506020860135612ec381614210565b9350604086013567ffffffffffffffff80821115612edf578283fd5b612eeb89838a01612db2565b94506060880135915080821115612f00578283fd5b612f0c89838a01612db2565b93506080880135915080821115612f21578283fd5b50612f2e88828901612e1e565b9150509295509295909350565b600080600080600060a08688031215612f52578081fd5b8535612f5d81614210565b94506020860135612f6d81614210565b93506040860135925060608601359150608086013567ffffffffffffffff811115612f96578182fd5b612f2e88828901612e1e565b600080600060608486031215612fb6578283fd5b8335612fc181614210565b9250602084013567ffffffffffffffff80821115612fdd578384fd5b612fe987838801612db2565b93506040860135915080821115612ffe578283fd5b5061300b86828701612db2565b9150509250925092565b60008060408385031215613027578182fd5b823561303281614210565b915060208301358015158114612e86578182fd5b60008060408385031215613058578182fd5b823561306381614210565b946020939093013593505050565b600080600060608486031215613085578081fd5b833561309081614210565b95602085013595506040909401359392505050565b600080604083850312156130b7578182fd5b823567ffffffffffffffff808211156130ce578384fd5b818501915085601f8301126130e1578384fd5b813560206130f1612dd283613fec565b82815281810190858301838502870184018b101561310d578889fd5b8896505b8487101561313857803561312481614210565b835260019690960195918301918301613111565b509650508601359250508082111561314e578283fd5b5061315b85828601612db2565b9150509250929050565b600060208284031215613176578081fd5b5035919050565b6000806040838503121561318f578182fd5b823591506020830135612e8681614210565b6000602082840312156131b2578081fd5b813561126d81614225565b6000602082840312156131ce578081fd5b815161126d81614225565b6000602082840312156131ea578081fd5b815161126d81614210565b600060208284031215613206578081fd5b813567ffffffffffffffff81111561321c578182fd5b8201601f8101841361322c578182fd5b61176184823560208401612d5a565b6000806040838503121561324d578182fd5b823567ffffffffffffffff811115613263578283fd5b830160808186031215613063578283fd5b600080600060608486031215613288578081fd5b505081359360208301359350604090920135919050565b6000815180845260208085019450808401835b838110156132ce578151875295820195908201906001016132b2565b509495945050505050565b600081518084526132f1816020860160208601614072565b601f01601f19169290920160200192915050565b60008351613317818460208801614072565b83519083019061332b818360208801614072565b7f2e6a736f6e0000000000000000000000000000000000000000000000000000009101908152600501949350505050565b7f190100000000000000000000000000000000000000000000000000000000000081526002810192909252602282015260420190565b60007f416363657373436f6e74726f6c3a206163636f756e7420000000000000000000825283516133ca816017850160208801614072565b7f206973206d697373696e6720726f6c65200000000000000000000000000000006017918401918201528351613407816028840160208801614072565b01602801949350505050565b6001600160a01b0391909116815260200190565b60006001600160a01b03808816835280871660208401525060a0604083015261345360a083018661329f565b8281036060840152613465818661329f565b9050828103608084015261347981856132d9565b98975050505050505050565b60006001600160a01b03808816835280871660208401525084604083015283606083015260a060808301526134bd60a08301846132d9565b979650505050505050565b60006020825261126d602083018461329f565b6000604082526134ee604083018561329f565b8281036020840152613500818561329f565b95945050505050565b901515815260200190565b90815260200190565b9384526001600160a01b039290921660208401526040830152606082015260800190565b9485526020850193909352604084019190915260608301526001600160a01b0316608082015260a00190565b93845260ff9290921660208401526040830152606082015260800190565b60006020825261126d60208301846132d9565b60208082526018908201527f45434453413a20696e76616c6964207369676e61747572650000000000000000604082015260600190565b60208082526034908201527f455243313135353a207472616e7366657220746f206e6f6e204552433131353560408201527f526563656976657220696d706c656d656e746572000000000000000000000000606082015260800190565b6020808252818101527f537472696e67733a20686578206c656e67746820696e73756666696369656e74604082015260600190565b60208082526028908201527f455243313135353a204552433131353552656365697665722072656a6563746560408201527f6420746f6b656e73000000000000000000000000000000000000000000000000606082015260800190565b60208082526011908201527f696e76616c6964206d696e742074696d65000000000000000000000000000000604082015260600190565b60208082526014908201527f5061757361626c653a206e6f7420706175736564000000000000000000000000604082015260600190565b6020808252601f908201527f45434453413a20696e76616c6964207369676e6174757265206c656e67746800604082015260600190565b60208082526011908201527f7369676e617475726520696e76616c6964000000000000000000000000000000604082015260600190565b6020808252602b908201527f455243313135353a2062616c616e636520717565727920666f7220746865207a60408201527f65726f2061646472657373000000000000000000000000000000000000000000606082015260800190565b60208082526026908201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160408201527f6464726573730000000000000000000000000000000000000000000000000000606082015260800190565b60208082526024908201527f455243313135353a206275726e20616d6f756e7420657863656564732062616c60408201527f616e636500000000000000000000000000000000000000000000000000000000606082015260800190565b60208082526029908201527f455243313135353a2063616c6c6572206973206e6f74206f776e6572206e6f7260408201527f20617070726f7665640000000000000000000000000000000000000000000000606082015260800190565b6020808252601c908201527f50757263686173653a204d617820737570706c79207265616368656400000000604082015260600190565b60208082526018908201527f65786365656473206d6178206e667473207065722074786e0000000000000000604082015260600190565b60208082526022908201527f45434453413a20696e76616c6964207369676e6174757265202773272076616c604082015261756560f01b606082015260800190565b6020808252600f908201527f696e76616c696420766f75636865720000000000000000000000000000000000604082015260600190565b60208082526010908201527f5061757361626c653a2070617573656400000000000000000000000000000000604082015260600190565b60208082526025908201527f455243313135353a207472616e7366657220746f20746865207a65726f20616460408201527f6472657373000000000000000000000000000000000000000000000000000000606082015260800190565b60208082526032908201527f455243313135353a207472616e736665722063616c6c6572206973206e6f742060408201527f6f776e6572206e6f7220617070726f7665640000000000000000000000000000606082015260800190565b60208082526012908201527f7075626c6963206d696e7420636c6f7365640000000000000000000000000000604082015260600190565b60208082526022908201527f45434453413a20696e76616c6964207369676e6174757265202776272076616c604082015261756560f01b606082015260800190565b60208082526023908201527f455243313135353a206275726e2066726f6d20746865207a65726f206164647260408201527f6573730000000000000000000000000000000000000000000000000000000000606082015260800190565b6020808252602a908201527f455243313135353a20696e73756666696369656e742062616c616e636520666f60408201527f72207472616e7366657200000000000000000000000000000000000000000000606082015260800190565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b6020808252600f908201527f737570706c792065786365656465640000000000000000000000000000000000604082015260600190565b60208082526016908201527f5552493a206e6f6e6578697374656e7420746f6b656e00000000000000000000604082015260600190565b60208082526012908201527f4d617820737570706c7920726561636865640000000000000000000000000000604082015260600190565b60208082526029908201527f455243313135353a2073657474696e6720617070726f76616c2073746174757360408201527f20666f722073656c660000000000000000000000000000000000000000000000606082015260800190565b60208082526029908201527f455243313135353a206163636f756e747320616e6420696473206c656e67746860408201527f206d69736d617463680000000000000000000000000000000000000000000000606082015260800190565b60208082526028908201527f455243313135353a2069647320616e6420616d6f756e7473206c656e6774682060408201527f6d69736d61746368000000000000000000000000000000000000000000000000606082015260800190565b60208082526021908201527f455243313135353a206d696e7420746f20746865207a65726f2061646472657360408201527f7300000000000000000000000000000000000000000000000000000000000000606082015260800190565b60208082526012908201527f696e76616c6964206d696e7420636f756e740000000000000000000000000000604082015260600190565b6020808252601b908201527f50757263686173653a20496e636f7272656374207061796d656e740000000000604082015260600190565b6020808252602f908201527f416363657373436f6e74726f6c3a2063616e206f6e6c792072656e6f756e636560408201527f20726f6c657320666f722073656c660000000000000000000000000000000000606082015260800190565b60208082526011908201527f77616c6c6574206d696e74206c696d6974000000000000000000000000000000604082015260600190565b918252602082015260400190565b6000808335601e19843603018112613f93578283fd5b83018035915067ffffffffffffffff821115613fad578283fd5b60200191503681900382131561290157600080fd5b60405181810167ffffffffffffffff81118282101715613fe457613fe461414f565b604052919050565b600067ffffffffffffffff8211156140065761400661414f565b5060209081020190565b6000821982111561402357614023614123565b500190565b60008261403757614037614139565b500490565b600081600019048311821515161561405657614056614123565b500290565b60008282101561406d5761406d614123565b500390565b60005b8381101561408d578181015183820152602001614075565b8381111561409c576000848401525b50505050565b6000816140b1576140b1614123565b506000190190565b6002810460018216806140cd57607f821691505b602082108114156140ee57634e487b7160e01b600052602260045260246000fd5b50919050565b600060001982141561410857614108614123565b5060010190565b60008261411e5761411e614139565b500690565b634e487b7160e01b600052601160045260246000fd5b634e487b7160e01b600052601260045260246000fd5b634e487b7160e01b600052604160045260246000fd5b60e01c90565b600060443d101561417b57610de2565b600481823e6308c379a061418f8251614165565b1461419957610de2565b6040513d600319016004823e80513d67ffffffffffffffff81602484011181841117156141c95750505050610de2565b828401925082519150808211156141e35750505050610de2565b503d830160208284010111156141fb57505050610de2565b601f01601f1916810160200160405291505090565b6001600160a01b038116811461087b57600080fd5b6001600160e01b03198116811461087b57600080fdfea26469706673582212200abaf16dba38c3664b92db0f4eed248f8c019e38a3baaf3d3224be1e5d565df664736f6c63430008000033
Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)
000000000000000000000000000000000000000000000000000000000000006000000000000000000000000000000000000000000000000000000000000000a000000000000000000000000000000000000000000000000000000000000000e00000000000000000000000000000000000000000000000000000000000000006506f7274616c000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000045052544c000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000036697066733a2f2f516d544c626f4833686568477441754d4377704846655a435a6e7975776e7841364a6b51514c5a42534e476a35702f00000000000000000000
-----Decoded View---------------
Arg [0] : _name (string): Portal
Arg [1] : _symbol (string): PRTL
Arg [2] : _uri (string): ipfs://QmTLboH3hehGtAuMCwpHFeZCZnyuwnxA6JkQQLZBSNGj5p/
-----Encoded View---------------
10 Constructor Arguments found :
Arg [0] : 0000000000000000000000000000000000000000000000000000000000000060
Arg [1] : 00000000000000000000000000000000000000000000000000000000000000a0
Arg [2] : 00000000000000000000000000000000000000000000000000000000000000e0
Arg [3] : 0000000000000000000000000000000000000000000000000000000000000006
Arg [4] : 506f7274616c0000000000000000000000000000000000000000000000000000
Arg [5] : 0000000000000000000000000000000000000000000000000000000000000004
Arg [6] : 5052544c00000000000000000000000000000000000000000000000000000000
Arg [7] : 0000000000000000000000000000000000000000000000000000000000000036
Arg [8] : 697066733a2f2f516d544c626f4833686568477441754d4377704846655a435a
Arg [9] : 6e7975776e7841364a6b51514c5a42534e476a35702f00000000000000000000
Loading...
Loading
Loading...
Loading
[ Download: CSV Export ]
[ Download: CSV Export ]
A token is a representation of an on-chain or off-chain asset. The token page shows information such as price, total supply, holders, transfers and social links. Learn more about this page in our Knowledge Base.