ERC-721
Overview
Max Total Supply
3,604 OMNITO
Holders
945
Market
Volume (24H)
N/A
Min Price (24H)
N/A
Max Price (24H)
N/A
Other Info
Token Contract
Balance
2 OMNITOLoading...
Loading
Loading...
Loading
Loading...
Loading
# | Exchange | Pair | Price | 24H Volume | % Volume |
---|
Contract Name:
OmniTotems
Compiler Version
v0.8.0+commit.c7dfd78e
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.0; import "@openzeppelin/contracts/token/ERC721/extensions/ERC721Enumerable.sol"; import "@openzeppelin/contracts/token/ERC1155/ERC1155.sol"; import "@openzeppelin/contracts/access/Ownable.sol"; // ____ __ __ _ _ _____ _______ ____ _______ ______ __ __ _____ // / __ \| \/ | \ | |_ _|__ __/ __ \__ __| ____| \/ |/ ____| // | | | | \ / | \| | | | | | | | | | | | | |__ | \ / | (___ // | | | | |\/| | . ` | | | | | | | | | | | | __| | |\/| |\___ \ // | |__| | | | | |\ |_| |_ | | | |__| | | | | |____| | | |____) | // \____/|_| |_|_| \_|_____| |_| \____/ |_| |______|_| |_|_____/ contract OmniTotems is ERC721Enumerable, Ownable { // Omnimorphs contract IERC721Enumerable private _omnimorphsContract; // OmniFusion contract IERC1155 private _omniFusionContract; // base uri for token metadata string public baseURI; // whether minting is active bool public mintIsActive = false; // lock minting forever bool public mintLocked = false; // max number of totems that can be minted in 1 tx uint constant public MAX_MINT = 50; constructor(string memory _initialBaseURI, address _omnimorphsContractAddress) ERC721('OmniTotems', 'OMNITO') { _omnimorphsContract = IERC721Enumerable(_omnimorphsContractAddress); baseURI = _initialBaseURI; } // PUBLIC // mints totems for Omnimorphs held in batch function mintBatch(uint[] calldata ids) external { require(mintIsActive, "Minting is not currently active"); require(ids.length > 0, "Cannot mint 0 totems"); uint balance = _omnimorphsContract.balanceOf(msg.sender); require(ids.length <= MAX_MINT && ids.length <= balance, "Trying to mint too many totems"); for (uint i = 0; i < ids.length; i++) { uint id = ids[i]; // only mints the totems that don't yet exist and are owned by sender if (_omnimorphsContract.ownerOf(id) == msg.sender && !_exists(id)) { _safeMint(msg.sender, id); } } } // mints totems for Soul Shards held in batch function mintForSoulShards(uint[] calldata ids) external { require(mintIsActive, "Minting is not currently active"); require(ids.length > 0, "Cannot mint 0 totems"); require(ids.length <= MAX_MINT, "Trying to mint too many totems"); for (uint i = 0; i < ids.length; i++) { uint id = ids[i]; require(id > 0, "Cannot mint a totem with id 0"); // only mints the tokens that don't yet exist and are owned by sender if (_omniFusionContract.balanceOf(msg.sender, id) == 1 && !_exists(id)) { _safeMint(msg.sender, id); } } } // OWNER // sets the fusion contract function setOmniFusionContract(address _address) external onlyOwner { _omniFusionContract = IERC1155(_address); } // set base uri when moving metadata function setBaseURI(string memory newBaseURI) external onlyOwner { baseURI = newBaseURI; } // set whether minting is active function setMintIsActive(bool value) external onlyOwner { require(!mintLocked, "Cannot reset, as minting is locked forever"); mintIsActive = value; } // lock minting in an inactive state forever function lockMinting() external onlyOwner { require(!mintIsActive, "Can only lock when minting is inactive"); mintLocked = true; } // INTERNALS // used internally by tokenURI function _baseURI() internal view override returns (string memory) { return baseURI; } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import "../ERC721.sol"; import "./IERC721Enumerable.sol"; /** * @dev This implements an optional extension of {ERC721} defined in the EIP that adds * enumerability of all the token ids in the contract as well as all token ids owned by each * account. */ abstract contract ERC721Enumerable is ERC721, IERC721Enumerable { // Mapping from owner to list of owned token IDs mapping(address => mapping(uint256 => uint256)) private _ownedTokens; // Mapping from token ID to index of the owner tokens list mapping(uint256 => uint256) private _ownedTokensIndex; // Array with all token ids, used for enumeration uint256[] private _allTokens; // Mapping from token id to position in the allTokens array mapping(uint256 => uint256) private _allTokensIndex; /** * @dev See {IERC165-supportsInterface}. */ function supportsInterface(bytes4 interfaceId) public view virtual override(IERC165, ERC721) returns (bool) { return interfaceId == type(IERC721Enumerable).interfaceId || super.supportsInterface(interfaceId); } /** * @dev See {IERC721Enumerable-tokenOfOwnerByIndex}. */ function tokenOfOwnerByIndex(address owner, uint256 index) public view virtual override returns (uint256) { require(index < ERC721.balanceOf(owner), "ERC721Enumerable: owner index out of bounds"); return _ownedTokens[owner][index]; } /** * @dev See {IERC721Enumerable-totalSupply}. */ function totalSupply() public view virtual override returns (uint256) { return _allTokens.length; } /** * @dev See {IERC721Enumerable-tokenByIndex}. */ function tokenByIndex(uint256 index) public view virtual override returns (uint256) { require(index < ERC721Enumerable.totalSupply(), "ERC721Enumerable: global index out of bounds"); return _allTokens[index]; } /** * @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` cannot be the zero address. * - `to` cannot be the zero address. * * 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 override { super._beforeTokenTransfer(from, to, tokenId); if (from == address(0)) { _addTokenToAllTokensEnumeration(tokenId); } else if (from != to) { _removeTokenFromOwnerEnumeration(from, tokenId); } if (to == address(0)) { _removeTokenFromAllTokensEnumeration(tokenId); } else if (to != from) { _addTokenToOwnerEnumeration(to, tokenId); } } /** * @dev Private function to add a token to this extension's ownership-tracking data structures. * @param to address representing the new owner of the given token ID * @param tokenId uint256 ID of the token to be added to the tokens list of the given address */ function _addTokenToOwnerEnumeration(address to, uint256 tokenId) private { uint256 length = ERC721.balanceOf(to); _ownedTokens[to][length] = tokenId; _ownedTokensIndex[tokenId] = length; } /** * @dev Private function to add a token to this extension's token tracking data structures. * @param tokenId uint256 ID of the token to be added to the tokens list */ function _addTokenToAllTokensEnumeration(uint256 tokenId) private { _allTokensIndex[tokenId] = _allTokens.length; _allTokens.push(tokenId); } /** * @dev Private function to remove a token from this extension's ownership-tracking data structures. Note that * while the token is not assigned a new owner, the `_ownedTokensIndex` mapping is _not_ updated: this allows for * gas optimizations e.g. when performing a transfer operation (avoiding double writes). * This has O(1) time complexity, but alters the order of the _ownedTokens array. * @param from address representing the previous owner of the given token ID * @param tokenId uint256 ID of the token to be removed from the tokens list of the given address */ function _removeTokenFromOwnerEnumeration(address from, uint256 tokenId) private { // To prevent a gap in from's tokens array, we store the last token in the index of the token to delete, and // then delete the last slot (swap and pop). uint256 lastTokenIndex = ERC721.balanceOf(from) - 1; uint256 tokenIndex = _ownedTokensIndex[tokenId]; // When the token to delete is the last token, the swap operation is unnecessary if (tokenIndex != lastTokenIndex) { uint256 lastTokenId = _ownedTokens[from][lastTokenIndex]; _ownedTokens[from][tokenIndex] = lastTokenId; // Move the last token to the slot of the to-delete token _ownedTokensIndex[lastTokenId] = tokenIndex; // Update the moved token's index } // This also deletes the contents at the last position of the array delete _ownedTokensIndex[tokenId]; delete _ownedTokens[from][lastTokenIndex]; } /** * @dev Private function to remove a token from this extension's token tracking data structures. * This has O(1) time complexity, but alters the order of the _allTokens array. * @param tokenId uint256 ID of the token to be removed from the tokens list */ function _removeTokenFromAllTokensEnumeration(uint256 tokenId) private { // To prevent a gap in the tokens array, we store the last token in the index of the token to delete, and // then delete the last slot (swap and pop). uint256 lastTokenIndex = _allTokens.length - 1; uint256 tokenIndex = _allTokensIndex[tokenId]; // When the token to delete is the last token, the swap operation is unnecessary. However, since this occurs so // rarely (when the last minted token is burnt) that we still do the swap here to avoid the gas cost of adding // an 'if' statement (like in _removeTokenFromOwnerEnumeration) uint256 lastTokenId = _allTokens[lastTokenIndex]; _allTokens[tokenIndex] = lastTokenId; // Move the last token to the slot of the to-delete token _allTokensIndex[lastTokenId] = tokenIndex; // Update the moved token's index // This also deletes the contents at the last position of the array delete _allTokensIndex[tokenId]; _allTokens.pop(); } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import "./IERC1155.sol"; import "./IERC1155Receiver.sol"; import "./extensions/IERC1155MetadataURI.sol"; import "../../utils/Address.sol"; import "../../utils/Context.sol"; import "../../utils/introspection/ERC165.sol"; /** * @dev Implementation of the basic standard multi-token. * See https://eips.ethereum.org/EIPS/eip-1155 * Originally based on code by Enjin: https://github.com/enjin/erc-1155 * * _Available since v3.1._ */ contract ERC1155 is Context, ERC165, IERC1155, IERC1155MetadataURI { using Address for address; // Mapping from token ID to account balances mapping(uint256 => mapping(address => uint256)) private _balances; // Mapping from account to operator approvals mapping(address => mapping(address => bool)) private _operatorApprovals; // Used as the URI for all token types by relying on ID substitution, e.g. https://token-cdn-domain/{id}.json string private _uri; /** * @dev See {_setURI}. */ constructor(string memory uri_) { _setURI(uri_); } /** * @dev See {IERC165-supportsInterface}. */ function supportsInterface(bytes4 interfaceId) public view virtual override(ERC165, IERC165) returns (bool) { return interfaceId == type(IERC1155).interfaceId || interfaceId == type(IERC1155MetadataURI).interfaceId || super.supportsInterface(interfaceId); } /** * @dev See {IERC1155MetadataURI-uri}. * * This implementation returns the same URI for *all* token types. It relies * on the token type ID substitution mechanism * https://eips.ethereum.org/EIPS/eip-1155#metadata[defined in the EIP]. * * Clients calling this function must replace the `\{id\}` substring with the * actual token type ID. */ function uri(uint256) public view virtual override returns (string memory) { return _uri; } /** * @dev See {IERC1155-balanceOf}. * * Requirements: * * - `account` cannot be the zero address. */ function balanceOf(address account, uint256 id) public view virtual override returns (uint256) { require(account != address(0), "ERC1155: balance query for the zero address"); return _balances[id][account]; } /** * @dev See {IERC1155-balanceOfBatch}. * * Requirements: * * - `accounts` and `ids` must have the same length. */ function balanceOfBatch(address[] memory accounts, uint256[] memory ids) public view virtual override returns (uint256[] memory) { require(accounts.length == ids.length, "ERC1155: accounts and ids length mismatch"); uint256[] memory batchBalances = new uint256[](accounts.length); for (uint256 i = 0; i < accounts.length; ++i) { batchBalances[i] = balanceOf(accounts[i], ids[i]); } return batchBalances; } /** * @dev See {IERC1155-setApprovalForAll}. */ function setApprovalForAll(address operator, bool approved) public virtual override { require(_msgSender() != operator, "ERC1155: setting approval status for self"); _operatorApprovals[_msgSender()][operator] = approved; emit ApprovalForAll(_msgSender(), operator, approved); } /** * @dev See {IERC1155-isApprovedForAll}. */ function isApprovedForAll(address account, address operator) public view virtual override returns (bool) { return _operatorApprovals[account][operator]; } /** * @dev See {IERC1155-safeTransferFrom}. */ function safeTransferFrom( address from, address to, uint256 id, uint256 amount, bytes memory data ) public virtual override { require( from == _msgSender() || isApprovedForAll(from, _msgSender()), "ERC1155: caller is not owner nor approved" ); _safeTransferFrom(from, to, id, amount, data); } /** * @dev See {IERC1155-safeBatchTransferFrom}. */ function safeBatchTransferFrom( address from, address to, uint256[] memory ids, uint256[] memory amounts, bytes memory data ) public virtual override { require( from == _msgSender() || isApprovedForAll(from, _msgSender()), "ERC1155: transfer caller is not owner nor approved" ); _safeBatchTransferFrom(from, to, ids, amounts, data); } /** * @dev Transfers `amount` tokens of token type `id` from `from` to `to`. * * Emits a {TransferSingle} event. * * Requirements: * * - `to` cannot be the zero address. * - `from` must have a balance of tokens of type `id` of at least `amount`. * - If `to` refers to a smart contract, it must implement {IERC1155Receiver-onERC1155Received} and return the * acceptance magic value. */ function _safeTransferFrom( address from, address to, uint256 id, uint256 amount, bytes memory data ) internal virtual { require(to != address(0), "ERC1155: transfer to the zero address"); address operator = _msgSender(); _beforeTokenTransfer(operator, from, to, _asSingletonArray(id), _asSingletonArray(amount), data); uint256 fromBalance = _balances[id][from]; require(fromBalance >= amount, "ERC1155: insufficient balance for transfer"); unchecked { _balances[id][from] = fromBalance - amount; } _balances[id][to] += amount; emit TransferSingle(operator, from, to, id, amount); _doSafeTransferAcceptanceCheck(operator, from, to, id, amount, data); } /** * @dev xref:ROOT:erc1155.adoc#batch-operations[Batched] version of {_safeTransferFrom}. * * Emits a {TransferBatch} event. * * Requirements: * * - If `to` refers to a smart contract, it must implement {IERC1155Receiver-onERC1155BatchReceived} and return the * acceptance magic value. */ function _safeBatchTransferFrom( address from, address to, uint256[] memory ids, uint256[] memory amounts, bytes memory data ) internal virtual { require(ids.length == amounts.length, "ERC1155: ids and amounts length mismatch"); require(to != address(0), "ERC1155: transfer to the zero address"); address operator = _msgSender(); _beforeTokenTransfer(operator, from, to, ids, amounts, data); for (uint256 i = 0; i < ids.length; ++i) { uint256 id = ids[i]; uint256 amount = amounts[i]; uint256 fromBalance = _balances[id][from]; require(fromBalance >= amount, "ERC1155: insufficient balance for transfer"); unchecked { _balances[id][from] = fromBalance - amount; } _balances[id][to] += amount; } emit TransferBatch(operator, from, to, ids, amounts); _doSafeBatchTransferAcceptanceCheck(operator, from, to, ids, amounts, data); } /** * @dev Sets a new URI for all token types, by relying on the token type ID * substitution mechanism * https://eips.ethereum.org/EIPS/eip-1155#metadata[defined in the EIP]. * * By this mechanism, any occurrence of the `\{id\}` substring in either the * URI or any of the amounts in the JSON file at said URI will be replaced by * clients with the token type ID. * * For example, the `https://token-cdn-domain/\{id\}.json` URI would be * interpreted by clients as * `https://token-cdn-domain/000000000000000000000000000000000000000000000000000000000004cce0.json` * for token type ID 0x4cce0. * * See {uri}. * * Because these URIs cannot be meaningfully represented by the {URI} event, * this function emits no events. */ function _setURI(string memory newuri) internal virtual { _uri = newuri; } /** * @dev Creates `amount` tokens of token type `id`, and assigns them to `account`. * * Emits a {TransferSingle} event. * * Requirements: * * - `account` cannot be the zero address. * - If `account` refers to a smart contract, it must implement {IERC1155Receiver-onERC1155Received} and return the * acceptance magic value. */ function _mint( address account, uint256 id, uint256 amount, bytes memory data ) internal virtual { require(account != address(0), "ERC1155: mint to the zero address"); address operator = _msgSender(); _beforeTokenTransfer(operator, address(0), account, _asSingletonArray(id), _asSingletonArray(amount), data); _balances[id][account] += amount; emit TransferSingle(operator, address(0), account, id, amount); _doSafeTransferAcceptanceCheck(operator, address(0), account, id, amount, data); } /** * @dev xref:ROOT:erc1155.adoc#batch-operations[Batched] version of {_mint}. * * Requirements: * * - `ids` and `amounts` must have the same length. * - If `to` refers to a smart contract, it must implement {IERC1155Receiver-onERC1155BatchReceived} and return the * acceptance magic value. */ function _mintBatch( address to, uint256[] memory ids, uint256[] memory amounts, bytes memory data ) internal virtual { require(to != address(0), "ERC1155: mint to the zero address"); require(ids.length == amounts.length, "ERC1155: ids and amounts length mismatch"); address operator = _msgSender(); _beforeTokenTransfer(operator, address(0), to, ids, amounts, data); for (uint256 i = 0; i < ids.length; i++) { _balances[ids[i]][to] += amounts[i]; } emit TransferBatch(operator, address(0), to, ids, amounts); _doSafeBatchTransferAcceptanceCheck(operator, address(0), to, ids, amounts, data); } /** * @dev Destroys `amount` tokens of token type `id` from `account` * * Requirements: * * - `account` cannot be the zero address. * - `account` must have at least `amount` tokens of token type `id`. */ function _burn( address account, uint256 id, uint256 amount ) internal virtual { require(account != address(0), "ERC1155: burn from the zero address"); address operator = _msgSender(); _beforeTokenTransfer(operator, account, address(0), _asSingletonArray(id), _asSingletonArray(amount), ""); uint256 accountBalance = _balances[id][account]; require(accountBalance >= amount, "ERC1155: burn amount exceeds balance"); unchecked { _balances[id][account] = accountBalance - amount; } emit TransferSingle(operator, account, address(0), id, amount); } /** * @dev xref:ROOT:erc1155.adoc#batch-operations[Batched] version of {_burn}. * * Requirements: * * - `ids` and `amounts` must have the same length. */ function _burnBatch( address account, uint256[] memory ids, uint256[] memory amounts ) internal virtual { require(account != address(0), "ERC1155: burn from the zero address"); require(ids.length == amounts.length, "ERC1155: ids and amounts length mismatch"); address operator = _msgSender(); _beforeTokenTransfer(operator, account, address(0), ids, amounts, ""); for (uint256 i = 0; i < ids.length; i++) { uint256 id = ids[i]; uint256 amount = amounts[i]; uint256 accountBalance = _balances[id][account]; require(accountBalance >= amount, "ERC1155: burn amount exceeds balance"); unchecked { _balances[id][account] = accountBalance - amount; } } emit TransferBatch(operator, account, address(0), ids, amounts); } /** * @dev Hook that is called before any token transfer. This includes minting * and burning, as well as batched variants. * * The same hook is called on both single and batched variants. For single * transfers, the length of the `id` and `amount` arrays will be 1. * * Calling conditions (for each `id` and `amount` pair): * * - When `from` and `to` are both non-zero, `amount` of ``from``'s tokens * of token type `id` will be transferred to `to`. * - When `from` is zero, `amount` tokens of token type `id` will be minted * for `to`. * - when `to` is zero, `amount` of ``from``'s tokens of token type `id` * will be burned. * - `from` and `to` are never both zero. * - `ids` and `amounts` have the same, non-zero length. * * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks]. */ function _beforeTokenTransfer( address operator, address from, address to, uint256[] memory ids, uint256[] memory amounts, bytes memory data ) internal virtual {} function _doSafeTransferAcceptanceCheck( address operator, address from, address to, uint256 id, uint256 amount, bytes memory data ) private { if (to.isContract()) { try IERC1155Receiver(to).onERC1155Received(operator, from, id, amount, data) returns (bytes4 response) { if (response != IERC1155Receiver(to).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(to).onERC1155BatchReceived.selector) { revert("ERC1155: ERC1155Receiver rejected tokens"); } } catch Error(string memory reason) { revert(reason); } catch { revert("ERC1155: transfer to non ERC1155Receiver implementer"); } } } function _asSingletonArray(uint256 element) private pure returns (uint256[] memory) { uint256[] memory array = new uint256[](1); array[0] = element; return array; } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import "../utils/Context.sol"; /** * @dev Contract module which provides a basic access control mechanism, where * there is an account (an owner) that can be granted exclusive access to * specific functions. * * By default, the owner account will be the one that deploys the contract. This * can later be changed with {transferOwnership}. * * This module is used through inheritance. It will make available the modifier * `onlyOwner`, which can be applied to your functions to restrict their use to * the owner. */ abstract contract Ownable is Context { address private _owner; event OwnershipTransferred(address indexed previousOwner, address indexed newOwner); /** * @dev Initializes the contract setting the deployer as the initial owner. */ constructor() { _setOwner(_msgSender()); } /** * @dev Returns the address of the current owner. */ function owner() public view virtual returns (address) { return _owner; } /** * @dev Throws if called by any account other than the owner. */ modifier onlyOwner() { require(owner() == _msgSender(), "Ownable: caller is not the owner"); _; } /** * @dev Leaves the contract without owner. It will not be possible to call * `onlyOwner` functions anymore. Can only be called by the current owner. * * NOTE: Renouncing ownership will leave the contract without an owner, * thereby removing any functionality that is only available to the owner. */ function renounceOwnership() public virtual onlyOwner { _setOwner(address(0)); } /** * @dev Transfers ownership of the contract to a new account (`newOwner`). * Can only be called by the current owner. */ function transferOwnership(address newOwner) public virtual onlyOwner { require(newOwner != address(0), "Ownable: new owner is the zero address"); _setOwner(newOwner); } function _setOwner(address newOwner) private { address oldOwner = _owner; _owner = newOwner; emit OwnershipTransferred(oldOwner, newOwner); } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import "./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 overriden 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 { require(operator != _msgSender(), "ERC721: approve to caller"); _operatorApprovals[_msgSender()][operator] = approved; emit ApprovalForAll(_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 || getApproved(tokenId) == spender || isApprovedForAll(owner, 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); } /** * @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); } /** * @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 of token that is not own"); 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); } /** * @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 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(to).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 {} }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import "../IERC721.sol"; /** * @title ERC-721 Non-Fungible Token Standard, optional enumeration extension * @dev See https://eips.ethereum.org/EIPS/eip-721 */ interface IERC721Enumerable is IERC721 { /** * @dev Returns the total amount of tokens stored by the contract. */ function totalSupply() external view returns (uint256); /** * @dev Returns a token ID owned by `owner` at a given `index` of its token list. * Use along with {balanceOf} to enumerate all of ``owner``'s tokens. */ function tokenOfOwnerByIndex(address owner, uint256 index) external view returns (uint256 tokenId); /** * @dev Returns a token ID at a given `index` of all the tokens stored by the contract. * Use along with {totalSupply} to enumerate all tokens. */ function tokenByIndex(uint256 index) external view returns (uint256); }
// SPDX-License-Identifier: MIT 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`, 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 Returns the account approved for `tokenId` token. * * Requirements: * * - `tokenId` must exist. */ function getApproved(uint256 tokenId) external view returns (address operator); /** * @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 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); /** * @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; }
// SPDX-License-Identifier: MIT 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 `IERC721.onERC721Received.selector`. */ function onERC721Received( address operator, address from, uint256 tokenId, bytes calldata data ) external returns (bytes4); }
// SPDX-License-Identifier: MIT 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 pragma solidity ^0.8.0; /** * @dev Collection of functions related to the address type */ library Address { /** * @dev Returns true if `account` is a contract. * * [IMPORTANT] * ==== * It is unsafe to assume that an address for which this function returns * false is an externally-owned account (EOA) and not a contract. * * Among others, `isContract` will return false for the following * types of addresses: * * - an externally-owned account * - a contract in construction * - an address where a contract will be created * - an address where a contract lived, but was destroyed * ==== */ function isContract(address account) internal view returns (bool) { // This method relies on extcodesize, which returns 0 for contracts in // construction, since the code is only stored at the end of the // constructor execution. uint256 size; assembly { size := extcodesize(account) } return size > 0; } /** * @dev Replacement for Solidity's `transfer`: sends `amount` wei to * `recipient`, forwarding all available gas and reverting on errors. * * https://eips.ethereum.org/EIPS/eip-1884[EIP1884] increases the gas cost * of certain opcodes, possibly making contracts go over the 2300 gas limit * imposed by `transfer`, making them unable to receive funds via * `transfer`. {sendValue} removes this limitation. * * https://diligence.consensys.net/posts/2019/09/stop-using-soliditys-transfer-now/[Learn more]. * * IMPORTANT: because control is transferred to `recipient`, care must be * taken to not create reentrancy vulnerabilities. Consider using * {ReentrancyGuard} or the * https://solidity.readthedocs.io/en/v0.5.11/security-considerations.html#use-the-checks-effects-interactions-pattern[checks-effects-interactions pattern]. */ function sendValue(address payable recipient, uint256 amount) internal { require(address(this).balance >= amount, "Address: insufficient balance"); (bool success, ) = recipient.call{value: amount}(""); require(success, "Address: unable to send value, recipient may have reverted"); } /** * @dev Performs a Solidity function call using a low level `call`. A * plain `call` is an unsafe replacement for a function call: use this * function instead. * * If `target` reverts with a revert reason, it is bubbled up by this * function (like regular Solidity function calls). * * Returns the raw returned data. To convert to the expected return value, * use https://solidity.readthedocs.io/en/latest/units-and-global-variables.html?highlight=abi.decode#abi-encoding-and-decoding-functions[`abi.decode`]. * * Requirements: * * - `target` must be a contract. * - calling `target` with `data` must not revert. * * _Available since v3.1._ */ function functionCall(address target, bytes memory data) internal returns (bytes memory) { return functionCall(target, data, "Address: low-level call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], but with * `errorMessage` as a fallback revert reason when `target` reverts. * * _Available since v3.1._ */ function functionCall( address target, bytes memory data, string memory errorMessage ) internal returns (bytes memory) { return functionCallWithValue(target, data, 0, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but also transferring `value` wei to `target`. * * Requirements: * * - the calling contract must have an ETH balance of at least `value`. * - the called Solidity function must be `payable`. * * _Available since v3.1._ */ function functionCallWithValue( address target, bytes memory data, uint256 value ) internal returns (bytes memory) { return functionCallWithValue(target, data, value, "Address: low-level call with value failed"); } /** * @dev Same as {xref-Address-functionCallWithValue-address-bytes-uint256-}[`functionCallWithValue`], but * with `errorMessage` as a fallback revert reason when `target` reverts. * * _Available since v3.1._ */ function functionCallWithValue( address target, bytes memory data, uint256 value, string memory errorMessage ) internal returns (bytes memory) { require(address(this).balance >= value, "Address: insufficient balance for call"); require(isContract(target), "Address: call to non-contract"); (bool success, bytes memory returndata) = target.call{value: value}(data); return _verifyCallResult(success, returndata, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but performing a static call. * * _Available since v3.3._ */ function functionStaticCall(address target, bytes memory data) internal view returns (bytes memory) { return functionStaticCall(target, data, "Address: low-level static call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`], * but performing a static call. * * _Available since v3.3._ */ function functionStaticCall( address target, bytes memory data, string memory errorMessage ) internal view returns (bytes memory) { require(isContract(target), "Address: static call to non-contract"); (bool success, bytes memory returndata) = target.staticcall(data); return _verifyCallResult(success, returndata, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but performing a delegate call. * * _Available since v3.4._ */ function functionDelegateCall(address target, bytes memory data) internal returns (bytes memory) { return functionDelegateCall(target, data, "Address: low-level delegate call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`], * but performing a delegate call. * * _Available since v3.4._ */ function functionDelegateCall( address target, bytes memory data, string memory errorMessage ) internal returns (bytes memory) { require(isContract(target), "Address: delegate call to non-contract"); (bool success, bytes memory returndata) = target.delegatecall(data); return _verifyCallResult(success, returndata, errorMessage); } function _verifyCallResult( bool success, bytes memory returndata, string memory errorMessage ) private pure returns (bytes memory) { if (success) { return returndata; } else { // Look for revert reason and bubble it up if present if (returndata.length > 0) { // The easiest way to bubble the revert reason is using memory via assembly assembly { let returndata_size := mload(returndata) revert(add(32, returndata), returndata_size) } } else { revert(errorMessage); } } } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; /* * @dev Provides information about the current execution context, including the * sender of the transaction and its data. While these are generally available * via msg.sender and msg.data, they should not be accessed in such a direct * manner, since when dealing with meta-transactions the account sending and * paying for execution may not be the actual sender (as far as an application * is concerned). * * This contract is only required for intermediate, library-like contracts. */ abstract contract Context { function _msgSender() internal view virtual returns (address) { return msg.sender; } function _msgData() internal view virtual returns (bytes calldata) { return msg.data; } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; /** * @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 pragma solidity ^0.8.0; import "./IERC165.sol"; /** * @dev Implementation of the {IERC165} interface. * * Contracts that want to implement ERC165 should inherit from this contract and override {supportsInterface} to check * for the additional interface id that will be supported. For example: * * ```solidity * function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) { * return interfaceId == type(MyInterface).interfaceId || super.supportsInterface(interfaceId); * } * ``` * * Alternatively, {ERC165Storage} provides an easier to use but more expensive implementation. */ abstract contract ERC165 is IERC165 { /** * @dev See {IERC165-supportsInterface}. */ function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) { return interfaceId == type(IERC165).interfaceId; } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; /** * @dev Interface of the ERC165 standard, as defined in the * https://eips.ethereum.org/EIPS/eip-165[EIP]. * * Implementers can declare support of contract interfaces, which can then be * queried by others ({ERC165Checker}). * * For an implementation, see {ERC165}. */ interface IERC165 { /** * @dev Returns true if this contract implements the interface defined by * `interfaceId`. See the corresponding * https://eips.ethereum.org/EIPS/eip-165#how-interfaces-are-identified[EIP section] * to learn more about how these ids are created. * * This function call must use less than 30 000 gas. */ function supportsInterface(bytes4 interfaceId) external view returns (bool); }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import "../../utils/introspection/IERC165.sol"; /** * @dev Required interface of an ERC1155 compliant contract, as defined in the * https://eips.ethereum.org/EIPS/eip-1155[EIP]. * * _Available since v3.1._ */ interface IERC1155 is IERC165 { /** * @dev Emitted when `value` tokens of token type `id` are transferred from `from` to `to` by `operator`. */ event TransferSingle(address indexed operator, address indexed from, address indexed to, uint256 id, uint256 value); /** * @dev Equivalent to multiple {TransferSingle} events, where `operator`, `from` and `to` are the same for all * transfers. */ event TransferBatch( address indexed operator, address indexed from, address indexed to, uint256[] ids, uint256[] values ); /** * @dev Emitted when `account` grants or revokes permission to `operator` to transfer their tokens, according to * `approved`. */ event ApprovalForAll(address indexed account, address indexed operator, bool approved); /** * @dev Emitted when the URI for token type `id` changes to `value`, if it is a non-programmatic URI. * * If an {URI} event was emitted for `id`, the standard * https://eips.ethereum.org/EIPS/eip-1155#metadata-extensions[guarantees] that `value` will equal the value * returned by {IERC1155MetadataURI-uri}. */ event URI(string value, uint256 indexed id); /** * @dev Returns the amount of tokens of token type `id` owned by `account`. * * Requirements: * * - `account` cannot be the zero address. */ function balanceOf(address account, uint256 id) external view returns (uint256); /** * @dev xref:ROOT:erc1155.adoc#batch-operations[Batched] version of {balanceOf}. * * Requirements: * * - `accounts` and `ids` must have the same length. */ function balanceOfBatch(address[] calldata accounts, uint256[] calldata ids) external view returns (uint256[] memory); /** * @dev Grants or revokes permission to `operator` to transfer the caller's tokens, according to `approved`, * * Emits an {ApprovalForAll} event. * * Requirements: * * - `operator` cannot be the caller. */ function setApprovalForAll(address operator, bool approved) external; /** * @dev Returns true if `operator` is approved to transfer ``account``'s tokens. * * See {setApprovalForAll}. */ function isApprovedForAll(address account, address operator) external view returns (bool); /** * @dev Transfers `amount` tokens of token type `id` from `from` to `to`. * * Emits a {TransferSingle} event. * * Requirements: * * - `to` cannot be the zero address. * - If the caller is not `from`, it must be have been approved to spend ``from``'s tokens via {setApprovalForAll}. * - `from` must have a balance of tokens of type `id` of at least `amount`. * - If `to` refers to a smart contract, it must implement {IERC1155Receiver-onERC1155Received} and return the * acceptance magic value. */ function safeTransferFrom( address from, address to, uint256 id, uint256 amount, bytes calldata data ) external; /** * @dev xref:ROOT:erc1155.adoc#batch-operations[Batched] version of {safeTransferFrom}. * * Emits a {TransferBatch} event. * * Requirements: * * - `ids` and `amounts` must have the same length. * - If `to` refers to a smart contract, it must implement {IERC1155Receiver-onERC1155BatchReceived} and return the * acceptance magic value. */ function safeBatchTransferFrom( address from, address to, uint256[] calldata ids, uint256[] calldata amounts, bytes calldata data ) external; }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import "../../utils/introspection/IERC165.sol"; /** * @dev _Available since v3.1._ */ interface IERC1155Receiver is IERC165 { /** @dev Handles the receipt of a single ERC1155 token type. This function is called at the end of a `safeTransferFrom` after the balance has been updated. To accept the transfer, this must return `bytes4(keccak256("onERC1155Received(address,address,uint256,uint256,bytes)"))` (i.e. 0xf23a6e61, or its own function selector). @param operator The address which initiated the transfer (i.e. msg.sender) @param from The address which previously owned the token @param id The ID of the token being transferred @param value The amount of tokens being transferred @param data Additional data with no specified format @return `bytes4(keccak256("onERC1155Received(address,address,uint256,uint256,bytes)"))` if transfer is allowed */ function onERC1155Received( address operator, address from, uint256 id, uint256 value, bytes calldata data ) external returns (bytes4); /** @dev Handles the receipt of a multiple ERC1155 token types. This function is called at the end of a `safeBatchTransferFrom` after the balances have been updated. To accept the transfer(s), this must return `bytes4(keccak256("onERC1155BatchReceived(address,address,uint256[],uint256[],bytes)"))` (i.e. 0xbc197c81, or its own function selector). @param operator The address which initiated the batch transfer (i.e. msg.sender) @param from The address which previously owned the token @param ids An array containing ids of each token being transferred (order and length must match values array) @param values An array containing amounts of each token being transferred (order and length must match ids array) @param data Additional data with no specified format @return `bytes4(keccak256("onERC1155BatchReceived(address,address,uint256[],uint256[],bytes)"))` if transfer is allowed */ function onERC1155BatchReceived( address operator, address from, uint256[] calldata ids, uint256[] calldata values, bytes calldata data ) external returns (bytes4); }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import "../IERC1155.sol"; /** * @dev Interface of the optional ERC1155MetadataExtension interface, as defined * in the https://eips.ethereum.org/EIPS/eip-1155#metadata-extensions[EIP]. * * _Available since v3.1._ */ interface IERC1155MetadataURI is IERC1155 { /** * @dev Returns the URI for token type `id`. * * If the `\{id\}` substring is present in the URI, it must be replaced by * clients with the actual token type ID. */ function uri(uint256 id) external view returns (string memory); }
{ "optimizer": { "enabled": false, "runs": 200 }, "outputSelection": { "*": { "*": [ "evm.bytecode", "evm.deployedBytecode", "devdoc", "userdoc", "metadata", "abi" ] } }, "metadata": { "useLiteralContent": true }, "libraries": {} }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"inputs":[{"internalType":"string","name":"_initialBaseURI","type":"string"},{"internalType":"address","name":"_omnimorphsContractAddress","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":[],"name":"MAX_MINT","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"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":"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":"lockMinting","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256[]","name":"ids","type":"uint256[]"}],"name":"mintBatch","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256[]","name":"ids","type":"uint256[]"}],"name":"mintForSoulShards","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"mintIsActive","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"mintLocked","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":"string","name":"newBaseURI","type":"string"}],"name":"setBaseURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bool","name":"value","type":"bool"}],"name":"setMintIsActive","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_address","type":"address"}],"name":"setOmniFusionContract","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes4","name":"interfaceId","type":"bytes4"}],"name":"supportsInterface","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"index","type":"uint256"}],"name":"tokenByIndex","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"uint256","name":"index","type":"uint256"}],"name":"tokenOfOwnerByIndex","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"tokenURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"transferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"}]
Contract Creation Code
60806040526000600e60006101000a81548160ff0219169083151502179055506000600e60016101000a81548160ff0219169083151502179055503480156200004757600080fd5b50604051620048133803806200481383398181016040528101906200006d919062000396565b6040518060400160405280600a81526020017f4f6d6e69546f74656d73000000000000000000000000000000000000000000008152506040518060400160405280600681526020017f4f4d4e49544f00000000000000000000000000000000000000000000000000008152508160009080519060200190620000f19291906200025d565b5080600190805190602001906200010a9291906200025d565b5050506200012d620001216200018f60201b60201c565b6200019760201b60201c565b80600b60006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555081600d9080519060200190620001869291906200025d565b5050506200056f565b600033905090565b6000600a60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905081600a60006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b8280546200026b90620004c1565b90600052602060002090601f0160209004810192826200028f5760008555620002db565b82601f10620002aa57805160ff1916838001178555620002db565b82800160010185558215620002db579182015b82811115620002da578251825591602001919060010190620002bd565b5b509050620002ea9190620002ee565b5090565b5b8082111562000309576000816000905550600101620002ef565b5090565b6000620003246200031e8462000424565b620003f0565b9050828152602081018484840111156200033d57600080fd5b6200034a8482856200048b565b509392505050565b600081519050620003638162000555565b92915050565b600082601f8301126200037b57600080fd5b81516200038d8482602086016200030d565b91505092915050565b60008060408385031215620003aa57600080fd5b600083015167ffffffffffffffff811115620003c557600080fd5b620003d38582860162000369565b9250506020620003e68582860162000352565b9150509250929050565b6000604051905081810181811067ffffffffffffffff821117156200041a576200041962000526565b5b8060405250919050565b600067ffffffffffffffff82111562000442576200044162000526565b5b601f19601f8301169050602081019050919050565b600062000464826200046b565b9050919050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b60005b83811015620004ab5780820151818401526020810190506200048e565b83811115620004bb576000848401525b50505050565b60006002820490506001821680620004da57607f821691505b60208210811415620004f157620004f0620004f7565b5b50919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b620005608162000457565b81146200056c57600080fd5b50565b614294806200057f6000396000f3fe608060405234801561001057600080fd5b50600436106101cf5760003560e01c80636352211e11610104578063b88d4fde116100a2578063e985e9c511610071578063e985e9c514610506578063f0292a0314610536578063f2fde38b14610554578063ffb2b55a14610570576101cf565b8063b88d4fde14610480578063c87b56dd1461049c578063d19653fb146104cc578063df3c3a30146104e8576101cf565b8063715018a6116100de578063715018a61461041e5780638da5cb5b1461042857806395d89b4114610446578063a22cb46514610464576101cf565b80636352211e146103a05780636c0360eb146103d057806370a08231146103ee576101cf565b8063253224fb11610171578063471a42941161014b578063471a42941461031a57806348318ce0146103385780634f6ccce71461035457806355f804b314610384576101cf565b8063253224fb146102b25780632f745c59146102ce57806342842e0e146102fe576101cf565b8063095ea7b3116101ad578063095ea7b3146102525780630d7982ad1461026e57806318160ddd1461027857806323b872dd14610296576101cf565b806301ffc9a7146101d457806306fdde0314610204578063081812fc14610222575b600080fd5b6101ee60048036038101906101e99190613023565b61058c565b6040516101fb9190613aec565b60405180910390f35b61020c610606565b6040516102199190613b07565b60405180910390f35b61023c600480360381019061023791906130b6565b610698565b6040516102499190613a5c565b60405180910390f35b61026c60048036038101906102679190612f79565b61071d565b005b610276610835565b005b61028061091e565b60405161028d9190613e29565b60405180910390f35b6102b060048036038101906102ab9190612e73565b61092b565b005b6102cc60048036038101906102c79190612de5565b61098b565b005b6102e860048036038101906102e39190612f79565b610a4b565b6040516102f59190613e29565b60405180910390f35b61031860048036038101906103139190612e73565b610af0565b005b610322610b10565b60405161032f9190613aec565b60405180910390f35b610352600480360381019061034d9190612fb5565b610b23565b005b61036e600480360381019061036991906130b6565b610d7e565b60405161037b9190613e29565b60405180910390f35b61039e60048036038101906103999190613075565b610e15565b005b6103ba60048036038101906103b591906130b6565b610eab565b6040516103c79190613a5c565b60405180910390f35b6103d8610f5d565b6040516103e59190613b07565b60405180910390f35b61040860048036038101906104039190612de5565b610feb565b6040516104159190613e29565b60405180910390f35b6104266110a3565b005b61043061112b565b60405161043d9190613a5c565b60405180910390f35b61044e611155565b60405161045b9190613b07565b60405180910390f35b61047e60048036038101906104799190612f3d565b6111e7565b005b61049a60048036038101906104959190612ec2565b611368565b005b6104b660048036038101906104b191906130b6565b6113ca565b6040516104c39190613b07565b60405180910390f35b6104e660048036038101906104e19190612ffa565b611471565b005b6104f061155a565b6040516104fd9190613aec565b60405180910390f35b610520600480360381019061051b9190612e37565b61156d565b60405161052d9190613aec565b60405180910390f35b61053e611601565b60405161054b9190613e29565b60405180910390f35b61056e60048036038101906105699190612de5565b611606565b005b61058a60048036038101906105859190612fb5565b6116fe565b005b60007f780e9d63000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614806105ff57506105fe826119ff565b5b9050919050565b60606000805461061590614089565b80601f016020809104026020016040519081016040528092919081815260200182805461064190614089565b801561068e5780601f106106635761010080835404028352916020019161068e565b820191906000526020600020905b81548152906001019060200180831161067157829003601f168201915b5050505050905090565b60006106a382611ae1565b6106e2576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016106d990613ce9565b60405180910390fd5b6004600083815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050919050565b600061072882610eab565b90508073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff161415610799576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161079090613d69565b60405180910390fd5b8073ffffffffffffffffffffffffffffffffffffffff166107b8611b4d565b73ffffffffffffffffffffffffffffffffffffffff1614806107e757506107e6816107e1611b4d565b61156d565b5b610826576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161081d90613c69565b60405180910390fd5b6108308383611b55565b505050565b61083d611b4d565b73ffffffffffffffffffffffffffffffffffffffff1661085b61112b565b73ffffffffffffffffffffffffffffffffffffffff16146108b1576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016108a890613d09565b60405180910390fd5b600e60009054906101000a900460ff1615610901576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016108f890613e09565b60405180910390fd5b6001600e60016101000a81548160ff021916908315150217905550565b6000600880549050905090565b61093c610936611b4d565b82611c0e565b61097b576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161097290613da9565b60405180910390fd5b610986838383611cec565b505050565b610993611b4d565b73ffffffffffffffffffffffffffffffffffffffff166109b161112b565b73ffffffffffffffffffffffffffffffffffffffff1614610a07576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016109fe90613d09565b60405180910390fd5b80600c60006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b6000610a5683610feb565b8210610a97576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610a8e90613b49565b60405180910390fd5b600660008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600083815260200190815260200160002054905092915050565b610b0b83838360405180602001604052806000815250611368565b505050565b600e60009054906101000a900460ff1681565b600e60009054906101000a900460ff16610b72576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610b6990613b29565b60405180910390fd5b60008282905011610bb8576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610baf90613b89565b60405180910390fd5b6032828290501115610bff576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610bf690613dc9565b60405180910390fd5b60005b82829050811015610d79576000838383818110610c48577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b90506020020135905060008111610c94576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610c8b90613d89565b60405180910390fd5b6001600c60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1662fdd58e33846040518363ffffffff1660e01b8152600401610cf2929190613ac3565b60206040518083038186803b158015610d0a57600080fd5b505afa158015610d1e573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610d4291906130df565b148015610d555750610d5381611ae1565b155b15610d6557610d643382611f48565b5b508080610d71906140bb565b915050610c02565b505050565b6000610d8861091e565b8210610dc9576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610dc090613de9565b60405180910390fd5b60088281548110610e03577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b90600052602060002001549050919050565b610e1d611b4d565b73ffffffffffffffffffffffffffffffffffffffff16610e3b61112b565b73ffffffffffffffffffffffffffffffffffffffff1614610e91576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610e8890613d09565b60405180910390fd5b80600d9080519060200190610ea7929190612b95565b5050565b6000806002600084815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff161415610f54576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610f4b90613ca9565b60405180910390fd5b80915050919050565b600d8054610f6a90614089565b80601f0160208091040260200160405190810160405280929190818152602001828054610f9690614089565b8015610fe35780601f10610fb857610100808354040283529160200191610fe3565b820191906000526020600020905b815481529060010190602001808311610fc657829003601f168201915b505050505081565b60008073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff16141561105c576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161105390613c89565b60405180910390fd5b600360008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020549050919050565b6110ab611b4d565b73ffffffffffffffffffffffffffffffffffffffff166110c961112b565b73ffffffffffffffffffffffffffffffffffffffff161461111f576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161111690613d09565b60405180910390fd5b6111296000611f66565b565b6000600a60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b60606001805461116490614089565b80601f016020809104026020016040519081016040528092919081815260200182805461119090614089565b80156111dd5780601f106111b2576101008083540402835291602001916111dd565b820191906000526020600020905b8154815290600101906020018083116111c057829003601f168201915b5050505050905090565b6111ef611b4d565b73ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff16141561125d576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161125490613c09565b60405180910390fd5b806005600061126a611b4d565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055508173ffffffffffffffffffffffffffffffffffffffff16611317611b4d565b73ffffffffffffffffffffffffffffffffffffffff167f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c318360405161135c9190613aec565b60405180910390a35050565b611379611373611b4d565b83611c0e565b6113b8576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016113af90613da9565b60405180910390fd5b6113c48484848461202c565b50505050565b60606113d582611ae1565b611414576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161140b90613d49565b60405180910390fd5b600061141e612088565b9050600081511161143e5760405180602001604052806000815250611469565b806114488461211a565b604051602001611459929190613a38565b6040516020818303038152906040525b915050919050565b611479611b4d565b73ffffffffffffffffffffffffffffffffffffffff1661149761112b565b73ffffffffffffffffffffffffffffffffffffffff16146114ed576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016114e490613d09565b60405180910390fd5b600e60019054906101000a900460ff161561153d576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161153490613c49565b60405180910390fd5b80600e60006101000a81548160ff02191690831515021790555050565b600e60019054906101000a900460ff1681565b6000600560008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16905092915050565b603281565b61160e611b4d565b73ffffffffffffffffffffffffffffffffffffffff1661162c61112b565b73ffffffffffffffffffffffffffffffffffffffff1614611682576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161167990613d09565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1614156116f2576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016116e990613ba9565b60405180910390fd5b6116fb81611f66565b50565b600e60009054906101000a900460ff1661174d576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161174490613b29565b60405180910390fd5b60008282905011611793576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161178a90613b89565b60405180910390fd5b6000600b60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166370a08231336040518263ffffffff1660e01b81526004016117f09190613a5c565b60206040518083038186803b15801561180857600080fd5b505afa15801561181c573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061184091906130df565b9050603283839050111580156118595750808383905011155b611898576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161188f90613dc9565b60405180910390fd5b60005b838390508110156119f95760008484838181106118e1577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b9050602002013590503373ffffffffffffffffffffffffffffffffffffffff16600b60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16636352211e836040518263ffffffff1660e01b815260040161195c9190613e29565b60206040518083038186803b15801561197457600080fd5b505afa158015611988573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906119ac9190612e0e565b73ffffffffffffffffffffffffffffffffffffffff161480156119d557506119d381611ae1565b155b156119e5576119e43382611f48565b5b5080806119f1906140bb565b91505061189b565b50505050565b60007f80ac58cd000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19161480611aca57507f5b5e139f000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b80611ada5750611ad9826122c7565b5b9050919050565b60008073ffffffffffffffffffffffffffffffffffffffff166002600084815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1614159050919050565b600033905090565b816004600083815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550808273ffffffffffffffffffffffffffffffffffffffff16611bc883610eab565b73ffffffffffffffffffffffffffffffffffffffff167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b6000611c1982611ae1565b611c58576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611c4f90613c29565b60405180910390fd5b6000611c6383610eab565b90508073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff161480611cd257508373ffffffffffffffffffffffffffffffffffffffff16611cba84610698565b73ffffffffffffffffffffffffffffffffffffffff16145b80611ce35750611ce2818561156d565b5b91505092915050565b8273ffffffffffffffffffffffffffffffffffffffff16611d0c82610eab565b73ffffffffffffffffffffffffffffffffffffffff1614611d62576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611d5990613d29565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161415611dd2576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611dc990613be9565b60405180910390fd5b611ddd838383612331565b611de8600082611b55565b6001600360008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000828254611e389190613f9f565b925050819055506001600360008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000828254611e8f9190613f18565b92505081905550816002600083815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550808273ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a4505050565b611f62828260405180602001604052806000815250612445565b5050565b6000600a60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905081600a60006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b612037848484611cec565b612043848484846124a0565b612082576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161207990613b69565b60405180910390fd5b50505050565b6060600d805461209790614089565b80601f01602080910402602001604051908101604052809291908181526020018280546120c390614089565b80156121105780601f106120e557610100808354040283529160200191612110565b820191906000526020600020905b8154815290600101906020018083116120f357829003601f168201915b5050505050905090565b60606000821415612162576040518060400160405280600181526020017f300000000000000000000000000000000000000000000000000000000000000081525090506122c2565b600082905060005b6000821461219457808061217d906140bb565b915050600a8261218d9190613f6e565b915061216a565b60008167ffffffffffffffff8111156121d6577f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b6040519080825280601f01601f1916602001820160405280156122085781602001600182028036833780820191505090505b5090505b600085146122bb576001826122219190613f9f565b9150600a856122309190614104565b603061223c9190613f18565b60f81b818381518110612278577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a905350600a856122b49190613f6e565b945061220c565b8093505050505b919050565b60007f01ffc9a7000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916149050919050565b61233c838383612637565b600073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff16141561237f5761237a8161263c565b6123be565b8173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff16146123bd576123bc8382612685565b5b5b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161415612401576123fc816127f2565b612440565b8273ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161461243f5761243e8282612935565b5b5b505050565b61244f83836129b4565b61245c60008484846124a0565b61249b576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161249290613b69565b60405180910390fd5b505050565b60006124c18473ffffffffffffffffffffffffffffffffffffffff16612b82565b1561262a578373ffffffffffffffffffffffffffffffffffffffff1663150b7a026124ea611b4d565b8786866040518563ffffffff1660e01b815260040161250c9493929190613a77565b602060405180830381600087803b15801561252657600080fd5b505af192505050801561255757506040513d601f19601f82011682018060405250810190612554919061304c565b60015b6125da573d8060008114612587576040519150601f19603f3d011682016040523d82523d6000602084013e61258c565b606091505b506000815114156125d2576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016125c990613b69565b60405180910390fd5b805181602001fd5b63150b7a0260e01b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916817bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19161491505061262f565b600190505b949350505050565b505050565b6008805490506009600083815260200190815260200160002081905550600881908060018154018082558091505060019003906000526020600020016000909190919091505550565b6000600161269284610feb565b61269c9190613f9f565b9050600060076000848152602001908152602001600020549050818114612781576000600660008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600084815260200190815260200160002054905080600660008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600084815260200190815260200160002081905550816007600083815260200190815260200160002081905550505b6007600084815260200190815260200160002060009055600660008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008381526020019081526020016000206000905550505050565b600060016008805490506128069190613f9f565b905060006009600084815260200190815260200160002054905060006008838154811061285c577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b9060005260206000200154905080600883815481106128a4577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b906000526020600020018190555081600960008381526020019081526020016000208190555060096000858152602001908152602001600020600090556008805480612919577f4e487b7100000000000000000000000000000000000000000000000000000000600052603160045260246000fd5b6001900381819060005260206000200160009055905550505050565b600061294083610feb565b905081600660008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600083815260200190815260200160002081905550806007600084815260200190815260200160002081905550505050565b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161415612a24576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612a1b90613cc9565b60405180910390fd5b612a2d81611ae1565b15612a6d576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612a6490613bc9565b60405180910390fd5b612a7960008383612331565b6001600360008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000828254612ac99190613f18565b92505081905550816002600083815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550808273ffffffffffffffffffffffffffffffffffffffff16600073ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a45050565b600080823b905060008111915050919050565b828054612ba190614089565b90600052602060002090601f016020900481019282612bc35760008555612c0a565b82601f10612bdc57805160ff1916838001178555612c0a565b82800160010185558215612c0a579182015b82811115612c09578251825591602001919060010190612bee565b5b509050612c179190612c1b565b5090565b5b80821115612c34576000816000905550600101612c1c565b5090565b6000612c4b612c4684613e75565b613e44565b905082815260208101848484011115612c6357600080fd5b612c6e848285614047565b509392505050565b6000612c89612c8484613ea5565b613e44565b905082815260208101848484011115612ca157600080fd5b612cac848285614047565b509392505050565b600081359050612cc381614202565b92915050565b600081519050612cd881614202565b92915050565b60008083601f840112612cf057600080fd5b8235905067ffffffffffffffff811115612d0957600080fd5b602083019150836020820283011115612d2157600080fd5b9250929050565b600081359050612d3781614219565b92915050565b600081359050612d4c81614230565b92915050565b600081519050612d6181614230565b92915050565b600082601f830112612d7857600080fd5b8135612d88848260208601612c38565b91505092915050565b600082601f830112612da257600080fd5b8135612db2848260208601612c76565b91505092915050565b600081359050612dca81614247565b92915050565b600081519050612ddf81614247565b92915050565b600060208284031215612df757600080fd5b6000612e0584828501612cb4565b91505092915050565b600060208284031215612e2057600080fd5b6000612e2e84828501612cc9565b91505092915050565b60008060408385031215612e4a57600080fd5b6000612e5885828601612cb4565b9250506020612e6985828601612cb4565b9150509250929050565b600080600060608486031215612e8857600080fd5b6000612e9686828701612cb4565b9350506020612ea786828701612cb4565b9250506040612eb886828701612dbb565b9150509250925092565b60008060008060808587031215612ed857600080fd5b6000612ee687828801612cb4565b9450506020612ef787828801612cb4565b9350506040612f0887828801612dbb565b925050606085013567ffffffffffffffff811115612f2557600080fd5b612f3187828801612d67565b91505092959194509250565b60008060408385031215612f5057600080fd5b6000612f5e85828601612cb4565b9250506020612f6f85828601612d28565b9150509250929050565b60008060408385031215612f8c57600080fd5b6000612f9a85828601612cb4565b9250506020612fab85828601612dbb565b9150509250929050565b60008060208385031215612fc857600080fd5b600083013567ffffffffffffffff811115612fe257600080fd5b612fee85828601612cde565b92509250509250929050565b60006020828403121561300c57600080fd5b600061301a84828501612d28565b91505092915050565b60006020828403121561303557600080fd5b600061304384828501612d3d565b91505092915050565b60006020828403121561305e57600080fd5b600061306c84828501612d52565b91505092915050565b60006020828403121561308757600080fd5b600082013567ffffffffffffffff8111156130a157600080fd5b6130ad84828501612d91565b91505092915050565b6000602082840312156130c857600080fd5b60006130d684828501612dbb565b91505092915050565b6000602082840312156130f157600080fd5b60006130ff84828501612dd0565b91505092915050565b61311181613fd3565b82525050565b61312081613fe5565b82525050565b600061313182613ed5565b61313b8185613eeb565b935061314b818560208601614056565b613154816141f1565b840191505092915050565b600061316a82613ee0565b6131748185613efc565b9350613184818560208601614056565b61318d816141f1565b840191505092915050565b60006131a382613ee0565b6131ad8185613f0d565b93506131bd818560208601614056565b80840191505092915050565b60006131d6601f83613efc565b91507f4d696e74696e67206973206e6f742063757272656e746c7920616374697665006000830152602082019050919050565b6000613216602b83613efc565b91507f455243373231456e756d657261626c653a206f776e657220696e646578206f7560008301527f74206f6620626f756e64730000000000000000000000000000000000000000006020830152604082019050919050565b600061327c603283613efc565b91507f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560008301527f63656976657220696d706c656d656e74657200000000000000000000000000006020830152604082019050919050565b60006132e2601483613efc565b91507f43616e6e6f74206d696e74203020746f74656d730000000000000000000000006000830152602082019050919050565b6000613322602683613efc565b91507f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160008301527f64647265737300000000000000000000000000000000000000000000000000006020830152604082019050919050565b6000613388601c83613efc565b91507f4552433732313a20746f6b656e20616c7265616479206d696e746564000000006000830152602082019050919050565b60006133c8602483613efc565b91507f4552433732313a207472616e7366657220746f20746865207a65726f2061646460008301527f72657373000000000000000000000000000000000000000000000000000000006020830152604082019050919050565b600061342e601983613efc565b91507f4552433732313a20617070726f766520746f2063616c6c6572000000000000006000830152602082019050919050565b600061346e602c83613efc565b91507f4552433732313a206f70657261746f7220717565727920666f72206e6f6e657860008301527f697374656e7420746f6b656e00000000000000000000000000000000000000006020830152604082019050919050565b60006134d4602a83613efc565b91507f43616e6e6f742072657365742c206173206d696e74696e67206973206c6f636b60008301527f656420666f7265766572000000000000000000000000000000000000000000006020830152604082019050919050565b600061353a603883613efc565b91507f4552433732313a20617070726f76652063616c6c6572206973206e6f74206f7760008301527f6e6572206e6f7220617070726f76656420666f7220616c6c00000000000000006020830152604082019050919050565b60006135a0602a83613efc565b91507f4552433732313a2062616c616e636520717565727920666f7220746865207a6560008301527f726f2061646472657373000000000000000000000000000000000000000000006020830152604082019050919050565b6000613606602983613efc565b91507f4552433732313a206f776e657220717565727920666f72206e6f6e657869737460008301527f656e7420746f6b656e00000000000000000000000000000000000000000000006020830152604082019050919050565b600061366c602083613efc565b91507f4552433732313a206d696e7420746f20746865207a65726f20616464726573736000830152602082019050919050565b60006136ac602c83613efc565b91507f4552433732313a20617070726f76656420717565727920666f72206e6f6e657860008301527f697374656e7420746f6b656e00000000000000000000000000000000000000006020830152604082019050919050565b6000613712602083613efc565b91507f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726000830152602082019050919050565b6000613752602983613efc565b91507f4552433732313a207472616e73666572206f6620746f6b656e2074686174206960008301527f73206e6f74206f776e00000000000000000000000000000000000000000000006020830152604082019050919050565b60006137b8602f83613efc565b91507f4552433732314d657461646174613a2055524920717565727920666f72206e6f60008301527f6e6578697374656e7420746f6b656e00000000000000000000000000000000006020830152604082019050919050565b600061381e602183613efc565b91507f4552433732313a20617070726f76616c20746f2063757272656e74206f776e6560008301527f72000000000000000000000000000000000000000000000000000000000000006020830152604082019050919050565b6000613884601d83613efc565b91507f43616e6e6f74206d696e74206120746f74656d207769746820696420300000006000830152602082019050919050565b60006138c4603183613efc565b91507f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f60008301527f776e6572206e6f7220617070726f7665640000000000000000000000000000006020830152604082019050919050565b600061392a601e83613efc565b91507f547279696e6720746f206d696e7420746f6f206d616e7920746f74656d7300006000830152602082019050919050565b600061396a602c83613efc565b91507f455243373231456e756d657261626c653a20676c6f62616c20696e646578206f60008301527f7574206f6620626f756e647300000000000000000000000000000000000000006020830152604082019050919050565b60006139d0602683613efc565b91507f43616e206f6e6c79206c6f636b207768656e206d696e74696e6720697320696e60008301527f61637469766500000000000000000000000000000000000000000000000000006020830152604082019050919050565b613a328161403d565b82525050565b6000613a448285613198565b9150613a508284613198565b91508190509392505050565b6000602082019050613a716000830184613108565b92915050565b6000608082019050613a8c6000830187613108565b613a996020830186613108565b613aa66040830185613a29565b8181036060830152613ab88184613126565b905095945050505050565b6000604082019050613ad86000830185613108565b613ae56020830184613a29565b9392505050565b6000602082019050613b016000830184613117565b92915050565b60006020820190508181036000830152613b21818461315f565b905092915050565b60006020820190508181036000830152613b42816131c9565b9050919050565b60006020820190508181036000830152613b6281613209565b9050919050565b60006020820190508181036000830152613b828161326f565b9050919050565b60006020820190508181036000830152613ba2816132d5565b9050919050565b60006020820190508181036000830152613bc281613315565b9050919050565b60006020820190508181036000830152613be28161337b565b9050919050565b60006020820190508181036000830152613c02816133bb565b9050919050565b60006020820190508181036000830152613c2281613421565b9050919050565b60006020820190508181036000830152613c4281613461565b9050919050565b60006020820190508181036000830152613c62816134c7565b9050919050565b60006020820190508181036000830152613c828161352d565b9050919050565b60006020820190508181036000830152613ca281613593565b9050919050565b60006020820190508181036000830152613cc2816135f9565b9050919050565b60006020820190508181036000830152613ce28161365f565b9050919050565b60006020820190508181036000830152613d028161369f565b9050919050565b60006020820190508181036000830152613d2281613705565b9050919050565b60006020820190508181036000830152613d4281613745565b9050919050565b60006020820190508181036000830152613d62816137ab565b9050919050565b60006020820190508181036000830152613d8281613811565b9050919050565b60006020820190508181036000830152613da281613877565b9050919050565b60006020820190508181036000830152613dc2816138b7565b9050919050565b60006020820190508181036000830152613de28161391d565b9050919050565b60006020820190508181036000830152613e028161395d565b9050919050565b60006020820190508181036000830152613e22816139c3565b9050919050565b6000602082019050613e3e6000830184613a29565b92915050565b6000604051905081810181811067ffffffffffffffff82111715613e6b57613e6a6141c2565b5b8060405250919050565b600067ffffffffffffffff821115613e9057613e8f6141c2565b5b601f19601f8301169050602081019050919050565b600067ffffffffffffffff821115613ec057613ebf6141c2565b5b601f19601f8301169050602081019050919050565b600081519050919050565b600081519050919050565b600082825260208201905092915050565b600082825260208201905092915050565b600081905092915050565b6000613f238261403d565b9150613f2e8361403d565b9250827fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff03821115613f6357613f62614135565b5b828201905092915050565b6000613f798261403d565b9150613f848361403d565b925082613f9457613f93614164565b5b828204905092915050565b6000613faa8261403d565b9150613fb58361403d565b925082821015613fc857613fc7614135565b5b828203905092915050565b6000613fde8261401d565b9050919050565b60008115159050919050565b60007fffffffff0000000000000000000000000000000000000000000000000000000082169050919050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000819050919050565b82818337600083830152505050565b60005b83811015614074578082015181840152602081019050614059565b83811115614083576000848401525b50505050565b600060028204905060018216806140a157607f821691505b602082108114156140b5576140b4614193565b5b50919050565b60006140c68261403d565b91507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff8214156140f9576140f8614135565b5b600182019050919050565b600061410f8261403d565b915061411a8361403d565b92508261412a57614129614164565b5b828206905092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b6000601f19601f8301169050919050565b61420b81613fd3565b811461421657600080fd5b50565b61422281613fe5565b811461422d57600080fd5b50565b61423981613ff1565b811461424457600080fd5b50565b6142508161403d565b811461425b57600080fd5b5056fea2646970667358221220437245d73eaa8a243538e9d67ce363fff3d3c4a65ed1e3d4dcb8c3f890e70e7764736f6c634300080000330000000000000000000000000000000000000000000000000000000000000040000000000000000000000000b5f3dee204ca76e913bb3129ba0312b9f0f31d820000000000000000000000000000000000000000000000000000000000000000
Deployed Bytecode
0x608060405234801561001057600080fd5b50600436106101cf5760003560e01c80636352211e11610104578063b88d4fde116100a2578063e985e9c511610071578063e985e9c514610506578063f0292a0314610536578063f2fde38b14610554578063ffb2b55a14610570576101cf565b8063b88d4fde14610480578063c87b56dd1461049c578063d19653fb146104cc578063df3c3a30146104e8576101cf565b8063715018a6116100de578063715018a61461041e5780638da5cb5b1461042857806395d89b4114610446578063a22cb46514610464576101cf565b80636352211e146103a05780636c0360eb146103d057806370a08231146103ee576101cf565b8063253224fb11610171578063471a42941161014b578063471a42941461031a57806348318ce0146103385780634f6ccce71461035457806355f804b314610384576101cf565b8063253224fb146102b25780632f745c59146102ce57806342842e0e146102fe576101cf565b8063095ea7b3116101ad578063095ea7b3146102525780630d7982ad1461026e57806318160ddd1461027857806323b872dd14610296576101cf565b806301ffc9a7146101d457806306fdde0314610204578063081812fc14610222575b600080fd5b6101ee60048036038101906101e99190613023565b61058c565b6040516101fb9190613aec565b60405180910390f35b61020c610606565b6040516102199190613b07565b60405180910390f35b61023c600480360381019061023791906130b6565b610698565b6040516102499190613a5c565b60405180910390f35b61026c60048036038101906102679190612f79565b61071d565b005b610276610835565b005b61028061091e565b60405161028d9190613e29565b60405180910390f35b6102b060048036038101906102ab9190612e73565b61092b565b005b6102cc60048036038101906102c79190612de5565b61098b565b005b6102e860048036038101906102e39190612f79565b610a4b565b6040516102f59190613e29565b60405180910390f35b61031860048036038101906103139190612e73565b610af0565b005b610322610b10565b60405161032f9190613aec565b60405180910390f35b610352600480360381019061034d9190612fb5565b610b23565b005b61036e600480360381019061036991906130b6565b610d7e565b60405161037b9190613e29565b60405180910390f35b61039e60048036038101906103999190613075565b610e15565b005b6103ba60048036038101906103b591906130b6565b610eab565b6040516103c79190613a5c565b60405180910390f35b6103d8610f5d565b6040516103e59190613b07565b60405180910390f35b61040860048036038101906104039190612de5565b610feb565b6040516104159190613e29565b60405180910390f35b6104266110a3565b005b61043061112b565b60405161043d9190613a5c565b60405180910390f35b61044e611155565b60405161045b9190613b07565b60405180910390f35b61047e60048036038101906104799190612f3d565b6111e7565b005b61049a60048036038101906104959190612ec2565b611368565b005b6104b660048036038101906104b191906130b6565b6113ca565b6040516104c39190613b07565b60405180910390f35b6104e660048036038101906104e19190612ffa565b611471565b005b6104f061155a565b6040516104fd9190613aec565b60405180910390f35b610520600480360381019061051b9190612e37565b61156d565b60405161052d9190613aec565b60405180910390f35b61053e611601565b60405161054b9190613e29565b60405180910390f35b61056e60048036038101906105699190612de5565b611606565b005b61058a60048036038101906105859190612fb5565b6116fe565b005b60007f780e9d63000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614806105ff57506105fe826119ff565b5b9050919050565b60606000805461061590614089565b80601f016020809104026020016040519081016040528092919081815260200182805461064190614089565b801561068e5780601f106106635761010080835404028352916020019161068e565b820191906000526020600020905b81548152906001019060200180831161067157829003601f168201915b5050505050905090565b60006106a382611ae1565b6106e2576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016106d990613ce9565b60405180910390fd5b6004600083815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050919050565b600061072882610eab565b90508073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff161415610799576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161079090613d69565b60405180910390fd5b8073ffffffffffffffffffffffffffffffffffffffff166107b8611b4d565b73ffffffffffffffffffffffffffffffffffffffff1614806107e757506107e6816107e1611b4d565b61156d565b5b610826576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161081d90613c69565b60405180910390fd5b6108308383611b55565b505050565b61083d611b4d565b73ffffffffffffffffffffffffffffffffffffffff1661085b61112b565b73ffffffffffffffffffffffffffffffffffffffff16146108b1576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016108a890613d09565b60405180910390fd5b600e60009054906101000a900460ff1615610901576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016108f890613e09565b60405180910390fd5b6001600e60016101000a81548160ff021916908315150217905550565b6000600880549050905090565b61093c610936611b4d565b82611c0e565b61097b576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161097290613da9565b60405180910390fd5b610986838383611cec565b505050565b610993611b4d565b73ffffffffffffffffffffffffffffffffffffffff166109b161112b565b73ffffffffffffffffffffffffffffffffffffffff1614610a07576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016109fe90613d09565b60405180910390fd5b80600c60006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b6000610a5683610feb565b8210610a97576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610a8e90613b49565b60405180910390fd5b600660008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600083815260200190815260200160002054905092915050565b610b0b83838360405180602001604052806000815250611368565b505050565b600e60009054906101000a900460ff1681565b600e60009054906101000a900460ff16610b72576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610b6990613b29565b60405180910390fd5b60008282905011610bb8576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610baf90613b89565b60405180910390fd5b6032828290501115610bff576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610bf690613dc9565b60405180910390fd5b60005b82829050811015610d79576000838383818110610c48577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b90506020020135905060008111610c94576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610c8b90613d89565b60405180910390fd5b6001600c60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1662fdd58e33846040518363ffffffff1660e01b8152600401610cf2929190613ac3565b60206040518083038186803b158015610d0a57600080fd5b505afa158015610d1e573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610d4291906130df565b148015610d555750610d5381611ae1565b155b15610d6557610d643382611f48565b5b508080610d71906140bb565b915050610c02565b505050565b6000610d8861091e565b8210610dc9576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610dc090613de9565b60405180910390fd5b60088281548110610e03577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b90600052602060002001549050919050565b610e1d611b4d565b73ffffffffffffffffffffffffffffffffffffffff16610e3b61112b565b73ffffffffffffffffffffffffffffffffffffffff1614610e91576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610e8890613d09565b60405180910390fd5b80600d9080519060200190610ea7929190612b95565b5050565b6000806002600084815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff161415610f54576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610f4b90613ca9565b60405180910390fd5b80915050919050565b600d8054610f6a90614089565b80601f0160208091040260200160405190810160405280929190818152602001828054610f9690614089565b8015610fe35780601f10610fb857610100808354040283529160200191610fe3565b820191906000526020600020905b815481529060010190602001808311610fc657829003601f168201915b505050505081565b60008073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff16141561105c576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161105390613c89565b60405180910390fd5b600360008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020549050919050565b6110ab611b4d565b73ffffffffffffffffffffffffffffffffffffffff166110c961112b565b73ffffffffffffffffffffffffffffffffffffffff161461111f576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161111690613d09565b60405180910390fd5b6111296000611f66565b565b6000600a60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b60606001805461116490614089565b80601f016020809104026020016040519081016040528092919081815260200182805461119090614089565b80156111dd5780601f106111b2576101008083540402835291602001916111dd565b820191906000526020600020905b8154815290600101906020018083116111c057829003601f168201915b5050505050905090565b6111ef611b4d565b73ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff16141561125d576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161125490613c09565b60405180910390fd5b806005600061126a611b4d565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055508173ffffffffffffffffffffffffffffffffffffffff16611317611b4d565b73ffffffffffffffffffffffffffffffffffffffff167f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c318360405161135c9190613aec565b60405180910390a35050565b611379611373611b4d565b83611c0e565b6113b8576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016113af90613da9565b60405180910390fd5b6113c48484848461202c565b50505050565b60606113d582611ae1565b611414576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161140b90613d49565b60405180910390fd5b600061141e612088565b9050600081511161143e5760405180602001604052806000815250611469565b806114488461211a565b604051602001611459929190613a38565b6040516020818303038152906040525b915050919050565b611479611b4d565b73ffffffffffffffffffffffffffffffffffffffff1661149761112b565b73ffffffffffffffffffffffffffffffffffffffff16146114ed576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016114e490613d09565b60405180910390fd5b600e60019054906101000a900460ff161561153d576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161153490613c49565b60405180910390fd5b80600e60006101000a81548160ff02191690831515021790555050565b600e60019054906101000a900460ff1681565b6000600560008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16905092915050565b603281565b61160e611b4d565b73ffffffffffffffffffffffffffffffffffffffff1661162c61112b565b73ffffffffffffffffffffffffffffffffffffffff1614611682576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161167990613d09565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1614156116f2576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016116e990613ba9565b60405180910390fd5b6116fb81611f66565b50565b600e60009054906101000a900460ff1661174d576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161174490613b29565b60405180910390fd5b60008282905011611793576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161178a90613b89565b60405180910390fd5b6000600b60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166370a08231336040518263ffffffff1660e01b81526004016117f09190613a5c565b60206040518083038186803b15801561180857600080fd5b505afa15801561181c573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061184091906130df565b9050603283839050111580156118595750808383905011155b611898576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161188f90613dc9565b60405180910390fd5b60005b838390508110156119f95760008484838181106118e1577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b9050602002013590503373ffffffffffffffffffffffffffffffffffffffff16600b60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16636352211e836040518263ffffffff1660e01b815260040161195c9190613e29565b60206040518083038186803b15801561197457600080fd5b505afa158015611988573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906119ac9190612e0e565b73ffffffffffffffffffffffffffffffffffffffff161480156119d557506119d381611ae1565b155b156119e5576119e43382611f48565b5b5080806119f1906140bb565b91505061189b565b50505050565b60007f80ac58cd000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19161480611aca57507f5b5e139f000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b80611ada5750611ad9826122c7565b5b9050919050565b60008073ffffffffffffffffffffffffffffffffffffffff166002600084815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1614159050919050565b600033905090565b816004600083815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550808273ffffffffffffffffffffffffffffffffffffffff16611bc883610eab565b73ffffffffffffffffffffffffffffffffffffffff167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b6000611c1982611ae1565b611c58576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611c4f90613c29565b60405180910390fd5b6000611c6383610eab565b90508073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff161480611cd257508373ffffffffffffffffffffffffffffffffffffffff16611cba84610698565b73ffffffffffffffffffffffffffffffffffffffff16145b80611ce35750611ce2818561156d565b5b91505092915050565b8273ffffffffffffffffffffffffffffffffffffffff16611d0c82610eab565b73ffffffffffffffffffffffffffffffffffffffff1614611d62576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611d5990613d29565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161415611dd2576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611dc990613be9565b60405180910390fd5b611ddd838383612331565b611de8600082611b55565b6001600360008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000828254611e389190613f9f565b925050819055506001600360008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000828254611e8f9190613f18565b92505081905550816002600083815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550808273ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a4505050565b611f62828260405180602001604052806000815250612445565b5050565b6000600a60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905081600a60006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b612037848484611cec565b612043848484846124a0565b612082576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161207990613b69565b60405180910390fd5b50505050565b6060600d805461209790614089565b80601f01602080910402602001604051908101604052809291908181526020018280546120c390614089565b80156121105780601f106120e557610100808354040283529160200191612110565b820191906000526020600020905b8154815290600101906020018083116120f357829003601f168201915b5050505050905090565b60606000821415612162576040518060400160405280600181526020017f300000000000000000000000000000000000000000000000000000000000000081525090506122c2565b600082905060005b6000821461219457808061217d906140bb565b915050600a8261218d9190613f6e565b915061216a565b60008167ffffffffffffffff8111156121d6577f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b6040519080825280601f01601f1916602001820160405280156122085781602001600182028036833780820191505090505b5090505b600085146122bb576001826122219190613f9f565b9150600a856122309190614104565b603061223c9190613f18565b60f81b818381518110612278577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a905350600a856122b49190613f6e565b945061220c565b8093505050505b919050565b60007f01ffc9a7000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916149050919050565b61233c838383612637565b600073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff16141561237f5761237a8161263c565b6123be565b8173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff16146123bd576123bc8382612685565b5b5b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161415612401576123fc816127f2565b612440565b8273ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161461243f5761243e8282612935565b5b5b505050565b61244f83836129b4565b61245c60008484846124a0565b61249b576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161249290613b69565b60405180910390fd5b505050565b60006124c18473ffffffffffffffffffffffffffffffffffffffff16612b82565b1561262a578373ffffffffffffffffffffffffffffffffffffffff1663150b7a026124ea611b4d565b8786866040518563ffffffff1660e01b815260040161250c9493929190613a77565b602060405180830381600087803b15801561252657600080fd5b505af192505050801561255757506040513d601f19601f82011682018060405250810190612554919061304c565b60015b6125da573d8060008114612587576040519150601f19603f3d011682016040523d82523d6000602084013e61258c565b606091505b506000815114156125d2576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016125c990613b69565b60405180910390fd5b805181602001fd5b63150b7a0260e01b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916817bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19161491505061262f565b600190505b949350505050565b505050565b6008805490506009600083815260200190815260200160002081905550600881908060018154018082558091505060019003906000526020600020016000909190919091505550565b6000600161269284610feb565b61269c9190613f9f565b9050600060076000848152602001908152602001600020549050818114612781576000600660008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600084815260200190815260200160002054905080600660008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600084815260200190815260200160002081905550816007600083815260200190815260200160002081905550505b6007600084815260200190815260200160002060009055600660008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008381526020019081526020016000206000905550505050565b600060016008805490506128069190613f9f565b905060006009600084815260200190815260200160002054905060006008838154811061285c577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b9060005260206000200154905080600883815481106128a4577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b906000526020600020018190555081600960008381526020019081526020016000208190555060096000858152602001908152602001600020600090556008805480612919577f4e487b7100000000000000000000000000000000000000000000000000000000600052603160045260246000fd5b6001900381819060005260206000200160009055905550505050565b600061294083610feb565b905081600660008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600083815260200190815260200160002081905550806007600084815260200190815260200160002081905550505050565b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161415612a24576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612a1b90613cc9565b60405180910390fd5b612a2d81611ae1565b15612a6d576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612a6490613bc9565b60405180910390fd5b612a7960008383612331565b6001600360008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000828254612ac99190613f18565b92505081905550816002600083815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550808273ffffffffffffffffffffffffffffffffffffffff16600073ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a45050565b600080823b905060008111915050919050565b828054612ba190614089565b90600052602060002090601f016020900481019282612bc35760008555612c0a565b82601f10612bdc57805160ff1916838001178555612c0a565b82800160010185558215612c0a579182015b82811115612c09578251825591602001919060010190612bee565b5b509050612c179190612c1b565b5090565b5b80821115612c34576000816000905550600101612c1c565b5090565b6000612c4b612c4684613e75565b613e44565b905082815260208101848484011115612c6357600080fd5b612c6e848285614047565b509392505050565b6000612c89612c8484613ea5565b613e44565b905082815260208101848484011115612ca157600080fd5b612cac848285614047565b509392505050565b600081359050612cc381614202565b92915050565b600081519050612cd881614202565b92915050565b60008083601f840112612cf057600080fd5b8235905067ffffffffffffffff811115612d0957600080fd5b602083019150836020820283011115612d2157600080fd5b9250929050565b600081359050612d3781614219565b92915050565b600081359050612d4c81614230565b92915050565b600081519050612d6181614230565b92915050565b600082601f830112612d7857600080fd5b8135612d88848260208601612c38565b91505092915050565b600082601f830112612da257600080fd5b8135612db2848260208601612c76565b91505092915050565b600081359050612dca81614247565b92915050565b600081519050612ddf81614247565b92915050565b600060208284031215612df757600080fd5b6000612e0584828501612cb4565b91505092915050565b600060208284031215612e2057600080fd5b6000612e2e84828501612cc9565b91505092915050565b60008060408385031215612e4a57600080fd5b6000612e5885828601612cb4565b9250506020612e6985828601612cb4565b9150509250929050565b600080600060608486031215612e8857600080fd5b6000612e9686828701612cb4565b9350506020612ea786828701612cb4565b9250506040612eb886828701612dbb565b9150509250925092565b60008060008060808587031215612ed857600080fd5b6000612ee687828801612cb4565b9450506020612ef787828801612cb4565b9350506040612f0887828801612dbb565b925050606085013567ffffffffffffffff811115612f2557600080fd5b612f3187828801612d67565b91505092959194509250565b60008060408385031215612f5057600080fd5b6000612f5e85828601612cb4565b9250506020612f6f85828601612d28565b9150509250929050565b60008060408385031215612f8c57600080fd5b6000612f9a85828601612cb4565b9250506020612fab85828601612dbb565b9150509250929050565b60008060208385031215612fc857600080fd5b600083013567ffffffffffffffff811115612fe257600080fd5b612fee85828601612cde565b92509250509250929050565b60006020828403121561300c57600080fd5b600061301a84828501612d28565b91505092915050565b60006020828403121561303557600080fd5b600061304384828501612d3d565b91505092915050565b60006020828403121561305e57600080fd5b600061306c84828501612d52565b91505092915050565b60006020828403121561308757600080fd5b600082013567ffffffffffffffff8111156130a157600080fd5b6130ad84828501612d91565b91505092915050565b6000602082840312156130c857600080fd5b60006130d684828501612dbb565b91505092915050565b6000602082840312156130f157600080fd5b60006130ff84828501612dd0565b91505092915050565b61311181613fd3565b82525050565b61312081613fe5565b82525050565b600061313182613ed5565b61313b8185613eeb565b935061314b818560208601614056565b613154816141f1565b840191505092915050565b600061316a82613ee0565b6131748185613efc565b9350613184818560208601614056565b61318d816141f1565b840191505092915050565b60006131a382613ee0565b6131ad8185613f0d565b93506131bd818560208601614056565b80840191505092915050565b60006131d6601f83613efc565b91507f4d696e74696e67206973206e6f742063757272656e746c7920616374697665006000830152602082019050919050565b6000613216602b83613efc565b91507f455243373231456e756d657261626c653a206f776e657220696e646578206f7560008301527f74206f6620626f756e64730000000000000000000000000000000000000000006020830152604082019050919050565b600061327c603283613efc565b91507f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560008301527f63656976657220696d706c656d656e74657200000000000000000000000000006020830152604082019050919050565b60006132e2601483613efc565b91507f43616e6e6f74206d696e74203020746f74656d730000000000000000000000006000830152602082019050919050565b6000613322602683613efc565b91507f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160008301527f64647265737300000000000000000000000000000000000000000000000000006020830152604082019050919050565b6000613388601c83613efc565b91507f4552433732313a20746f6b656e20616c7265616479206d696e746564000000006000830152602082019050919050565b60006133c8602483613efc565b91507f4552433732313a207472616e7366657220746f20746865207a65726f2061646460008301527f72657373000000000000000000000000000000000000000000000000000000006020830152604082019050919050565b600061342e601983613efc565b91507f4552433732313a20617070726f766520746f2063616c6c6572000000000000006000830152602082019050919050565b600061346e602c83613efc565b91507f4552433732313a206f70657261746f7220717565727920666f72206e6f6e657860008301527f697374656e7420746f6b656e00000000000000000000000000000000000000006020830152604082019050919050565b60006134d4602a83613efc565b91507f43616e6e6f742072657365742c206173206d696e74696e67206973206c6f636b60008301527f656420666f7265766572000000000000000000000000000000000000000000006020830152604082019050919050565b600061353a603883613efc565b91507f4552433732313a20617070726f76652063616c6c6572206973206e6f74206f7760008301527f6e6572206e6f7220617070726f76656420666f7220616c6c00000000000000006020830152604082019050919050565b60006135a0602a83613efc565b91507f4552433732313a2062616c616e636520717565727920666f7220746865207a6560008301527f726f2061646472657373000000000000000000000000000000000000000000006020830152604082019050919050565b6000613606602983613efc565b91507f4552433732313a206f776e657220717565727920666f72206e6f6e657869737460008301527f656e7420746f6b656e00000000000000000000000000000000000000000000006020830152604082019050919050565b600061366c602083613efc565b91507f4552433732313a206d696e7420746f20746865207a65726f20616464726573736000830152602082019050919050565b60006136ac602c83613efc565b91507f4552433732313a20617070726f76656420717565727920666f72206e6f6e657860008301527f697374656e7420746f6b656e00000000000000000000000000000000000000006020830152604082019050919050565b6000613712602083613efc565b91507f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726000830152602082019050919050565b6000613752602983613efc565b91507f4552433732313a207472616e73666572206f6620746f6b656e2074686174206960008301527f73206e6f74206f776e00000000000000000000000000000000000000000000006020830152604082019050919050565b60006137b8602f83613efc565b91507f4552433732314d657461646174613a2055524920717565727920666f72206e6f60008301527f6e6578697374656e7420746f6b656e00000000000000000000000000000000006020830152604082019050919050565b600061381e602183613efc565b91507f4552433732313a20617070726f76616c20746f2063757272656e74206f776e6560008301527f72000000000000000000000000000000000000000000000000000000000000006020830152604082019050919050565b6000613884601d83613efc565b91507f43616e6e6f74206d696e74206120746f74656d207769746820696420300000006000830152602082019050919050565b60006138c4603183613efc565b91507f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f60008301527f776e6572206e6f7220617070726f7665640000000000000000000000000000006020830152604082019050919050565b600061392a601e83613efc565b91507f547279696e6720746f206d696e7420746f6f206d616e7920746f74656d7300006000830152602082019050919050565b600061396a602c83613efc565b91507f455243373231456e756d657261626c653a20676c6f62616c20696e646578206f60008301527f7574206f6620626f756e647300000000000000000000000000000000000000006020830152604082019050919050565b60006139d0602683613efc565b91507f43616e206f6e6c79206c6f636b207768656e206d696e74696e6720697320696e60008301527f61637469766500000000000000000000000000000000000000000000000000006020830152604082019050919050565b613a328161403d565b82525050565b6000613a448285613198565b9150613a508284613198565b91508190509392505050565b6000602082019050613a716000830184613108565b92915050565b6000608082019050613a8c6000830187613108565b613a996020830186613108565b613aa66040830185613a29565b8181036060830152613ab88184613126565b905095945050505050565b6000604082019050613ad86000830185613108565b613ae56020830184613a29565b9392505050565b6000602082019050613b016000830184613117565b92915050565b60006020820190508181036000830152613b21818461315f565b905092915050565b60006020820190508181036000830152613b42816131c9565b9050919050565b60006020820190508181036000830152613b6281613209565b9050919050565b60006020820190508181036000830152613b828161326f565b9050919050565b60006020820190508181036000830152613ba2816132d5565b9050919050565b60006020820190508181036000830152613bc281613315565b9050919050565b60006020820190508181036000830152613be28161337b565b9050919050565b60006020820190508181036000830152613c02816133bb565b9050919050565b60006020820190508181036000830152613c2281613421565b9050919050565b60006020820190508181036000830152613c4281613461565b9050919050565b60006020820190508181036000830152613c62816134c7565b9050919050565b60006020820190508181036000830152613c828161352d565b9050919050565b60006020820190508181036000830152613ca281613593565b9050919050565b60006020820190508181036000830152613cc2816135f9565b9050919050565b60006020820190508181036000830152613ce28161365f565b9050919050565b60006020820190508181036000830152613d028161369f565b9050919050565b60006020820190508181036000830152613d2281613705565b9050919050565b60006020820190508181036000830152613d4281613745565b9050919050565b60006020820190508181036000830152613d62816137ab565b9050919050565b60006020820190508181036000830152613d8281613811565b9050919050565b60006020820190508181036000830152613da281613877565b9050919050565b60006020820190508181036000830152613dc2816138b7565b9050919050565b60006020820190508181036000830152613de28161391d565b9050919050565b60006020820190508181036000830152613e028161395d565b9050919050565b60006020820190508181036000830152613e22816139c3565b9050919050565b6000602082019050613e3e6000830184613a29565b92915050565b6000604051905081810181811067ffffffffffffffff82111715613e6b57613e6a6141c2565b5b8060405250919050565b600067ffffffffffffffff821115613e9057613e8f6141c2565b5b601f19601f8301169050602081019050919050565b600067ffffffffffffffff821115613ec057613ebf6141c2565b5b601f19601f8301169050602081019050919050565b600081519050919050565b600081519050919050565b600082825260208201905092915050565b600082825260208201905092915050565b600081905092915050565b6000613f238261403d565b9150613f2e8361403d565b9250827fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff03821115613f6357613f62614135565b5b828201905092915050565b6000613f798261403d565b9150613f848361403d565b925082613f9457613f93614164565b5b828204905092915050565b6000613faa8261403d565b9150613fb58361403d565b925082821015613fc857613fc7614135565b5b828203905092915050565b6000613fde8261401d565b9050919050565b60008115159050919050565b60007fffffffff0000000000000000000000000000000000000000000000000000000082169050919050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000819050919050565b82818337600083830152505050565b60005b83811015614074578082015181840152602081019050614059565b83811115614083576000848401525b50505050565b600060028204905060018216806140a157607f821691505b602082108114156140b5576140b4614193565b5b50919050565b60006140c68261403d565b91507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff8214156140f9576140f8614135565b5b600182019050919050565b600061410f8261403d565b915061411a8361403d565b92508261412a57614129614164565b5b828206905092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b6000601f19601f8301169050919050565b61420b81613fd3565b811461421657600080fd5b50565b61422281613fe5565b811461422d57600080fd5b50565b61423981613ff1565b811461424457600080fd5b50565b6142508161403d565b811461425b57600080fd5b5056fea2646970667358221220437245d73eaa8a243538e9d67ce363fff3d3c4a65ed1e3d4dcb8c3f890e70e7764736f6c63430008000033
Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)
0000000000000000000000000000000000000000000000000000000000000040000000000000000000000000b5f3dee204ca76e913bb3129ba0312b9f0f31d820000000000000000000000000000000000000000000000000000000000000000
-----Decoded View---------------
Arg [0] : _initialBaseURI (string):
Arg [1] : _omnimorphsContractAddress (address): 0xb5f3dEE204cA76E913bb3129BA0312b9f0f31D82
-----Encoded View---------------
3 Constructor Arguments found :
Arg [0] : 0000000000000000000000000000000000000000000000000000000000000040
Arg [1] : 000000000000000000000000b5f3dee204ca76e913bb3129ba0312b9f0f31d82
Arg [2] : 0000000000000000000000000000000000000000000000000000000000000000
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.