ERC-1155
Overview
Max Total Supply
1,381 CSA-G1-M
Holders
260
Total Transfers
-
Market
Volume (24H)
N/A
Min Price (24H)
N/A
Max Price (24H)
N/A
Other Info
Token Contract
Loading...
Loading
Loading...
Loading
Loading...
Loading
# | Exchange | Pair | Price | 24H Volume | % Volume |
---|
Contract Name:
HyperMintERC1155
Compiler Version
v0.8.2+commit.661d1103
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.2; import "@openzeppelin/contracts/token/ERC1155/ERC1155.sol"; import "@openzeppelin/contracts/access/Ownable.sol"; import "@openzeppelin/contracts/interfaces/IERC2981.sol"; import "@openzeppelin/contracts/interfaces/IERC20.sol"; import "@openzeppelin/contracts/token/ERC1155/extensions/ERC1155Burnable.sol"; import "@openzeppelin/contracts/security/ReentrancyGuard.sol"; import "@openzeppelin/contracts/token/ERC20/utils/SafeERC20.sol"; contract HyperMintERC1155 is ERC1155, Ownable, ERC1155Burnable, ReentrancyGuard { using SafeERC20 for IERC20; string public name; string public symbol; string public contractURI; uint256[] public prices; uint256[] public supplies; uint256[] public totalSupplies; uint256[] public maxPerAddresses; bool public allowBuy; uint256 public presaleDate; uint256 public publicSaleDate; uint256 public saleCloseDate; address customerAddress; address presaleAddress; address purchaseTokenAddress; address primaryRoyaltyReceiver; address secondaryRoyaltyReceiver; uint96 primaryRoyaltyFee; uint96 secondaryRoyaltyFee; struct TokenInfo { uint256[] prices; uint256[] supplies; uint256[] totalSupplies; uint256[] maxPerAddresses; } constructor (string memory _name, string memory _symbol, string memory _contractMetadataURI, string memory _tokenMetadataURI, bool _allowBuy, address _customerAddress, address _presaleAddress) ERC1155("") { name = _name; symbol = _symbol; allowBuy = _allowBuy; customerAddress = _customerAddress; presaleAddress = _presaleAddress; _setURI(_tokenMetadataURI); contractURI = _contractMetadataURI; } function setPurchaseToken(address _purchaseToken) public onlyOwner{ purchaseTokenAddress = _purchaseToken; } function getTokenInfo() public view returns (TokenInfo memory){ return TokenInfo( prices, supplies, totalSupplies, maxPerAddresses ); } function totalSupply(uint256 tokenId) public view returns (uint256){ return totalSupplies[tokenId]; } function setNameAndSymbol(string memory _name, string memory _symbol) public onlyOwner { name = _name; symbol = _symbol; } function setMetadataURIs(string memory _contractURI, string memory _tokenURI) public onlyOwner { contractURI = _contractURI; _setURI(_tokenURI); } function setDates(uint256 _presale, uint256 _publicSale, uint256 _saleClosed) public onlyOwner { presaleDate = _presale; publicSaleDate = _publicSale; saleCloseDate = _saleClosed; } function setTokenData(uint256 id, uint256 _price, uint256 _supply, uint256 _maxPerAddress) public onlyOwner { require(supplies[id] <= _supply, "Supply too low"); prices[id] = _price; totalSupplies[id] = _supply; maxPerAddresses[id] = _maxPerAddress; } function setCustomerAddresses(address _customerAddress, address _presaleAddress) public onlyOwner { customerAddress = _customerAddress; presaleAddress = _presaleAddress; } function setAllowBuy(bool _allowBuy) public onlyOwner { allowBuy = _allowBuy; } function mintBatch(address[] memory to, uint256[][] memory ids, uint256[][] memory amounts) public onlyOwner { for (uint i = 0; i < to.length; i++) { for (uint j = 0; j < ids[i].length; j++) { require(supplies[ids[i][j]] + amounts[i][j] <= totalSupplies[ids[i][j]], "Not enough supply"); supplies[ids[i][j]] += amounts[i][j]; } _mintBatch(to[i], ids[i], amounts[i], "0x"); } } function addTokens(uint256[] memory newSupplies, uint256[] memory newPrices, uint256[] memory newMaxPerAddresses) public onlyOwner { require(newSupplies.length == newPrices.length, "Array length mismatch"); for (uint i = 0; i < newSupplies.length; i++) { totalSupplies.push(newSupplies[i]); supplies.push(0); prices.push(newPrices[i]); maxPerAddresses.push(newMaxPerAddresses[i]); } } function _buy(uint256 id, uint256 amount) internal { if (saleCloseDate != 0) { require(block.timestamp < saleCloseDate, "Sale closed"); } require(supplies[id] + amount <= totalSupplies[id], "Not enough supply"); if (maxPerAddresses[id] != 0) { require(balanceOf(msg.sender, id) + amount <= maxPerAddresses[id], "Max per address limit"); } supplies[id] += amount; _mint(msg.sender, id, amount, "0x"); uint256 saleAmount = prices[id] * amount; uint256 royaltyAmount = (saleAmount * primaryRoyaltyFee) / 10000; if(purchaseTokenAddress == address(0)){ require(msg.value >= saleAmount, "Insufficient value"); payable(primaryRoyaltyReceiver).transfer(royaltyAmount); payable(customerAddress).transfer(saleAmount - royaltyAmount); } else{ IERC20 token = IERC20(purchaseTokenAddress); token.safeTransferFrom(msg.sender, primaryRoyaltyReceiver, royaltyAmount); token.safeTransferFrom(msg.sender, customerAddress, saleAmount - royaltyAmount); } } function buy(uint256 id, uint256 amount) nonReentrant external payable { require(allowBuy, "Buy disabled"); require(block.timestamp >= publicSaleDate, "Public sale closed"); _buy(id, amount); } function buyPresale(uint256 id, uint256 amount, uint8 _v, bytes32 _r, bytes32 _s) nonReentrant external payable { require(allowBuy, "Buy disabled"); require(block.timestamp >= presaleDate, "Presale closed"); require(isMessageSignedByPresaleAddress(msg.sender, _v, _r, _s), "Not authorised"); _buy(id, amount); } function isMessageSignedByPresaleAddress(address _address, uint8 _v, bytes32 _r, bytes32 _s) view internal returns (bool) { bytes32 hash = keccak256(abi.encodePacked(address(this), _address)); return presaleAddress == ecrecover(keccak256(abi.encodePacked("\x19Ethereum Signed Message:\n32", hash)), _v, _r, _s); } function transferContractOwnership() public { require(msg.sender == customerAddress, "Not authorised"); _transferOwnership(customerAddress); } function setRoyalty(address primaryReceiver, address secondaryReceiver, uint96 primaryFee, uint96 secondaryFee) public onlyOwner { primaryRoyaltyReceiver = primaryReceiver; secondaryRoyaltyReceiver = secondaryReceiver; primaryRoyaltyFee = primaryFee; secondaryRoyaltyFee = secondaryFee; } function royaltyInfo(uint256 _tokenId, uint256 _salePrice) external view returns (address, uint256) { uint256 royaltyAmount = (_salePrice * secondaryRoyaltyFee) / 10000; return (secondaryRoyaltyReceiver, royaltyAmount); } function supportsInterface(bytes4 interfaceId) public view virtual override(ERC1155) returns (bool) { return (interfaceId == type(IERC2981).interfaceId || super.supportsInterface(interfaceId)); } }
// 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 (access/Ownable.sol) pragma solidity ^0.8.0; import "../utils/Context.sol"; /** * @dev Contract module which provides a basic access control mechanism, where * there is an account (an owner) that can be granted exclusive access to * specific functions. * * By default, the owner account will be the one that deploys the contract. This * can later be changed with {transferOwnership}. * * This module is used through inheritance. It will make available the modifier * `onlyOwner`, which can be applied to your functions to restrict their use to * the owner. */ abstract contract Ownable is Context { address private _owner; event OwnershipTransferred(address indexed previousOwner, address indexed newOwner); /** * @dev Initializes the contract setting the deployer as the initial owner. */ constructor() { _transferOwnership(_msgSender()); } /** * @dev Returns the address of the current owner. */ function owner() public view virtual returns (address) { return _owner; } /** * @dev Throws if called by any account other than the owner. */ modifier onlyOwner() { require(owner() == _msgSender(), "Ownable: caller is not the owner"); _; } /** * @dev Leaves the contract without owner. It will not be possible to call * `onlyOwner` functions anymore. Can only be called by the current owner. * * NOTE: Renouncing ownership will leave the contract without an owner, * thereby removing any functionality that is only available to the owner. */ function renounceOwnership() public virtual onlyOwner { _transferOwnership(address(0)); } /** * @dev Transfers ownership of the contract to a new account (`newOwner`). * Can only be called by the current owner. */ function transferOwnership(address newOwner) public virtual onlyOwner { require(newOwner != address(0), "Ownable: new owner is the zero address"); _transferOwnership(newOwner); } /** * @dev Transfers ownership of the contract to a new account (`newOwner`). * Internal function without access restriction. */ function _transferOwnership(address newOwner) internal virtual { address oldOwner = _owner; _owner = newOwner; emit OwnershipTransferred(oldOwner, newOwner); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.5.0) (interfaces/IERC2981.sol) pragma solidity ^0.8.0; import "./IERC165.sol"; /** * @dev Interface for the NFT Royalty Standard. * * A standardized way to retrieve royalty payment information for non-fungible tokens (NFTs) to enable universal * support for royalty payments across all NFT marketplaces and ecosystem participants. * * _Available since v4.5._ */ interface IERC2981 is IERC165 { /** * @dev Returns how much royalty is owed and to whom, based on a sale price that may be denominated in any unit of * exchange. The royalty amount is denominated and should be payed in that same unit of exchange. */ function royaltyInfo(uint256 tokenId, uint256 salePrice) external view returns (address receiver, uint256 royaltyAmount); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (interfaces/IERC20.sol) pragma solidity ^0.8.0; import "../token/ERC20/IERC20.sol";
// 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/ReentrancyGuard.sol) pragma solidity ^0.8.0; /** * @dev Contract module that helps prevent reentrant calls to a function. * * Inheriting from `ReentrancyGuard` will make the {nonReentrant} modifier * available, which can be applied to functions to make sure there are no nested * (reentrant) calls to them. * * Note that because there is a single `nonReentrant` guard, functions marked as * `nonReentrant` may not call one another. This can be worked around by making * those functions `private`, and then adding `external` `nonReentrant` entry * points to them. * * TIP: If you would like to learn more about reentrancy and alternative ways * to protect against it, check out our blog post * https://blog.openzeppelin.com/reentrancy-after-istanbul/[Reentrancy After Istanbul]. */ abstract contract ReentrancyGuard { // Booleans are more expensive than uint256 or any type that takes up a full // word because each write operation emits an extra SLOAD to first read the // slot's contents, replace the bits taken up by the boolean, and then write // back. This is the compiler's defense against contract upgrades and // pointer aliasing, and it cannot be disabled. // The values being non-zero value makes deployment a bit more expensive, // but in exchange the refund on every call to nonReentrant will be lower in // amount. Since refunds are capped to a percentage of the total // transaction's gas, it is best to keep them low in cases like this one, to // increase the likelihood of the full refund coming into effect. uint256 private constant _NOT_ENTERED = 1; uint256 private constant _ENTERED = 2; uint256 private _status; constructor() { _status = _NOT_ENTERED; } /** * @dev Prevents a contract from calling itself, directly or indirectly. * Calling a `nonReentrant` function from another `nonReentrant` * function is not supported. It is possible to prevent this from happening * by making the `nonReentrant` function external, and making it call a * `private` function that does the actual work. */ modifier nonReentrant() { // On the first call to nonReentrant, _notEntered will be true require(_status != _ENTERED, "ReentrancyGuard: reentrant call"); // Any calls to nonReentrant after this point will fail _status = _ENTERED; _; // By storing the original value once again, a refund is triggered (see // https://eips.ethereum.org/EIPS/eip-2200) _status = _NOT_ENTERED; } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (token/ERC20/utils/SafeERC20.sol) pragma solidity ^0.8.0; import "../IERC20.sol"; import "../../../utils/Address.sol"; /** * @title SafeERC20 * @dev Wrappers around ERC20 operations that throw on failure (when the token * contract returns false). Tokens that return no value (and instead revert or * throw on failure) are also supported, non-reverting calls are assumed to be * successful. * To use this library you can add a `using SafeERC20 for IERC20;` statement to your contract, * which allows you to call the safe operations as `token.safeTransfer(...)`, etc. */ library SafeERC20 { using Address for address; function safeTransfer( IERC20 token, address to, uint256 value ) internal { _callOptionalReturn(token, abi.encodeWithSelector(token.transfer.selector, to, value)); } function safeTransferFrom( IERC20 token, address from, address to, uint256 value ) internal { _callOptionalReturn(token, abi.encodeWithSelector(token.transferFrom.selector, from, to, value)); } /** * @dev Deprecated. This function has issues similar to the ones found in * {IERC20-approve}, and its usage is discouraged. * * Whenever possible, use {safeIncreaseAllowance} and * {safeDecreaseAllowance} instead. */ function safeApprove( IERC20 token, address spender, uint256 value ) internal { // safeApprove should only be called when setting an initial allowance, // or when resetting it to zero. To increase and decrease it, use // 'safeIncreaseAllowance' and 'safeDecreaseAllowance' require( (value == 0) || (token.allowance(address(this), spender) == 0), "SafeERC20: approve from non-zero to non-zero allowance" ); _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, value)); } function safeIncreaseAllowance( IERC20 token, address spender, uint256 value ) internal { uint256 newAllowance = token.allowance(address(this), spender) + value; _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, newAllowance)); } function safeDecreaseAllowance( IERC20 token, address spender, uint256 value ) internal { unchecked { uint256 oldAllowance = token.allowance(address(this), spender); require(oldAllowance >= value, "SafeERC20: decreased allowance below zero"); uint256 newAllowance = oldAllowance - value; _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, newAllowance)); } } /** * @dev Imitates a Solidity high-level call (i.e. a regular function call to a contract), relaxing the requirement * on the return value: the return value is optional (but if data is returned, it must not be false). * @param token The token targeted by the call. * @param data The call data (encoded using abi.encode or one of its variants). */ function _callOptionalReturn(IERC20 token, bytes memory data) private { // We need to perform a low level call here, to bypass Solidity's return data size checking mechanism, since // we're implementing it ourselves. We use {Address.functionCall} to perform this call, which verifies that // the target address contains contract code and also asserts for success in the low-level call. bytes memory returndata = address(token).functionCall(data, "SafeERC20: low-level call failed"); if (returndata.length > 0) { // Return data is optional require(abi.decode(returndata, (bool)), "SafeERC20: ERC20 operation did not succeed"); } } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (token/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 (last updated v4.5.0) (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. * * NOTE: 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. * * NOTE: 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 (last updated v4.5.0) (utils/Address.sol) pragma solidity ^0.8.1; /** * @dev Collection of functions related to the address type */ library Address { /** * @dev Returns true if `account` is a contract. * * [IMPORTANT] * ==== * It is unsafe to assume that an address for which this function returns * false is an externally-owned account (EOA) and not a contract. * * Among others, `isContract` will return false for the following * types of addresses: * * - an externally-owned account * - a contract in construction * - an address where a contract will be created * - an address where a contract lived, but was destroyed * ==== * * [IMPORTANT] * ==== * You shouldn't rely on `isContract` to protect against flash loan attacks! * * Preventing calls from contracts is highly discouraged. It breaks composability, breaks support for smart wallets * like Gnosis Safe, and does not provide security since it can be circumvented by calling from a contract * constructor. * ==== */ function isContract(address account) internal view returns (bool) { // This method relies on extcodesize/address.code.length, which returns 0 // for contracts in construction, since the code is only stored at the end // of the constructor execution. return account.code.length > 0; } /** * @dev Replacement for Solidity's `transfer`: sends `amount` wei to * `recipient`, forwarding all available gas and reverting on errors. * * https://eips.ethereum.org/EIPS/eip-1884[EIP1884] increases the gas cost * of certain opcodes, possibly making contracts go over the 2300 gas limit * imposed by `transfer`, making them unable to receive funds via * `transfer`. {sendValue} removes this limitation. * * https://diligence.consensys.net/posts/2019/09/stop-using-soliditys-transfer-now/[Learn more]. * * IMPORTANT: because control is transferred to `recipient`, care must be * taken to not create reentrancy vulnerabilities. Consider using * {ReentrancyGuard} or the * https://solidity.readthedocs.io/en/v0.5.11/security-considerations.html#use-the-checks-effects-interactions-pattern[checks-effects-interactions pattern]. */ function sendValue(address payable recipient, uint256 amount) internal { require(address(this).balance >= amount, "Address: insufficient balance"); (bool success, ) = recipient.call{value: amount}(""); require(success, "Address: unable to send value, recipient may have reverted"); } /** * @dev Performs a Solidity function call using a low level `call`. A * plain `call` is an unsafe replacement for a function call: use this * function instead. * * If `target` reverts with a revert reason, it is bubbled up by this * function (like regular Solidity function calls). * * Returns the raw returned data. To convert to the expected return value, * use https://solidity.readthedocs.io/en/latest/units-and-global-variables.html?highlight=abi.decode#abi-encoding-and-decoding-functions[`abi.decode`]. * * Requirements: * * - `target` must be a contract. * - calling `target` with `data` must not revert. * * _Available since v3.1._ */ function functionCall(address target, bytes memory data) internal returns (bytes memory) { return functionCall(target, data, "Address: low-level call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], but with * `errorMessage` as a fallback revert reason when `target` reverts. * * _Available since v3.1._ */ function functionCall( address target, bytes memory data, string memory errorMessage ) internal returns (bytes memory) { return functionCallWithValue(target, data, 0, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but also transferring `value` wei to `target`. * * Requirements: * * - the calling contract must have an ETH balance of at least `value`. * - the called Solidity function must be `payable`. * * _Available since v3.1._ */ function functionCallWithValue( address target, bytes memory data, uint256 value ) internal returns (bytes memory) { return functionCallWithValue(target, data, value, "Address: low-level call with value failed"); } /** * @dev Same as {xref-Address-functionCallWithValue-address-bytes-uint256-}[`functionCallWithValue`], but * with `errorMessage` as a fallback revert reason when `target` reverts. * * _Available since v3.1._ */ function functionCallWithValue( address target, bytes memory data, uint256 value, string memory errorMessage ) internal returns (bytes memory) { require(address(this).balance >= value, "Address: insufficient balance for call"); require(isContract(target), "Address: call to non-contract"); (bool success, bytes memory returndata) = target.call{value: value}(data); return verifyCallResult(success, returndata, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but performing a static call. * * _Available since v3.3._ */ function functionStaticCall(address target, bytes memory data) internal view returns (bytes memory) { return functionStaticCall(target, data, "Address: low-level static call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`], * but performing a static call. * * _Available since v3.3._ */ function functionStaticCall( address target, bytes memory data, string memory errorMessage ) internal view returns (bytes memory) { require(isContract(target), "Address: static call to non-contract"); (bool success, bytes memory returndata) = target.staticcall(data); return verifyCallResult(success, returndata, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but performing a delegate call. * * _Available since v3.4._ */ function functionDelegateCall(address target, bytes memory data) internal returns (bytes memory) { return functionDelegateCall(target, data, "Address: low-level delegate call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`], * but performing a delegate call. * * _Available since v3.4._ */ function functionDelegateCall( address target, bytes memory data, string memory errorMessage ) internal returns (bytes memory) { require(isContract(target), "Address: delegate call to non-contract"); (bool success, bytes memory returndata) = target.delegatecall(data); return verifyCallResult(success, returndata, errorMessage); } /** * @dev Tool to verifies that a low level call was successful, and revert if it wasn't, either by bubbling the * revert reason using the provided one. * * _Available since v4.3._ */ function verifyCallResult( bool success, bytes memory returndata, string memory errorMessage ) internal pure returns (bytes memory) { if (success) { return returndata; } else { // Look for revert reason and bubble it up if present if (returndata.length > 0) { // The easiest way to bubble the revert reason is using memory via assembly 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 (interfaces/IERC165.sol) pragma solidity ^0.8.0; import "../utils/introspection/IERC165.sol";
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.5.0) (token/ERC20/IERC20.sol) pragma solidity ^0.8.0; /** * @dev Interface of the ERC20 standard as defined in the EIP. */ interface IERC20 { /** * @dev Returns the amount of tokens in existence. */ function totalSupply() external view returns (uint256); /** * @dev Returns the amount of tokens owned by `account`. */ function balanceOf(address account) external view returns (uint256); /** * @dev Moves `amount` tokens from the caller's account to `to`. * * Returns a boolean value indicating whether the operation succeeded. * * Emits a {Transfer} event. */ function transfer(address to, uint256 amount) external returns (bool); /** * @dev Returns the remaining number of tokens that `spender` will be * allowed to spend on behalf of `owner` through {transferFrom}. This is * zero by default. * * This value changes when {approve} or {transferFrom} are called. */ function allowance(address owner, address spender) external view returns (uint256); /** * @dev Sets `amount` as the allowance of `spender` over the caller's tokens. * * Returns a boolean value indicating whether the operation succeeded. * * IMPORTANT: Beware that changing an allowance with this method brings the risk * that someone may use both the old and the new allowance by unfortunate * transaction ordering. One possible solution to mitigate this race * condition is to first reduce the spender's allowance to 0 and set the * desired value afterwards: * https://github.com/ethereum/EIPs/issues/20#issuecomment-263524729 * * Emits an {Approval} event. */ function approve(address spender, uint256 amount) external returns (bool); /** * @dev Moves `amount` tokens from `from` to `to` using the * allowance mechanism. `amount` is then deducted from the caller's * allowance. * * Returns a boolean value indicating whether the operation succeeded. * * Emits a {Transfer} event. */ function transferFrom( address from, address to, uint256 amount ) external returns (bool); /** * @dev Emitted when `value` tokens are moved from one account (`from`) to * another (`to`). * * Note that `value` may be zero. */ event Transfer(address indexed from, address indexed to, uint256 value); /** * @dev Emitted when the allowance of a `spender` for an `owner` is set by * a call to {approve}. `value` is the new allowance. */ event Approval(address indexed owner, address indexed spender, uint256 value); }
{ "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":"_contractMetadataURI","type":"string"},{"internalType":"string","name":"_tokenMetadataURI","type":"string"},{"internalType":"bool","name":"_allowBuy","type":"bool"},{"internalType":"address","name":"_customerAddress","type":"address"},{"internalType":"address","name":"_presaleAddress","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"account","type":"address"},{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":false,"internalType":"bool","name":"approved","type":"bool"}],"name":"ApprovalForAll","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":false,"internalType":"uint256[]","name":"ids","type":"uint256[]"},{"indexed":false,"internalType":"uint256[]","name":"values","type":"uint256[]"}],"name":"TransferBatch","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":false,"internalType":"uint256","name":"id","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"value","type":"uint256"}],"name":"TransferSingle","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"string","name":"value","type":"string"},{"indexed":true,"internalType":"uint256","name":"id","type":"uint256"}],"name":"URI","type":"event"},{"inputs":[{"internalType":"uint256[]","name":"newSupplies","type":"uint256[]"},{"internalType":"uint256[]","name":"newPrices","type":"uint256[]"},{"internalType":"uint256[]","name":"newMaxPerAddresses","type":"uint256[]"}],"name":"addTokens","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"allowBuy","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"},{"internalType":"uint256","name":"id","type":"uint256"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address[]","name":"accounts","type":"address[]"},{"internalType":"uint256[]","name":"ids","type":"uint256[]"}],"name":"balanceOfBatch","outputs":[{"internalType":"uint256[]","name":"","type":"uint256[]"}],"stateMutability":"view","type":"function"},{"inputs":[{"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":"id","type":"uint256"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"buy","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"uint256","name":"id","type":"uint256"},{"internalType":"uint256","name":"amount","type":"uint256"},{"internalType":"uint8","name":"_v","type":"uint8"},{"internalType":"bytes32","name":"_r","type":"bytes32"},{"internalType":"bytes32","name":"_s","type":"bytes32"}],"name":"buyPresale","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"contractURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getTokenInfo","outputs":[{"components":[{"internalType":"uint256[]","name":"prices","type":"uint256[]"},{"internalType":"uint256[]","name":"supplies","type":"uint256[]"},{"internalType":"uint256[]","name":"totalSupplies","type":"uint256[]"},{"internalType":"uint256[]","name":"maxPerAddresses","type":"uint256[]"}],"internalType":"struct HyperMintERC1155.TokenInfo","name":"","type":"tuple"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"},{"internalType":"address","name":"operator","type":"address"}],"name":"isApprovedForAll","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"maxPerAddresses","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address[]","name":"to","type":"address[]"},{"internalType":"uint256[][]","name":"ids","type":"uint256[][]"},{"internalType":"uint256[][]","name":"amounts","type":"uint256[][]"}],"name":"mintBatch","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"presaleDate","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"prices","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"publicSaleDate","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_tokenId","type":"uint256"},{"internalType":"uint256","name":"_salePrice","type":"uint256"}],"name":"royaltyInfo","outputs":[{"internalType":"address","name":"","type":"address"},{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256[]","name":"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":[],"name":"saleCloseDate","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bool","name":"_allowBuy","type":"bool"}],"name":"setAllowBuy","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":"address","name":"_customerAddress","type":"address"},{"internalType":"address","name":"_presaleAddress","type":"address"}],"name":"setCustomerAddresses","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_presale","type":"uint256"},{"internalType":"uint256","name":"_publicSale","type":"uint256"},{"internalType":"uint256","name":"_saleClosed","type":"uint256"}],"name":"setDates","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"_contractURI","type":"string"},{"internalType":"string","name":"_tokenURI","type":"string"}],"name":"setMetadataURIs","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"_name","type":"string"},{"internalType":"string","name":"_symbol","type":"string"}],"name":"setNameAndSymbol","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_purchaseToken","type":"address"}],"name":"setPurchaseToken","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"primaryReceiver","type":"address"},{"internalType":"address","name":"secondaryReceiver","type":"address"},{"internalType":"uint96","name":"primaryFee","type":"uint96"},{"internalType":"uint96","name":"secondaryFee","type":"uint96"}],"name":"setRoyalty","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"id","type":"uint256"},{"internalType":"uint256","name":"_price","type":"uint256"},{"internalType":"uint256","name":"_supply","type":"uint256"},{"internalType":"uint256","name":"_maxPerAddress","type":"uint256"}],"name":"setTokenData","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"supplies","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes4","name":"interfaceId","type":"bytes4"}],"name":"supportsInterface","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"totalSupplies","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"transferContractOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"uri","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"}]
Contract Creation Code
60806040523480156200001157600080fd5b50604051620046ce380380620046ce8339810160408190526200003491620002eb565b6040805160208101909152600081526200004e81620000f9565b506200005a3362000112565b60016004558651620000749060059060208a019062000164565b5085516200008a90600690602089019062000164565b50600c805484151560ff19909116179055601080546001600160a01b038085166001600160a01b0319928316179092556011805492841692909116919091179055620000d684620000f9565b8451620000eb90600790602088019062000164565b50505050505050506200042a565b80516200010e90600290602084019062000164565b5050565b600380546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b8280546200017290620003d7565b90600052602060002090601f016020900481019282620001965760008555620001e1565b82601f10620001b157805160ff1916838001178555620001e1565b82800160010185558215620001e1579182015b82811115620001e1578251825591602001919060010190620001c4565b50620001ef929150620001f3565b5090565b5b80821115620001ef5760008155600101620001f4565b80516001600160a01b03811681146200022257600080fd5b919050565b805180151581146200022257600080fd5b600082601f83011262000249578081fd5b81516001600160401b038082111562000266576200026662000414565b604051601f8301601f19908116603f0116810190828211818310171562000291576200029162000414565b81604052838152602092508683858801011115620002ad578485fd5b8491505b83821015620002d05785820183015181830184015290820190620002b1565b83821115620002e157848385830101525b9695505050505050565b600080600080600080600060e0888a03121562000306578283fd5b87516001600160401b03808211156200031d578485fd5b6200032b8b838c0162000238565b985060208a015191508082111562000341578485fd5b6200034f8b838c0162000238565b975060408a015191508082111562000365578485fd5b620003738b838c0162000238565b965060608a015191508082111562000389578485fd5b50620003988a828b0162000238565b945050620003a96080890162000227565b9250620003b960a089016200020a565b9150620003c960c089016200020a565b905092959891949750929550565b600281046001821680620003ec57607f821691505b602082108114156200040e57634e487b7160e01b600052602260045260246000fd5b50919050565b634e487b7160e01b600052604160045260246000fd5b614294806200043a6000396000f3fe6080604052600436106102ba5760003560e01c80639aadd9761161016e578063d1615544116100cb578063e985e9c51161007f578063f242432a11610064578063f242432a14610780578063f2fde38b146107a0578063f5298aca146107c0576102ba565b8063e985e9c514610721578063eced38731461076a576102ba565b8063d6046836116100b0578063d6046836146106d9578063d6febde8146106f9578063e8a3d4851461070c576102ba565b8063d161554414610699578063d4a4cece146106b9576102ba565b8063aeb2de3511610122578063bc31c1c111610107578063bc31c1c114610643578063bd85b03914610663578063c889004b14610683576102ba565b8063aeb2de3514610603578063b54fa47414610623576102ba565b8063a87723bd11610153578063a87723bd146105b2578063ab7cb211146105c7578063abb1dc44146105e1576102ba565b80639aadd9761461057f578063a22cb46514610592576102ba565b80632eb2c2d61161021c578063715018a6116101d05780638456bd2e116101b55780638456bd2e1461051d5780638da5cb5b1461053d57806395d89b411461056a576102ba565b8063715018a6146104f257806381350da314610507576102ba565b80635a446215116102015780635a4462151461049257806366783e7e146104b25780636b20c454146104d2576102ba565b80632eb2c2d6146104455780634e1273f414610465576102ba565b8063132b6091116102735780632475d065116102585780632475d065146103c657806326f1a1fd146103e65780632a55205a14610406576102ba565b8063132b6091146103865780631712c489146103a6576102ba565b806306fdde03116102a457806306fdde03146103225780630e89341c14610344578063122ed67914610364576102ba565b8062fdd58e146102bf57806301ffc9a7146102f2575b600080fd5b3480156102cb57600080fd5b506102df6102da366004613af8565b6107e0565b6040519081526020015b60405180910390f35b3480156102fe57600080fd5b5061031261030d366004613cb2565b610889565b60405190151581526020016102e9565b34801561032e57600080fd5b506103376108cf565b6040516102e99190613f7c565b34801561035057600080fd5b5061033761035f366004613d41565b61095d565b34801561037057600080fd5b5061038461037f366004613b53565b6109f1565b005b34801561039257600080fd5b506103846103a13660046138c3565b610dbb565b3480156103b257600080fd5b506103846103c1366004613d7a565b610e43565b3480156103d257600080fd5b506103846103e1366004613c2e565b610e9e565b3480156103f257600080fd5b506102df610401366004613d41565b611051565b34801561041257600080fd5b50610426610421366004613d59565b611072565b604080516001600160a01b0390931683526020830191909152016102e9565b34801561045157600080fd5b506103846104603660046138f5565b6110b9565b34801561047157600080fd5b50610485610480366004613bcd565b61115b565b6040516102e99190613f3b565b34801561049e57600080fd5b506103846104ad366004613cea565b6112d1565b3480156104be57600080fd5b506103846104cd3660046139fe565b61134a565b3480156104de57600080fd5b506103846104ed366004613a51565b61140d565b3480156104fe57600080fd5b50610384611492565b34801561051357600080fd5b506102df600f5481565b34801561052957600080fd5b506103846105383660046138a9565b6114eb565b34801561054957600080fd5b50610552611567565b6040516001600160a01b0390911681526020016102e9565b34801561057657600080fd5b50610337611577565b61038461058d366004613dd6565b611584565b34801561059e57600080fd5b506103846105ad366004613ac2565b6116dd565b3480156105be57600080fd5b506103846116ec565b3480156105d357600080fd5b50600c546103129060ff1681565b3480156105ed57600080fd5b506105f661175b565b6040516102e99190613f8f565b34801561060f57600080fd5b5061038461061e366004613cea565b6118e7565b34801561062f57600080fd5b506102df61063e366004613d41565b611951565b34801561064f57600080fd5b506102df61065e366004613d41565b611961565b34801561066f57600080fd5b506102df61067e366004613d41565b611971565b34801561068f57600080fd5b506102df600d5481565b3480156106a557600080fd5b506103846106b4366004613da5565b6119a6565b3480156106c557600080fd5b506102df6106d4366004613d41565b611b02565b3480156106e557600080fd5b506103846106f4366004613c7a565b611b12565b610384610707366004613d59565b611b72565b34801561071857600080fd5b50610337611c70565b34801561072d57600080fd5b5061031261073c3660046138c3565b6001600160a01b03918216600090815260016020908152604080832093909416825291909152205460ff1690565b34801561077657600080fd5b506102df600e5481565b34801561078c57600080fd5b5061038461079b36600461399b565b611c7d565b3480156107ac57600080fd5b506103846107bb3660046138a9565b611d04565b3480156107cc57600080fd5b506103846107db366004613b21565b611dd9565b60006001600160a01b0383166108635760405162461bcd60e51b815260206004820152602b60248201527f455243313135353a2062616c616e636520717565727920666f7220746865207a60448201527f65726f206164647265737300000000000000000000000000000000000000000060648201526084015b60405180910390fd5b506000908152602081815260408083206001600160a01b03949094168352929052205490565b60006001600160e01b031982167f2a55205a0000000000000000000000000000000000000000000000000000000014806108c757506108c782611e5e565b90505b919050565b600580546108dc906140c2565b80601f0160208091040260200160405190810160405280929190818152602001828054610908906140c2565b80156109555780601f1061092a57610100808354040283529160200191610955565b820191906000526020600020905b81548152906001019060200180831161093857829003601f168201915b505050505081565b60606002805461096c906140c2565b80601f0160208091040260200160405190810160405280929190818152602001828054610998906140c2565b80156109e55780601f106109ba576101008083540402835291602001916109e5565b820191906000526020600020905b8154815290600101906020018083116109c857829003601f168201915b50505050509050919050565b336109fa611567565b6001600160a01b031614610a3e5760405162461bcd60e51b8152602060048201819052602482015260008051602061423f833981519152604482015260640161085a565b60005b8351811015610db55760005b838281518110610a6d57634e487b7160e01b600052603260045260246000fd5b602002602001015151811015610d0757600a848381518110610a9f57634e487b7160e01b600052603260045260246000fd5b60200260200101518281518110610ac657634e487b7160e01b600052603260045260246000fd5b602002602001015181548110610aec57634e487b7160e01b600052603260045260246000fd5b9060005260206000200154838381518110610b1757634e487b7160e01b600052603260045260246000fd5b60200260200101518281518110610b3e57634e487b7160e01b600052603260045260246000fd5b60200260200101516009868581518110610b6857634e487b7160e01b600052603260045260246000fd5b60200260200101518481518110610b8f57634e487b7160e01b600052603260045260246000fd5b602002602001015181548110610bb557634e487b7160e01b600052603260045260246000fd5b9060005260206000200154610bca9190614028565b1115610c185760405162461bcd60e51b815260206004820152601160248201527f4e6f7420656e6f75676820737570706c79000000000000000000000000000000604482015260640161085a565b828281518110610c3857634e487b7160e01b600052603260045260246000fd5b60200260200101518181518110610c5f57634e487b7160e01b600052603260045260246000fd5b60200260200101516009858481518110610c8957634e487b7160e01b600052603260045260246000fd5b60200260200101518381518110610cb057634e487b7160e01b600052603260045260246000fd5b602002602001015181548110610cd657634e487b7160e01b600052603260045260246000fd5b906000526020600020016000828254610cef9190614028565b90915550819050610cff8161412a565b915050610a4d565b50610da3848281518110610d2b57634e487b7160e01b600052603260045260246000fd5b6020026020010151848381518110610d5357634e487b7160e01b600052603260045260246000fd5b6020026020010151848481518110610d7b57634e487b7160e01b600052603260045260246000fd5b602002602001015160405180604001604052806002815260200161060f60f31b815250611ef9565b80610dad8161412a565b915050610a41565b50505050565b33610dc4611567565b6001600160a01b031614610e085760405162461bcd60e51b8152602060048201819052602482015260008051602061423f833981519152604482015260640161085a565b601080546001600160a01b0393841673ffffffffffffffffffffffffffffffffffffffff199182161790915560118054929093169116179055565b33610e4c611567565b6001600160a01b031614610e905760405162461bcd60e51b8152602060048201819052602482015260008051602061423f833981519152604482015260640161085a565b600d92909255600e55600f55565b33610ea7611567565b6001600160a01b031614610eeb5760405162461bcd60e51b8152602060048201819052602482015260008051602061423f833981519152604482015260640161085a565b8151835114610f3c5760405162461bcd60e51b815260206004820152601560248201527f4172726179206c656e677468206d69736d617463680000000000000000000000604482015260640161085a565b60005b8351811015610db557600a848281518110610f6a57634e487b7160e01b600052603260045260246000fd5b6020908102919091018101518254600181810185556000948552928420015560098054918201815582527f6e1540171b6c0c960b71a7020d9f60077f6af931a8bbf590da0223dacf75c7af01558251600890849083908110610fdc57634e487b7160e01b600052603260045260246000fd5b602090810291909101810151825460018101845560009384529190922001558151600b9083908390811061102057634e487b7160e01b600052603260045260246000fd5b60209081029190910181015182546001810184556000938452919092200155806110498161412a565b915050610f3f565b6009818154811061106157600080fd5b600091825260209091200154905081565b6015546000908190819061271090611098906bffffffffffffffffffffffff1686614060565b6110a29190614040565b6014546001600160a01b0316969095509350505050565b6001600160a01b0385163314806110d557506110d5853361073c565b6111475760405162461bcd60e51b815260206004820152603260248201527f455243313135353a207472616e736665722063616c6c6572206973206e6f742060448201527f6f776e6572206e6f7220617070726f7665640000000000000000000000000000606482015260840161085a565b61115485858585856120db565b5050505050565b606081518351146111d45760405162461bcd60e51b815260206004820152602960248201527f455243313135353a206163636f756e747320616e6420696473206c656e67746860448201527f206d69736d617463680000000000000000000000000000000000000000000000606482015260840161085a565b6000835167ffffffffffffffff8111156111fe57634e487b7160e01b600052604160045260246000fd5b604051908082528060200260200182016040528015611227578160200160208202803683370190505b50905060005b84518110156112c95761128e85828151811061125957634e487b7160e01b600052603260045260246000fd5b602002602001015185838151811061128157634e487b7160e01b600052603260045260246000fd5b60200260200101516107e0565b8282815181106112ae57634e487b7160e01b600052603260045260246000fd5b60209081029190910101526112c28161412a565b905061122d565b509392505050565b336112da611567565b6001600160a01b03161461131e5760405162461bcd60e51b8152602060048201819052602482015260008051602061423f833981519152604482015260640161085a565b8151611331906005906020850190613630565b508051611345906006906020840190613630565b505050565b33611353611567565b6001600160a01b0316146113975760405162461bcd60e51b8152602060048201819052602482015260008051602061423f833981519152604482015260640161085a565b6013805473ffffffffffffffffffffffffffffffffffffffff199081166001600160a01b03968716179091556014805490911693851693909317909316600160a01b6bffffffffffffffffffffffff9283160217909155601580546bffffffffffffffffffffffff191692909116919091179055565b6001600160a01b0383163314806114295750611429833361073c565b6114875760405162461bcd60e51b815260206004820152602960248201527f455243313135353a2063616c6c6572206973206e6f74206f776e6572206e6f7260448201526808185c1c1c9bdd995960ba1b606482015260840161085a565b611345838383612355565b3361149b611567565b6001600160a01b0316146114df5760405162461bcd60e51b8152602060048201819052602482015260008051602061423f833981519152604482015260640161085a565b6114e960006125a6565b565b336114f4611567565b6001600160a01b0316146115385760405162461bcd60e51b8152602060048201819052602482015260008051602061423f833981519152604482015260640161085a565b6012805473ffffffffffffffffffffffffffffffffffffffff19166001600160a01b0392909216919091179055565b6003546001600160a01b03165b90565b600680546108dc906140c2565b600260045414156115d75760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00604482015260640161085a565b6002600455600c5460ff1661161d5760405162461bcd60e51b815260206004820152600c60248201526b109d5e48191a5cd8589b195960a21b604482015260640161085a565b600d5442101561166f5760405162461bcd60e51b815260206004820152600e60248201527f50726573616c6520636c6f736564000000000000000000000000000000000000604482015260640161085a565b61167b33848484612605565b6116c75760405162461bcd60e51b815260206004820152600e60248201527f4e6f7420617574686f7269736564000000000000000000000000000000000000604482015260640161085a565b6116d1858561270f565b50506001600455505050565b6116e8338383612ae6565b5050565b6010546001600160a01b031633146117465760405162461bcd60e51b815260206004820152600e60248201527f4e6f7420617574686f7269736564000000000000000000000000000000000000604482015260640161085a565b6010546114e9906001600160a01b03166125a6565b6117866040518060800160405280606081526020016060815260200160608152602001606081525090565b604080516008805460a0602082028401810190945260808301818152929384939291908401828280156117d857602002820191906000526020600020905b8154815260200190600101908083116117c4575b50505050508152602001600980548060200260200160405190810160405280929190818152602001828054801561182e57602002820191906000526020600020905b81548152602001906001019080831161181a575b50505050508152602001600a80548060200260200160405190810160405280929190818152602001828054801561188457602002820191906000526020600020905b815481526020019060010190808311611870575b50505050508152602001600b8054806020026020016040519081016040528092919081815260200182805480156118da57602002820191906000526020600020905b8154815260200190600101908083116118c6575b5050505050815250905090565b336118f0611567565b6001600160a01b0316146119345760405162461bcd60e51b8152602060048201819052602482015260008051602061423f833981519152604482015260640161085a565b8151611947906007906020850190613630565b506116e881612bdb565b600a818154811061106157600080fd5b6008818154811061106157600080fd5b6000600a828154811061199457634e487b7160e01b600052603260045260246000fd5b90600052602060002001549050919050565b336119af611567565b6001600160a01b0316146119f35760405162461bcd60e51b8152602060048201819052602482015260008051602061423f833981519152604482015260640161085a565b8160098581548110611a1557634e487b7160e01b600052603260045260246000fd5b90600052602060002001541115611a6e5760405162461bcd60e51b815260206004820152600e60248201527f537570706c7920746f6f206c6f77000000000000000000000000000000000000604482015260640161085a565b8260088581548110611a9057634e487b7160e01b600052603260045260246000fd5b906000526020600020018190555081600a8581548110611ac057634e487b7160e01b600052603260045260246000fd5b906000526020600020018190555080600b8581548110611af057634e487b7160e01b600052603260045260246000fd5b60009182526020909120015550505050565b600b818154811061106157600080fd5b33611b1b611567565b6001600160a01b031614611b5f5760405162461bcd60e51b8152602060048201819052602482015260008051602061423f833981519152604482015260640161085a565b600c805460ff1916911515919091179055565b60026004541415611bc55760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00604482015260640161085a565b6002600455600c5460ff16611c0b5760405162461bcd60e51b815260206004820152600c60248201526b109d5e48191a5cd8589b195960a21b604482015260640161085a565b600e54421015611c5d5760405162461bcd60e51b815260206004820152601260248201527f5075626c69632073616c6520636c6f7365640000000000000000000000000000604482015260640161085a565b611c67828261270f565b50506001600455565b600780546108dc906140c2565b6001600160a01b038516331480611c995750611c99853361073c565b611cf75760405162461bcd60e51b815260206004820152602960248201527f455243313135353a2063616c6c6572206973206e6f74206f776e6572206e6f7260448201526808185c1c1c9bdd995960ba1b606482015260840161085a565b6111548585858585612bee565b33611d0d611567565b6001600160a01b031614611d515760405162461bcd60e51b8152602060048201819052602482015260008051602061423f833981519152604482015260640161085a565b6001600160a01b038116611dcd5760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201527f6464726573730000000000000000000000000000000000000000000000000000606482015260840161085a565b611dd6816125a6565b50565b6001600160a01b038316331480611df55750611df5833361073c565b611e535760405162461bcd60e51b815260206004820152602960248201527f455243313135353a2063616c6c6572206973206e6f74206f776e6572206e6f7260448201526808185c1c1c9bdd995960ba1b606482015260840161085a565b611345838383612d95565b60006001600160e01b031982167fd9b67a26000000000000000000000000000000000000000000000000000000001480611ec157506001600160e01b031982167f0e89341c00000000000000000000000000000000000000000000000000000000145b806108c757507f01ffc9a7000000000000000000000000000000000000000000000000000000006001600160e01b03198316146108c7565b6001600160a01b038416611f595760405162461bcd60e51b815260206004820152602160248201527f455243313135353a206d696e7420746f20746865207a65726f206164647265736044820152607360f81b606482015260840161085a565b8151835114611fbb5760405162461bcd60e51b815260206004820152602860248201527f455243313135353a2069647320616e6420616d6f756e7473206c656e677468206044820152670dad2e6dac2e8c6d60c31b606482015260840161085a565b3360005b845181101561207357838181518110611fe857634e487b7160e01b600052603260045260246000fd5b602002602001015160008087848151811061201357634e487b7160e01b600052603260045260246000fd5b602002602001015181526020019081526020016000206000886001600160a01b03166001600160a01b03168152602001908152602001600020600082825461205b9190614028565b9091555081905061206b8161412a565b915050611fbf565b50846001600160a01b031660006001600160a01b0316826001600160a01b03167f4a39dc06d4c0dbc64b70af90fd698a233a518aa5d07e595d983b8c0526c8f7fb87876040516120c4929190613f4e565b60405180910390a461115481600087878787612f0f565b815183511461213d5760405162461bcd60e51b815260206004820152602860248201527f455243313135353a2069647320616e6420616d6f756e7473206c656e677468206044820152670dad2e6dac2e8c6d60c31b606482015260840161085a565b6001600160a01b0384166121a15760405162461bcd60e51b815260206004820152602560248201527f455243313135353a207472616e7366657220746f20746865207a65726f206164604482015264647265737360d81b606482015260840161085a565b3360005b84518110156122e75760008582815181106121d057634e487b7160e01b600052603260045260246000fd5b6020026020010151905060008583815181106121fc57634e487b7160e01b600052603260045260246000fd5b602090810291909101810151600084815280835260408082206001600160a01b038e16835290935291909120549091508181101561228f5760405162461bcd60e51b815260206004820152602a60248201527f455243313135353a20696e73756666696369656e742062616c616e636520666f60448201526939103a3930b739b332b960b11b606482015260840161085a565b6000838152602081815260408083206001600160a01b038e8116855292528083208585039055908b168252812080548492906122cc908490614028565b92505081905550505050806122e09061412a565b90506121a5565b50846001600160a01b0316866001600160a01b0316826001600160a01b03167f4a39dc06d4c0dbc64b70af90fd698a233a518aa5d07e595d983b8c0526c8f7fb8787604051612337929190613f4e565b60405180910390a461234d818787878787612f0f565b505050505050565b6001600160a01b0383166123b75760405162461bcd60e51b815260206004820152602360248201527f455243313135353a206275726e2066726f6d20746865207a65726f206164647260448201526265737360e81b606482015260840161085a565b80518251146124195760405162461bcd60e51b815260206004820152602860248201527f455243313135353a2069647320616e6420616d6f756e7473206c656e677468206044820152670dad2e6dac2e8c6d60c31b606482015260840161085a565b604080516020810190915260009081905233905b835181101561254757600084828151811061245857634e487b7160e01b600052603260045260246000fd5b60200260200101519050600084838151811061248457634e487b7160e01b600052603260045260246000fd5b602090810291909101810151600084815280835260408082206001600160a01b038c1683529093529190912054909150818110156125105760405162461bcd60e51b8152602060048201526024808201527f455243313135353a206275726e20616d6f756e7420657863656564732062616c604482015263616e636560e01b606482015260840161085a565b6000928352602083815260408085206001600160a01b038b168652909152909220910390558061253f8161412a565b91505061242d565b5060006001600160a01b0316846001600160a01b0316826001600160a01b03167f4a39dc06d4c0dbc64b70af90fd698a233a518aa5d07e595d983b8c0526c8f7fb8686604051612598929190613f4e565b60405180910390a450505050565b600380546001600160a01b0383811673ffffffffffffffffffffffffffffffffffffffff19831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b6040516bffffffffffffffffffffffff1930606090811b8216602084015286901b166034820152600090819060480160405160208183030381529060405280519060200120905060018160405160200161268b91907f19457468657265756d205369676e6564204d6573736167653a0a3332000000008152601c810191909152603c0190565b60408051601f198184030181528282528051602091820120600084529083018083525260ff881690820152606081018690526080810185905260a0016020604051602081039080840390855afa1580156126e9573d6000803e3d6000fd5b5050604051601f1901516011546001600160a01b03918216911614979650505050505050565b600f541561276857600f5442106127685760405162461bcd60e51b815260206004820152600b60248201527f53616c6520636c6f736564000000000000000000000000000000000000000000604482015260640161085a565b600a828154811061278957634e487b7160e01b600052603260045260246000fd5b906000526020600020015481600984815481106127b657634e487b7160e01b600052603260045260246000fd5b90600052602060002001546127cb9190614028565b11156128195760405162461bcd60e51b815260206004820152601160248201527f4e6f7420656e6f75676820737570706c79000000000000000000000000000000604482015260640161085a565b600b828154811061283a57634e487b7160e01b600052603260045260246000fd5b90600052602060002001546000146128db57600b828154811061286d57634e487b7160e01b600052603260045260246000fd5b90600052602060002001548161288333856107e0565b61288d9190614028565b11156128db5760405162461bcd60e51b815260206004820152601560248201527f4d6178207065722061646472657373206c696d69740000000000000000000000604482015260640161085a565b80600983815481106128fd57634e487b7160e01b600052603260045260246000fd5b9060005260206000200160008282546129169190614028565b9250508190555061294333838360405180604001604052806002815260200161060f60f31b8152506130c4565b6000816008848154811061296757634e487b7160e01b600052603260045260246000fd5b906000526020600020015461297c9190614060565b601454909150600090612710906129a890600160a01b90046bffffffffffffffffffffffff1684614060565b6129b29190614040565b6012549091506001600160a01b0316612a975781341015612a155760405162461bcd60e51b815260206004820152601260248201527f496e73756666696369656e742076616c75650000000000000000000000000000604482015260640161085a565b6013546040516001600160a01b039091169082156108fc029083906000818181858888f19350505050158015612a4f573d6000803e3d6000fd5b506010546001600160a01b03166108fc612a69838561407f565b6040518115909202916000818181858888f19350505050158015612a91573d6000803e3d6000fd5b50610db5565b6012546013546001600160a01b0391821691612ab8918391339116856131c5565b6010546111549033906001600160a01b0316612ad4858761407f565b6001600160a01b0385169291906131c5565b816001600160a01b0316836001600160a01b03161415612b6e5760405162461bcd60e51b815260206004820152602960248201527f455243313135353a2073657474696e6720617070726f76616c2073746174757360448201527f20666f722073656c660000000000000000000000000000000000000000000000606482015260840161085a565b6001600160a01b03838116600081815260016020908152604080832094871680845294825291829020805460ff191686151590811790915591519182527f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a3505050565b80516116e8906002906020840190613630565b6001600160a01b038416612c525760405162461bcd60e51b815260206004820152602560248201527f455243313135353a207472616e7366657220746f20746865207a65726f206164604482015264647265737360d81b606482015260840161085a565b33612c6b818787612c628861324d565b6111548861324d565b6000848152602081815260408083206001600160a01b038a16845290915290205483811015612cef5760405162461bcd60e51b815260206004820152602a60248201527f455243313135353a20696e73756666696369656e742062616c616e636520666f60448201526939103a3930b739b332b960b11b606482015260840161085a565b6000858152602081815260408083206001600160a01b038b8116855292528083208785039055908816825281208054869290612d2c908490614028565b909155505060408051868152602081018690526001600160a01b03808916928a821692918616917fc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f62910160405180910390a4612d8c8288888888886132a6565b50505050505050565b6001600160a01b038316612df75760405162461bcd60e51b815260206004820152602360248201527f455243313135353a206275726e2066726f6d20746865207a65726f206164647260448201526265737360e81b606482015260840161085a565b33612e2781856000612e088761324d565b612e118761324d565b5050604080516020810190915260009052505050565b6000838152602081815260408083206001600160a01b038816845290915290205482811015612ea45760405162461bcd60e51b8152602060048201526024808201527f455243313135353a206275726e20616d6f756e7420657863656564732062616c604482015263616e636560e01b606482015260840161085a565b6000848152602081815260408083206001600160a01b03898116808652918452828520888703905582518981529384018890529092908616917fc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f62910160405180910390a45050505050565b6001600160a01b0384163b1561234d5760405163bc197c8160e01b81526001600160a01b0385169063bc197c8190612f539089908990889088908890600401613ea5565b602060405180830381600087803b158015612f6d57600080fd5b505af1925050508015612f9d575060408051601f3d908101601f19168201909252612f9a91810190613cce565b60015b61305357612fa9614171565b806308c379a01415612fe35750612fbe614188565b80612fc95750612fe5565b8060405162461bcd60e51b815260040161085a9190613f7c565b505b60405162461bcd60e51b815260206004820152603460248201527f455243313135353a207472616e7366657220746f206e6f6e204552433131353560448201527f526563656976657220696d706c656d656e746572000000000000000000000000606482015260840161085a565b6001600160e01b0319811663bc197c8160e01b14612d8c5760405162461bcd60e51b815260206004820152602860248201527f455243313135353a204552433131353552656365697665722072656a656374656044820152676420746f6b656e7360c01b606482015260840161085a565b6001600160a01b0384166131245760405162461bcd60e51b815260206004820152602160248201527f455243313135353a206d696e7420746f20746865207a65726f206164647265736044820152607360f81b606482015260840161085a565b3361313581600087612c628861324d565b6000848152602081815260408083206001600160a01b038916845290915281208054859290613165908490614028565b909155505060408051858152602081018590526001600160a01b0380881692600092918516917fc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f62910160405180910390a4611154816000878787876132a6565b604080516001600160a01b0385811660248301528416604482015260648082018490528251808303909101815260849091019091526020810180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff167f23b872dd00000000000000000000000000000000000000000000000000000000179052610db59085906133b1565b6040805160018082528183019092526060916000919060208083019080368337019050509050828160008151811061329557634e487b7160e01b600052603260045260246000fd5b602090810291909101015292915050565b6001600160a01b0384163b1561234d5760405163f23a6e6160e01b81526001600160a01b0385169063f23a6e61906132ea9089908990889088908890600401613f03565b602060405180830381600087803b15801561330457600080fd5b505af1925050508015613334575060408051601f3d908101601f1916820190925261333191810190613cce565b60015b61334057612fa9614171565b6001600160e01b0319811663f23a6e6160e01b14612d8c5760405162461bcd60e51b815260206004820152602860248201527f455243313135353a204552433131353552656365697665722072656a656374656044820152676420746f6b656e7360c01b606482015260840161085a565b6000613406826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564815250856001600160a01b03166134969092919063ffffffff16565b80519091501561134557808060200190518101906134249190613c96565b6113455760405162461bcd60e51b815260206004820152602a60248201527f5361666545524332303a204552433230206f7065726174696f6e20646964206e60448201527f6f74207375636365656400000000000000000000000000000000000000000000606482015260840161085a565b60606134a584846000856134af565b90505b9392505050565b6060824710156135275760405162461bcd60e51b815260206004820152602660248201527f416464726573733a20696e73756666696369656e742062616c616e636520666f60448201527f722063616c6c0000000000000000000000000000000000000000000000000000606482015260840161085a565b6001600160a01b0385163b61357e5760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e7472616374000000604482015260640161085a565b600080866001600160a01b0316858760405161359a9190613e89565b60006040518083038185875af1925050503d80600081146135d7576040519150601f19603f3d011682016040523d82523d6000602084013e6135dc565b606091505b50915091506135ec8282866135f7565b979650505050505050565b606083156136065750816134a8565b8251156136165782518084602001fd5b8160405162461bcd60e51b815260040161085a9190613f7c565b82805461363c906140c2565b90600052602060002090601f01602090048101928261365e57600085556136a4565b82601f1061367757805160ff19168380011785556136a4565b828001600101855582156136a4579182015b828111156136a4578251825591602001919060010190613689565b506136b09291506136b4565b5090565b5b808211156136b057600081556001016136b5565b80356001600160a01b03811681146108ca57600080fd5b600082601f8301126136f0578081fd5b813560206136fd82614004565b60405161370a82826140fd565b838152828101915085830183850287018401881015613727578586fd5b855b8581101561374c5761373a826136c9565b84529284019290840190600101613729565b5090979650505050505050565b600082601f830112613769578081fd5b8135602061377682614004565b60405161378382826140fd565b8381528281019150858301855b8581101561374c576137a7898684358b01016137b9565b84529284019290840190600101613790565b600082601f8301126137c9578081fd5b813560206137d682614004565b6040516137e382826140fd565b838152828101915085830183850287018401881015613800578586fd5b855b8581101561374c57813584529284019290840190600101613802565b600082601f83011261382e578081fd5b813567ffffffffffffffff8111156138485761384861415b565b60405161385f601f8301601f1916602001826140fd565b818152846020838601011115613873578283fd5b816020850160208301379081016020019190915292915050565b80356bffffffffffffffffffffffff811681146108ca57600080fd5b6000602082840312156138ba578081fd5b6134a8826136c9565b600080604083850312156138d5578081fd5b6138de836136c9565b91506138ec602084016136c9565b90509250929050565b600080600080600060a0868803121561390c578081fd5b613915866136c9565b9450613923602087016136c9565b9350604086013567ffffffffffffffff8082111561393f578283fd5b61394b89838a016137b9565b94506060880135915080821115613960578283fd5b61396c89838a016137b9565b93506080880135915080821115613981578283fd5b5061398e8882890161381e565b9150509295509295909350565b600080600080600060a086880312156139b2578081fd5b6139bb866136c9565b94506139c9602087016136c9565b93506040860135925060608601359150608086013567ffffffffffffffff8111156139f2578182fd5b61398e8882890161381e565b60008060008060808587031215613a13578182fd5b613a1c856136c9565b9350613a2a602086016136c9565b9250613a386040860161388d565b9150613a466060860161388d565b905092959194509250565b600080600060608486031215613a65578081fd5b613a6e846136c9565b9250602084013567ffffffffffffffff80821115613a8a578283fd5b613a96878388016137b9565b93506040860135915080821115613aab578283fd5b50613ab8868287016137b9565b9150509250925092565b60008060408385031215613ad4578182fd5b613add836136c9565b91506020830135613aed8161421a565b809150509250929050565b60008060408385031215613b0a578182fd5b613b13836136c9565b946020939093013593505050565b600080600060608486031215613b35578081fd5b613b3e846136c9565b95602085013595506040909401359392505050565b600080600060608486031215613b67578081fd5b833567ffffffffffffffff80821115613b7e578283fd5b613b8a878388016136e0565b94506020860135915080821115613b9f578283fd5b613bab87838801613759565b93506040860135915080821115613bc0578283fd5b50613ab886828701613759565b60008060408385031215613bdf578182fd5b823567ffffffffffffffff80821115613bf6578384fd5b613c02868387016136e0565b93506020850135915080821115613c17578283fd5b50613c24858286016137b9565b9150509250929050565b600080600060608486031215613c42578081fd5b833567ffffffffffffffff80821115613c59578283fd5b613c65878388016137b9565b94506020860135915080821115613a8a578283fd5b600060208284031215613c8b578081fd5b81356134a88161421a565b600060208284031215613ca7578081fd5b81516134a88161421a565b600060208284031215613cc3578081fd5b81356134a881614228565b600060208284031215613cdf578081fd5b81516134a881614228565b60008060408385031215613cfc578182fd5b823567ffffffffffffffff80821115613d13578384fd5b613d1f8683870161381e565b93506020850135915080821115613d34578283fd5b50613c248582860161381e565b600060208284031215613d52578081fd5b5035919050565b60008060408385031215613d6b578182fd5b50508035926020909101359150565b600080600060608486031215613d8e578081fd5b505081359360208301359350604090920135919050565b60008060008060808587031215613dba578182fd5b5050823594602084013594506040840135936060013592509050565b600080600080600060a08688031215613ded578283fd5b8535945060208601359350604086013560ff81168114613e0b578384fd5b94979396509394606081013594506080013592915050565b6000815180845260208085019450808401835b83811015613e5257815187529582019590820190600101613e36565b509495945050505050565b60008151808452613e75816020860160208601614096565b601f01601f19169290920160200192915050565b60008251613e9b818460208701614096565b9190910192915050565b60006001600160a01b03808816835280871660208401525060a06040830152613ed160a0830186613e23565b8281036060840152613ee38186613e23565b90508281036080840152613ef78185613e5d565b98975050505050505050565b60006001600160a01b03808816835280871660208401525084604083015283606083015260a060808301526135ec60a0830184613e5d565b6000602082526134a86020830184613e23565b600060408252613f616040830185613e23565b8281036020840152613f738185613e23565b95945050505050565b6000602082526134a86020830184613e5d565b600060208252825160806020840152613fab60a0840182613e23565b90506020840151601f1980858403016040860152613fc98383613e23565b92506040860151915080858403016060860152613fe68383613e23565b9250606086015191508085840301608086015250613f738282613e23565b600067ffffffffffffffff82111561401e5761401e61415b565b5060209081020190565b6000821982111561403b5761403b614145565b500190565b60008261405b57634e487b7160e01b81526012600452602481fd5b500490565b600081600019048311821515161561407a5761407a614145565b500290565b60008282101561409157614091614145565b500390565b60005b838110156140b1578181015183820152602001614099565b83811115610db55750506000910152565b6002810460018216806140d657607f821691505b602082108114156140f757634e487b7160e01b600052602260045260246000fd5b50919050565b601f8201601f1916810167ffffffffffffffff811182821017156141235761412361415b565b6040525050565b600060001982141561413e5761413e614145565b5060010190565b634e487b7160e01b600052601160045260246000fd5b634e487b7160e01b600052604160045260246000fd5b600060033d111561157457600481823e5160e01c90565b600060443d101561419857611574565b6040516003193d81016004833e81513d67ffffffffffffffff81602484011181841117156141ca575050505050611574565b82850191508151818111156141e457505050505050611574565b843d870101602082850101111561420057505050505050611574565b61420f602082860101876140fd565b509094505050505090565b8015158114611dd657600080fd5b6001600160e01b031981168114611dd657600080fdfe4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572a2646970667358221220519161b60ef79b5cd6b879e54891ea740038443738f897f87921c8ba5ae1983064736f6c6343000802003300000000000000000000000000000000000000000000000000000000000000e00000000000000000000000000000000000000000000000000000000000000120000000000000000000000000000000000000000000000000000000000000016000000000000000000000000000000000000000000000000000000000000001e0000000000000000000000000000000000000000000000000000000000000000100000000000000000000000014ee8d09ca506206332faf38bffd1da02eaf9c02000000000000000000000000ee8e7e483aa7d8110924ed43ff6a3f10364de37000000000000000000000000000000000000000000000000000000000000000144353412047656e2d31204d656d6265727368697000000000000000000000000000000000000000000000000000000000000000000000000000000000000000084353412d47312d4d000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000004e68747470733a2f2f6373612e6d7970696e6174612e636c6f75642f697066732f516d573934645a776174636266577666545948464c35673962553945343537483733427856734b626b3771634766000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000005568747470733a2f2f6373612e6d7970696e6174612e636c6f75642f697066732f516d5431376333736e6a5838557577625a37757546314d4d766141765267355543506d6d33353845424e334a74702f302e6a736f6e0000000000000000000000
Deployed Bytecode
0x6080604052600436106102ba5760003560e01c80639aadd9761161016e578063d1615544116100cb578063e985e9c51161007f578063f242432a11610064578063f242432a14610780578063f2fde38b146107a0578063f5298aca146107c0576102ba565b8063e985e9c514610721578063eced38731461076a576102ba565b8063d6046836116100b0578063d6046836146106d9578063d6febde8146106f9578063e8a3d4851461070c576102ba565b8063d161554414610699578063d4a4cece146106b9576102ba565b8063aeb2de3511610122578063bc31c1c111610107578063bc31c1c114610643578063bd85b03914610663578063c889004b14610683576102ba565b8063aeb2de3514610603578063b54fa47414610623576102ba565b8063a87723bd11610153578063a87723bd146105b2578063ab7cb211146105c7578063abb1dc44146105e1576102ba565b80639aadd9761461057f578063a22cb46514610592576102ba565b80632eb2c2d61161021c578063715018a6116101d05780638456bd2e116101b55780638456bd2e1461051d5780638da5cb5b1461053d57806395d89b411461056a576102ba565b8063715018a6146104f257806381350da314610507576102ba565b80635a446215116102015780635a4462151461049257806366783e7e146104b25780636b20c454146104d2576102ba565b80632eb2c2d6146104455780634e1273f414610465576102ba565b8063132b6091116102735780632475d065116102585780632475d065146103c657806326f1a1fd146103e65780632a55205a14610406576102ba565b8063132b6091146103865780631712c489146103a6576102ba565b806306fdde03116102a457806306fdde03146103225780630e89341c14610344578063122ed67914610364576102ba565b8062fdd58e146102bf57806301ffc9a7146102f2575b600080fd5b3480156102cb57600080fd5b506102df6102da366004613af8565b6107e0565b6040519081526020015b60405180910390f35b3480156102fe57600080fd5b5061031261030d366004613cb2565b610889565b60405190151581526020016102e9565b34801561032e57600080fd5b506103376108cf565b6040516102e99190613f7c565b34801561035057600080fd5b5061033761035f366004613d41565b61095d565b34801561037057600080fd5b5061038461037f366004613b53565b6109f1565b005b34801561039257600080fd5b506103846103a13660046138c3565b610dbb565b3480156103b257600080fd5b506103846103c1366004613d7a565b610e43565b3480156103d257600080fd5b506103846103e1366004613c2e565b610e9e565b3480156103f257600080fd5b506102df610401366004613d41565b611051565b34801561041257600080fd5b50610426610421366004613d59565b611072565b604080516001600160a01b0390931683526020830191909152016102e9565b34801561045157600080fd5b506103846104603660046138f5565b6110b9565b34801561047157600080fd5b50610485610480366004613bcd565b61115b565b6040516102e99190613f3b565b34801561049e57600080fd5b506103846104ad366004613cea565b6112d1565b3480156104be57600080fd5b506103846104cd3660046139fe565b61134a565b3480156104de57600080fd5b506103846104ed366004613a51565b61140d565b3480156104fe57600080fd5b50610384611492565b34801561051357600080fd5b506102df600f5481565b34801561052957600080fd5b506103846105383660046138a9565b6114eb565b34801561054957600080fd5b50610552611567565b6040516001600160a01b0390911681526020016102e9565b34801561057657600080fd5b50610337611577565b61038461058d366004613dd6565b611584565b34801561059e57600080fd5b506103846105ad366004613ac2565b6116dd565b3480156105be57600080fd5b506103846116ec565b3480156105d357600080fd5b50600c546103129060ff1681565b3480156105ed57600080fd5b506105f661175b565b6040516102e99190613f8f565b34801561060f57600080fd5b5061038461061e366004613cea565b6118e7565b34801561062f57600080fd5b506102df61063e366004613d41565b611951565b34801561064f57600080fd5b506102df61065e366004613d41565b611961565b34801561066f57600080fd5b506102df61067e366004613d41565b611971565b34801561068f57600080fd5b506102df600d5481565b3480156106a557600080fd5b506103846106b4366004613da5565b6119a6565b3480156106c557600080fd5b506102df6106d4366004613d41565b611b02565b3480156106e557600080fd5b506103846106f4366004613c7a565b611b12565b610384610707366004613d59565b611b72565b34801561071857600080fd5b50610337611c70565b34801561072d57600080fd5b5061031261073c3660046138c3565b6001600160a01b03918216600090815260016020908152604080832093909416825291909152205460ff1690565b34801561077657600080fd5b506102df600e5481565b34801561078c57600080fd5b5061038461079b36600461399b565b611c7d565b3480156107ac57600080fd5b506103846107bb3660046138a9565b611d04565b3480156107cc57600080fd5b506103846107db366004613b21565b611dd9565b60006001600160a01b0383166108635760405162461bcd60e51b815260206004820152602b60248201527f455243313135353a2062616c616e636520717565727920666f7220746865207a60448201527f65726f206164647265737300000000000000000000000000000000000000000060648201526084015b60405180910390fd5b506000908152602081815260408083206001600160a01b03949094168352929052205490565b60006001600160e01b031982167f2a55205a0000000000000000000000000000000000000000000000000000000014806108c757506108c782611e5e565b90505b919050565b600580546108dc906140c2565b80601f0160208091040260200160405190810160405280929190818152602001828054610908906140c2565b80156109555780601f1061092a57610100808354040283529160200191610955565b820191906000526020600020905b81548152906001019060200180831161093857829003601f168201915b505050505081565b60606002805461096c906140c2565b80601f0160208091040260200160405190810160405280929190818152602001828054610998906140c2565b80156109e55780601f106109ba576101008083540402835291602001916109e5565b820191906000526020600020905b8154815290600101906020018083116109c857829003601f168201915b50505050509050919050565b336109fa611567565b6001600160a01b031614610a3e5760405162461bcd60e51b8152602060048201819052602482015260008051602061423f833981519152604482015260640161085a565b60005b8351811015610db55760005b838281518110610a6d57634e487b7160e01b600052603260045260246000fd5b602002602001015151811015610d0757600a848381518110610a9f57634e487b7160e01b600052603260045260246000fd5b60200260200101518281518110610ac657634e487b7160e01b600052603260045260246000fd5b602002602001015181548110610aec57634e487b7160e01b600052603260045260246000fd5b9060005260206000200154838381518110610b1757634e487b7160e01b600052603260045260246000fd5b60200260200101518281518110610b3e57634e487b7160e01b600052603260045260246000fd5b60200260200101516009868581518110610b6857634e487b7160e01b600052603260045260246000fd5b60200260200101518481518110610b8f57634e487b7160e01b600052603260045260246000fd5b602002602001015181548110610bb557634e487b7160e01b600052603260045260246000fd5b9060005260206000200154610bca9190614028565b1115610c185760405162461bcd60e51b815260206004820152601160248201527f4e6f7420656e6f75676820737570706c79000000000000000000000000000000604482015260640161085a565b828281518110610c3857634e487b7160e01b600052603260045260246000fd5b60200260200101518181518110610c5f57634e487b7160e01b600052603260045260246000fd5b60200260200101516009858481518110610c8957634e487b7160e01b600052603260045260246000fd5b60200260200101518381518110610cb057634e487b7160e01b600052603260045260246000fd5b602002602001015181548110610cd657634e487b7160e01b600052603260045260246000fd5b906000526020600020016000828254610cef9190614028565b90915550819050610cff8161412a565b915050610a4d565b50610da3848281518110610d2b57634e487b7160e01b600052603260045260246000fd5b6020026020010151848381518110610d5357634e487b7160e01b600052603260045260246000fd5b6020026020010151848481518110610d7b57634e487b7160e01b600052603260045260246000fd5b602002602001015160405180604001604052806002815260200161060f60f31b815250611ef9565b80610dad8161412a565b915050610a41565b50505050565b33610dc4611567565b6001600160a01b031614610e085760405162461bcd60e51b8152602060048201819052602482015260008051602061423f833981519152604482015260640161085a565b601080546001600160a01b0393841673ffffffffffffffffffffffffffffffffffffffff199182161790915560118054929093169116179055565b33610e4c611567565b6001600160a01b031614610e905760405162461bcd60e51b8152602060048201819052602482015260008051602061423f833981519152604482015260640161085a565b600d92909255600e55600f55565b33610ea7611567565b6001600160a01b031614610eeb5760405162461bcd60e51b8152602060048201819052602482015260008051602061423f833981519152604482015260640161085a565b8151835114610f3c5760405162461bcd60e51b815260206004820152601560248201527f4172726179206c656e677468206d69736d617463680000000000000000000000604482015260640161085a565b60005b8351811015610db557600a848281518110610f6a57634e487b7160e01b600052603260045260246000fd5b6020908102919091018101518254600181810185556000948552928420015560098054918201815582527f6e1540171b6c0c960b71a7020d9f60077f6af931a8bbf590da0223dacf75c7af01558251600890849083908110610fdc57634e487b7160e01b600052603260045260246000fd5b602090810291909101810151825460018101845560009384529190922001558151600b9083908390811061102057634e487b7160e01b600052603260045260246000fd5b60209081029190910181015182546001810184556000938452919092200155806110498161412a565b915050610f3f565b6009818154811061106157600080fd5b600091825260209091200154905081565b6015546000908190819061271090611098906bffffffffffffffffffffffff1686614060565b6110a29190614040565b6014546001600160a01b0316969095509350505050565b6001600160a01b0385163314806110d557506110d5853361073c565b6111475760405162461bcd60e51b815260206004820152603260248201527f455243313135353a207472616e736665722063616c6c6572206973206e6f742060448201527f6f776e6572206e6f7220617070726f7665640000000000000000000000000000606482015260840161085a565b61115485858585856120db565b5050505050565b606081518351146111d45760405162461bcd60e51b815260206004820152602960248201527f455243313135353a206163636f756e747320616e6420696473206c656e67746860448201527f206d69736d617463680000000000000000000000000000000000000000000000606482015260840161085a565b6000835167ffffffffffffffff8111156111fe57634e487b7160e01b600052604160045260246000fd5b604051908082528060200260200182016040528015611227578160200160208202803683370190505b50905060005b84518110156112c95761128e85828151811061125957634e487b7160e01b600052603260045260246000fd5b602002602001015185838151811061128157634e487b7160e01b600052603260045260246000fd5b60200260200101516107e0565b8282815181106112ae57634e487b7160e01b600052603260045260246000fd5b60209081029190910101526112c28161412a565b905061122d565b509392505050565b336112da611567565b6001600160a01b03161461131e5760405162461bcd60e51b8152602060048201819052602482015260008051602061423f833981519152604482015260640161085a565b8151611331906005906020850190613630565b508051611345906006906020840190613630565b505050565b33611353611567565b6001600160a01b0316146113975760405162461bcd60e51b8152602060048201819052602482015260008051602061423f833981519152604482015260640161085a565b6013805473ffffffffffffffffffffffffffffffffffffffff199081166001600160a01b03968716179091556014805490911693851693909317909316600160a01b6bffffffffffffffffffffffff9283160217909155601580546bffffffffffffffffffffffff191692909116919091179055565b6001600160a01b0383163314806114295750611429833361073c565b6114875760405162461bcd60e51b815260206004820152602960248201527f455243313135353a2063616c6c6572206973206e6f74206f776e6572206e6f7260448201526808185c1c1c9bdd995960ba1b606482015260840161085a565b611345838383612355565b3361149b611567565b6001600160a01b0316146114df5760405162461bcd60e51b8152602060048201819052602482015260008051602061423f833981519152604482015260640161085a565b6114e960006125a6565b565b336114f4611567565b6001600160a01b0316146115385760405162461bcd60e51b8152602060048201819052602482015260008051602061423f833981519152604482015260640161085a565b6012805473ffffffffffffffffffffffffffffffffffffffff19166001600160a01b0392909216919091179055565b6003546001600160a01b03165b90565b600680546108dc906140c2565b600260045414156115d75760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00604482015260640161085a565b6002600455600c5460ff1661161d5760405162461bcd60e51b815260206004820152600c60248201526b109d5e48191a5cd8589b195960a21b604482015260640161085a565b600d5442101561166f5760405162461bcd60e51b815260206004820152600e60248201527f50726573616c6520636c6f736564000000000000000000000000000000000000604482015260640161085a565b61167b33848484612605565b6116c75760405162461bcd60e51b815260206004820152600e60248201527f4e6f7420617574686f7269736564000000000000000000000000000000000000604482015260640161085a565b6116d1858561270f565b50506001600455505050565b6116e8338383612ae6565b5050565b6010546001600160a01b031633146117465760405162461bcd60e51b815260206004820152600e60248201527f4e6f7420617574686f7269736564000000000000000000000000000000000000604482015260640161085a565b6010546114e9906001600160a01b03166125a6565b6117866040518060800160405280606081526020016060815260200160608152602001606081525090565b604080516008805460a0602082028401810190945260808301818152929384939291908401828280156117d857602002820191906000526020600020905b8154815260200190600101908083116117c4575b50505050508152602001600980548060200260200160405190810160405280929190818152602001828054801561182e57602002820191906000526020600020905b81548152602001906001019080831161181a575b50505050508152602001600a80548060200260200160405190810160405280929190818152602001828054801561188457602002820191906000526020600020905b815481526020019060010190808311611870575b50505050508152602001600b8054806020026020016040519081016040528092919081815260200182805480156118da57602002820191906000526020600020905b8154815260200190600101908083116118c6575b5050505050815250905090565b336118f0611567565b6001600160a01b0316146119345760405162461bcd60e51b8152602060048201819052602482015260008051602061423f833981519152604482015260640161085a565b8151611947906007906020850190613630565b506116e881612bdb565b600a818154811061106157600080fd5b6008818154811061106157600080fd5b6000600a828154811061199457634e487b7160e01b600052603260045260246000fd5b90600052602060002001549050919050565b336119af611567565b6001600160a01b0316146119f35760405162461bcd60e51b8152602060048201819052602482015260008051602061423f833981519152604482015260640161085a565b8160098581548110611a1557634e487b7160e01b600052603260045260246000fd5b90600052602060002001541115611a6e5760405162461bcd60e51b815260206004820152600e60248201527f537570706c7920746f6f206c6f77000000000000000000000000000000000000604482015260640161085a565b8260088581548110611a9057634e487b7160e01b600052603260045260246000fd5b906000526020600020018190555081600a8581548110611ac057634e487b7160e01b600052603260045260246000fd5b906000526020600020018190555080600b8581548110611af057634e487b7160e01b600052603260045260246000fd5b60009182526020909120015550505050565b600b818154811061106157600080fd5b33611b1b611567565b6001600160a01b031614611b5f5760405162461bcd60e51b8152602060048201819052602482015260008051602061423f833981519152604482015260640161085a565b600c805460ff1916911515919091179055565b60026004541415611bc55760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00604482015260640161085a565b6002600455600c5460ff16611c0b5760405162461bcd60e51b815260206004820152600c60248201526b109d5e48191a5cd8589b195960a21b604482015260640161085a565b600e54421015611c5d5760405162461bcd60e51b815260206004820152601260248201527f5075626c69632073616c6520636c6f7365640000000000000000000000000000604482015260640161085a565b611c67828261270f565b50506001600455565b600780546108dc906140c2565b6001600160a01b038516331480611c995750611c99853361073c565b611cf75760405162461bcd60e51b815260206004820152602960248201527f455243313135353a2063616c6c6572206973206e6f74206f776e6572206e6f7260448201526808185c1c1c9bdd995960ba1b606482015260840161085a565b6111548585858585612bee565b33611d0d611567565b6001600160a01b031614611d515760405162461bcd60e51b8152602060048201819052602482015260008051602061423f833981519152604482015260640161085a565b6001600160a01b038116611dcd5760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201527f6464726573730000000000000000000000000000000000000000000000000000606482015260840161085a565b611dd6816125a6565b50565b6001600160a01b038316331480611df55750611df5833361073c565b611e535760405162461bcd60e51b815260206004820152602960248201527f455243313135353a2063616c6c6572206973206e6f74206f776e6572206e6f7260448201526808185c1c1c9bdd995960ba1b606482015260840161085a565b611345838383612d95565b60006001600160e01b031982167fd9b67a26000000000000000000000000000000000000000000000000000000001480611ec157506001600160e01b031982167f0e89341c00000000000000000000000000000000000000000000000000000000145b806108c757507f01ffc9a7000000000000000000000000000000000000000000000000000000006001600160e01b03198316146108c7565b6001600160a01b038416611f595760405162461bcd60e51b815260206004820152602160248201527f455243313135353a206d696e7420746f20746865207a65726f206164647265736044820152607360f81b606482015260840161085a565b8151835114611fbb5760405162461bcd60e51b815260206004820152602860248201527f455243313135353a2069647320616e6420616d6f756e7473206c656e677468206044820152670dad2e6dac2e8c6d60c31b606482015260840161085a565b3360005b845181101561207357838181518110611fe857634e487b7160e01b600052603260045260246000fd5b602002602001015160008087848151811061201357634e487b7160e01b600052603260045260246000fd5b602002602001015181526020019081526020016000206000886001600160a01b03166001600160a01b03168152602001908152602001600020600082825461205b9190614028565b9091555081905061206b8161412a565b915050611fbf565b50846001600160a01b031660006001600160a01b0316826001600160a01b03167f4a39dc06d4c0dbc64b70af90fd698a233a518aa5d07e595d983b8c0526c8f7fb87876040516120c4929190613f4e565b60405180910390a461115481600087878787612f0f565b815183511461213d5760405162461bcd60e51b815260206004820152602860248201527f455243313135353a2069647320616e6420616d6f756e7473206c656e677468206044820152670dad2e6dac2e8c6d60c31b606482015260840161085a565b6001600160a01b0384166121a15760405162461bcd60e51b815260206004820152602560248201527f455243313135353a207472616e7366657220746f20746865207a65726f206164604482015264647265737360d81b606482015260840161085a565b3360005b84518110156122e75760008582815181106121d057634e487b7160e01b600052603260045260246000fd5b6020026020010151905060008583815181106121fc57634e487b7160e01b600052603260045260246000fd5b602090810291909101810151600084815280835260408082206001600160a01b038e16835290935291909120549091508181101561228f5760405162461bcd60e51b815260206004820152602a60248201527f455243313135353a20696e73756666696369656e742062616c616e636520666f60448201526939103a3930b739b332b960b11b606482015260840161085a565b6000838152602081815260408083206001600160a01b038e8116855292528083208585039055908b168252812080548492906122cc908490614028565b92505081905550505050806122e09061412a565b90506121a5565b50846001600160a01b0316866001600160a01b0316826001600160a01b03167f4a39dc06d4c0dbc64b70af90fd698a233a518aa5d07e595d983b8c0526c8f7fb8787604051612337929190613f4e565b60405180910390a461234d818787878787612f0f565b505050505050565b6001600160a01b0383166123b75760405162461bcd60e51b815260206004820152602360248201527f455243313135353a206275726e2066726f6d20746865207a65726f206164647260448201526265737360e81b606482015260840161085a565b80518251146124195760405162461bcd60e51b815260206004820152602860248201527f455243313135353a2069647320616e6420616d6f756e7473206c656e677468206044820152670dad2e6dac2e8c6d60c31b606482015260840161085a565b604080516020810190915260009081905233905b835181101561254757600084828151811061245857634e487b7160e01b600052603260045260246000fd5b60200260200101519050600084838151811061248457634e487b7160e01b600052603260045260246000fd5b602090810291909101810151600084815280835260408082206001600160a01b038c1683529093529190912054909150818110156125105760405162461bcd60e51b8152602060048201526024808201527f455243313135353a206275726e20616d6f756e7420657863656564732062616c604482015263616e636560e01b606482015260840161085a565b6000928352602083815260408085206001600160a01b038b168652909152909220910390558061253f8161412a565b91505061242d565b5060006001600160a01b0316846001600160a01b0316826001600160a01b03167f4a39dc06d4c0dbc64b70af90fd698a233a518aa5d07e595d983b8c0526c8f7fb8686604051612598929190613f4e565b60405180910390a450505050565b600380546001600160a01b0383811673ffffffffffffffffffffffffffffffffffffffff19831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b6040516bffffffffffffffffffffffff1930606090811b8216602084015286901b166034820152600090819060480160405160208183030381529060405280519060200120905060018160405160200161268b91907f19457468657265756d205369676e6564204d6573736167653a0a3332000000008152601c810191909152603c0190565b60408051601f198184030181528282528051602091820120600084529083018083525260ff881690820152606081018690526080810185905260a0016020604051602081039080840390855afa1580156126e9573d6000803e3d6000fd5b5050604051601f1901516011546001600160a01b03918216911614979650505050505050565b600f541561276857600f5442106127685760405162461bcd60e51b815260206004820152600b60248201527f53616c6520636c6f736564000000000000000000000000000000000000000000604482015260640161085a565b600a828154811061278957634e487b7160e01b600052603260045260246000fd5b906000526020600020015481600984815481106127b657634e487b7160e01b600052603260045260246000fd5b90600052602060002001546127cb9190614028565b11156128195760405162461bcd60e51b815260206004820152601160248201527f4e6f7420656e6f75676820737570706c79000000000000000000000000000000604482015260640161085a565b600b828154811061283a57634e487b7160e01b600052603260045260246000fd5b90600052602060002001546000146128db57600b828154811061286d57634e487b7160e01b600052603260045260246000fd5b90600052602060002001548161288333856107e0565b61288d9190614028565b11156128db5760405162461bcd60e51b815260206004820152601560248201527f4d6178207065722061646472657373206c696d69740000000000000000000000604482015260640161085a565b80600983815481106128fd57634e487b7160e01b600052603260045260246000fd5b9060005260206000200160008282546129169190614028565b9250508190555061294333838360405180604001604052806002815260200161060f60f31b8152506130c4565b6000816008848154811061296757634e487b7160e01b600052603260045260246000fd5b906000526020600020015461297c9190614060565b601454909150600090612710906129a890600160a01b90046bffffffffffffffffffffffff1684614060565b6129b29190614040565b6012549091506001600160a01b0316612a975781341015612a155760405162461bcd60e51b815260206004820152601260248201527f496e73756666696369656e742076616c75650000000000000000000000000000604482015260640161085a565b6013546040516001600160a01b039091169082156108fc029083906000818181858888f19350505050158015612a4f573d6000803e3d6000fd5b506010546001600160a01b03166108fc612a69838561407f565b6040518115909202916000818181858888f19350505050158015612a91573d6000803e3d6000fd5b50610db5565b6012546013546001600160a01b0391821691612ab8918391339116856131c5565b6010546111549033906001600160a01b0316612ad4858761407f565b6001600160a01b0385169291906131c5565b816001600160a01b0316836001600160a01b03161415612b6e5760405162461bcd60e51b815260206004820152602960248201527f455243313135353a2073657474696e6720617070726f76616c2073746174757360448201527f20666f722073656c660000000000000000000000000000000000000000000000606482015260840161085a565b6001600160a01b03838116600081815260016020908152604080832094871680845294825291829020805460ff191686151590811790915591519182527f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a3505050565b80516116e8906002906020840190613630565b6001600160a01b038416612c525760405162461bcd60e51b815260206004820152602560248201527f455243313135353a207472616e7366657220746f20746865207a65726f206164604482015264647265737360d81b606482015260840161085a565b33612c6b818787612c628861324d565b6111548861324d565b6000848152602081815260408083206001600160a01b038a16845290915290205483811015612cef5760405162461bcd60e51b815260206004820152602a60248201527f455243313135353a20696e73756666696369656e742062616c616e636520666f60448201526939103a3930b739b332b960b11b606482015260840161085a565b6000858152602081815260408083206001600160a01b038b8116855292528083208785039055908816825281208054869290612d2c908490614028565b909155505060408051868152602081018690526001600160a01b03808916928a821692918616917fc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f62910160405180910390a4612d8c8288888888886132a6565b50505050505050565b6001600160a01b038316612df75760405162461bcd60e51b815260206004820152602360248201527f455243313135353a206275726e2066726f6d20746865207a65726f206164647260448201526265737360e81b606482015260840161085a565b33612e2781856000612e088761324d565b612e118761324d565b5050604080516020810190915260009052505050565b6000838152602081815260408083206001600160a01b038816845290915290205482811015612ea45760405162461bcd60e51b8152602060048201526024808201527f455243313135353a206275726e20616d6f756e7420657863656564732062616c604482015263616e636560e01b606482015260840161085a565b6000848152602081815260408083206001600160a01b03898116808652918452828520888703905582518981529384018890529092908616917fc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f62910160405180910390a45050505050565b6001600160a01b0384163b1561234d5760405163bc197c8160e01b81526001600160a01b0385169063bc197c8190612f539089908990889088908890600401613ea5565b602060405180830381600087803b158015612f6d57600080fd5b505af1925050508015612f9d575060408051601f3d908101601f19168201909252612f9a91810190613cce565b60015b61305357612fa9614171565b806308c379a01415612fe35750612fbe614188565b80612fc95750612fe5565b8060405162461bcd60e51b815260040161085a9190613f7c565b505b60405162461bcd60e51b815260206004820152603460248201527f455243313135353a207472616e7366657220746f206e6f6e204552433131353560448201527f526563656976657220696d706c656d656e746572000000000000000000000000606482015260840161085a565b6001600160e01b0319811663bc197c8160e01b14612d8c5760405162461bcd60e51b815260206004820152602860248201527f455243313135353a204552433131353552656365697665722072656a656374656044820152676420746f6b656e7360c01b606482015260840161085a565b6001600160a01b0384166131245760405162461bcd60e51b815260206004820152602160248201527f455243313135353a206d696e7420746f20746865207a65726f206164647265736044820152607360f81b606482015260840161085a565b3361313581600087612c628861324d565b6000848152602081815260408083206001600160a01b038916845290915281208054859290613165908490614028565b909155505060408051858152602081018590526001600160a01b0380881692600092918516917fc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f62910160405180910390a4611154816000878787876132a6565b604080516001600160a01b0385811660248301528416604482015260648082018490528251808303909101815260849091019091526020810180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff167f23b872dd00000000000000000000000000000000000000000000000000000000179052610db59085906133b1565b6040805160018082528183019092526060916000919060208083019080368337019050509050828160008151811061329557634e487b7160e01b600052603260045260246000fd5b602090810291909101015292915050565b6001600160a01b0384163b1561234d5760405163f23a6e6160e01b81526001600160a01b0385169063f23a6e61906132ea9089908990889088908890600401613f03565b602060405180830381600087803b15801561330457600080fd5b505af1925050508015613334575060408051601f3d908101601f1916820190925261333191810190613cce565b60015b61334057612fa9614171565b6001600160e01b0319811663f23a6e6160e01b14612d8c5760405162461bcd60e51b815260206004820152602860248201527f455243313135353a204552433131353552656365697665722072656a656374656044820152676420746f6b656e7360c01b606482015260840161085a565b6000613406826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564815250856001600160a01b03166134969092919063ffffffff16565b80519091501561134557808060200190518101906134249190613c96565b6113455760405162461bcd60e51b815260206004820152602a60248201527f5361666545524332303a204552433230206f7065726174696f6e20646964206e60448201527f6f74207375636365656400000000000000000000000000000000000000000000606482015260840161085a565b60606134a584846000856134af565b90505b9392505050565b6060824710156135275760405162461bcd60e51b815260206004820152602660248201527f416464726573733a20696e73756666696369656e742062616c616e636520666f60448201527f722063616c6c0000000000000000000000000000000000000000000000000000606482015260840161085a565b6001600160a01b0385163b61357e5760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e7472616374000000604482015260640161085a565b600080866001600160a01b0316858760405161359a9190613e89565b60006040518083038185875af1925050503d80600081146135d7576040519150601f19603f3d011682016040523d82523d6000602084013e6135dc565b606091505b50915091506135ec8282866135f7565b979650505050505050565b606083156136065750816134a8565b8251156136165782518084602001fd5b8160405162461bcd60e51b815260040161085a9190613f7c565b82805461363c906140c2565b90600052602060002090601f01602090048101928261365e57600085556136a4565b82601f1061367757805160ff19168380011785556136a4565b828001600101855582156136a4579182015b828111156136a4578251825591602001919060010190613689565b506136b09291506136b4565b5090565b5b808211156136b057600081556001016136b5565b80356001600160a01b03811681146108ca57600080fd5b600082601f8301126136f0578081fd5b813560206136fd82614004565b60405161370a82826140fd565b838152828101915085830183850287018401881015613727578586fd5b855b8581101561374c5761373a826136c9565b84529284019290840190600101613729565b5090979650505050505050565b600082601f830112613769578081fd5b8135602061377682614004565b60405161378382826140fd565b8381528281019150858301855b8581101561374c576137a7898684358b01016137b9565b84529284019290840190600101613790565b600082601f8301126137c9578081fd5b813560206137d682614004565b6040516137e382826140fd565b838152828101915085830183850287018401881015613800578586fd5b855b8581101561374c57813584529284019290840190600101613802565b600082601f83011261382e578081fd5b813567ffffffffffffffff8111156138485761384861415b565b60405161385f601f8301601f1916602001826140fd565b818152846020838601011115613873578283fd5b816020850160208301379081016020019190915292915050565b80356bffffffffffffffffffffffff811681146108ca57600080fd5b6000602082840312156138ba578081fd5b6134a8826136c9565b600080604083850312156138d5578081fd5b6138de836136c9565b91506138ec602084016136c9565b90509250929050565b600080600080600060a0868803121561390c578081fd5b613915866136c9565b9450613923602087016136c9565b9350604086013567ffffffffffffffff8082111561393f578283fd5b61394b89838a016137b9565b94506060880135915080821115613960578283fd5b61396c89838a016137b9565b93506080880135915080821115613981578283fd5b5061398e8882890161381e565b9150509295509295909350565b600080600080600060a086880312156139b2578081fd5b6139bb866136c9565b94506139c9602087016136c9565b93506040860135925060608601359150608086013567ffffffffffffffff8111156139f2578182fd5b61398e8882890161381e565b60008060008060808587031215613a13578182fd5b613a1c856136c9565b9350613a2a602086016136c9565b9250613a386040860161388d565b9150613a466060860161388d565b905092959194509250565b600080600060608486031215613a65578081fd5b613a6e846136c9565b9250602084013567ffffffffffffffff80821115613a8a578283fd5b613a96878388016137b9565b93506040860135915080821115613aab578283fd5b50613ab8868287016137b9565b9150509250925092565b60008060408385031215613ad4578182fd5b613add836136c9565b91506020830135613aed8161421a565b809150509250929050565b60008060408385031215613b0a578182fd5b613b13836136c9565b946020939093013593505050565b600080600060608486031215613b35578081fd5b613b3e846136c9565b95602085013595506040909401359392505050565b600080600060608486031215613b67578081fd5b833567ffffffffffffffff80821115613b7e578283fd5b613b8a878388016136e0565b94506020860135915080821115613b9f578283fd5b613bab87838801613759565b93506040860135915080821115613bc0578283fd5b50613ab886828701613759565b60008060408385031215613bdf578182fd5b823567ffffffffffffffff80821115613bf6578384fd5b613c02868387016136e0565b93506020850135915080821115613c17578283fd5b50613c24858286016137b9565b9150509250929050565b600080600060608486031215613c42578081fd5b833567ffffffffffffffff80821115613c59578283fd5b613c65878388016137b9565b94506020860135915080821115613a8a578283fd5b600060208284031215613c8b578081fd5b81356134a88161421a565b600060208284031215613ca7578081fd5b81516134a88161421a565b600060208284031215613cc3578081fd5b81356134a881614228565b600060208284031215613cdf578081fd5b81516134a881614228565b60008060408385031215613cfc578182fd5b823567ffffffffffffffff80821115613d13578384fd5b613d1f8683870161381e565b93506020850135915080821115613d34578283fd5b50613c248582860161381e565b600060208284031215613d52578081fd5b5035919050565b60008060408385031215613d6b578182fd5b50508035926020909101359150565b600080600060608486031215613d8e578081fd5b505081359360208301359350604090920135919050565b60008060008060808587031215613dba578182fd5b5050823594602084013594506040840135936060013592509050565b600080600080600060a08688031215613ded578283fd5b8535945060208601359350604086013560ff81168114613e0b578384fd5b94979396509394606081013594506080013592915050565b6000815180845260208085019450808401835b83811015613e5257815187529582019590820190600101613e36565b509495945050505050565b60008151808452613e75816020860160208601614096565b601f01601f19169290920160200192915050565b60008251613e9b818460208701614096565b9190910192915050565b60006001600160a01b03808816835280871660208401525060a06040830152613ed160a0830186613e23565b8281036060840152613ee38186613e23565b90508281036080840152613ef78185613e5d565b98975050505050505050565b60006001600160a01b03808816835280871660208401525084604083015283606083015260a060808301526135ec60a0830184613e5d565b6000602082526134a86020830184613e23565b600060408252613f616040830185613e23565b8281036020840152613f738185613e23565b95945050505050565b6000602082526134a86020830184613e5d565b600060208252825160806020840152613fab60a0840182613e23565b90506020840151601f1980858403016040860152613fc98383613e23565b92506040860151915080858403016060860152613fe68383613e23565b9250606086015191508085840301608086015250613f738282613e23565b600067ffffffffffffffff82111561401e5761401e61415b565b5060209081020190565b6000821982111561403b5761403b614145565b500190565b60008261405b57634e487b7160e01b81526012600452602481fd5b500490565b600081600019048311821515161561407a5761407a614145565b500290565b60008282101561409157614091614145565b500390565b60005b838110156140b1578181015183820152602001614099565b83811115610db55750506000910152565b6002810460018216806140d657607f821691505b602082108114156140f757634e487b7160e01b600052602260045260246000fd5b50919050565b601f8201601f1916810167ffffffffffffffff811182821017156141235761412361415b565b6040525050565b600060001982141561413e5761413e614145565b5060010190565b634e487b7160e01b600052601160045260246000fd5b634e487b7160e01b600052604160045260246000fd5b600060033d111561157457600481823e5160e01c90565b600060443d101561419857611574565b6040516003193d81016004833e81513d67ffffffffffffffff81602484011181841117156141ca575050505050611574565b82850191508151818111156141e457505050505050611574565b843d870101602082850101111561420057505050505050611574565b61420f602082860101876140fd565b509094505050505090565b8015158114611dd657600080fd5b6001600160e01b031981168114611dd657600080fdfe4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572a2646970667358221220519161b60ef79b5cd6b879e54891ea740038443738f897f87921c8ba5ae1983064736f6c63430008020033
Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)
00000000000000000000000000000000000000000000000000000000000000e00000000000000000000000000000000000000000000000000000000000000120000000000000000000000000000000000000000000000000000000000000016000000000000000000000000000000000000000000000000000000000000001e0000000000000000000000000000000000000000000000000000000000000000100000000000000000000000014ee8d09ca506206332faf38bffd1da02eaf9c02000000000000000000000000ee8e7e483aa7d8110924ed43ff6a3f10364de37000000000000000000000000000000000000000000000000000000000000000144353412047656e2d31204d656d6265727368697000000000000000000000000000000000000000000000000000000000000000000000000000000000000000084353412d47312d4d000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000004e68747470733a2f2f6373612e6d7970696e6174612e636c6f75642f697066732f516d573934645a776174636266577666545948464c35673962553945343537483733427856734b626b3771634766000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000005568747470733a2f2f6373612e6d7970696e6174612e636c6f75642f697066732f516d5431376333736e6a5838557577625a37757546314d4d766141765267355543506d6d33353845424e334a74702f302e6a736f6e0000000000000000000000
-----Decoded View---------------
Arg [0] : _name (string): CSA Gen-1 Membership
Arg [1] : _symbol (string): CSA-G1-M
Arg [2] : _contractMetadataURI (string): https://csa.mypinata.cloud/ipfs/QmW94dZwatcbfWvfTYHFL5g9bU9E457H73BxVsKbk7qcGf
Arg [3] : _tokenMetadataURI (string): https://csa.mypinata.cloud/ipfs/QmT17c3snjX8UuwbZ7uuF1MMvaAvRg5UCPmm358EBN3Jtp/0.json
Arg [4] : _allowBuy (bool): True
Arg [5] : _customerAddress (address): 0x14eE8d09ca506206332FAf38BFFD1da02eaF9c02
Arg [6] : _presaleAddress (address): 0xEe8E7e483Aa7D8110924eD43fF6a3F10364DE370
-----Encoded View---------------
19 Constructor Arguments found :
Arg [0] : 00000000000000000000000000000000000000000000000000000000000000e0
Arg [1] : 0000000000000000000000000000000000000000000000000000000000000120
Arg [2] : 0000000000000000000000000000000000000000000000000000000000000160
Arg [3] : 00000000000000000000000000000000000000000000000000000000000001e0
Arg [4] : 0000000000000000000000000000000000000000000000000000000000000001
Arg [5] : 00000000000000000000000014ee8d09ca506206332faf38bffd1da02eaf9c02
Arg [6] : 000000000000000000000000ee8e7e483aa7d8110924ed43ff6a3f10364de370
Arg [7] : 0000000000000000000000000000000000000000000000000000000000000014
Arg [8] : 4353412047656e2d31204d656d62657273686970000000000000000000000000
Arg [9] : 0000000000000000000000000000000000000000000000000000000000000008
Arg [10] : 4353412d47312d4d000000000000000000000000000000000000000000000000
Arg [11] : 000000000000000000000000000000000000000000000000000000000000004e
Arg [12] : 68747470733a2f2f6373612e6d7970696e6174612e636c6f75642f697066732f
Arg [13] : 516d573934645a776174636266577666545948464c3567396255394534353748
Arg [14] : 3733427856734b626b3771634766000000000000000000000000000000000000
Arg [15] : 0000000000000000000000000000000000000000000000000000000000000055
Arg [16] : 68747470733a2f2f6373612e6d7970696e6174612e636c6f75642f697066732f
Arg [17] : 516d5431376333736e6a5838557577625a37757546314d4d7661417652673555
Arg [18] : 43506d6d33353845424e334a74702f302e6a736f6e0000000000000000000000
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.