Feature Tip: Add private address tag to any address under My Name Tag !
NFT
Overview
TokenID
377
Total Transfers
-
Market
Onchain Market Cap
$0.00
Circulating Supply Market Cap
-
Other Info
Token Contract
Loading...
Loading
Loading...
Loading
Loading...
Loading
# | Exchange | Pair | Price | 24H Volume | % Volume |
---|
Contract Name:
INS20
Compiler Version
v0.8.4+commit.c7e474f2
Optimization Enabled:
Yes with 200 runs
Other Settings:
default evmVersion
Contract Source Code (Solidity Standard Json-Input format)
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import "contracts/ERC20/IERC20.sol"; import "contracts/ERC721/ERC721.sol"; import "contracts/ERC721/IERC721.sol"; import "./Base64.sol"; struct Tick { string op; uint256 amt; } contract INS20 is IERC20, ERC721 { uint64 public maxSupply; // 21,000,000 uint64 public mintLimit; // 1000 uint64 public lastBlock; uint64 public mintedPer; // bytes32 public immutable hashPre; bytes32 public immutable hash; bool public nft2ft; // number of tickets minted uint128 private tickNumber; uint128 internal _totalSupply; address public proxy; // -------- IERC20 -------- mapping(address => uint256) internal _balances; mapping(address => uint256) internal _insBalances; mapping(address => mapping(address => uint256)) private _allowances; string private _tick; // for svg mapping(uint256 => Tick) internal _tickets; constructor( string memory tick, uint64 maxSupply_, uint64 mintLimit_, address proxy_ ) ERC721("ins-20", tick) { _tick = tick; // hashPre = keccak256( // string.concat( // '{"p":"ins-20","op":"mint","tick":"', // bytes(tick), // '","amt":"' // ) // ); // hashTail = keccak256(bytes('"}')); hash = keccak256( string.concat( '{"p":"ins-20","op":"mint","tick":"', bytes(tick), '","amt":"1000"}' ) ); maxSupply = maxSupply_; mintLimit = mintLimit_; proxy = proxy_; } event Inscribe(address indexed from, address indexed to, string data); /// @dev Inscribe your first EVM Inscriptions /// @dev Use Flashbots for your txes https://docs.flashbots.net/flashbots-protect/quick-start#adding-flashbots-protect-rpc-manually function inscribe(bytes calldata data) public { require(keccak256(data) == hash, "Inscribe data is wrong."); require(tx.origin == msg.sender, "Contracts are not allowed"); if (block.number > lastBlock) { lastBlock = uint64(block.number); mintedPer = 0; } else { require( mintedPer < 10, "Only 10 ticks per block. Using Flashbots can prevent failed txes." ); unchecked { mintedPer++; } } // string memory d = string(data); // uint256 amt = extractAmt(d); // For lower gas uint256 amt = 1000; require(amt <= mintLimit, "Exceeded mint limit"); require(_totalSupply + amt < maxSupply, "Exceeded max supply"); _mint(msg.sender, tickNumber, amt); emit Inscribe( address(0), msg.sender, string(string.concat("data:text/plain;charset=utf-8", data)) ); } function _mint(address to, uint256 tokenId, uint256 amount) internal { _beforeTokenTransfer(address(0), to, tokenId); unchecked { _totalSupply += uint128(amount); _balances[to] += amount; _insBalances[msg.sender]++; } _owners[tokenId] = to; _tickets[tokenId] = Tick("mint", amount); emit Transfer(address(0), to, tokenId); _afterTokenTransfer(address(0), to, tokenId); } /* function extractAmt(string memory json) internal view returns (uint256) { // index of amt's value uint amtStart = 47; bytes memory jsonBytes = bytes(json); require( jsonBytes.length == 53, 'Inscribe data is wrong.' ); // verify pre hash bytes memory pre = new bytes(amtStart); for (uint256 i = 0; i < amtStart; i++) { pre[i] = jsonBytes[i]; } require( keccak256(pre) == hashPre, 'Inscribe data is wrong.' ); // index of amt's value end uint256 end = amtStart; while (end < jsonBytes.length && jsonBytes[end] != '"') { end++; } // get the value of amt bytes memory amtBytes = new bytes(end - amtStart); for (uint i; i < end - amtStart; i++) { amtBytes[i] = jsonBytes[amtStart + i]; } // verify tail hash bytes memory tail = new bytes(2); tail[0] = jsonBytes[jsonBytes.length - 2]; tail[1] = jsonBytes[jsonBytes.length - 1]; require( keccak256(tail) == hashTail, 'Inscribe data is wrong.' ); // convert to uint uint result = 0; for (uint i = 0; i < amtBytes.length; i++) { uint256 amt = uint256(uint8(amtBytes[i])); // ASCII if (amt < 48 || amt > 57) { revert("Non-numeric character encountered"); } result = result * 10 + (amt - 48); } return result; } */ // -------- IERC20 -------- function symbol() public view virtual override returns (string memory) { return _tick; } function decimals() public view virtual returns (uint8) { return 1; } function totalSupply() public view override returns (uint256) { return _totalSupply; } function balanceOf( address owner ) public view override(ERC721, IERC20) returns (uint256) { require(owner != address(0), "ERC20: address zero is not a valid owner"); return nft2ft ? _balances[owner] : _insBalances[owner]; } function allowance( address owner, address spender ) public view override returns (uint256) { return _allowances[owner][spender]; } function approve( address spender, uint256 amountOrTokenID ) public override(ERC721, IERC20) { if (!nft2ft) { ERC721._approve(spender, amountOrTokenID); } else { address owner = msg.sender; _approve(owner, spender, amountOrTokenID); } } function setApprovalForAll( address operator, bool approved ) public override { if (!nft2ft) { ERC721.setApprovalForAll(operator,approved); } } // only for FT function transfer( address to, uint256 amount ) external override returns (bool) { if (nft2ft) { require(to != address(0), "ERC20: transfer to the zero address"); _transfer20(msg.sender, to, amount); } return nft2ft; } function transferFrom( address from, address to, uint256 tokenIdOrAmount ) public override(ERC721, IERC20) returns (bool) { require(from != address(0), "INS20: transfer from the zero address"); require(to != address(0), "INS20: transfer to the zero address"); if (!nft2ft) { require( _isApprovedOrOwner(_msgSender(), tokenIdOrAmount), "ERC721: caller is not token owner nor approved" ); _transfer721(from, to, tokenIdOrAmount); } else { _spendAllowance(from, msg.sender, tokenIdOrAmount); _transfer20(from, to, tokenIdOrAmount); } return true; } function _spendAllowance( address owner, address spender, uint256 amount ) internal virtual { uint256 currentAllowance = allowance(owner, spender); if (currentAllowance != type(uint256).max) { require(currentAllowance >= amount, "ERC20: insufficient allowance"); unchecked { _approve(owner, spender, currentAllowance - amount); } } } function _approve( address owner, address spender, uint256 amount ) internal virtual { require(owner != address(0), "ERC20: approve from the zero address"); require(spender != address(0), "ERC20: approve to the zero address"); _allowances[owner][spender] = amount; if(nft2ft) emit Approval(owner, spender, amount); } function _transfer20(address from, address to, uint256 amount) internal { _beforeTokenTransfer(from, to, amount); // transfer like erc20 uint256 fromBalance = _balances[from]; require(fromBalance >= amount, "ERC20: transfer amount exceeds balance"); unchecked { _balances[from] = fromBalance - amount; } _balances[to] += amount; string memory t = string( string.concat( '{"p":"ins-20","op":"transfer","tick":"INSC","amt":"', bytes(toString(amount)), '"}' ) ); emit Inscribe( from, to, string(string.concat("data:text/plain;charset=utf-8", bytes(t))) ); _afterTokenTransfer(from, to, amount); if (nft2ft) emit Transfer(from, to, amount); } // -------- IERC721 -------- // just for erc721 transfer function _transfer721(address from, address to, uint256 tokenId) internal { // transfer like erc721 ERC721._transfer(from, to, tokenId); // transfer like erc20 _transfer20(from, to, _tickets[tokenId].amt); _insBalances[from] -= 1; _insBalances[to] += 1; emit Transfer(from, to, tokenId); ERC721._approve(address(0), tokenId); } function safeTransferFrom( address from, address to, uint256 tokenId ) public override { require( !nft2ft, "Not support ERC721 any more." ); safeTransferFrom(from, to, tokenId, ""); } function safeTransferFrom( address from, address to, uint256 tokenId, bytes memory data ) public override { require( !nft2ft, "Not support ERC721 any more." ); require( _isApprovedOrOwner(_msgSender(), tokenId), "ERC721: caller is not token owner nor approved" ); _transfer721(from, to, tokenId); require( _checkOnERC721Received(from, to, tokenId, data), "ERC721: transfer to non ERC721Receiver implementer" ); } function toFT() public { require(!nft2ft && proxy == msg.sender, "Has done"); nft2ft = true; } // metadata function tokenURI( uint256 tokenID ) public view virtual override returns (string memory) { require( !nft2ft, "Not support ERC721 any more." ); string memory output = '<svg xmlns="http://www.w3.org/2000/svg" preserveAspectRatio="xMinYMin meet" viewBox="0 0 350 350"> <style>.base { fill: white; font-family: serif; font-size: 14px; }</style><rect width="100%" height="100%" fill="black" /><text x="100" y="100" class="base">{</text><text x="130" y="130" class="base">"p":"ins-20",</text><text x="130" y="160" class="base">"op":"'; bytes memory data; data = abi.encodePacked( output, bytes(_tickets[tokenID].op), '",</text><text x="130" y="190" class="base">"tick":"insc",</text><text x="130" y="220" class="base">"amt":' ); data = abi.encodePacked( data, bytes(toString(_tickets[tokenID].amt)), '</text><text x="100" y="250" class="base">}</text></svg>' ); string memory json = Base64.encode( bytes( string( abi.encodePacked( '{"description": "INS20 is a social experiment, a first attempt to practice inscription within the EVM.", "image": "data:image/svg+xml;base64,', Base64.encode(data), '"}' ) ) ) ); output = string(abi.encodePacked("data:application/json;base64,", json)); return output; } function _beforeTokenTransfer( address from, address to, uint256 amount ) internal override(ERC721) { if (from == address(0)) { tickNumber++; } } function _afterTokenTransfer( address from, address to, uint256 tokenId ) internal virtual override(ERC721) {} function toString(uint256 value) internal pure returns (string memory) { 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); } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; /// [MIT License] /// @title Base64 /// @notice Provides a function for encoding some bytes in base64 /// @author Brecht Devos <[email protected]> library Base64 { bytes internal constant TABLE = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/"; /// @notice Encodes some bytes to the base64 representation function encode(bytes memory data) internal pure returns (string memory) { uint256 len = data.length; if (len == 0) return ""; // multiply by 4/3 rounded up uint256 encodedLen = 4 * ((len + 2) / 3); // Add some extra buffer at the end bytes memory result = new bytes(encodedLen + 32); bytes memory table = TABLE; assembly { let tablePtr := add(table, 1) let resultPtr := add(result, 32) for { let i := 0 } lt(i, len) { } { i := add(i, 3) let input := and(mload(add(data, i)), 0xffffff) let out := mload(add(tablePtr, and(shr(18, input), 0x3F))) out := shl(8, out) out := add(out, and(mload(add(tablePtr, and(shr(12, input), 0x3F))), 0xFF)) out := shl(8, out) out := add(out, and(mload(add(tablePtr, and(shr(6, input), 0x3F))), 0xFF)) out := shl(8, out) out := add(out, and(mload(add(tablePtr, and(input, 0x3F))), 0xFF)) out := shl(224, out) mstore(resultPtr, out) resultPtr := add(resultPtr, 4) } switch mod(len, 3) case 1 { mstore(sub(resultPtr, 2), shl(240, 0x3d3d)) } case 2 { mstore(sub(resultPtr, 1), shl(248, 0x3d)) } mstore(result, encodedLen) } return string(result); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.6.0) (token/INS20/ERC20.sol) pragma solidity ^0.8.0; /** * @dev Interface of the INS20 standard as defined in the EIP. */ interface IERC20 { /** * @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; /** * @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.7.0) (token/ERC721/ERC721.sol) pragma solidity ^0.8.0; import "./IERC721Metadata.sol"; import "./IERC721Receiver.sol"; import "../utils/Address.sol"; import "../utils/Context.sol"; import "../utils/Strings.sol"; import "../utils/introspection/ERC165.sol"; /** * @dev Implementation of https://eips.ethereum.org/EIPS/eip-721[ERC721] Non-Fungible Token Standard, including * the Metadata extension, but not including the Enumerable extension, which is available separately as * {ERC721Enumerable}. */ contract ERC721 is Context, ERC165, IERC721Metadata { using Strings for uint256; using Address for address; // Token name string private _name; // Token symbol string private _symbol; // Mapping from token ID to owner address mapping(uint256 => address) internal _owners; // 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 {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 {IERC165-supportsInterface}. */ function supportsInterface( bytes4 interfaceId ) public view virtual override(ERC165, IERC165) returns (bool) { return interfaceId == type(IERC721).interfaceId || super.supportsInterface(interfaceId); } /** * @dev See {IERC721-balanceOf}. */ function balanceOf( address owner ) public view virtual override returns (uint256) {} /** * @dev See {IERC721-ownerOf}. */ function ownerOf( uint256 tokenId ) public view virtual override returns (address) { address owner = _owners[tokenId]; require(owner != address(0), "ERC721: invalid token ID"); return owner; } /** * @dev See {IERC721Metadata-tokenURI}. */ function tokenURI( uint256 tokenId ) public view virtual override returns (string memory) {} /** * @dev Base URI for computing {tokenURI}. If set, the resulting URI for each * token will be the concatenation of the `baseURI` and the `tokenId`. Empty * by default, can be overridden in child contracts. */ function _baseURI() internal view virtual returns (string memory) { return ""; } /** * @dev See {IERC721-approve}. */ function approve(address to, uint256 tokenId) public virtual override { address owner = ERC721.ownerOf(tokenId); require(to != owner, "ERC721: approval to current owner"); require( _msgSender() == owner || isApprovedForAll(owner, _msgSender()), "ERC721: approve caller is not token owner nor 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 returns (bool) { return true; } /** * @dev See {IERC721-safeTransferFrom}. */ function safeTransferFrom( address from, address to, uint256 tokenId ) public virtual override {} /** * @dev See {IERC721-safeTransferFrom}. */ function safeTransferFrom( address from, address to, uint256 tokenId, bytes memory data ) public virtual override {} /** * @dev Returns whether `tokenId` exists. * * Tokens can be managed by their owner or approved accounts via {approve} or {setApprovalForAll}. * * Tokens start existing when they are minted (`_mint`), * and stop existing when they are burned (`_burn`). */ function _exists(uint256 tokenId) internal view virtual returns (bool) { return _owners[tokenId] != address(0); } /** * @dev Returns whether `spender` is allowed to manage `tokenId`. * * Requirements: * * - `tokenId` must exist. */ function _isApprovedOrOwner( address spender, uint256 tokenId ) internal view virtual returns (bool) { address owner = ERC721.ownerOf(tokenId); return (spender == owner || isApprovedForAll(owner, spender) || getApproved(tokenId) == spender); } /** * @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 {} function _transfer( address from, address to, uint256 tokenId ) internal virtual { require( ERC721.ownerOf(tokenId) == from, "ERC721: transfer from incorrect owner" ); _owners[tokenId] = to; } /** * @dev Approve `to` to operate on `tokenId` * * Emits an {Approval} event. */ function _approve(address to, uint256 tokenId) internal virtual { _tokenApprovals[tokenId] = to; emit Approval(ERC721.ownerOf(tokenId), to, tokenId); } /** * @dev Approve `operator` to operate on all of `owner` tokens * * Emits 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"); } function _checkOnERC721Received( address from, address to, uint256 tokenId, bytes memory data ) internal 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; } } function _beforeTokenTransfer( address from, address to, uint256 tokenId ) internal virtual {} function _afterTokenTransfer( address from, address to, uint256 tokenId ) internal virtual {} }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.7.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 tokenIdOrAmount ); /** * @dev Emitted when `owner` enables `approved` to manage the `tokenId` token. */ event Approval( address indexed owner, address indexed approved, uint256 indexed tokenIdOrAmount ); /** * @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 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 returns (bool); /** * @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 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.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 (last updated v4.7.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 /// @solidity memory-safe-assembly assembly { let returndata_size := mload(returndata) revert(add(32, returndata), returndata_size) } } else { revert(errorMessage); } } } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (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/introspection/ERC165.sol) pragma solidity ^0.8.0; import "./IERC165.sol"; /** * @dev Implementation of the {IERC165} interface. * * Contracts that want to implement ERC165 should inherit from this contract and override {supportsInterface} to check * for the additional interface id that will be supported. For example: * * ```solidity * function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) { * return interfaceId == type(MyInterface).interfaceId || super.supportsInterface(interfaceId); * } * ``` * * Alternatively, {ERC165Storage} provides an easier to use but more expensive implementation. */ abstract contract ERC165 is IERC165 { /** * @dev See {IERC165-supportsInterface}. */ function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) { return interfaceId == type(IERC165).interfaceId; } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/introspection/IERC165.sol) pragma solidity ^0.8.0; /** * @dev Interface of the ERC165 standard, as defined in the * https://eips.ethereum.org/EIPS/eip-165[EIP]. * * Implementers can declare support of contract interfaces, which can then be * queried by others ({ERC165Checker}). * * For an implementation, see {ERC165}. */ interface IERC165 { /** * @dev Returns true if this contract implements the interface defined by * `interfaceId`. See the corresponding * https://eips.ethereum.org/EIPS/eip-165#how-interfaces-are-identified[EIP section] * to learn more about how these ids are created. * * This function call must use less than 30 000 gas. */ function supportsInterface(bytes4 interfaceId) external view returns (bool); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.7.0) (utils/Strings.sol) pragma solidity ^0.8.0; /** * @dev String operations. */ library Strings { bytes16 private constant _HEX_SYMBOLS = "0123456789abcdef"; uint8 private constant _ADDRESS_LENGTH = 20; /** * @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); } /** * @dev Converts an `address` with fixed length of 20 bytes to its not checksummed ASCII `string` hexadecimal representation. */ function toHexString(address addr) internal pure returns (string memory) { return toHexString(uint256(uint160(addr)), _ADDRESS_LENGTH); } }
{ "optimizer": { "enabled": true, "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":"string","name":"tick","type":"string"},{"internalType":"uint64","name":"maxSupply_","type":"uint64"},{"internalType":"uint64","name":"mintLimit_","type":"uint64"},{"internalType":"address","name":"proxy_","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":"tokenIdOrAmount","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":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":false,"internalType":"string","name":"data","type":"string"}],"name":"Inscribe","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":"tokenIdOrAmount","type":"uint256"}],"name":"Transfer","type":"event"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"spender","type":"address"}],"name":"allowance","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"amountOrTokenID","type":"uint256"}],"name":"approve","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"decimals","outputs":[{"internalType":"uint8","name":"","type":"uint8"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getApproved","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"hash","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes","name":"data","type":"bytes"}],"name":"inscribe","outputs":[],"stateMutability":"nonpayable","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":"lastBlock","outputs":[{"internalType":"uint64","name":"","type":"uint64"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"maxSupply","outputs":[{"internalType":"uint64","name":"","type":"uint64"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"mintLimit","outputs":[{"internalType":"uint64","name":"","type":"uint64"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"mintedPer","outputs":[{"internalType":"uint64","name":"","type":"uint64"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"nft2ft","outputs":[{"internalType":"bool","name":"","type":"bool"}],"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":"proxy","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"bytes","name":"data","type":"bytes"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"operator","type":"address"},{"internalType":"bool","name":"approved","type":"bool"}],"name":"setApprovalForAll","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes4","name":"interfaceId","type":"bytes4"}],"name":"supportsInterface","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"toFT","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenID","type":"uint256"}],"name":"tokenURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"transfer","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenIdOrAmount","type":"uint256"}],"name":"transferFrom","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"}]
Contract Creation Code
60a06040523480156200001157600080fd5b5060405162002924380380620029248339810160408190526200003491620001f6565b604080518082019091526006808252650696e732d32360d41b60208301908152869162000064916000916200011b565b5080516200007a9060019060208401906200011b565b50508451620000929150600c9060208701906200011b565b5083604051602001620000a69190620002e4565b60408051808303601f190181529190528051602090910120608052600580546001600160401b039485166001600160801b031990911617680100000000000000009390941692909202929092179055600880546001600160a01b0319166001600160a01b0390921691909117905550620003d5565b828054620001299062000382565b90600052602060002090601f0160209004810192826200014d576000855562000198565b82601f106200016857805160ff191683800117855562000198565b8280016001018555821562000198579182015b82811115620001985782518255916020019190600101906200017b565b50620001a6929150620001aa565b5090565b5b80821115620001a65760008155600101620001ab565b80516001600160a01b0381168114620001d957600080fd5b919050565b80516001600160401b0381168114620001d957600080fd5b600080600080608085870312156200020c578384fd5b84516001600160401b038082111562000223578586fd5b818701915087601f83011262000237578586fd5b8151818111156200024c576200024c620003bf565b604051601f8201601f19908116603f01168101908382118183101715620002775762000277620003bf565b816040528281528a602084870101111562000290578889fd5b620002a38360208301602088016200034f565b8098505050505050620002b960208601620001de565b9250620002c960408601620001de565b9150620002d960608601620001c1565b905092959194509250565b7f7b2270223a22696e732d3230222c226f70223a226d696e74222c227469636b228152611d1160f11b602082015260008251620003298160228501602087016200034f565b6e222c22616d74223a2231303030227d60881b6022939091019283015250603101919050565b60005b838110156200036c57818101518382015260200162000352565b838111156200037c576000848401525b50505050565b600181811c908216806200039757607f821691505b60208210811415620003b957634e487b7160e01b600052602260045260246000fd5b50919050565b634e487b7160e01b600052604160045260246000fd5b60805161252c620003f86000396000818161021501526106b5015261252c6000f3fe608060405234801561001057600080fd5b506004361061018e5760003560e01c806370a08231116100de578063aa32ddcc11610097578063d5abeb0111610071578063d5abeb0114610393578063dd62ed3e146103a6578063e985e9c5146103df578063ec5568891461041b57600080fd5b8063aa32ddcc14610365578063b88d4fde1461036d578063c87b56dd1461038057600080fd5b806370a08231146102f0578063806b984f1461030357806395d89b411461031d578063996517cf14610325578063a22cb4651461033f578063a9059cbb1461035257600080fd5b806323b872dd1161014b57806331a462da1161012557806331a462da146102aa57806342842e0e146102b7578063449b2cf6146102ca5780636352211e146102dd57600080fd5b806323b872dd146102565780632910b20a14610269578063313ce5671461029b57600080fd5b806301ffc9a71461019357806306fdde03146101bb578063081812fc146101d0578063095ea7b3146101fb57806309bd5a601461021057806318160ddd14610245575b600080fd5b6101a66101a1366004611c0c565b61042e565b60405190151581526020015b60405180910390f35b6101c3610465565b6040516101b291906120ed565b6101e36101de366004611cb0565b6104f7565b6040516001600160a01b0390911681526020016101b2565b61020e610209366004611be3565b61051e565b005b6102377f000000000000000000000000000000000000000000000000000000000000000081565b6040519081526020016101b2565b6007546001600160801b0316610237565b6101a6610264366004611a9a565b610547565b60055461028390600160c01b90046001600160401b031681565b6040516001600160401b0390911681526020016101b2565b604051600181526020016101b2565b6006546101a69060ff1681565b61020e6102c5366004611a9a565b610675565b61020e6102d8366004611c44565b6106b3565b6101e36102eb366004611cb0565b6109d3565b6102376102fe366004611a47565b610a33565b60055461028390600160801b90046001600160401b031681565b6101c3610ae0565b60055461028390600160401b90046001600160401b031681565b61020e61034d366004611ba9565b610aef565b6101a6610360366004611be3565b610b03565b61020e610b8b565b61020e61037b366004611ad5565b610bee565b6101c361038e366004611cb0565b610c6f565b600554610283906001600160401b031681565b6102376103b4366004611a68565b6001600160a01b039182166000908152600b6020908152604080832093909416825291909152205490565b6101a66103ed366004611a68565b6001600160a01b03918216600090815260046020908152604080832093909416825291909152205460ff1690565b6008546101e3906001600160a01b031681565b60006001600160e01b031982166380ac58cd60e01b148061045f57506301ffc9a760e01b6001600160e01b03198316145b92915050565b60606000805461047490612265565b80601f01602080910402602001604051908101604052809291908181526020018280546104a090612265565b80156104ed5780601f106104c2576101008083540402835291602001916104ed565b820191906000526020600020905b8154815290600101906020018083116104d057829003601f168201915b5050505050905090565b600061050282610d8c565b506000908152600360205260409020546001600160a01b031690565b60065460ff16610536576105328282610dee565b5050565b33610542818484610e5c565b505050565b60006001600160a01b0384166105b25760405162461bcd60e51b815260206004820152602560248201527f494e5332303a207472616e736665722066726f6d20746865207a65726f206164604482015264647265737360d81b60648201526084015b60405180910390fd5b6001600160a01b0383166106145760405162461bcd60e51b815260206004820152602360248201527f494e5332303a207472616e7366657220746f20746865207a65726f206164647260448201526265737360e81b60648201526084016105a9565b60065460ff1661065557610629335b83610f98565b6106455760405162461bcd60e51b81526004016105a990612189565b610650848484611017565b61066b565b6106608433846110e3565b61066b84848461116f565b5060019392505050565b60065460ff16156106985760405162461bcd60e51b81526004016105a990612152565b61054283838360405180602001604052806000815250610bee565b7f000000000000000000000000000000000000000000000000000000000000000082826040516106e4929190611cf4565b6040518091039020146107395760405162461bcd60e51b815260206004820152601760248201527f496e73637269626520646174612069732077726f6e672e00000000000000000060448201526064016105a9565b3233146107885760405162461bcd60e51b815260206004820152601960248201527f436f6e74726163747320617265206e6f7420616c6c6f7765640000000000000060448201526064016105a9565b600554600160801b90046001600160401b03164311156107d057600580546001600160801b0316600160801b436001600160401b0316026001600160c01b0316179055610890565b600554600a600160c01b9091046001600160401b0316106108635760405162461bcd60e51b815260206004820152604160248201527f4f6e6c79203130207469636b732070657220626c6f636b2e205573696e67204660448201527f6c617368626f74732063616e2070726576656e74206661696c656420747865736064820152601760f91b608482015260a4016105a9565b6005805460016001600160401b03600160c01b80840482169290920116026001600160c01b039091161790555b6005546103e890600160401b90046001600160401b03168111156108ec5760405162461bcd60e51b8152602060048201526013602482015272115e18d959591959081b5a5b9d081b1a5b5a5d606a1b60448201526064016105a9565b6005546007546001600160401b03909116906109129083906001600160801b03166121d7565b106109555760405162461bcd60e51b81526020600482015260136024820152724578636565646564206d617820737570706c7960681b60448201526064016105a9565b60065461097290339061010090046001600160801b031683611317565b60405133906000907f0e2c612cd3a6965782a48c7f571f155667c3c913eb3b6f0af0a004652b8fdc6d906109ac908790879060200161203f565b60408051601f19818403018152908290526109c6916120ed565b60405180910390a3505050565b6000818152600260205260408120546001600160a01b03168061045f5760405162461bcd60e51b8152602060048201526018602482015277115490cdcc8c4e881a5b9d985b1a59081d1bdad95b88125160421b60448201526064016105a9565b60006001600160a01b038216610a9c5760405162461bcd60e51b815260206004820152602860248201527f45524332303a2061646472657373207a65726f206973206e6f7420612076616c60448201526734b21037bbb732b960c11b60648201526084016105a9565b60065460ff16610ac4576001600160a01b0382166000908152600a602052604090205461045f565b506001600160a01b031660009081526009602052604090205490565b6060600c805461047490612265565b60065460ff1661053257610532828261142b565b60065460009060ff1615610b7e576001600160a01b038316610b735760405162461bcd60e51b815260206004820152602360248201527f45524332303a207472616e7366657220746f20746865207a65726f206164647260448201526265737360e81b60648201526084016105a9565b610b7e33848461116f565b5060065460ff1692915050565b60065460ff16158015610ba857506008546001600160a01b031633145b610bdf5760405162461bcd60e51b815260206004820152600860248201526748617320646f6e6560c01b60448201526064016105a9565b6006805460ff19166001179055565b60065460ff1615610c115760405162461bcd60e51b81526004016105a990612152565b610c1a33610623565b610c365760405162461bcd60e51b81526004016105a990612189565b610c41848484611017565b610c4d84848484611436565b610c695760405162461bcd60e51b81526004016105a990612100565b50505050565b60065460609060ff1615610c955760405162461bcd60e51b81526004016105a990612152565b6000604051806101a00160405280610168815260200161234f61016891399050606081600d6000868152602001908152602001600020600001604051602001610cdf929190611d81565b60408051601f198184030181529181526000868152600d60205220600101549091508190610d0c90611543565b604051602001610d1d929190611d04565b60405160208183030381529060405290506000610d60610d3c8361165c565b604051602001610d4c9190611eb4565b60405160208183030381529060405261165c565b905080604051602001610d739190611ffa565b60408051601f1981840301815291905295945050505050565b6000818152600260205260409020546001600160a01b0316610deb5760405162461bcd60e51b8152602060048201526018602482015277115490cdcc8c4e881a5b9d985b1a59081d1bdad95b88125160421b60448201526064016105a9565b50565b600081815260036020526040902080546001600160a01b0319166001600160a01b0384169081179091558190610e23826109d3565b6001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b6001600160a01b038316610ebe5760405162461bcd60e51b8152602060048201526024808201527f45524332303a20617070726f76652066726f6d20746865207a65726f206164646044820152637265737360e01b60648201526084016105a9565b6001600160a01b038216610f1f5760405162461bcd60e51b815260206004820152602260248201527f45524332303a20617070726f766520746f20746865207a65726f206164647265604482015261737360f01b60648201526084016105a9565b6001600160a01b038084166000908152600b6020908152604080832093861683529290522081905560065460ff16156105425780826001600160a01b0316846001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a4505050565b600080610fa4836109d3565b9050806001600160a01b0316846001600160a01b03161480610feb57506001600160a01b0380821660009081526004602090815260408083209388168352929052205460ff165b8061100f5750836001600160a01b0316611004846104f7565b6001600160a01b0316145b949350505050565b6110228383836117cf565b6000818152600d6020526040902060010154611041908490849061116f565b6001600160a01b0383166000908152600a6020526040812080546001929061106a908490612222565b90915550506001600160a01b0382166000908152600a602052604081208054600192906110989084906121d7565b909155505060405181906001600160a01b0380851691908616907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef90600090a4610542600082610dee565b6001600160a01b038381166000908152600b60209081526040808320938616835292905220546000198114610c6957818110156111625760405162461bcd60e51b815260206004820152601d60248201527f45524332303a20696e73756666696369656e7420616c6c6f77616e636500000060448201526064016105a9565b610c698484848403610e5c565b61117a838383611875565b6001600160a01b038316600090815260096020526040902054818110156111f25760405162461bcd60e51b815260206004820152602660248201527f45524332303a207472616e7366657220616d6f756e7420657863656564732062604482015265616c616e636560d01b60648201526084016105a9565b6001600160a01b038085166000908152600960205260408082208585039055918516815290812080548492906112299084906121d7565b909155506000905061123a83611543565b60405160200161124a9190611f8d565b6040516020818303038152906040529050836001600160a01b0316856001600160a01b03167f0e2c612cd3a6965782a48c7f571f155667c3c913eb3b6f0af0a004652b8fdc6d836040516020016112a19190612078565b60408051601f19818403018152908290526112bb916120ed565b60405180910390a360065460ff16156113105782846001600160a01b0316866001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a45b5050505050565b61132360008484611875565b600780546001600160801b038082168401166fffffffffffffffffffffffffffffffff199091161790556001600160a01b0383166000818152600960209081526040808320805486019055338352600a8252808320805460010190558583526002825280832080546001600160a01b03191690941790935582516080810184526004818501908152631b5a5b9d60e21b60608301528152808201859052858352600d8252929091208251805191926113e092849290910190611992565b506020919091015160019091015560405182906001600160a01b038516906000907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a4505050565b6105323383836118cb565b60006001600160a01b0384163b1561153857604051630a85bd0160e11b81526001600160a01b0385169063150b7a029061147a9033908990889088906004016120b0565b602060405180830381600087803b15801561149457600080fd5b505af19250505080156114c4575060408051601f3d908101601f191682019092526114c191810190611c28565b60015b61151e573d8080156114f2576040519150601f19603f3d011682016040523d82523d6000602084013e6114f7565b606091505b5080516115165760405162461bcd60e51b81526004016105a990612100565b805181602001fd5b6001600160e01b031916630a85bd0160e11b14905061100f565b506001949350505050565b6060816115675750506040805180820190915260018152600360fc1b602082015290565b8160005b8115611591578061157b816122c7565b915061158a9050600a836121ef565b915061156b565b6000816001600160401b038111156115b957634e487b7160e01b600052604160045260246000fd5b6040519080825280601f01601f1916602001820160405280156115e3576020820181803683370190505b5090505b841561100f576115f8600183612222565b9150611605600a866122e2565b6116109060306121d7565b60f81b81838151811061163357634e487b7160e01b600052603260045260246000fd5b60200101906001600160f81b031916908160001a905350611655600a866121ef565b94506115e7565b80516060908061167c575050604080516020810190915260008152919050565b6000600361168b8360026121d7565b61169591906121ef565b6116a0906004612203565b905060006116af8260206121d7565b6001600160401b038111156116d457634e487b7160e01b600052604160045260246000fd5b6040519080825280601f01601f1916602001820160405280156116fe576020820181803683370190505b50905060006040518060600160405280604081526020016124b7604091399050600181016020830160005b8681101561178a576003818a01810151603f601282901c8116860151600c83901c8216870151600684901c831688015192909316870151600891821b60ff94851601821b92841692909201901b91160160e01b835260049092019101611729565b5060038606600181146117a457600281146117b5576117c1565b613d3d60f01b6001198301526117c1565b603d60f81b6000198301525b505050918152949350505050565b826001600160a01b03166117e2826109d3565b6001600160a01b0316146118465760405162461bcd60e51b815260206004820152602560248201527f4552433732313a207472616e736665722066726f6d20696e636f72726563742060448201526437bbb732b960d91b60648201526084016105a9565b600090815260026020526040902080546001600160a01b0319166001600160a01b039290921691909117905550565b6001600160a01b038316610542576006805461010090046001600160801b03169060016118a1836122a0565b91906101000a8154816001600160801b0302191690836001600160801b0316021790555050505050565b816001600160a01b0316836001600160a01b0316141561192d5760405162461bcd60e51b815260206004820152601960248201527f4552433732313a20617070726f766520746f2063616c6c65720000000000000060448201526064016105a9565b6001600160a01b03838116600081815260046020908152604080832094871680845294825291829020805460ff191686151590811790915591519182527f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c3191016109c6565b82805461199e90612265565b90600052602060002090601f0160209004810192826119c05760008555611a06565b82601f106119d957805160ff1916838001178555611a06565b82800160010185558215611a06579182015b82811115611a065782518255916020019190600101906119eb565b50611a12929150611a16565b5090565b5b80821115611a125760008155600101611a17565b80356001600160a01b0381168114611a4257600080fd5b919050565b600060208284031215611a58578081fd5b611a6182611a2b565b9392505050565b60008060408385031215611a7a578081fd5b611a8383611a2b565b9150611a9160208401611a2b565b90509250929050565b600080600060608486031215611aae578081fd5b611ab784611a2b565b9250611ac560208501611a2b565b9150604084013590509250925092565b60008060008060808587031215611aea578081fd5b611af385611a2b565b9350611b0160208601611a2b565b92506040850135915060608501356001600160401b0380821115611b23578283fd5b818701915087601f830112611b36578283fd5b813581811115611b4857611b48612322565b604051601f8201601f19908116603f01168101908382118183101715611b7057611b70612322565b816040528281528a6020848701011115611b88578586fd5b82602086016020830137918201602001949094529598949750929550505050565b60008060408385031215611bbb578182fd5b611bc483611a2b565b915060208301358015158114611bd8578182fd5b809150509250929050565b60008060408385031215611bf5578182fd5b611bfe83611a2b565b946020939093013593505050565b600060208284031215611c1d578081fd5b8135611a6181612338565b600060208284031215611c39578081fd5b8151611a6181612338565b60008060208385031215611c56578182fd5b82356001600160401b0380821115611c6c578384fd5b818501915085601f830112611c7f578384fd5b813581811115611c8d578485fd5b866020828501011115611c9e578485fd5b60209290920196919550909350505050565b600060208284031215611cc1578081fd5b5035919050565b60008151808452611ce0816020860160208601612239565b601f01601f19169290920160200192915050565b8183823760009101908152919050565b60008351611d16818460208801612239565b835190830190611d2a818360208801612239565b7f3c2f746578743e3c7465787420783d223130302220793d223235302220636c6191019081527f73733d2262617365223e7d3c2f746578743e3c2f7376673e00000000000000006020820152603801949350505050565b600083516020611d948285838901612239565b8454918401918390600181811c9080831680611db157607f831692505b858310811415611dcf57634e487b7160e01b88526022600452602488fd5b808015611de35760018114611df457611e20565b60ff19851688528388019550611e20565b60008b815260209020895b85811015611e185781548a820152908401908801611dff565b505083880195505b50507f222c3c2f746578743e3c7465787420783d223133302220793d22313930222063845250507f6c6173733d2262617365223e227469636b223a22696e7363222c3c2f746578746020830152507f3e3c7465787420783d223133302220793d223232302220636c6173733d22626160408201526939b2911f1130b6ba111d60b11b6060820152606a019695505050505050565b7f7b226465736372697074696f6e223a2022494e533230206973206120736f636981527f616c206578706572696d656e742c206120666972737420617474656d7074207460208201527f6f20707261637469636520696e736372697074696f6e2077697468696e20746860408201527f652045564d2e222c2022696d616765223a2022646174613a696d6167652f737660608201526c19cade1b5b0ed8985cd94d8d0b609a1b608082015260008251611f7481608d850160208701612239565b61227d60f01b608d939091019283015250608f01919050565b7f7b2270223a22696e732d3230222c226f70223a227472616e73666572222c227481527234b1b5911d1124a729a191161130b6ba111d1160691b602082015260008251611fe1816033850160208701612239565b61227d60f01b6033939091019283015250603501919050565b7f646174613a6170706c69636174696f6e2f6a736f6e3b6261736536342c00000081526000825161203281601d850160208701612239565b91909101601d0192915050565b7f646174613a746578742f706c61696e3b636861727365743d7574662d3800000081528183601d83013760009101601d01908152919050565b7f646174613a746578742f706c61696e3b636861727365743d7574662d3800000081526000825161203281601d850160208701612239565b6001600160a01b03858116825284166020820152604081018390526080606082018190526000906120e390830184611cc8565b9695505050505050565b602081526000611a616020830184611cc8565b60208082526032908201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560408201527131b2b4bb32b91034b6b83632b6b2b73a32b960711b606082015260800190565b6020808252601c908201527f4e6f7420737570706f72742045524337323120616e79206d6f72652e00000000604082015260600190565b6020808252602e908201527f4552433732313a2063616c6c6572206973206e6f7420746f6b656e206f776e6560408201526d1c881b9bdc88185c1c1c9bdd995960921b606082015260800190565b600082198211156121ea576121ea6122f6565b500190565b6000826121fe576121fe61230c565b500490565b600081600019048311821515161561221d5761221d6122f6565b500290565b600082821015612234576122346122f6565b500390565b60005b8381101561225457818101518382015260200161223c565b83811115610c695750506000910152565b600181811c9082168061227957607f821691505b6020821081141561229a57634e487b7160e01b600052602260045260246000fd5b50919050565b60006001600160801b03808316818114156122bd576122bd6122f6565b6001019392505050565b60006000198214156122db576122db6122f6565b5060010190565b6000826122f1576122f161230c565b500690565b634e487b7160e01b600052601160045260246000fd5b634e487b7160e01b600052601260045260246000fd5b634e487b7160e01b600052604160045260246000fd5b6001600160e01b031981168114610deb57600080fdfe3c73766720786d6c6e733d22687474703a2f2f7777772e77332e6f72672f323030302f73766722207072657365727665417370656374526174696f3d22784d696e594d696e206d656574222076696577426f783d223020302033353020333530223e203c7374796c653e2e62617365207b2066696c6c3a2077686974653b20666f6e742d66616d696c793a2073657269663b20666f6e742d73697a653a20313470783b207d3c2f7374796c653e3c726563742077696474683d223130302522206865696768743d2231303025222066696c6c3d22626c61636b22202f3e3c7465787420783d223130302220793d223130302220636c6173733d2262617365223e7b3c2f746578743e3c7465787420783d223133302220793d223133302220636c6173733d2262617365223e2270223a22696e732d3230222c3c2f746578743e3c7465787420783d223133302220793d223136302220636c6173733d2262617365223e226f70223a224142434445464748494a4b4c4d4e4f505152535455565758595a6162636465666768696a6b6c6d6e6f707172737475767778797a303132333435363738392b2fa264697066735822122051397bbe092a73d3a1f6731383961f684b0d965680131dc6d47a3f6920d7c34564736f6c6343000804003300000000000000000000000000000000000000000000000000000000000000800000000000000000000000000000000000000000000000000000000001406f4000000000000000000000000000000000000000000000000000000000000003e800000000000000000000000038480093ad3c093e973fff9f8f794204e557c16f0000000000000000000000000000000000000000000000000000000000000004494e534300000000000000000000000000000000000000000000000000000000
Deployed Bytecode
0x608060405234801561001057600080fd5b506004361061018e5760003560e01c806370a08231116100de578063aa32ddcc11610097578063d5abeb0111610071578063d5abeb0114610393578063dd62ed3e146103a6578063e985e9c5146103df578063ec5568891461041b57600080fd5b8063aa32ddcc14610365578063b88d4fde1461036d578063c87b56dd1461038057600080fd5b806370a08231146102f0578063806b984f1461030357806395d89b411461031d578063996517cf14610325578063a22cb4651461033f578063a9059cbb1461035257600080fd5b806323b872dd1161014b57806331a462da1161012557806331a462da146102aa57806342842e0e146102b7578063449b2cf6146102ca5780636352211e146102dd57600080fd5b806323b872dd146102565780632910b20a14610269578063313ce5671461029b57600080fd5b806301ffc9a71461019357806306fdde03146101bb578063081812fc146101d0578063095ea7b3146101fb57806309bd5a601461021057806318160ddd14610245575b600080fd5b6101a66101a1366004611c0c565b61042e565b60405190151581526020015b60405180910390f35b6101c3610465565b6040516101b291906120ed565b6101e36101de366004611cb0565b6104f7565b6040516001600160a01b0390911681526020016101b2565b61020e610209366004611be3565b61051e565b005b6102377f16de3e0ef0817ec32d4e61320eadd262f19e67fa52bfa09b8472b7372dfd4fed81565b6040519081526020016101b2565b6007546001600160801b0316610237565b6101a6610264366004611a9a565b610547565b60055461028390600160c01b90046001600160401b031681565b6040516001600160401b0390911681526020016101b2565b604051600181526020016101b2565b6006546101a69060ff1681565b61020e6102c5366004611a9a565b610675565b61020e6102d8366004611c44565b6106b3565b6101e36102eb366004611cb0565b6109d3565b6102376102fe366004611a47565b610a33565b60055461028390600160801b90046001600160401b031681565b6101c3610ae0565b60055461028390600160401b90046001600160401b031681565b61020e61034d366004611ba9565b610aef565b6101a6610360366004611be3565b610b03565b61020e610b8b565b61020e61037b366004611ad5565b610bee565b6101c361038e366004611cb0565b610c6f565b600554610283906001600160401b031681565b6102376103b4366004611a68565b6001600160a01b039182166000908152600b6020908152604080832093909416825291909152205490565b6101a66103ed366004611a68565b6001600160a01b03918216600090815260046020908152604080832093909416825291909152205460ff1690565b6008546101e3906001600160a01b031681565b60006001600160e01b031982166380ac58cd60e01b148061045f57506301ffc9a760e01b6001600160e01b03198316145b92915050565b60606000805461047490612265565b80601f01602080910402602001604051908101604052809291908181526020018280546104a090612265565b80156104ed5780601f106104c2576101008083540402835291602001916104ed565b820191906000526020600020905b8154815290600101906020018083116104d057829003601f168201915b5050505050905090565b600061050282610d8c565b506000908152600360205260409020546001600160a01b031690565b60065460ff16610536576105328282610dee565b5050565b33610542818484610e5c565b505050565b60006001600160a01b0384166105b25760405162461bcd60e51b815260206004820152602560248201527f494e5332303a207472616e736665722066726f6d20746865207a65726f206164604482015264647265737360d81b60648201526084015b60405180910390fd5b6001600160a01b0383166106145760405162461bcd60e51b815260206004820152602360248201527f494e5332303a207472616e7366657220746f20746865207a65726f206164647260448201526265737360e81b60648201526084016105a9565b60065460ff1661065557610629335b83610f98565b6106455760405162461bcd60e51b81526004016105a990612189565b610650848484611017565b61066b565b6106608433846110e3565b61066b84848461116f565b5060019392505050565b60065460ff16156106985760405162461bcd60e51b81526004016105a990612152565b61054283838360405180602001604052806000815250610bee565b7f16de3e0ef0817ec32d4e61320eadd262f19e67fa52bfa09b8472b7372dfd4fed82826040516106e4929190611cf4565b6040518091039020146107395760405162461bcd60e51b815260206004820152601760248201527f496e73637269626520646174612069732077726f6e672e00000000000000000060448201526064016105a9565b3233146107885760405162461bcd60e51b815260206004820152601960248201527f436f6e74726163747320617265206e6f7420616c6c6f7765640000000000000060448201526064016105a9565b600554600160801b90046001600160401b03164311156107d057600580546001600160801b0316600160801b436001600160401b0316026001600160c01b0316179055610890565b600554600a600160c01b9091046001600160401b0316106108635760405162461bcd60e51b815260206004820152604160248201527f4f6e6c79203130207469636b732070657220626c6f636b2e205573696e67204660448201527f6c617368626f74732063616e2070726576656e74206661696c656420747865736064820152601760f91b608482015260a4016105a9565b6005805460016001600160401b03600160c01b80840482169290920116026001600160c01b039091161790555b6005546103e890600160401b90046001600160401b03168111156108ec5760405162461bcd60e51b8152602060048201526013602482015272115e18d959591959081b5a5b9d081b1a5b5a5d606a1b60448201526064016105a9565b6005546007546001600160401b03909116906109129083906001600160801b03166121d7565b106109555760405162461bcd60e51b81526020600482015260136024820152724578636565646564206d617820737570706c7960681b60448201526064016105a9565b60065461097290339061010090046001600160801b031683611317565b60405133906000907f0e2c612cd3a6965782a48c7f571f155667c3c913eb3b6f0af0a004652b8fdc6d906109ac908790879060200161203f565b60408051601f19818403018152908290526109c6916120ed565b60405180910390a3505050565b6000818152600260205260408120546001600160a01b03168061045f5760405162461bcd60e51b8152602060048201526018602482015277115490cdcc8c4e881a5b9d985b1a59081d1bdad95b88125160421b60448201526064016105a9565b60006001600160a01b038216610a9c5760405162461bcd60e51b815260206004820152602860248201527f45524332303a2061646472657373207a65726f206973206e6f7420612076616c60448201526734b21037bbb732b960c11b60648201526084016105a9565b60065460ff16610ac4576001600160a01b0382166000908152600a602052604090205461045f565b506001600160a01b031660009081526009602052604090205490565b6060600c805461047490612265565b60065460ff1661053257610532828261142b565b60065460009060ff1615610b7e576001600160a01b038316610b735760405162461bcd60e51b815260206004820152602360248201527f45524332303a207472616e7366657220746f20746865207a65726f206164647260448201526265737360e81b60648201526084016105a9565b610b7e33848461116f565b5060065460ff1692915050565b60065460ff16158015610ba857506008546001600160a01b031633145b610bdf5760405162461bcd60e51b815260206004820152600860248201526748617320646f6e6560c01b60448201526064016105a9565b6006805460ff19166001179055565b60065460ff1615610c115760405162461bcd60e51b81526004016105a990612152565b610c1a33610623565b610c365760405162461bcd60e51b81526004016105a990612189565b610c41848484611017565b610c4d84848484611436565b610c695760405162461bcd60e51b81526004016105a990612100565b50505050565b60065460609060ff1615610c955760405162461bcd60e51b81526004016105a990612152565b6000604051806101a00160405280610168815260200161234f61016891399050606081600d6000868152602001908152602001600020600001604051602001610cdf929190611d81565b60408051601f198184030181529181526000868152600d60205220600101549091508190610d0c90611543565b604051602001610d1d929190611d04565b60405160208183030381529060405290506000610d60610d3c8361165c565b604051602001610d4c9190611eb4565b60405160208183030381529060405261165c565b905080604051602001610d739190611ffa565b60408051601f1981840301815291905295945050505050565b6000818152600260205260409020546001600160a01b0316610deb5760405162461bcd60e51b8152602060048201526018602482015277115490cdcc8c4e881a5b9d985b1a59081d1bdad95b88125160421b60448201526064016105a9565b50565b600081815260036020526040902080546001600160a01b0319166001600160a01b0384169081179091558190610e23826109d3565b6001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b6001600160a01b038316610ebe5760405162461bcd60e51b8152602060048201526024808201527f45524332303a20617070726f76652066726f6d20746865207a65726f206164646044820152637265737360e01b60648201526084016105a9565b6001600160a01b038216610f1f5760405162461bcd60e51b815260206004820152602260248201527f45524332303a20617070726f766520746f20746865207a65726f206164647265604482015261737360f01b60648201526084016105a9565b6001600160a01b038084166000908152600b6020908152604080832093861683529290522081905560065460ff16156105425780826001600160a01b0316846001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a4505050565b600080610fa4836109d3565b9050806001600160a01b0316846001600160a01b03161480610feb57506001600160a01b0380821660009081526004602090815260408083209388168352929052205460ff165b8061100f5750836001600160a01b0316611004846104f7565b6001600160a01b0316145b949350505050565b6110228383836117cf565b6000818152600d6020526040902060010154611041908490849061116f565b6001600160a01b0383166000908152600a6020526040812080546001929061106a908490612222565b90915550506001600160a01b0382166000908152600a602052604081208054600192906110989084906121d7565b909155505060405181906001600160a01b0380851691908616907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef90600090a4610542600082610dee565b6001600160a01b038381166000908152600b60209081526040808320938616835292905220546000198114610c6957818110156111625760405162461bcd60e51b815260206004820152601d60248201527f45524332303a20696e73756666696369656e7420616c6c6f77616e636500000060448201526064016105a9565b610c698484848403610e5c565b61117a838383611875565b6001600160a01b038316600090815260096020526040902054818110156111f25760405162461bcd60e51b815260206004820152602660248201527f45524332303a207472616e7366657220616d6f756e7420657863656564732062604482015265616c616e636560d01b60648201526084016105a9565b6001600160a01b038085166000908152600960205260408082208585039055918516815290812080548492906112299084906121d7565b909155506000905061123a83611543565b60405160200161124a9190611f8d565b6040516020818303038152906040529050836001600160a01b0316856001600160a01b03167f0e2c612cd3a6965782a48c7f571f155667c3c913eb3b6f0af0a004652b8fdc6d836040516020016112a19190612078565b60408051601f19818403018152908290526112bb916120ed565b60405180910390a360065460ff16156113105782846001600160a01b0316866001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a45b5050505050565b61132360008484611875565b600780546001600160801b038082168401166fffffffffffffffffffffffffffffffff199091161790556001600160a01b0383166000818152600960209081526040808320805486019055338352600a8252808320805460010190558583526002825280832080546001600160a01b03191690941790935582516080810184526004818501908152631b5a5b9d60e21b60608301528152808201859052858352600d8252929091208251805191926113e092849290910190611992565b506020919091015160019091015560405182906001600160a01b038516906000907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a4505050565b6105323383836118cb565b60006001600160a01b0384163b1561153857604051630a85bd0160e11b81526001600160a01b0385169063150b7a029061147a9033908990889088906004016120b0565b602060405180830381600087803b15801561149457600080fd5b505af19250505080156114c4575060408051601f3d908101601f191682019092526114c191810190611c28565b60015b61151e573d8080156114f2576040519150601f19603f3d011682016040523d82523d6000602084013e6114f7565b606091505b5080516115165760405162461bcd60e51b81526004016105a990612100565b805181602001fd5b6001600160e01b031916630a85bd0160e11b14905061100f565b506001949350505050565b6060816115675750506040805180820190915260018152600360fc1b602082015290565b8160005b8115611591578061157b816122c7565b915061158a9050600a836121ef565b915061156b565b6000816001600160401b038111156115b957634e487b7160e01b600052604160045260246000fd5b6040519080825280601f01601f1916602001820160405280156115e3576020820181803683370190505b5090505b841561100f576115f8600183612222565b9150611605600a866122e2565b6116109060306121d7565b60f81b81838151811061163357634e487b7160e01b600052603260045260246000fd5b60200101906001600160f81b031916908160001a905350611655600a866121ef565b94506115e7565b80516060908061167c575050604080516020810190915260008152919050565b6000600361168b8360026121d7565b61169591906121ef565b6116a0906004612203565b905060006116af8260206121d7565b6001600160401b038111156116d457634e487b7160e01b600052604160045260246000fd5b6040519080825280601f01601f1916602001820160405280156116fe576020820181803683370190505b50905060006040518060600160405280604081526020016124b7604091399050600181016020830160005b8681101561178a576003818a01810151603f601282901c8116860151600c83901c8216870151600684901c831688015192909316870151600891821b60ff94851601821b92841692909201901b91160160e01b835260049092019101611729565b5060038606600181146117a457600281146117b5576117c1565b613d3d60f01b6001198301526117c1565b603d60f81b6000198301525b505050918152949350505050565b826001600160a01b03166117e2826109d3565b6001600160a01b0316146118465760405162461bcd60e51b815260206004820152602560248201527f4552433732313a207472616e736665722066726f6d20696e636f72726563742060448201526437bbb732b960d91b60648201526084016105a9565b600090815260026020526040902080546001600160a01b0319166001600160a01b039290921691909117905550565b6001600160a01b038316610542576006805461010090046001600160801b03169060016118a1836122a0565b91906101000a8154816001600160801b0302191690836001600160801b0316021790555050505050565b816001600160a01b0316836001600160a01b0316141561192d5760405162461bcd60e51b815260206004820152601960248201527f4552433732313a20617070726f766520746f2063616c6c65720000000000000060448201526064016105a9565b6001600160a01b03838116600081815260046020908152604080832094871680845294825291829020805460ff191686151590811790915591519182527f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c3191016109c6565b82805461199e90612265565b90600052602060002090601f0160209004810192826119c05760008555611a06565b82601f106119d957805160ff1916838001178555611a06565b82800160010185558215611a06579182015b82811115611a065782518255916020019190600101906119eb565b50611a12929150611a16565b5090565b5b80821115611a125760008155600101611a17565b80356001600160a01b0381168114611a4257600080fd5b919050565b600060208284031215611a58578081fd5b611a6182611a2b565b9392505050565b60008060408385031215611a7a578081fd5b611a8383611a2b565b9150611a9160208401611a2b565b90509250929050565b600080600060608486031215611aae578081fd5b611ab784611a2b565b9250611ac560208501611a2b565b9150604084013590509250925092565b60008060008060808587031215611aea578081fd5b611af385611a2b565b9350611b0160208601611a2b565b92506040850135915060608501356001600160401b0380821115611b23578283fd5b818701915087601f830112611b36578283fd5b813581811115611b4857611b48612322565b604051601f8201601f19908116603f01168101908382118183101715611b7057611b70612322565b816040528281528a6020848701011115611b88578586fd5b82602086016020830137918201602001949094529598949750929550505050565b60008060408385031215611bbb578182fd5b611bc483611a2b565b915060208301358015158114611bd8578182fd5b809150509250929050565b60008060408385031215611bf5578182fd5b611bfe83611a2b565b946020939093013593505050565b600060208284031215611c1d578081fd5b8135611a6181612338565b600060208284031215611c39578081fd5b8151611a6181612338565b60008060208385031215611c56578182fd5b82356001600160401b0380821115611c6c578384fd5b818501915085601f830112611c7f578384fd5b813581811115611c8d578485fd5b866020828501011115611c9e578485fd5b60209290920196919550909350505050565b600060208284031215611cc1578081fd5b5035919050565b60008151808452611ce0816020860160208601612239565b601f01601f19169290920160200192915050565b8183823760009101908152919050565b60008351611d16818460208801612239565b835190830190611d2a818360208801612239565b7f3c2f746578743e3c7465787420783d223130302220793d223235302220636c6191019081527f73733d2262617365223e7d3c2f746578743e3c2f7376673e00000000000000006020820152603801949350505050565b600083516020611d948285838901612239565b8454918401918390600181811c9080831680611db157607f831692505b858310811415611dcf57634e487b7160e01b88526022600452602488fd5b808015611de35760018114611df457611e20565b60ff19851688528388019550611e20565b60008b815260209020895b85811015611e185781548a820152908401908801611dff565b505083880195505b50507f222c3c2f746578743e3c7465787420783d223133302220793d22313930222063845250507f6c6173733d2262617365223e227469636b223a22696e7363222c3c2f746578746020830152507f3e3c7465787420783d223133302220793d223232302220636c6173733d22626160408201526939b2911f1130b6ba111d60b11b6060820152606a019695505050505050565b7f7b226465736372697074696f6e223a2022494e533230206973206120736f636981527f616c206578706572696d656e742c206120666972737420617474656d7074207460208201527f6f20707261637469636520696e736372697074696f6e2077697468696e20746860408201527f652045564d2e222c2022696d616765223a2022646174613a696d6167652f737660608201526c19cade1b5b0ed8985cd94d8d0b609a1b608082015260008251611f7481608d850160208701612239565b61227d60f01b608d939091019283015250608f01919050565b7f7b2270223a22696e732d3230222c226f70223a227472616e73666572222c227481527234b1b5911d1124a729a191161130b6ba111d1160691b602082015260008251611fe1816033850160208701612239565b61227d60f01b6033939091019283015250603501919050565b7f646174613a6170706c69636174696f6e2f6a736f6e3b6261736536342c00000081526000825161203281601d850160208701612239565b91909101601d0192915050565b7f646174613a746578742f706c61696e3b636861727365743d7574662d3800000081528183601d83013760009101601d01908152919050565b7f646174613a746578742f706c61696e3b636861727365743d7574662d3800000081526000825161203281601d850160208701612239565b6001600160a01b03858116825284166020820152604081018390526080606082018190526000906120e390830184611cc8565b9695505050505050565b602081526000611a616020830184611cc8565b60208082526032908201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560408201527131b2b4bb32b91034b6b83632b6b2b73a32b960711b606082015260800190565b6020808252601c908201527f4e6f7420737570706f72742045524337323120616e79206d6f72652e00000000604082015260600190565b6020808252602e908201527f4552433732313a2063616c6c6572206973206e6f7420746f6b656e206f776e6560408201526d1c881b9bdc88185c1c1c9bdd995960921b606082015260800190565b600082198211156121ea576121ea6122f6565b500190565b6000826121fe576121fe61230c565b500490565b600081600019048311821515161561221d5761221d6122f6565b500290565b600082821015612234576122346122f6565b500390565b60005b8381101561225457818101518382015260200161223c565b83811115610c695750506000910152565b600181811c9082168061227957607f821691505b6020821081141561229a57634e487b7160e01b600052602260045260246000fd5b50919050565b60006001600160801b03808316818114156122bd576122bd6122f6565b6001019392505050565b60006000198214156122db576122db6122f6565b5060010190565b6000826122f1576122f161230c565b500690565b634e487b7160e01b600052601160045260246000fd5b634e487b7160e01b600052601260045260246000fd5b634e487b7160e01b600052604160045260246000fd5b6001600160e01b031981168114610deb57600080fdfe3c73766720786d6c6e733d22687474703a2f2f7777772e77332e6f72672f323030302f73766722207072657365727665417370656374526174696f3d22784d696e594d696e206d656574222076696577426f783d223020302033353020333530223e203c7374796c653e2e62617365207b2066696c6c3a2077686974653b20666f6e742d66616d696c793a2073657269663b20666f6e742d73697a653a20313470783b207d3c2f7374796c653e3c726563742077696474683d223130302522206865696768743d2231303025222066696c6c3d22626c61636b22202f3e3c7465787420783d223130302220793d223130302220636c6173733d2262617365223e7b3c2f746578743e3c7465787420783d223133302220793d223133302220636c6173733d2262617365223e2270223a22696e732d3230222c3c2f746578743e3c7465787420783d223133302220793d223136302220636c6173733d2262617365223e226f70223a224142434445464748494a4b4c4d4e4f505152535455565758595a6162636465666768696a6b6c6d6e6f707172737475767778797a303132333435363738392b2fa264697066735822122051397bbe092a73d3a1f6731383961f684b0d965680131dc6d47a3f6920d7c34564736f6c63430008040033
Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)
00000000000000000000000000000000000000000000000000000000000000800000000000000000000000000000000000000000000000000000000001406f4000000000000000000000000000000000000000000000000000000000000003e800000000000000000000000038480093ad3c093e973fff9f8f794204e557c16f0000000000000000000000000000000000000000000000000000000000000004494e534300000000000000000000000000000000000000000000000000000000
-----Decoded View---------------
Arg [0] : tick (string): INSC
Arg [1] : maxSupply_ (uint64): 21000000
Arg [2] : mintLimit_ (uint64): 1000
Arg [3] : proxy_ (address): 0x38480093ad3c093e973FFf9F8F794204E557c16F
-----Encoded View---------------
6 Constructor Arguments found :
Arg [0] : 0000000000000000000000000000000000000000000000000000000000000080
Arg [1] : 0000000000000000000000000000000000000000000000000000000001406f40
Arg [2] : 00000000000000000000000000000000000000000000000000000000000003e8
Arg [3] : 00000000000000000000000038480093ad3c093e973fff9f8f794204e557c16f
Arg [4] : 0000000000000000000000000000000000000000000000000000000000000004
Arg [5] : 494e534300000000000000000000000000000000000000000000000000000000
Loading...
Loading
Loading...
Loading
[ 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.