ERC-1155
Overview
Max Total Supply
660
Holders
400
Market
Volume (24H)
N/A
Min Price (24H)
N/A
Max Price (24H)
N/A
Other Info
Token Contract
Loading...
Loading
Loading...
Loading
Loading...
Loading
# | Exchange | Pair | Price | 24H Volume | % Volume |
---|
Contract Name:
OmniFusion
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/ERC1155/ERC1155.sol"; import "@openzeppelin/contracts/access/Ownable.sol"; import "@openzeppelin/contracts/token/ERC721/ERC721.sol"; import "@openzeppelin/contracts/utils/cryptography/ECDSA.sol"; import "./IOmniFusion.sol"; import "./IOmniFusionBurn.sol"; contract OmniFusion is ERC1155, IOmniFusion, IOmniFusionBurn, Ownable { using ECDSA for bytes32; event Fused(address sender, uint fusedId, uint burnedId, bytes32 fusionReceiptIPFSHash); // 2 byte multiHash prefix bytes2 constant public IPFSMultiHashPrefix = 0x1220; // the Omnimorphs contract IERC721 public omnimorphsContract; // public key to validate transactions from the centralized fusion app address public fusionSigner; // whether fusion is active bool public isFusionActive = false; // whether fusion is locked forever bool public isFusionLocked = false; // IPFS hash to the fusion receipt for the fusion at hand // hashes need to be prefixed with ipfsMultiHashPrefix and base58 encoded to // be used as urls to access the actual IPFS document mapping(uint => bytes32) private _fusedIdFusionReceiptIPFSHashMap; constructor(string memory initialURI, address _omnimorphsAddress, address _signer) ERC1155(initialURI) { omnimorphsContract = IERC721(_omnimorphsAddress); fusionSigner = _signer; } // PUBLIC // fuses two tokens function fuseTokens(address sender, uint toFuse, uint toBurn, bytes calldata payload) public override { require(isFusionActive, "Fusion is currently not active"); require(msg.sender == address(omnimorphsContract), "Only the Omnimorphs contract can call this method"); require(omnimorphsContract.ownerOf(toFuse) == sender && omnimorphsContract.ownerOf(toBurn) == sender, "Tokens not owned by sender"); require( _fusedIdFusionReceiptIPFSHashMap[toFuse] == bytes32(0), "Fused token has already been fused" ); require( _fusedIdFusionReceiptIPFSHashMap[toBurn] == bytes32(0), "Burned token has already been fused" ); bytes32 IPFSHash = _bytesToBytes32(payload[0:32]); bytes memory signature = payload[32:payload.length]; require( _matchAddressSigner(_hashTransaction(sender, toFuse, toBurn, IPFSHash), signature), "Signature is incorrect" ); _fusedIdFusionReceiptIPFSHashMap[toFuse] = IPFSHash; _mintShard(sender, toBurn); emit Fused(sender, toFuse, toBurn, IPFSHash); } // gets the IPFS hash of the fusion receipt // needs to be base58 encoded to work as a uri function getFusionReceiptIPFSHash(uint id) external view returns(bytes memory) { return abi.encodePacked(IPFSMultiHashPrefix, _fusedIdFusionReceiptIPFSHashMap[id]); } // owners and approved operators can burn their own soul shards function burn(address sender, uint id, uint amount) external override { require(sender == msg.sender || isApprovedForAll(sender, msg.sender), "Burn caller is not owner nor approved"); require(balanceOf(sender, id) >= amount, "Trying too burn too many tokens"); _burn(sender, id, amount); } // OWNER // activate and deactivate fusion function setIsFusionActive(bool value) external onlyOwner { require(!isFusionLocked, "Cannot reset, as fusion is locked forever"); isFusionActive = value; } // lock fusion forever function lockFusion() external onlyOwner { require(!isFusionActive, "Can only lock when fusion is inactive"); isFusionLocked = true; } // set signer for signature verification function setFusionSigner(address value) external onlyOwner { fusionSigner = value; } // sets the ERC1155 base uri function setURI(string memory value) external onlyOwner { _setURI(value); } // INTERNAL // mints a shard to address function _mintShard(address to, uint toBurn) private { _mint(to, toBurn, 1, "0x"); } // generates a hash from arguments function _hashTransaction(address sender, uint toFuse, uint toBurn, bytes32 IPFSHash) private pure returns(bytes32) { bytes32 hash = keccak256(abi.encodePacked( "\x19Ethereum Signed Message:\n32", keccak256(abi.encodePacked(sender, toFuse, toBurn, IPFSHash))) ); return hash; } // checks signature against a hash, to see if the private pair of signer signed it function _matchAddressSigner(bytes32 hash, bytes memory signature) private view returns(bool) { return fusionSigner == hash.recover(signature); } function _bytesToBytes32(bytes memory source) private pure returns (bytes32 result) { require(source.length == 32, "Source bytes array has to be of length 32"); assembly { result := mload(add(source, 32)) } } }
// 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; /** * @dev Elliptic Curve Digital Signature Algorithm (ECDSA) operations. * * These functions can be used to verify that a message was signed by the holder * of the private keys of a given address. */ library ECDSA { /** * @dev Returns the address that signed a hashed message (`hash`) with * `signature`. This address can then be used for verification purposes. * * The `ecrecover` EVM opcode allows for malleable (non-unique) signatures: * this function rejects them by requiring the `s` value to be in the lower * half order, and the `v` value to be either 27 or 28. * * IMPORTANT: `hash` _must_ be the result of a hash operation for the * verification to be secure: it is possible to craft signatures that * recover to arbitrary addresses for non-hashed data. A safe way to ensure * this is by receiving a hash of the original message (which may otherwise * be too long), and then calling {toEthSignedMessageHash} on it. * * Documentation for signature generation: * - with https://web3js.readthedocs.io/en/v1.3.4/web3-eth-accounts.html#sign[Web3.js] * - with https://docs.ethers.io/v5/api/signer/#Signer-signMessage[ethers] */ function recover(bytes32 hash, bytes memory signature) internal pure returns (address) { // Check the signature length // - case 65: r,s,v signature (standard) // - case 64: r,vs signature (cf https://eips.ethereum.org/EIPS/eip-2098) _Available since v4.1._ if (signature.length == 65) { bytes32 r; bytes32 s; uint8 v; // ecrecover takes the signature parameters, and the only way to get them // currently is to use assembly. assembly { r := mload(add(signature, 0x20)) s := mload(add(signature, 0x40)) v := byte(0, mload(add(signature, 0x60))) } return recover(hash, v, r, s); } else if (signature.length == 64) { bytes32 r; bytes32 vs; // ecrecover takes the signature parameters, and the only way to get them // currently is to use assembly. assembly { r := mload(add(signature, 0x20)) vs := mload(add(signature, 0x40)) } return recover(hash, r, vs); } else { revert("ECDSA: invalid signature length"); } } /** * @dev Overload of {ECDSA-recover} that receives the `r` and `vs` short-signature fields separately. * * See https://eips.ethereum.org/EIPS/eip-2098[EIP-2098 short signatures] * * _Available since v4.2._ */ function recover( bytes32 hash, bytes32 r, bytes32 vs ) internal pure returns (address) { bytes32 s; uint8 v; assembly { s := and(vs, 0x7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff) v := add(shr(255, vs), 27) } return recover(hash, v, r, s); } /** * @dev Overload of {ECDSA-recover} that receives the `v`, `r` and `s` signature fields separately. */ function recover( bytes32 hash, uint8 v, bytes32 r, bytes32 s ) internal pure returns (address) { // EIP-2 still allows signature malleability for ecrecover(). Remove this possibility and make the signature // unique. Appendix F in the Ethereum Yellow paper (https://ethereum.github.io/yellowpaper/paper.pdf), defines // the valid range for s in (281): 0 < s < secp256k1n ÷ 2 + 1, and for v in (282): v ∈ {27, 28}. Most // signatures from current libraries generate a unique signature with an s-value in the lower half order. // // If your library generates malleable signatures, such as s-values in the upper range, calculate a new s-value // with 0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFEBAAEDCE6AF48A03BBFD25E8CD0364141 - s1 and flip v from 27 to 28 or // vice versa. If your library also generates signatures with 0/1 for v instead 27/28, add 27 to v to accept // these malleable signatures as well. require( uint256(s) <= 0x7FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF5D576E7357A4501DDFE92F46681B20A0, "ECDSA: invalid signature 's' value" ); require(v == 27 || v == 28, "ECDSA: invalid signature 'v' value"); // If the signature is valid (and not malleable), return the signer address address signer = ecrecover(hash, v, r, s); require(signer != address(0), "ECDSA: invalid signature"); return signer; } /** * @dev Returns an Ethereum Signed Message, created from a `hash`. This * produces hash corresponding to the one signed with the * https://eth.wiki/json-rpc/API#eth_sign[`eth_sign`] * JSON-RPC method as part of EIP-191. * * See {recover}. */ function toEthSignedMessageHash(bytes32 hash) internal pure returns (bytes32) { // 32 is the length in bytes of hash, // enforced by the type signature above return keccak256(abi.encodePacked("\x19Ethereum Signed Message:\n32", hash)); } /** * @dev Returns an Ethereum Signed Typed Data, created from a * `domainSeparator` and a `structHash`. This produces hash corresponding * to the one signed with the * https://eips.ethereum.org/EIPS/eip-712[`eth_signTypedData`] * JSON-RPC method as part of EIP-712. * * See {recover}. */ function toTypedDataHash(bytes32 domainSeparator, bytes32 structHash) internal pure returns (bytes32) { return keccak256(abi.encodePacked("\x19\x01", domainSeparator, structHash)); } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; interface IOmniFusion { function fuseTokens(address sender, uint toFuse, uint toBurn, bytes calldata payload) external; }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; interface IOmniFusionBurn { function burn(address sender, uint id, uint amount) external; }
// 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); }
// 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; 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 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 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); } }
{ "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":"initialURI","type":"string"},{"internalType":"address","name":"_omnimorphsAddress","type":"address"},{"internalType":"address","name":"_signer","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"account","type":"address"},{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":false,"internalType":"bool","name":"approved","type":"bool"}],"name":"ApprovalForAll","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"sender","type":"address"},{"indexed":false,"internalType":"uint256","name":"fusedId","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"burnedId","type":"uint256"},{"indexed":false,"internalType":"bytes32","name":"fusionReceiptIPFSHash","type":"bytes32"}],"name":"Fused","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":false,"internalType":"uint256[]","name":"ids","type":"uint256[]"},{"indexed":false,"internalType":"uint256[]","name":"values","type":"uint256[]"}],"name":"TransferBatch","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":false,"internalType":"uint256","name":"id","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"value","type":"uint256"}],"name":"TransferSingle","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"string","name":"value","type":"string"},{"indexed":true,"internalType":"uint256","name":"id","type":"uint256"}],"name":"URI","type":"event"},{"inputs":[],"name":"IPFSMultiHashPrefix","outputs":[{"internalType":"bytes2","name":"","type":"bytes2"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"},{"internalType":"uint256","name":"id","type":"uint256"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address[]","name":"accounts","type":"address[]"},{"internalType":"uint256[]","name":"ids","type":"uint256[]"}],"name":"balanceOfBatch","outputs":[{"internalType":"uint256[]","name":"","type":"uint256[]"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"sender","type":"address"},{"internalType":"uint256","name":"id","type":"uint256"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"burn","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"sender","type":"address"},{"internalType":"uint256","name":"toFuse","type":"uint256"},{"internalType":"uint256","name":"toBurn","type":"uint256"},{"internalType":"bytes","name":"payload","type":"bytes"}],"name":"fuseTokens","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"fusionSigner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"id","type":"uint256"}],"name":"getFusionReceiptIPFSHash","outputs":[{"internalType":"bytes","name":"","type":"bytes"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"},{"internalType":"address","name":"operator","type":"address"}],"name":"isApprovedForAll","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"isFusionActive","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"isFusionLocked","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"lockFusion","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"omnimorphsContract","outputs":[{"internalType":"contract IERC721","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","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":"ids","type":"uint256[]"},{"internalType":"uint256[]","name":"amounts","type":"uint256[]"},{"internalType":"bytes","name":"data","type":"bytes"}],"name":"safeBatchTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"id","type":"uint256"},{"internalType":"uint256","name":"amount","type":"uint256"},{"internalType":"bytes","name":"data","type":"bytes"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"operator","type":"address"},{"internalType":"bool","name":"approved","type":"bool"}],"name":"setApprovalForAll","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"value","type":"address"}],"name":"setFusionSigner","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bool","name":"value","type":"bool"}],"name":"setIsFusionActive","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"value","type":"string"}],"name":"setURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes4","name":"interfaceId","type":"bytes4"}],"name":"supportsInterface","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"uri","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"}]
Contract Creation Code
60806040526000600560146101000a81548160ff0219169083151502179055506000600560156101000a81548160ff0219169083151502179055503480156200004757600080fd5b50604051620051003803806200510083398181016040528101906200006d91906200034e565b826200007f816200012b60201b60201c565b50620000a0620000946200014760201b60201c565b6200014f60201b60201c565b81600460006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555080600560006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055505050506200053c565b80600290805190602001906200014392919062000215565b5050565b600033905090565b6000600360009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905081600360006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b82805462000223906200048e565b90600052602060002090601f01602090048101928262000247576000855562000293565b82601f106200026257805160ff191683800117855562000293565b8280016001018555821562000293579182015b828111156200029257825182559160200191906001019062000275565b5b509050620002a29190620002a6565b5090565b5b80821115620002c1576000816000905550600101620002a7565b5090565b6000620002dc620002d684620003f1565b620003bd565b905082815260208101848484011115620002f557600080fd5b6200030284828562000458565b509392505050565b6000815190506200031b8162000522565b92915050565b600082601f8301126200033357600080fd5b815162000345848260208601620002c5565b91505092915050565b6000806000606084860312156200036457600080fd5b600084015167ffffffffffffffff8111156200037f57600080fd5b6200038d8682870162000321565b9350506020620003a0868287016200030a565b9250506040620003b3868287016200030a565b9150509250925092565b6000604051905081810181811067ffffffffffffffff82111715620003e757620003e6620004f3565b5b8060405250919050565b600067ffffffffffffffff8211156200040f576200040e620004f3565b5b601f19601f8301169050602081019050919050565b6000620004318262000438565b9050919050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b60005b83811015620004785780820151818401526020810190506200045b565b8381111562000488576000848401525b50505050565b60006002820490506001821680620004a757607f821691505b60208210811415620004be57620004bd620004c4565b5b50919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b6200052d8162000424565b81146200053957600080fd5b50565b614bb4806200054c6000396000f3fe608060405234801561001057600080fd5b506004361061014c5760003560e01c8063715018a6116100c3578063e985e9c51161007c578063e985e9c514610377578063ecc24a41146103a7578063f242432a146103c5578063f2fde38b146103e1578063f5298aca146103fd578063fd7e9821146104195761014c565b8063715018a6146102ed578063734f3dda146102f75780637c50210d146103155780638da5cb5b1461033357806390016ff114610351578063a22cb4651461035b5761014c565b80632eb2c2d6116101155780632eb2c2d61461021b5780633bd86317146102375780634e1273f4146102555780635099eaf31461028557806351a3f409146102a15780636b84e3f0146102bd5761014c565b8062fdd58e1461015157806301ffc9a71461018157806302fe5305146101b15780630b89f22b146101cd5780630e89341c146101eb575b600080fd5b61016b60048036038101906101669190612fb1565b610435565b60405161017891906145a8565b60405180910390f35b61019b60048036038101906101969190613151565b6104fe565b6040516101a8919061410e565b60405180910390f35b6101cb60048036038101906101c691906131a3565b6105e0565b005b6101d5610668565b6040516101e2919061410e565b60405180910390f35b610205600480360381019061020091906131e4565b61067b565b60405161021291906141c6565b60405180910390f35b61023560048036038101906102309190612e27565b61070f565b005b61023f6107b0565b60405161024c9190614129565b60405180910390f35b61026f600480360381019061026a91906130bc565b6107b9565b60405161027c91906140b5565b60405180910390f35b61029f600480360381019061029a919061303c565b61096a565b005b6102bb60048036038101906102b69190612d99565b610e6e565b005b6102d760048036038101906102d291906131e4565b610f2e565b6040516102e49190614189565b60405180910390f35b6102f5610f71565b005b6102ff610ff9565b60405161030c91906141ab565b60405180910390f35b61031d61101f565b60405161032a919061410e565b60405180910390f35b61033b611032565b6040516103489190613f93565b60405180910390f35b61035961105c565b005b61037560048036038101906103709190612f75565b611145565b005b610391600480360381019061038c9190612deb565b6112c6565b60405161039e919061410e565b60405180910390f35b6103af61135a565b6040516103bc9190613f93565b60405180910390f35b6103df60048036038101906103da9190612ee6565b611380565b005b6103fb60048036038101906103f69190612d99565b611421565b005b61041760048036038101906104129190612fed565b611519565b005b610433600480360381019061042e9190613128565b6115f4565b005b60008073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff1614156104a6576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161049d906142a8565b60405180910390fd5b60008083815260200190815260200160002060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054905092915050565b60007fd9b67a26000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614806105c957507f0e89341c000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b806105d957506105d8826116dd565b5b9050919050565b6105e8611747565b73ffffffffffffffffffffffffffffffffffffffff16610606611032565b73ffffffffffffffffffffffffffffffffffffffff161461065c576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161065390614468565b60405180910390fd5b6106658161174f565b50565b600560149054906101000a900460ff1681565b60606002805461068a906148f7565b80601f01602080910402602001604051908101604052809291908181526020018280546106b6906148f7565b80156107035780601f106106d857610100808354040283529160200191610703565b820191906000526020600020905b8154815290600101906020018083116106e657829003601f168201915b50505050509050919050565b610717611747565b73ffffffffffffffffffffffffffffffffffffffff168573ffffffffffffffffffffffffffffffffffffffff16148061075d575061075c85610757611747565b6112c6565b5b61079c576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610793906143e8565b60405180910390fd5b6107a98585858585611769565b5050505050565b61122060f01b81565b606081518351146107ff576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016107f690614528565b60405180910390fd5b6000835167ffffffffffffffff811115610842577f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b6040519080825280602002602001820160405280156108705781602001602082028036833780820191505090505b50905060005b845181101561095f576109098582815181106108bb577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b60200260200101518583815181106108fc577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b6020026020010151610435565b828281518110610942577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b6020026020010181815250508061095890614929565b9050610876565b508091505092915050565b600560149054906101000a900460ff166109b9576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016109b0906144a8565b60405180910390fd5b600460009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614610a49576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610a4090614288565b60405180910390fd5b8473ffffffffffffffffffffffffffffffffffffffff16600460009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16636352211e866040518263ffffffff1660e01b8152600401610abb91906145a8565b60206040518083038186803b158015610ad357600080fd5b505afa158015610ae7573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610b0b9190612dc2565b73ffffffffffffffffffffffffffffffffffffffff16148015610c0357508473ffffffffffffffffffffffffffffffffffffffff16600460009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16636352211e856040518263ffffffff1660e01b8152600401610b9b91906145a8565b60206040518083038186803b158015610bb357600080fd5b505afa158015610bc7573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610beb9190612dc2565b73ffffffffffffffffffffffffffffffffffffffff16145b610c42576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610c3990614508565b60405180910390fd5b6000801b600660008681526020019081526020016000205414610c9a576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610c91906142e8565b60405180910390fd5b6000801b600660008581526020019081526020016000205414610cf2576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610ce990614248565b60405180910390fd5b6000610d538383600090602092610d0b93929190614751565b8080601f016020809104026020016040519081016040528093929190818152602001838380828437600081840152601f19601f82011690508083019250505050505050611ac9565b9050600083836020908686905092610d6d93929190614751565b8080601f016020809104026020016040519081016040528093929190818152602001838380828437600081840152601f19601f820116905080830192505050505050509050610dc7610dc188888886611b1b565b82611b7f565b610e06576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610dfd90614568565b60405180910390fd5b816006600088815260200190815260200160002081905550610e288786611bec565b7f0ff66d4a836b292151ac554f2bdfd7416815906c26a52528fe94496440104c0287878785604051610e5d9493929190614070565b60405180910390a150505050505050565b610e76611747565b73ffffffffffffffffffffffffffffffffffffffff16610e94611032565b73ffffffffffffffffffffffffffffffffffffffff1614610eea576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610ee190614468565b60405180910390fd5b80600560006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b606061122060f01b6006600084815260200190815260200160002054604051602001610f5b929190613f41565b6040516020818303038152906040529050919050565b610f79611747565b73ffffffffffffffffffffffffffffffffffffffff16610f97611032565b73ffffffffffffffffffffffffffffffffffffffff1614610fed576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610fe490614468565b60405180910390fd5b610ff76000611c32565b565b600460009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b600560159054906101000a900460ff1681565b6000600360009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b611064611747565b73ffffffffffffffffffffffffffffffffffffffff16611082611032565b73ffffffffffffffffffffffffffffffffffffffff16146110d8576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016110cf90614468565b60405180910390fd5b600560149054906101000a900460ff1615611128576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161111f906144c8565b60405180910390fd5b6001600560156101000a81548160ff021916908315150217905550565b8173ffffffffffffffffffffffffffffffffffffffff16611164611747565b73ffffffffffffffffffffffffffffffffffffffff1614156111bb576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016111b2906144e8565b60405180910390fd5b80600160006111c8611747565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055508173ffffffffffffffffffffffffffffffffffffffff16611275611747565b73ffffffffffffffffffffffffffffffffffffffff167f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31836040516112ba919061410e565b60405180910390a35050565b6000600160008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16905092915050565b600560009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b611388611747565b73ffffffffffffffffffffffffffffffffffffffff168573ffffffffffffffffffffffffffffffffffffffff1614806113ce57506113cd856113c8611747565b6112c6565b5b61140d576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161140490614348565b60405180910390fd5b61141a8585858585611cf8565b5050505050565b611429611747565b73ffffffffffffffffffffffffffffffffffffffff16611447611032565b73ffffffffffffffffffffffffffffffffffffffff161461149d576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161149490614468565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16141561150d576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611504906142c8565b60405180910390fd5b61151681611c32565b50565b3373ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff161480611559575061155883336112c6565b5b611598576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161158f90614488565b60405180910390fd5b806115a38484610435565b10156115e4576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016115db90614388565b60405180910390fd5b6115ef838383611f7a565b505050565b6115fc611747565b73ffffffffffffffffffffffffffffffffffffffff1661161a611032565b73ffffffffffffffffffffffffffffffffffffffff1614611670576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161166790614468565b60405180910390fd5b600560159054906101000a900460ff16156116c0576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016116b7906143a8565b60405180910390fd5b80600560146101000a81548160ff02191690831515021790555050565b60007f01ffc9a7000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916149050919050565b600033905090565b8060029080519060200190611765929190612a32565b5050565b81518351146117ad576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016117a490614548565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff16141561181d576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611814906143c8565b60405180910390fd5b6000611827611747565b9050611837818787878787612197565b60005b8451811015611a3457600085828151811061187e577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b6020026020010151905060008583815181106118c3577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b60200260200101519050600080600084815260200190815260200160002060008b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054905081811015611964576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161195b90614448565b60405180910390fd5b81810360008085815260200190815260200160002060008c73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055508160008085815260200190815260200160002060008b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000828254611a199190614784565b9250508190555050505080611a2d90614929565b905061183a565b508473ffffffffffffffffffffffffffffffffffffffff168673ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff167f4a39dc06d4c0dbc64b70af90fd698a233a518aa5d07e595d983b8c0526c8f7fb8787604051611aab9291906140d7565b60405180910390a4611ac181878787878761219f565b505050505050565b60006020825114611b0f576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611b0690614328565b60405180910390fd5b60208201519050919050565b60008085858585604051602001611b359493929190613ef3565b60405160208183030381529060405280519060200120604051602001611b5b9190613f6d565b60405160208183030381529060405280519060200120905080915050949350505050565b6000611b94828461236f90919063ffffffff16565b73ffffffffffffffffffffffffffffffffffffffff16600560009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1614905092915050565b611c2e828260016040518060400160405280600281526020017f307800000000000000000000000000000000000000000000000000000000000081525061241e565b5050565b6000600360009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905081600360006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b600073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff161415611d68576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611d5f906143c8565b60405180910390fd5b6000611d72611747565b9050611d92818787611d83886125b4565b611d8c886125b4565b87612197565b600080600086815260200190815260200160002060008873ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054905083811015611e29576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611e2090614448565b60405180910390fd5b83810360008087815260200190815260200160002060008973ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055508360008087815260200190815260200160002060008873ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000828254611ede9190614784565b925050819055508573ffffffffffffffffffffffffffffffffffffffff168773ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff167fc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f628888604051611f5b9291906145c3565b60405180910390a4611f7182888888888861267a565b50505050505050565b600073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff161415611fea576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611fe190614428565b60405180910390fd5b6000611ff4611747565b905061202481856000612006876125b4565b61200f876125b4565b60405180602001604052806000815250612197565b600080600085815260200190815260200160002060008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020549050828110156120bb576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016120b290614308565b60405180910390fd5b82810360008086815260200190815260200160002060008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002081905550600073ffffffffffffffffffffffffffffffffffffffff168573ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff167fc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f6287876040516121889291906145c3565b60405180910390a45050505050565b505050505050565b6121be8473ffffffffffffffffffffffffffffffffffffffff1661284a565b15612367578373ffffffffffffffffffffffffffffffffffffffff1663bc197c8187878686866040518663ffffffff1660e01b8152600401612204959493929190613fae565b602060405180830381600087803b15801561221e57600080fd5b505af192505050801561224f57506040513d601f19601f8201168201806040525081019061224c919061317a565b60015b6122de5761225b614a6c565b8061226657506122a3565b806040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161229a91906141c6565b60405180910390fd5b6040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016122d590614208565b60405180910390fd5b63bc197c8160e01b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916817bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614612365576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161235c90614228565b60405180910390fd5b505b505050505050565b60006041825114156123ae5760008060006020850151925060408501519150606085015160001a90506123a48682858561285d565b9350505050612418565b6040825114156123dd5760008060208401519150604084015190506123d48583836129e8565b92505050612418565b6040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161240f90614268565b60405180910390fd5b92915050565b600073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff16141561248e576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161248590614588565b60405180910390fd5b6000612498611747565b90506124b9816000876124aa886125b4565b6124b3886125b4565b87612197565b8260008086815260200190815260200160002060008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008282546125189190614784565b925050819055508473ffffffffffffffffffffffffffffffffffffffff16600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff167fc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f6287876040516125969291906145c3565b60405180910390a46125ad8160008787878761267a565b5050505050565b60606000600167ffffffffffffffff8111156125f9577f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b6040519080825280602002602001820160405280156126275781602001602082028036833780820191505090505b5090508281600081518110612665577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b60200260200101818152505080915050919050565b6126998473ffffffffffffffffffffffffffffffffffffffff1661284a565b15612842578373ffffffffffffffffffffffffffffffffffffffff1663f23a6e6187878686866040518663ffffffff1660e01b81526004016126df959493929190614016565b602060405180830381600087803b1580156126f957600080fd5b505af192505050801561272a57506040513d601f19601f82011682018060405250810190612727919061317a565b60015b6127b957612736614a6c565b80612741575061277e565b806040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161277591906141c6565b60405180910390fd5b6040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016127b090614208565b60405180910390fd5b63f23a6e6160e01b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916817bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614612840576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161283790614228565b60405180910390fd5b505b505050505050565b600080823b905060008111915050919050565b60007f7fffffffffffffffffffffffffffffff5d576e7357a4501ddfe92f46681b20a08260001c11156128c5576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016128bc90614368565b60405180910390fd5b601b8460ff1614806128da5750601c8460ff16145b612919576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161291090614408565b60405180910390fd5b60006001868686866040516000815260200160405260405161293e9493929190614144565b6020604051602081039080840390855afa158015612960573d6000803e3d6000fd5b505050602060405103519050600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1614156129dc576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016129d3906141e8565b60405180910390fd5b80915050949350505050565b60008060007f7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff84169150601b8460ff1c019050612a278682878561285d565b925050509392505050565b828054612a3e906148f7565b90600052602060002090601f016020900481019282612a605760008555612aa7565b82601f10612a7957805160ff1916838001178555612aa7565b82800160010185558215612aa7579182015b82811115612aa6578251825591602001919060010190612a8b565b5b509050612ab49190612ab8565b5090565b5b80821115612ad1576000816000905550600101612ab9565b5090565b6000612ae8612ae38461461d565b6145ec565b90508083825260208201905082856020860282011115612b0757600080fd5b60005b85811015612b375781612b1d8882612c29565b845260208401935060208301925050600181019050612b0a565b5050509392505050565b6000612b54612b4f84614649565b6145ec565b90508083825260208201905082856020860282011115612b7357600080fd5b60005b85811015612ba35781612b898882612d84565b845260208401935060208301925050600181019050612b76565b5050509392505050565b6000612bc0612bbb84614675565b6145ec565b905082815260208101848484011115612bd857600080fd5b612be38482856148b5565b509392505050565b6000612bfe612bf9846146a5565b6145ec565b905082815260208101848484011115612c1657600080fd5b612c218482856148b5565b509392505050565b600081359050612c3881614b22565b92915050565b600081519050612c4d81614b22565b92915050565b600082601f830112612c6457600080fd5b8135612c74848260208601612ad5565b91505092915050565b600082601f830112612c8e57600080fd5b8135612c9e848260208601612b41565b91505092915050565b600081359050612cb681614b39565b92915050565b600081359050612ccb81614b50565b92915050565b600081519050612ce081614b50565b92915050565b60008083601f840112612cf857600080fd5b8235905067ffffffffffffffff811115612d1157600080fd5b602083019150836001820283011115612d2957600080fd5b9250929050565b600082601f830112612d4157600080fd5b8135612d51848260208601612bad565b91505092915050565b600082601f830112612d6b57600080fd5b8135612d7b848260208601612beb565b91505092915050565b600081359050612d9381614b67565b92915050565b600060208284031215612dab57600080fd5b6000612db984828501612c29565b91505092915050565b600060208284031215612dd457600080fd5b6000612de284828501612c3e565b91505092915050565b60008060408385031215612dfe57600080fd5b6000612e0c85828601612c29565b9250506020612e1d85828601612c29565b9150509250929050565b600080600080600060a08688031215612e3f57600080fd5b6000612e4d88828901612c29565b9550506020612e5e88828901612c29565b945050604086013567ffffffffffffffff811115612e7b57600080fd5b612e8788828901612c7d565b935050606086013567ffffffffffffffff811115612ea457600080fd5b612eb088828901612c7d565b925050608086013567ffffffffffffffff811115612ecd57600080fd5b612ed988828901612d30565b9150509295509295909350565b600080600080600060a08688031215612efe57600080fd5b6000612f0c88828901612c29565b9550506020612f1d88828901612c29565b9450506040612f2e88828901612d84565b9350506060612f3f88828901612d84565b925050608086013567ffffffffffffffff811115612f5c57600080fd5b612f6888828901612d30565b9150509295509295909350565b60008060408385031215612f8857600080fd5b6000612f9685828601612c29565b9250506020612fa785828601612ca7565b9150509250929050565b60008060408385031215612fc457600080fd5b6000612fd285828601612c29565b9250506020612fe385828601612d84565b9150509250929050565b60008060006060848603121561300257600080fd5b600061301086828701612c29565b935050602061302186828701612d84565b925050604061303286828701612d84565b9150509250925092565b60008060008060006080868803121561305457600080fd5b600061306288828901612c29565b955050602061307388828901612d84565b945050604061308488828901612d84565b935050606086013567ffffffffffffffff8111156130a157600080fd5b6130ad88828901612ce6565b92509250509295509295909350565b600080604083850312156130cf57600080fd5b600083013567ffffffffffffffff8111156130e957600080fd5b6130f585828601612c53565b925050602083013567ffffffffffffffff81111561311257600080fd5b61311e85828601612c7d565b9150509250929050565b60006020828403121561313a57600080fd5b600061314884828501612ca7565b91505092915050565b60006020828403121561316357600080fd5b600061317184828501612cbc565b91505092915050565b60006020828403121561318c57600080fd5b600061319a84828501612cd1565b91505092915050565b6000602082840312156131b557600080fd5b600082013567ffffffffffffffff8111156131cf57600080fd5b6131db84828501612d5a565b91505092915050565b6000602082840312156131f657600080fd5b600061320484828501612d84565b91505092915050565b60006132198383613eaf565b60208301905092915050565b61322e816147da565b82525050565b613245613240826147da565b614972565b82525050565b6000613256826146e5565b6132608185614713565b935061326b836146d5565b8060005b8381101561329c578151613283888261320d565b975061328e83614706565b92505060018101905061326f565b5085935050505092915050565b6132b2816147ec565b82525050565b6132c1816147f8565b82525050565b6132d86132d3826147f8565b614984565b82525050565b6132e781614824565b82525050565b6132fe6132f982614824565b61498e565b82525050565b600061330f826146f0565b6133198185614724565b93506133298185602086016148c4565b61333281614a41565b840191505092915050565b61334681614891565b82525050565b6000613357826146fb565b6133618185614735565b93506133718185602086016148c4565b61337a81614a41565b840191505092915050565b6000613392601883614735565b91507f45434453413a20696e76616c6964207369676e617475726500000000000000006000830152602082019050919050565b60006133d2603483614735565b91507f455243313135353a207472616e7366657220746f206e6f6e204552433131353560008301527f526563656976657220696d706c656d656e7465720000000000000000000000006020830152604082019050919050565b6000613438602883614735565b91507f455243313135353a204552433131353552656365697665722072656a6563746560008301527f6420746f6b656e730000000000000000000000000000000000000000000000006020830152604082019050919050565b600061349e602383614735565b91507f4275726e656420746f6b656e2068617320616c7265616479206265656e20667560008301527f73656400000000000000000000000000000000000000000000000000000000006020830152604082019050919050565b6000613504601f83614735565b91507f45434453413a20696e76616c6964207369676e6174757265206c656e677468006000830152602082019050919050565b6000613544601c83614746565b91507f19457468657265756d205369676e6564204d6573736167653a0a3332000000006000830152601c82019050919050565b6000613584603183614735565b91507f4f6e6c7920746865204f6d6e696d6f7270687320636f6e74726163742063616e60008301527f2063616c6c2074686973206d6574686f640000000000000000000000000000006020830152604082019050919050565b60006135ea602b83614735565b91507f455243313135353a2062616c616e636520717565727920666f7220746865207a60008301527f65726f20616464726573730000000000000000000000000000000000000000006020830152604082019050919050565b6000613650602683614735565b91507f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160008301527f64647265737300000000000000000000000000000000000000000000000000006020830152604082019050919050565b60006136b6602283614735565b91507f467573656420746f6b656e2068617320616c7265616479206265656e2066757360008301527f65640000000000000000000000000000000000000000000000000000000000006020830152604082019050919050565b600061371c602483614735565b91507f455243313135353a206275726e20616d6f756e7420657863656564732062616c60008301527f616e6365000000000000000000000000000000000000000000000000000000006020830152604082019050919050565b6000613782602983614735565b91507f536f757263652062797465732061727261792068617320746f206265206f662060008301527f6c656e67746820333200000000000000000000000000000000000000000000006020830152604082019050919050565b60006137e8602983614735565b91507f455243313135353a2063616c6c6572206973206e6f74206f776e6572206e6f7260008301527f20617070726f76656400000000000000000000000000000000000000000000006020830152604082019050919050565b600061384e602283614735565b91507f45434453413a20696e76616c6964207369676e6174757265202773272076616c60008301527f75650000000000000000000000000000000000000000000000000000000000006020830152604082019050919050565b60006138b4601f83614735565b91507f547279696e6720746f6f206275726e20746f6f206d616e7920746f6b656e73006000830152602082019050919050565b60006138f4602983614735565b91507f43616e6e6f742072657365742c20617320667573696f6e206973206c6f636b6560008301527f6420666f726576657200000000000000000000000000000000000000000000006020830152604082019050919050565b600061395a602583614735565b91507f455243313135353a207472616e7366657220746f20746865207a65726f20616460008301527f64726573730000000000000000000000000000000000000000000000000000006020830152604082019050919050565b60006139c0603283614735565b91507f455243313135353a207472616e736665722063616c6c6572206973206e6f742060008301527f6f776e6572206e6f7220617070726f76656400000000000000000000000000006020830152604082019050919050565b6000613a26602283614735565b91507f45434453413a20696e76616c6964207369676e6174757265202776272076616c60008301527f75650000000000000000000000000000000000000000000000000000000000006020830152604082019050919050565b6000613a8c602383614735565b91507f455243313135353a206275726e2066726f6d20746865207a65726f206164647260008301527f65737300000000000000000000000000000000000000000000000000000000006020830152604082019050919050565b6000613af2602a83614735565b91507f455243313135353a20696e73756666696369656e742062616c616e636520666f60008301527f72207472616e73666572000000000000000000000000000000000000000000006020830152604082019050919050565b6000613b58602083614735565b91507f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726000830152602082019050919050565b6000613b98602583614735565b91507f4275726e2063616c6c6572206973206e6f74206f776e6572206e6f722061707060008301527f726f7665640000000000000000000000000000000000000000000000000000006020830152604082019050919050565b6000613bfe601e83614735565b91507f467573696f6e2069732063757272656e746c79206e6f742061637469766500006000830152602082019050919050565b6000613c3e602583614735565b91507f43616e206f6e6c79206c6f636b207768656e20667573696f6e20697320696e6160008301527f63746976650000000000000000000000000000000000000000000000000000006020830152604082019050919050565b6000613ca4602983614735565b91507f455243313135353a2073657474696e6720617070726f76616c2073746174757360008301527f20666f722073656c6600000000000000000000000000000000000000000000006020830152604082019050919050565b6000613d0a601a83614735565b91507f546f6b656e73206e6f74206f776e65642062792073656e6465720000000000006000830152602082019050919050565b6000613d4a602983614735565b91507f455243313135353a206163636f756e747320616e6420696473206c656e67746860008301527f206d69736d6174636800000000000000000000000000000000000000000000006020830152604082019050919050565b6000613db0602883614735565b91507f455243313135353a2069647320616e6420616d6f756e7473206c656e6774682060008301527f6d69736d617463680000000000000000000000000000000000000000000000006020830152604082019050919050565b6000613e16601683614735565b91507f5369676e617475726520697320696e636f7272656374000000000000000000006000830152602082019050919050565b6000613e56602183614735565b91507f455243313135353a206d696e7420746f20746865207a65726f2061646472657360008301527f73000000000000000000000000000000000000000000000000000000000000006020830152604082019050919050565b613eb88161487a565b82525050565b613ec78161487a565b82525050565b613ede613ed98261487a565b6149aa565b82525050565b613eed81614884565b82525050565b6000613eff8287613234565b601482019150613f0f8286613ecd565b602082019150613f1f8285613ecd565b602082019150613f2f82846132ed565b60208201915081905095945050505050565b6000613f4d82856132c7565b600282019150613f5d82846132ed565b6020820191508190509392505050565b6000613f7882613537565b9150613f8482846132ed565b60208201915081905092915050565b6000602082019050613fa86000830184613225565b92915050565b600060a082019050613fc36000830188613225565b613fd06020830187613225565b8181036040830152613fe2818661324b565b90508181036060830152613ff6818561324b565b9050818103608083015261400a8184613304565b90509695505050505050565b600060a08201905061402b6000830188613225565b6140386020830187613225565b6140456040830186613ebe565b6140526060830185613ebe565b81810360808301526140648184613304565b90509695505050505050565b60006080820190506140856000830187613225565b6140926020830186613ebe565b61409f6040830185613ebe565b6140ac60608301846132de565b95945050505050565b600060208201905081810360008301526140cf818461324b565b905092915050565b600060408201905081810360008301526140f1818561324b565b90508181036020830152614105818461324b565b90509392505050565b600060208201905061412360008301846132a9565b92915050565b600060208201905061413e60008301846132b8565b92915050565b600060808201905061415960008301876132de565b6141666020830186613ee4565b61417360408301856132de565b61418060608301846132de565b95945050505050565b600060208201905081810360008301526141a38184613304565b905092915050565b60006020820190506141c0600083018461333d565b92915050565b600060208201905081810360008301526141e0818461334c565b905092915050565b6000602082019050818103600083015261420181613385565b9050919050565b60006020820190508181036000830152614221816133c5565b9050919050565b600060208201905081810360008301526142418161342b565b9050919050565b6000602082019050818103600083015261426181613491565b9050919050565b60006020820190508181036000830152614281816134f7565b9050919050565b600060208201905081810360008301526142a181613577565b9050919050565b600060208201905081810360008301526142c1816135dd565b9050919050565b600060208201905081810360008301526142e181613643565b9050919050565b60006020820190508181036000830152614301816136a9565b9050919050565b600060208201905081810360008301526143218161370f565b9050919050565b6000602082019050818103600083015261434181613775565b9050919050565b60006020820190508181036000830152614361816137db565b9050919050565b6000602082019050818103600083015261438181613841565b9050919050565b600060208201905081810360008301526143a1816138a7565b9050919050565b600060208201905081810360008301526143c1816138e7565b9050919050565b600060208201905081810360008301526143e18161394d565b9050919050565b60006020820190508181036000830152614401816139b3565b9050919050565b6000602082019050818103600083015261442181613a19565b9050919050565b6000602082019050818103600083015261444181613a7f565b9050919050565b6000602082019050818103600083015261446181613ae5565b9050919050565b6000602082019050818103600083015261448181613b4b565b9050919050565b600060208201905081810360008301526144a181613b8b565b9050919050565b600060208201905081810360008301526144c181613bf1565b9050919050565b600060208201905081810360008301526144e181613c31565b9050919050565b6000602082019050818103600083015261450181613c97565b9050919050565b6000602082019050818103600083015261452181613cfd565b9050919050565b6000602082019050818103600083015261454181613d3d565b9050919050565b6000602082019050818103600083015261456181613da3565b9050919050565b6000602082019050818103600083015261458181613e09565b9050919050565b600060208201905081810360008301526145a181613e49565b9050919050565b60006020820190506145bd6000830184613ebe565b92915050565b60006040820190506145d86000830185613ebe565b6145e56020830184613ebe565b9392505050565b6000604051905081810181811067ffffffffffffffff8211171561461357614612614a12565b5b8060405250919050565b600067ffffffffffffffff82111561463857614637614a12565b5b602082029050602081019050919050565b600067ffffffffffffffff82111561466457614663614a12565b5b602082029050602081019050919050565b600067ffffffffffffffff8211156146905761468f614a12565b5b601f19601f8301169050602081019050919050565b600067ffffffffffffffff8211156146c0576146bf614a12565b5b601f19601f8301169050602081019050919050565b6000819050602082019050919050565b600081519050919050565b600081519050919050565b600081519050919050565b6000602082019050919050565b600082825260208201905092915050565b600082825260208201905092915050565b600082825260208201905092915050565b600081905092915050565b6000808585111561476157600080fd5b8386111561476e57600080fd5b6001850283019150848603905094509492505050565b600061478f8261487a565b915061479a8361487a565b9250827fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff038211156147cf576147ce6149b4565b5b828201905092915050565b60006147e58261485a565b9050919050565b60008115159050919050565b60007fffff00000000000000000000000000000000000000000000000000000000000082169050919050565b6000819050919050565b60007fffffffff0000000000000000000000000000000000000000000000000000000082169050919050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000819050919050565b600060ff82169050919050565b600061489c826148a3565b9050919050565b60006148ae8261485a565b9050919050565b82818337600083830152505050565b60005b838110156148e25780820151818401526020810190506148c7565b838111156148f1576000848401525b50505050565b6000600282049050600182168061490f57607f821691505b60208210811415614923576149226149e3565b5b50919050565b60006149348261487a565b91507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff821415614967576149666149b4565b5b600182019050919050565b600061497d82614998565b9050919050565b6000819050919050565b6000819050919050565b60006149a382614a52565b9050919050565b6000819050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b6000601f19601f8301169050919050565b60008160601b9050919050565b60008160e01c9050919050565b600060443d1015614a7c57614b1f565b60046000803e614a8d600051614a5f565b6308c379a08114614a9e5750614b1f565b60405160043d036004823e80513d602482011167ffffffffffffffff82111715614aca57505050614b1f565b808201805167ffffffffffffffff811115614ae9575050505050614b1f565b8060208301013d8501811115614b0457505050505050614b1f565b614b0d82614a41565b60208401016040528296505050505050505b90565b614b2b816147da565b8114614b3657600080fd5b50565b614b42816147ec565b8114614b4d57600080fd5b50565b614b598161482e565b8114614b6457600080fd5b50565b614b708161487a565b8114614b7b57600080fd5b5056fea2646970667358221220b7d2ff8635e0601617011b90d99ef6e85b5e32b65d2d8a858124880a3607cb2964736f6c634300080000330000000000000000000000000000000000000000000000000000000000000060000000000000000000000000b5f3dee204ca76e913bb3129ba0312b9f0f31d82000000000000000000000000a1176527c8a4b057e1e052bddc6ff9fa5be48b8a0000000000000000000000000000000000000000000000000000000000000000
Deployed Bytecode
0x608060405234801561001057600080fd5b506004361061014c5760003560e01c8063715018a6116100c3578063e985e9c51161007c578063e985e9c514610377578063ecc24a41146103a7578063f242432a146103c5578063f2fde38b146103e1578063f5298aca146103fd578063fd7e9821146104195761014c565b8063715018a6146102ed578063734f3dda146102f75780637c50210d146103155780638da5cb5b1461033357806390016ff114610351578063a22cb4651461035b5761014c565b80632eb2c2d6116101155780632eb2c2d61461021b5780633bd86317146102375780634e1273f4146102555780635099eaf31461028557806351a3f409146102a15780636b84e3f0146102bd5761014c565b8062fdd58e1461015157806301ffc9a71461018157806302fe5305146101b15780630b89f22b146101cd5780630e89341c146101eb575b600080fd5b61016b60048036038101906101669190612fb1565b610435565b60405161017891906145a8565b60405180910390f35b61019b60048036038101906101969190613151565b6104fe565b6040516101a8919061410e565b60405180910390f35b6101cb60048036038101906101c691906131a3565b6105e0565b005b6101d5610668565b6040516101e2919061410e565b60405180910390f35b610205600480360381019061020091906131e4565b61067b565b60405161021291906141c6565b60405180910390f35b61023560048036038101906102309190612e27565b61070f565b005b61023f6107b0565b60405161024c9190614129565b60405180910390f35b61026f600480360381019061026a91906130bc565b6107b9565b60405161027c91906140b5565b60405180910390f35b61029f600480360381019061029a919061303c565b61096a565b005b6102bb60048036038101906102b69190612d99565b610e6e565b005b6102d760048036038101906102d291906131e4565b610f2e565b6040516102e49190614189565b60405180910390f35b6102f5610f71565b005b6102ff610ff9565b60405161030c91906141ab565b60405180910390f35b61031d61101f565b60405161032a919061410e565b60405180910390f35b61033b611032565b6040516103489190613f93565b60405180910390f35b61035961105c565b005b61037560048036038101906103709190612f75565b611145565b005b610391600480360381019061038c9190612deb565b6112c6565b60405161039e919061410e565b60405180910390f35b6103af61135a565b6040516103bc9190613f93565b60405180910390f35b6103df60048036038101906103da9190612ee6565b611380565b005b6103fb60048036038101906103f69190612d99565b611421565b005b61041760048036038101906104129190612fed565b611519565b005b610433600480360381019061042e9190613128565b6115f4565b005b60008073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff1614156104a6576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161049d906142a8565b60405180910390fd5b60008083815260200190815260200160002060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054905092915050565b60007fd9b67a26000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614806105c957507f0e89341c000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b806105d957506105d8826116dd565b5b9050919050565b6105e8611747565b73ffffffffffffffffffffffffffffffffffffffff16610606611032565b73ffffffffffffffffffffffffffffffffffffffff161461065c576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161065390614468565b60405180910390fd5b6106658161174f565b50565b600560149054906101000a900460ff1681565b60606002805461068a906148f7565b80601f01602080910402602001604051908101604052809291908181526020018280546106b6906148f7565b80156107035780601f106106d857610100808354040283529160200191610703565b820191906000526020600020905b8154815290600101906020018083116106e657829003601f168201915b50505050509050919050565b610717611747565b73ffffffffffffffffffffffffffffffffffffffff168573ffffffffffffffffffffffffffffffffffffffff16148061075d575061075c85610757611747565b6112c6565b5b61079c576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610793906143e8565b60405180910390fd5b6107a98585858585611769565b5050505050565b61122060f01b81565b606081518351146107ff576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016107f690614528565b60405180910390fd5b6000835167ffffffffffffffff811115610842577f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b6040519080825280602002602001820160405280156108705781602001602082028036833780820191505090505b50905060005b845181101561095f576109098582815181106108bb577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b60200260200101518583815181106108fc577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b6020026020010151610435565b828281518110610942577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b6020026020010181815250508061095890614929565b9050610876565b508091505092915050565b600560149054906101000a900460ff166109b9576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016109b0906144a8565b60405180910390fd5b600460009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614610a49576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610a4090614288565b60405180910390fd5b8473ffffffffffffffffffffffffffffffffffffffff16600460009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16636352211e866040518263ffffffff1660e01b8152600401610abb91906145a8565b60206040518083038186803b158015610ad357600080fd5b505afa158015610ae7573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610b0b9190612dc2565b73ffffffffffffffffffffffffffffffffffffffff16148015610c0357508473ffffffffffffffffffffffffffffffffffffffff16600460009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16636352211e856040518263ffffffff1660e01b8152600401610b9b91906145a8565b60206040518083038186803b158015610bb357600080fd5b505afa158015610bc7573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610beb9190612dc2565b73ffffffffffffffffffffffffffffffffffffffff16145b610c42576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610c3990614508565b60405180910390fd5b6000801b600660008681526020019081526020016000205414610c9a576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610c91906142e8565b60405180910390fd5b6000801b600660008581526020019081526020016000205414610cf2576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610ce990614248565b60405180910390fd5b6000610d538383600090602092610d0b93929190614751565b8080601f016020809104026020016040519081016040528093929190818152602001838380828437600081840152601f19601f82011690508083019250505050505050611ac9565b9050600083836020908686905092610d6d93929190614751565b8080601f016020809104026020016040519081016040528093929190818152602001838380828437600081840152601f19601f820116905080830192505050505050509050610dc7610dc188888886611b1b565b82611b7f565b610e06576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610dfd90614568565b60405180910390fd5b816006600088815260200190815260200160002081905550610e288786611bec565b7f0ff66d4a836b292151ac554f2bdfd7416815906c26a52528fe94496440104c0287878785604051610e5d9493929190614070565b60405180910390a150505050505050565b610e76611747565b73ffffffffffffffffffffffffffffffffffffffff16610e94611032565b73ffffffffffffffffffffffffffffffffffffffff1614610eea576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610ee190614468565b60405180910390fd5b80600560006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b606061122060f01b6006600084815260200190815260200160002054604051602001610f5b929190613f41565b6040516020818303038152906040529050919050565b610f79611747565b73ffffffffffffffffffffffffffffffffffffffff16610f97611032565b73ffffffffffffffffffffffffffffffffffffffff1614610fed576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610fe490614468565b60405180910390fd5b610ff76000611c32565b565b600460009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b600560159054906101000a900460ff1681565b6000600360009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b611064611747565b73ffffffffffffffffffffffffffffffffffffffff16611082611032565b73ffffffffffffffffffffffffffffffffffffffff16146110d8576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016110cf90614468565b60405180910390fd5b600560149054906101000a900460ff1615611128576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161111f906144c8565b60405180910390fd5b6001600560156101000a81548160ff021916908315150217905550565b8173ffffffffffffffffffffffffffffffffffffffff16611164611747565b73ffffffffffffffffffffffffffffffffffffffff1614156111bb576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016111b2906144e8565b60405180910390fd5b80600160006111c8611747565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055508173ffffffffffffffffffffffffffffffffffffffff16611275611747565b73ffffffffffffffffffffffffffffffffffffffff167f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31836040516112ba919061410e565b60405180910390a35050565b6000600160008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16905092915050565b600560009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b611388611747565b73ffffffffffffffffffffffffffffffffffffffff168573ffffffffffffffffffffffffffffffffffffffff1614806113ce57506113cd856113c8611747565b6112c6565b5b61140d576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161140490614348565b60405180910390fd5b61141a8585858585611cf8565b5050505050565b611429611747565b73ffffffffffffffffffffffffffffffffffffffff16611447611032565b73ffffffffffffffffffffffffffffffffffffffff161461149d576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161149490614468565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16141561150d576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611504906142c8565b60405180910390fd5b61151681611c32565b50565b3373ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff161480611559575061155883336112c6565b5b611598576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161158f90614488565b60405180910390fd5b806115a38484610435565b10156115e4576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016115db90614388565b60405180910390fd5b6115ef838383611f7a565b505050565b6115fc611747565b73ffffffffffffffffffffffffffffffffffffffff1661161a611032565b73ffffffffffffffffffffffffffffffffffffffff1614611670576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161166790614468565b60405180910390fd5b600560159054906101000a900460ff16156116c0576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016116b7906143a8565b60405180910390fd5b80600560146101000a81548160ff02191690831515021790555050565b60007f01ffc9a7000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916149050919050565b600033905090565b8060029080519060200190611765929190612a32565b5050565b81518351146117ad576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016117a490614548565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff16141561181d576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611814906143c8565b60405180910390fd5b6000611827611747565b9050611837818787878787612197565b60005b8451811015611a3457600085828151811061187e577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b6020026020010151905060008583815181106118c3577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b60200260200101519050600080600084815260200190815260200160002060008b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054905081811015611964576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161195b90614448565b60405180910390fd5b81810360008085815260200190815260200160002060008c73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055508160008085815260200190815260200160002060008b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000828254611a199190614784565b9250508190555050505080611a2d90614929565b905061183a565b508473ffffffffffffffffffffffffffffffffffffffff168673ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff167f4a39dc06d4c0dbc64b70af90fd698a233a518aa5d07e595d983b8c0526c8f7fb8787604051611aab9291906140d7565b60405180910390a4611ac181878787878761219f565b505050505050565b60006020825114611b0f576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611b0690614328565b60405180910390fd5b60208201519050919050565b60008085858585604051602001611b359493929190613ef3565b60405160208183030381529060405280519060200120604051602001611b5b9190613f6d565b60405160208183030381529060405280519060200120905080915050949350505050565b6000611b94828461236f90919063ffffffff16565b73ffffffffffffffffffffffffffffffffffffffff16600560009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1614905092915050565b611c2e828260016040518060400160405280600281526020017f307800000000000000000000000000000000000000000000000000000000000081525061241e565b5050565b6000600360009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905081600360006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b600073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff161415611d68576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611d5f906143c8565b60405180910390fd5b6000611d72611747565b9050611d92818787611d83886125b4565b611d8c886125b4565b87612197565b600080600086815260200190815260200160002060008873ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054905083811015611e29576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611e2090614448565b60405180910390fd5b83810360008087815260200190815260200160002060008973ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055508360008087815260200190815260200160002060008873ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000828254611ede9190614784565b925050819055508573ffffffffffffffffffffffffffffffffffffffff168773ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff167fc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f628888604051611f5b9291906145c3565b60405180910390a4611f7182888888888861267a565b50505050505050565b600073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff161415611fea576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611fe190614428565b60405180910390fd5b6000611ff4611747565b905061202481856000612006876125b4565b61200f876125b4565b60405180602001604052806000815250612197565b600080600085815260200190815260200160002060008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020549050828110156120bb576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016120b290614308565b60405180910390fd5b82810360008086815260200190815260200160002060008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002081905550600073ffffffffffffffffffffffffffffffffffffffff168573ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff167fc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f6287876040516121889291906145c3565b60405180910390a45050505050565b505050505050565b6121be8473ffffffffffffffffffffffffffffffffffffffff1661284a565b15612367578373ffffffffffffffffffffffffffffffffffffffff1663bc197c8187878686866040518663ffffffff1660e01b8152600401612204959493929190613fae565b602060405180830381600087803b15801561221e57600080fd5b505af192505050801561224f57506040513d601f19601f8201168201806040525081019061224c919061317a565b60015b6122de5761225b614a6c565b8061226657506122a3565b806040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161229a91906141c6565b60405180910390fd5b6040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016122d590614208565b60405180910390fd5b63bc197c8160e01b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916817bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614612365576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161235c90614228565b60405180910390fd5b505b505050505050565b60006041825114156123ae5760008060006020850151925060408501519150606085015160001a90506123a48682858561285d565b9350505050612418565b6040825114156123dd5760008060208401519150604084015190506123d48583836129e8565b92505050612418565b6040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161240f90614268565b60405180910390fd5b92915050565b600073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff16141561248e576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161248590614588565b60405180910390fd5b6000612498611747565b90506124b9816000876124aa886125b4565b6124b3886125b4565b87612197565b8260008086815260200190815260200160002060008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008282546125189190614784565b925050819055508473ffffffffffffffffffffffffffffffffffffffff16600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff167fc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f6287876040516125969291906145c3565b60405180910390a46125ad8160008787878761267a565b5050505050565b60606000600167ffffffffffffffff8111156125f9577f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b6040519080825280602002602001820160405280156126275781602001602082028036833780820191505090505b5090508281600081518110612665577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b60200260200101818152505080915050919050565b6126998473ffffffffffffffffffffffffffffffffffffffff1661284a565b15612842578373ffffffffffffffffffffffffffffffffffffffff1663f23a6e6187878686866040518663ffffffff1660e01b81526004016126df959493929190614016565b602060405180830381600087803b1580156126f957600080fd5b505af192505050801561272a57506040513d601f19601f82011682018060405250810190612727919061317a565b60015b6127b957612736614a6c565b80612741575061277e565b806040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161277591906141c6565b60405180910390fd5b6040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016127b090614208565b60405180910390fd5b63f23a6e6160e01b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916817bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614612840576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161283790614228565b60405180910390fd5b505b505050505050565b600080823b905060008111915050919050565b60007f7fffffffffffffffffffffffffffffff5d576e7357a4501ddfe92f46681b20a08260001c11156128c5576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016128bc90614368565b60405180910390fd5b601b8460ff1614806128da5750601c8460ff16145b612919576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161291090614408565b60405180910390fd5b60006001868686866040516000815260200160405260405161293e9493929190614144565b6020604051602081039080840390855afa158015612960573d6000803e3d6000fd5b505050602060405103519050600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1614156129dc576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016129d3906141e8565b60405180910390fd5b80915050949350505050565b60008060007f7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff84169150601b8460ff1c019050612a278682878561285d565b925050509392505050565b828054612a3e906148f7565b90600052602060002090601f016020900481019282612a605760008555612aa7565b82601f10612a7957805160ff1916838001178555612aa7565b82800160010185558215612aa7579182015b82811115612aa6578251825591602001919060010190612a8b565b5b509050612ab49190612ab8565b5090565b5b80821115612ad1576000816000905550600101612ab9565b5090565b6000612ae8612ae38461461d565b6145ec565b90508083825260208201905082856020860282011115612b0757600080fd5b60005b85811015612b375781612b1d8882612c29565b845260208401935060208301925050600181019050612b0a565b5050509392505050565b6000612b54612b4f84614649565b6145ec565b90508083825260208201905082856020860282011115612b7357600080fd5b60005b85811015612ba35781612b898882612d84565b845260208401935060208301925050600181019050612b76565b5050509392505050565b6000612bc0612bbb84614675565b6145ec565b905082815260208101848484011115612bd857600080fd5b612be38482856148b5565b509392505050565b6000612bfe612bf9846146a5565b6145ec565b905082815260208101848484011115612c1657600080fd5b612c218482856148b5565b509392505050565b600081359050612c3881614b22565b92915050565b600081519050612c4d81614b22565b92915050565b600082601f830112612c6457600080fd5b8135612c74848260208601612ad5565b91505092915050565b600082601f830112612c8e57600080fd5b8135612c9e848260208601612b41565b91505092915050565b600081359050612cb681614b39565b92915050565b600081359050612ccb81614b50565b92915050565b600081519050612ce081614b50565b92915050565b60008083601f840112612cf857600080fd5b8235905067ffffffffffffffff811115612d1157600080fd5b602083019150836001820283011115612d2957600080fd5b9250929050565b600082601f830112612d4157600080fd5b8135612d51848260208601612bad565b91505092915050565b600082601f830112612d6b57600080fd5b8135612d7b848260208601612beb565b91505092915050565b600081359050612d9381614b67565b92915050565b600060208284031215612dab57600080fd5b6000612db984828501612c29565b91505092915050565b600060208284031215612dd457600080fd5b6000612de284828501612c3e565b91505092915050565b60008060408385031215612dfe57600080fd5b6000612e0c85828601612c29565b9250506020612e1d85828601612c29565b9150509250929050565b600080600080600060a08688031215612e3f57600080fd5b6000612e4d88828901612c29565b9550506020612e5e88828901612c29565b945050604086013567ffffffffffffffff811115612e7b57600080fd5b612e8788828901612c7d565b935050606086013567ffffffffffffffff811115612ea457600080fd5b612eb088828901612c7d565b925050608086013567ffffffffffffffff811115612ecd57600080fd5b612ed988828901612d30565b9150509295509295909350565b600080600080600060a08688031215612efe57600080fd5b6000612f0c88828901612c29565b9550506020612f1d88828901612c29565b9450506040612f2e88828901612d84565b9350506060612f3f88828901612d84565b925050608086013567ffffffffffffffff811115612f5c57600080fd5b612f6888828901612d30565b9150509295509295909350565b60008060408385031215612f8857600080fd5b6000612f9685828601612c29565b9250506020612fa785828601612ca7565b9150509250929050565b60008060408385031215612fc457600080fd5b6000612fd285828601612c29565b9250506020612fe385828601612d84565b9150509250929050565b60008060006060848603121561300257600080fd5b600061301086828701612c29565b935050602061302186828701612d84565b925050604061303286828701612d84565b9150509250925092565b60008060008060006080868803121561305457600080fd5b600061306288828901612c29565b955050602061307388828901612d84565b945050604061308488828901612d84565b935050606086013567ffffffffffffffff8111156130a157600080fd5b6130ad88828901612ce6565b92509250509295509295909350565b600080604083850312156130cf57600080fd5b600083013567ffffffffffffffff8111156130e957600080fd5b6130f585828601612c53565b925050602083013567ffffffffffffffff81111561311257600080fd5b61311e85828601612c7d565b9150509250929050565b60006020828403121561313a57600080fd5b600061314884828501612ca7565b91505092915050565b60006020828403121561316357600080fd5b600061317184828501612cbc565b91505092915050565b60006020828403121561318c57600080fd5b600061319a84828501612cd1565b91505092915050565b6000602082840312156131b557600080fd5b600082013567ffffffffffffffff8111156131cf57600080fd5b6131db84828501612d5a565b91505092915050565b6000602082840312156131f657600080fd5b600061320484828501612d84565b91505092915050565b60006132198383613eaf565b60208301905092915050565b61322e816147da565b82525050565b613245613240826147da565b614972565b82525050565b6000613256826146e5565b6132608185614713565b935061326b836146d5565b8060005b8381101561329c578151613283888261320d565b975061328e83614706565b92505060018101905061326f565b5085935050505092915050565b6132b2816147ec565b82525050565b6132c1816147f8565b82525050565b6132d86132d3826147f8565b614984565b82525050565b6132e781614824565b82525050565b6132fe6132f982614824565b61498e565b82525050565b600061330f826146f0565b6133198185614724565b93506133298185602086016148c4565b61333281614a41565b840191505092915050565b61334681614891565b82525050565b6000613357826146fb565b6133618185614735565b93506133718185602086016148c4565b61337a81614a41565b840191505092915050565b6000613392601883614735565b91507f45434453413a20696e76616c6964207369676e617475726500000000000000006000830152602082019050919050565b60006133d2603483614735565b91507f455243313135353a207472616e7366657220746f206e6f6e204552433131353560008301527f526563656976657220696d706c656d656e7465720000000000000000000000006020830152604082019050919050565b6000613438602883614735565b91507f455243313135353a204552433131353552656365697665722072656a6563746560008301527f6420746f6b656e730000000000000000000000000000000000000000000000006020830152604082019050919050565b600061349e602383614735565b91507f4275726e656420746f6b656e2068617320616c7265616479206265656e20667560008301527f73656400000000000000000000000000000000000000000000000000000000006020830152604082019050919050565b6000613504601f83614735565b91507f45434453413a20696e76616c6964207369676e6174757265206c656e677468006000830152602082019050919050565b6000613544601c83614746565b91507f19457468657265756d205369676e6564204d6573736167653a0a3332000000006000830152601c82019050919050565b6000613584603183614735565b91507f4f6e6c7920746865204f6d6e696d6f7270687320636f6e74726163742063616e60008301527f2063616c6c2074686973206d6574686f640000000000000000000000000000006020830152604082019050919050565b60006135ea602b83614735565b91507f455243313135353a2062616c616e636520717565727920666f7220746865207a60008301527f65726f20616464726573730000000000000000000000000000000000000000006020830152604082019050919050565b6000613650602683614735565b91507f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160008301527f64647265737300000000000000000000000000000000000000000000000000006020830152604082019050919050565b60006136b6602283614735565b91507f467573656420746f6b656e2068617320616c7265616479206265656e2066757360008301527f65640000000000000000000000000000000000000000000000000000000000006020830152604082019050919050565b600061371c602483614735565b91507f455243313135353a206275726e20616d6f756e7420657863656564732062616c60008301527f616e6365000000000000000000000000000000000000000000000000000000006020830152604082019050919050565b6000613782602983614735565b91507f536f757263652062797465732061727261792068617320746f206265206f662060008301527f6c656e67746820333200000000000000000000000000000000000000000000006020830152604082019050919050565b60006137e8602983614735565b91507f455243313135353a2063616c6c6572206973206e6f74206f776e6572206e6f7260008301527f20617070726f76656400000000000000000000000000000000000000000000006020830152604082019050919050565b600061384e602283614735565b91507f45434453413a20696e76616c6964207369676e6174757265202773272076616c60008301527f75650000000000000000000000000000000000000000000000000000000000006020830152604082019050919050565b60006138b4601f83614735565b91507f547279696e6720746f6f206275726e20746f6f206d616e7920746f6b656e73006000830152602082019050919050565b60006138f4602983614735565b91507f43616e6e6f742072657365742c20617320667573696f6e206973206c6f636b6560008301527f6420666f726576657200000000000000000000000000000000000000000000006020830152604082019050919050565b600061395a602583614735565b91507f455243313135353a207472616e7366657220746f20746865207a65726f20616460008301527f64726573730000000000000000000000000000000000000000000000000000006020830152604082019050919050565b60006139c0603283614735565b91507f455243313135353a207472616e736665722063616c6c6572206973206e6f742060008301527f6f776e6572206e6f7220617070726f76656400000000000000000000000000006020830152604082019050919050565b6000613a26602283614735565b91507f45434453413a20696e76616c6964207369676e6174757265202776272076616c60008301527f75650000000000000000000000000000000000000000000000000000000000006020830152604082019050919050565b6000613a8c602383614735565b91507f455243313135353a206275726e2066726f6d20746865207a65726f206164647260008301527f65737300000000000000000000000000000000000000000000000000000000006020830152604082019050919050565b6000613af2602a83614735565b91507f455243313135353a20696e73756666696369656e742062616c616e636520666f60008301527f72207472616e73666572000000000000000000000000000000000000000000006020830152604082019050919050565b6000613b58602083614735565b91507f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726000830152602082019050919050565b6000613b98602583614735565b91507f4275726e2063616c6c6572206973206e6f74206f776e6572206e6f722061707060008301527f726f7665640000000000000000000000000000000000000000000000000000006020830152604082019050919050565b6000613bfe601e83614735565b91507f467573696f6e2069732063757272656e746c79206e6f742061637469766500006000830152602082019050919050565b6000613c3e602583614735565b91507f43616e206f6e6c79206c6f636b207768656e20667573696f6e20697320696e6160008301527f63746976650000000000000000000000000000000000000000000000000000006020830152604082019050919050565b6000613ca4602983614735565b91507f455243313135353a2073657474696e6720617070726f76616c2073746174757360008301527f20666f722073656c6600000000000000000000000000000000000000000000006020830152604082019050919050565b6000613d0a601a83614735565b91507f546f6b656e73206e6f74206f776e65642062792073656e6465720000000000006000830152602082019050919050565b6000613d4a602983614735565b91507f455243313135353a206163636f756e747320616e6420696473206c656e67746860008301527f206d69736d6174636800000000000000000000000000000000000000000000006020830152604082019050919050565b6000613db0602883614735565b91507f455243313135353a2069647320616e6420616d6f756e7473206c656e6774682060008301527f6d69736d617463680000000000000000000000000000000000000000000000006020830152604082019050919050565b6000613e16601683614735565b91507f5369676e617475726520697320696e636f7272656374000000000000000000006000830152602082019050919050565b6000613e56602183614735565b91507f455243313135353a206d696e7420746f20746865207a65726f2061646472657360008301527f73000000000000000000000000000000000000000000000000000000000000006020830152604082019050919050565b613eb88161487a565b82525050565b613ec78161487a565b82525050565b613ede613ed98261487a565b6149aa565b82525050565b613eed81614884565b82525050565b6000613eff8287613234565b601482019150613f0f8286613ecd565b602082019150613f1f8285613ecd565b602082019150613f2f82846132ed565b60208201915081905095945050505050565b6000613f4d82856132c7565b600282019150613f5d82846132ed565b6020820191508190509392505050565b6000613f7882613537565b9150613f8482846132ed565b60208201915081905092915050565b6000602082019050613fa86000830184613225565b92915050565b600060a082019050613fc36000830188613225565b613fd06020830187613225565b8181036040830152613fe2818661324b565b90508181036060830152613ff6818561324b565b9050818103608083015261400a8184613304565b90509695505050505050565b600060a08201905061402b6000830188613225565b6140386020830187613225565b6140456040830186613ebe565b6140526060830185613ebe565b81810360808301526140648184613304565b90509695505050505050565b60006080820190506140856000830187613225565b6140926020830186613ebe565b61409f6040830185613ebe565b6140ac60608301846132de565b95945050505050565b600060208201905081810360008301526140cf818461324b565b905092915050565b600060408201905081810360008301526140f1818561324b565b90508181036020830152614105818461324b565b90509392505050565b600060208201905061412360008301846132a9565b92915050565b600060208201905061413e60008301846132b8565b92915050565b600060808201905061415960008301876132de565b6141666020830186613ee4565b61417360408301856132de565b61418060608301846132de565b95945050505050565b600060208201905081810360008301526141a38184613304565b905092915050565b60006020820190506141c0600083018461333d565b92915050565b600060208201905081810360008301526141e0818461334c565b905092915050565b6000602082019050818103600083015261420181613385565b9050919050565b60006020820190508181036000830152614221816133c5565b9050919050565b600060208201905081810360008301526142418161342b565b9050919050565b6000602082019050818103600083015261426181613491565b9050919050565b60006020820190508181036000830152614281816134f7565b9050919050565b600060208201905081810360008301526142a181613577565b9050919050565b600060208201905081810360008301526142c1816135dd565b9050919050565b600060208201905081810360008301526142e181613643565b9050919050565b60006020820190508181036000830152614301816136a9565b9050919050565b600060208201905081810360008301526143218161370f565b9050919050565b6000602082019050818103600083015261434181613775565b9050919050565b60006020820190508181036000830152614361816137db565b9050919050565b6000602082019050818103600083015261438181613841565b9050919050565b600060208201905081810360008301526143a1816138a7565b9050919050565b600060208201905081810360008301526143c1816138e7565b9050919050565b600060208201905081810360008301526143e18161394d565b9050919050565b60006020820190508181036000830152614401816139b3565b9050919050565b6000602082019050818103600083015261442181613a19565b9050919050565b6000602082019050818103600083015261444181613a7f565b9050919050565b6000602082019050818103600083015261446181613ae5565b9050919050565b6000602082019050818103600083015261448181613b4b565b9050919050565b600060208201905081810360008301526144a181613b8b565b9050919050565b600060208201905081810360008301526144c181613bf1565b9050919050565b600060208201905081810360008301526144e181613c31565b9050919050565b6000602082019050818103600083015261450181613c97565b9050919050565b6000602082019050818103600083015261452181613cfd565b9050919050565b6000602082019050818103600083015261454181613d3d565b9050919050565b6000602082019050818103600083015261456181613da3565b9050919050565b6000602082019050818103600083015261458181613e09565b9050919050565b600060208201905081810360008301526145a181613e49565b9050919050565b60006020820190506145bd6000830184613ebe565b92915050565b60006040820190506145d86000830185613ebe565b6145e56020830184613ebe565b9392505050565b6000604051905081810181811067ffffffffffffffff8211171561461357614612614a12565b5b8060405250919050565b600067ffffffffffffffff82111561463857614637614a12565b5b602082029050602081019050919050565b600067ffffffffffffffff82111561466457614663614a12565b5b602082029050602081019050919050565b600067ffffffffffffffff8211156146905761468f614a12565b5b601f19601f8301169050602081019050919050565b600067ffffffffffffffff8211156146c0576146bf614a12565b5b601f19601f8301169050602081019050919050565b6000819050602082019050919050565b600081519050919050565b600081519050919050565b600081519050919050565b6000602082019050919050565b600082825260208201905092915050565b600082825260208201905092915050565b600082825260208201905092915050565b600081905092915050565b6000808585111561476157600080fd5b8386111561476e57600080fd5b6001850283019150848603905094509492505050565b600061478f8261487a565b915061479a8361487a565b9250827fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff038211156147cf576147ce6149b4565b5b828201905092915050565b60006147e58261485a565b9050919050565b60008115159050919050565b60007fffff00000000000000000000000000000000000000000000000000000000000082169050919050565b6000819050919050565b60007fffffffff0000000000000000000000000000000000000000000000000000000082169050919050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000819050919050565b600060ff82169050919050565b600061489c826148a3565b9050919050565b60006148ae8261485a565b9050919050565b82818337600083830152505050565b60005b838110156148e25780820151818401526020810190506148c7565b838111156148f1576000848401525b50505050565b6000600282049050600182168061490f57607f821691505b60208210811415614923576149226149e3565b5b50919050565b60006149348261487a565b91507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff821415614967576149666149b4565b5b600182019050919050565b600061497d82614998565b9050919050565b6000819050919050565b6000819050919050565b60006149a382614a52565b9050919050565b6000819050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b6000601f19601f8301169050919050565b60008160601b9050919050565b60008160e01c9050919050565b600060443d1015614a7c57614b1f565b60046000803e614a8d600051614a5f565b6308c379a08114614a9e5750614b1f565b60405160043d036004823e80513d602482011167ffffffffffffffff82111715614aca57505050614b1f565b808201805167ffffffffffffffff811115614ae9575050505050614b1f565b8060208301013d8501811115614b0457505050505050614b1f565b614b0d82614a41565b60208401016040528296505050505050505b90565b614b2b816147da565b8114614b3657600080fd5b50565b614b42816147ec565b8114614b4d57600080fd5b50565b614b598161482e565b8114614b6457600080fd5b50565b614b708161487a565b8114614b7b57600080fd5b5056fea2646970667358221220b7d2ff8635e0601617011b90d99ef6e85b5e32b65d2d8a858124880a3607cb2964736f6c63430008000033
Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)
0000000000000000000000000000000000000000000000000000000000000060000000000000000000000000b5f3dee204ca76e913bb3129ba0312b9f0f31d82000000000000000000000000a1176527c8a4b057e1e052bddc6ff9fa5be48b8a0000000000000000000000000000000000000000000000000000000000000000
-----Decoded View---------------
Arg [0] : initialURI (string):
Arg [1] : _omnimorphsAddress (address): 0xb5f3dEE204cA76E913bb3129BA0312b9f0f31D82
Arg [2] : _signer (address): 0xA1176527C8A4b057e1e052bdDC6FF9FA5bE48b8a
-----Encoded View---------------
4 Constructor Arguments found :
Arg [0] : 0000000000000000000000000000000000000000000000000000000000000060
Arg [1] : 000000000000000000000000b5f3dee204ca76e913bb3129ba0312b9f0f31d82
Arg [2] : 000000000000000000000000a1176527c8a4b057e1e052bddc6ff9fa5be48b8a
Arg [3] : 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.