ERC-1155
Overview
Max Total Supply
479 OOZMAD
Holders
43
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:
Madicine
Compiler Version
v0.8.22+commit.4fc1097e
Optimization Enabled:
Yes with 200 runs
Other Settings:
default evmVersion
Contract Source Code (Solidity Standard Json-Input format)
// SPDX-License-Identifier: MIT pragma solidity ^0.8.4; import "@openzeppelin/contracts/token/ERC1155/ERC1155.sol"; import "@openzeppelin/contracts/access/Ownable.sol"; contract Madicine is ERC1155, Ownable { event Prescribe(address indexed addr, uint256 indexed madicineId, uint256 indexed oozId); struct MadicineInfo { uint16 maxSupply; uint16 walletLimit; bool prescribeAllowed; address prescribeCosigner; uint16 mintCount; uint16 currentStageId; uint16 pointerId; bool isReversed; uint80 ethCost; uint80 ip3Cost; uint56 prescribeEndTime; } struct StageInfo { uint56 startTime; uint56 endTime; bool mintAllowed; uint8 mintMethod; uint80 ethPrice; uint16 maxSupply; uint16 walletLimit; uint16 mintCount; bytes32 merkleRoot; address cosigner; uint80 ip3Price; uint16 nPerMate; } mapping(uint256 => MadicineInfo) private _madicineInfo; mapping(uint256 => bool) private _madicineExists; mapping(uint256 => string) private _metadataUri; mapping(uint256 => mapping(uint256 => StageInfo)) private _stageInfo; mapping(uint256 => int16[10000]) private _prescribed; uint16[][10000] private _prescribedMadicine; mapping(uint256 => uint256) private _totalSupply; mapping(uint256 => mapping(address => uint256)) private _numberMinted; mapping(uint256 => mapping(uint256 => mapping(address => uint256))) private _stageMintedCountsPerWallet; mapping(address => uint256) private _totalPrescribed; address public utilContract; bool private contractInitialized; constructor() ERC1155("") {} function name() external pure returns (string memory) { return "OOZ Mad-icine"; } function symbol() external pure returns (string memory) { return "OOZMAD"; } function getMadicineInfo(uint256 madicineId) external view returns (MadicineInfo memory) { require(_madicineExists[madicineId], "Madicine ID does not exist"); return _madicineInfo[madicineId]; } function getStageInfo(uint256 madicineId, uint256 stageId) external view returns (StageInfo memory) { require(_madicineExists[madicineId], "Madicine ID does not exist"); require(stageId > 0 && stageId <= _madicineInfo[madicineId].currentStageId, "Stage ID does not exist"); return _stageInfo[madicineId][stageId]; } function totalSupply(uint256[] calldata madicineIds) external view returns (uint256[] memory) { uint256[] memory batchSupply = new uint256[](madicineIds.length); for (uint256 i = 0; i < madicineIds.length; ++i) { require(_madicineExists[madicineIds[i]], "Madicine ID does not exist"); batchSupply[i] = _totalSupply[madicineIds[i]]; } return batchSupply; } function numberMintedBy(uint256 madicineId, address addr) external view returns (uint256) { require(_madicineExists[madicineId], "Madicine ID does not exist"); return _numberMinted[madicineId][addr]; } function stageMintedBy(uint256 madicineId, uint256 stageId, address addr) external view returns (uint256) { require(_madicineExists[madicineId], "Madicine ID does not exist"); require(stageId > 0 && stageId <= _madicineInfo[madicineId].currentStageId, "Stage ID does not exist"); return _stageMintedCountsPerWallet[madicineId][stageId][addr]; } function totalPrescribedBy(address addr) external view returns (uint256) { return _totalPrescribed[addr]; } function prescribedMadicineOf(uint256 oozId) external view returns (uint16[] memory) { require(oozId > 0 && oozId < 10000, "OOZ ID does not exist"); return _prescribedMadicine[oozId]; } function isPrescribed(uint256 madicineId, uint256 oozId) public view returns (bool) { require(_madicineExists[madicineId], "Madicine ID does not exist"); require(oozId > 0 && oozId < 10000, "OOZ ID does not exist"); return _prescribed[madicineId][oozId] == int(madicineId); } function canPrescribe(uint256 madicineId, uint256 oozId) public view returns (bool) { require(_madicineExists[madicineId], "Madicine ID does not exist"); require(oozId > 0 && oozId < 10000, "OOZ ID does not exist"); if (!_madicineInfo[madicineId].isReversed) { if (!_madicineInfo[_madicineInfo[madicineId].pointerId].isReversed) { return (_prescribed[_madicineInfo[madicineId].pointerId][oozId] == 0) && (_prescribed[madicineId][oozId] == 0); } else { return (_prescribed[_madicineInfo[madicineId].pointerId][oozId] == -1) && (_prescribed[madicineId][oozId] == 0); } } else { if (!_madicineInfo[_madicineInfo[madicineId].pointerId].isReversed) { return (_prescribed[_madicineInfo[madicineId].pointerId][oozId] == 0) && (_prescribed[madicineId][oozId] == -1); } else { return (_prescribed[_madicineInfo[madicineId].pointerId][oozId] == -1) && (_prescribed[madicineId][oozId] == -1); } } } function canPrescribeNow(uint256 madicineId, uint256 oozId) public view returns (bool) { require(_madicineExists[madicineId], "Madicine ID does not exist"); require(oozId > 0 && oozId < 10000, "OOZ ID does not exist"); if (!_madicineInfo[madicineId].prescribeAllowed) { return false; } if (_madicineInfo[madicineId].prescribeEndTime != 0 && block.timestamp > _madicineInfo[madicineId].prescribeEndTime) { return false; } return canPrescribe(madicineId, oozId); } function uri(uint256 madicineId) public view virtual override returns (string memory) { require(_madicineExists[madicineId], "Madicine ID does not exist"); return _metadataUri[madicineId]; } function tokenURI(uint256 tokenId) public view returns (string memory) { return uri(tokenId); } function addMadicine(uint256 madicineId, uint16 maxSupply, uint16 walletLimit, bool prescribeAllowed, address prescribeCosigner, string calldata metadata, uint80 ethCost, uint80 ip3Cost, uint56 prescribeEndTime) public onlyOwner { require(!_madicineExists[madicineId], "Madicine ID already exists"); require(madicineId > 0 && madicineId < 2 ** 15, "Madicine ID out of bounds"); _madicineInfo[madicineId] = MadicineInfo({ maxSupply: maxSupply, walletLimit: walletLimit, prescribeAllowed: prescribeAllowed, prescribeCosigner: prescribeCosigner, mintCount: 0, currentStageId: 0, pointerId: uint16(madicineId), isReversed: false, ethCost: ethCost, ip3Cost: ip3Cost, prescribeEndTime: prescribeEndTime }); _madicineExists[madicineId] = true; _metadataUri[madicineId] = metadata; } function editMadicine(uint256 madicineId, uint16 maxSupply, uint16 walletLimit, address prescribeCosigner, string calldata metadata, uint80 ethCost, uint80 ip3Cost, uint56 prescribeEndTime) public onlyOwner { require(_madicineExists[madicineId], "Madicine ID does not exist"); _madicineInfo[madicineId].maxSupply = maxSupply; _madicineInfo[madicineId].walletLimit = walletLimit; _madicineInfo[madicineId].prescribeCosigner = prescribeCosigner; _madicineInfo[madicineId].ethCost = ethCost; _madicineInfo[madicineId].ip3Cost = ip3Cost; _madicineInfo[madicineId].prescribeEndTime = prescribeEndTime; _metadataUri[madicineId] = metadata; } function invertPrescribeAllowed(uint256[] calldata madicineIds) public onlyOwner { for (uint256 i = 0; i < madicineIds.length; i++) { require(_madicineExists[madicineIds[i]], "Madicine ID does not exist"); _madicineInfo[madicineIds[i]].prescribeAllowed = !_madicineInfo[madicineIds[i]].prescribeAllowed; } } function addStage(uint256 madicineId, uint56[2] calldata times, bool mintAllowed, uint8 mintMethod, uint80 ethPrice, uint16 maxSupply, uint16 walletLimit, bytes32 merkleRoot, address cosigner, uint80 ip3Price, uint16 nPerMate) public onlyOwner { require(_madicineExists[madicineId], "Madicine ID does not exist"); _madicineInfo[madicineId].currentStageId++; _stageInfo[madicineId][_madicineInfo[madicineId].currentStageId] = StageInfo({ startTime: times[0], endTime: times[1], mintAllowed: mintAllowed, mintMethod: mintMethod, ethPrice: ethPrice, maxSupply: maxSupply, walletLimit: walletLimit, mintCount: 0, merkleRoot: merkleRoot, cosigner: cosigner, ip3Price: ip3Price, nPerMate: nPerMate }); } function editStage(uint256 madicineId, uint256 stageId, uint56[2] calldata times, uint8 mintMethod, uint80 ethPrice, uint16 maxSupply, uint16 walletLimit, bytes32 merkleRoot, address cosigner, uint80 ip3Price, uint16 nPerMate) public onlyOwner { require(_madicineExists[madicineId], "Madicine ID does not exist"); require(stageId > 0 && stageId <= _madicineInfo[madicineId].currentStageId, "Stage ID does not exist"); require(_stageInfo[madicineId][stageId].mintCount == 0, "Stage has already started"); _stageInfo[madicineId][stageId].startTime = times[0]; _stageInfo[madicineId][stageId].endTime = times[1]; _stageInfo[madicineId][stageId].mintMethod = mintMethod; _stageInfo[madicineId][stageId].ethPrice = ethPrice; _stageInfo[madicineId][stageId].maxSupply = maxSupply; _stageInfo[madicineId][stageId].walletLimit = walletLimit; _stageInfo[madicineId][stageId].merkleRoot = merkleRoot; _stageInfo[madicineId][stageId].cosigner = cosigner; _stageInfo[madicineId][stageId].ip3Price = ip3Price; _stageInfo[madicineId][stageId].nPerMate = nPerMate; } function invertMintAllowed(uint256[] calldata madicineIds, uint256[] calldata stageIds) public onlyOwner { require(madicineIds.length == stageIds.length, "Array length not matching"); for (uint256 i = 0; i < madicineIds.length; i++) { require(_madicineExists[madicineIds[i]], "Madicine ID does not exist"); require(stageIds[i] > 0 && stageIds[i] <= _madicineInfo[madicineIds[i]].currentStageId, "Stage ID does not exist"); _stageInfo[madicineIds[i]][stageIds[i]].mintAllowed = !_stageInfo[madicineIds[i]][stageIds[i]].mintAllowed; } } function ownerMint(uint256[] calldata madicineIds, address[] calldata to, uint256[] calldata amount) public onlyOwner { require(madicineIds.length == to.length && to.length == amount.length, "Array length not matching"); for (uint256 i = 0; i < to.length; i++) { require(_madicineExists[madicineIds[i]], "Madicine ID does not exist"); require(amount[i] + _madicineInfo[madicineIds[i]].mintCount <= _madicineInfo[madicineIds[i]].maxSupply, "Exceeds maximum madicine supply"); _mint(to[i], madicineIds[i], amount[i], ""); unchecked { _totalSupply[madicineIds[i]] += amount[i]; _madicineInfo[madicineIds[i]].mintCount += uint16(amount[i]); _numberMinted[madicineIds[i]][msg.sender] += amount[i]; } } } function point(uint256[] calldata madicineIdsFrom, uint256[] calldata madicineIdsTo) public onlyOwner { require(madicineIdsFrom.length == madicineIdsTo.length, "Array length not matching"); for (uint256 i = 0; i < madicineIdsFrom.length; i++) { require(_madicineExists[madicineIdsFrom[i]] && _madicineExists[madicineIdsTo[i]], "Madicine ID does not exist"); _madicineInfo[madicineIdsFrom[i]].pointerId = uint16(madicineIdsTo[i]); } } function blacklist(uint256 madicineId, uint256[] calldata oozIds) public onlyOwner { require(_madicineExists[madicineId], "Madicine ID does not exist"); for (uint256 i = 0; i < oozIds.length; i++) { require(oozIds[i] > 0 && oozIds[i] < 10000, "OOZ ID does not exist"); require(_prescribed[madicineId][oozIds[i]] == 0, "Cannot blacklist this OOZ"); _prescribed[madicineId][oozIds[i]] = -1; } } function unblacklist(uint256 madicineId, uint256[] calldata oozIds) public onlyOwner { require(_madicineExists[madicineId], "Madicine ID does not exist"); for (uint256 i = 0; i < oozIds.length; i++) { require(oozIds[i] > 0 && oozIds[i] < 10000, "OOZ ID does not exist"); require(_prescribed[madicineId][oozIds[i]] == -1, "OOZ not in blacklist"); _prescribed[madicineId][oozIds[i]] = 0; } } function reverseMadicine(uint256[] calldata madicineIds) public onlyOwner { for (uint256 i = 0; i < madicineIds.length; i++) { require(_madicineExists[madicineIds[i]], "Madicine ID does not exist"); require(_madicineInfo[madicineIds[i]].mintCount == _totalSupply[madicineIds[i]], "Prescribe already started"); _madicineInfo[madicineIds[i]].isReversed = !_madicineInfo[madicineIds[i]].isReversed; } } function initializeUtilContract(address contractAddress) public onlyOwner { require(!contractInitialized, "Contract already initialized"); utilContract = contractAddress; contractInitialized = true; } function mint(address to, uint256 madicineId, uint256 stageId, uint256 amount) public { require(msg.sender == utilContract, "Only util contract can call"); require(amount > 0, "Mint amount must be greater than 0"); _mint(to, madicineId, amount, ""); unchecked { _totalSupply[madicineId] += amount; _madicineInfo[madicineId].mintCount += uint16(amount); _stageInfo[madicineId][stageId].mintCount += uint16(amount); _numberMinted[madicineId][to] += amount; _stageMintedCountsPerWallet[madicineId][stageId][to] += amount; } } function burn(address addr, uint256 madicineId, uint256 amount) public { require(msg.sender == utilContract, "Only util contract can call"); require(amount > 0, "Burn amount must be greater than 0"); _burn(addr, madicineId, amount); unchecked { _totalSupply[madicineId] -= amount; } } function prescribe(address addr, uint256 madicineId, uint256 oozId) public { require(msg.sender == utilContract, "Only util contract can call"); _burn(addr, madicineId, 1); unchecked { --_totalSupply[madicineId]; ++_totalPrescribed[addr]; } _prescribed[_madicineInfo[madicineId].pointerId][oozId] = int16(int(madicineId)); _prescribed[madicineId][oozId] = int16(int(madicineId)); _prescribedMadicine[oozId].push(uint16(madicineId)); emit Prescribe(addr, madicineId, oozId); } // Basic withdrawal of funds function in order to transfer ETH out of the smart contract function withdrawFunds() public onlyOwner { payable(msg.sender).transfer(address(this).balance); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.7.0) (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 Throws if called by any account other than the owner. */ modifier onlyOwner() { _checkOwner(); _; } /** * @dev Returns the address of the current owner. */ function owner() public view virtual returns (address) { return _owner; } /** * @dev Throws if the sender is not the owner. */ function _checkOwner() internal view virtual { 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.8.0) (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: address zero is not a valid owner"); 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 token owner or 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: caller is not token owner or 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(); uint256[] memory ids = _asSingletonArray(id); uint256[] memory amounts = _asSingletonArray(amount); _beforeTokenTransfer(operator, from, to, ids, amounts, 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); _afterTokenTransfer(operator, from, to, ids, amounts, data); _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); _afterTokenTransfer(operator, from, to, ids, amounts, data); _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(); uint256[] memory ids = _asSingletonArray(id); uint256[] memory amounts = _asSingletonArray(amount); _beforeTokenTransfer(operator, address(0), to, ids, amounts, data); _balances[id][to] += amount; emit TransferSingle(operator, address(0), to, id, amount); _afterTokenTransfer(operator, address(0), to, ids, amounts, data); _doSafeTransferAcceptanceCheck(operator, address(0), to, id, amount, data); } /** * @dev xref:ROOT:erc1155.adoc#batch-operations[Batched] version of {_mint}. * * 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 _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); _afterTokenTransfer(operator, address(0), to, ids, amounts, data); _doSafeBatchTransferAcceptanceCheck(operator, address(0), to, ids, amounts, data); } /** * @dev Destroys `amount` tokens of token type `id` from `from` * * Emits a {TransferSingle} event. * * 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(); uint256[] memory ids = _asSingletonArray(id); uint256[] memory amounts = _asSingletonArray(amount); _beforeTokenTransfer(operator, from, address(0), ids, amounts, ""); 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); _afterTokenTransfer(operator, from, address(0), ids, amounts, ""); } /** * @dev xref:ROOT:erc1155.adoc#batch-operations[Batched] version of {_burn}. * * Emits a {TransferBatch} event. * * 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); _afterTokenTransfer(operator, from, address(0), ids, amounts, ""); } /** * @dev Approve `operator` to operate on all of `owner` tokens * * Emits an {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 `ids` and `amounts` 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 {} /** * @dev Hook that is called after 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 _afterTokenTransfer( address operator, address from, address to, uint256[] memory ids, uint256[] memory amounts, bytes memory data ) internal virtual {} function _doSafeTransferAcceptanceCheck( address operator, address from, address to, uint256 id, uint256 amount, bytes memory data ) private { if (to.isContract()) { try IERC1155Receiver(to).onERC1155Received(operator, from, id, amount, data) returns (bytes4 response) { if (response != IERC1155Receiver.onERC1155Received.selector) { revert("ERC1155: ERC1155Receiver rejected tokens"); } } catch Error(string memory reason) { revert(reason); } catch { revert("ERC1155: transfer to non-ERC1155Receiver implementer"); } } } function _doSafeBatchTransferAcceptanceCheck( address operator, address from, address to, uint256[] memory ids, uint256[] memory amounts, bytes memory data ) private { if (to.isContract()) { try IERC1155Receiver(to).onERC1155BatchReceived(operator, from, ids, amounts, data) returns ( bytes4 response ) { if (response != IERC1155Receiver.onERC1155BatchReceived.selector) { revert("ERC1155: ERC1155Receiver rejected tokens"); } } catch Error(string memory reason) { revert(reason); } catch { revert("ERC1155: transfer to non-ERC1155Receiver implementer"); } } } function _asSingletonArray(uint256 element) private pure returns (uint256[] memory) { uint256[] memory array = new uint256[](1); array[0] = element; return array; } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/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/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 (last updated v4.8.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 functionCallWithValue(target, data, 0, "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"); (bool success, bytes memory returndata) = target.call{value: value}(data); return verifyCallResultFromTarget(target, 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) { (bool success, bytes memory returndata) = target.staticcall(data); return verifyCallResultFromTarget(target, 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) { (bool success, bytes memory returndata) = target.delegatecall(data); return verifyCallResultFromTarget(target, success, returndata, errorMessage); } /** * @dev Tool to verify that a low level call to smart-contract was successful, and revert (either by bubbling * the revert reason or using the provided one) in case of unsuccessful call or if target was not a contract. * * _Available since v4.8._ */ function verifyCallResultFromTarget( address target, bool success, bytes memory returndata, string memory errorMessage ) internal view returns (bytes memory) { if (success) { if (returndata.length == 0) { // only check isContract if the call was successful and the return data is empty // otherwise we already know that it was a contract require(isContract(target), "Address: call to non-contract"); } return returndata; } else { _revert(returndata, errorMessage); } } /** * @dev Tool to verify that a low level call was successful, and revert if it wasn't, either by bubbling the * revert reason or 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 { _revert(returndata, errorMessage); } } function _revert(bytes memory returndata, string memory errorMessage) private pure { // 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 /// @solidity memory-safe-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 (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) (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 (last updated v4.7.0) (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 have been approved to spend ``from``'s tokens via {setApprovalForAll}. * - `from` must have a balance of tokens of type `id` of at least `amount`. * - If `to` refers to a smart contract, it must implement {IERC1155Receiver-onERC1155Received} and return the * acceptance magic value. */ function safeTransferFrom( address from, address to, uint256 id, uint256 amount, bytes calldata data ) external; /** * @dev xref:ROOT:erc1155.adoc#batch-operations[Batched] version of {safeTransferFrom}. * * Emits a {TransferBatch} event. * * Requirements: * * - `ids` and `amounts` must have the same length. * - If `to` refers to a smart contract, it must implement {IERC1155Receiver-onERC1155BatchReceived} and return the * acceptance magic value. */ function safeBatchTransferFrom( address from, address to, uint256[] calldata ids, uint256[] calldata amounts, bytes calldata data ) external; }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (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); }
{ "optimizer": { "enabled": true, "runs": 200 }, "outputSelection": { "*": { "*": [ "evm.bytecode", "evm.deployedBytecode", "devdoc", "userdoc", "metadata", "abi" ] } } }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"inputs":[],"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":"addr","type":"address"},{"indexed":true,"internalType":"uint256","name":"madicineId","type":"uint256"},{"indexed":true,"internalType":"uint256","name":"oozId","type":"uint256"}],"name":"Prescribe","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":"madicineId","type":"uint256"},{"internalType":"uint16","name":"maxSupply","type":"uint16"},{"internalType":"uint16","name":"walletLimit","type":"uint16"},{"internalType":"bool","name":"prescribeAllowed","type":"bool"},{"internalType":"address","name":"prescribeCosigner","type":"address"},{"internalType":"string","name":"metadata","type":"string"},{"internalType":"uint80","name":"ethCost","type":"uint80"},{"internalType":"uint80","name":"ip3Cost","type":"uint80"},{"internalType":"uint56","name":"prescribeEndTime","type":"uint56"}],"name":"addMadicine","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"madicineId","type":"uint256"},{"internalType":"uint56[2]","name":"times","type":"uint56[2]"},{"internalType":"bool","name":"mintAllowed","type":"bool"},{"internalType":"uint8","name":"mintMethod","type":"uint8"},{"internalType":"uint80","name":"ethPrice","type":"uint80"},{"internalType":"uint16","name":"maxSupply","type":"uint16"},{"internalType":"uint16","name":"walletLimit","type":"uint16"},{"internalType":"bytes32","name":"merkleRoot","type":"bytes32"},{"internalType":"address","name":"cosigner","type":"address"},{"internalType":"uint80","name":"ip3Price","type":"uint80"},{"internalType":"uint16","name":"nPerMate","type":"uint16"}],"name":"addStage","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"},{"internalType":"uint256","name":"id","type":"uint256"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address[]","name":"accounts","type":"address[]"},{"internalType":"uint256[]","name":"ids","type":"uint256[]"}],"name":"balanceOfBatch","outputs":[{"internalType":"uint256[]","name":"","type":"uint256[]"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"madicineId","type":"uint256"},{"internalType":"uint256[]","name":"oozIds","type":"uint256[]"}],"name":"blacklist","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"addr","type":"address"},{"internalType":"uint256","name":"madicineId","type":"uint256"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"burn","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"madicineId","type":"uint256"},{"internalType":"uint256","name":"oozId","type":"uint256"}],"name":"canPrescribe","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"madicineId","type":"uint256"},{"internalType":"uint256","name":"oozId","type":"uint256"}],"name":"canPrescribeNow","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"madicineId","type":"uint256"},{"internalType":"uint16","name":"maxSupply","type":"uint16"},{"internalType":"uint16","name":"walletLimit","type":"uint16"},{"internalType":"address","name":"prescribeCosigner","type":"address"},{"internalType":"string","name":"metadata","type":"string"},{"internalType":"uint80","name":"ethCost","type":"uint80"},{"internalType":"uint80","name":"ip3Cost","type":"uint80"},{"internalType":"uint56","name":"prescribeEndTime","type":"uint56"}],"name":"editMadicine","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"madicineId","type":"uint256"},{"internalType":"uint256","name":"stageId","type":"uint256"},{"internalType":"uint56[2]","name":"times","type":"uint56[2]"},{"internalType":"uint8","name":"mintMethod","type":"uint8"},{"internalType":"uint80","name":"ethPrice","type":"uint80"},{"internalType":"uint16","name":"maxSupply","type":"uint16"},{"internalType":"uint16","name":"walletLimit","type":"uint16"},{"internalType":"bytes32","name":"merkleRoot","type":"bytes32"},{"internalType":"address","name":"cosigner","type":"address"},{"internalType":"uint80","name":"ip3Price","type":"uint80"},{"internalType":"uint16","name":"nPerMate","type":"uint16"}],"name":"editStage","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"madicineId","type":"uint256"}],"name":"getMadicineInfo","outputs":[{"components":[{"internalType":"uint16","name":"maxSupply","type":"uint16"},{"internalType":"uint16","name":"walletLimit","type":"uint16"},{"internalType":"bool","name":"prescribeAllowed","type":"bool"},{"internalType":"address","name":"prescribeCosigner","type":"address"},{"internalType":"uint16","name":"mintCount","type":"uint16"},{"internalType":"uint16","name":"currentStageId","type":"uint16"},{"internalType":"uint16","name":"pointerId","type":"uint16"},{"internalType":"bool","name":"isReversed","type":"bool"},{"internalType":"uint80","name":"ethCost","type":"uint80"},{"internalType":"uint80","name":"ip3Cost","type":"uint80"},{"internalType":"uint56","name":"prescribeEndTime","type":"uint56"}],"internalType":"struct Madicine.MadicineInfo","name":"","type":"tuple"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"madicineId","type":"uint256"},{"internalType":"uint256","name":"stageId","type":"uint256"}],"name":"getStageInfo","outputs":[{"components":[{"internalType":"uint56","name":"startTime","type":"uint56"},{"internalType":"uint56","name":"endTime","type":"uint56"},{"internalType":"bool","name":"mintAllowed","type":"bool"},{"internalType":"uint8","name":"mintMethod","type":"uint8"},{"internalType":"uint80","name":"ethPrice","type":"uint80"},{"internalType":"uint16","name":"maxSupply","type":"uint16"},{"internalType":"uint16","name":"walletLimit","type":"uint16"},{"internalType":"uint16","name":"mintCount","type":"uint16"},{"internalType":"bytes32","name":"merkleRoot","type":"bytes32"},{"internalType":"address","name":"cosigner","type":"address"},{"internalType":"uint80","name":"ip3Price","type":"uint80"},{"internalType":"uint16","name":"nPerMate","type":"uint16"}],"internalType":"struct Madicine.StageInfo","name":"","type":"tuple"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"contractAddress","type":"address"}],"name":"initializeUtilContract","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256[]","name":"madicineIds","type":"uint256[]"},{"internalType":"uint256[]","name":"stageIds","type":"uint256[]"}],"name":"invertMintAllowed","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256[]","name":"madicineIds","type":"uint256[]"}],"name":"invertPrescribeAllowed","outputs":[],"stateMutability":"nonpayable","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":"madicineId","type":"uint256"},{"internalType":"uint256","name":"oozId","type":"uint256"}],"name":"isPrescribed","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"madicineId","type":"uint256"},{"internalType":"uint256","name":"stageId","type":"uint256"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"mint","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"pure","type":"function"},{"inputs":[{"internalType":"uint256","name":"madicineId","type":"uint256"},{"internalType":"address","name":"addr","type":"address"}],"name":"numberMintedBy","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256[]","name":"madicineIds","type":"uint256[]"},{"internalType":"address[]","name":"to","type":"address[]"},{"internalType":"uint256[]","name":"amount","type":"uint256[]"}],"name":"ownerMint","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256[]","name":"madicineIdsFrom","type":"uint256[]"},{"internalType":"uint256[]","name":"madicineIdsTo","type":"uint256[]"}],"name":"point","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"addr","type":"address"},{"internalType":"uint256","name":"madicineId","type":"uint256"},{"internalType":"uint256","name":"oozId","type":"uint256"}],"name":"prescribe","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"oozId","type":"uint256"}],"name":"prescribedMadicineOf","outputs":[{"internalType":"uint16[]","name":"","type":"uint16[]"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256[]","name":"madicineIds","type":"uint256[]"}],"name":"reverseMadicine","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256[]","name":"ids","type":"uint256[]"},{"internalType":"uint256[]","name":"amounts","type":"uint256[]"},{"internalType":"bytes","name":"data","type":"bytes"}],"name":"safeBatchTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"id","type":"uint256"},{"internalType":"uint256","name":"amount","type":"uint256"},{"internalType":"bytes","name":"data","type":"bytes"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"operator","type":"address"},{"internalType":"bool","name":"approved","type":"bool"}],"name":"setApprovalForAll","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"madicineId","type":"uint256"},{"internalType":"uint256","name":"stageId","type":"uint256"},{"internalType":"address","name":"addr","type":"address"}],"name":"stageMintedBy","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":"pure","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"tokenURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"addr","type":"address"}],"name":"totalPrescribedBy","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256[]","name":"madicineIds","type":"uint256[]"}],"name":"totalSupply","outputs":[{"internalType":"uint256[]","name":"","type":"uint256[]"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"madicineId","type":"uint256"},{"internalType":"uint256[]","name":"oozIds","type":"uint256[]"}],"name":"unblacklist","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"madicineId","type":"uint256"}],"name":"uri","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"utilContract","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"withdrawFunds","outputs":[],"stateMutability":"nonpayable","type":"function"}]
Contract Creation Code
608060405234801562000010575f80fd5b5060408051602081019091525f81526200002a816200003c565b5062000036336200004e565b62000209565b60026200004a82826200013d565b5050565b600380546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0905f90a35050565b634e487b7160e01b5f52604160045260245ffd5b600181811c90821680620000c857607f821691505b602082108103620000e757634e487b7160e01b5f52602260045260245ffd5b50919050565b601f8211156200013857805f5260205f20601f840160051c81016020851015620001145750805b601f840160051c820191505b8181101562000135575f815560010162000120565b50505b505050565b81516001600160401b038111156200015957620001596200009f565b62000171816200016a8454620000b3565b84620000ed565b602080601f831160018114620001a7575f84156200018f5750858301515b5f19600386901b1c1916600185901b17855562000201565b5f85815260208120601f198616915b82811015620001d757888601518255948401946001909101908401620001b6565b5085821015620001f557878501515f19600388901b60f8161c191681555b505060018460011b0185555b505050505050565b614bc880620002175f395ff3fe608060405234801561000f575f80fd5b5060043610610249575f3560e01c80638b2814e311610140578063c2949048116100bf578063e2f1e91711610084578063e2f1e91714610577578063e851ed711461058a578063e985e9c5146105aa578063f242432a146105e5578063f2fde38b146105f8578063f5298aca1461060b575f80fd5b8063c294904814610502578063c69e9af014610515578063c87b56dd14610528578063d55c5afc1461053b578063dae9a0591461054e575f80fd5b8063a235c9a711610105578063a235c9a7146104a3578063a647e8ec146104b6578063a9a80a59146104c9578063ac127984146104dc578063c2740a2a146104ef575f80fd5b80638b2814e31461041e5780638da5cb5b1461044a57806395d89b411461045b5780639a483cfe1461047d578063a22cb46514610490575f80fd5b80632eb2c2d6116101cc5780635b1e87ed116101915780635b1e87ed146103ca5780636f0c22a6146103dd578063715018a6146103f057806382f461e0146103f857806387eb5e841461040b575f80fd5b80632eb2c2d61461035157806339651eef146103645780634b50c1af146103775780634e1273f414610397578063519dee9f146103b7575f80fd5b80630e89341c116102125780630e89341c146102f05780631642b85414610303578063242ddf9f1461032357806324600fc3146103365780632d883f3f1461033e575f80fd5b8062fdd58e1461024d57806301ffc9a714610273578063047730fc1461029657806306fdde03146102a95780630b5168a7146102db575b5f80fd5b61026061025b3660046139d8565b61061e565b6040519081526020015b60405180910390f35b610286610281366004613a15565b6106b5565b604051901515815260200161026a565b6102866102a4366004613a30565b610704565b60408051808201909152600d81526c4f4f5a204d61642d6963696e6560981b60208201525b60405161026a9190613a93565b6102ee6102e9366004613aec565b6107a0565b005b6102ce6102fe366004613b2a565b61088f565b610316610311366004613b2a565b61095a565b60405161026a9190613b41565b610286610331366004613a30565b610abb565b6102ee610dbb565b6102ee61034c366004613c8b565b610def565b6102ee61035f366004613e88565b611135565b6102ee610372366004613f2a565b611181565b61038a610385366004613b2a565b611318565b60405161026a9190613f5a565b6103aa6103a5366004613fa1565b6113d4565b60405161026a919061409f565b6103aa6103c5366004613aec565b6114f3565b6102ee6103d8366004613aec565b6115e1565b6102ee6103eb366004614104565b61177c565b6102ee61191a565b6102ee6104063660046141ad565b61192d565b6102ee6104193660046141f4565b611adb565b61271d54610432906001600160a01b031681565b6040516001600160a01b03909116815260200161026a565b6003546001600160a01b0316610432565b60408051808201909152600681526513d3d693505160d21b60208201526102ce565b6102ee61048b36600461425a565b611bff565b6102ee61049e36600461428d565b611f85565b6102606104b13660046142be565b611f94565b6102ee6104c43660046142df565b611fea565b6102606104d7366004614315565b61214a565b6102ee6104ea366004614347565b6121ea565b6102866104fd366004613a30565b6124e9565b6102ee6105103660046143d9565b6125d1565b6102ee6105233660046141f4565b612920565b6102ce610536366004613b2a565b612b08565b6102ee610549366004614494565b612b13565b61026061055c366004614494565b6001600160a01b03165f90815261271c602052604090205490565b6102ee6105853660046141ad565b612b9e565b61059d610598366004613a30565b612d3e565b60405161026a91906144ad565b6102866105b83660046145a8565b6001600160a01b039182165f90815260016020908152604080832093909416825291909152205460ff1690565b6102ee6105f33660046145d0565b612efd565b6102ee610606366004614494565b612f42565b6102ee610619366004613f2a565b612fb8565b5f6001600160a01b03831661068d5760405162461bcd60e51b815260206004820152602a60248201527f455243313135353a2061646472657373207a65726f206973206e6f742061207660448201526930b634b21037bbb732b960b11b60648201526084015b60405180910390fd5b505f818152602081815260408083206001600160a01b03861684529091529020545b92915050565b5f6001600160e01b03198216636cdb3d1360e11b14806106e557506001600160e01b031982166303a24d0760e21b145b806106af57506301ffc9a760e01b6001600160e01b03198316146106af565b5f8281526005602052604081205460ff166107315760405162461bcd60e51b81526004016106849061462f565b5f82118015610741575061271082105b61075d5760405162461bcd60e51b815260040161068490614666565b5f838152600860205260409020839083612710811061077e5761077e614695565b601081049190910154600f9091166002026101000a900460010b149392505050565b6107a8613062565b5f5b8181101561088a5760055f8484848181106107c7576107c7614695565b602090810292909201358352508101919091526040015f205460ff166107ff5760405162461bcd60e51b81526004016106849061462f565b60045f84848481811061081457610814614695565b9050602002013581526020019081526020015f205f0160049054906101000a900460ff161560045f85858581811061084e5761084e614695565b602090810292909201358352508101919091526040015f2080549115156401000000000264ff00000000199092169190911790556001016107aa565b505050565b5f8181526005602052604090205460609060ff166108bf5760405162461bcd60e51b81526004016106849061462f565b5f82815260066020526040902080546108d7906146a9565b80601f0160208091040260200160405190810160405280929190818152602001828054610903906146a9565b801561094e5780601f106109255761010080835404028352916020019161094e565b820191905f5260205f20905b81548152906001019060200180831161093157829003601f168201915b50505050509050919050565b60408051610160810182525f80825260208201819052918101829052606081018290526080810182905260a0810182905260c0810182905260e08101829052610100810182905261012081018290526101408101919091525f8281526005602052604090205460ff166109df5760405162461bcd60e51b81526004016106849061462f565b505f90815260046020908152604091829020825161016081018452815461ffff808216835262010000820481169483019490945260ff640100000000820481161515958301959095526001600160a01b03650100000000008204166060830152600160c81b810484166080830152600160d81b8104841660a0830152600160e81b810490931660c0820152600160f81b909204909216151560e08201526001909101546001600160501b03808216610100840152600160501b82041661012083015266ffffffffffffff600160a01b9091041661014082015290565b5f8281526005602052604081205460ff16610ae85760405162461bcd60e51b81526004016106849061462f565b5f82118015610af8575061271082105b610b145760405162461bcd60e51b815260040161068490614666565b5f83815260046020526040902054600160f81b900460ff16610c74575f8381526004602052604080822054600160e81b900461ffff168252902054600160f81b900460ff16610bf8575f83815260046020908152604080832054600160e81b900461ffff16835260089091529020826127108110610b9457610b94614695565b601081049190910154600f9091166002026101000a900460010b158015610bf157505f838152600860205260409020826127108110610bd557610bd5614695565b601081049190910154600f9091166002026101000a900460010b155b90506106af565b5f83815260046020908152604080832054600160e81b900461ffff16835260089091529020826127108110610c2f57610c2f614695565b601091828204019190066002029054906101000a900460010b60010b5f19148015610bf157505f838152600860205260409020826127108110610bd557610bd5614695565b5f8381526004602052604080822054600160e81b900461ffff168252902054600160f81b900460ff16610d3f575f83815260046020908152604080832054600160e81b900461ffff16835260089091529020826127108110610cd857610cd8614695565b601081049190910154600f9091166002026101000a900460010b158015610bf157505f838152600860205260409020826127108110610d1957610d19614695565b601091828204019190066002029054906101000a900460010b60010b5f191490506106af565b5f83815260046020908152604080832054600160e81b900461ffff16835260089091529020826127108110610d7657610d76614695565b601091828204019190066002029054906101000a900460010b60010b5f19148015610bf157505f838152600860205260409020826127108110610d1957610d19614695565b610dc3613062565b60405133904780156108fc02915f818181858888f19350505050158015610dec573d5f803e3d5ffd5b50565b610df7613062565b5f8b81526005602052604090205460ff16610e245760405162461bcd60e51b81526004016106849061462f565b5f8b81526004602052604090208054600160d81b900461ffff1690601b610e4a836146f5565b91906101000a81548161ffff021916908361ffff160217905550506040518061018001604052808b5f60028110610e8357610e83614695565b602002016020810190610e969190614715565b66ffffffffffffff168152602090810190610eb79060408e01908e01614715565b66ffffffffffffff1681526020018a151581526020018960ff168152602001886001600160501b031681526020018761ffff1681526020018661ffff1681526020015f61ffff168152602001858152602001846001600160a01b03168152602001836001600160501b031681526020018261ffff1681525060075f8d81526020019081526020015f205f60045f8f81526020019081526020015f205f01601b9054906101000a900461ffff1661ffff1681526020019081526020015f205f820151815f015f6101000a81548166ffffffffffffff021916908366ffffffffffffff1602179055506020820151815f0160076101000a81548166ffffffffffffff021916908366ffffffffffffff1602179055506040820151815f01600e6101000a81548160ff0219169083151502179055506060820151815f01600f6101000a81548160ff021916908360ff1602179055506080820151815f0160106101000a8154816001600160501b0302191690836001600160501b0316021790555060a0820151815f01601a6101000a81548161ffff021916908361ffff16021790555060c0820151815f01601c6101000a81548161ffff021916908361ffff16021790555060e0820151815f01601e6101000a81548161ffff021916908361ffff1602179055506101008201518160010155610120820151816002015f6101000a8154816001600160a01b0302191690836001600160a01b031602179055506101408201518160020160146101000a8154816001600160501b0302191690836001600160501b0316021790555061016082015181600201601e6101000a81548161ffff021916908361ffff1602179055509050505050505050505050505050565b6001600160a01b038516331480611151575061115185336105b8565b61116d5760405162461bcd60e51b81526004016106849061472e565b61117a85858585856130bc565b5050505050565b61271d546001600160a01b031633146111ac5760405162461bcd60e51b81526004016106849061477c565b6111b88383600161328d565b5f8281526127196020908152604080832080545f190190556001600160a01b038616835261271c8252808320805460010190558483526004825280832054600160e81b900461ffff16835260089091529020829082612710811061121e5761121e614695565b601091828204019190066002026101000a81548161ffff021916908360010b61ffff1602179055508160085f8481526020019081526020015f2082612710811061126a5761126a614695565b601091828204019190066002026101000a81548161ffff021916908360010b61ffff16021790555060098161271081106112a6576112a6614695565b0180546001810182555f9182526020822060108204018054600f9092166002026101000a61ffff8181021990931692861602919091179055604051829184916001600160a01b038716917f6aa50a546fd739b2d6e47361b6484b3a52be46d95af824082acc86b51938ff1091a4505050565b60605f8211801561132a575061271082105b6113465760405162461bcd60e51b815260040161068490614666565b600982612710811061135a5761135a614695565b0180548060200260200160405190810160405280929190818152602001828054801561094e57602002820191905f5260205f20905f905b82829054906101000a900461ffff1661ffff1681526020019060020190602082600101049283019260010382029150808411611391575094979650505050505050565b606081518351146114395760405162461bcd60e51b815260206004820152602960248201527f455243313135353a206163636f756e747320616e6420696473206c656e677468604482015268040dad2e6dac2e8c6d60bb1b6064820152608401610684565b5f83516001600160401b0381111561145357611453613d44565b60405190808252806020026020018201604052801561147c578160200160208202803683370190505b5090505f5b84518110156114eb576114c685828151811061149f5761149f614695565b60200260200101518583815181106114b9576114b9614695565b602002602001015161061e565b8282815181106114d8576114d8614695565b6020908102919091010152600101611481565b509392505050565b60605f826001600160401b0381111561150e5761150e613d44565b604051908082528060200260200182016040528015611537578160200160208202803683370190505b5090505f5b838110156114eb5760055f86868481811061155957611559614695565b602090810292909201358352508101919091526040015f205460ff166115915760405162461bcd60e51b81526004016106849061462f565b6127195f8686848181106115a7576115a7614695565b9050602002013581526020019081526020015f20548282815181106115ce576115ce614695565b602090810291909101015260010161153c565b6115e9613062565b5f5b8181101561088a5760055f84848481811061160857611608614695565b602090810292909201358352508101919091526040015f205460ff166116405760405162461bcd60e51b81526004016106849061462f565b6127195f84848481811061165657611656614695565b9050602002013581526020019081526020015f205460045f85858581811061168057611680614695565b602090810292909201358352508101919091526040015f2054600160c81b900461ffff16146116f15760405162461bcd60e51b815260206004820152601960248201527f50726573637269626520616c72656164792073746172746564000000000000006044820152606401610684565b60045f84848481811061170657611706614695565b9050602002013581526020019081526020015f205f01601f9054906101000a900460ff161560045f85858581811061174057611740614695565b602090810292909201358352508101919091526040015f208054911515600160f81b026001600160f81b039092169190911790556001016115eb565b611784613062565b5f8981526005602052604090205460ff166117b15760405162461bcd60e51b81526004016106849061462f565b8760045f8b81526020019081526020015f205f015f6101000a81548161ffff021916908361ffff1602179055508660045f8b81526020019081526020015f205f0160026101000a81548161ffff021916908361ffff1602179055508560045f8b81526020019081526020015f205f0160056101000a8154816001600160a01b0302191690836001600160a01b031602179055508260045f8b81526020019081526020015f206001015f6101000a8154816001600160501b0302191690836001600160501b031602179055508160045f8b81526020019081526020015f20600101600a6101000a8154816001600160501b0302191690836001600160501b031602179055508060045f8b81526020019081526020015f2060010160146101000a81548166ffffffffffffff021916908366ffffffffffffff160217905550848460065f8c81526020019081526020015f20918261190e9291906147f7565b50505050505050505050565b611922613062565b61192b5f613404565b565b611935613062565b5f8381526005602052604090205460ff166119625760405162461bcd60e51b81526004016106849061462f565b5f5b81811015611ad5575f83838381811061197f5761197f614695565b905060200201351180156119ac57506127108383838181106119a3576119a3614695565b90506020020135105b6119c85760405162461bcd60e51b815260040161068490614666565b5f8481526008602052604090208383838181106119e7576119e7614695565b9050602002013561271081106119ff576119ff614695565b601081049190910154600f9091166002026101000a900460010b15611a665760405162461bcd60e51b815260206004820152601960248201527f43616e6e6f7420626c61636b6c6973742074686973204f4f5a000000000000006044820152606401610684565b5f8481526008602052604090205f1990848484818110611a8857611a88614695565b905060200201356127108110611aa057611aa0614695565b601091828204019190066002026101000a81548161ffff021916908360010b61ffff1602179055508080600101915050611964565b50505050565b611ae3613062565b828114611b025760405162461bcd60e51b8152600401610684906148b0565b5f5b8381101561117a5760055f868684818110611b2157611b21614695565b602090810292909201358352508101919091526040015f205460ff168015611b76575060055f848484818110611b5957611b59614695565b602090810292909201358352508101919091526040015f205460ff165b611b925760405162461bcd60e51b81526004016106849061462f565b828282818110611ba457611ba4614695565b9050602002013560045f878785818110611bc057611bc0614695565b602090810292909201358352508101919091526040015f20805461ffff92909216600160e81b0261ffff60e81b19909216919091179055600101611b04565b611c07613062565b5f8b81526005602052604090205460ff16611c345760405162461bcd60e51b81526004016106849061462f565b5f8a118015611c5b57505f8b815260046020526040902054600160d81b900461ffff168a11155b611c775760405162461bcd60e51b8152600401610684906148e7565b5f8b81526007602090815260408083208d8452909152902054600160f01b900461ffff1615611ce85760405162461bcd60e51b815260206004820152601960248201527f53746167652068617320616c72656164792073746172746564000000000000006044820152606401610684565b611cf560208a018a614715565b5f8c81526007602090815260408083208e84529091529020805466ffffffffffffff191666ffffffffffffff92909216919091179055886001602002016020810190611d419190614715565b60075f8d81526020019081526020015f205f8c81526020019081526020015f205f0160076101000a81548166ffffffffffffff021916908366ffffffffffffff1602179055508760075f8d81526020019081526020015f205f8c81526020019081526020015f205f01600f6101000a81548160ff021916908360ff1602179055508660075f8d81526020019081526020015f205f8c81526020019081526020015f205f0160106101000a8154816001600160501b0302191690836001600160501b031602179055508560075f8d81526020019081526020015f205f8c81526020019081526020015f205f01601a6101000a81548161ffff021916908361ffff1602179055508460075f8d81526020019081526020015f205f8c81526020019081526020015f205f01601c6101000a81548161ffff021916908361ffff1602179055508360075f8d81526020019081526020015f205f8c81526020019081526020015f20600101819055508260075f8d81526020019081526020015f205f8c81526020019081526020015f206002015f6101000a8154816001600160a01b0302191690836001600160a01b031602179055508160075f8d81526020019081526020015f205f8c81526020019081526020015f2060020160146101000a8154816001600160501b0302191690836001600160501b031602179055508060075f8d81526020019081526020015f205f8c81526020019081526020015f20600201601e6101000a81548161ffff021916908361ffff1602179055505050505050505050505050565b611f90338383613455565b5050565b5f8281526005602052604081205460ff16611fc15760405162461bcd60e51b81526004016106849061462f565b505f91825261271a602090815260408084206001600160a01b0393909316845291905290205490565b61271d546001600160a01b031633146120155760405162461bcd60e51b81526004016106849061477c565b5f811161206f5760405162461bcd60e51b815260206004820152602260248201527f4d696e7420616d6f756e74206d7573742062652067726561746572207468616e604482015261020360f41b6064820152608401610684565b61208984848360405180602001604052805f815250613534565b5f8381526127196020908152604080832080548501905560048252808320805461ffff60c81b198116600160c81b9182900461ffff908116880181169092021790915560078352818420868552835281842080546001600160f01b038116600160f01b91829004841688019093160291909117905585835261271a82528083206001600160a01b039790971680845296825280832080548501905594825261271b815284822093825292835283812094815293909152912080549091019055565b5f8381526005602052604081205460ff166121775760405162461bcd60e51b81526004016106849061462f565b5f8311801561219e57505f84815260046020526040902054600160d81b900461ffff168311155b6121ba5760405162461bcd60e51b8152600401610684906148e7565b505f92835261271b602090815260408085209385529281528284206001600160a01b039290921684525290205490565b6121f2613062565b848314801561220057508281145b61221c5760405162461bcd60e51b8152600401610684906148b0565b5f5b838110156124e05760055f88888481811061223b5761223b614695565b602090810292909201358352508101919091526040015f205460ff166122735760405162461bcd60e51b81526004016106849061462f565b60045f88888481811061228857612288614695565b602090810292909201358352508101919091526040015f9081205461ffff16906004908989858181106122bd576122bd614695565b602090810292909201358352508101919091526040015f2054600160c81b900461ffff168484848181106122f3576122f3614695565b90506020020135612304919061491e565b11156123525760405162461bcd60e51b815260206004820152601f60248201527f45786365656473206d6178696d756d206d61646963696e6520737570706c79006044820152606401610684565b6123c285858381811061236757612367614695565b905060200201602081019061237c9190614494565b88888481811061238e5761238e614695565b905060200201358585858181106123a7576123a7614695565b9050602002013560405180602001604052805f815250613534565b8282828181106123d4576123d4614695565b905060200201356127195f8989858181106123f1576123f1614695565b9050602002013581526020019081526020015f205f828254019250508190555082828281811061242357612423614695565b9050602002013560045f89898581811061243f5761243f614695565b602090810292909201358352508101919091526040015f20805461ffff600160c81b80830482169094011690920261ffff60c81b1990921691909117905582828281811061248f5761248f614695565b9050602002013561271a5f8989858181106124ac576124ac614695565b602090810292909201358352508181019290925260409081015f90812033825290925290208054909101905560010161221e565b50505050505050565b5f8281526005602052604081205460ff166125165760405162461bcd60e51b81526004016106849061462f565b5f82118015612526575061271082105b6125425760405162461bcd60e51b815260040161068490614666565b5f83815260046020526040902054640100000000900460ff1661256657505f6106af565b5f83815260046020526040902060010154600160a01b900466ffffffffffffff16158015906125b457505f83815260046020526040902060010154600160a01b900466ffffffffffffff1642115b156125c057505f6106af565b6125ca8383610abb565b9392505050565b6125d9613062565b5f8a81526005602052604090205460ff16156126375760405162461bcd60e51b815260206004820152601a60248201527f4d61646963696e6520494420616c7265616479206578697374730000000000006044820152606401610684565b5f8a11801561264757506180008a105b6126935760405162461bcd60e51b815260206004820152601960248201527f4d61646963696e65204944206f7574206f6620626f756e6473000000000000006044820152606401610684565b6040518061016001604052808a61ffff1681526020018961ffff1681526020018815158152602001876001600160a01b031681526020015f61ffff1681526020015f61ffff1681526020018b61ffff1681526020015f15158152602001846001600160501b03168152602001836001600160501b031681526020018266ffffffffffffff1681525060045f8c81526020019081526020015f205f820151815f015f6101000a81548161ffff021916908361ffff1602179055506020820151815f0160026101000a81548161ffff021916908361ffff1602179055506040820151815f0160046101000a81548160ff0219169083151502179055506060820151815f0160056101000a8154816001600160a01b0302191690836001600160a01b031602179055506080820151815f0160196101000a81548161ffff021916908361ffff16021790555060a0820151815f01601b6101000a81548161ffff021916908361ffff16021790555060c0820151815f01601d6101000a81548161ffff021916908361ffff16021790555060e0820151815f01601f6101000a81548160ff021916908315150217905550610100820151816001015f6101000a8154816001600160501b0302191690836001600160501b0316021790555061012082015181600101600a6101000a8154816001600160501b0302191690836001600160501b031602179055506101408201518160010160146101000a81548166ffffffffffffff021916908366ffffffffffffff160217905550905050600160055f8c81526020019081526020015f205f6101000a81548160ff021916908315150217905550848460065f8d81526020019081526020015f2091826129139291906147f7565b5050505050505050505050565b612928613062565b8281146129475760405162461bcd60e51b8152600401610684906148b0565b5f5b8381101561117a5760055f86868481811061296657612966614695565b602090810292909201358352508101919091526040015f205460ff1661299e5760405162461bcd60e51b81526004016106849061462f565b5f8383838181106129b1576129b1614695565b90506020020135118015612a15575060045f8686848181106129d5576129d5614695565b602090810292909201358352508101919091526040015f2054600160d81b900461ffff16838383818110612a0b57612a0b614695565b9050602002013511155b612a315760405162461bcd60e51b8152600401610684906148e7565b60075f868684818110612a4657612a46614695565b9050602002013581526020019081526020015f205f848484818110612a6d57612a6d614695565b9050602002013581526020019081526020015f205f01600e9054906101000a900460ff161560075f878785818110612aa757612aa7614695565b9050602002013581526020019081526020015f205f858585818110612ace57612ace614695565b602090810292909201358352508101919091526040015f208054911515600160701b0260ff60701b19909216919091179055600101612949565b60606106af8261088f565b612b1b613062565b61271d54600160a01b900460ff1615612b765760405162461bcd60e51b815260206004820152601c60248201527f436f6e747261637420616c726561647920696e697469616c697a6564000000006044820152606401610684565b61271d80546001600160a81b0319166001600160a01b0390921691909117600160a01b179055565b612ba6613062565b5f8381526005602052604090205460ff16612bd35760405162461bcd60e51b81526004016106849061462f565b5f5b81811015611ad5575f838383818110612bf057612bf0614695565b90506020020135118015612c1d5750612710838383818110612c1457612c14614695565b90506020020135105b612c395760405162461bcd60e51b815260040161068490614666565b5f848152600860205260409020838383818110612c5857612c58614695565b905060200201356127108110612c7057612c70614695565b601091828204019190066002029054906101000a900460010b60010b5f1914612cd25760405162461bcd60e51b815260206004820152601460248201527313d3d6881b9bdd081a5b88189b1858dadb1a5cdd60621b6044820152606401610684565b5f848152600860205260408120848484818110612cf157612cf1614695565b905060200201356127108110612d0957612d09614695565b601091828204019190066002026101000a81548161ffff021916908360010b61ffff1602179055508080600101915050612bd5565b60408051610180810182525f80825260208201819052918101829052606081018290526080810182905260a0810182905260c0810182905260e081018290526101008101829052610120810182905261014081018290526101608101919091525f8381526005602052604090205460ff16612dcb5760405162461bcd60e51b81526004016106849061462f565b5f82118015612df257505f83815260046020526040902054600160d81b900461ffff168211155b612e0e5760405162461bcd60e51b8152600401610684906148e7565b505f828152600760209081526040808320848452825291829020825161018081018452815466ffffffffffffff80821683526701000000000000008204169382019390935260ff600160701b84048116151594820194909452600160781b830490931660608401526001600160501b03600160801b83048116608085015261ffff600160d01b8404811660a0860152600160e01b8404811660c0860152600160f01b93849004811660e086015260018301546101008601526002909201546001600160a01b038116610120860152600160a01b8104909116610140850152919091041661016082015292915050565b6001600160a01b038516331480612f195750612f1985336105b8565b612f355760405162461bcd60e51b81526004016106849061472e565b61117a858585858561363a565b612f4a613062565b6001600160a01b038116612faf5760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401610684565b610dec81613404565b61271d546001600160a01b03163314612fe35760405162461bcd60e51b81526004016106849061477c565b5f811161303d5760405162461bcd60e51b815260206004820152602260248201527f4275726e20616d6f756e74206d7573742062652067726561746572207468616e604482015261020360f41b6064820152608401610684565b61304883838361328d565b5f9182526127196020526040909120805491909103905550565b6003546001600160a01b0316331461192b5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610684565b815183511461311e5760405162461bcd60e51b815260206004820152602860248201527f455243313135353a2069647320616e6420616d6f756e7473206c656e677468206044820152670dad2e6dac2e8c6d60c31b6064820152608401610684565b6001600160a01b0384166131445760405162461bcd60e51b815260040161068490614931565b335f5b845181101561321f575f85828151811061316357613163614695565b602002602001015190505f85838151811061318057613180614695565b6020908102919091018101515f84815280835260408082206001600160a01b038e1683529093529190912054909150818110156131cf5760405162461bcd60e51b815260040161068490614976565b5f838152602081815260408083206001600160a01b038e8116855292528083208585039055908b1682528120805484929061320b90849061491e565b909155505060019093019250613147915050565b50846001600160a01b0316866001600160a01b0316826001600160a01b03167f4a39dc06d4c0dbc64b70af90fd698a233a518aa5d07e595d983b8c0526c8f7fb878760405161326f9291906149c0565b60405180910390a4613285818787878787613760565b505050505050565b6001600160a01b0383166132ef5760405162461bcd60e51b815260206004820152602360248201527f455243313135353a206275726e2066726f6d20746865207a65726f206164647260448201526265737360e81b6064820152608401610684565b335f6132fa846138ba565b90505f613306846138ba565b60408051602080820183525f918290528882528181528282206001600160a01b038b168352905220549091508481101561338e5760405162461bcd60e51b8152602060048201526024808201527f455243313135353a206275726e20616d6f756e7420657863656564732062616c604482015263616e636560e01b6064820152608401610684565b5f868152602081815260408083206001600160a01b038b81168086529184528285208a8703905582518b81529384018a90529092908816917fc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f62910160405180910390a460408051602081019091525f90526124e0565b600380546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0905f90a35050565b816001600160a01b0316836001600160a01b0316036134c85760405162461bcd60e51b815260206004820152602960248201527f455243313135353a2073657474696e6720617070726f76616c20737461747573604482015268103337b91039b2b63360b91b6064820152608401610684565b6001600160a01b038381165f81815260016020908152604080832094871680845294825291829020805460ff191686151590811790915591519182527f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a3505050565b6001600160a01b0384166135945760405162461bcd60e51b815260206004820152602160248201527f455243313135353a206d696e7420746f20746865207a65726f206164647265736044820152607360f81b6064820152608401610684565b335f61359f856138ba565b90505f6135ab856138ba565b90505f868152602081815260408083206001600160a01b038b168452909152812080548792906135dc90849061491e565b909155505060408051878152602081018790526001600160a01b03808a16925f92918716917fc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f62910160405180910390a46124e0835f89898989613903565b6001600160a01b0384166136605760405162461bcd60e51b815260040161068490614931565b335f61366b856138ba565b90505f613677856138ba565b90505f868152602081815260408083206001600160a01b038c168452909152902054858110156136b95760405162461bcd60e51b815260040161068490614976565b5f878152602081815260408083206001600160a01b038d8116855292528083208985039055908a168252812080548892906136f590849061491e565b909155505060408051888152602081018890526001600160a01b03808b16928c821692918816917fc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f62910160405180910390a4613755848a8a8a8a8a613903565b505050505050505050565b6001600160a01b0384163b156132855760405163bc197c8160e01b81526001600160a01b0385169063bc197c81906137a490899089908890889088906004016149ed565b6020604051808303815f875af19250505080156137de575060408051601f3d908101601f191682019092526137db91810190614a4a565b60015b61388a576137ea614a65565b806308c379a00361382357506137fe614a7e565b806138095750613825565b8060405162461bcd60e51b81526004016106849190613a93565b505b60405162461bcd60e51b815260206004820152603460248201527f455243313135353a207472616e7366657220746f206e6f6e2d455243313135356044820152732932b1b2b4bb32b91034b6b83632b6b2b73a32b960611b6064820152608401610684565b6001600160e01b0319811663bc197c8160e01b146124e05760405162461bcd60e51b815260040161068490614b06565b6040805160018082528183019092526060915f91906020808301908036833701905050905082815f815181106138f2576138f2614695565b602090810291909101015292915050565b6001600160a01b0384163b156132855760405163f23a6e6160e01b81526001600160a01b0385169063f23a6e61906139479089908990889088908890600401614b4e565b6020604051808303815f875af1925050508015613981575060408051601f3d908101601f1916820190925261397e91810190614a4a565b60015b61398d576137ea614a65565b6001600160e01b0319811663f23a6e6160e01b146124e05760405162461bcd60e51b815260040161068490614b06565b80356001600160a01b03811681146139d3575f80fd5b919050565b5f80604083850312156139e9575f80fd5b6139f2836139bd565b946020939093013593505050565b6001600160e01b031981168114610dec575f80fd5b5f60208284031215613a25575f80fd5b81356125ca81613a00565b5f8060408385031215613a41575f80fd5b50508035926020909101359150565b5f81518084525f5b81811015613a7457602081850181015186830182015201613a58565b505f602082860101526020601f19601f83011685010191505092915050565b602081525f6125ca6020830184613a50565b5f8083601f840112613ab5575f80fd5b5081356001600160401b03811115613acb575f80fd5b6020830191508360208260051b8501011115613ae5575f80fd5b9250929050565b5f8060208385031215613afd575f80fd5b82356001600160401b03811115613b12575f80fd5b613b1e85828601613aa5565b90969095509350505050565b5f60208284031215613b3a575f80fd5b5035919050565b815161ffff16815261016081016020830151613b63602084018261ffff169052565b506040830151613b77604084018215159052565b506060830151613b9260608401826001600160a01b03169052565b506080830151613ba8608084018261ffff169052565b5060a0830151613bbe60a084018261ffff169052565b5060c0830151613bd460c084018261ffff169052565b5060e0830151613be860e084018215159052565b50610100838101516001600160501b038116848301525050610120838101516001600160501b0381168483015250506101408381015166ffffffffffffff8116848301525b505092915050565b80604081018310156106af575f80fd5b803580151581146139d3575f80fd5b803560ff811681146139d3575f80fd5b80356001600160501b03811681146139d3575f80fd5b803561ffff811681146139d3575f80fd5b5f805f805f805f805f805f6101808c8e031215613ca6575f80fd5b8b359a50613cb78d60208e01613c35565b9950613cc560608d01613c45565b9850613cd360808d01613c54565b9750613ce160a08d01613c64565b9650613cef60c08d01613c7a565b9550613cfd60e08d01613c7a565b94506101008c01359350613d146101208d016139bd565b9250613d236101408d01613c64565b9150613d326101608d01613c7a565b90509295989b509295989b9093969950565b634e487b7160e01b5f52604160045260245ffd5b601f8201601f191681016001600160401b0381118282101715613d7d57613d7d613d44565b6040525050565b5f6001600160401b03821115613d9c57613d9c613d44565b5060051b60200190565b5f82601f830112613db5575f80fd5b81356020613dc282613d84565b604051613dcf8282613d58565b80915083815260208101915060208460051b870101935086841115613df2575f80fd5b602086015b84811015613e0e5780358352918301918301613df7565b509695505050505050565b5f82601f830112613e28575f80fd5b81356001600160401b03811115613e4157613e41613d44565b604051613e58601f8301601f191660200182613d58565b818152846020838601011115613e6c575f80fd5b816020850160208301375f918101602001919091529392505050565b5f805f805f60a08688031215613e9c575f80fd5b613ea5866139bd565b9450613eb3602087016139bd565b935060408601356001600160401b0380821115613ece575f80fd5b613eda89838a01613da6565b94506060880135915080821115613eef575f80fd5b613efb89838a01613da6565b93506080880135915080821115613f10575f80fd5b50613f1d88828901613e19565b9150509295509295909350565b5f805f60608486031215613f3c575f80fd5b613f45846139bd565b95602085013595506040909401359392505050565b602080825282518282018190525f9190848201906040850190845b81811015613f9557835161ffff1683529284019291840191600101613f75565b50909695505050505050565b5f8060408385031215613fb2575f80fd5b82356001600160401b0380821115613fc8575f80fd5b818501915085601f830112613fdb575f80fd5b81356020613fe882613d84565b604051613ff58282613d58565b83815260059390931b8501820192828101915089841115614014575f80fd5b948201945b838610156140395761402a866139bd565b82529482019490820190614019565b9650508601359250508082111561404e575f80fd5b5061405b85828601613da6565b9150509250929050565b5f815180845260208085019450602084015f5b8381101561409457815187529582019590820190600101614078565b509495945050505050565b602081525f6125ca6020830184614065565b5f8083601f8401126140c1575f80fd5b5081356001600160401b038111156140d7575f80fd5b602083019150836020828501011115613ae5575f80fd5b803566ffffffffffffff811681146139d3575f80fd5b5f805f805f805f805f6101008a8c03121561411d575f80fd5b8935985061412d60208b01613c7a565b975061413b60408b01613c7a565b965061414960608b016139bd565b955060808a01356001600160401b03811115614163575f80fd5b61416f8c828d016140b1565b9096509450614182905060a08b01613c64565b925061419060c08b01613c64565b915061419e60e08b016140ee565b90509295985092959850929598565b5f805f604084860312156141bf575f80fd5b8335925060208401356001600160401b038111156141db575f80fd5b6141e786828701613aa5565b9497909650939450505050565b5f805f8060408587031215614207575f80fd5b84356001600160401b038082111561421d575f80fd5b61422988838901613aa5565b90965094506020870135915080821115614241575f80fd5b5061424e87828801613aa5565b95989497509550505050565b5f805f805f805f805f805f6101808c8e031215614275575f80fd5b8b359a5060208c01359950613cc58d60408e01613c35565b5f806040838503121561429e575f80fd5b6142a7836139bd565b91506142b560208401613c45565b90509250929050565b5f80604083850312156142cf575f80fd5b823591506142b5602084016139bd565b5f805f80608085870312156142f2575f80fd5b6142fb856139bd565b966020860135965060408601359560600135945092505050565b5f805f60608486031215614327575f80fd5b833592506020840135915061433e604085016139bd565b90509250925092565b5f805f805f806060878903121561435c575f80fd5b86356001600160401b0380821115614372575f80fd5b61437e8a838b01613aa5565b90985096506020890135915080821115614396575f80fd5b6143a28a838b01613aa5565b909650945060408901359150808211156143ba575f80fd5b506143c789828a01613aa5565b979a9699509497509295939492505050565b5f805f805f805f805f806101208b8d0312156143f3575f80fd5b8a35995061440360208c01613c7a565b985061441160408c01613c7a565b975061441f60608c01613c45565b965061442d60808c016139bd565b955060a08b01356001600160401b03811115614447575f80fd5b6144538d828e016140b1565b9096509450614466905060c08c01613c64565b925061447460e08c01613c64565b91506144836101008c016140ee565b90509295989b9194979a5092959850565b5f602082840312156144a4575f80fd5b6125ca826139bd565b815166ffffffffffffff168152610180810160208301516144d9602084018266ffffffffffffff169052565b5060408301516144ed604084018215159052565b506060830151614502606084018260ff169052565b50608083015161451d60808401826001600160501b03169052565b5060a083015161453360a084018261ffff169052565b5060c083015161454960c084018261ffff169052565b5060e083015161455f60e084018261ffff169052565b506101008381015190830152610120808401516001600160a01b031690830152610140808401516001600160501b0316908301526101608084015161ffff811682850152613c2d565b5f80604083850312156145b9575f80fd5b6145c2836139bd565b91506142b5602084016139bd565b5f805f805f60a086880312156145e4575f80fd5b6145ed866139bd565b94506145fb602087016139bd565b9350604086013592506060860135915060808601356001600160401b03811115614623575f80fd5b613f1d88828901613e19565b6020808252601a908201527f4d61646963696e6520494420646f6573206e6f74206578697374000000000000604082015260600190565b60208082526015908201527413d3d688125108191bd95cc81b9bdd08195e1a5cdd605a1b604082015260600190565b634e487b7160e01b5f52603260045260245ffd5b600181811c908216806146bd57607f821691505b6020821081036146db57634e487b7160e01b5f52602260045260245ffd5b50919050565b634e487b7160e01b5f52601160045260245ffd5b5f61ffff80831681810361470b5761470b6146e1565b6001019392505050565b5f60208284031215614725575f80fd5b6125ca826140ee565b6020808252602e908201527f455243313135353a2063616c6c6572206973206e6f7420746f6b656e206f776e60408201526d195c881bdc88185c1c1c9bdd995960921b606082015260800190565b6020808252601b908201527f4f6e6c79207574696c20636f6e74726163742063616e2063616c6c0000000000604082015260600190565b601f82111561088a57805f5260205f20601f840160051c810160208510156147d85750805b601f840160051c820191505b8181101561117a575f81556001016147e4565b6001600160401b0383111561480e5761480e613d44565b6148228361481c83546146a9565b836147b3565b5f601f841160018114614853575f851561483c5750838201355b5f19600387901b1c1916600186901b17835561117a565b5f83815260208120601f198716915b828110156148825786850135825560209485019460019092019101614862565b508682101561489e575f1960f88860031b161c19848701351681555b505060018560011b0183555050505050565b60208082526019908201527f4172726179206c656e677468206e6f74206d61746368696e6700000000000000604082015260600190565b60208082526017908201527f537461676520494420646f6573206e6f74206578697374000000000000000000604082015260600190565b808201808211156106af576106af6146e1565b60208082526025908201527f455243313135353a207472616e7366657220746f20746865207a65726f206164604082015264647265737360d81b606082015260800190565b6020808252602a908201527f455243313135353a20696e73756666696369656e742062616c616e636520666f60408201526939103a3930b739b332b960b11b606082015260800190565b604081525f6149d26040830185614065565b82810360208401526149e48185614065565b95945050505050565b6001600160a01b0386811682528516602082015260a0604082018190525f90614a1890830186614065565b8281036060840152614a2a8186614065565b90508281036080840152614a3e8185613a50565b98975050505050505050565b5f60208284031215614a5a575f80fd5b81516125ca81613a00565b5f60033d1115614a7b5760045f803e505f5160e01c5b90565b5f60443d1015614a8b5790565b6040516003193d81016004833e81513d6001600160401b038160248401118184111715614aba57505050505090565b8285019150815181811115614ad25750505050505090565b843d8701016020828501011115614aec5750505050505090565b614afb60208286010187613d58565b509095945050505050565b60208082526028908201527f455243313135353a204552433131353552656365697665722072656a656374656040820152676420746f6b656e7360c01b606082015260800190565b6001600160a01b03868116825285166020820152604081018490526060810183905260a0608082018190525f90614b8790830184613a50565b97965050505050505056fea2646970667358221220cce465584edbe331492191b6b8bd219e2daa604a49c717b54b48922b66c2bf7a64736f6c63430008160033
Deployed Bytecode
0x608060405234801561000f575f80fd5b5060043610610249575f3560e01c80638b2814e311610140578063c2949048116100bf578063e2f1e91711610084578063e2f1e91714610577578063e851ed711461058a578063e985e9c5146105aa578063f242432a146105e5578063f2fde38b146105f8578063f5298aca1461060b575f80fd5b8063c294904814610502578063c69e9af014610515578063c87b56dd14610528578063d55c5afc1461053b578063dae9a0591461054e575f80fd5b8063a235c9a711610105578063a235c9a7146104a3578063a647e8ec146104b6578063a9a80a59146104c9578063ac127984146104dc578063c2740a2a146104ef575f80fd5b80638b2814e31461041e5780638da5cb5b1461044a57806395d89b411461045b5780639a483cfe1461047d578063a22cb46514610490575f80fd5b80632eb2c2d6116101cc5780635b1e87ed116101915780635b1e87ed146103ca5780636f0c22a6146103dd578063715018a6146103f057806382f461e0146103f857806387eb5e841461040b575f80fd5b80632eb2c2d61461035157806339651eef146103645780634b50c1af146103775780634e1273f414610397578063519dee9f146103b7575f80fd5b80630e89341c116102125780630e89341c146102f05780631642b85414610303578063242ddf9f1461032357806324600fc3146103365780632d883f3f1461033e575f80fd5b8062fdd58e1461024d57806301ffc9a714610273578063047730fc1461029657806306fdde03146102a95780630b5168a7146102db575b5f80fd5b61026061025b3660046139d8565b61061e565b6040519081526020015b60405180910390f35b610286610281366004613a15565b6106b5565b604051901515815260200161026a565b6102866102a4366004613a30565b610704565b60408051808201909152600d81526c4f4f5a204d61642d6963696e6560981b60208201525b60405161026a9190613a93565b6102ee6102e9366004613aec565b6107a0565b005b6102ce6102fe366004613b2a565b61088f565b610316610311366004613b2a565b61095a565b60405161026a9190613b41565b610286610331366004613a30565b610abb565b6102ee610dbb565b6102ee61034c366004613c8b565b610def565b6102ee61035f366004613e88565b611135565b6102ee610372366004613f2a565b611181565b61038a610385366004613b2a565b611318565b60405161026a9190613f5a565b6103aa6103a5366004613fa1565b6113d4565b60405161026a919061409f565b6103aa6103c5366004613aec565b6114f3565b6102ee6103d8366004613aec565b6115e1565b6102ee6103eb366004614104565b61177c565b6102ee61191a565b6102ee6104063660046141ad565b61192d565b6102ee6104193660046141f4565b611adb565b61271d54610432906001600160a01b031681565b6040516001600160a01b03909116815260200161026a565b6003546001600160a01b0316610432565b60408051808201909152600681526513d3d693505160d21b60208201526102ce565b6102ee61048b36600461425a565b611bff565b6102ee61049e36600461428d565b611f85565b6102606104b13660046142be565b611f94565b6102ee6104c43660046142df565b611fea565b6102606104d7366004614315565b61214a565b6102ee6104ea366004614347565b6121ea565b6102866104fd366004613a30565b6124e9565b6102ee6105103660046143d9565b6125d1565b6102ee6105233660046141f4565b612920565b6102ce610536366004613b2a565b612b08565b6102ee610549366004614494565b612b13565b61026061055c366004614494565b6001600160a01b03165f90815261271c602052604090205490565b6102ee6105853660046141ad565b612b9e565b61059d610598366004613a30565b612d3e565b60405161026a91906144ad565b6102866105b83660046145a8565b6001600160a01b039182165f90815260016020908152604080832093909416825291909152205460ff1690565b6102ee6105f33660046145d0565b612efd565b6102ee610606366004614494565b612f42565b6102ee610619366004613f2a565b612fb8565b5f6001600160a01b03831661068d5760405162461bcd60e51b815260206004820152602a60248201527f455243313135353a2061646472657373207a65726f206973206e6f742061207660448201526930b634b21037bbb732b960b11b60648201526084015b60405180910390fd5b505f818152602081815260408083206001600160a01b03861684529091529020545b92915050565b5f6001600160e01b03198216636cdb3d1360e11b14806106e557506001600160e01b031982166303a24d0760e21b145b806106af57506301ffc9a760e01b6001600160e01b03198316146106af565b5f8281526005602052604081205460ff166107315760405162461bcd60e51b81526004016106849061462f565b5f82118015610741575061271082105b61075d5760405162461bcd60e51b815260040161068490614666565b5f838152600860205260409020839083612710811061077e5761077e614695565b601081049190910154600f9091166002026101000a900460010b149392505050565b6107a8613062565b5f5b8181101561088a5760055f8484848181106107c7576107c7614695565b602090810292909201358352508101919091526040015f205460ff166107ff5760405162461bcd60e51b81526004016106849061462f565b60045f84848481811061081457610814614695565b9050602002013581526020019081526020015f205f0160049054906101000a900460ff161560045f85858581811061084e5761084e614695565b602090810292909201358352508101919091526040015f2080549115156401000000000264ff00000000199092169190911790556001016107aa565b505050565b5f8181526005602052604090205460609060ff166108bf5760405162461bcd60e51b81526004016106849061462f565b5f82815260066020526040902080546108d7906146a9565b80601f0160208091040260200160405190810160405280929190818152602001828054610903906146a9565b801561094e5780601f106109255761010080835404028352916020019161094e565b820191905f5260205f20905b81548152906001019060200180831161093157829003601f168201915b50505050509050919050565b60408051610160810182525f80825260208201819052918101829052606081018290526080810182905260a0810182905260c0810182905260e08101829052610100810182905261012081018290526101408101919091525f8281526005602052604090205460ff166109df5760405162461bcd60e51b81526004016106849061462f565b505f90815260046020908152604091829020825161016081018452815461ffff808216835262010000820481169483019490945260ff640100000000820481161515958301959095526001600160a01b03650100000000008204166060830152600160c81b810484166080830152600160d81b8104841660a0830152600160e81b810490931660c0820152600160f81b909204909216151560e08201526001909101546001600160501b03808216610100840152600160501b82041661012083015266ffffffffffffff600160a01b9091041661014082015290565b5f8281526005602052604081205460ff16610ae85760405162461bcd60e51b81526004016106849061462f565b5f82118015610af8575061271082105b610b145760405162461bcd60e51b815260040161068490614666565b5f83815260046020526040902054600160f81b900460ff16610c74575f8381526004602052604080822054600160e81b900461ffff168252902054600160f81b900460ff16610bf8575f83815260046020908152604080832054600160e81b900461ffff16835260089091529020826127108110610b9457610b94614695565b601081049190910154600f9091166002026101000a900460010b158015610bf157505f838152600860205260409020826127108110610bd557610bd5614695565b601081049190910154600f9091166002026101000a900460010b155b90506106af565b5f83815260046020908152604080832054600160e81b900461ffff16835260089091529020826127108110610c2f57610c2f614695565b601091828204019190066002029054906101000a900460010b60010b5f19148015610bf157505f838152600860205260409020826127108110610bd557610bd5614695565b5f8381526004602052604080822054600160e81b900461ffff168252902054600160f81b900460ff16610d3f575f83815260046020908152604080832054600160e81b900461ffff16835260089091529020826127108110610cd857610cd8614695565b601081049190910154600f9091166002026101000a900460010b158015610bf157505f838152600860205260409020826127108110610d1957610d19614695565b601091828204019190066002029054906101000a900460010b60010b5f191490506106af565b5f83815260046020908152604080832054600160e81b900461ffff16835260089091529020826127108110610d7657610d76614695565b601091828204019190066002029054906101000a900460010b60010b5f19148015610bf157505f838152600860205260409020826127108110610d1957610d19614695565b610dc3613062565b60405133904780156108fc02915f818181858888f19350505050158015610dec573d5f803e3d5ffd5b50565b610df7613062565b5f8b81526005602052604090205460ff16610e245760405162461bcd60e51b81526004016106849061462f565b5f8b81526004602052604090208054600160d81b900461ffff1690601b610e4a836146f5565b91906101000a81548161ffff021916908361ffff160217905550506040518061018001604052808b5f60028110610e8357610e83614695565b602002016020810190610e969190614715565b66ffffffffffffff168152602090810190610eb79060408e01908e01614715565b66ffffffffffffff1681526020018a151581526020018960ff168152602001886001600160501b031681526020018761ffff1681526020018661ffff1681526020015f61ffff168152602001858152602001846001600160a01b03168152602001836001600160501b031681526020018261ffff1681525060075f8d81526020019081526020015f205f60045f8f81526020019081526020015f205f01601b9054906101000a900461ffff1661ffff1681526020019081526020015f205f820151815f015f6101000a81548166ffffffffffffff021916908366ffffffffffffff1602179055506020820151815f0160076101000a81548166ffffffffffffff021916908366ffffffffffffff1602179055506040820151815f01600e6101000a81548160ff0219169083151502179055506060820151815f01600f6101000a81548160ff021916908360ff1602179055506080820151815f0160106101000a8154816001600160501b0302191690836001600160501b0316021790555060a0820151815f01601a6101000a81548161ffff021916908361ffff16021790555060c0820151815f01601c6101000a81548161ffff021916908361ffff16021790555060e0820151815f01601e6101000a81548161ffff021916908361ffff1602179055506101008201518160010155610120820151816002015f6101000a8154816001600160a01b0302191690836001600160a01b031602179055506101408201518160020160146101000a8154816001600160501b0302191690836001600160501b0316021790555061016082015181600201601e6101000a81548161ffff021916908361ffff1602179055509050505050505050505050505050565b6001600160a01b038516331480611151575061115185336105b8565b61116d5760405162461bcd60e51b81526004016106849061472e565b61117a85858585856130bc565b5050505050565b61271d546001600160a01b031633146111ac5760405162461bcd60e51b81526004016106849061477c565b6111b88383600161328d565b5f8281526127196020908152604080832080545f190190556001600160a01b038616835261271c8252808320805460010190558483526004825280832054600160e81b900461ffff16835260089091529020829082612710811061121e5761121e614695565b601091828204019190066002026101000a81548161ffff021916908360010b61ffff1602179055508160085f8481526020019081526020015f2082612710811061126a5761126a614695565b601091828204019190066002026101000a81548161ffff021916908360010b61ffff16021790555060098161271081106112a6576112a6614695565b0180546001810182555f9182526020822060108204018054600f9092166002026101000a61ffff8181021990931692861602919091179055604051829184916001600160a01b038716917f6aa50a546fd739b2d6e47361b6484b3a52be46d95af824082acc86b51938ff1091a4505050565b60605f8211801561132a575061271082105b6113465760405162461bcd60e51b815260040161068490614666565b600982612710811061135a5761135a614695565b0180548060200260200160405190810160405280929190818152602001828054801561094e57602002820191905f5260205f20905f905b82829054906101000a900461ffff1661ffff1681526020019060020190602082600101049283019260010382029150808411611391575094979650505050505050565b606081518351146114395760405162461bcd60e51b815260206004820152602960248201527f455243313135353a206163636f756e747320616e6420696473206c656e677468604482015268040dad2e6dac2e8c6d60bb1b6064820152608401610684565b5f83516001600160401b0381111561145357611453613d44565b60405190808252806020026020018201604052801561147c578160200160208202803683370190505b5090505f5b84518110156114eb576114c685828151811061149f5761149f614695565b60200260200101518583815181106114b9576114b9614695565b602002602001015161061e565b8282815181106114d8576114d8614695565b6020908102919091010152600101611481565b509392505050565b60605f826001600160401b0381111561150e5761150e613d44565b604051908082528060200260200182016040528015611537578160200160208202803683370190505b5090505f5b838110156114eb5760055f86868481811061155957611559614695565b602090810292909201358352508101919091526040015f205460ff166115915760405162461bcd60e51b81526004016106849061462f565b6127195f8686848181106115a7576115a7614695565b9050602002013581526020019081526020015f20548282815181106115ce576115ce614695565b602090810291909101015260010161153c565b6115e9613062565b5f5b8181101561088a5760055f84848481811061160857611608614695565b602090810292909201358352508101919091526040015f205460ff166116405760405162461bcd60e51b81526004016106849061462f565b6127195f84848481811061165657611656614695565b9050602002013581526020019081526020015f205460045f85858581811061168057611680614695565b602090810292909201358352508101919091526040015f2054600160c81b900461ffff16146116f15760405162461bcd60e51b815260206004820152601960248201527f50726573637269626520616c72656164792073746172746564000000000000006044820152606401610684565b60045f84848481811061170657611706614695565b9050602002013581526020019081526020015f205f01601f9054906101000a900460ff161560045f85858581811061174057611740614695565b602090810292909201358352508101919091526040015f208054911515600160f81b026001600160f81b039092169190911790556001016115eb565b611784613062565b5f8981526005602052604090205460ff166117b15760405162461bcd60e51b81526004016106849061462f565b8760045f8b81526020019081526020015f205f015f6101000a81548161ffff021916908361ffff1602179055508660045f8b81526020019081526020015f205f0160026101000a81548161ffff021916908361ffff1602179055508560045f8b81526020019081526020015f205f0160056101000a8154816001600160a01b0302191690836001600160a01b031602179055508260045f8b81526020019081526020015f206001015f6101000a8154816001600160501b0302191690836001600160501b031602179055508160045f8b81526020019081526020015f20600101600a6101000a8154816001600160501b0302191690836001600160501b031602179055508060045f8b81526020019081526020015f2060010160146101000a81548166ffffffffffffff021916908366ffffffffffffff160217905550848460065f8c81526020019081526020015f20918261190e9291906147f7565b50505050505050505050565b611922613062565b61192b5f613404565b565b611935613062565b5f8381526005602052604090205460ff166119625760405162461bcd60e51b81526004016106849061462f565b5f5b81811015611ad5575f83838381811061197f5761197f614695565b905060200201351180156119ac57506127108383838181106119a3576119a3614695565b90506020020135105b6119c85760405162461bcd60e51b815260040161068490614666565b5f8481526008602052604090208383838181106119e7576119e7614695565b9050602002013561271081106119ff576119ff614695565b601081049190910154600f9091166002026101000a900460010b15611a665760405162461bcd60e51b815260206004820152601960248201527f43616e6e6f7420626c61636b6c6973742074686973204f4f5a000000000000006044820152606401610684565b5f8481526008602052604090205f1990848484818110611a8857611a88614695565b905060200201356127108110611aa057611aa0614695565b601091828204019190066002026101000a81548161ffff021916908360010b61ffff1602179055508080600101915050611964565b50505050565b611ae3613062565b828114611b025760405162461bcd60e51b8152600401610684906148b0565b5f5b8381101561117a5760055f868684818110611b2157611b21614695565b602090810292909201358352508101919091526040015f205460ff168015611b76575060055f848484818110611b5957611b59614695565b602090810292909201358352508101919091526040015f205460ff165b611b925760405162461bcd60e51b81526004016106849061462f565b828282818110611ba457611ba4614695565b9050602002013560045f878785818110611bc057611bc0614695565b602090810292909201358352508101919091526040015f20805461ffff92909216600160e81b0261ffff60e81b19909216919091179055600101611b04565b611c07613062565b5f8b81526005602052604090205460ff16611c345760405162461bcd60e51b81526004016106849061462f565b5f8a118015611c5b57505f8b815260046020526040902054600160d81b900461ffff168a11155b611c775760405162461bcd60e51b8152600401610684906148e7565b5f8b81526007602090815260408083208d8452909152902054600160f01b900461ffff1615611ce85760405162461bcd60e51b815260206004820152601960248201527f53746167652068617320616c72656164792073746172746564000000000000006044820152606401610684565b611cf560208a018a614715565b5f8c81526007602090815260408083208e84529091529020805466ffffffffffffff191666ffffffffffffff92909216919091179055886001602002016020810190611d419190614715565b60075f8d81526020019081526020015f205f8c81526020019081526020015f205f0160076101000a81548166ffffffffffffff021916908366ffffffffffffff1602179055508760075f8d81526020019081526020015f205f8c81526020019081526020015f205f01600f6101000a81548160ff021916908360ff1602179055508660075f8d81526020019081526020015f205f8c81526020019081526020015f205f0160106101000a8154816001600160501b0302191690836001600160501b031602179055508560075f8d81526020019081526020015f205f8c81526020019081526020015f205f01601a6101000a81548161ffff021916908361ffff1602179055508460075f8d81526020019081526020015f205f8c81526020019081526020015f205f01601c6101000a81548161ffff021916908361ffff1602179055508360075f8d81526020019081526020015f205f8c81526020019081526020015f20600101819055508260075f8d81526020019081526020015f205f8c81526020019081526020015f206002015f6101000a8154816001600160a01b0302191690836001600160a01b031602179055508160075f8d81526020019081526020015f205f8c81526020019081526020015f2060020160146101000a8154816001600160501b0302191690836001600160501b031602179055508060075f8d81526020019081526020015f205f8c81526020019081526020015f20600201601e6101000a81548161ffff021916908361ffff1602179055505050505050505050505050565b611f90338383613455565b5050565b5f8281526005602052604081205460ff16611fc15760405162461bcd60e51b81526004016106849061462f565b505f91825261271a602090815260408084206001600160a01b0393909316845291905290205490565b61271d546001600160a01b031633146120155760405162461bcd60e51b81526004016106849061477c565b5f811161206f5760405162461bcd60e51b815260206004820152602260248201527f4d696e7420616d6f756e74206d7573742062652067726561746572207468616e604482015261020360f41b6064820152608401610684565b61208984848360405180602001604052805f815250613534565b5f8381526127196020908152604080832080548501905560048252808320805461ffff60c81b198116600160c81b9182900461ffff908116880181169092021790915560078352818420868552835281842080546001600160f01b038116600160f01b91829004841688019093160291909117905585835261271a82528083206001600160a01b039790971680845296825280832080548501905594825261271b815284822093825292835283812094815293909152912080549091019055565b5f8381526005602052604081205460ff166121775760405162461bcd60e51b81526004016106849061462f565b5f8311801561219e57505f84815260046020526040902054600160d81b900461ffff168311155b6121ba5760405162461bcd60e51b8152600401610684906148e7565b505f92835261271b602090815260408085209385529281528284206001600160a01b039290921684525290205490565b6121f2613062565b848314801561220057508281145b61221c5760405162461bcd60e51b8152600401610684906148b0565b5f5b838110156124e05760055f88888481811061223b5761223b614695565b602090810292909201358352508101919091526040015f205460ff166122735760405162461bcd60e51b81526004016106849061462f565b60045f88888481811061228857612288614695565b602090810292909201358352508101919091526040015f9081205461ffff16906004908989858181106122bd576122bd614695565b602090810292909201358352508101919091526040015f2054600160c81b900461ffff168484848181106122f3576122f3614695565b90506020020135612304919061491e565b11156123525760405162461bcd60e51b815260206004820152601f60248201527f45786365656473206d6178696d756d206d61646963696e6520737570706c79006044820152606401610684565b6123c285858381811061236757612367614695565b905060200201602081019061237c9190614494565b88888481811061238e5761238e614695565b905060200201358585858181106123a7576123a7614695565b9050602002013560405180602001604052805f815250613534565b8282828181106123d4576123d4614695565b905060200201356127195f8989858181106123f1576123f1614695565b9050602002013581526020019081526020015f205f828254019250508190555082828281811061242357612423614695565b9050602002013560045f89898581811061243f5761243f614695565b602090810292909201358352508101919091526040015f20805461ffff600160c81b80830482169094011690920261ffff60c81b1990921691909117905582828281811061248f5761248f614695565b9050602002013561271a5f8989858181106124ac576124ac614695565b602090810292909201358352508181019290925260409081015f90812033825290925290208054909101905560010161221e565b50505050505050565b5f8281526005602052604081205460ff166125165760405162461bcd60e51b81526004016106849061462f565b5f82118015612526575061271082105b6125425760405162461bcd60e51b815260040161068490614666565b5f83815260046020526040902054640100000000900460ff1661256657505f6106af565b5f83815260046020526040902060010154600160a01b900466ffffffffffffff16158015906125b457505f83815260046020526040902060010154600160a01b900466ffffffffffffff1642115b156125c057505f6106af565b6125ca8383610abb565b9392505050565b6125d9613062565b5f8a81526005602052604090205460ff16156126375760405162461bcd60e51b815260206004820152601a60248201527f4d61646963696e6520494420616c7265616479206578697374730000000000006044820152606401610684565b5f8a11801561264757506180008a105b6126935760405162461bcd60e51b815260206004820152601960248201527f4d61646963696e65204944206f7574206f6620626f756e6473000000000000006044820152606401610684565b6040518061016001604052808a61ffff1681526020018961ffff1681526020018815158152602001876001600160a01b031681526020015f61ffff1681526020015f61ffff1681526020018b61ffff1681526020015f15158152602001846001600160501b03168152602001836001600160501b031681526020018266ffffffffffffff1681525060045f8c81526020019081526020015f205f820151815f015f6101000a81548161ffff021916908361ffff1602179055506020820151815f0160026101000a81548161ffff021916908361ffff1602179055506040820151815f0160046101000a81548160ff0219169083151502179055506060820151815f0160056101000a8154816001600160a01b0302191690836001600160a01b031602179055506080820151815f0160196101000a81548161ffff021916908361ffff16021790555060a0820151815f01601b6101000a81548161ffff021916908361ffff16021790555060c0820151815f01601d6101000a81548161ffff021916908361ffff16021790555060e0820151815f01601f6101000a81548160ff021916908315150217905550610100820151816001015f6101000a8154816001600160501b0302191690836001600160501b0316021790555061012082015181600101600a6101000a8154816001600160501b0302191690836001600160501b031602179055506101408201518160010160146101000a81548166ffffffffffffff021916908366ffffffffffffff160217905550905050600160055f8c81526020019081526020015f205f6101000a81548160ff021916908315150217905550848460065f8d81526020019081526020015f2091826129139291906147f7565b5050505050505050505050565b612928613062565b8281146129475760405162461bcd60e51b8152600401610684906148b0565b5f5b8381101561117a5760055f86868481811061296657612966614695565b602090810292909201358352508101919091526040015f205460ff1661299e5760405162461bcd60e51b81526004016106849061462f565b5f8383838181106129b1576129b1614695565b90506020020135118015612a15575060045f8686848181106129d5576129d5614695565b602090810292909201358352508101919091526040015f2054600160d81b900461ffff16838383818110612a0b57612a0b614695565b9050602002013511155b612a315760405162461bcd60e51b8152600401610684906148e7565b60075f868684818110612a4657612a46614695565b9050602002013581526020019081526020015f205f848484818110612a6d57612a6d614695565b9050602002013581526020019081526020015f205f01600e9054906101000a900460ff161560075f878785818110612aa757612aa7614695565b9050602002013581526020019081526020015f205f858585818110612ace57612ace614695565b602090810292909201358352508101919091526040015f208054911515600160701b0260ff60701b19909216919091179055600101612949565b60606106af8261088f565b612b1b613062565b61271d54600160a01b900460ff1615612b765760405162461bcd60e51b815260206004820152601c60248201527f436f6e747261637420616c726561647920696e697469616c697a6564000000006044820152606401610684565b61271d80546001600160a81b0319166001600160a01b0390921691909117600160a01b179055565b612ba6613062565b5f8381526005602052604090205460ff16612bd35760405162461bcd60e51b81526004016106849061462f565b5f5b81811015611ad5575f838383818110612bf057612bf0614695565b90506020020135118015612c1d5750612710838383818110612c1457612c14614695565b90506020020135105b612c395760405162461bcd60e51b815260040161068490614666565b5f848152600860205260409020838383818110612c5857612c58614695565b905060200201356127108110612c7057612c70614695565b601091828204019190066002029054906101000a900460010b60010b5f1914612cd25760405162461bcd60e51b815260206004820152601460248201527313d3d6881b9bdd081a5b88189b1858dadb1a5cdd60621b6044820152606401610684565b5f848152600860205260408120848484818110612cf157612cf1614695565b905060200201356127108110612d0957612d09614695565b601091828204019190066002026101000a81548161ffff021916908360010b61ffff1602179055508080600101915050612bd5565b60408051610180810182525f80825260208201819052918101829052606081018290526080810182905260a0810182905260c0810182905260e081018290526101008101829052610120810182905261014081018290526101608101919091525f8381526005602052604090205460ff16612dcb5760405162461bcd60e51b81526004016106849061462f565b5f82118015612df257505f83815260046020526040902054600160d81b900461ffff168211155b612e0e5760405162461bcd60e51b8152600401610684906148e7565b505f828152600760209081526040808320848452825291829020825161018081018452815466ffffffffffffff80821683526701000000000000008204169382019390935260ff600160701b84048116151594820194909452600160781b830490931660608401526001600160501b03600160801b83048116608085015261ffff600160d01b8404811660a0860152600160e01b8404811660c0860152600160f01b93849004811660e086015260018301546101008601526002909201546001600160a01b038116610120860152600160a01b8104909116610140850152919091041661016082015292915050565b6001600160a01b038516331480612f195750612f1985336105b8565b612f355760405162461bcd60e51b81526004016106849061472e565b61117a858585858561363a565b612f4a613062565b6001600160a01b038116612faf5760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401610684565b610dec81613404565b61271d546001600160a01b03163314612fe35760405162461bcd60e51b81526004016106849061477c565b5f811161303d5760405162461bcd60e51b815260206004820152602260248201527f4275726e20616d6f756e74206d7573742062652067726561746572207468616e604482015261020360f41b6064820152608401610684565b61304883838361328d565b5f9182526127196020526040909120805491909103905550565b6003546001600160a01b0316331461192b5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610684565b815183511461311e5760405162461bcd60e51b815260206004820152602860248201527f455243313135353a2069647320616e6420616d6f756e7473206c656e677468206044820152670dad2e6dac2e8c6d60c31b6064820152608401610684565b6001600160a01b0384166131445760405162461bcd60e51b815260040161068490614931565b335f5b845181101561321f575f85828151811061316357613163614695565b602002602001015190505f85838151811061318057613180614695565b6020908102919091018101515f84815280835260408082206001600160a01b038e1683529093529190912054909150818110156131cf5760405162461bcd60e51b815260040161068490614976565b5f838152602081815260408083206001600160a01b038e8116855292528083208585039055908b1682528120805484929061320b90849061491e565b909155505060019093019250613147915050565b50846001600160a01b0316866001600160a01b0316826001600160a01b03167f4a39dc06d4c0dbc64b70af90fd698a233a518aa5d07e595d983b8c0526c8f7fb878760405161326f9291906149c0565b60405180910390a4613285818787878787613760565b505050505050565b6001600160a01b0383166132ef5760405162461bcd60e51b815260206004820152602360248201527f455243313135353a206275726e2066726f6d20746865207a65726f206164647260448201526265737360e81b6064820152608401610684565b335f6132fa846138ba565b90505f613306846138ba565b60408051602080820183525f918290528882528181528282206001600160a01b038b168352905220549091508481101561338e5760405162461bcd60e51b8152602060048201526024808201527f455243313135353a206275726e20616d6f756e7420657863656564732062616c604482015263616e636560e01b6064820152608401610684565b5f868152602081815260408083206001600160a01b038b81168086529184528285208a8703905582518b81529384018a90529092908816917fc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f62910160405180910390a460408051602081019091525f90526124e0565b600380546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0905f90a35050565b816001600160a01b0316836001600160a01b0316036134c85760405162461bcd60e51b815260206004820152602960248201527f455243313135353a2073657474696e6720617070726f76616c20737461747573604482015268103337b91039b2b63360b91b6064820152608401610684565b6001600160a01b038381165f81815260016020908152604080832094871680845294825291829020805460ff191686151590811790915591519182527f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a3505050565b6001600160a01b0384166135945760405162461bcd60e51b815260206004820152602160248201527f455243313135353a206d696e7420746f20746865207a65726f206164647265736044820152607360f81b6064820152608401610684565b335f61359f856138ba565b90505f6135ab856138ba565b90505f868152602081815260408083206001600160a01b038b168452909152812080548792906135dc90849061491e565b909155505060408051878152602081018790526001600160a01b03808a16925f92918716917fc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f62910160405180910390a46124e0835f89898989613903565b6001600160a01b0384166136605760405162461bcd60e51b815260040161068490614931565b335f61366b856138ba565b90505f613677856138ba565b90505f868152602081815260408083206001600160a01b038c168452909152902054858110156136b95760405162461bcd60e51b815260040161068490614976565b5f878152602081815260408083206001600160a01b038d8116855292528083208985039055908a168252812080548892906136f590849061491e565b909155505060408051888152602081018890526001600160a01b03808b16928c821692918816917fc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f62910160405180910390a4613755848a8a8a8a8a613903565b505050505050505050565b6001600160a01b0384163b156132855760405163bc197c8160e01b81526001600160a01b0385169063bc197c81906137a490899089908890889088906004016149ed565b6020604051808303815f875af19250505080156137de575060408051601f3d908101601f191682019092526137db91810190614a4a565b60015b61388a576137ea614a65565b806308c379a00361382357506137fe614a7e565b806138095750613825565b8060405162461bcd60e51b81526004016106849190613a93565b505b60405162461bcd60e51b815260206004820152603460248201527f455243313135353a207472616e7366657220746f206e6f6e2d455243313135356044820152732932b1b2b4bb32b91034b6b83632b6b2b73a32b960611b6064820152608401610684565b6001600160e01b0319811663bc197c8160e01b146124e05760405162461bcd60e51b815260040161068490614b06565b6040805160018082528183019092526060915f91906020808301908036833701905050905082815f815181106138f2576138f2614695565b602090810291909101015292915050565b6001600160a01b0384163b156132855760405163f23a6e6160e01b81526001600160a01b0385169063f23a6e61906139479089908990889088908890600401614b4e565b6020604051808303815f875af1925050508015613981575060408051601f3d908101601f1916820190925261397e91810190614a4a565b60015b61398d576137ea614a65565b6001600160e01b0319811663f23a6e6160e01b146124e05760405162461bcd60e51b815260040161068490614b06565b80356001600160a01b03811681146139d3575f80fd5b919050565b5f80604083850312156139e9575f80fd5b6139f2836139bd565b946020939093013593505050565b6001600160e01b031981168114610dec575f80fd5b5f60208284031215613a25575f80fd5b81356125ca81613a00565b5f8060408385031215613a41575f80fd5b50508035926020909101359150565b5f81518084525f5b81811015613a7457602081850181015186830182015201613a58565b505f602082860101526020601f19601f83011685010191505092915050565b602081525f6125ca6020830184613a50565b5f8083601f840112613ab5575f80fd5b5081356001600160401b03811115613acb575f80fd5b6020830191508360208260051b8501011115613ae5575f80fd5b9250929050565b5f8060208385031215613afd575f80fd5b82356001600160401b03811115613b12575f80fd5b613b1e85828601613aa5565b90969095509350505050565b5f60208284031215613b3a575f80fd5b5035919050565b815161ffff16815261016081016020830151613b63602084018261ffff169052565b506040830151613b77604084018215159052565b506060830151613b9260608401826001600160a01b03169052565b506080830151613ba8608084018261ffff169052565b5060a0830151613bbe60a084018261ffff169052565b5060c0830151613bd460c084018261ffff169052565b5060e0830151613be860e084018215159052565b50610100838101516001600160501b038116848301525050610120838101516001600160501b0381168483015250506101408381015166ffffffffffffff8116848301525b505092915050565b80604081018310156106af575f80fd5b803580151581146139d3575f80fd5b803560ff811681146139d3575f80fd5b80356001600160501b03811681146139d3575f80fd5b803561ffff811681146139d3575f80fd5b5f805f805f805f805f805f6101808c8e031215613ca6575f80fd5b8b359a50613cb78d60208e01613c35565b9950613cc560608d01613c45565b9850613cd360808d01613c54565b9750613ce160a08d01613c64565b9650613cef60c08d01613c7a565b9550613cfd60e08d01613c7a565b94506101008c01359350613d146101208d016139bd565b9250613d236101408d01613c64565b9150613d326101608d01613c7a565b90509295989b509295989b9093969950565b634e487b7160e01b5f52604160045260245ffd5b601f8201601f191681016001600160401b0381118282101715613d7d57613d7d613d44565b6040525050565b5f6001600160401b03821115613d9c57613d9c613d44565b5060051b60200190565b5f82601f830112613db5575f80fd5b81356020613dc282613d84565b604051613dcf8282613d58565b80915083815260208101915060208460051b870101935086841115613df2575f80fd5b602086015b84811015613e0e5780358352918301918301613df7565b509695505050505050565b5f82601f830112613e28575f80fd5b81356001600160401b03811115613e4157613e41613d44565b604051613e58601f8301601f191660200182613d58565b818152846020838601011115613e6c575f80fd5b816020850160208301375f918101602001919091529392505050565b5f805f805f60a08688031215613e9c575f80fd5b613ea5866139bd565b9450613eb3602087016139bd565b935060408601356001600160401b0380821115613ece575f80fd5b613eda89838a01613da6565b94506060880135915080821115613eef575f80fd5b613efb89838a01613da6565b93506080880135915080821115613f10575f80fd5b50613f1d88828901613e19565b9150509295509295909350565b5f805f60608486031215613f3c575f80fd5b613f45846139bd565b95602085013595506040909401359392505050565b602080825282518282018190525f9190848201906040850190845b81811015613f9557835161ffff1683529284019291840191600101613f75565b50909695505050505050565b5f8060408385031215613fb2575f80fd5b82356001600160401b0380821115613fc8575f80fd5b818501915085601f830112613fdb575f80fd5b81356020613fe882613d84565b604051613ff58282613d58565b83815260059390931b8501820192828101915089841115614014575f80fd5b948201945b838610156140395761402a866139bd565b82529482019490820190614019565b9650508601359250508082111561404e575f80fd5b5061405b85828601613da6565b9150509250929050565b5f815180845260208085019450602084015f5b8381101561409457815187529582019590820190600101614078565b509495945050505050565b602081525f6125ca6020830184614065565b5f8083601f8401126140c1575f80fd5b5081356001600160401b038111156140d7575f80fd5b602083019150836020828501011115613ae5575f80fd5b803566ffffffffffffff811681146139d3575f80fd5b5f805f805f805f805f6101008a8c03121561411d575f80fd5b8935985061412d60208b01613c7a565b975061413b60408b01613c7a565b965061414960608b016139bd565b955060808a01356001600160401b03811115614163575f80fd5b61416f8c828d016140b1565b9096509450614182905060a08b01613c64565b925061419060c08b01613c64565b915061419e60e08b016140ee565b90509295985092959850929598565b5f805f604084860312156141bf575f80fd5b8335925060208401356001600160401b038111156141db575f80fd5b6141e786828701613aa5565b9497909650939450505050565b5f805f8060408587031215614207575f80fd5b84356001600160401b038082111561421d575f80fd5b61422988838901613aa5565b90965094506020870135915080821115614241575f80fd5b5061424e87828801613aa5565b95989497509550505050565b5f805f805f805f805f805f6101808c8e031215614275575f80fd5b8b359a5060208c01359950613cc58d60408e01613c35565b5f806040838503121561429e575f80fd5b6142a7836139bd565b91506142b560208401613c45565b90509250929050565b5f80604083850312156142cf575f80fd5b823591506142b5602084016139bd565b5f805f80608085870312156142f2575f80fd5b6142fb856139bd565b966020860135965060408601359560600135945092505050565b5f805f60608486031215614327575f80fd5b833592506020840135915061433e604085016139bd565b90509250925092565b5f805f805f806060878903121561435c575f80fd5b86356001600160401b0380821115614372575f80fd5b61437e8a838b01613aa5565b90985096506020890135915080821115614396575f80fd5b6143a28a838b01613aa5565b909650945060408901359150808211156143ba575f80fd5b506143c789828a01613aa5565b979a9699509497509295939492505050565b5f805f805f805f805f806101208b8d0312156143f3575f80fd5b8a35995061440360208c01613c7a565b985061441160408c01613c7a565b975061441f60608c01613c45565b965061442d60808c016139bd565b955060a08b01356001600160401b03811115614447575f80fd5b6144538d828e016140b1565b9096509450614466905060c08c01613c64565b925061447460e08c01613c64565b91506144836101008c016140ee565b90509295989b9194979a5092959850565b5f602082840312156144a4575f80fd5b6125ca826139bd565b815166ffffffffffffff168152610180810160208301516144d9602084018266ffffffffffffff169052565b5060408301516144ed604084018215159052565b506060830151614502606084018260ff169052565b50608083015161451d60808401826001600160501b03169052565b5060a083015161453360a084018261ffff169052565b5060c083015161454960c084018261ffff169052565b5060e083015161455f60e084018261ffff169052565b506101008381015190830152610120808401516001600160a01b031690830152610140808401516001600160501b0316908301526101608084015161ffff811682850152613c2d565b5f80604083850312156145b9575f80fd5b6145c2836139bd565b91506142b5602084016139bd565b5f805f805f60a086880312156145e4575f80fd5b6145ed866139bd565b94506145fb602087016139bd565b9350604086013592506060860135915060808601356001600160401b03811115614623575f80fd5b613f1d88828901613e19565b6020808252601a908201527f4d61646963696e6520494420646f6573206e6f74206578697374000000000000604082015260600190565b60208082526015908201527413d3d688125108191bd95cc81b9bdd08195e1a5cdd605a1b604082015260600190565b634e487b7160e01b5f52603260045260245ffd5b600181811c908216806146bd57607f821691505b6020821081036146db57634e487b7160e01b5f52602260045260245ffd5b50919050565b634e487b7160e01b5f52601160045260245ffd5b5f61ffff80831681810361470b5761470b6146e1565b6001019392505050565b5f60208284031215614725575f80fd5b6125ca826140ee565b6020808252602e908201527f455243313135353a2063616c6c6572206973206e6f7420746f6b656e206f776e60408201526d195c881bdc88185c1c1c9bdd995960921b606082015260800190565b6020808252601b908201527f4f6e6c79207574696c20636f6e74726163742063616e2063616c6c0000000000604082015260600190565b601f82111561088a57805f5260205f20601f840160051c810160208510156147d85750805b601f840160051c820191505b8181101561117a575f81556001016147e4565b6001600160401b0383111561480e5761480e613d44565b6148228361481c83546146a9565b836147b3565b5f601f841160018114614853575f851561483c5750838201355b5f19600387901b1c1916600186901b17835561117a565b5f83815260208120601f198716915b828110156148825786850135825560209485019460019092019101614862565b508682101561489e575f1960f88860031b161c19848701351681555b505060018560011b0183555050505050565b60208082526019908201527f4172726179206c656e677468206e6f74206d61746368696e6700000000000000604082015260600190565b60208082526017908201527f537461676520494420646f6573206e6f74206578697374000000000000000000604082015260600190565b808201808211156106af576106af6146e1565b60208082526025908201527f455243313135353a207472616e7366657220746f20746865207a65726f206164604082015264647265737360d81b606082015260800190565b6020808252602a908201527f455243313135353a20696e73756666696369656e742062616c616e636520666f60408201526939103a3930b739b332b960b11b606082015260800190565b604081525f6149d26040830185614065565b82810360208401526149e48185614065565b95945050505050565b6001600160a01b0386811682528516602082015260a0604082018190525f90614a1890830186614065565b8281036060840152614a2a8186614065565b90508281036080840152614a3e8185613a50565b98975050505050505050565b5f60208284031215614a5a575f80fd5b81516125ca81613a00565b5f60033d1115614a7b5760045f803e505f5160e01c5b90565b5f60443d1015614a8b5790565b6040516003193d81016004833e81513d6001600160401b038160248401118184111715614aba57505050505090565b8285019150815181811115614ad25750505050505090565b843d8701016020828501011115614aec5750505050505090565b614afb60208286010187613d58565b509095945050505050565b60208082526028908201527f455243313135353a204552433131353552656365697665722072656a656374656040820152676420746f6b656e7360c01b606082015260800190565b6001600160a01b03868116825285166020820152604081018490526060810183905260a0608082018190525f90614b8790830184613a50565b97965050505050505056fea2646970667358221220cce465584edbe331492191b6b8bd219e2daa604a49c717b54b48922b66c2bf7a64736f6c63430008160033
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.