ERC-721
Overview
Max Total Supply
0 PFP
Holders
1,126
Market
Volume (24H)
N/A
Min Price (24H)
N/A
Max Price (24H)
N/A
Other Info
Token Contract
Balance
1 PFPLoading...
Loading
Loading...
Loading
Loading...
Loading
# | Exchange | Pair | Price | 24H Volume | % Volume |
---|
Contract Name:
GenPFP
Compiler Version
v0.8.4+commit.c7e474f2
Optimization Enabled:
No 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/ERC721/ERC721.sol"; import "@openzeppelin/contracts/access/Ownable.sol"; import "@openzeppelin/contracts/utils/Counters.sol"; import "@openzeppelin/contracts/token/ERC1155/extensions/ERC1155Burnable.sol"; import "./WatcherMinter.sol"; contract GenPFP is ERC721, Ownable { using Counters for Counters.Counter; Counters.Counter private _tokenIdCounter; AdminMinter public adminMinter; WatcherMinter public watcherMinter; bool public active = true; uint256 public ZERO_S_ID = 5; uint256 public ZERO_ID = 6; mapping(uint256 => uint8) public NFT_TYPE; string public baseURI = "https://api.missingfrontier.com/pfp/"; bool public uriChanged = false; constructor(address _adminMinter, address _watcherMinter) ERC721("GenPFP", "PFP") { adminMinter = AdminMinter(_adminMinter); watcherMinter = WatcherMinter(_watcherMinter); } function toggleActive() external onlyOwner { active = !active; } function burnForMint(uint256 _id, uint256 _amount) external { require(active == true, "Minting is not active"); require(_id == ZERO_S_ID || _id == ZERO_ID, "Invalid id"); require( watcherMinter.isApprovedForAll(msg.sender, address(this)), "User is not authorized" ); require( watcherMinter.balanceOf(msg.sender, _id) >= _amount, "User does not own this many NFTs" ); uint256[] memory burnIds = new uint256[](1); burnIds[0] = _id; uint256[] memory burnAmounts = new uint256[](1); burnAmounts[0] = _amount; uint256[] memory mintIds; uint256[] memory mintAmounts; adminMinter.burnForMint( msg.sender, burnIds, burnAmounts, mintIds, mintAmounts ); for (uint256 i = 0; i < _amount; i++) { safeMint(msg.sender, _id == ZERO_ID); } } function safeMint(address to, bool isZero) internal { _tokenIdCounter.increment(); uint256 tokenId = _tokenIdCounter.current(); _safeMint(to, tokenId); if (isZero) { NFT_TYPE[tokenId] = 2; } else { NFT_TYPE[tokenId] = 1; } } function _baseURI() internal view virtual override returns (string memory) { return baseURI; } function updateURI(string memory _newURI) external onlyOwner { require(uriChanged == false, "URI has already been updated"); baseURI = _newURI; uriChanged = true; } } abstract contract AdminMinter { function mint( address _to, uint256 _id, uint256 _amount ) external virtual; function mintBatch( address _to, uint256[] memory _ids, uint256[] memory _amounts ) external virtual; function burnForMint( address _from, uint256[] memory _burnIds, uint256[] memory _burnAmounts, uint256[] memory _mintIds, uint256[] memory _mintAmounts ) external virtual; function setURI(uint256 _id, string memory _uri) external virtual; }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.6.0) (token/ERC721/ERC721.sol) pragma solidity ^0.8.0; import "./IERC721.sol"; import "./IERC721Receiver.sol"; import "./extensions/IERC721Metadata.sol"; import "../../utils/Address.sol"; import "../../utils/Context.sol"; import "../../utils/Strings.sol"; import "../../utils/introspection/ERC165.sol"; /** * @dev Implementation of https://eips.ethereum.org/EIPS/eip-721[ERC721] Non-Fungible Token Standard, including * the Metadata extension, but not including the Enumerable extension, which is available separately as * {ERC721Enumerable}. */ contract ERC721 is Context, ERC165, IERC721, IERC721Metadata { using Address for address; using Strings for uint256; // Token name string private _name; // Token symbol string private _symbol; // Mapping from token ID to owner address mapping(uint256 => address) private _owners; // Mapping owner address to token count mapping(address => uint256) private _balances; // Mapping from token ID to approved address mapping(uint256 => address) private _tokenApprovals; // Mapping from owner to operator approvals mapping(address => mapping(address => bool)) private _operatorApprovals; /** * @dev Initializes the contract by setting a `name` and a `symbol` to the token collection. */ constructor(string memory name_, string memory symbol_) { _name = name_; _symbol = symbol_; } /** * @dev See {IERC165-supportsInterface}. */ function supportsInterface(bytes4 interfaceId) public view virtual override(ERC165, IERC165) returns (bool) { return interfaceId == type(IERC721).interfaceId || interfaceId == type(IERC721Metadata).interfaceId || super.supportsInterface(interfaceId); } /** * @dev See {IERC721-balanceOf}. */ function balanceOf(address owner) public view virtual override returns (uint256) { require(owner != address(0), "ERC721: balance query for the zero address"); return _balances[owner]; } /** * @dev See {IERC721-ownerOf}. */ function ownerOf(uint256 tokenId) public view virtual override returns (address) { address owner = _owners[tokenId]; require(owner != address(0), "ERC721: owner query for nonexistent token"); return owner; } /** * @dev See {IERC721Metadata-name}. */ function name() public view virtual override returns (string memory) { return _name; } /** * @dev See {IERC721Metadata-symbol}. */ function symbol() public view virtual override returns (string memory) { return _symbol; } /** * @dev See {IERC721Metadata-tokenURI}. */ function tokenURI(uint256 tokenId) public view virtual override returns (string memory) { require(_exists(tokenId), "ERC721Metadata: URI query for nonexistent token"); string memory baseURI = _baseURI(); return bytes(baseURI).length > 0 ? string(abi.encodePacked(baseURI, tokenId.toString())) : ""; } /** * @dev Base URI for computing {tokenURI}. If set, the resulting URI for each * token will be the concatenation of the `baseURI` and the `tokenId`. Empty * by default, can be overridden in child contracts. */ function _baseURI() internal view virtual returns (string memory) { return ""; } /** * @dev See {IERC721-approve}. */ function approve(address to, uint256 tokenId) public virtual override { address owner = ERC721.ownerOf(tokenId); require(to != owner, "ERC721: approval to current owner"); require( _msgSender() == owner || isApprovedForAll(owner, _msgSender()), "ERC721: approve caller is not owner nor approved for all" ); _approve(to, tokenId); } /** * @dev See {IERC721-getApproved}. */ function getApproved(uint256 tokenId) public view virtual override returns (address) { require(_exists(tokenId), "ERC721: approved query for nonexistent token"); return _tokenApprovals[tokenId]; } /** * @dev See {IERC721-setApprovalForAll}. */ function setApprovalForAll(address operator, bool approved) public virtual override { _setApprovalForAll(_msgSender(), operator, approved); } /** * @dev See {IERC721-isApprovedForAll}. */ function isApprovedForAll(address owner, address operator) public view virtual override returns (bool) { return _operatorApprovals[owner][operator]; } /** * @dev See {IERC721-transferFrom}. */ function transferFrom( address from, address to, uint256 tokenId ) public virtual override { //solhint-disable-next-line max-line-length require(_isApprovedOrOwner(_msgSender(), tokenId), "ERC721: transfer caller is not owner nor approved"); _transfer(from, to, tokenId); } /** * @dev See {IERC721-safeTransferFrom}. */ function safeTransferFrom( address from, address to, uint256 tokenId ) public virtual override { safeTransferFrom(from, to, tokenId, ""); } /** * @dev See {IERC721-safeTransferFrom}. */ function safeTransferFrom( address from, address to, uint256 tokenId, bytes memory _data ) public virtual override { require(_isApprovedOrOwner(_msgSender(), tokenId), "ERC721: transfer caller is not owner nor approved"); _safeTransfer(from, to, tokenId, _data); } /** * @dev Safely transfers `tokenId` token from `from` to `to`, checking first that contract recipients * are aware of the ERC721 protocol to prevent tokens from being forever locked. * * `_data` is additional data, it has no specified format and it is sent in call to `to`. * * This internal function is equivalent to {safeTransferFrom}, and can be used to e.g. * implement alternative mechanisms to perform token transfer, such as signature-based. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must exist and be owned by `from`. * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */ function _safeTransfer( address from, address to, uint256 tokenId, bytes memory _data ) internal virtual { _transfer(from, to, tokenId); require(_checkOnERC721Received(from, to, tokenId, _data), "ERC721: transfer to non ERC721Receiver implementer"); } /** * @dev Returns whether `tokenId` exists. * * Tokens can be managed by their owner or approved accounts via {approve} or {setApprovalForAll}. * * Tokens start existing when they are minted (`_mint`), * and stop existing when they are burned (`_burn`). */ function _exists(uint256 tokenId) internal view virtual returns (bool) { return _owners[tokenId] != address(0); } /** * @dev Returns whether `spender` is allowed to manage `tokenId`. * * Requirements: * * - `tokenId` must exist. */ function _isApprovedOrOwner(address spender, uint256 tokenId) internal view virtual returns (bool) { require(_exists(tokenId), "ERC721: operator query for nonexistent token"); address owner = ERC721.ownerOf(tokenId); return (spender == owner || isApprovedForAll(owner, spender) || getApproved(tokenId) == spender); } /** * @dev Safely mints `tokenId` and transfers it to `to`. * * Requirements: * * - `tokenId` must not exist. * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */ function _safeMint(address to, uint256 tokenId) internal virtual { _safeMint(to, tokenId, ""); } /** * @dev Same as {xref-ERC721-_safeMint-address-uint256-}[`_safeMint`], with an additional `data` parameter which is * forwarded in {IERC721Receiver-onERC721Received} to contract recipients. */ function _safeMint( address to, uint256 tokenId, bytes memory _data ) internal virtual { _mint(to, tokenId); require( _checkOnERC721Received(address(0), to, tokenId, _data), "ERC721: transfer to non ERC721Receiver implementer" ); } /** * @dev Mints `tokenId` and transfers it to `to`. * * WARNING: Usage of this method is discouraged, use {_safeMint} whenever possible * * Requirements: * * - `tokenId` must not exist. * - `to` cannot be the zero address. * * Emits a {Transfer} event. */ function _mint(address to, uint256 tokenId) internal virtual { require(to != address(0), "ERC721: mint to the zero address"); require(!_exists(tokenId), "ERC721: token already minted"); _beforeTokenTransfer(address(0), to, tokenId); _balances[to] += 1; _owners[tokenId] = to; emit Transfer(address(0), to, tokenId); _afterTokenTransfer(address(0), to, tokenId); } /** * @dev Destroys `tokenId`. * The approval is cleared when the token is burned. * * Requirements: * * - `tokenId` must exist. * * Emits a {Transfer} event. */ function _burn(uint256 tokenId) internal virtual { address owner = ERC721.ownerOf(tokenId); _beforeTokenTransfer(owner, address(0), tokenId); // Clear approvals _approve(address(0), tokenId); _balances[owner] -= 1; delete _owners[tokenId]; emit Transfer(owner, address(0), tokenId); _afterTokenTransfer(owner, address(0), tokenId); } /** * @dev Transfers `tokenId` from `from` to `to`. * As opposed to {transferFrom}, this imposes no restrictions on msg.sender. * * Requirements: * * - `to` cannot be the zero address. * - `tokenId` token must be owned by `from`. * * Emits a {Transfer} event. */ function _transfer( address from, address to, uint256 tokenId ) internal virtual { require(ERC721.ownerOf(tokenId) == from, "ERC721: transfer from incorrect owner"); require(to != address(0), "ERC721: transfer to the zero address"); _beforeTokenTransfer(from, to, tokenId); // Clear approvals from the previous owner _approve(address(0), tokenId); _balances[from] -= 1; _balances[to] += 1; _owners[tokenId] = to; emit Transfer(from, to, tokenId); _afterTokenTransfer(from, to, tokenId); } /** * @dev Approve `to` to operate on `tokenId` * * Emits a {Approval} event. */ function _approve(address to, uint256 tokenId) internal virtual { _tokenApprovals[tokenId] = to; emit Approval(ERC721.ownerOf(tokenId), to, tokenId); } /** * @dev Approve `operator` to operate on all of `owner` tokens * * Emits a {ApprovalForAll} event. */ function _setApprovalForAll( address owner, address operator, bool approved ) internal virtual { require(owner != operator, "ERC721: approve to caller"); _operatorApprovals[owner][operator] = approved; emit ApprovalForAll(owner, operator, approved); } /** * @dev Internal function to invoke {IERC721Receiver-onERC721Received} on a target address. * The call is not executed if the target address is not a contract. * * @param from address representing the previous owner of the given token ID * @param to target address that will receive the tokens * @param tokenId uint256 ID of the token to be transferred * @param _data bytes optional data to send along with the call * @return bool whether the call correctly returned the expected magic value */ function _checkOnERC721Received( address from, address to, uint256 tokenId, bytes memory _data ) private returns (bool) { if (to.isContract()) { try IERC721Receiver(to).onERC721Received(_msgSender(), from, tokenId, _data) returns (bytes4 retval) { return retval == IERC721Receiver.onERC721Received.selector; } catch (bytes memory reason) { if (reason.length == 0) { revert("ERC721: transfer to non ERC721Receiver implementer"); } else { assembly { revert(add(32, reason), mload(reason)) } } } } else { return true; } } /** * @dev Hook that is called before any token transfer. This includes minting * and burning. * * Calling conditions: * * - When `from` and `to` are both non-zero, ``from``'s `tokenId` will be * transferred to `to`. * - When `from` is zero, `tokenId` will be minted for `to`. * - When `to` is zero, ``from``'s `tokenId` will be burned. * - `from` and `to` are never both zero. * * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks]. */ function _beforeTokenTransfer( address from, address to, uint256 tokenId ) internal virtual {} /** * @dev Hook that is called after any transfer of tokens. This includes * minting and burning. * * Calling conditions: * * - when `from` and `to` are both non-zero. * - `from` and `to` are never both zero. * * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks]. */ function _afterTokenTransfer( address from, address to, uint256 tokenId ) internal virtual {} }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (access/Ownable.sol) pragma solidity ^0.8.0; import "../utils/Context.sol"; /** * @dev Contract module which provides a basic access control mechanism, where * there is an account (an owner) that can be granted exclusive access to * specific functions. * * By default, the owner account will be the one that deploys the contract. This * can later be changed with {transferOwnership}. * * This module is used through inheritance. It will make available the modifier * `onlyOwner`, which can be applied to your functions to restrict their use to * the owner. */ abstract contract Ownable is Context { address private _owner; event OwnershipTransferred(address indexed previousOwner, address indexed newOwner); /** * @dev Initializes the contract setting the deployer as the initial owner. */ constructor() { _transferOwnership(_msgSender()); } /** * @dev Returns the address of the current owner. */ function owner() public view virtual returns (address) { return _owner; } /** * @dev Throws if called by any account other than the owner. */ modifier onlyOwner() { require(owner() == _msgSender(), "Ownable: caller is not the owner"); _; } /** * @dev Leaves the contract without owner. It will not be possible to call * `onlyOwner` functions anymore. Can only be called by the current owner. * * NOTE: Renouncing ownership will leave the contract without an owner, * thereby removing any functionality that is only available to the owner. */ function renounceOwnership() public virtual onlyOwner { _transferOwnership(address(0)); } /** * @dev Transfers ownership of the contract to a new account (`newOwner`). * Can only be called by the current owner. */ function transferOwnership(address newOwner) public virtual onlyOwner { require(newOwner != address(0), "Ownable: new owner is the zero address"); _transferOwnership(newOwner); } /** * @dev Transfers ownership of the contract to a new account (`newOwner`). * Internal function without access restriction. */ function _transferOwnership(address newOwner) internal virtual { address oldOwner = _owner; _owner = newOwner; emit OwnershipTransferred(oldOwner, newOwner); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/Counters.sol) pragma solidity ^0.8.0; /** * @title Counters * @author Matt Condon (@shrugs) * @dev Provides counters that can only be incremented, decremented or reset. This can be used e.g. to track the number * of elements in a mapping, issuing ERC721 ids, or counting request ids. * * Include with `using Counters for Counters.Counter;` */ library Counters { struct Counter { // This variable should never be directly accessed by users of the library: interactions must be restricted to // the library's function. As of Solidity v0.5.2, this cannot be enforced, though there is a proposal to add // this feature: see https://github.com/ethereum/solidity/issues/4637 uint256 _value; // default: 0 } function current(Counter storage counter) internal view returns (uint256) { return counter._value; } function increment(Counter storage counter) internal { unchecked { counter._value += 1; } } function decrement(Counter storage counter) internal { uint256 value = counter._value; require(value > 0, "Counter: decrement overflow"); unchecked { counter._value = value - 1; } } function reset(Counter storage counter) internal { counter._value = 0; } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (token/ERC1155/extensions/ERC1155Burnable.sol) pragma solidity ^0.8.0; import "../ERC1155.sol"; /** * @dev Extension of {ERC1155} that allows token holders to destroy both their * own tokens and those that they have been approved to use. * * _Available since v3.1._ */ abstract contract ERC1155Burnable is ERC1155 { function burn( address account, uint256 id, uint256 value ) public virtual { require( account == _msgSender() || isApprovedForAll(account, _msgSender()), "ERC1155: caller is not owner nor approved" ); _burn(account, id, value); } function burnBatch( address account, uint256[] memory ids, uint256[] memory values ) public virtual { require( account == _msgSender() || isApprovedForAll(account, _msgSender()), "ERC1155: caller is not owner nor approved" ); _burnBatch(account, ids, values); } }
// SPDX-License-Identifier: MIT pragma solidity >=0.4.22 <0.9.0; import "@openzeppelin/contracts/token/ERC1155/ERC1155.sol"; contract WatcherMinter is ERC1155 { string public name; string public symbol; // string public contractURI = "QmdqrVASguJRJHAzbfys3xdfbhLCTyKogGNyQiDQeNSgss"; bytes32 public OWNER_ROLE = keccak256("OWNER_ROLE"); bytes32 public ADMIN_ROLE = keccak256("ADMIN_ROLE"); mapping(uint256 => string) public tokenURI; mapping(address => bool) public isAdmin; address public owner; constructor() ERC1155("") { // name = "Frontier"; // symbol = "FRONTIER"; owner = msg.sender; } modifier adminOnly() { require(msg.sender == owner || isAdmin[msg.sender] == true); _; } modifier ownerOnly() { require(msg.sender == owner); _; } function addAdmin(address _address) external ownerOnly { isAdmin[_address] = true; } function mint( address _to, uint256 _id, uint256 _amount ) external adminOnly { _mint(_to, _id, _amount, ""); } function mintBatch( address _to, uint256[] memory _ids, uint256[] memory _amounts ) external adminOnly { _mintBatch(_to, _ids, _amounts, ""); } function burn(uint256 _id, uint256 _amount) external { _burn(msg.sender, _id, _amount); } function burnBatch(uint256[] memory _ids, uint256[] memory _amounts) external { _burnBatch(msg.sender, _ids, _amounts); } function burnForMint( address _from, uint256[] memory _burnIds, uint256[] memory _burnAmounts, uint256[] memory _mintIds, uint256[] memory _mintAmounts ) external adminOnly { _burnBatch(_from, _burnIds, _burnAmounts); _mintBatch(_from, _mintIds, _mintAmounts, ""); } function setURI(uint256 _id, string memory _uri) external adminOnly { require(bytes(tokenURI[_id]).length == 0); tokenURI[_id] = _uri; emit URI(_uri, _id); } function uri(uint256 _id) public view override returns (string memory) { return tokenURI[_id]; } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.6.0) (token/ERC721/IERC721.sol) pragma solidity ^0.8.0; import "../../utils/introspection/IERC165.sol"; /** * @dev Required interface of an ERC721 compliant contract. */ interface IERC721 is IERC165 { /** * @dev Emitted when `tokenId` token is transferred from `from` to `to`. */ event Transfer(address indexed from, address indexed to, uint256 indexed tokenId); /** * @dev Emitted when `owner` enables `approved` to manage the `tokenId` token. */ event Approval(address indexed owner, address indexed approved, uint256 indexed tokenId); /** * @dev Emitted when `owner` enables or disables (`approved`) `operator` to manage all of its assets. */ event ApprovalForAll(address indexed owner, address indexed operator, bool approved); /** * @dev Returns the number of tokens in ``owner``'s account. */ function balanceOf(address owner) external view returns (uint256 balance); /** * @dev Returns the owner of the `tokenId` token. * * Requirements: * * - `tokenId` must exist. */ function ownerOf(uint256 tokenId) external view returns (address owner); /** * @dev Safely transfers `tokenId` token from `from` to `to`. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must exist and be owned by `from`. * - If the caller is not `from`, it must be approved to move this token by either {approve} or {setApprovalForAll}. * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */ function safeTransferFrom( address from, address to, uint256 tokenId, bytes calldata data ) external; /** * @dev Safely transfers `tokenId` token from `from` to `to`, checking first that contract recipients * are aware of the ERC721 protocol to prevent tokens from being forever locked. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must exist and be owned by `from`. * - If the caller is not `from`, it must be have been allowed to move this token by either {approve} or {setApprovalForAll}. * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */ function safeTransferFrom( address from, address to, uint256 tokenId ) external; /** * @dev Transfers `tokenId` token from `from` to `to`. * * WARNING: Usage of this method is discouraged, use {safeTransferFrom} whenever possible. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must be owned by `from`. * - If the caller is not `from`, it must be approved to move this token by either {approve} or {setApprovalForAll}. * * Emits a {Transfer} event. */ function transferFrom( address from, address to, uint256 tokenId ) external; /** * @dev Gives permission to `to` to transfer `tokenId` token to another account. * The approval is cleared when the token is transferred. * * Only a single account can be approved at a time, so approving the zero address clears previous approvals. * * Requirements: * * - The caller must own the token or be an approved operator. * - `tokenId` must exist. * * Emits an {Approval} event. */ function approve(address to, uint256 tokenId) external; /** * @dev Approve or remove `operator` as an operator for the caller. * Operators can call {transferFrom} or {safeTransferFrom} for any token owned by the caller. * * Requirements: * * - The `operator` cannot be the caller. * * Emits an {ApprovalForAll} event. */ function setApprovalForAll(address operator, bool _approved) external; /** * @dev Returns the account approved for `tokenId` token. * * Requirements: * * - `tokenId` must exist. */ function getApproved(uint256 tokenId) external view returns (address operator); /** * @dev Returns if the `operator` is allowed to manage all of the assets of `owner`. * * See {setApprovalForAll} */ function isApprovedForAll(address owner, address operator) external view returns (bool); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.6.0) (token/ERC721/IERC721Receiver.sol) pragma solidity ^0.8.0; /** * @title ERC721 token receiver interface * @dev Interface for any contract that wants to support safeTransfers * from ERC721 asset contracts. */ interface IERC721Receiver { /** * @dev Whenever an {IERC721} `tokenId` token is transferred to this contract via {IERC721-safeTransferFrom} * by `operator` from `from`, this function is called. * * It must return its Solidity selector to confirm the token transfer. * If any other value is returned or the interface is not implemented by the recipient, the transfer will be reverted. * * The selector can be obtained in Solidity with `IERC721Receiver.onERC721Received.selector`. */ function onERC721Received( address operator, address from, uint256 tokenId, bytes calldata data ) external returns (bytes4); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (token/ERC721/extensions/IERC721Metadata.sol) pragma solidity ^0.8.0; import "../IERC721.sol"; /** * @title ERC-721 Non-Fungible Token Standard, optional metadata extension * @dev See https://eips.ethereum.org/EIPS/eip-721 */ interface IERC721Metadata is IERC721 { /** * @dev Returns the token collection name. */ function name() external view returns (string memory); /** * @dev Returns the token collection symbol. */ function symbol() external view returns (string memory); /** * @dev Returns the Uniform Resource Identifier (URI) for `tokenId` token. */ function tokenURI(uint256 tokenId) external view returns (string memory); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.5.0) (utils/Address.sol) pragma solidity ^0.8.1; /** * @dev Collection of functions related to the address type */ library Address { /** * @dev Returns true if `account` is a contract. * * [IMPORTANT] * ==== * It is unsafe to assume that an address for which this function returns * false is an externally-owned account (EOA) and not a contract. * * Among others, `isContract` will return false for the following * types of addresses: * * - an externally-owned account * - a contract in construction * - an address where a contract will be created * - an address where a contract lived, but was destroyed * ==== * * [IMPORTANT] * ==== * You shouldn't rely on `isContract` to protect against flash loan attacks! * * Preventing calls from contracts is highly discouraged. It breaks composability, breaks support for smart wallets * like Gnosis Safe, and does not provide security since it can be circumvented by calling from a contract * constructor. * ==== */ function isContract(address account) internal view returns (bool) { // This method relies on extcodesize/address.code.length, which returns 0 // for contracts in construction, since the code is only stored at the end // of the constructor execution. return account.code.length > 0; } /** * @dev Replacement for Solidity's `transfer`: sends `amount` wei to * `recipient`, forwarding all available gas and reverting on errors. * * https://eips.ethereum.org/EIPS/eip-1884[EIP1884] increases the gas cost * of certain opcodes, possibly making contracts go over the 2300 gas limit * imposed by `transfer`, making them unable to receive funds via * `transfer`. {sendValue} removes this limitation. * * https://diligence.consensys.net/posts/2019/09/stop-using-soliditys-transfer-now/[Learn more]. * * IMPORTANT: because control is transferred to `recipient`, care must be * taken to not create reentrancy vulnerabilities. Consider using * {ReentrancyGuard} or the * https://solidity.readthedocs.io/en/v0.5.11/security-considerations.html#use-the-checks-effects-interactions-pattern[checks-effects-interactions pattern]. */ function sendValue(address payable recipient, uint256 amount) internal { require(address(this).balance >= amount, "Address: insufficient balance"); (bool success, ) = recipient.call{value: amount}(""); require(success, "Address: unable to send value, recipient may have reverted"); } /** * @dev Performs a Solidity function call using a low level `call`. A * plain `call` is an unsafe replacement for a function call: use this * function instead. * * If `target` reverts with a revert reason, it is bubbled up by this * function (like regular Solidity function calls). * * Returns the raw returned data. To convert to the expected return value, * use https://solidity.readthedocs.io/en/latest/units-and-global-variables.html?highlight=abi.decode#abi-encoding-and-decoding-functions[`abi.decode`]. * * Requirements: * * - `target` must be a contract. * - calling `target` with `data` must not revert. * * _Available since v3.1._ */ function functionCall(address target, bytes memory data) internal returns (bytes memory) { return functionCall(target, data, "Address: low-level call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], but with * `errorMessage` as a fallback revert reason when `target` reverts. * * _Available since v3.1._ */ function functionCall( address target, bytes memory data, string memory errorMessage ) internal returns (bytes memory) { return functionCallWithValue(target, data, 0, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but also transferring `value` wei to `target`. * * Requirements: * * - the calling contract must have an ETH balance of at least `value`. * - the called Solidity function must be `payable`. * * _Available since v3.1._ */ function functionCallWithValue( address target, bytes memory data, uint256 value ) internal returns (bytes memory) { return functionCallWithValue(target, data, value, "Address: low-level call with value failed"); } /** * @dev Same as {xref-Address-functionCallWithValue-address-bytes-uint256-}[`functionCallWithValue`], but * with `errorMessage` as a fallback revert reason when `target` reverts. * * _Available since v3.1._ */ function functionCallWithValue( address target, bytes memory data, uint256 value, string memory errorMessage ) internal returns (bytes memory) { require(address(this).balance >= value, "Address: insufficient balance for call"); require(isContract(target), "Address: call to non-contract"); (bool success, bytes memory returndata) = target.call{value: value}(data); return verifyCallResult(success, returndata, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but performing a static call. * * _Available since v3.3._ */ function functionStaticCall(address target, bytes memory data) internal view returns (bytes memory) { return functionStaticCall(target, data, "Address: low-level static call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`], * but performing a static call. * * _Available since v3.3._ */ function functionStaticCall( address target, bytes memory data, string memory errorMessage ) internal view returns (bytes memory) { require(isContract(target), "Address: static call to non-contract"); (bool success, bytes memory returndata) = target.staticcall(data); return verifyCallResult(success, returndata, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but performing a delegate call. * * _Available since v3.4._ */ function functionDelegateCall(address target, bytes memory data) internal returns (bytes memory) { return functionDelegateCall(target, data, "Address: low-level delegate call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`], * but performing a delegate call. * * _Available since v3.4._ */ function functionDelegateCall( address target, bytes memory data, string memory errorMessage ) internal returns (bytes memory) { require(isContract(target), "Address: delegate call to non-contract"); (bool success, bytes memory returndata) = target.delegatecall(data); return verifyCallResult(success, returndata, errorMessage); } /** * @dev Tool to verifies that a low level call was successful, and revert if it wasn't, either by bubbling the * revert reason using the provided one. * * _Available since v4.3._ */ function verifyCallResult( bool success, bytes memory returndata, string memory errorMessage ) internal pure returns (bytes memory) { if (success) { return returndata; } else { // Look for revert reason and bubble it up if present if (returndata.length > 0) { // The easiest way to bubble the revert reason is using memory via assembly assembly { let returndata_size := mload(returndata) revert(add(32, returndata), returndata_size) } } else { revert(errorMessage); } } } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/Context.sol) pragma solidity ^0.8.0; /** * @dev Provides information about the current execution context, including the * sender of the transaction and its data. While these are generally available * via msg.sender and msg.data, they should not be accessed in such a direct * manner, since when dealing with meta-transactions the account sending and * paying for execution may not be the actual sender (as far as an application * is concerned). * * This contract is only required for intermediate, library-like contracts. */ abstract contract Context { function _msgSender() internal view virtual returns (address) { return msg.sender; } function _msgData() internal view virtual returns (bytes calldata) { return msg.data; } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/Strings.sol) pragma solidity ^0.8.0; /** * @dev String operations. */ library Strings { bytes16 private constant _HEX_SYMBOLS = "0123456789abcdef"; /** * @dev Converts a `uint256` to its ASCII `string` decimal representation. */ function toString(uint256 value) internal pure returns (string memory) { // Inspired by OraclizeAPI's implementation - MIT licence // https://github.com/oraclize/ethereum-api/blob/b42146b063c7d6ee1358846c198246239e9360e8/oraclizeAPI_0.4.25.sol if (value == 0) { return "0"; } uint256 temp = value; uint256 digits; while (temp != 0) { digits++; temp /= 10; } bytes memory buffer = new bytes(digits); while (value != 0) { digits -= 1; buffer[digits] = bytes1(uint8(48 + uint256(value % 10))); value /= 10; } return string(buffer); } /** * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation. */ function toHexString(uint256 value) internal pure returns (string memory) { if (value == 0) { return "0x00"; } uint256 temp = value; uint256 length = 0; while (temp != 0) { length++; temp >>= 8; } return toHexString(value, length); } /** * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation with fixed length. */ function toHexString(uint256 value, uint256 length) internal pure returns (string memory) { bytes memory buffer = new bytes(2 * length + 2); buffer[0] = "0"; buffer[1] = "x"; for (uint256 i = 2 * length + 1; i > 1; --i) { buffer[i] = _HEX_SYMBOLS[value & 0xf]; value >>= 4; } require(value == 0, "Strings: hex length insufficient"); return string(buffer); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/introspection/ERC165.sol) pragma solidity ^0.8.0; import "./IERC165.sol"; /** * @dev Implementation of the {IERC165} interface. * * Contracts that want to implement ERC165 should inherit from this contract and override {supportsInterface} to check * for the additional interface id that will be supported. For example: * * ```solidity * function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) { * return interfaceId == type(MyInterface).interfaceId || super.supportsInterface(interfaceId); * } * ``` * * Alternatively, {ERC165Storage} provides an easier to use but more expensive implementation. */ abstract contract ERC165 is IERC165 { /** * @dev See {IERC165-supportsInterface}. */ function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) { return interfaceId == type(IERC165).interfaceId; } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/introspection/IERC165.sol) pragma solidity ^0.8.0; /** * @dev Interface of the ERC165 standard, as defined in the * https://eips.ethereum.org/EIPS/eip-165[EIP]. * * Implementers can declare support of contract interfaces, which can then be * queried by others ({ERC165Checker}). * * For an implementation, see {ERC165}. */ interface IERC165 { /** * @dev Returns true if this contract implements the interface defined by * `interfaceId`. See the corresponding * https://eips.ethereum.org/EIPS/eip-165#how-interfaces-are-identified[EIP section] * to learn more about how these ids are created. * * This function call must use less than 30 000 gas. */ function supportsInterface(bytes4 interfaceId) external view returns (bool); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.6.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: balance query for the zero address"); return _balances[id][account]; } /** * @dev See {IERC1155-balanceOfBatch}. * * Requirements: * * - `accounts` and `ids` must have the same length. */ function balanceOfBatch(address[] memory accounts, uint256[] memory ids) public view virtual override returns (uint256[] memory) { require(accounts.length == ids.length, "ERC1155: accounts and ids length mismatch"); uint256[] memory batchBalances = new uint256[](accounts.length); for (uint256 i = 0; i < accounts.length; ++i) { batchBalances[i] = balanceOf(accounts[i], ids[i]); } return batchBalances; } /** * @dev See {IERC1155-setApprovalForAll}. */ function setApprovalForAll(address operator, bool approved) public virtual override { _setApprovalForAll(_msgSender(), operator, approved); } /** * @dev See {IERC1155-isApprovedForAll}. */ function isApprovedForAll(address account, address operator) public view virtual override returns (bool) { return _operatorApprovals[account][operator]; } /** * @dev See {IERC1155-safeTransferFrom}. */ function safeTransferFrom( address from, address to, uint256 id, uint256 amount, bytes memory data ) public virtual override { require( from == _msgSender() || isApprovedForAll(from, _msgSender()), "ERC1155: caller is not owner nor approved" ); _safeTransferFrom(from, to, id, amount, data); } /** * @dev See {IERC1155-safeBatchTransferFrom}. */ function safeBatchTransferFrom( address from, address to, uint256[] memory ids, uint256[] memory amounts, bytes memory data ) public virtual override { require( from == _msgSender() || isApprovedForAll(from, _msgSender()), "ERC1155: transfer caller is not owner nor approved" ); _safeBatchTransferFrom(from, to, ids, amounts, data); } /** * @dev Transfers `amount` tokens of token type `id` from `from` to `to`. * * Emits a {TransferSingle} event. * * Requirements: * * - `to` cannot be the zero address. * - `from` must have a balance of tokens of type `id` of at least `amount`. * - If `to` refers to a smart contract, it must implement {IERC1155Receiver-onERC1155Received} and return the * acceptance magic value. */ function _safeTransferFrom( address from, address to, uint256 id, uint256 amount, bytes memory data ) internal virtual { require(to != address(0), "ERC1155: transfer to the zero address"); address operator = _msgSender(); 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}. * * 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` * * 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}. * * 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 a {ApprovalForAll} event. */ function _setApprovalForAll( address owner, address operator, bool approved ) internal virtual { require(owner != operator, "ERC1155: setting approval status for self"); _operatorApprovals[owner][operator] = approved; emit ApprovalForAll(owner, operator, approved); } /** * @dev Hook that is called before any token transfer. This includes minting * and burning, as well as batched variants. * * The same hook is called on both single and batched variants. For single * transfers, the length of the `id` and `amount` arrays will be 1. * * Calling conditions (for each `id` and `amount` pair): * * - When `from` and `to` are both non-zero, `amount` of ``from``'s tokens * of token type `id` will be transferred to `to`. * - When `from` is zero, `amount` tokens of token type `id` will be minted * for `to`. * - when `to` is zero, `amount` of ``from``'s tokens of token type `id` * will be burned. * - `from` and `to` are never both zero. * - `ids` and `amounts` have the same, non-zero length. * * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks]. */ function _beforeTokenTransfer( address operator, address from, address to, uint256[] memory ids, uint256[] memory amounts, bytes memory data ) internal virtual {} /** * @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 (token/ERC1155/IERC1155.sol) pragma solidity ^0.8.0; import "../../utils/introspection/IERC165.sol"; /** * @dev Required interface of an ERC1155 compliant contract, as defined in the * https://eips.ethereum.org/EIPS/eip-1155[EIP]. * * _Available since v3.1._ */ interface IERC1155 is IERC165 { /** * @dev Emitted when `value` tokens of token type `id` are transferred from `from` to `to` by `operator`. */ event TransferSingle(address indexed operator, address indexed from, address indexed to, uint256 id, uint256 value); /** * @dev Equivalent to multiple {TransferSingle} events, where `operator`, `from` and `to` are the same for all * transfers. */ event TransferBatch( address indexed operator, address indexed from, address indexed to, uint256[] ids, uint256[] values ); /** * @dev Emitted when `account` grants or revokes permission to `operator` to transfer their tokens, according to * `approved`. */ event ApprovalForAll(address indexed account, address indexed operator, bool approved); /** * @dev Emitted when the URI for token type `id` changes to `value`, if it is a non-programmatic URI. * * If an {URI} event was emitted for `id`, the standard * https://eips.ethereum.org/EIPS/eip-1155#metadata-extensions[guarantees] that `value` will equal the value * returned by {IERC1155MetadataURI-uri}. */ event URI(string value, uint256 indexed id); /** * @dev Returns the amount of tokens of token type `id` owned by `account`. * * Requirements: * * - `account` cannot be the zero address. */ function balanceOf(address account, uint256 id) external view returns (uint256); /** * @dev xref:ROOT:erc1155.adoc#batch-operations[Batched] version of {balanceOf}. * * Requirements: * * - `accounts` and `ids` must have the same length. */ function balanceOfBatch(address[] calldata accounts, uint256[] calldata ids) external view returns (uint256[] memory); /** * @dev Grants or revokes permission to `operator` to transfer the caller's tokens, according to `approved`, * * Emits an {ApprovalForAll} event. * * Requirements: * * - `operator` cannot be the caller. */ function setApprovalForAll(address operator, bool approved) external; /** * @dev Returns true if `operator` is approved to transfer ``account``'s tokens. * * See {setApprovalForAll}. */ function isApprovedForAll(address account, address operator) external view returns (bool); /** * @dev Transfers `amount` tokens of token type `id` from `from` to `to`. * * Emits a {TransferSingle} event. * * Requirements: * * - `to` cannot be the zero address. * - If the caller is not `from`, it must be have been approved to spend ``from``'s tokens via {setApprovalForAll}. * - `from` must have a balance of tokens of type `id` of at least `amount`. * - If `to` refers to a smart contract, it must implement {IERC1155Receiver-onERC1155Received} and return the * acceptance magic value. */ function safeTransferFrom( address from, address to, uint256 id, uint256 amount, bytes calldata data ) external; /** * @dev xref:ROOT:erc1155.adoc#batch-operations[Batched] version of {safeTransferFrom}. * * Emits a {TransferBatch} event. * * Requirements: * * - `ids` and `amounts` must have the same length. * - If `to` refers to a smart contract, it must implement {IERC1155Receiver-onERC1155BatchReceived} and return the * acceptance magic value. */ function safeBatchTransferFrom( address from, address to, uint256[] calldata ids, uint256[] calldata amounts, bytes calldata data ) external; }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.5.0) (token/ERC1155/IERC1155Receiver.sol) pragma solidity ^0.8.0; import "../../utils/introspection/IERC165.sol"; /** * @dev _Available since v3.1._ */ interface IERC1155Receiver is IERC165 { /** * @dev Handles the receipt of a single ERC1155 token type. This function is * called at the end of a `safeTransferFrom` after the balance has been updated. * * NOTE: To accept the transfer, this must return * `bytes4(keccak256("onERC1155Received(address,address,uint256,uint256,bytes)"))` * (i.e. 0xf23a6e61, or its own function selector). * * @param operator The address which initiated the transfer (i.e. msg.sender) * @param from The address which previously owned the token * @param id The ID of the token being transferred * @param value The amount of tokens being transferred * @param data Additional data with no specified format * @return `bytes4(keccak256("onERC1155Received(address,address,uint256,uint256,bytes)"))` if transfer is allowed */ function onERC1155Received( address operator, address from, uint256 id, uint256 value, bytes calldata data ) external returns (bytes4); /** * @dev Handles the receipt of a multiple ERC1155 token types. This function * is called at the end of a `safeBatchTransferFrom` after the balances have * been updated. * * NOTE: To accept the transfer(s), this must return * `bytes4(keccak256("onERC1155BatchReceived(address,address,uint256[],uint256[],bytes)"))` * (i.e. 0xbc197c81, or its own function selector). * * @param operator The address which initiated the batch transfer (i.e. msg.sender) * @param from The address which previously owned the token * @param ids An array containing ids of each token being transferred (order and length must match values array) * @param values An array containing amounts of each token being transferred (order and length must match ids array) * @param data Additional data with no specified format * @return `bytes4(keccak256("onERC1155BatchReceived(address,address,uint256[],uint256[],bytes)"))` if transfer is allowed */ function onERC1155BatchReceived( address operator, address from, uint256[] calldata ids, uint256[] calldata values, bytes calldata data ) external returns (bytes4); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (token/ERC1155/extensions/IERC1155MetadataURI.sol) pragma solidity ^0.8.0; import "../IERC1155.sol"; /** * @dev Interface of the optional ERC1155MetadataExtension interface, as defined * in the https://eips.ethereum.org/EIPS/eip-1155#metadata-extensions[EIP]. * * _Available since v3.1._ */ interface IERC1155MetadataURI is IERC1155 { /** * @dev Returns the URI for token type `id`. * * If the `\{id\}` substring is present in the URI, it must be replaced by * clients with the actual token type ID. */ function uri(uint256 id) external view returns (string memory); }
{ "optimizer": { "enabled": false, "runs": 200 }, "outputSelection": { "*": { "*": [ "evm.bytecode", "evm.deployedBytecode", "devdoc", "userdoc", "metadata", "abi" ] } }, "libraries": {} }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"inputs":[{"internalType":"address","name":"_adminMinter","type":"address"},{"internalType":"address","name":"_watcherMinter","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"approved","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","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":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Transfer","type":"event"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"NFT_TYPE","outputs":[{"internalType":"uint8","name":"","type":"uint8"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"ZERO_ID","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"ZERO_S_ID","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"active","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"adminMinter","outputs":[{"internalType":"contract AdminMinter","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"approve","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"baseURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_id","type":"uint256"},{"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"burnForMint","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getApproved","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"operator","type":"address"}],"name":"isApprovedForAll","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"ownerOf","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","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":"bytes4","name":"interfaceId","type":"bytes4"}],"name":"supportsInterface","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"toggleActive","outputs":[],"stateMutability":"nonpayable","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":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"transferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"_newURI","type":"string"}],"name":"updateURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"uriChanged","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"watcherMinter","outputs":[{"internalType":"contract WatcherMinter","name":"","type":"address"}],"stateMutability":"view","type":"function"}]
Contract Creation Code
60806040526001600960146101000a81548160ff0219169083151502179055506005600a556006600b55604051806060016040528060248152602001620040ba60249139600d90805190602001906200005a929190620002c1565b506000600e60006101000a81548160ff0219169083151502179055503480156200008357600080fd5b50604051620040de380380620040de8339818101604052810190620000a9919062000388565b6040518060400160405280600681526020017f47656e50465000000000000000000000000000000000000000000000000000008152506040518060400160405280600381526020017f504650000000000000000000000000000000000000000000000000000000000081525081600090805190602001906200012d929190620002c1565b50806001908051906020019062000146929190620002c1565b505050620001696200015d620001f360201b60201c565b620001fb60201b60201c565b81600860006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555080600960006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050506200047c565b600033905090565b6000600660009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905081600660006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b828054620002cf90620003fd565b90600052602060002090601f016020900481019282620002f357600085556200033f565b82601f106200030e57805160ff19168380011785556200033f565b828001600101855582156200033f579182015b828111156200033e57825182559160200191906001019062000321565b5b5090506200034e919062000352565b5090565b5b808211156200036d57600081600090555060010162000353565b5090565b600081519050620003828162000462565b92915050565b600080604083850312156200039c57600080fd5b6000620003ac8582860162000371565b9250506020620003bf8582860162000371565b9150509250929050565b6000620003d682620003dd565b9050919050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b600060028204905060018216806200041657607f821691505b602082108114156200042d576200042c62000433565b5b50919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b6200046d81620003c9565b81146200047957600080fd5b50565b613c2e806200048c6000396000f3fe608060405234801561001057600080fd5b50600436106101a85760003560e01c8063715018a6116100f9578063c1a95dca11610097578063e985e9c511610071578063e985e9c514610495578063ed7bec99146104c5578063f0328738146104e3578063f2fde38b14610501576101a8565b8063c1a95dca1461042b578063c30f4a5a14610449578063c87b56dd14610465576101a8565b8063a22cb465116100d3578063a22cb465146103b7578063a2bfa60c146103d3578063b88d4fde146103f1578063bd63694f1461040d576101a8565b8063715018a6146103715780638da5cb5b1461037b57806395d89b4114610399576101a8565b806323b872dd1161016657806342842e0e1161014057806342842e0e146102d75780636352211e146102f35780636c0360eb1461032357806370a0823114610341576101a8565b806323b872dd1461028157806329c68dc11461029d5780632e96a0dd146102a7576101a8565b80625a6c83146101ad57806301ffc9a7146101c957806302fb0c5e146101f957806306fdde0314610217578063081812fc14610235578063095ea7b314610265575b600080fd5b6101c760048036038101906101c291906128d2565b61051d565b005b6101e360048036038101906101de91906127ed565b6109e0565b6040516101f09190612ebb565b60405180910390f35b610201610ac2565b60405161020e9190612ebb565b60405180910390f35b61021f610ad5565b60405161022c9190612f0c565b60405180910390f35b61024f600480360381019061024a9190612880565b610b67565b60405161025c9190612d93565b60405180910390f35b61027f600480360381019061027a9190612788565b610bec565b005b61029b60048036038101906102969190612682565b610d04565b005b6102a5610d64565b005b6102c160048036038101906102bc9190612880565b610e0c565b6040516102ce91906131e9565b60405180910390f35b6102f160048036038101906102ec9190612682565b610e2c565b005b61030d60048036038101906103089190612880565b610e4c565b60405161031a9190612d93565b60405180910390f35b61032b610efe565b6040516103389190612f0c565b60405180910390f35b61035b6004803603810190610356919061261d565b610f8c565b60405161036891906131ce565b60405180910390f35b610379611044565b005b6103836110cc565b6040516103909190612d93565b60405180910390f35b6103a16110f6565b6040516103ae9190612f0c565b60405180910390f35b6103d160048036038101906103cc919061274c565b611188565b005b6103db61119e565b6040516103e89190612ebb565b60405180910390f35b61040b600480360381019061040691906126d1565b6111b1565b005b610415611213565b6040516104229190612ef1565b60405180910390f35b610433611239565b60405161044091906131ce565b60405180910390f35b610463600480360381019061045e919061283f565b61123f565b005b61047f600480360381019061047a9190612880565b611346565b60405161048c9190612f0c565b60405180910390f35b6104af60048036038101906104aa9190612646565b6113ed565b6040516104bc9190612ebb565b60405180910390f35b6104cd611481565b6040516104da9190612ed6565b60405180910390f35b6104eb6114a7565b6040516104f891906131ce565b60405180910390f35b61051b6004803603810190610516919061261d565b6114ad565b005b60011515600960149054906101000a900460ff16151514610573576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161056a9061312e565b60405180910390fd5b600a548214806105845750600b5482145b6105c3576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016105ba90612fee565b60405180910390fd5b600960009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663e985e9c533306040518363ffffffff1660e01b8152600401610620929190612dae565b60206040518083038186803b15801561063857600080fd5b505afa15801561064c573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061067091906127c4565b6106af576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016106a69061318e565b60405180910390fd5b80600960009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1662fdd58e33856040518363ffffffff1660e01b815260040161070c929190612e92565b60206040518083038186803b15801561072457600080fd5b505afa158015610738573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061075c91906128a9565b101561079d576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016107949061302e565b60405180910390fd5b6000600167ffffffffffffffff8111156107e0577f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b60405190808252806020026020018201604052801561080e5781602001602082028036833780820191505090505b509050828160008151811061084c577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b6020026020010181815250506000600167ffffffffffffffff81111561089b577f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b6040519080825280602002602001820160405280156108c95781602001602082028036833780820191505090505b5090508281600081518110610907577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b602002602001018181525050606080600860009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663510f410433868686866040518663ffffffff1660e01b8152600401610979959493929190612e23565b600060405180830381600087803b15801561099357600080fd5b505af11580156109a7573d6000803e3d6000fd5b5050505060005b858110156109d7576109c433600b5489146115a5565b80806109cf90613530565b9150506109ae565b50505050505050565b60007f80ac58cd000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19161480610aab57507f5b5e139f000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b80610abb5750610aba82611632565b5b9050919050565b600960149054906101000a900460ff1681565b606060008054610ae4906134cd565b80601f0160208091040260200160405190810160405280929190818152602001828054610b10906134cd565b8015610b5d5780601f10610b3257610100808354040283529160200191610b5d565b820191906000526020600020905b815481529060010190602001808311610b4057829003601f168201915b5050505050905090565b6000610b728261169c565b610bb1576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610ba8906130ee565b60405180910390fd5b6004600083815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050919050565b6000610bf782610e4c565b90508073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff161415610c68576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610c5f9061316e565b60405180910390fd5b8073ffffffffffffffffffffffffffffffffffffffff16610c87611708565b73ffffffffffffffffffffffffffffffffffffffff161480610cb65750610cb581610cb0611708565b6113ed565b5b610cf5576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610cec9061304e565b60405180910390fd5b610cff8383611710565b505050565b610d15610d0f611708565b826117c9565b610d54576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610d4b906131ae565b60405180910390fd5b610d5f8383836118a7565b505050565b610d6c611708565b73ffffffffffffffffffffffffffffffffffffffff16610d8a6110cc565b73ffffffffffffffffffffffffffffffffffffffff1614610de0576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610dd79061310e565b60405180910390fd5b600960149054906101000a900460ff1615600960146101000a81548160ff021916908315150217905550565b600c6020528060005260406000206000915054906101000a900460ff1681565b610e47838383604051806020016040528060008152506111b1565b505050565b6000806002600084815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff161415610ef5576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610eec9061308e565b60405180910390fd5b80915050919050565b600d8054610f0b906134cd565b80601f0160208091040260200160405190810160405280929190818152602001828054610f37906134cd565b8015610f845780601f10610f5957610100808354040283529160200191610f84565b820191906000526020600020905b815481529060010190602001808311610f6757829003601f168201915b505050505081565b60008073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161415610ffd576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610ff49061306e565b60405180910390fd5b600360008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020549050919050565b61104c611708565b73ffffffffffffffffffffffffffffffffffffffff1661106a6110cc565b73ffffffffffffffffffffffffffffffffffffffff16146110c0576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016110b79061310e565b60405180910390fd5b6110ca6000611b0e565b565b6000600660009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b606060018054611105906134cd565b80601f0160208091040260200160405190810160405280929190818152602001828054611131906134cd565b801561117e5780601f106111535761010080835404028352916020019161117e565b820191906000526020600020905b81548152906001019060200180831161116157829003601f168201915b5050505050905090565b61119a611193611708565b8383611bd4565b5050565b600e60009054906101000a900460ff1681565b6111c26111bc611708565b836117c9565b611201576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016111f8906131ae565b60405180910390fd5b61120d84848484611d41565b50505050565b600960009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b600b5481565b611247611708565b73ffffffffffffffffffffffffffffffffffffffff166112656110cc565b73ffffffffffffffffffffffffffffffffffffffff16146112bb576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016112b29061310e565b60405180910390fd5b60001515600e60009054906101000a900460ff16151514611311576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611308906130ae565b60405180910390fd5b80600d9080519060200190611327929190612417565b506001600e60006101000a81548160ff02191690831515021790555050565b60606113518261169c565b611390576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016113879061314e565b60405180910390fd5b600061139a611d9d565b905060008151116113ba57604051806020016040528060008152506113e5565b806113c484611e2f565b6040516020016113d5929190612d6f565b6040516020818303038152906040525b915050919050565b6000600560008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16905092915050565b600860009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b600a5481565b6114b5611708565b73ffffffffffffffffffffffffffffffffffffffff166114d36110cc565b73ffffffffffffffffffffffffffffffffffffffff1614611529576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016115209061310e565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff161415611599576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161159090612f4e565b60405180910390fd5b6115a281611b0e565b50565b6115af6007611fdc565b60006115bb6007611ff2565b90506115c78382612000565b81156115ff576002600c600083815260200190815260200160002060006101000a81548160ff021916908360ff16021790555061162d565b6001600c600083815260200190815260200160002060006101000a81548160ff021916908360ff1602179055505b505050565b60007f01ffc9a7000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916149050919050565b60008073ffffffffffffffffffffffffffffffffffffffff166002600084815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1614159050919050565b600033905090565b816004600083815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550808273ffffffffffffffffffffffffffffffffffffffff1661178383610e4c565b73ffffffffffffffffffffffffffffffffffffffff167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b60006117d48261169c565b611813576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161180a9061300e565b60405180910390fd5b600061181e83610e4c565b90508073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff161480611860575061185f81856113ed565b5b8061189e57508373ffffffffffffffffffffffffffffffffffffffff1661188684610b67565b73ffffffffffffffffffffffffffffffffffffffff16145b91505092915050565b8273ffffffffffffffffffffffffffffffffffffffff166118c782610e4c565b73ffffffffffffffffffffffffffffffffffffffff161461191d576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161191490612f6e565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff16141561198d576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161198490612fae565b60405180910390fd5b61199883838361201e565b6119a3600082611710565b6001600360008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008282546119f3919061338e565b925050819055506001600360008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000828254611a4a9190613307565b92505081905550816002600083815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550808273ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a4611b09838383612023565b505050565b6000600660009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905081600660006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b8173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff161415611c43576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611c3a90612fce565b60405180910390fd5b80600560008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055508173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff167f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c3183604051611d349190612ebb565b60405180910390a3505050565b611d4c8484846118a7565b611d5884848484612028565b611d97576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611d8e90612f2e565b60405180910390fd5b50505050565b6060600d8054611dac906134cd565b80601f0160208091040260200160405190810160405280929190818152602001828054611dd8906134cd565b8015611e255780601f10611dfa57610100808354040283529160200191611e25565b820191906000526020600020905b815481529060010190602001808311611e0857829003601f168201915b5050505050905090565b60606000821415611e77576040518060400160405280600181526020017f30000000000000000000000000000000000000000000000000000000000000008152509050611fd7565b600082905060005b60008214611ea9578080611e9290613530565b915050600a82611ea2919061335d565b9150611e7f565b60008167ffffffffffffffff811115611eeb577f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b6040519080825280601f01601f191660200182016040528015611f1d5781602001600182028036833780820191505090505b5090505b60008514611fd057600182611f36919061338e565b9150600a85611f459190613579565b6030611f519190613307565b60f81b818381518110611f8d577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a905350600a85611fc9919061335d565b9450611f21565b8093505050505b919050565b6001816000016000828254019250508190555050565b600081600001549050919050565b61201a8282604051806020016040528060008152506121bf565b5050565b505050565b505050565b60006120498473ffffffffffffffffffffffffffffffffffffffff1661221a565b156121b2578373ffffffffffffffffffffffffffffffffffffffff1663150b7a02612072611708565b8786866040518563ffffffff1660e01b81526004016120949493929190612dd7565b602060405180830381600087803b1580156120ae57600080fd5b505af19250505080156120df57506040513d601f19601f820116820180604052508101906120dc9190612816565b60015b612162573d806000811461210f576040519150601f19603f3d011682016040523d82523d6000602084013e612114565b606091505b5060008151141561215a576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161215190612f2e565b60405180910390fd5b805181602001fd5b63150b7a0260e01b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916817bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916149150506121b7565b600190505b949350505050565b6121c9838361223d565b6121d66000848484612028565b612215576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161220c90612f2e565b60405180910390fd5b505050565b6000808273ffffffffffffffffffffffffffffffffffffffff163b119050919050565b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1614156122ad576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016122a4906130ce565b60405180910390fd5b6122b68161169c565b156122f6576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016122ed90612f8e565b60405180910390fd5b6123026000838361201e565b6001600360008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008282546123529190613307565b92505081905550816002600083815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550808273ffffffffffffffffffffffffffffffffffffffff16600073ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a461241360008383612023565b5050565b828054612423906134cd565b90600052602060002090601f016020900481019282612445576000855561248c565b82601f1061245e57805160ff191683800117855561248c565b8280016001018555821561248c579182015b8281111561248b578251825591602001919060010190612470565b5b509050612499919061249d565b5090565b5b808211156124b657600081600090555060010161249e565b5090565b60006124cd6124c884613229565b613204565b9050828152602081018484840111156124e557600080fd5b6124f084828561348b565b509392505050565b600061250b6125068461325a565b613204565b90508281526020810184848401111561252357600080fd5b61252e84828561348b565b509392505050565b60008135905061254581613b9c565b92915050565b60008135905061255a81613bb3565b92915050565b60008151905061256f81613bb3565b92915050565b60008135905061258481613bca565b92915050565b60008151905061259981613bca565b92915050565b600082601f8301126125b057600080fd5b81356125c08482602086016124ba565b91505092915050565b600082601f8301126125da57600080fd5b81356125ea8482602086016124f8565b91505092915050565b60008135905061260281613be1565b92915050565b60008151905061261781613be1565b92915050565b60006020828403121561262f57600080fd5b600061263d84828501612536565b91505092915050565b6000806040838503121561265957600080fd5b600061266785828601612536565b925050602061267885828601612536565b9150509250929050565b60008060006060848603121561269757600080fd5b60006126a586828701612536565b93505060206126b686828701612536565b92505060406126c7868287016125f3565b9150509250925092565b600080600080608085870312156126e757600080fd5b60006126f587828801612536565b945050602061270687828801612536565b9350506040612717878288016125f3565b925050606085013567ffffffffffffffff81111561273457600080fd5b6127408782880161259f565b91505092959194509250565b6000806040838503121561275f57600080fd5b600061276d85828601612536565b925050602061277e8582860161254b565b9150509250929050565b6000806040838503121561279b57600080fd5b60006127a985828601612536565b92505060206127ba858286016125f3565b9150509250929050565b6000602082840312156127d657600080fd5b60006127e484828501612560565b91505092915050565b6000602082840312156127ff57600080fd5b600061280d84828501612575565b91505092915050565b60006020828403121561282857600080fd5b60006128368482850161258a565b91505092915050565b60006020828403121561285157600080fd5b600082013567ffffffffffffffff81111561286b57600080fd5b612877848285016125c9565b91505092915050565b60006020828403121561289257600080fd5b60006128a0848285016125f3565b91505092915050565b6000602082840312156128bb57600080fd5b60006128c984828501612608565b91505092915050565b600080604083850312156128e557600080fd5b60006128f3858286016125f3565b9250506020612904858286016125f3565b9150509250929050565b600061291a8383612d42565b60208301905092915050565b61292f816133c2565b82525050565b60006129408261329b565b61294a81856132c9565b93506129558361328b565b8060005b8381101561298657815161296d888261290e565b9750612978836132bc565b925050600181019050612959565b5085935050505092915050565b61299c816133d4565b82525050565b60006129ad826132a6565b6129b781856132da565b93506129c781856020860161349a565b6129d081613666565b840191505092915050565b6129e481613443565b82525050565b6129f381613467565b82525050565b6000612a04826132b1565b612a0e81856132eb565b9350612a1e81856020860161349a565b612a2781613666565b840191505092915050565b6000612a3d826132b1565b612a4781856132fc565b9350612a5781856020860161349a565b80840191505092915050565b6000612a706032836132eb565b9150612a7b82613677565b604082019050919050565b6000612a936026836132eb565b9150612a9e826136c6565b604082019050919050565b6000612ab66025836132eb565b9150612ac182613715565b604082019050919050565b6000612ad9601c836132eb565b9150612ae482613764565b602082019050919050565b6000612afc6024836132eb565b9150612b078261378d565b604082019050919050565b6000612b1f6019836132eb565b9150612b2a826137dc565b602082019050919050565b6000612b42600a836132eb565b9150612b4d82613805565b602082019050919050565b6000612b65602c836132eb565b9150612b708261382e565b604082019050919050565b6000612b886020836132eb565b9150612b938261387d565b602082019050919050565b6000612bab6038836132eb565b9150612bb6826138a6565b604082019050919050565b6000612bce602a836132eb565b9150612bd9826138f5565b604082019050919050565b6000612bf16029836132eb565b9150612bfc82613944565b604082019050919050565b6000612c14601c836132eb565b9150612c1f82613993565b602082019050919050565b6000612c376020836132eb565b9150612c42826139bc565b602082019050919050565b6000612c5a602c836132eb565b9150612c65826139e5565b604082019050919050565b6000612c7d6020836132eb565b9150612c8882613a34565b602082019050919050565b6000612ca06015836132eb565b9150612cab82613a5d565b602082019050919050565b6000612cc3602f836132eb565b9150612cce82613a86565b604082019050919050565b6000612ce66021836132eb565b9150612cf182613ad5565b604082019050919050565b6000612d096016836132eb565b9150612d1482613b24565b602082019050919050565b6000612d2c6031836132eb565b9150612d3782613b4d565b604082019050919050565b612d4b8161342c565b82525050565b612d5a8161342c565b82525050565b612d6981613436565b82525050565b6000612d7b8285612a32565b9150612d878284612a32565b91508190509392505050565b6000602082019050612da86000830184612926565b92915050565b6000604082019050612dc36000830185612926565b612dd06020830184612926565b9392505050565b6000608082019050612dec6000830187612926565b612df96020830186612926565b612e066040830185612d51565b8181036060830152612e1881846129a2565b905095945050505050565b600060a082019050612e386000830188612926565b8181036020830152612e4a8187612935565b90508181036040830152612e5e8186612935565b90508181036060830152612e728185612935565b90508181036080830152612e868184612935565b90509695505050505050565b6000604082019050612ea76000830185612926565b612eb46020830184612d51565b9392505050565b6000602082019050612ed06000830184612993565b92915050565b6000602082019050612eeb60008301846129db565b92915050565b6000602082019050612f0660008301846129ea565b92915050565b60006020820190508181036000830152612f2681846129f9565b905092915050565b60006020820190508181036000830152612f4781612a63565b9050919050565b60006020820190508181036000830152612f6781612a86565b9050919050565b60006020820190508181036000830152612f8781612aa9565b9050919050565b60006020820190508181036000830152612fa781612acc565b9050919050565b60006020820190508181036000830152612fc781612aef565b9050919050565b60006020820190508181036000830152612fe781612b12565b9050919050565b6000602082019050818103600083015261300781612b35565b9050919050565b6000602082019050818103600083015261302781612b58565b9050919050565b6000602082019050818103600083015261304781612b7b565b9050919050565b6000602082019050818103600083015261306781612b9e565b9050919050565b6000602082019050818103600083015261308781612bc1565b9050919050565b600060208201905081810360008301526130a781612be4565b9050919050565b600060208201905081810360008301526130c781612c07565b9050919050565b600060208201905081810360008301526130e781612c2a565b9050919050565b6000602082019050818103600083015261310781612c4d565b9050919050565b6000602082019050818103600083015261312781612c70565b9050919050565b6000602082019050818103600083015261314781612c93565b9050919050565b6000602082019050818103600083015261316781612cb6565b9050919050565b6000602082019050818103600083015261318781612cd9565b9050919050565b600060208201905081810360008301526131a781612cfc565b9050919050565b600060208201905081810360008301526131c781612d1f565b9050919050565b60006020820190506131e36000830184612d51565b92915050565b60006020820190506131fe6000830184612d60565b92915050565b600061320e61321f565b905061321a82826134ff565b919050565b6000604051905090565b600067ffffffffffffffff82111561324457613243613637565b5b61324d82613666565b9050602081019050919050565b600067ffffffffffffffff82111561327557613274613637565b5b61327e82613666565b9050602081019050919050565b6000819050602082019050919050565b600081519050919050565b600081519050919050565b600081519050919050565b6000602082019050919050565b600082825260208201905092915050565b600082825260208201905092915050565b600082825260208201905092915050565b600081905092915050565b60006133128261342c565b915061331d8361342c565b9250827fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff03821115613352576133516135aa565b5b828201905092915050565b60006133688261342c565b91506133738361342c565b925082613383576133826135d9565b5b828204905092915050565b60006133998261342c565b91506133a48361342c565b9250828210156133b7576133b66135aa565b5b828203905092915050565b60006133cd8261340c565b9050919050565b60008115159050919050565b60007fffffffff0000000000000000000000000000000000000000000000000000000082169050919050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000819050919050565b600060ff82169050919050565b600061344e82613455565b9050919050565b60006134608261340c565b9050919050565b600061347282613479565b9050919050565b60006134848261340c565b9050919050565b82818337600083830152505050565b60005b838110156134b857808201518184015260208101905061349d565b838111156134c7576000848401525b50505050565b600060028204905060018216806134e557607f821691505b602082108114156134f9576134f8613608565b5b50919050565b61350882613666565b810181811067ffffffffffffffff8211171561352757613526613637565b5b80604052505050565b600061353b8261342c565b91507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff82141561356e5761356d6135aa565b5b600182019050919050565b60006135848261342c565b915061358f8361342c565b92508261359f5761359e6135d9565b5b828206905092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b6000601f19601f8301169050919050565b7f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560008201527f63656976657220696d706c656d656e7465720000000000000000000000000000602082015250565b7f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160008201527f6464726573730000000000000000000000000000000000000000000000000000602082015250565b7f4552433732313a207472616e736665722066726f6d20696e636f72726563742060008201527f6f776e6572000000000000000000000000000000000000000000000000000000602082015250565b7f4552433732313a20746f6b656e20616c7265616479206d696e74656400000000600082015250565b7f4552433732313a207472616e7366657220746f20746865207a65726f2061646460008201527f7265737300000000000000000000000000000000000000000000000000000000602082015250565b7f4552433732313a20617070726f766520746f2063616c6c657200000000000000600082015250565b7f496e76616c696420696400000000000000000000000000000000000000000000600082015250565b7f4552433732313a206f70657261746f7220717565727920666f72206e6f6e657860008201527f697374656e7420746f6b656e0000000000000000000000000000000000000000602082015250565b7f5573657220646f6573206e6f74206f776e2074686973206d616e79204e465473600082015250565b7f4552433732313a20617070726f76652063616c6c6572206973206e6f74206f7760008201527f6e6572206e6f7220617070726f76656420666f7220616c6c0000000000000000602082015250565b7f4552433732313a2062616c616e636520717565727920666f7220746865207a6560008201527f726f206164647265737300000000000000000000000000000000000000000000602082015250565b7f4552433732313a206f776e657220717565727920666f72206e6f6e657869737460008201527f656e7420746f6b656e0000000000000000000000000000000000000000000000602082015250565b7f5552492068617320616c7265616479206265656e207570646174656400000000600082015250565b7f4552433732313a206d696e7420746f20746865207a65726f2061646472657373600082015250565b7f4552433732313a20617070726f76656420717565727920666f72206e6f6e657860008201527f697374656e7420746f6b656e0000000000000000000000000000000000000000602082015250565b7f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572600082015250565b7f4d696e74696e67206973206e6f74206163746976650000000000000000000000600082015250565b7f4552433732314d657461646174613a2055524920717565727920666f72206e6f60008201527f6e6578697374656e7420746f6b656e0000000000000000000000000000000000602082015250565b7f4552433732313a20617070726f76616c20746f2063757272656e74206f776e6560008201527f7200000000000000000000000000000000000000000000000000000000000000602082015250565b7f55736572206973206e6f7420617574686f72697a656400000000000000000000600082015250565b7f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f60008201527f776e6572206e6f7220617070726f766564000000000000000000000000000000602082015250565b613ba5816133c2565b8114613bb057600080fd5b50565b613bbc816133d4565b8114613bc757600080fd5b50565b613bd3816133e0565b8114613bde57600080fd5b50565b613bea8161342c565b8114613bf557600080fd5b5056fea2646970667358221220238c876a248734082296b67d3ce362665b7e72e96e1131f8573ddbcde9d5aa3364736f6c6343000804003368747470733a2f2f6170692e6d697373696e6766726f6e746965722e636f6d2f7066702f0000000000000000000000003db74f87841623144be5cef82d877668b6d51180000000000000000000000000236672ed575e1e479b8e101aeeb920f32361f6f9
Deployed Bytecode
0x608060405234801561001057600080fd5b50600436106101a85760003560e01c8063715018a6116100f9578063c1a95dca11610097578063e985e9c511610071578063e985e9c514610495578063ed7bec99146104c5578063f0328738146104e3578063f2fde38b14610501576101a8565b8063c1a95dca1461042b578063c30f4a5a14610449578063c87b56dd14610465576101a8565b8063a22cb465116100d3578063a22cb465146103b7578063a2bfa60c146103d3578063b88d4fde146103f1578063bd63694f1461040d576101a8565b8063715018a6146103715780638da5cb5b1461037b57806395d89b4114610399576101a8565b806323b872dd1161016657806342842e0e1161014057806342842e0e146102d75780636352211e146102f35780636c0360eb1461032357806370a0823114610341576101a8565b806323b872dd1461028157806329c68dc11461029d5780632e96a0dd146102a7576101a8565b80625a6c83146101ad57806301ffc9a7146101c957806302fb0c5e146101f957806306fdde0314610217578063081812fc14610235578063095ea7b314610265575b600080fd5b6101c760048036038101906101c291906128d2565b61051d565b005b6101e360048036038101906101de91906127ed565b6109e0565b6040516101f09190612ebb565b60405180910390f35b610201610ac2565b60405161020e9190612ebb565b60405180910390f35b61021f610ad5565b60405161022c9190612f0c565b60405180910390f35b61024f600480360381019061024a9190612880565b610b67565b60405161025c9190612d93565b60405180910390f35b61027f600480360381019061027a9190612788565b610bec565b005b61029b60048036038101906102969190612682565b610d04565b005b6102a5610d64565b005b6102c160048036038101906102bc9190612880565b610e0c565b6040516102ce91906131e9565b60405180910390f35b6102f160048036038101906102ec9190612682565b610e2c565b005b61030d60048036038101906103089190612880565b610e4c565b60405161031a9190612d93565b60405180910390f35b61032b610efe565b6040516103389190612f0c565b60405180910390f35b61035b6004803603810190610356919061261d565b610f8c565b60405161036891906131ce565b60405180910390f35b610379611044565b005b6103836110cc565b6040516103909190612d93565b60405180910390f35b6103a16110f6565b6040516103ae9190612f0c565b60405180910390f35b6103d160048036038101906103cc919061274c565b611188565b005b6103db61119e565b6040516103e89190612ebb565b60405180910390f35b61040b600480360381019061040691906126d1565b6111b1565b005b610415611213565b6040516104229190612ef1565b60405180910390f35b610433611239565b60405161044091906131ce565b60405180910390f35b610463600480360381019061045e919061283f565b61123f565b005b61047f600480360381019061047a9190612880565b611346565b60405161048c9190612f0c565b60405180910390f35b6104af60048036038101906104aa9190612646565b6113ed565b6040516104bc9190612ebb565b60405180910390f35b6104cd611481565b6040516104da9190612ed6565b60405180910390f35b6104eb6114a7565b6040516104f891906131ce565b60405180910390f35b61051b6004803603810190610516919061261d565b6114ad565b005b60011515600960149054906101000a900460ff16151514610573576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161056a9061312e565b60405180910390fd5b600a548214806105845750600b5482145b6105c3576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016105ba90612fee565b60405180910390fd5b600960009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663e985e9c533306040518363ffffffff1660e01b8152600401610620929190612dae565b60206040518083038186803b15801561063857600080fd5b505afa15801561064c573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061067091906127c4565b6106af576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016106a69061318e565b60405180910390fd5b80600960009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1662fdd58e33856040518363ffffffff1660e01b815260040161070c929190612e92565b60206040518083038186803b15801561072457600080fd5b505afa158015610738573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061075c91906128a9565b101561079d576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016107949061302e565b60405180910390fd5b6000600167ffffffffffffffff8111156107e0577f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b60405190808252806020026020018201604052801561080e5781602001602082028036833780820191505090505b509050828160008151811061084c577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b6020026020010181815250506000600167ffffffffffffffff81111561089b577f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b6040519080825280602002602001820160405280156108c95781602001602082028036833780820191505090505b5090508281600081518110610907577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b602002602001018181525050606080600860009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663510f410433868686866040518663ffffffff1660e01b8152600401610979959493929190612e23565b600060405180830381600087803b15801561099357600080fd5b505af11580156109a7573d6000803e3d6000fd5b5050505060005b858110156109d7576109c433600b5489146115a5565b80806109cf90613530565b9150506109ae565b50505050505050565b60007f80ac58cd000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19161480610aab57507f5b5e139f000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b80610abb5750610aba82611632565b5b9050919050565b600960149054906101000a900460ff1681565b606060008054610ae4906134cd565b80601f0160208091040260200160405190810160405280929190818152602001828054610b10906134cd565b8015610b5d5780601f10610b3257610100808354040283529160200191610b5d565b820191906000526020600020905b815481529060010190602001808311610b4057829003601f168201915b5050505050905090565b6000610b728261169c565b610bb1576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610ba8906130ee565b60405180910390fd5b6004600083815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050919050565b6000610bf782610e4c565b90508073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff161415610c68576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610c5f9061316e565b60405180910390fd5b8073ffffffffffffffffffffffffffffffffffffffff16610c87611708565b73ffffffffffffffffffffffffffffffffffffffff161480610cb65750610cb581610cb0611708565b6113ed565b5b610cf5576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610cec9061304e565b60405180910390fd5b610cff8383611710565b505050565b610d15610d0f611708565b826117c9565b610d54576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610d4b906131ae565b60405180910390fd5b610d5f8383836118a7565b505050565b610d6c611708565b73ffffffffffffffffffffffffffffffffffffffff16610d8a6110cc565b73ffffffffffffffffffffffffffffffffffffffff1614610de0576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610dd79061310e565b60405180910390fd5b600960149054906101000a900460ff1615600960146101000a81548160ff021916908315150217905550565b600c6020528060005260406000206000915054906101000a900460ff1681565b610e47838383604051806020016040528060008152506111b1565b505050565b6000806002600084815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff161415610ef5576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610eec9061308e565b60405180910390fd5b80915050919050565b600d8054610f0b906134cd565b80601f0160208091040260200160405190810160405280929190818152602001828054610f37906134cd565b8015610f845780601f10610f5957610100808354040283529160200191610f84565b820191906000526020600020905b815481529060010190602001808311610f6757829003601f168201915b505050505081565b60008073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161415610ffd576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610ff49061306e565b60405180910390fd5b600360008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020549050919050565b61104c611708565b73ffffffffffffffffffffffffffffffffffffffff1661106a6110cc565b73ffffffffffffffffffffffffffffffffffffffff16146110c0576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016110b79061310e565b60405180910390fd5b6110ca6000611b0e565b565b6000600660009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b606060018054611105906134cd565b80601f0160208091040260200160405190810160405280929190818152602001828054611131906134cd565b801561117e5780601f106111535761010080835404028352916020019161117e565b820191906000526020600020905b81548152906001019060200180831161116157829003601f168201915b5050505050905090565b61119a611193611708565b8383611bd4565b5050565b600e60009054906101000a900460ff1681565b6111c26111bc611708565b836117c9565b611201576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016111f8906131ae565b60405180910390fd5b61120d84848484611d41565b50505050565b600960009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b600b5481565b611247611708565b73ffffffffffffffffffffffffffffffffffffffff166112656110cc565b73ffffffffffffffffffffffffffffffffffffffff16146112bb576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016112b29061310e565b60405180910390fd5b60001515600e60009054906101000a900460ff16151514611311576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611308906130ae565b60405180910390fd5b80600d9080519060200190611327929190612417565b506001600e60006101000a81548160ff02191690831515021790555050565b60606113518261169c565b611390576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016113879061314e565b60405180910390fd5b600061139a611d9d565b905060008151116113ba57604051806020016040528060008152506113e5565b806113c484611e2f565b6040516020016113d5929190612d6f565b6040516020818303038152906040525b915050919050565b6000600560008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16905092915050565b600860009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b600a5481565b6114b5611708565b73ffffffffffffffffffffffffffffffffffffffff166114d36110cc565b73ffffffffffffffffffffffffffffffffffffffff1614611529576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016115209061310e565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff161415611599576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161159090612f4e565b60405180910390fd5b6115a281611b0e565b50565b6115af6007611fdc565b60006115bb6007611ff2565b90506115c78382612000565b81156115ff576002600c600083815260200190815260200160002060006101000a81548160ff021916908360ff16021790555061162d565b6001600c600083815260200190815260200160002060006101000a81548160ff021916908360ff1602179055505b505050565b60007f01ffc9a7000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916149050919050565b60008073ffffffffffffffffffffffffffffffffffffffff166002600084815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1614159050919050565b600033905090565b816004600083815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550808273ffffffffffffffffffffffffffffffffffffffff1661178383610e4c565b73ffffffffffffffffffffffffffffffffffffffff167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b60006117d48261169c565b611813576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161180a9061300e565b60405180910390fd5b600061181e83610e4c565b90508073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff161480611860575061185f81856113ed565b5b8061189e57508373ffffffffffffffffffffffffffffffffffffffff1661188684610b67565b73ffffffffffffffffffffffffffffffffffffffff16145b91505092915050565b8273ffffffffffffffffffffffffffffffffffffffff166118c782610e4c565b73ffffffffffffffffffffffffffffffffffffffff161461191d576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161191490612f6e565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff16141561198d576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161198490612fae565b60405180910390fd5b61199883838361201e565b6119a3600082611710565b6001600360008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008282546119f3919061338e565b925050819055506001600360008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000828254611a4a9190613307565b92505081905550816002600083815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550808273ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a4611b09838383612023565b505050565b6000600660009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905081600660006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b8173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff161415611c43576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611c3a90612fce565b60405180910390fd5b80600560008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055508173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff167f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c3183604051611d349190612ebb565b60405180910390a3505050565b611d4c8484846118a7565b611d5884848484612028565b611d97576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611d8e90612f2e565b60405180910390fd5b50505050565b6060600d8054611dac906134cd565b80601f0160208091040260200160405190810160405280929190818152602001828054611dd8906134cd565b8015611e255780601f10611dfa57610100808354040283529160200191611e25565b820191906000526020600020905b815481529060010190602001808311611e0857829003601f168201915b5050505050905090565b60606000821415611e77576040518060400160405280600181526020017f30000000000000000000000000000000000000000000000000000000000000008152509050611fd7565b600082905060005b60008214611ea9578080611e9290613530565b915050600a82611ea2919061335d565b9150611e7f565b60008167ffffffffffffffff811115611eeb577f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b6040519080825280601f01601f191660200182016040528015611f1d5781602001600182028036833780820191505090505b5090505b60008514611fd057600182611f36919061338e565b9150600a85611f459190613579565b6030611f519190613307565b60f81b818381518110611f8d577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a905350600a85611fc9919061335d565b9450611f21565b8093505050505b919050565b6001816000016000828254019250508190555050565b600081600001549050919050565b61201a8282604051806020016040528060008152506121bf565b5050565b505050565b505050565b60006120498473ffffffffffffffffffffffffffffffffffffffff1661221a565b156121b2578373ffffffffffffffffffffffffffffffffffffffff1663150b7a02612072611708565b8786866040518563ffffffff1660e01b81526004016120949493929190612dd7565b602060405180830381600087803b1580156120ae57600080fd5b505af19250505080156120df57506040513d601f19601f820116820180604052508101906120dc9190612816565b60015b612162573d806000811461210f576040519150601f19603f3d011682016040523d82523d6000602084013e612114565b606091505b5060008151141561215a576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161215190612f2e565b60405180910390fd5b805181602001fd5b63150b7a0260e01b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916817bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916149150506121b7565b600190505b949350505050565b6121c9838361223d565b6121d66000848484612028565b612215576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161220c90612f2e565b60405180910390fd5b505050565b6000808273ffffffffffffffffffffffffffffffffffffffff163b119050919050565b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1614156122ad576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016122a4906130ce565b60405180910390fd5b6122b68161169c565b156122f6576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016122ed90612f8e565b60405180910390fd5b6123026000838361201e565b6001600360008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008282546123529190613307565b92505081905550816002600083815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550808273ffffffffffffffffffffffffffffffffffffffff16600073ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a461241360008383612023565b5050565b828054612423906134cd565b90600052602060002090601f016020900481019282612445576000855561248c565b82601f1061245e57805160ff191683800117855561248c565b8280016001018555821561248c579182015b8281111561248b578251825591602001919060010190612470565b5b509050612499919061249d565b5090565b5b808211156124b657600081600090555060010161249e565b5090565b60006124cd6124c884613229565b613204565b9050828152602081018484840111156124e557600080fd5b6124f084828561348b565b509392505050565b600061250b6125068461325a565b613204565b90508281526020810184848401111561252357600080fd5b61252e84828561348b565b509392505050565b60008135905061254581613b9c565b92915050565b60008135905061255a81613bb3565b92915050565b60008151905061256f81613bb3565b92915050565b60008135905061258481613bca565b92915050565b60008151905061259981613bca565b92915050565b600082601f8301126125b057600080fd5b81356125c08482602086016124ba565b91505092915050565b600082601f8301126125da57600080fd5b81356125ea8482602086016124f8565b91505092915050565b60008135905061260281613be1565b92915050565b60008151905061261781613be1565b92915050565b60006020828403121561262f57600080fd5b600061263d84828501612536565b91505092915050565b6000806040838503121561265957600080fd5b600061266785828601612536565b925050602061267885828601612536565b9150509250929050565b60008060006060848603121561269757600080fd5b60006126a586828701612536565b93505060206126b686828701612536565b92505060406126c7868287016125f3565b9150509250925092565b600080600080608085870312156126e757600080fd5b60006126f587828801612536565b945050602061270687828801612536565b9350506040612717878288016125f3565b925050606085013567ffffffffffffffff81111561273457600080fd5b6127408782880161259f565b91505092959194509250565b6000806040838503121561275f57600080fd5b600061276d85828601612536565b925050602061277e8582860161254b565b9150509250929050565b6000806040838503121561279b57600080fd5b60006127a985828601612536565b92505060206127ba858286016125f3565b9150509250929050565b6000602082840312156127d657600080fd5b60006127e484828501612560565b91505092915050565b6000602082840312156127ff57600080fd5b600061280d84828501612575565b91505092915050565b60006020828403121561282857600080fd5b60006128368482850161258a565b91505092915050565b60006020828403121561285157600080fd5b600082013567ffffffffffffffff81111561286b57600080fd5b612877848285016125c9565b91505092915050565b60006020828403121561289257600080fd5b60006128a0848285016125f3565b91505092915050565b6000602082840312156128bb57600080fd5b60006128c984828501612608565b91505092915050565b600080604083850312156128e557600080fd5b60006128f3858286016125f3565b9250506020612904858286016125f3565b9150509250929050565b600061291a8383612d42565b60208301905092915050565b61292f816133c2565b82525050565b60006129408261329b565b61294a81856132c9565b93506129558361328b565b8060005b8381101561298657815161296d888261290e565b9750612978836132bc565b925050600181019050612959565b5085935050505092915050565b61299c816133d4565b82525050565b60006129ad826132a6565b6129b781856132da565b93506129c781856020860161349a565b6129d081613666565b840191505092915050565b6129e481613443565b82525050565b6129f381613467565b82525050565b6000612a04826132b1565b612a0e81856132eb565b9350612a1e81856020860161349a565b612a2781613666565b840191505092915050565b6000612a3d826132b1565b612a4781856132fc565b9350612a5781856020860161349a565b80840191505092915050565b6000612a706032836132eb565b9150612a7b82613677565b604082019050919050565b6000612a936026836132eb565b9150612a9e826136c6565b604082019050919050565b6000612ab66025836132eb565b9150612ac182613715565b604082019050919050565b6000612ad9601c836132eb565b9150612ae482613764565b602082019050919050565b6000612afc6024836132eb565b9150612b078261378d565b604082019050919050565b6000612b1f6019836132eb565b9150612b2a826137dc565b602082019050919050565b6000612b42600a836132eb565b9150612b4d82613805565b602082019050919050565b6000612b65602c836132eb565b9150612b708261382e565b604082019050919050565b6000612b886020836132eb565b9150612b938261387d565b602082019050919050565b6000612bab6038836132eb565b9150612bb6826138a6565b604082019050919050565b6000612bce602a836132eb565b9150612bd9826138f5565b604082019050919050565b6000612bf16029836132eb565b9150612bfc82613944565b604082019050919050565b6000612c14601c836132eb565b9150612c1f82613993565b602082019050919050565b6000612c376020836132eb565b9150612c42826139bc565b602082019050919050565b6000612c5a602c836132eb565b9150612c65826139e5565b604082019050919050565b6000612c7d6020836132eb565b9150612c8882613a34565b602082019050919050565b6000612ca06015836132eb565b9150612cab82613a5d565b602082019050919050565b6000612cc3602f836132eb565b9150612cce82613a86565b604082019050919050565b6000612ce66021836132eb565b9150612cf182613ad5565b604082019050919050565b6000612d096016836132eb565b9150612d1482613b24565b602082019050919050565b6000612d2c6031836132eb565b9150612d3782613b4d565b604082019050919050565b612d4b8161342c565b82525050565b612d5a8161342c565b82525050565b612d6981613436565b82525050565b6000612d7b8285612a32565b9150612d878284612a32565b91508190509392505050565b6000602082019050612da86000830184612926565b92915050565b6000604082019050612dc36000830185612926565b612dd06020830184612926565b9392505050565b6000608082019050612dec6000830187612926565b612df96020830186612926565b612e066040830185612d51565b8181036060830152612e1881846129a2565b905095945050505050565b600060a082019050612e386000830188612926565b8181036020830152612e4a8187612935565b90508181036040830152612e5e8186612935565b90508181036060830152612e728185612935565b90508181036080830152612e868184612935565b90509695505050505050565b6000604082019050612ea76000830185612926565b612eb46020830184612d51565b9392505050565b6000602082019050612ed06000830184612993565b92915050565b6000602082019050612eeb60008301846129db565b92915050565b6000602082019050612f0660008301846129ea565b92915050565b60006020820190508181036000830152612f2681846129f9565b905092915050565b60006020820190508181036000830152612f4781612a63565b9050919050565b60006020820190508181036000830152612f6781612a86565b9050919050565b60006020820190508181036000830152612f8781612aa9565b9050919050565b60006020820190508181036000830152612fa781612acc565b9050919050565b60006020820190508181036000830152612fc781612aef565b9050919050565b60006020820190508181036000830152612fe781612b12565b9050919050565b6000602082019050818103600083015261300781612b35565b9050919050565b6000602082019050818103600083015261302781612b58565b9050919050565b6000602082019050818103600083015261304781612b7b565b9050919050565b6000602082019050818103600083015261306781612b9e565b9050919050565b6000602082019050818103600083015261308781612bc1565b9050919050565b600060208201905081810360008301526130a781612be4565b9050919050565b600060208201905081810360008301526130c781612c07565b9050919050565b600060208201905081810360008301526130e781612c2a565b9050919050565b6000602082019050818103600083015261310781612c4d565b9050919050565b6000602082019050818103600083015261312781612c70565b9050919050565b6000602082019050818103600083015261314781612c93565b9050919050565b6000602082019050818103600083015261316781612cb6565b9050919050565b6000602082019050818103600083015261318781612cd9565b9050919050565b600060208201905081810360008301526131a781612cfc565b9050919050565b600060208201905081810360008301526131c781612d1f565b9050919050565b60006020820190506131e36000830184612d51565b92915050565b60006020820190506131fe6000830184612d60565b92915050565b600061320e61321f565b905061321a82826134ff565b919050565b6000604051905090565b600067ffffffffffffffff82111561324457613243613637565b5b61324d82613666565b9050602081019050919050565b600067ffffffffffffffff82111561327557613274613637565b5b61327e82613666565b9050602081019050919050565b6000819050602082019050919050565b600081519050919050565b600081519050919050565b600081519050919050565b6000602082019050919050565b600082825260208201905092915050565b600082825260208201905092915050565b600082825260208201905092915050565b600081905092915050565b60006133128261342c565b915061331d8361342c565b9250827fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff03821115613352576133516135aa565b5b828201905092915050565b60006133688261342c565b91506133738361342c565b925082613383576133826135d9565b5b828204905092915050565b60006133998261342c565b91506133a48361342c565b9250828210156133b7576133b66135aa565b5b828203905092915050565b60006133cd8261340c565b9050919050565b60008115159050919050565b60007fffffffff0000000000000000000000000000000000000000000000000000000082169050919050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000819050919050565b600060ff82169050919050565b600061344e82613455565b9050919050565b60006134608261340c565b9050919050565b600061347282613479565b9050919050565b60006134848261340c565b9050919050565b82818337600083830152505050565b60005b838110156134b857808201518184015260208101905061349d565b838111156134c7576000848401525b50505050565b600060028204905060018216806134e557607f821691505b602082108114156134f9576134f8613608565b5b50919050565b61350882613666565b810181811067ffffffffffffffff8211171561352757613526613637565b5b80604052505050565b600061353b8261342c565b91507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff82141561356e5761356d6135aa565b5b600182019050919050565b60006135848261342c565b915061358f8361342c565b92508261359f5761359e6135d9565b5b828206905092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b6000601f19601f8301169050919050565b7f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560008201527f63656976657220696d706c656d656e7465720000000000000000000000000000602082015250565b7f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160008201527f6464726573730000000000000000000000000000000000000000000000000000602082015250565b7f4552433732313a207472616e736665722066726f6d20696e636f72726563742060008201527f6f776e6572000000000000000000000000000000000000000000000000000000602082015250565b7f4552433732313a20746f6b656e20616c7265616479206d696e74656400000000600082015250565b7f4552433732313a207472616e7366657220746f20746865207a65726f2061646460008201527f7265737300000000000000000000000000000000000000000000000000000000602082015250565b7f4552433732313a20617070726f766520746f2063616c6c657200000000000000600082015250565b7f496e76616c696420696400000000000000000000000000000000000000000000600082015250565b7f4552433732313a206f70657261746f7220717565727920666f72206e6f6e657860008201527f697374656e7420746f6b656e0000000000000000000000000000000000000000602082015250565b7f5573657220646f6573206e6f74206f776e2074686973206d616e79204e465473600082015250565b7f4552433732313a20617070726f76652063616c6c6572206973206e6f74206f7760008201527f6e6572206e6f7220617070726f76656420666f7220616c6c0000000000000000602082015250565b7f4552433732313a2062616c616e636520717565727920666f7220746865207a6560008201527f726f206164647265737300000000000000000000000000000000000000000000602082015250565b7f4552433732313a206f776e657220717565727920666f72206e6f6e657869737460008201527f656e7420746f6b656e0000000000000000000000000000000000000000000000602082015250565b7f5552492068617320616c7265616479206265656e207570646174656400000000600082015250565b7f4552433732313a206d696e7420746f20746865207a65726f2061646472657373600082015250565b7f4552433732313a20617070726f76656420717565727920666f72206e6f6e657860008201527f697374656e7420746f6b656e0000000000000000000000000000000000000000602082015250565b7f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572600082015250565b7f4d696e74696e67206973206e6f74206163746976650000000000000000000000600082015250565b7f4552433732314d657461646174613a2055524920717565727920666f72206e6f60008201527f6e6578697374656e7420746f6b656e0000000000000000000000000000000000602082015250565b7f4552433732313a20617070726f76616c20746f2063757272656e74206f776e6560008201527f7200000000000000000000000000000000000000000000000000000000000000602082015250565b7f55736572206973206e6f7420617574686f72697a656400000000000000000000600082015250565b7f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f60008201527f776e6572206e6f7220617070726f766564000000000000000000000000000000602082015250565b613ba5816133c2565b8114613bb057600080fd5b50565b613bbc816133d4565b8114613bc757600080fd5b50565b613bd3816133e0565b8114613bde57600080fd5b50565b613bea8161342c565b8114613bf557600080fd5b5056fea2646970667358221220238c876a248734082296b67d3ce362665b7e72e96e1131f8573ddbcde9d5aa3364736f6c63430008040033
Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)
0000000000000000000000003db74f87841623144be5cef82d877668b6d51180000000000000000000000000236672ed575e1e479b8e101aeeb920f32361f6f9
-----Decoded View---------------
Arg [0] : _adminMinter (address): 0x3dB74F87841623144BE5cEF82D877668B6D51180
Arg [1] : _watcherMinter (address): 0x236672Ed575E1e479b8E101AEeb920F32361f6F9
-----Encoded View---------------
2 Constructor Arguments found :
Arg [0] : 0000000000000000000000003db74f87841623144be5cef82d877668b6d51180
Arg [1] : 000000000000000000000000236672ed575e1e479b8e101aeeb920f32361f6f9
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.