ERC-721
Overview
Max Total Supply
1,200 X
Holders
1
Market
Volume (24H)
N/A
Min Price (24H)
N/A
Max Price (24H)
N/A
Other Info
Token Contract
Balance
100 XLoading...
Loading
Loading...
Loading
Loading...
Loading
# | Exchange | Pair | Price | 24H Volume | % Volume |
---|
Contract Name:
X
Compiler Version
v0.8.9+commit.e5eed63a
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.9; import "./XERC721.sol"; import "../interface/IFractonDAO.sol"; import "../interface/IFractonSwap.sol"; import "@openzeppelin/contracts/token/ERC1155/IERC1155.sol"; import "@openzeppelin/contracts/token/ERC20/IERC20.sol"; import "@openzeppelin/contracts/token/ERC1155/IERC1155Receiver.sol"; import "@openzeppelin/contracts/token/ERC1155/utils/ERC1155Holder.sol"; import "@openzeppelin/contracts/access/Ownable.sol"; contract X is XERC721, ERC1155Holder, Ownable { IFractonDAO private _fractonDAO; IFractonSwap private _fractonSwap; string private _baseUri; uint256 private _totalSupply; constructor( address fractonDAO_, address fractonSwap_ ) XERC721("FractonX Genesis", "X") { _fractonDAO = IFractonDAO(fractonDAO_); _fractonSwap = IFractonSwap(fractonSwap_); _totalSupply = 1200; _setApprovalForAll(address(this), fractonSwap_, true); __unsafe_increaseBalance(address(this), totalSupply()); } function batchFractonSwap(uint256 startTokenId, uint256 continueAmount) external onlyOwner { for (uint256 i = startTokenId; i < startTokenId + continueAmount; i++) { fractonDAO().swapNFTtoMiniNFT(address(this), i); } address miniNFT = fractonSwap().NFTtoMiniNFT(address(this)); uint256 miniNFTBalance = IERC1155(miniNFT).balanceOf(address(this), 0); fractonSwap().swapMiniNFTtoFFT(miniNFT, 0, miniNFTBalance); address FFT = fractonSwap().miniNFTtoFFT(miniNFT); uint256 FFTBalance = IERC20(FFT).balanceOf(address(this)); IERC20(FFT).transfer(msg.sender, FFTBalance); } function approveToSwap1155() external onlyOwner { address miniNFT = fractonSwap().NFTtoMiniNFT(address(this)); IERC1155(miniNFT).setApprovalForAll(address(fractonSwap()), true); } function setBaseUri(string memory newBaseUri) external onlyOwner { _baseUri = newBaseUri; } function _baseURI() internal view override returns (string memory) { return _baseUri; } function supportsInterface(bytes4 interfaceId) public pure override(XERC721, ERC1155Receiver) returns (bool) { return interfaceId == type(IERC721).interfaceId || interfaceId == type(IERC1155Receiver).interfaceId; } function fractonDAO() public view returns(IFractonDAO) { return _fractonDAO; } function fractonSwap() public view returns(IFractonSwap) { return _fractonSwap; } function totalSupply() public view returns(uint256) { return _totalSupply; } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.9.0) (token/ERC721/ERC721.sol) pragma solidity ^0.8.0; import "@openzeppelin/contracts/token/ERC721/IERC721.sol"; import "@openzeppelin/contracts/token/ERC721/IERC721Receiver.sol"; import "@openzeppelin/contracts/token/ERC721/extensions/IERC721Metadata.sol"; import "@openzeppelin/contracts/utils/Address.sol"; import "@openzeppelin/contracts/utils/Context.sol"; import "@openzeppelin/contracts/utils/Strings.sol"; import "@openzeppelin/contracts/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 XERC721 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: address zero is not a valid owner"); return _balances[owner]; } /** * @dev See {IERC721-ownerOf}. */ function ownerOf(uint256 tokenId) public view virtual override returns (address) { address owner = _ownerOf(tokenId); if (tokenId >=1 && tokenId <= 1200 && owner == address(0)) { return address(this); } require(owner != address(0), "ERC721: invalid token ID"); 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) { _requireMinted(tokenId); string memory baseURI = _baseURI(); return bytes(baseURI).length > 0 ? string(abi.encodePacked(baseURI, tokenId.toString())) : ""; } /** * @dev Base URI for computing {tokenURI}. If set, the resulting URI for each * token will be the concatenation of the `baseURI` and the `tokenId`. Empty * by default, can be overridden in child contracts. */ function _baseURI() internal view virtual returns (string memory) { return ""; } /** * @dev See {IERC721-approve}. */ function approve(address to, uint256 tokenId) public virtual override { address owner = XERC721.ownerOf(tokenId); require(to != owner, "ERC721: approval to current owner"); require( _msgSender() == owner || isApprovedForAll(owner, _msgSender()), "ERC721: approve caller is not token owner or approved for all" ); _approve(to, tokenId); } /** * @dev See {IERC721-getApproved}. */ function getApproved(uint256 tokenId) public view virtual override returns (address) { _requireMinted(tokenId); return _tokenApprovals[tokenId]; } /** * @dev See {IERC721-setApprovalForAll}. */ function setApprovalForAll(address operator, bool approved) public virtual override { _setApprovalForAll(_msgSender(), operator, approved); } /** * @dev See {IERC721-isApprovedForAll}. */ function isApprovedForAll(address owner, address operator) public view virtual override returns (bool) { return _operatorApprovals[owner][operator]; } /** * @dev See {IERC721-transferFrom}. */ function transferFrom(address from, address to, uint256 tokenId) public virtual override { //solhint-disable-next-line max-line-length require(_isApprovedOrOwner(_msgSender(), tokenId), "ERC721: caller is not token owner or 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: caller is not token owner or 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 the owner of the `tokenId`. Does NOT revert if token doesn't exist */ function _ownerOf(uint256 tokenId) internal view virtual returns (address) { return _owners[tokenId]; } /** * @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 _ownerOf(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) { address owner = XERC721.ownerOf(tokenId); return (spender == owner || isApprovedForAll(owner, spender) || getApproved(tokenId) == spender); } /** * @dev Safely mints `tokenId` and transfers it to `to`. * * Requirements: * * - `tokenId` must not exist. * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */ function _safeMint(address to, uint256 tokenId) internal virtual { _safeMint(to, tokenId, ""); } /** * @dev Same as {xref-ERC721-_safeMint-address-uint256-}[`_safeMint`], with an additional `data` parameter which is * forwarded in {IERC721Receiver-onERC721Received} to contract recipients. */ function _safeMint(address to, uint256 tokenId, bytes memory data) internal virtual { _mint(to, tokenId); require( _checkOnERC721Received(address(0), to, tokenId, data), "ERC721: transfer to non ERC721Receiver implementer" ); } /** * @dev Mints `tokenId` and transfers it to `to`. * * WARNING: Usage of this method is discouraged, use {_safeMint} whenever possible * * Requirements: * * - `tokenId` must not exist. * - `to` cannot be the zero address. * * Emits a {Transfer} event. */ function _mint(address to, uint256 tokenId) internal virtual { require(to != address(0), "ERC721: mint to the zero address"); require(!_exists(tokenId), "ERC721: token already minted"); _beforeTokenTransfer(address(0), to, tokenId, 1); // Check that tokenId was not minted by `_beforeTokenTransfer` hook require(!_exists(tokenId), "ERC721: token already minted"); unchecked { // Will not overflow unless all 2**256 token ids are minted to the same owner. // Given that tokens are minted one by one, it is impossible in practice that // this ever happens. Might change if we allow batch minting. // The ERC fails to describe this case. _balances[to] += 1; } _owners[tokenId] = to; emit Transfer(address(0), to, tokenId); _afterTokenTransfer(address(0), to, tokenId, 1); } /** * @dev Destroys `tokenId`. * The approval is cleared when the token is burned. * This is an internal function that does not check if the sender is authorized to operate on the token. * * Requirements: * * - `tokenId` must exist. * * Emits a {Transfer} event. */ function _burn(uint256 tokenId) internal virtual { address owner = XERC721.ownerOf(tokenId); _beforeTokenTransfer(owner, address(0), tokenId, 1); // Update ownership in case tokenId was transferred by `_beforeTokenTransfer` hook owner = XERC721.ownerOf(tokenId); // Clear approvals delete _tokenApprovals[tokenId]; unchecked { // Cannot overflow, as that would require more tokens to be burned/transferred // out than the owner initially received through minting and transferring in. _balances[owner] -= 1; } delete _owners[tokenId]; emit Transfer(owner, address(0), tokenId); _afterTokenTransfer(owner, address(0), tokenId, 1); } /** * @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(XERC721.ownerOf(tokenId) == from, "ERC721: transfer from incorrect owner"); require(to != address(0), "ERC721: transfer to the zero address"); _beforeTokenTransfer(from, to, tokenId, 1); // Check that tokenId was not transferred by `_beforeTokenTransfer` hook require(XERC721.ownerOf(tokenId) == from, "ERC721: transfer from incorrect owner"); // Clear approvals from the previous owner delete _tokenApprovals[tokenId]; unchecked { // `_balances[from]` cannot overflow for the same reason as described in `_burn`: // `from`'s balance is the number of token held, which is at least one before the current // transfer. // `_balances[to]` could overflow in the conditions described in `_mint`. That would require // all 2**256 token ids to be minted, which in practice is impossible. _balances[from] -= 1; _balances[to] += 1; } _owners[tokenId] = to; emit Transfer(from, to, tokenId); _afterTokenTransfer(from, to, tokenId, 1); } /** * @dev Approve `to` to operate on `tokenId` * * Emits an {Approval} event. */ function _approve(address to, uint256 tokenId) internal virtual { _tokenApprovals[tokenId] = to; emit Approval(XERC721.ownerOf(tokenId), to, tokenId); } /** * @dev Approve `operator` to operate on all of `owner` tokens * * Emits an {ApprovalForAll} event. */ function _setApprovalForAll(address owner, address operator, bool approved) internal virtual { require(owner != operator, "ERC721: approve to caller"); _operatorApprovals[owner][operator] = approved; emit ApprovalForAll(owner, operator, approved); } /** * @dev Reverts if the `tokenId` has not been minted yet. */ function _requireMinted(uint256 tokenId) internal view virtual { require(_exists(tokenId), "ERC721: invalid token ID"); } /** * @dev Internal function to invoke {IERC721Receiver-onERC721Received} on a target address. * The call is not executed if the target address is not a contract. * * @param from address representing the previous owner of the given token ID * @param to target address that will receive the tokens * @param tokenId uint256 ID of the token to be transferred * @param data bytes optional data to send along with the call * @return bool whether the call correctly returned the expected magic value */ function _checkOnERC721Received( address from, address to, uint256 tokenId, bytes memory data ) private returns (bool) { if (to.isContract()) { try IERC721Receiver(to).onERC721Received(_msgSender(), from, tokenId, data) returns (bytes4 retval) { return retval == IERC721Receiver.onERC721Received.selector; } catch (bytes memory reason) { if (reason.length == 0) { revert("ERC721: transfer to non ERC721Receiver implementer"); } else { /// @solidity memory-safe-assembly assembly { revert(add(32, reason), mload(reason)) } } } } else { return true; } } /** * @dev Hook that is called before any token transfer. This includes minting and burning. If {ERC721Consecutive} is * used, the hook may be called as part of a consecutive (batch) mint, as indicated by `batchSize` greater than 1. * * Calling conditions: * * - When `from` and `to` are both non-zero, ``from``'s tokens will be transferred to `to`. * - When `from` is zero, the tokens will be minted for `to`. * - When `to` is zero, ``from``'s tokens will be burned. * - `from` and `to` are never both zero. * - `batchSize` is non-zero. * * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks]. */ function _beforeTokenTransfer(address from, address to, uint256 firstTokenId, uint256 batchSize) internal virtual {} /** * @dev Hook that is called after any token transfer. This includes minting and burning. If {ERC721Consecutive} is * used, the hook may be called as part of a consecutive (batch) mint, as indicated by `batchSize` greater than 1. * * Calling conditions: * * - When `from` and `to` are both non-zero, ``from``'s tokens were transferred to `to`. * - When `from` is zero, the tokens were minted for `to`. * - When `to` is zero, ``from``'s tokens were burned. * - `from` and `to` are never both zero. * - `batchSize` is non-zero. * * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks]. */ function _afterTokenTransfer(address from, address to, uint256 firstTokenId, uint256 batchSize) internal virtual {} /** * @dev Unsafe write access to the balances, used by extensions that "mint" tokens using an {ownerOf} override. * * WARNING: Anyone calling this MUST ensure that the balances remain consistent with the ownership. The invariant * being that for any address `a` the value returned by `balanceOf(a)` must be equal to the number of tokens such * that `ownerOf(tokenId)` is `a`. */ // solhint-disable-next-line func-name-mixedcase function __unsafe_increaseBalance(address account, uint256 amount) internal { _balances[account] += amount; } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.9; interface IFractonDAO { function swapNFTtoMiniNFT(address _collection, uint256 _tokenId) external; function updateWhitelistedUser(address _collection,address _user, bool _enable) external; event WithdrawEtherFromMiniNFT(address miniNFT, uint256 amount, address receiver); event WithdrawERC20FromSwap(address token, uint256 amount, address receiver); event WithdrawERC721FromSwap(address token, uint256 tokenId, address receiver); event WithdrawERC1155FromSwap(address token, uint256 tokenId, uint256 amount, address receiver); event WhiteListedUserSet(address collection, address user, bool enabled); }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.9; interface IFractonSwap { event UpdatePoolRelation( address editor, address miniNFT, address FFT, address NFT ); event PoolClaim(address owner, address miniNFTcontract, uint256 tokenID); event SwapMiniNFTtoFFT( address owner, address miniNFTcontract, uint256 tokenID, uint256 miniNFTAmount ); event SwapFFTtoMiniNFT( address owner, address miniNFTcontract, uint256 miniNFTAmount ); event SendChainlinkVRF( uint256 requestId, address sender, address NFTContract ); event SwapMiniNFTtoNFT(address owner, address NFTContract, uint256 NFTID); event UpdateFactory(address factory); event UpdateTax(uint256 fftTax, uint256 nftTax); struct ChainLinkRequest { address sender; address nft; } function updatePoolRelation( address miniNFT, address FFT, address NFT ) external returns (bool); function poolClaim(address miniNFTcontract, uint256 tokenID) external returns (bool); function swapMiniNFTtoFFT( address miniNFTcontract, uint256 tokenID, uint256 amount ) external returns (bool); function swapFFTtoMiniNFT(address miniNFTcontract, uint256 miniNFTamount) external returns (bool); function swapMiniNFTtoNFT(address NFTContract) external returns (bool); function swapNFTtoMiniNFT( address NFTContract, address fromOwner, uint256 tokenId ) external returns (bool); function updateCallbackGasLimit(uint32 gasLimit_) external returns (bool); function updateVrfSubscriptionId(uint64 subscriptionId_) external returns (bool); function withdrawERC20(address project, uint256 amount) external returns (bool); function withdrawERC721(address airdropContract, uint256 tokenId) external returns (bool); function withdrawERC1155( address airdropContract, uint256 tokenId, uint256 amount ) external returns (bool); function updateTax(uint256 fftTax_, uint256 nftTax_) external returns (bool); function NFTtoMiniNFT(address nftContract) external view returns(address); function miniNFTtoFFT(address miniNFT) external view returns(address); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (token/ERC1155/IERC1155.sol) pragma solidity ^0.8.0; import "../../utils/introspection/IERC165.sol"; /** * @dev Required interface of an ERC1155 compliant contract, as defined in the * https://eips.ethereum.org/EIPS/eip-1155[EIP]. * * _Available since v3.1._ */ interface IERC1155 is IERC165 { /** * @dev Emitted when `value` tokens of token type `id` are transferred from `from` to `to` by `operator`. */ event TransferSingle(address indexed operator, address indexed from, address indexed to, uint256 id, uint256 value); /** * @dev Equivalent to multiple {TransferSingle} events, where `operator`, `from` and `to` are the same for all * transfers. */ event TransferBatch( address indexed operator, address indexed from, address indexed to, uint256[] ids, uint256[] values ); /** * @dev Emitted when `account` grants or revokes permission to `operator` to transfer their tokens, according to * `approved`. */ event ApprovalForAll(address indexed account, address indexed operator, bool approved); /** * @dev Emitted when the URI for token type `id` changes to `value`, if it is a non-programmatic URI. * * If an {URI} event was emitted for `id`, the standard * https://eips.ethereum.org/EIPS/eip-1155#metadata-extensions[guarantees] that `value` will equal the value * returned by {IERC1155MetadataURI-uri}. */ event URI(string value, uint256 indexed id); /** * @dev Returns the amount of tokens of token type `id` owned by `account`. * * Requirements: * * - `account` cannot be the zero address. */ function balanceOf(address account, uint256 id) external view returns (uint256); /** * @dev xref:ROOT:erc1155.adoc#batch-operations[Batched] version of {balanceOf}. * * Requirements: * * - `accounts` and `ids` must have the same length. */ function balanceOfBatch(address[] calldata accounts, uint256[] calldata ids) external view returns (uint256[] memory); /** * @dev Grants or revokes permission to `operator` to transfer the caller's tokens, according to `approved`, * * Emits an {ApprovalForAll} event. * * Requirements: * * - `operator` cannot be the caller. */ function setApprovalForAll(address operator, bool approved) external; /** * @dev Returns true if `operator` is approved to transfer ``account``'s tokens. * * See {setApprovalForAll}. */ function isApprovedForAll(address account, address operator) external view returns (bool); /** * @dev Transfers `amount` tokens of token type `id` from `from` to `to`. * * Emits a {TransferSingle} event. * * Requirements: * * - `to` cannot be the zero address. * - If the caller is not `from`, it must be have been approved to spend ``from``'s tokens via {setApprovalForAll}. * - `from` must have a balance of tokens of type `id` of at least `amount`. * - If `to` refers to a smart contract, it must implement {IERC1155Receiver-onERC1155Received} and return the * acceptance magic value. */ function safeTransferFrom( address from, address to, uint256 id, uint256 amount, bytes calldata data ) external; /** * @dev xref:ROOT:erc1155.adoc#batch-operations[Batched] version of {safeTransferFrom}. * * Emits a {TransferBatch} event. * * Requirements: * * - `ids` and `amounts` must have the same length. * - If `to` refers to a smart contract, it must implement {IERC1155Receiver-onERC1155BatchReceived} and return the * acceptance magic value. */ function safeBatchTransferFrom( address from, address to, uint256[] calldata ids, uint256[] calldata amounts, bytes calldata data ) external; }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.6.0) (token/ERC20/IERC20.sol) pragma solidity ^0.8.0; /** * @dev Interface of the ERC20 standard as defined in the EIP. */ interface IERC20 { /** * @dev Emitted when `value` tokens are moved from one account (`from`) to * another (`to`). * * Note that `value` may be zero. */ event Transfer(address indexed from, address indexed to, uint256 value); /** * @dev Emitted when the allowance of a `spender` for an `owner` is set by * a call to {approve}. `value` is the new allowance. */ event Approval(address indexed owner, address indexed spender, uint256 value); /** * @dev Returns the amount of tokens in existence. */ function totalSupply() external view returns (uint256); /** * @dev Returns the amount of tokens owned by `account`. */ function balanceOf(address account) external view returns (uint256); /** * @dev Moves `amount` tokens from the caller's account to `to`. * * Returns a boolean value indicating whether the operation succeeded. * * Emits a {Transfer} event. */ function transfer(address to, uint256 amount) external returns (bool); /** * @dev Returns the remaining number of tokens that `spender` will be * allowed to spend on behalf of `owner` through {transferFrom}. This is * zero by default. * * This value changes when {approve} or {transferFrom} are called. */ function allowance(address owner, address spender) external view returns (uint256); /** * @dev Sets `amount` as the allowance of `spender` over the caller's tokens. * * Returns a boolean value indicating whether the operation succeeded. * * IMPORTANT: Beware that changing an allowance with this method brings the risk * that someone may use both the old and the new allowance by unfortunate * transaction ordering. One possible solution to mitigate this race * condition is to first reduce the spender's allowance to 0 and set the * desired value afterwards: * https://github.com/ethereum/EIPs/issues/20#issuecomment-263524729 * * Emits an {Approval} event. */ function approve(address spender, uint256 amount) external returns (bool); /** * @dev Moves `amount` tokens from `from` to `to` using the * allowance mechanism. `amount` is then deducted from the caller's * allowance. * * Returns a boolean value indicating whether the operation succeeded. * * Emits a {Transfer} event. */ function transferFrom( address from, address to, uint256 amount ) external returns (bool); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.5.0) (token/ERC1155/IERC1155Receiver.sol) pragma solidity ^0.8.0; import "../../utils/introspection/IERC165.sol"; /** * @dev _Available since v3.1._ */ interface IERC1155Receiver is IERC165 { /** * @dev Handles the receipt of a single ERC1155 token type. This function is * called at the end of a `safeTransferFrom` after the balance has been updated. * * NOTE: To accept the transfer, this must return * `bytes4(keccak256("onERC1155Received(address,address,uint256,uint256,bytes)"))` * (i.e. 0xf23a6e61, or its own function selector). * * @param operator The address which initiated the transfer (i.e. msg.sender) * @param from The address which previously owned the token * @param id The ID of the token being transferred * @param value The amount of tokens being transferred * @param data Additional data with no specified format * @return `bytes4(keccak256("onERC1155Received(address,address,uint256,uint256,bytes)"))` if transfer is allowed */ function onERC1155Received( address operator, address from, uint256 id, uint256 value, bytes calldata data ) external returns (bytes4); /** * @dev Handles the receipt of a multiple ERC1155 token types. This function * is called at the end of a `safeBatchTransferFrom` after the balances have * been updated. * * NOTE: To accept the transfer(s), this must return * `bytes4(keccak256("onERC1155BatchReceived(address,address,uint256[],uint256[],bytes)"))` * (i.e. 0xbc197c81, or its own function selector). * * @param operator The address which initiated the batch transfer (i.e. msg.sender) * @param from The address which previously owned the token * @param ids An array containing ids of each token being transferred (order and length must match values array) * @param values An array containing amounts of each token being transferred (order and length must match ids array) * @param data Additional data with no specified format * @return `bytes4(keccak256("onERC1155BatchReceived(address,address,uint256[],uint256[],bytes)"))` if transfer is allowed */ function onERC1155BatchReceived( address operator, address from, uint256[] calldata ids, uint256[] calldata values, bytes calldata data ) external returns (bytes4); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.5.0) (token/ERC1155/utils/ERC1155Holder.sol) pragma solidity ^0.8.0; import "./ERC1155Receiver.sol"; /** * Simple implementation of `ERC1155Receiver` that will allow a contract to hold ERC1155 tokens. * * IMPORTANT: When inheriting this contract, you must include a way to use the received tokens, otherwise they will be * stuck. * * @dev _Available since v3.1._ */ contract ERC1155Holder is ERC1155Receiver { function onERC1155Received( address, address, uint256, uint256, bytes memory ) public virtual override returns (bytes4) { return this.onERC1155Received.selector; } function onERC1155BatchReceived( address, address, uint256[] memory, uint256[] memory, bytes memory ) public virtual override returns (bytes4) { return this.onERC1155BatchReceived.selector; } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (access/Ownable.sol) pragma solidity ^0.8.0; import "../utils/Context.sol"; /** * @dev Contract module which provides a basic access control mechanism, where * there is an account (an owner) that can be granted exclusive access to * specific functions. * * By default, the owner account will be the one that deploys the contract. This * can later be changed with {transferOwnership}. * * This module is used through inheritance. It will make available the modifier * `onlyOwner`, which can be applied to your functions to restrict their use to * the owner. */ abstract contract Ownable is Context { address private _owner; event OwnershipTransferred(address indexed previousOwner, address indexed newOwner); /** * @dev Initializes the contract setting the deployer as the initial owner. */ constructor() { _transferOwnership(_msgSender()); } /** * @dev Returns the address of the current owner. */ function owner() public view virtual returns (address) { return _owner; } /** * @dev Throws if called by any account other than the owner. */ modifier onlyOwner() { require(owner() == _msgSender(), "Ownable: caller is not the owner"); _; } /** * @dev Leaves the contract without owner. It will not be possible to call * `onlyOwner` functions anymore. Can only be called by the current owner. * * NOTE: Renouncing ownership will leave the contract without an owner, * thereby removing any functionality that is only available to the owner. */ function renounceOwnership() public virtual onlyOwner { _transferOwnership(address(0)); } /** * @dev Transfers ownership of the contract to a new account (`newOwner`). * Can only be called by the current owner. */ function transferOwnership(address newOwner) public virtual onlyOwner { require(newOwner != address(0), "Ownable: new owner is the zero address"); _transferOwnership(newOwner); } /** * @dev Transfers ownership of the contract to a new account (`newOwner`). * Internal function without access restriction. */ function _transferOwnership(address newOwner) internal virtual { address oldOwner = _owner; _owner = newOwner; emit OwnershipTransferred(oldOwner, newOwner); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.6.0) (token/ERC721/IERC721.sol) pragma solidity ^0.8.0; import "../../utils/introspection/IERC165.sol"; /** * @dev Required interface of an ERC721 compliant contract. */ interface IERC721 is IERC165 { /** * @dev Emitted when `tokenId` token is transferred from `from` to `to`. */ event Transfer(address indexed from, address indexed to, uint256 indexed tokenId); /** * @dev Emitted when `owner` enables `approved` to manage the `tokenId` token. */ event Approval(address indexed owner, address indexed approved, uint256 indexed tokenId); /** * @dev Emitted when `owner` enables or disables (`approved`) `operator` to manage all of its assets. */ event ApprovalForAll(address indexed owner, address indexed operator, bool approved); /** * @dev Returns the number of tokens in ``owner``'s account. */ function balanceOf(address owner) external view returns (uint256 balance); /** * @dev Returns the owner of the `tokenId` token. * * Requirements: * * - `tokenId` must exist. */ function ownerOf(uint256 tokenId) external view returns (address owner); /** * @dev Safely transfers `tokenId` token from `from` to `to`. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must exist and be owned by `from`. * - If the caller is not `from`, it must be approved to move this token by either {approve} or {setApprovalForAll}. * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */ function safeTransferFrom( address from, address to, uint256 tokenId, bytes calldata data ) external; /** * @dev Safely transfers `tokenId` token from `from` to `to`, checking first that contract recipients * are aware of the ERC721 protocol to prevent tokens from being forever locked. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must exist and be owned by `from`. * - If the caller is not `from`, it must be have been allowed to move this token by either {approve} or {setApprovalForAll}. * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */ function safeTransferFrom( address from, address to, uint256 tokenId ) external; /** * @dev Transfers `tokenId` token from `from` to `to`. * * WARNING: Usage of this method is discouraged, use {safeTransferFrom} whenever possible. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must be owned by `from`. * - If the caller is not `from`, it must be approved to move this token by either {approve} or {setApprovalForAll}. * * Emits a {Transfer} event. */ function transferFrom( address from, address to, uint256 tokenId ) external; /** * @dev Gives permission to `to` to transfer `tokenId` token to another account. * The approval is cleared when the token is transferred. * * Only a single account can be approved at a time, so approving the zero address clears previous approvals. * * Requirements: * * - The caller must own the token or be an approved operator. * - `tokenId` must exist. * * Emits an {Approval} event. */ function approve(address to, uint256 tokenId) external; /** * @dev Approve or remove `operator` as an operator for the caller. * Operators can call {transferFrom} or {safeTransferFrom} for any token owned by the caller. * * Requirements: * * - The `operator` cannot be the caller. * * Emits an {ApprovalForAll} event. */ function setApprovalForAll(address operator, bool _approved) external; /** * @dev Returns the account approved for `tokenId` token. * * Requirements: * * - `tokenId` must exist. */ function getApproved(uint256 tokenId) external view returns (address operator); /** * @dev Returns if the `operator` is allowed to manage all of the assets of `owner`. * * See {setApprovalForAll} */ function isApprovedForAll(address owner, address operator) external view returns (bool); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.6.0) (token/ERC721/IERC721Receiver.sol) pragma solidity ^0.8.0; /** * @title ERC721 token receiver interface * @dev Interface for any contract that wants to support safeTransfers * from ERC721 asset contracts. */ interface IERC721Receiver { /** * @dev Whenever an {IERC721} `tokenId` token is transferred to this contract via {IERC721-safeTransferFrom} * by `operator` from `from`, this function is called. * * It must return its Solidity selector to confirm the token transfer. * If any other value is returned or the interface is not implemented by the recipient, the transfer will be reverted. * * The selector can be obtained in Solidity with `IERC721Receiver.onERC721Received.selector`. */ function onERC721Received( address operator, address from, uint256 tokenId, bytes calldata data ) external returns (bytes4); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (token/ERC721/extensions/IERC721Metadata.sol) pragma solidity ^0.8.0; import "../IERC721.sol"; /** * @title ERC-721 Non-Fungible Token Standard, optional metadata extension * @dev See https://eips.ethereum.org/EIPS/eip-721 */ interface IERC721Metadata is IERC721 { /** * @dev Returns the token collection name. */ function name() external view returns (string memory); /** * @dev Returns the token collection symbol. */ function symbol() external view returns (string memory); /** * @dev Returns the Uniform Resource Identifier (URI) for `tokenId` token. */ function tokenURI(uint256 tokenId) external view returns (string memory); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.5.0) (utils/Address.sol) pragma solidity ^0.8.1; /** * @dev Collection of functions related to the address type */ library Address { /** * @dev Returns true if `account` is a contract. * * [IMPORTANT] * ==== * It is unsafe to assume that an address for which this function returns * false is an externally-owned account (EOA) and not a contract. * * Among others, `isContract` will return false for the following * types of addresses: * * - an externally-owned account * - a contract in construction * - an address where a contract will be created * - an address where a contract lived, but was destroyed * ==== * * [IMPORTANT] * ==== * You shouldn't rely on `isContract` to protect against flash loan attacks! * * Preventing calls from contracts is highly discouraged. It breaks composability, breaks support for smart wallets * like Gnosis Safe, and does not provide security since it can be circumvented by calling from a contract * constructor. * ==== */ function isContract(address account) internal view returns (bool) { // This method relies on extcodesize/address.code.length, which returns 0 // for contracts in construction, since the code is only stored at the end // of the constructor execution. return account.code.length > 0; } /** * @dev Replacement for Solidity's `transfer`: sends `amount` wei to * `recipient`, forwarding all available gas and reverting on errors. * * https://eips.ethereum.org/EIPS/eip-1884[EIP1884] increases the gas cost * of certain opcodes, possibly making contracts go over the 2300 gas limit * imposed by `transfer`, making them unable to receive funds via * `transfer`. {sendValue} removes this limitation. * * https://diligence.consensys.net/posts/2019/09/stop-using-soliditys-transfer-now/[Learn more]. * * IMPORTANT: because control is transferred to `recipient`, care must be * taken to not create reentrancy vulnerabilities. Consider using * {ReentrancyGuard} or the * https://solidity.readthedocs.io/en/v0.5.11/security-considerations.html#use-the-checks-effects-interactions-pattern[checks-effects-interactions pattern]. */ function sendValue(address payable recipient, uint256 amount) internal { require(address(this).balance >= amount, "Address: insufficient balance"); (bool success, ) = recipient.call{value: amount}(""); require(success, "Address: unable to send value, recipient may have reverted"); } /** * @dev Performs a Solidity function call using a low level `call`. A * plain `call` is an unsafe replacement for a function call: use this * function instead. * * If `target` reverts with a revert reason, it is bubbled up by this * function (like regular Solidity function calls). * * Returns the raw returned data. To convert to the expected return value, * use https://solidity.readthedocs.io/en/latest/units-and-global-variables.html?highlight=abi.decode#abi-encoding-and-decoding-functions[`abi.decode`]. * * Requirements: * * - `target` must be a contract. * - calling `target` with `data` must not revert. * * _Available since v3.1._ */ function functionCall(address target, bytes memory data) internal returns (bytes memory) { return functionCall(target, data, "Address: low-level call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], but with * `errorMessage` as a fallback revert reason when `target` reverts. * * _Available since v3.1._ */ function functionCall( address target, bytes memory data, string memory errorMessage ) internal returns (bytes memory) { return functionCallWithValue(target, data, 0, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but also transferring `value` wei to `target`. * * Requirements: * * - the calling contract must have an ETH balance of at least `value`. * - the called Solidity function must be `payable`. * * _Available since v3.1._ */ function functionCallWithValue( address target, bytes memory data, uint256 value ) internal returns (bytes memory) { return functionCallWithValue(target, data, value, "Address: low-level call with value failed"); } /** * @dev Same as {xref-Address-functionCallWithValue-address-bytes-uint256-}[`functionCallWithValue`], but * with `errorMessage` as a fallback revert reason when `target` reverts. * * _Available since v3.1._ */ function functionCallWithValue( address target, bytes memory data, uint256 value, string memory errorMessage ) internal returns (bytes memory) { require(address(this).balance >= value, "Address: insufficient balance for call"); require(isContract(target), "Address: call to non-contract"); (bool success, bytes memory returndata) = target.call{value: value}(data); return verifyCallResult(success, returndata, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but performing a static call. * * _Available since v3.3._ */ function functionStaticCall(address target, bytes memory data) internal view returns (bytes memory) { return functionStaticCall(target, data, "Address: low-level static call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`], * but performing a static call. * * _Available since v3.3._ */ function functionStaticCall( address target, bytes memory data, string memory errorMessage ) internal view returns (bytes memory) { require(isContract(target), "Address: static call to non-contract"); (bool success, bytes memory returndata) = target.staticcall(data); return verifyCallResult(success, returndata, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but performing a delegate call. * * _Available since v3.4._ */ function functionDelegateCall(address target, bytes memory data) internal returns (bytes memory) { return functionDelegateCall(target, data, "Address: low-level delegate call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`], * but performing a delegate call. * * _Available since v3.4._ */ function functionDelegateCall( address target, bytes memory data, string memory errorMessage ) internal returns (bytes memory) { require(isContract(target), "Address: delegate call to non-contract"); (bool success, bytes memory returndata) = target.delegatecall(data); return verifyCallResult(success, returndata, errorMessage); } /** * @dev Tool to verifies that a low level call was successful, and revert if it wasn't, either by bubbling the * revert reason using the provided one. * * _Available since v4.3._ */ function verifyCallResult( bool success, bytes memory returndata, string memory errorMessage ) internal pure returns (bytes memory) { if (success) { return returndata; } else { // Look for revert reason and bubble it up if present if (returndata.length > 0) { // The easiest way to bubble the revert reason is using memory via assembly assembly { let returndata_size := mload(returndata) revert(add(32, returndata), returndata_size) } } else { revert(errorMessage); } } } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/Context.sol) pragma solidity ^0.8.0; /** * @dev Provides information about the current execution context, including the * sender of the transaction and its data. While these are generally available * via msg.sender and msg.data, they should not be accessed in such a direct * manner, since when dealing with meta-transactions the account sending and * paying for execution may not be the actual sender (as far as an application * is concerned). * * This contract is only required for intermediate, library-like contracts. */ abstract contract Context { function _msgSender() internal view virtual returns (address) { return msg.sender; } function _msgData() internal view virtual returns (bytes calldata) { return msg.data; } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/Strings.sol) pragma solidity ^0.8.0; /** * @dev String operations. */ library Strings { bytes16 private constant _HEX_SYMBOLS = "0123456789abcdef"; /** * @dev Converts a `uint256` to its ASCII `string` decimal representation. */ function toString(uint256 value) internal pure returns (string memory) { // Inspired by OraclizeAPI's implementation - MIT licence // https://github.com/oraclize/ethereum-api/blob/b42146b063c7d6ee1358846c198246239e9360e8/oraclizeAPI_0.4.25.sol if (value == 0) { return "0"; } uint256 temp = value; uint256 digits; while (temp != 0) { digits++; temp /= 10; } bytes memory buffer = new bytes(digits); while (value != 0) { digits -= 1; buffer[digits] = bytes1(uint8(48 + uint256(value % 10))); value /= 10; } return string(buffer); } /** * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation. */ function toHexString(uint256 value) internal pure returns (string memory) { if (value == 0) { return "0x00"; } uint256 temp = value; uint256 length = 0; while (temp != 0) { length++; temp >>= 8; } return toHexString(value, length); } /** * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation with fixed length. */ function toHexString(uint256 value, uint256 length) internal pure returns (string memory) { bytes memory buffer = new bytes(2 * length + 2); buffer[0] = "0"; buffer[1] = "x"; for (uint256 i = 2 * length + 1; i > 1; --i) { buffer[i] = _HEX_SYMBOLS[value & 0xf]; value >>= 4; } require(value == 0, "Strings: hex length insufficient"); return string(buffer); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/introspection/ERC165.sol) pragma solidity ^0.8.0; import "./IERC165.sol"; /** * @dev Implementation of the {IERC165} interface. * * Contracts that want to implement ERC165 should inherit from this contract and override {supportsInterface} to check * for the additional interface id that will be supported. For example: * * ```solidity * function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) { * return interfaceId == type(MyInterface).interfaceId || super.supportsInterface(interfaceId); * } * ``` * * Alternatively, {ERC165Storage} provides an easier to use but more expensive implementation. */ abstract contract ERC165 is IERC165 { /** * @dev See {IERC165-supportsInterface}. */ function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) { return interfaceId == type(IERC165).interfaceId; } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/introspection/IERC165.sol) pragma solidity ^0.8.0; /** * @dev Interface of the ERC165 standard, as defined in the * https://eips.ethereum.org/EIPS/eip-165[EIP]. * * Implementers can declare support of contract interfaces, which can then be * queried by others ({ERC165Checker}). * * For an implementation, see {ERC165}. */ interface IERC165 { /** * @dev Returns true if this contract implements the interface defined by * `interfaceId`. See the corresponding * https://eips.ethereum.org/EIPS/eip-165#how-interfaces-are-identified[EIP section] * to learn more about how these ids are created. * * This function call must use less than 30 000 gas. */ function supportsInterface(bytes4 interfaceId) external view returns (bool); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (token/ERC1155/utils/ERC1155Receiver.sol) pragma solidity ^0.8.0; import "../IERC1155Receiver.sol"; import "../../../utils/introspection/ERC165.sol"; /** * @dev _Available since v3.1._ */ abstract contract ERC1155Receiver is ERC165, IERC1155Receiver { /** * @dev See {IERC165-supportsInterface}. */ function supportsInterface(bytes4 interfaceId) public view virtual override(ERC165, IERC165) returns (bool) { return interfaceId == type(IERC1155Receiver).interfaceId || super.supportsInterface(interfaceId); } }
{ "optimizer": { "enabled": false, "runs": 200 }, "outputSelection": { "*": { "*": [ "evm.bytecode", "evm.deployedBytecode", "devdoc", "userdoc", "metadata", "abi" ] } }, "libraries": {} }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"inputs":[{"internalType":"address","name":"fractonDAO_","type":"address"},{"internalType":"address","name":"fractonSwap_","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"approved","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":false,"internalType":"bool","name":"approved","type":"bool"}],"name":"ApprovalForAll","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Transfer","type":"event"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"approve","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"approveToSwap1155","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"startTokenId","type":"uint256"},{"internalType":"uint256","name":"continueAmount","type":"uint256"}],"name":"batchFractonSwap","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"fractonDAO","outputs":[{"internalType":"contract IFractonDAO","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"fractonSwap","outputs":[{"internalType":"contract IFractonSwap","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getApproved","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"operator","type":"address"}],"name":"isApprovedForAll","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"},{"internalType":"address","name":"","type":"address"},{"internalType":"uint256[]","name":"","type":"uint256[]"},{"internalType":"uint256[]","name":"","type":"uint256[]"},{"internalType":"bytes","name":"","type":"bytes"}],"name":"onERC1155BatchReceived","outputs":[{"internalType":"bytes4","name":"","type":"bytes4"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"},{"internalType":"address","name":"","type":"address"},{"internalType":"uint256","name":"","type":"uint256"},{"internalType":"uint256","name":"","type":"uint256"},{"internalType":"bytes","name":"","type":"bytes"}],"name":"onERC1155Received","outputs":[{"internalType":"bytes4","name":"","type":"bytes4"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"ownerOf","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"bytes","name":"data","type":"bytes"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"operator","type":"address"},{"internalType":"bool","name":"approved","type":"bool"}],"name":"setApprovalForAll","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"newBaseUri","type":"string"}],"name":"setBaseUri","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes4","name":"interfaceId","type":"bytes4"}],"name":"supportsInterface","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"pure","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"tokenURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"transferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"}]
Contract Creation Code
60806040523480156200001157600080fd5b5060405162003cf538038062003cf583398181016040528101906200003791906200057f565b6040518060400160405280601081526020017f46726163746f6e582047656e65736973000000000000000000000000000000008152506040518060400160405280600181526020017f58000000000000000000000000000000000000000000000000000000000000008152508160009080519060200190620000bb92919062000465565b508060019080519060200190620000d492919062000465565b505050620000f7620000eb620001bf60201b60201c565b620001c760201b60201c565b81600760006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555080600860006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055506104b0600a8190555062000196308260016200028d60201b60201c565b620001b730620001ab620003ff60201b60201c565b6200040960201b60201c565b50506200077e565b600033905090565b6000600660009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905081600660006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b8173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff161415620002ff576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401620002f69062000627565b60405180910390fd5b80600560008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055508173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff167f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c3183604051620003f2919062000666565b60405180910390a3505050565b6000600a54905090565b80600360008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008282546200045a9190620006bc565b925050819055505050565b828054620004739062000748565b90600052602060002090601f016020900481019282620004975760008555620004e3565b82601f10620004b257805160ff1916838001178555620004e3565b82800160010185558215620004e3579182015b82811115620004e2578251825591602001919060010190620004c5565b5b509050620004f29190620004f6565b5090565b5b8082111562000511576000816000905550600101620004f7565b5090565b600080fd5b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b600062000547826200051a565b9050919050565b62000559816200053a565b81146200056557600080fd5b50565b60008151905062000579816200054e565b92915050565b6000806040838503121562000599576200059862000515565b5b6000620005a98582860162000568565b9250506020620005bc8582860162000568565b9150509250929050565b600082825260208201905092915050565b7f4552433732313a20617070726f766520746f2063616c6c657200000000000000600082015250565b60006200060f601983620005c6565b91506200061c82620005d7565b602082019050919050565b60006020820190508181036000830152620006428162000600565b9050919050565b60008115159050919050565b620006608162000649565b82525050565b60006020820190506200067d600083018462000655565b92915050565b6000819050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b6000620006c98262000683565b9150620006d68362000683565b9250827fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff038211156200070e576200070d6200068d565b5b828201905092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b600060028204905060018216806200076157607f821691505b6020821081141562000778576200077762000719565b5b50919050565b613567806200078e6000396000f3fe608060405234801561001057600080fd5b50600436106101585760003560e01c80638da5cb5b116100c3578063c701dad51161007c578063c701dad5146103b3578063c87b56dd146103cf578063e985e9c5146103ff578063f23a6e611461042f578063f2fde38b1461045f578063ffc2fd071461047b57610158565b80638da5cb5b146102f357806395d89b4114610311578063a0bcfc7f1461032f578063a22cb4651461034b578063b88d4fde14610367578063bc197c811461038357610158565b806323b872dd1161011557806323b872dd1461023357806335ebe5c31461024f57806342842e0e1461026d5780636352211e1461028957806370a08231146102b9578063715018a6146102e957610158565b806301ffc9a71461015d57806306fdde031461018d578063081812fc146101ab578063095ea7b3146101db57806318160ddd146101f757806321608a7614610215575b600080fd5b610177600480360381019061017291906120b5565b610485565b60405161018491906120fd565b60405180910390f35b610195610557565b6040516101a291906121b1565b60405180910390f35b6101c560048036038101906101c09190612209565b6105e9565b6040516101d29190612277565b60405180910390f35b6101f560048036038101906101f091906122be565b61062f565b005b6101ff610747565b60405161020c919061230d565b60405180910390f35b61021d610751565b60405161022a9190612387565b60405180910390f35b61024d600480360381019061024891906123a2565b61077b565b005b6102576107db565b6040516102649190612416565b60405180910390f35b610287600480360381019061028291906123a2565b610805565b005b6102a3600480360381019061029e9190612209565b610825565b6040516102b09190612277565b60405180910390f35b6102d360048036038101906102ce9190612431565b610906565b6040516102e0919061230d565b60405180910390f35b6102f16109be565b005b6102fb610a46565b6040516103089190612277565b60405180910390f35b610319610a70565b60405161032691906121b1565b60405180910390f35b61034960048036038101906103449190612593565b610b02565b005b61036560048036038101906103609190612608565b610b98565b005b610381600480360381019061037c91906126e9565b610bae565b005b61039d60048036038101906103989190612834565b610c10565b6040516103aa9190612912565b60405180910390f35b6103cd60048036038101906103c8919061292d565b610c25565b005b6103e960048036038101906103e49190612209565b6110b4565b6040516103f691906121b1565b60405180910390f35b6104196004803603810190610414919061296d565b61111c565b60405161042691906120fd565b60405180910390f35b610449600480360381019061044491906129ad565b6111b0565b6040516104569190612912565b60405180910390f35b61047960048036038101906104749190612431565b6111c5565b005b6104836112bd565b005b60007f80ac58cd000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916148061055057507f4e2312e0000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b9050919050565b60606000805461056690612a73565b80601f016020809104026020016040519081016040528092919081815260200182805461059290612a73565b80156105df5780601f106105b4576101008083540402835291602001916105df565b820191906000526020600020905b8154815290600101906020018083116105c257829003601f168201915b5050505050905090565b60006105f482611445565b6004600083815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050919050565b600061063a82610825565b90508073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff1614156106ab576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016106a290612b17565b60405180910390fd5b8073ffffffffffffffffffffffffffffffffffffffff166106ca611490565b73ffffffffffffffffffffffffffffffffffffffff1614806106f957506106f8816106f3611490565b61111c565b5b610738576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161072f90612ba9565b60405180910390fd5b6107428383611498565b505050565b6000600a54905090565b6000600860009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b61078c610786611490565b82611551565b6107cb576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016107c290612c3b565b60405180910390fd5b6107d68383836115e6565b505050565b6000600760009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b61082083838360405180602001604052806000815250610bae565b505050565b600080610831836118e0565b90506001831015801561084657506104b08311155b801561087e5750600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16145b1561088c5730915050610901565b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1614156108fc576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016108f390612ca7565b60405180910390fd5b809150505b919050565b60008073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161415610977576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161096e90612d39565b60405180910390fd5b600360008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020549050919050565b6109c6611490565b73ffffffffffffffffffffffffffffffffffffffff166109e4610a46565b73ffffffffffffffffffffffffffffffffffffffff1614610a3a576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610a3190612da5565b60405180910390fd5b610a44600061191d565b565b6000600660009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b606060018054610a7f90612a73565b80601f0160208091040260200160405190810160405280929190818152602001828054610aab90612a73565b8015610af85780601f10610acd57610100808354040283529160200191610af8565b820191906000526020600020905b815481529060010190602001808311610adb57829003601f168201915b5050505050905090565b610b0a611490565b73ffffffffffffffffffffffffffffffffffffffff16610b28610a46565b73ffffffffffffffffffffffffffffffffffffffff1614610b7e576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610b7590612da5565b60405180910390fd5b8060099080519060200190610b94929190611fa6565b5050565b610baa610ba3611490565b83836119e3565b5050565b610bbf610bb9611490565b83611551565b610bfe576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610bf590612c3b565b60405180910390fd5b610c0a84848484611b50565b50505050565b600063bc197c8160e01b905095945050505050565b610c2d611490565b73ffffffffffffffffffffffffffffffffffffffff16610c4b610a46565b73ffffffffffffffffffffffffffffffffffffffff1614610ca1576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610c9890612da5565b60405180910390fd5b60008290505b8183610cb39190612df4565b811015610d4157610cc26107db565b73ffffffffffffffffffffffffffffffffffffffff16631714b45a30836040518363ffffffff1660e01b8152600401610cfc929190612e4a565b600060405180830381600087803b158015610d1657600080fd5b505af1158015610d2a573d6000803e3d6000fd5b505050508080610d3990612e73565b915050610ca7565b506000610d4c610751565b73ffffffffffffffffffffffffffffffffffffffff166370805f22306040518263ffffffff1660e01b8152600401610d849190612277565b60206040518083038186803b158015610d9c57600080fd5b505afa158015610db0573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610dd49190612ed1565b905060008173ffffffffffffffffffffffffffffffffffffffff1662fdd58e3060006040518363ffffffff1660e01b8152600401610e13929190612f39565b60206040518083038186803b158015610e2b57600080fd5b505afa158015610e3f573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610e639190612f77565b9050610e6d610751565b73ffffffffffffffffffffffffffffffffffffffff1663a16ea0d4836000846040518463ffffffff1660e01b8152600401610eaa93929190612fa4565b602060405180830381600087803b158015610ec457600080fd5b505af1158015610ed8573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610efc9190612ff0565b506000610f07610751565b73ffffffffffffffffffffffffffffffffffffffff16639c4da5ef846040518263ffffffff1660e01b8152600401610f3f9190612277565b60206040518083038186803b158015610f5757600080fd5b505afa158015610f6b573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610f8f9190612ed1565b905060008173ffffffffffffffffffffffffffffffffffffffff166370a08231306040518263ffffffff1660e01b8152600401610fcc9190612277565b60206040518083038186803b158015610fe457600080fd5b505afa158015610ff8573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061101c9190612f77565b90508173ffffffffffffffffffffffffffffffffffffffff1663a9059cbb33836040518363ffffffff1660e01b8152600401611059929190612e4a565b602060405180830381600087803b15801561107357600080fd5b505af1158015611087573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906110ab9190612ff0565b50505050505050565b60606110bf82611445565b60006110c9611bac565b905060008151116110e95760405180602001604052806000815250611114565b806110f384611c3e565b604051602001611104929190613059565b6040516020818303038152906040525b915050919050565b6000600560008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16905092915050565b600063f23a6e6160e01b905095945050505050565b6111cd611490565b73ffffffffffffffffffffffffffffffffffffffff166111eb610a46565b73ffffffffffffffffffffffffffffffffffffffff1614611241576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161123890612da5565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1614156112b1576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016112a8906130ef565b60405180910390fd5b6112ba8161191d565b50565b6112c5611490565b73ffffffffffffffffffffffffffffffffffffffff166112e3610a46565b73ffffffffffffffffffffffffffffffffffffffff1614611339576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161133090612da5565b60405180910390fd5b6000611343610751565b73ffffffffffffffffffffffffffffffffffffffff166370805f22306040518263ffffffff1660e01b815260040161137b9190612277565b60206040518083038186803b15801561139357600080fd5b505afa1580156113a7573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906113cb9190612ed1565b90508073ffffffffffffffffffffffffffffffffffffffff1663a22cb4656113f1610751565b60016040518363ffffffff1660e01b815260040161141092919061310f565b600060405180830381600087803b15801561142a57600080fd5b505af115801561143e573d6000803e3d6000fd5b5050505050565b61144e81611d9f565b61148d576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161148490612ca7565b60405180910390fd5b50565b600033905090565b816004600083815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550808273ffffffffffffffffffffffffffffffffffffffff1661150b83610825565b73ffffffffffffffffffffffffffffffffffffffff167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b60008061155d83610825565b90508073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff16148061159f575061159e818561111c565b5b806115dd57508373ffffffffffffffffffffffffffffffffffffffff166115c5846105e9565b73ffffffffffffffffffffffffffffffffffffffff16145b91505092915050565b8273ffffffffffffffffffffffffffffffffffffffff1661160682610825565b73ffffffffffffffffffffffffffffffffffffffff161461165c576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611653906131aa565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1614156116cc576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016116c39061323c565b60405180910390fd5b6116d98383836001611de0565b8273ffffffffffffffffffffffffffffffffffffffff166116f982610825565b73ffffffffffffffffffffffffffffffffffffffff161461174f576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611746906131aa565b60405180910390fd5b6004600082815260200190815260200160002060006101000a81549073ffffffffffffffffffffffffffffffffffffffff02191690556001600360008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600082825403925050819055506001600360008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008282540192505081905550816002600083815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550808273ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a46118db8383836001611de6565b505050565b60006002600083815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050919050565b6000600660009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905081600660006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b8173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff161415611a52576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611a49906132a8565b60405180910390fd5b80600560008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055508173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff167f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c3183604051611b4391906120fd565b60405180910390a3505050565b611b5b8484846115e6565b611b6784848484611dec565b611ba6576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611b9d9061333a565b60405180910390fd5b50505050565b606060098054611bbb90612a73565b80601f0160208091040260200160405190810160405280929190818152602001828054611be790612a73565b8015611c345780601f10611c0957610100808354040283529160200191611c34565b820191906000526020600020905b815481529060010190602001808311611c1757829003601f168201915b5050505050905090565b60606000821415611c86576040518060400160405280600181526020017f30000000000000000000000000000000000000000000000000000000000000008152509050611d9a565b600082905060005b60008214611cb8578080611ca190612e73565b915050600a82611cb19190613389565b9150611c8e565b60008167ffffffffffffffff811115611cd457611cd3612468565b5b6040519080825280601f01601f191660200182016040528015611d065781602001600182028036833780820191505090505b5090505b60008514611d9357600182611d1f91906133ba565b9150600a85611d2e91906133ee565b6030611d3a9190612df4565b60f81b818381518110611d5057611d4f61341f565b5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a905350600a85611d8c9190613389565b9450611d0a565b8093505050505b919050565b60008073ffffffffffffffffffffffffffffffffffffffff16611dc1836118e0565b73ffffffffffffffffffffffffffffffffffffffff1614159050919050565b50505050565b50505050565b6000611e0d8473ffffffffffffffffffffffffffffffffffffffff16611f83565b15611f76578373ffffffffffffffffffffffffffffffffffffffff1663150b7a02611e36611490565b8786866040518563ffffffff1660e01b8152600401611e5894939291906134a3565b602060405180830381600087803b158015611e7257600080fd5b505af1925050508015611ea357506040513d601f19601f82011682018060405250810190611ea09190613504565b60015b611f26573d8060008114611ed3576040519150601f19603f3d011682016040523d82523d6000602084013e611ed8565b606091505b50600081511415611f1e576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611f159061333a565b60405180910390fd5b805181602001fd5b63150b7a0260e01b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916817bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614915050611f7b565b600190505b949350505050565b6000808273ffffffffffffffffffffffffffffffffffffffff163b119050919050565b828054611fb290612a73565b90600052602060002090601f016020900481019282611fd4576000855561201b565b82601f10611fed57805160ff191683800117855561201b565b8280016001018555821561201b579182015b8281111561201a578251825591602001919060010190611fff565b5b509050612028919061202c565b5090565b5b8082111561204557600081600090555060010161202d565b5090565b6000604051905090565b600080fd5b600080fd5b60007fffffffff0000000000000000000000000000000000000000000000000000000082169050919050565b6120928161205d565b811461209d57600080fd5b50565b6000813590506120af81612089565b92915050565b6000602082840312156120cb576120ca612053565b5b60006120d9848285016120a0565b91505092915050565b60008115159050919050565b6120f7816120e2565b82525050565b600060208201905061211260008301846120ee565b92915050565b600081519050919050565b600082825260208201905092915050565b60005b83811015612152578082015181840152602081019050612137565b83811115612161576000848401525b50505050565b6000601f19601f8301169050919050565b600061218382612118565b61218d8185612123565b935061219d818560208601612134565b6121a681612167565b840191505092915050565b600060208201905081810360008301526121cb8184612178565b905092915050565b6000819050919050565b6121e6816121d3565b81146121f157600080fd5b50565b600081359050612203816121dd565b92915050565b60006020828403121561221f5761221e612053565b5b600061222d848285016121f4565b91505092915050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b600061226182612236565b9050919050565b61227181612256565b82525050565b600060208201905061228c6000830184612268565b92915050565b61229b81612256565b81146122a657600080fd5b50565b6000813590506122b881612292565b92915050565b600080604083850312156122d5576122d4612053565b5b60006122e3858286016122a9565b92505060206122f4858286016121f4565b9150509250929050565b612307816121d3565b82525050565b600060208201905061232260008301846122fe565b92915050565b6000819050919050565b600061234d61234861234384612236565b612328565b612236565b9050919050565b600061235f82612332565b9050919050565b600061237182612354565b9050919050565b61238181612366565b82525050565b600060208201905061239c6000830184612378565b92915050565b6000806000606084860312156123bb576123ba612053565b5b60006123c9868287016122a9565b93505060206123da868287016122a9565b92505060406123eb868287016121f4565b9150509250925092565b600061240082612354565b9050919050565b612410816123f5565b82525050565b600060208201905061242b6000830184612407565b92915050565b60006020828403121561244757612446612053565b5b6000612455848285016122a9565b91505092915050565b600080fd5b600080fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b6124a082612167565b810181811067ffffffffffffffff821117156124bf576124be612468565b5b80604052505050565b60006124d2612049565b90506124de8282612497565b919050565b600067ffffffffffffffff8211156124fe576124fd612468565b5b61250782612167565b9050602081019050919050565b82818337600083830152505050565b6000612536612531846124e3565b6124c8565b90508281526020810184848401111561255257612551612463565b5b61255d848285612514565b509392505050565b600082601f83011261257a5761257961245e565b5b813561258a848260208601612523565b91505092915050565b6000602082840312156125a9576125a8612053565b5b600082013567ffffffffffffffff8111156125c7576125c6612058565b5b6125d384828501612565565b91505092915050565b6125e5816120e2565b81146125f057600080fd5b50565b600081359050612602816125dc565b92915050565b6000806040838503121561261f5761261e612053565b5b600061262d858286016122a9565b925050602061263e858286016125f3565b9150509250929050565b600067ffffffffffffffff82111561266357612662612468565b5b61266c82612167565b9050602081019050919050565b600061268c61268784612648565b6124c8565b9050828152602081018484840111156126a8576126a7612463565b5b6126b3848285612514565b509392505050565b600082601f8301126126d0576126cf61245e565b5b81356126e0848260208601612679565b91505092915050565b6000806000806080858703121561270357612702612053565b5b6000612711878288016122a9565b9450506020612722878288016122a9565b9350506040612733878288016121f4565b925050606085013567ffffffffffffffff81111561275457612753612058565b5b612760878288016126bb565b91505092959194509250565b600067ffffffffffffffff82111561278757612786612468565b5b602082029050602081019050919050565b600080fd5b60006127b06127ab8461276c565b6124c8565b905080838252602082019050602084028301858111156127d3576127d2612798565b5b835b818110156127fc57806127e888826121f4565b8452602084019350506020810190506127d5565b5050509392505050565b600082601f83011261281b5761281a61245e565b5b813561282b84826020860161279d565b91505092915050565b600080600080600060a086880312156128505761284f612053565b5b600061285e888289016122a9565b955050602061286f888289016122a9565b945050604086013567ffffffffffffffff8111156128905761288f612058565b5b61289c88828901612806565b935050606086013567ffffffffffffffff8111156128bd576128bc612058565b5b6128c988828901612806565b925050608086013567ffffffffffffffff8111156128ea576128e9612058565b5b6128f6888289016126bb565b9150509295509295909350565b61290c8161205d565b82525050565b60006020820190506129276000830184612903565b92915050565b6000806040838503121561294457612943612053565b5b6000612952858286016121f4565b9250506020612963858286016121f4565b9150509250929050565b6000806040838503121561298457612983612053565b5b6000612992858286016122a9565b92505060206129a3858286016122a9565b9150509250929050565b600080600080600060a086880312156129c9576129c8612053565b5b60006129d7888289016122a9565b95505060206129e8888289016122a9565b94505060406129f9888289016121f4565b9350506060612a0a888289016121f4565b925050608086013567ffffffffffffffff811115612a2b57612a2a612058565b5b612a37888289016126bb565b9150509295509295909350565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b60006002820490506001821680612a8b57607f821691505b60208210811415612a9f57612a9e612a44565b5b50919050565b7f4552433732313a20617070726f76616c20746f2063757272656e74206f776e6560008201527f7200000000000000000000000000000000000000000000000000000000000000602082015250565b6000612b01602183612123565b9150612b0c82612aa5565b604082019050919050565b60006020820190508181036000830152612b3081612af4565b9050919050565b7f4552433732313a20617070726f76652063616c6c6572206973206e6f7420746f60008201527f6b656e206f776e6572206f7220617070726f76656420666f7220616c6c000000602082015250565b6000612b93603d83612123565b9150612b9e82612b37565b604082019050919050565b60006020820190508181036000830152612bc281612b86565b9050919050565b7f4552433732313a2063616c6c6572206973206e6f7420746f6b656e206f776e6560008201527f72206f7220617070726f76656400000000000000000000000000000000000000602082015250565b6000612c25602d83612123565b9150612c3082612bc9565b604082019050919050565b60006020820190508181036000830152612c5481612c18565b9050919050565b7f4552433732313a20696e76616c696420746f6b656e2049440000000000000000600082015250565b6000612c91601883612123565b9150612c9c82612c5b565b602082019050919050565b60006020820190508181036000830152612cc081612c84565b9050919050565b7f4552433732313a2061646472657373207a65726f206973206e6f74206120766160008201527f6c6964206f776e65720000000000000000000000000000000000000000000000602082015250565b6000612d23602983612123565b9150612d2e82612cc7565b604082019050919050565b60006020820190508181036000830152612d5281612d16565b9050919050565b7f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572600082015250565b6000612d8f602083612123565b9150612d9a82612d59565b602082019050919050565b60006020820190508181036000830152612dbe81612d82565b9050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b6000612dff826121d3565b9150612e0a836121d3565b9250827fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff03821115612e3f57612e3e612dc5565b5b828201905092915050565b6000604082019050612e5f6000830185612268565b612e6c60208301846122fe565b9392505050565b6000612e7e826121d3565b91507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff821415612eb157612eb0612dc5565b5b600182019050919050565b600081519050612ecb81612292565b92915050565b600060208284031215612ee757612ee6612053565b5b6000612ef584828501612ebc565b91505092915050565b6000819050919050565b6000612f23612f1e612f1984612efe565b612328565b6121d3565b9050919050565b612f3381612f08565b82525050565b6000604082019050612f4e6000830185612268565b612f5b6020830184612f2a565b9392505050565b600081519050612f71816121dd565b92915050565b600060208284031215612f8d57612f8c612053565b5b6000612f9b84828501612f62565b91505092915050565b6000606082019050612fb96000830186612268565b612fc66020830185612f2a565b612fd360408301846122fe565b949350505050565b600081519050612fea816125dc565b92915050565b60006020828403121561300657613005612053565b5b600061301484828501612fdb565b91505092915050565b600081905092915050565b600061303382612118565b61303d818561301d565b935061304d818560208601612134565b80840191505092915050565b60006130658285613028565b91506130718284613028565b91508190509392505050565b7f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160008201527f6464726573730000000000000000000000000000000000000000000000000000602082015250565b60006130d9602683612123565b91506130e48261307d565b604082019050919050565b60006020820190508181036000830152613108816130cc565b9050919050565b60006040820190506131246000830185612268565b61313160208301846120ee565b9392505050565b7f4552433732313a207472616e736665722066726f6d20696e636f72726563742060008201527f6f776e6572000000000000000000000000000000000000000000000000000000602082015250565b6000613194602583612123565b915061319f82613138565b604082019050919050565b600060208201905081810360008301526131c381613187565b9050919050565b7f4552433732313a207472616e7366657220746f20746865207a65726f2061646460008201527f7265737300000000000000000000000000000000000000000000000000000000602082015250565b6000613226602483612123565b9150613231826131ca565b604082019050919050565b6000602082019050818103600083015261325581613219565b9050919050565b7f4552433732313a20617070726f766520746f2063616c6c657200000000000000600082015250565b6000613292601983612123565b915061329d8261325c565b602082019050919050565b600060208201905081810360008301526132c181613285565b9050919050565b7f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560008201527f63656976657220696d706c656d656e7465720000000000000000000000000000602082015250565b6000613324603283612123565b915061332f826132c8565b604082019050919050565b6000602082019050818103600083015261335381613317565b9050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b6000613394826121d3565b915061339f836121d3565b9250826133af576133ae61335a565b5b828204905092915050565b60006133c5826121d3565b91506133d0836121d3565b9250828210156133e3576133e2612dc5565b5b828203905092915050565b60006133f9826121d3565b9150613404836121d3565b9250826134145761341361335a565b5b828206905092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b600081519050919050565b600082825260208201905092915050565b60006134758261344e565b61347f8185613459565b935061348f818560208601612134565b61349881612167565b840191505092915050565b60006080820190506134b86000830187612268565b6134c56020830186612268565b6134d260408301856122fe565b81810360608301526134e4818461346a565b905095945050505050565b6000815190506134fe81612089565b92915050565b60006020828403121561351a57613519612053565b5b6000613528848285016134ef565b9150509291505056fea26469706673582212209ba4bc861656fc2ee7ec2e39d433d30cfe8c0b9fae97faec6d8f59af9d2601c964736f6c634300080900330000000000000000000000004739244b44585607d9f5f300248a58062a1354fc0000000000000000000000007fee302a14d6b945c0eb6da9c4426c8d75d38a73
Deployed Bytecode
0x608060405234801561001057600080fd5b50600436106101585760003560e01c80638da5cb5b116100c3578063c701dad51161007c578063c701dad5146103b3578063c87b56dd146103cf578063e985e9c5146103ff578063f23a6e611461042f578063f2fde38b1461045f578063ffc2fd071461047b57610158565b80638da5cb5b146102f357806395d89b4114610311578063a0bcfc7f1461032f578063a22cb4651461034b578063b88d4fde14610367578063bc197c811461038357610158565b806323b872dd1161011557806323b872dd1461023357806335ebe5c31461024f57806342842e0e1461026d5780636352211e1461028957806370a08231146102b9578063715018a6146102e957610158565b806301ffc9a71461015d57806306fdde031461018d578063081812fc146101ab578063095ea7b3146101db57806318160ddd146101f757806321608a7614610215575b600080fd5b610177600480360381019061017291906120b5565b610485565b60405161018491906120fd565b60405180910390f35b610195610557565b6040516101a291906121b1565b60405180910390f35b6101c560048036038101906101c09190612209565b6105e9565b6040516101d29190612277565b60405180910390f35b6101f560048036038101906101f091906122be565b61062f565b005b6101ff610747565b60405161020c919061230d565b60405180910390f35b61021d610751565b60405161022a9190612387565b60405180910390f35b61024d600480360381019061024891906123a2565b61077b565b005b6102576107db565b6040516102649190612416565b60405180910390f35b610287600480360381019061028291906123a2565b610805565b005b6102a3600480360381019061029e9190612209565b610825565b6040516102b09190612277565b60405180910390f35b6102d360048036038101906102ce9190612431565b610906565b6040516102e0919061230d565b60405180910390f35b6102f16109be565b005b6102fb610a46565b6040516103089190612277565b60405180910390f35b610319610a70565b60405161032691906121b1565b60405180910390f35b61034960048036038101906103449190612593565b610b02565b005b61036560048036038101906103609190612608565b610b98565b005b610381600480360381019061037c91906126e9565b610bae565b005b61039d60048036038101906103989190612834565b610c10565b6040516103aa9190612912565b60405180910390f35b6103cd60048036038101906103c8919061292d565b610c25565b005b6103e960048036038101906103e49190612209565b6110b4565b6040516103f691906121b1565b60405180910390f35b6104196004803603810190610414919061296d565b61111c565b60405161042691906120fd565b60405180910390f35b610449600480360381019061044491906129ad565b6111b0565b6040516104569190612912565b60405180910390f35b61047960048036038101906104749190612431565b6111c5565b005b6104836112bd565b005b60007f80ac58cd000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916148061055057507f4e2312e0000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b9050919050565b60606000805461056690612a73565b80601f016020809104026020016040519081016040528092919081815260200182805461059290612a73565b80156105df5780601f106105b4576101008083540402835291602001916105df565b820191906000526020600020905b8154815290600101906020018083116105c257829003601f168201915b5050505050905090565b60006105f482611445565b6004600083815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050919050565b600061063a82610825565b90508073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff1614156106ab576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016106a290612b17565b60405180910390fd5b8073ffffffffffffffffffffffffffffffffffffffff166106ca611490565b73ffffffffffffffffffffffffffffffffffffffff1614806106f957506106f8816106f3611490565b61111c565b5b610738576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161072f90612ba9565b60405180910390fd5b6107428383611498565b505050565b6000600a54905090565b6000600860009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b61078c610786611490565b82611551565b6107cb576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016107c290612c3b565b60405180910390fd5b6107d68383836115e6565b505050565b6000600760009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b61082083838360405180602001604052806000815250610bae565b505050565b600080610831836118e0565b90506001831015801561084657506104b08311155b801561087e5750600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16145b1561088c5730915050610901565b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1614156108fc576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016108f390612ca7565b60405180910390fd5b809150505b919050565b60008073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161415610977576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161096e90612d39565b60405180910390fd5b600360008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020549050919050565b6109c6611490565b73ffffffffffffffffffffffffffffffffffffffff166109e4610a46565b73ffffffffffffffffffffffffffffffffffffffff1614610a3a576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610a3190612da5565b60405180910390fd5b610a44600061191d565b565b6000600660009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b606060018054610a7f90612a73565b80601f0160208091040260200160405190810160405280929190818152602001828054610aab90612a73565b8015610af85780601f10610acd57610100808354040283529160200191610af8565b820191906000526020600020905b815481529060010190602001808311610adb57829003601f168201915b5050505050905090565b610b0a611490565b73ffffffffffffffffffffffffffffffffffffffff16610b28610a46565b73ffffffffffffffffffffffffffffffffffffffff1614610b7e576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610b7590612da5565b60405180910390fd5b8060099080519060200190610b94929190611fa6565b5050565b610baa610ba3611490565b83836119e3565b5050565b610bbf610bb9611490565b83611551565b610bfe576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610bf590612c3b565b60405180910390fd5b610c0a84848484611b50565b50505050565b600063bc197c8160e01b905095945050505050565b610c2d611490565b73ffffffffffffffffffffffffffffffffffffffff16610c4b610a46565b73ffffffffffffffffffffffffffffffffffffffff1614610ca1576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610c9890612da5565b60405180910390fd5b60008290505b8183610cb39190612df4565b811015610d4157610cc26107db565b73ffffffffffffffffffffffffffffffffffffffff16631714b45a30836040518363ffffffff1660e01b8152600401610cfc929190612e4a565b600060405180830381600087803b158015610d1657600080fd5b505af1158015610d2a573d6000803e3d6000fd5b505050508080610d3990612e73565b915050610ca7565b506000610d4c610751565b73ffffffffffffffffffffffffffffffffffffffff166370805f22306040518263ffffffff1660e01b8152600401610d849190612277565b60206040518083038186803b158015610d9c57600080fd5b505afa158015610db0573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610dd49190612ed1565b905060008173ffffffffffffffffffffffffffffffffffffffff1662fdd58e3060006040518363ffffffff1660e01b8152600401610e13929190612f39565b60206040518083038186803b158015610e2b57600080fd5b505afa158015610e3f573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610e639190612f77565b9050610e6d610751565b73ffffffffffffffffffffffffffffffffffffffff1663a16ea0d4836000846040518463ffffffff1660e01b8152600401610eaa93929190612fa4565b602060405180830381600087803b158015610ec457600080fd5b505af1158015610ed8573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610efc9190612ff0565b506000610f07610751565b73ffffffffffffffffffffffffffffffffffffffff16639c4da5ef846040518263ffffffff1660e01b8152600401610f3f9190612277565b60206040518083038186803b158015610f5757600080fd5b505afa158015610f6b573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610f8f9190612ed1565b905060008173ffffffffffffffffffffffffffffffffffffffff166370a08231306040518263ffffffff1660e01b8152600401610fcc9190612277565b60206040518083038186803b158015610fe457600080fd5b505afa158015610ff8573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061101c9190612f77565b90508173ffffffffffffffffffffffffffffffffffffffff1663a9059cbb33836040518363ffffffff1660e01b8152600401611059929190612e4a565b602060405180830381600087803b15801561107357600080fd5b505af1158015611087573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906110ab9190612ff0565b50505050505050565b60606110bf82611445565b60006110c9611bac565b905060008151116110e95760405180602001604052806000815250611114565b806110f384611c3e565b604051602001611104929190613059565b6040516020818303038152906040525b915050919050565b6000600560008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16905092915050565b600063f23a6e6160e01b905095945050505050565b6111cd611490565b73ffffffffffffffffffffffffffffffffffffffff166111eb610a46565b73ffffffffffffffffffffffffffffffffffffffff1614611241576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161123890612da5565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1614156112b1576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016112a8906130ef565b60405180910390fd5b6112ba8161191d565b50565b6112c5611490565b73ffffffffffffffffffffffffffffffffffffffff166112e3610a46565b73ffffffffffffffffffffffffffffffffffffffff1614611339576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161133090612da5565b60405180910390fd5b6000611343610751565b73ffffffffffffffffffffffffffffffffffffffff166370805f22306040518263ffffffff1660e01b815260040161137b9190612277565b60206040518083038186803b15801561139357600080fd5b505afa1580156113a7573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906113cb9190612ed1565b90508073ffffffffffffffffffffffffffffffffffffffff1663a22cb4656113f1610751565b60016040518363ffffffff1660e01b815260040161141092919061310f565b600060405180830381600087803b15801561142a57600080fd5b505af115801561143e573d6000803e3d6000fd5b5050505050565b61144e81611d9f565b61148d576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161148490612ca7565b60405180910390fd5b50565b600033905090565b816004600083815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550808273ffffffffffffffffffffffffffffffffffffffff1661150b83610825565b73ffffffffffffffffffffffffffffffffffffffff167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b60008061155d83610825565b90508073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff16148061159f575061159e818561111c565b5b806115dd57508373ffffffffffffffffffffffffffffffffffffffff166115c5846105e9565b73ffffffffffffffffffffffffffffffffffffffff16145b91505092915050565b8273ffffffffffffffffffffffffffffffffffffffff1661160682610825565b73ffffffffffffffffffffffffffffffffffffffff161461165c576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611653906131aa565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1614156116cc576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016116c39061323c565b60405180910390fd5b6116d98383836001611de0565b8273ffffffffffffffffffffffffffffffffffffffff166116f982610825565b73ffffffffffffffffffffffffffffffffffffffff161461174f576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611746906131aa565b60405180910390fd5b6004600082815260200190815260200160002060006101000a81549073ffffffffffffffffffffffffffffffffffffffff02191690556001600360008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600082825403925050819055506001600360008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008282540192505081905550816002600083815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550808273ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a46118db8383836001611de6565b505050565b60006002600083815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050919050565b6000600660009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905081600660006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b8173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff161415611a52576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611a49906132a8565b60405180910390fd5b80600560008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055508173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff167f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c3183604051611b4391906120fd565b60405180910390a3505050565b611b5b8484846115e6565b611b6784848484611dec565b611ba6576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611b9d9061333a565b60405180910390fd5b50505050565b606060098054611bbb90612a73565b80601f0160208091040260200160405190810160405280929190818152602001828054611be790612a73565b8015611c345780601f10611c0957610100808354040283529160200191611c34565b820191906000526020600020905b815481529060010190602001808311611c1757829003601f168201915b5050505050905090565b60606000821415611c86576040518060400160405280600181526020017f30000000000000000000000000000000000000000000000000000000000000008152509050611d9a565b600082905060005b60008214611cb8578080611ca190612e73565b915050600a82611cb19190613389565b9150611c8e565b60008167ffffffffffffffff811115611cd457611cd3612468565b5b6040519080825280601f01601f191660200182016040528015611d065781602001600182028036833780820191505090505b5090505b60008514611d9357600182611d1f91906133ba565b9150600a85611d2e91906133ee565b6030611d3a9190612df4565b60f81b818381518110611d5057611d4f61341f565b5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a905350600a85611d8c9190613389565b9450611d0a565b8093505050505b919050565b60008073ffffffffffffffffffffffffffffffffffffffff16611dc1836118e0565b73ffffffffffffffffffffffffffffffffffffffff1614159050919050565b50505050565b50505050565b6000611e0d8473ffffffffffffffffffffffffffffffffffffffff16611f83565b15611f76578373ffffffffffffffffffffffffffffffffffffffff1663150b7a02611e36611490565b8786866040518563ffffffff1660e01b8152600401611e5894939291906134a3565b602060405180830381600087803b158015611e7257600080fd5b505af1925050508015611ea357506040513d601f19601f82011682018060405250810190611ea09190613504565b60015b611f26573d8060008114611ed3576040519150601f19603f3d011682016040523d82523d6000602084013e611ed8565b606091505b50600081511415611f1e576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611f159061333a565b60405180910390fd5b805181602001fd5b63150b7a0260e01b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916817bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614915050611f7b565b600190505b949350505050565b6000808273ffffffffffffffffffffffffffffffffffffffff163b119050919050565b828054611fb290612a73565b90600052602060002090601f016020900481019282611fd4576000855561201b565b82601f10611fed57805160ff191683800117855561201b565b8280016001018555821561201b579182015b8281111561201a578251825591602001919060010190611fff565b5b509050612028919061202c565b5090565b5b8082111561204557600081600090555060010161202d565b5090565b6000604051905090565b600080fd5b600080fd5b60007fffffffff0000000000000000000000000000000000000000000000000000000082169050919050565b6120928161205d565b811461209d57600080fd5b50565b6000813590506120af81612089565b92915050565b6000602082840312156120cb576120ca612053565b5b60006120d9848285016120a0565b91505092915050565b60008115159050919050565b6120f7816120e2565b82525050565b600060208201905061211260008301846120ee565b92915050565b600081519050919050565b600082825260208201905092915050565b60005b83811015612152578082015181840152602081019050612137565b83811115612161576000848401525b50505050565b6000601f19601f8301169050919050565b600061218382612118565b61218d8185612123565b935061219d818560208601612134565b6121a681612167565b840191505092915050565b600060208201905081810360008301526121cb8184612178565b905092915050565b6000819050919050565b6121e6816121d3565b81146121f157600080fd5b50565b600081359050612203816121dd565b92915050565b60006020828403121561221f5761221e612053565b5b600061222d848285016121f4565b91505092915050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b600061226182612236565b9050919050565b61227181612256565b82525050565b600060208201905061228c6000830184612268565b92915050565b61229b81612256565b81146122a657600080fd5b50565b6000813590506122b881612292565b92915050565b600080604083850312156122d5576122d4612053565b5b60006122e3858286016122a9565b92505060206122f4858286016121f4565b9150509250929050565b612307816121d3565b82525050565b600060208201905061232260008301846122fe565b92915050565b6000819050919050565b600061234d61234861234384612236565b612328565b612236565b9050919050565b600061235f82612332565b9050919050565b600061237182612354565b9050919050565b61238181612366565b82525050565b600060208201905061239c6000830184612378565b92915050565b6000806000606084860312156123bb576123ba612053565b5b60006123c9868287016122a9565b93505060206123da868287016122a9565b92505060406123eb868287016121f4565b9150509250925092565b600061240082612354565b9050919050565b612410816123f5565b82525050565b600060208201905061242b6000830184612407565b92915050565b60006020828403121561244757612446612053565b5b6000612455848285016122a9565b91505092915050565b600080fd5b600080fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b6124a082612167565b810181811067ffffffffffffffff821117156124bf576124be612468565b5b80604052505050565b60006124d2612049565b90506124de8282612497565b919050565b600067ffffffffffffffff8211156124fe576124fd612468565b5b61250782612167565b9050602081019050919050565b82818337600083830152505050565b6000612536612531846124e3565b6124c8565b90508281526020810184848401111561255257612551612463565b5b61255d848285612514565b509392505050565b600082601f83011261257a5761257961245e565b5b813561258a848260208601612523565b91505092915050565b6000602082840312156125a9576125a8612053565b5b600082013567ffffffffffffffff8111156125c7576125c6612058565b5b6125d384828501612565565b91505092915050565b6125e5816120e2565b81146125f057600080fd5b50565b600081359050612602816125dc565b92915050565b6000806040838503121561261f5761261e612053565b5b600061262d858286016122a9565b925050602061263e858286016125f3565b9150509250929050565b600067ffffffffffffffff82111561266357612662612468565b5b61266c82612167565b9050602081019050919050565b600061268c61268784612648565b6124c8565b9050828152602081018484840111156126a8576126a7612463565b5b6126b3848285612514565b509392505050565b600082601f8301126126d0576126cf61245e565b5b81356126e0848260208601612679565b91505092915050565b6000806000806080858703121561270357612702612053565b5b6000612711878288016122a9565b9450506020612722878288016122a9565b9350506040612733878288016121f4565b925050606085013567ffffffffffffffff81111561275457612753612058565b5b612760878288016126bb565b91505092959194509250565b600067ffffffffffffffff82111561278757612786612468565b5b602082029050602081019050919050565b600080fd5b60006127b06127ab8461276c565b6124c8565b905080838252602082019050602084028301858111156127d3576127d2612798565b5b835b818110156127fc57806127e888826121f4565b8452602084019350506020810190506127d5565b5050509392505050565b600082601f83011261281b5761281a61245e565b5b813561282b84826020860161279d565b91505092915050565b600080600080600060a086880312156128505761284f612053565b5b600061285e888289016122a9565b955050602061286f888289016122a9565b945050604086013567ffffffffffffffff8111156128905761288f612058565b5b61289c88828901612806565b935050606086013567ffffffffffffffff8111156128bd576128bc612058565b5b6128c988828901612806565b925050608086013567ffffffffffffffff8111156128ea576128e9612058565b5b6128f6888289016126bb565b9150509295509295909350565b61290c8161205d565b82525050565b60006020820190506129276000830184612903565b92915050565b6000806040838503121561294457612943612053565b5b6000612952858286016121f4565b9250506020612963858286016121f4565b9150509250929050565b6000806040838503121561298457612983612053565b5b6000612992858286016122a9565b92505060206129a3858286016122a9565b9150509250929050565b600080600080600060a086880312156129c9576129c8612053565b5b60006129d7888289016122a9565b95505060206129e8888289016122a9565b94505060406129f9888289016121f4565b9350506060612a0a888289016121f4565b925050608086013567ffffffffffffffff811115612a2b57612a2a612058565b5b612a37888289016126bb565b9150509295509295909350565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b60006002820490506001821680612a8b57607f821691505b60208210811415612a9f57612a9e612a44565b5b50919050565b7f4552433732313a20617070726f76616c20746f2063757272656e74206f776e6560008201527f7200000000000000000000000000000000000000000000000000000000000000602082015250565b6000612b01602183612123565b9150612b0c82612aa5565b604082019050919050565b60006020820190508181036000830152612b3081612af4565b9050919050565b7f4552433732313a20617070726f76652063616c6c6572206973206e6f7420746f60008201527f6b656e206f776e6572206f7220617070726f76656420666f7220616c6c000000602082015250565b6000612b93603d83612123565b9150612b9e82612b37565b604082019050919050565b60006020820190508181036000830152612bc281612b86565b9050919050565b7f4552433732313a2063616c6c6572206973206e6f7420746f6b656e206f776e6560008201527f72206f7220617070726f76656400000000000000000000000000000000000000602082015250565b6000612c25602d83612123565b9150612c3082612bc9565b604082019050919050565b60006020820190508181036000830152612c5481612c18565b9050919050565b7f4552433732313a20696e76616c696420746f6b656e2049440000000000000000600082015250565b6000612c91601883612123565b9150612c9c82612c5b565b602082019050919050565b60006020820190508181036000830152612cc081612c84565b9050919050565b7f4552433732313a2061646472657373207a65726f206973206e6f74206120766160008201527f6c6964206f776e65720000000000000000000000000000000000000000000000602082015250565b6000612d23602983612123565b9150612d2e82612cc7565b604082019050919050565b60006020820190508181036000830152612d5281612d16565b9050919050565b7f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572600082015250565b6000612d8f602083612123565b9150612d9a82612d59565b602082019050919050565b60006020820190508181036000830152612dbe81612d82565b9050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b6000612dff826121d3565b9150612e0a836121d3565b9250827fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff03821115612e3f57612e3e612dc5565b5b828201905092915050565b6000604082019050612e5f6000830185612268565b612e6c60208301846122fe565b9392505050565b6000612e7e826121d3565b91507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff821415612eb157612eb0612dc5565b5b600182019050919050565b600081519050612ecb81612292565b92915050565b600060208284031215612ee757612ee6612053565b5b6000612ef584828501612ebc565b91505092915050565b6000819050919050565b6000612f23612f1e612f1984612efe565b612328565b6121d3565b9050919050565b612f3381612f08565b82525050565b6000604082019050612f4e6000830185612268565b612f5b6020830184612f2a565b9392505050565b600081519050612f71816121dd565b92915050565b600060208284031215612f8d57612f8c612053565b5b6000612f9b84828501612f62565b91505092915050565b6000606082019050612fb96000830186612268565b612fc66020830185612f2a565b612fd360408301846122fe565b949350505050565b600081519050612fea816125dc565b92915050565b60006020828403121561300657613005612053565b5b600061301484828501612fdb565b91505092915050565b600081905092915050565b600061303382612118565b61303d818561301d565b935061304d818560208601612134565b80840191505092915050565b60006130658285613028565b91506130718284613028565b91508190509392505050565b7f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160008201527f6464726573730000000000000000000000000000000000000000000000000000602082015250565b60006130d9602683612123565b91506130e48261307d565b604082019050919050565b60006020820190508181036000830152613108816130cc565b9050919050565b60006040820190506131246000830185612268565b61313160208301846120ee565b9392505050565b7f4552433732313a207472616e736665722066726f6d20696e636f72726563742060008201527f6f776e6572000000000000000000000000000000000000000000000000000000602082015250565b6000613194602583612123565b915061319f82613138565b604082019050919050565b600060208201905081810360008301526131c381613187565b9050919050565b7f4552433732313a207472616e7366657220746f20746865207a65726f2061646460008201527f7265737300000000000000000000000000000000000000000000000000000000602082015250565b6000613226602483612123565b9150613231826131ca565b604082019050919050565b6000602082019050818103600083015261325581613219565b9050919050565b7f4552433732313a20617070726f766520746f2063616c6c657200000000000000600082015250565b6000613292601983612123565b915061329d8261325c565b602082019050919050565b600060208201905081810360008301526132c181613285565b9050919050565b7f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560008201527f63656976657220696d706c656d656e7465720000000000000000000000000000602082015250565b6000613324603283612123565b915061332f826132c8565b604082019050919050565b6000602082019050818103600083015261335381613317565b9050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b6000613394826121d3565b915061339f836121d3565b9250826133af576133ae61335a565b5b828204905092915050565b60006133c5826121d3565b91506133d0836121d3565b9250828210156133e3576133e2612dc5565b5b828203905092915050565b60006133f9826121d3565b9150613404836121d3565b9250826134145761341361335a565b5b828206905092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b600081519050919050565b600082825260208201905092915050565b60006134758261344e565b61347f8185613459565b935061348f818560208601612134565b61349881612167565b840191505092915050565b60006080820190506134b86000830187612268565b6134c56020830186612268565b6134d260408301856122fe565b81810360608301526134e4818461346a565b905095945050505050565b6000815190506134fe81612089565b92915050565b60006020828403121561351a57613519612053565b5b6000613528848285016134ef565b9150509291505056fea26469706673582212209ba4bc861656fc2ee7ec2e39d433d30cfe8c0b9fae97faec6d8f59af9d2601c964736f6c63430008090033
Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)
0000000000000000000000004739244b44585607d9f5f300248a58062a1354fc0000000000000000000000007fee302a14d6b945c0eb6da9c4426c8d75d38a73
-----Decoded View---------------
Arg [0] : fractonDAO_ (address): 0x4739244B44585607D9F5F300248A58062a1354fc
Arg [1] : fractonSwap_ (address): 0x7FEe302A14D6B945c0EB6dA9C4426c8D75d38a73
-----Encoded View---------------
2 Constructor Arguments found :
Arg [0] : 0000000000000000000000004739244b44585607d9f5f300248a58062a1354fc
Arg [1] : 0000000000000000000000007fee302a14d6b945c0eb6da9c4426c8d75d38a73
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.