Source Code
Overview
ETH Balance
0 ETH
ETH Value
$0.00More Info
Private Name Tags
ContractCreator
TokenTracker
View more zero value Internal Transactions in Advanced View mode
Advanced mode:
Cross-Chain Transactions
Loading...
Loading
Contract Name:
IggyPostNft1155
Compiler Version
v0.8.17+commit.8df45f5f
Optimization Enabled:
Yes with 200 runs
Other Settings:
default evmVersion
Contract Source Code (Solidity Standard Json-Input format)
// SPDX-License-Identifier: GPL-3.0-or-later
pragma solidity ^0.8.17;
import { OwnableWithManagers } from "../access/OwnableWithManagers.sol";
import { ERC1155 } from "@openzeppelin/contracts/token/ERC1155/ERC1155.sol";
import { ReentrancyGuard } from "@openzeppelin/contracts/security/ReentrancyGuard.sol";
interface IIggyPostNftMetadata {
function getMetadata(
uint256 _tokenId,
string memory _postId,
address _author,
string memory _textPreview,
string memory _image,
uint256 _timestamp
) external view returns (string memory);
}
/// @title Iggy Social Post NFT
contract IggyPostNft1155 is ERC1155, OwnableWithManagers, ReentrancyGuard {
address public metadataAddress; // address of the metadata contract
address public minterAddress; // address of the minter contract
bool public postChangingDisabledForever = false; // if true, owner can no longer change text preview or image of a post
uint256 public counter = 1; // id counter, starts with 1
uint256 public defaultPrice; // default price for minting a post
uint256 public maxTextPreviewLength = 243; // max length of the text preview
string public name;
string public symbol;
struct Post {
uint256 tokenId;
string postId; // post id on Ceramic network
address author;
string textPreview; // usually a post has text, unless it's just an image
string image; // image URL (optional)
uint256 timestamp;
}
// post mappings
mapping (uint256 => Post) public getPost; // mapping from token id to post
mapping (string => mapping (address => uint256)) public getPostTokenId; // mapping (postId => mapping (authorAddress => tokenId))
// price mappings
mapping (address => uint256) public getAuthorsDefaultPrice; // mapping (authorAddress => price), if zero, use default price
mapping (string => mapping (address => uint256)) public getPriceForPost; // mapping (postId => mapping (authorAddress => price)), if zero, use author's default price
// post minting deadline (important: minting time starts when the first NFT of a post is minted)
mapping (string => mapping (address => uint256)) public getPostMintingTime; // mapping (postId => mapping (authorAddress => secondsToMint)), if zero, there's no deadline to mint
// events
event MintPost(address nftReceiver, string post, address author, uint256 quantity);
// constructor
constructor(
uint256 _defaultPrice,
address _metadataAddress,
string memory _name,
string memory _symbol
) ERC1155("") {
defaultPrice = _defaultPrice;
metadataAddress = _metadataAddress;
name = _name;
symbol = _symbol;
}
// READ
function doesPostExist(string memory _postId, address _authorId) external view returns (bool) {
return getPostTokenId[_postId][_authorId] != 0;
}
function getPostPrice(string memory _postId, address _author) external view returns (uint256) {
uint256 price = getPriceForPost[_postId][_author];
if (price == 0) {
price = getAuthorsDefaultPrice[_author];
if (price == 0) {
price = defaultPrice;
}
}
return price;
}
function uri(uint256 _tokenId) public view override returns (string memory) {
require(_tokenId < counter, "IggyPost: Token id does not exist");
Post memory post = getPost[_tokenId];
return IIggyPostNftMetadata(metadataAddress).getMetadata(
_tokenId,
post.postId,
post.author,
post.textPreview,
post.image,
post.timestamp
);
}
// WRITE
function authorSetDefaultPrice(uint256 _price) external {
getAuthorsDefaultPrice[_msgSender()] = _price;
}
function authorSetMintTime(string memory _postId, uint256 _secondsToMint) external {
getPostMintingTime[_postId][_msgSender()] = _secondsToMint;
}
function authorSetPostPrice(string memory _postId, uint256 _price) external {
getPriceForPost[_postId][_msgSender()] = _price;
}
/// @notice Mint a post NFT
function mint(
string memory _postId,
address _author,
address _nftReceiver,
string memory _textPreview,
string memory _image,
uint256 _quantity
) nonReentrant external returns(uint256 tokenId) {
require(_msgSender() == minterAddress, "IggyPost: Only minter can mint");
require(bytes(_textPreview).length <= maxTextPreviewLength, "IggyPost: Text preview is too long");
tokenId = getPostTokenId[_postId][_author];
if (tokenId == 0) {
tokenId = counter;
counter++;
getPostTokenId[_postId][_author] = tokenId;
getPost[tokenId] = Post(tokenId, _postId, _author, _textPreview, _image, block.timestamp);
}
// check if author has set up a mint time
uint256 mintTime = getPostMintingTime[_postId][_author];
if (mintTime != 0) {
require(block.timestamp <= (getPost[tokenId].timestamp + mintTime), "IggyPost: Minting deadline has passed");
}
_mint(_nftReceiver, tokenId, _quantity, "");
emit MintPost(_nftReceiver, _postId, _author, _quantity);
}
// OWNER
// change default price
function ownerChangeDefaultPrice(uint256 _newDefaultPrice) external onlyManagerOrOwner {
defaultPrice = _newDefaultPrice;
}
// owner can change image (if inappropiate)
function ownerChangeImage(uint256 _tokenId, string memory _newImage) external onlyManagerOrOwner {
require(_tokenId < counter, "IggyPost: Token id does not exist");
require(!postChangingDisabledForever, "IggyPost: Post changing is disabled forever");
getPost[_tokenId].image = _newImage;
}
// change metadata address
function ownerChangeMetadataAddress(address _newMetadataAddress) external onlyManagerOrOwner {
metadataAddress = _newMetadataAddress;
}
// change minter address
function ownerChangeMinterAddress(address _newMinterAddress) external onlyManagerOrOwner {
minterAddress = _newMinterAddress;
}
// owner can change text preview of a post
function ownerChangeTextPreview(uint256 _tokenId, string memory _newTextPreview) external onlyManagerOrOwner {
require(_tokenId < counter, "IggyPost: Token id does not exist");
require(!postChangingDisabledForever, "IggyPost: Post changing is disabled forever");
require(bytes(_newTextPreview).length <= maxTextPreviewLength, "IggyPost: Text preview is too long");
getPost[_tokenId].textPreview = _newTextPreview;
}
// change text preview length
function ownerChangeMaxTextPreviewLength(uint256 _newMaxTextPreviewLength) external onlyManagerOrOwner {
maxTextPreviewLength = _newMaxTextPreviewLength;
}
// owner disable post changing forever (this action is irreversible!)
function ownerDisablePostChangingForever() external onlyOwner {
postChangingDisabledForever = true;
}
}// SPDX-License-Identifier: GPL-3.0-or-later
pragma solidity 0.8.17;
import { Ownable } from "@openzeppelin/contracts/access/Ownable.sol";
/**
@title Extended Ownable contract with managers functionality
@author Tempe Techie
*/
abstract contract OwnableWithManagers is Ownable {
address[] public managers; // array of managers
mapping (address => bool) public isManager; // mapping of managers
// MODIFIERS
modifier onlyManagerOrOwner() {
require(isManager[msg.sender] || msg.sender == owner(), "OwnableWithManagers: caller is not a manager or owner");
_;
}
// EVENTS
event ManagerAdd(address indexed owner_, address indexed manager_);
event ManagerRemove(address indexed owner_, address indexed manager_);
// READ
function getManagers() external view returns (address[] memory) {
return managers;
}
function getManagersLength() external view returns (uint256) {
return managers.length;
}
// MANAGER
function removeYourselfAsManager() external onlyManagerOrOwner {
address manager_ = msg.sender;
isManager[manager_] = false;
uint256 length = managers.length;
for (uint256 i = 0; i < length;) {
if (managers[i] == manager_) {
managers[i] = managers[length - 1];
managers.pop();
emit ManagerRemove(msg.sender, manager_);
return;
}
unchecked {
i++;
}
}
}
// OWNER
function addManager(address manager_) external onlyOwner {
require(!isManager[manager_], "OwnableWithManagers: manager already added");
isManager[manager_] = true;
managers.push(manager_);
emit ManagerAdd(msg.sender, manager_);
}
function removeManagerByAddress(address manager_) external onlyOwner {
isManager[manager_] = false;
uint256 length = managers.length;
for (uint256 i = 0; i < length;) {
if (managers[i] == manager_) {
managers[i] = managers[length - 1];
managers.pop();
emit ManagerRemove(msg.sender, manager_);
return;
}
unchecked {
i++;
}
}
}
function removeManagerByIndex(uint256 index_) external onlyOwner {
emit ManagerRemove(msg.sender, managers[index_]);
isManager[managers[index_]] = false;
managers[index_] = managers[managers.length - 1];
managers.pop();
}
}// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.9.0-rc.0) (security/ReentrancyGuard.sol)
pragma solidity ^0.8.0;
/**
* @dev Contract module that helps prevent reentrant calls to a function.
*
* Inheriting from `ReentrancyGuard` will make the {nonReentrant} modifier
* available, which can be applied to functions to make sure there are no nested
* (reentrant) calls to them.
*
* Note that because there is a single `nonReentrant` guard, functions marked as
* `nonReentrant` may not call one another. This can be worked around by making
* those functions `private`, and then adding `external` `nonReentrant` entry
* points to them.
*
* TIP: If you would like to learn more about reentrancy and alternative ways
* to protect against it, check out our blog post
* https://blog.openzeppelin.com/reentrancy-after-istanbul/[Reentrancy After Istanbul].
*/
abstract contract ReentrancyGuard {
// Booleans are more expensive than uint256 or any type that takes up a full
// word because each write operation emits an extra SLOAD to first read the
// slot's contents, replace the bits taken up by the boolean, and then write
// back. This is the compiler's defense against contract upgrades and
// pointer aliasing, and it cannot be disabled.
// The values being non-zero value makes deployment a bit more expensive,
// but in exchange the refund on every call to nonReentrant will be lower in
// amount. Since refunds are capped to a percentage of the total
// transaction's gas, it is best to keep them low in cases like this one, to
// increase the likelihood of the full refund coming into effect.
uint256 private constant _NOT_ENTERED = 1;
uint256 private constant _ENTERED = 2;
uint256 private _status;
constructor() {
_status = _NOT_ENTERED;
}
/**
* @dev Prevents a contract from calling itself, directly or indirectly.
* Calling a `nonReentrant` function from another `nonReentrant`
* function is not supported. It is possible to prevent this from happening
* by making the `nonReentrant` function external, and making it call a
* `private` function that does the actual work.
*/
modifier nonReentrant() {
_nonReentrantBefore();
_;
_nonReentrantAfter();
}
function _nonReentrantBefore() private {
// On the first call to nonReentrant, _status will be _NOT_ENTERED
require(_status != _ENTERED, "ReentrancyGuard: reentrant call");
// Any calls to nonReentrant after this point will fail
_status = _ENTERED;
}
function _nonReentrantAfter() private {
// By storing the original value once again, a refund is triggered (see
// https://eips.ethereum.org/EIPS/eip-2200)
_status = _NOT_ENTERED;
}
/**
* @dev Returns true if the reentrancy guard is currently set to "entered", which indicates there is a
* `nonReentrant` function in the call stack.
*/
function _reentrancyGuardEntered() internal view returns (bool) {
return _status == _ENTERED;
}
}// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.9.0-rc.0) (token/ERC1155/ERC1155.sol)
pragma solidity ^0.8.0;
import "./IERC1155.sol";
import "./IERC1155Receiver.sol";
import "./extensions/IERC1155MetadataURI.sol";
import "../../utils/Address.sol";
import "../../utils/Context.sol";
import "../../utils/introspection/ERC165.sol";
/**
* @dev Implementation of the basic standard multi-token.
* See https://eips.ethereum.org/EIPS/eip-1155
* Originally based on code by Enjin: https://github.com/enjin/erc-1155
*
* _Available since v3.1._
*/
contract ERC1155 is Context, ERC165, IERC1155, IERC1155MetadataURI {
using Address for address;
// Mapping from token ID to account balances
mapping(uint256 => mapping(address => uint256)) private _balances;
// Mapping from account to operator approvals
mapping(address => mapping(address => bool)) private _operatorApprovals;
// Used as the URI for all token types by relying on ID substitution, e.g. https://token-cdn-domain/{id}.json
string private _uri;
/**
* @dev See {_setURI}.
*/
constructor(string memory uri_) {
_setURI(uri_);
}
/**
* @dev See {IERC165-supportsInterface}.
*/
function supportsInterface(bytes4 interfaceId) public view virtual override(ERC165, IERC165) returns (bool) {
return
interfaceId == type(IERC1155).interfaceId ||
interfaceId == type(IERC1155MetadataURI).interfaceId ||
super.supportsInterface(interfaceId);
}
/**
* @dev See {IERC1155MetadataURI-uri}.
*
* This implementation returns the same URI for *all* token types. It relies
* on the token type ID substitution mechanism
* https://eips.ethereum.org/EIPS/eip-1155#metadata[defined in the EIP].
*
* Clients calling this function must replace the `\{id\}` substring with the
* actual token type ID.
*/
function uri(uint256) public view virtual override returns (string memory) {
return _uri;
}
/**
* @dev See {IERC1155-balanceOf}.
*
* Requirements:
*
* - `account` cannot be the zero address.
*/
function balanceOf(address account, uint256 id) public view virtual override returns (uint256) {
require(account != address(0), "ERC1155: address zero is not a valid owner");
return _balances[id][account];
}
/**
* @dev See {IERC1155-balanceOfBatch}.
*
* Requirements:
*
* - `accounts` and `ids` must have the same length.
*/
function balanceOfBatch(
address[] memory accounts,
uint256[] memory ids
) public view virtual override returns (uint256[] memory) {
require(accounts.length == ids.length, "ERC1155: accounts and ids length mismatch");
uint256[] memory batchBalances = new uint256[](accounts.length);
for (uint256 i = 0; i < accounts.length; ++i) {
batchBalances[i] = balanceOf(accounts[i], ids[i]);
}
return batchBalances;
}
/**
* @dev See {IERC1155-setApprovalForAll}.
*/
function setApprovalForAll(address operator, bool approved) public virtual override {
_setApprovalForAll(_msgSender(), operator, approved);
}
/**
* @dev See {IERC1155-isApprovedForAll}.
*/
function isApprovedForAll(address account, address operator) public view virtual override returns (bool) {
return _operatorApprovals[account][operator];
}
/**
* @dev See {IERC1155-safeTransferFrom}.
*/
function safeTransferFrom(
address from,
address to,
uint256 id,
uint256 amount,
bytes memory data
) public virtual override {
require(
from == _msgSender() || isApprovedForAll(from, _msgSender()),
"ERC1155: caller is not token owner or approved"
);
_safeTransferFrom(from, to, id, amount, data);
}
/**
* @dev See {IERC1155-safeBatchTransferFrom}.
*/
function safeBatchTransferFrom(
address from,
address to,
uint256[] memory ids,
uint256[] memory amounts,
bytes memory data
) public virtual override {
require(
from == _msgSender() || isApprovedForAll(from, _msgSender()),
"ERC1155: caller is not token owner or approved"
);
_safeBatchTransferFrom(from, to, ids, amounts, data);
}
/**
* @dev Transfers `amount` tokens of token type `id` from `from` to `to`.
*
* Emits a {TransferSingle} event.
*
* Requirements:
*
* - `to` cannot be the zero address.
* - `from` must have a balance of tokens of type `id` of at least `amount`.
* - If `to` refers to a smart contract, it must implement {IERC1155Receiver-onERC1155Received} and return the
* acceptance magic value.
*/
function _safeTransferFrom(
address from,
address to,
uint256 id,
uint256 amount,
bytes memory data
) internal virtual {
require(to != address(0), "ERC1155: transfer to the zero address");
address operator = _msgSender();
uint256[] memory ids = _asSingletonArray(id);
uint256[] memory amounts = _asSingletonArray(amount);
_beforeTokenTransfer(operator, from, to, ids, amounts, data);
uint256 fromBalance = _balances[id][from];
require(fromBalance >= amount, "ERC1155: insufficient balance for transfer");
unchecked {
_balances[id][from] = fromBalance - amount;
}
_balances[id][to] += amount;
emit TransferSingle(operator, from, to, id, amount);
_afterTokenTransfer(operator, from, to, ids, amounts, data);
_doSafeTransferAcceptanceCheck(operator, from, to, id, amount, data);
}
/**
* @dev xref:ROOT:erc1155.adoc#batch-operations[Batched] version of {_safeTransferFrom}.
*
* Emits a {TransferBatch} event.
*
* Requirements:
*
* - If `to` refers to a smart contract, it must implement {IERC1155Receiver-onERC1155BatchReceived} and return the
* acceptance magic value.
*/
function _safeBatchTransferFrom(
address from,
address to,
uint256[] memory ids,
uint256[] memory amounts,
bytes memory data
) internal virtual {
require(ids.length == amounts.length, "ERC1155: ids and amounts length mismatch");
require(to != address(0), "ERC1155: transfer to the zero address");
address operator = _msgSender();
_beforeTokenTransfer(operator, from, to, ids, amounts, data);
for (uint256 i = 0; i < ids.length; ++i) {
uint256 id = ids[i];
uint256 amount = amounts[i];
uint256 fromBalance = _balances[id][from];
require(fromBalance >= amount, "ERC1155: insufficient balance for transfer");
unchecked {
_balances[id][from] = fromBalance - amount;
}
_balances[id][to] += amount;
}
emit TransferBatch(operator, from, to, ids, amounts);
_afterTokenTransfer(operator, from, to, ids, amounts, data);
_doSafeBatchTransferAcceptanceCheck(operator, from, to, ids, amounts, data);
}
/**
* @dev Sets a new URI for all token types, by relying on the token type ID
* substitution mechanism
* https://eips.ethereum.org/EIPS/eip-1155#metadata[defined in the EIP].
*
* By this mechanism, any occurrence of the `\{id\}` substring in either the
* URI or any of the amounts in the JSON file at said URI will be replaced by
* clients with the token type ID.
*
* For example, the `https://token-cdn-domain/\{id\}.json` URI would be
* interpreted by clients as
* `https://token-cdn-domain/000000000000000000000000000000000000000000000000000000000004cce0.json`
* for token type ID 0x4cce0.
*
* See {uri}.
*
* Because these URIs cannot be meaningfully represented by the {URI} event,
* this function emits no events.
*/
function _setURI(string memory newuri) internal virtual {
_uri = newuri;
}
/**
* @dev Creates `amount` tokens of token type `id`, and assigns them to `to`.
*
* Emits a {TransferSingle} event.
*
* Requirements:
*
* - `to` cannot be the zero address.
* - If `to` refers to a smart contract, it must implement {IERC1155Receiver-onERC1155Received} and return the
* acceptance magic value.
*/
function _mint(address to, uint256 id, uint256 amount, bytes memory data) internal virtual {
require(to != address(0), "ERC1155: mint to the zero address");
address operator = _msgSender();
uint256[] memory ids = _asSingletonArray(id);
uint256[] memory amounts = _asSingletonArray(amount);
_beforeTokenTransfer(operator, address(0), to, ids, amounts, data);
_balances[id][to] += amount;
emit TransferSingle(operator, address(0), to, id, amount);
_afterTokenTransfer(operator, address(0), to, ids, amounts, data);
_doSafeTransferAcceptanceCheck(operator, address(0), to, id, amount, data);
}
/**
* @dev xref:ROOT:erc1155.adoc#batch-operations[Batched] version of {_mint}.
*
* 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 _mintBatch(
address to,
uint256[] memory ids,
uint256[] memory amounts,
bytes memory data
) internal virtual {
require(to != address(0), "ERC1155: mint to the zero address");
require(ids.length == amounts.length, "ERC1155: ids and amounts length mismatch");
address operator = _msgSender();
_beforeTokenTransfer(operator, address(0), to, ids, amounts, data);
for (uint256 i = 0; i < ids.length; i++) {
_balances[ids[i]][to] += amounts[i];
}
emit TransferBatch(operator, address(0), to, ids, amounts);
_afterTokenTransfer(operator, address(0), to, ids, amounts, data);
_doSafeBatchTransferAcceptanceCheck(operator, address(0), to, ids, amounts, data);
}
/**
* @dev Destroys `amount` tokens of token type `id` from `from`
*
* Emits a {TransferSingle} event.
*
* Requirements:
*
* - `from` cannot be the zero address.
* - `from` must have at least `amount` tokens of token type `id`.
*/
function _burn(address from, uint256 id, uint256 amount) internal virtual {
require(from != address(0), "ERC1155: burn from the zero address");
address operator = _msgSender();
uint256[] memory ids = _asSingletonArray(id);
uint256[] memory amounts = _asSingletonArray(amount);
_beforeTokenTransfer(operator, from, address(0), ids, amounts, "");
uint256 fromBalance = _balances[id][from];
require(fromBalance >= amount, "ERC1155: burn amount exceeds balance");
unchecked {
_balances[id][from] = fromBalance - amount;
}
emit TransferSingle(operator, from, address(0), id, amount);
_afterTokenTransfer(operator, from, address(0), ids, amounts, "");
}
/**
* @dev xref:ROOT:erc1155.adoc#batch-operations[Batched] version of {_burn}.
*
* Emits a {TransferBatch} event.
*
* Requirements:
*
* - `ids` and `amounts` must have the same length.
*/
function _burnBatch(address from, uint256[] memory ids, uint256[] memory amounts) internal virtual {
require(from != address(0), "ERC1155: burn from the zero address");
require(ids.length == amounts.length, "ERC1155: ids and amounts length mismatch");
address operator = _msgSender();
_beforeTokenTransfer(operator, from, address(0), ids, amounts, "");
for (uint256 i = 0; i < ids.length; i++) {
uint256 id = ids[i];
uint256 amount = amounts[i];
uint256 fromBalance = _balances[id][from];
require(fromBalance >= amount, "ERC1155: burn amount exceeds balance");
unchecked {
_balances[id][from] = fromBalance - amount;
}
}
emit TransferBatch(operator, from, address(0), ids, amounts);
_afterTokenTransfer(operator, from, address(0), ids, amounts, "");
}
/**
* @dev Approve `operator` to operate on all of `owner` tokens
*
* Emits an {ApprovalForAll} event.
*/
function _setApprovalForAll(address owner, address operator, bool approved) internal virtual {
require(owner != operator, "ERC1155: setting approval status for self");
_operatorApprovals[owner][operator] = approved;
emit ApprovalForAll(owner, operator, approved);
}
/**
* @dev Hook that is called before any token transfer. This includes minting
* and burning, as well as batched variants.
*
* The same hook is called on both single and batched variants. For single
* transfers, the length of the `ids` and `amounts` arrays will be 1.
*
* Calling conditions (for each `id` and `amount` pair):
*
* - When `from` and `to` are both non-zero, `amount` of ``from``'s tokens
* of token type `id` will be transferred to `to`.
* - When `from` is zero, `amount` tokens of token type `id` will be minted
* for `to`.
* - when `to` is zero, `amount` of ``from``'s tokens of token type `id`
* will be burned.
* - `from` and `to` are never both zero.
* - `ids` and `amounts` have the same, non-zero length.
*
* To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks].
*/
function _beforeTokenTransfer(
address operator,
address from,
address to,
uint256[] memory ids,
uint256[] memory amounts,
bytes memory data
) internal virtual {}
/**
* @dev Hook that is called after any token transfer. This includes minting
* and burning, as well as batched variants.
*
* The same hook is called on both single and batched variants. For single
* transfers, the length of the `id` and `amount` arrays will be 1.
*
* Calling conditions (for each `id` and `amount` pair):
*
* - When `from` and `to` are both non-zero, `amount` of ``from``'s tokens
* of token type `id` will be transferred to `to`.
* - When `from` is zero, `amount` tokens of token type `id` will be minted
* for `to`.
* - when `to` is zero, `amount` of ``from``'s tokens of token type `id`
* will be burned.
* - `from` and `to` are never both zero.
* - `ids` and `amounts` have the same, non-zero length.
*
* To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks].
*/
function _afterTokenTransfer(
address operator,
address from,
address to,
uint256[] memory ids,
uint256[] memory amounts,
bytes memory data
) internal virtual {}
function _doSafeTransferAcceptanceCheck(
address operator,
address from,
address to,
uint256 id,
uint256 amount,
bytes memory data
) private {
if (to.isContract()) {
try IERC1155Receiver(to).onERC1155Received(operator, from, id, amount, data) returns (bytes4 response) {
if (response != IERC1155Receiver.onERC1155Received.selector) {
revert("ERC1155: ERC1155Receiver rejected tokens");
}
} catch Error(string memory reason) {
revert(reason);
} catch {
revert("ERC1155: transfer to non-ERC1155Receiver implementer");
}
}
}
function _doSafeBatchTransferAcceptanceCheck(
address operator,
address from,
address to,
uint256[] memory ids,
uint256[] memory amounts,
bytes memory data
) private {
if (to.isContract()) {
try IERC1155Receiver(to).onERC1155BatchReceived(operator, from, ids, amounts, data) returns (
bytes4 response
) {
if (response != IERC1155Receiver.onERC1155BatchReceived.selector) {
revert("ERC1155: ERC1155Receiver rejected tokens");
}
} catch Error(string memory reason) {
revert(reason);
} catch {
revert("ERC1155: transfer to non-ERC1155Receiver implementer");
}
}
}
function _asSingletonArray(uint256 element) private pure returns (uint256[] memory) {
uint256[] memory array = new uint256[](1);
array[0] = element;
return array;
}
}// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.9.0-rc.0) (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 Throws if called by any account other than the owner.
*/
modifier onlyOwner() {
_checkOwner();
_;
}
/**
* @dev Returns the address of the current owner.
*/
function owner() public view virtual returns (address) {
return _owner;
}
/**
* @dev Throws if the sender is not the owner.
*/
function _checkOwner() internal view virtual {
require(owner() == _msgSender(), "Ownable: caller is not the owner");
}
/**
* @dev Leaves the contract without owner. It will not be possible to call
* `onlyOwner` functions. Can only be called by the current owner.
*
* NOTE: Renouncing ownership will leave the contract without an owner,
* thereby disabling any functionality that is only available to the owner.
*/
function renounceOwnership() public virtual onlyOwner {
_transferOwnership(address(0));
}
/**
* @dev Transfers ownership of the contract to a new account (`newOwner`).
* Can only be called by the current owner.
*/
function transferOwnership(address newOwner) public virtual onlyOwner {
require(newOwner != address(0), "Ownable: new owner is the zero address");
_transferOwnership(newOwner);
}
/**
* @dev Transfers ownership of the contract to a new account (`newOwner`).
* Internal function without access restriction.
*/
function _transferOwnership(address newOwner) internal virtual {
address oldOwner = _owner;
_owner = newOwner;
emit OwnershipTransferred(oldOwner, newOwner);
}
}// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (utils/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 (last updated v4.9.0-rc.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
*
* Furthermore, `isContract` will also return true if the target contract within
* the same transaction is already scheduled for destruction by `SELFDESTRUCT`,
* which only has an effect at the end of a transaction.
* ====
*
* [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://consensys.net/diligence/blog/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.8.0/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 functionCallWithValue(target, data, 0, "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");
(bool success, bytes memory returndata) = target.call{value: value}(data);
return verifyCallResultFromTarget(target, 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) {
(bool success, bytes memory returndata) = target.staticcall(data);
return verifyCallResultFromTarget(target, 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) {
(bool success, bytes memory returndata) = target.delegatecall(data);
return verifyCallResultFromTarget(target, success, returndata, errorMessage);
}
/**
* @dev Tool to verify that a low level call to smart-contract was successful, and revert (either by bubbling
* the revert reason or using the provided one) in case of unsuccessful call or if target was not a contract.
*
* _Available since v4.8._
*/
function verifyCallResultFromTarget(
address target,
bool success,
bytes memory returndata,
string memory errorMessage
) internal view returns (bytes memory) {
if (success) {
if (returndata.length == 0) {
// only check isContract if the call was successful and the return data is empty
// otherwise we already know that it was a contract
require(isContract(target), "Address: call to non-contract");
}
return returndata;
} else {
_revert(returndata, errorMessage);
}
}
/**
* @dev Tool to verify that a low level call was successful, and revert if it wasn't, either by bubbling the
* revert reason or 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 {
_revert(returndata, errorMessage);
}
}
function _revert(bytes memory returndata, string memory errorMessage) private pure {
// 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 (last updated v4.5.0) (token/ERC1155/IERC1155Receiver.sol)
pragma solidity ^0.8.0;
import "../../utils/introspection/IERC165.sol";
/**
* @dev _Available since v3.1._
*/
interface IERC1155Receiver is IERC165 {
/**
* @dev Handles the receipt of a single ERC1155 token type. This function is
* called at the end of a `safeTransferFrom` after the balance has been updated.
*
* NOTE: To accept the transfer, this must return
* `bytes4(keccak256("onERC1155Received(address,address,uint256,uint256,bytes)"))`
* (i.e. 0xf23a6e61, or its own function selector).
*
* @param operator The address which initiated the transfer (i.e. msg.sender)
* @param from The address which previously owned the token
* @param id The ID of the token being transferred
* @param value The amount of tokens being transferred
* @param data Additional data with no specified format
* @return `bytes4(keccak256("onERC1155Received(address,address,uint256,uint256,bytes)"))` if transfer is allowed
*/
function onERC1155Received(
address operator,
address from,
uint256 id,
uint256 value,
bytes calldata data
) external returns (bytes4);
/**
* @dev Handles the receipt of a multiple ERC1155 token types. This function
* is called at the end of a `safeBatchTransferFrom` after the balances have
* been updated.
*
* NOTE: To accept the transfer(s), this must return
* `bytes4(keccak256("onERC1155BatchReceived(address,address,uint256[],uint256[],bytes)"))`
* (i.e. 0xbc197c81, or its own function selector).
*
* @param operator The address which initiated the batch transfer (i.e. msg.sender)
* @param from The address which previously owned the token
* @param ids An array containing ids of each token being transferred (order and length must match values array)
* @param values An array containing amounts of each token being transferred (order and length must match ids array)
* @param data Additional data with no specified format
* @return `bytes4(keccak256("onERC1155BatchReceived(address,address,uint256[],uint256[],bytes)"))` if transfer is allowed
*/
function onERC1155BatchReceived(
address operator,
address from,
uint256[] calldata ids,
uint256[] calldata values,
bytes calldata data
) external returns (bytes4);
}// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (token/ERC1155/extensions/IERC1155MetadataURI.sol)
pragma solidity ^0.8.0;
import "../IERC1155.sol";
/**
* @dev Interface of the optional ERC1155MetadataExtension interface, as defined
* in the https://eips.ethereum.org/EIPS/eip-1155#metadata-extensions[EIP].
*
* _Available since v3.1._
*/
interface IERC1155MetadataURI is IERC1155 {
/**
* @dev Returns the URI for token type `id`.
*
* If the `\{id\}` substring is present in the URI, it must be replaced by
* clients with the actual token type ID.
*/
function uri(uint256 id) external view returns (string memory);
}// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.9.0-rc.0) (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 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 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);
}{
"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
Contract ABI
API[{"inputs":[{"internalType":"uint256","name":"_defaultPrice","type":"uint256"},{"internalType":"address","name":"_metadataAddress","type":"address"},{"internalType":"string","name":"_name","type":"string"},{"internalType":"string","name":"_symbol","type":"string"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"account","type":"address"},{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":false,"internalType":"bool","name":"approved","type":"bool"}],"name":"ApprovalForAll","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner_","type":"address"},{"indexed":true,"internalType":"address","name":"manager_","type":"address"}],"name":"ManagerAdd","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner_","type":"address"},{"indexed":true,"internalType":"address","name":"manager_","type":"address"}],"name":"ManagerRemove","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"nftReceiver","type":"address"},{"indexed":false,"internalType":"string","name":"post","type":"string"},{"indexed":false,"internalType":"address","name":"author","type":"address"},{"indexed":false,"internalType":"uint256","name":"quantity","type":"uint256"}],"name":"MintPost","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":false,"internalType":"uint256[]","name":"ids","type":"uint256[]"},{"indexed":false,"internalType":"uint256[]","name":"values","type":"uint256[]"}],"name":"TransferBatch","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":false,"internalType":"uint256","name":"id","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"value","type":"uint256"}],"name":"TransferSingle","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"string","name":"value","type":"string"},{"indexed":true,"internalType":"uint256","name":"id","type":"uint256"}],"name":"URI","type":"event"},{"inputs":[{"internalType":"address","name":"manager_","type":"address"}],"name":"addManager","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_price","type":"uint256"}],"name":"authorSetDefaultPrice","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"_postId","type":"string"},{"internalType":"uint256","name":"_secondsToMint","type":"uint256"}],"name":"authorSetMintTime","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"_postId","type":"string"},{"internalType":"uint256","name":"_price","type":"uint256"}],"name":"authorSetPostPrice","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"},{"internalType":"uint256","name":"id","type":"uint256"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address[]","name":"accounts","type":"address[]"},{"internalType":"uint256[]","name":"ids","type":"uint256[]"}],"name":"balanceOfBatch","outputs":[{"internalType":"uint256[]","name":"","type":"uint256[]"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"counter","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"defaultPrice","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"string","name":"_postId","type":"string"},{"internalType":"address","name":"_authorId","type":"address"}],"name":"doesPostExist","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"getAuthorsDefaultPrice","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getManagers","outputs":[{"internalType":"address[]","name":"","type":"address[]"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getManagersLength","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"getPost","outputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"string","name":"postId","type":"string"},{"internalType":"address","name":"author","type":"address"},{"internalType":"string","name":"textPreview","type":"string"},{"internalType":"string","name":"image","type":"string"},{"internalType":"uint256","name":"timestamp","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"string","name":"","type":"string"},{"internalType":"address","name":"","type":"address"}],"name":"getPostMintingTime","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"string","name":"_postId","type":"string"},{"internalType":"address","name":"_author","type":"address"}],"name":"getPostPrice","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"string","name":"","type":"string"},{"internalType":"address","name":"","type":"address"}],"name":"getPostTokenId","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"string","name":"","type":"string"},{"internalType":"address","name":"","type":"address"}],"name":"getPriceForPost","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"},{"internalType":"address","name":"operator","type":"address"}],"name":"isApprovedForAll","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"isManager","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"managers","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"maxTextPreviewLength","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"metadataAddress","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"string","name":"_postId","type":"string"},{"internalType":"address","name":"_author","type":"address"},{"internalType":"address","name":"_nftReceiver","type":"address"},{"internalType":"string","name":"_textPreview","type":"string"},{"internalType":"string","name":"_image","type":"string"},{"internalType":"uint256","name":"_quantity","type":"uint256"}],"name":"mint","outputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"minterAddress","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_newDefaultPrice","type":"uint256"}],"name":"ownerChangeDefaultPrice","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_tokenId","type":"uint256"},{"internalType":"string","name":"_newImage","type":"string"}],"name":"ownerChangeImage","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_newMaxTextPreviewLength","type":"uint256"}],"name":"ownerChangeMaxTextPreviewLength","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_newMetadataAddress","type":"address"}],"name":"ownerChangeMetadataAddress","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_newMinterAddress","type":"address"}],"name":"ownerChangeMinterAddress","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_tokenId","type":"uint256"},{"internalType":"string","name":"_newTextPreview","type":"string"}],"name":"ownerChangeTextPreview","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"ownerDisablePostChangingForever","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"postChangingDisabledForever","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"manager_","type":"address"}],"name":"removeManagerByAddress","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"index_","type":"uint256"}],"name":"removeManagerByIndex","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"removeYourselfAsManager","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256[]","name":"ids","type":"uint256[]"},{"internalType":"uint256[]","name":"amounts","type":"uint256[]"},{"internalType":"bytes","name":"data","type":"bytes"}],"name":"safeBatchTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"id","type":"uint256"},{"internalType":"uint256","name":"amount","type":"uint256"},{"internalType":"bytes","name":"data","type":"bytes"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"operator","type":"address"},{"internalType":"bool","name":"approved","type":"bool"}],"name":"setApprovalForAll","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes4","name":"interfaceId","type":"bytes4"}],"name":"supportsInterface","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_tokenId","type":"uint256"}],"name":"uri","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"}]Contract Creation Code
60806040526008805460ff60a01b19169055600160095560f3600b553480156200002857600080fd5b506040516200351b3803806200351b8339810160408190526200004b91620001e7565b6040805160208101909152600081526200006581620000be565b506200007133620000d0565b6001600655600a849055600780546001600160a01b0319166001600160a01b038516179055600c620000a483826200030b565b50600d620000b382826200030b565b5050505050620003d7565b6002620000cc82826200030b565b5050565b600380546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b634e487b7160e01b600052604160045260246000fd5b600082601f8301126200014a57600080fd5b81516001600160401b038082111562000167576200016762000122565b604051601f8301601f19908116603f0116810190828211818310171562000192576200019262000122565b81604052838152602092508683858801011115620001af57600080fd5b600091505b83821015620001d35785820183015181830184015290820190620001b4565b600093810190920192909252949350505050565b60008060008060808587031215620001fe57600080fd5b845160208601519094506001600160a01b03811681146200021e57600080fd5b60408601519093506001600160401b03808211156200023c57600080fd5b6200024a8883890162000138565b935060608701519150808211156200026157600080fd5b50620002708782880162000138565b91505092959194509250565b600181811c908216806200029157607f821691505b602082108103620002b257634e487b7160e01b600052602260045260246000fd5b50919050565b601f8211156200030657600081815260208120601f850160051c81016020861015620002e15750805b601f850160051c820191505b818110156200030257828155600101620002ed565b5050505b505050565b81516001600160401b0381111562000327576200032762000122565b6200033f816200033884546200027c565b84620002b8565b602080601f8311600181146200037757600084156200035e5750858301515b600019600386901b1c1916600185901b17855562000302565b600085815260208120601f198616915b82811015620003a85788860151825594840194600190910190840162000387565b5085821015620003c75787850151600019600388901b60f8161c191681555b5050505050600190811b01905550565b61313480620003e76000396000f3fe608060405234801561001057600080fd5b506004361061027e5760003560e01c8063641427071161015c578063b442a657116100ce578063e69e04b311610087578063e69e04b31461060e578063e985e9c514610617578063f242432a14610653578063f2fde38b14610666578063f3ae241514610679578063f883a6961461069c57600080fd5b8063b442a657146105b2578063b7002309146105c5578063c11e432f146105cd578063c8fa0220146105e0578063d570fb34146105f3578063dd443eb8146105fb57600080fd5b80637e8e98d7116101205780637e8e98d71461053e5780638c024af41461055e5780638da5cb5b1461057157806395d89b4114610582578063a22cb4651461058a578063a8d088bb1461059d57600080fd5b806364142707146104d757806368ce31b0146105125780636eb3500d1461051b578063715018a61461052e57806376f5653f1461053657600080fd5b806326fcecbb116101f557806340731c24116101b957806340731c2414610450578063482968dd146104755780634e1273f41461048857806357c294d8146104a85780635ab5de8a146104bb57806361bc221a146104ce57600080fd5b806326fcecbb146103cc5780632d06177a146103ec5780632eb2c2d6146103ff57806334d722c9146104125780633d39c2601461043d57600080fd5b80630e89341c116102475780630e89341c146103315780630ed40992146103445780631228be05146103575780631b61bd8f146103925780631f1763e2146103a657806320fd1808146103b957600080fd5b8062fdd58e1461028357806301ffc9a7146102a957806306fdde03146102cc57806308305e9f146102e157806309bade96146102f6575b600080fd5b610296610291366004612397565b6106af565b6040519081526020015b60405180910390f35b6102bc6102b73660046123d7565b610748565b60405190151581526020016102a0565b6102d4610798565b6040516102a09190612444565b6102f46102ef366004612457565b610826565b005b610296610304366004612535565b8151602081840181018051600f825292820194820194909420919093529091526000908152604090205481565b6102d461033f366004612457565b61086f565b6102f4610352366004612582565b610b30565b610296610365366004612535565b81516020818401810180516011825292820194820194909420919093529091526000908152604090205481565b6008546102bc90600160a01b900460ff1681565b6102bc6103b4366004612535565b610b76565b6102966103c7366004612535565b610bb9565b6102966103da3660046125c6565b60106020526000908152604090205481565b6102f46103fa3660046125c6565b610c27565b6102f461040d366004612675565b610d38565b600854610425906001600160a01b031681565b6040516001600160a01b0390911681526020016102a0565b61042561044b366004612457565b610d84565b61046361045e366004612457565b610dae565b6040516102a09695949392919061271e565b6102f4610483366004612780565b610f8a565b61049b6104963660046127c6565b611039565b6040516102a091906128c1565b6102966104b63660046128d4565b611162565b6102f46104c93660046125c6565b611454565b61029660095481565b6102966104e5366004612535565b81516020818401810180516012825292820194820194909420919093529091526000908152604090205481565b610296600b5481565b600754610425906001600160a01b031681565b6102f46115b1565b6102f46115c5565b6102f461054c366004612457565b33600090815260106020526040902055565b6102f461056c366004612457565b6115e2565b6003546001600160a01b0316610425565b6102d461162b565b6102f4610598366004612985565b611638565b6105a5611647565b6040516102a091906129c1565b6102f46105c0366004612582565b6116a9565b6102f46116ba565b6102f46105db366004612780565b61176e565b6102f46105ee3660046125c6565b61183b565b600454610296565b6102f46106093660046125c6565b6118a1565b610296600a5481565b6102bc610625366004612a0e565b6001600160a01b03918216600090815260016020908152604080832093909416825291909152205460ff1690565b6102f4610661366004612a38565b611907565b6102f46106743660046125c6565b61194c565b6102bc6106873660046125c6565b60056020526000908152604090205460ff1681565b6102f46106aa366004612457565b6119c2565b60006001600160a01b03831661071f5760405162461bcd60e51b815260206004820152602a60248201527f455243313135353a2061646472657373207a65726f206973206e6f742061207660448201526930b634b21037bbb732b960b11b60648201526084015b60405180910390fd5b506000818152602081815260408083206001600160a01b03861684529091529020545b92915050565b60006001600160e01b03198216636cdb3d1360e11b148061077957506001600160e01b031982166303a24d0760e21b145b8061074257506301ffc9a760e01b6001600160e01b0319831614610742565b600c80546107a590612a9c565b80601f01602080910402602001604051908101604052809291908181526020018280546107d190612a9c565b801561081e5780601f106107f35761010080835404028352916020019161081e565b820191906000526020600020905b81548152906001019060200180831161080157829003601f168201915b505050505081565b3360009081526005602052604090205460ff168061084e57506003546001600160a01b031633145b61086a5760405162461bcd60e51b815260040161071690612ad6565b600b55565b606060095482106108925760405162461bcd60e51b815260040161071690612b2b565b6000600e60008481526020019081526020016000206040518060c0016040529081600082015481526020016001820180546108cc90612a9c565b80601f01602080910402602001604051908101604052809291908181526020018280546108f890612a9c565b80156109455780601f1061091a57610100808354040283529160200191610945565b820191906000526020600020905b81548152906001019060200180831161092857829003601f168201915b505050918352505060028201546001600160a01b0316602082015260038201805460409092019161097590612a9c565b80601f01602080910402602001604051908101604052809291908181526020018280546109a190612a9c565b80156109ee5780601f106109c3576101008083540402835291602001916109ee565b820191906000526020600020905b8154815290600101906020018083116109d157829003601f168201915b50505050508152602001600482018054610a0790612a9c565b80601f0160208091040260200160405190810160405280929190818152602001828054610a3390612a9c565b8015610a805780601f10610a5557610100808354040283529160200191610a80565b820191906000526020600020905b815481529060010190602001808311610a6357829003601f168201915b505050918352505060059190910154602091820152600754908201516040808401516060850151608086015160a08701519351631c2df2c760e01b81529697506001600160a01b0390951695631c2df2c795610ae4958b959094939260040161271e565b600060405180830381865afa158015610b01573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f19168201604052610b299190810190612b6c565b9392505050565b80601283604051610b419190612be3565b90815260200160405180910390206000610b583390565b6001600160a01b031681526020810191909152604001600020555050565b6000600f83604051610b889190612be3565b908152604080519182900360209081019092206001600160a01b038516600090815292529020541515905092915050565b600080601184604051610bcc9190612be3565b90815260408051602092819003830190206001600160a01b038616600090815292528120549150819003610b2957506001600160a01b03821660009081526010602052604081205490819003610b295750600a549392505050565b610c2f611b1a565b6001600160a01b03811660009081526005602052604090205460ff1615610cab5760405162461bcd60e51b815260206004820152602a60248201527f4f776e61626c65576974684d616e61676572733a206d616e6167657220616c726044820152691958591e48185919195960b21b6064820152608401610716565b6001600160a01b038116600081815260056020526040808220805460ff1916600190811790915560048054918201815583527f8a35acfbc15ff81a39ae7d344fd709f28e8600b4aa8c65c6b64bfe7fe36bd19b0180546001600160a01b031916841790555133917ffef4b799044e6259138adfd04ab1cca8b2442cc484dd25672ae344fa8a9e208b91a350565b6001600160a01b038516331480610d545750610d548533610625565b610d705760405162461bcd60e51b815260040161071690612bff565b610d7d8585858585611b74565b5050505050565b60048181548110610d9457600080fd5b6000918252602090912001546001600160a01b0316905081565b600e6020526000908152604090208054600182018054919291610dd090612a9c565b80601f0160208091040260200160405190810160405280929190818152602001828054610dfc90612a9c565b8015610e495780601f10610e1e57610100808354040283529160200191610e49565b820191906000526020600020905b815481529060010190602001808311610e2c57829003601f168201915b505050600284015460038501805494956001600160a01b03909216949193509150610e7390612a9c565b80601f0160208091040260200160405190810160405280929190818152602001828054610e9f90612a9c565b8015610eec5780601f10610ec157610100808354040283529160200191610eec565b820191906000526020600020905b815481529060010190602001808311610ecf57829003601f168201915b505050505090806004018054610f0190612a9c565b80601f0160208091040260200160405190810160405280929190818152602001828054610f2d90612a9c565b8015610f7a5780601f10610f4f57610100808354040283529160200191610f7a565b820191906000526020600020905b815481529060010190602001808311610f5d57829003601f168201915b5050505050908060050154905086565b3360009081526005602052604090205460ff1680610fb257506003546001600160a01b031633145b610fce5760405162461bcd60e51b815260040161071690612ad6565b6009548210610fef5760405162461bcd60e51b815260040161071690612b2b565b600854600160a01b900460ff16156110195760405162461bcd60e51b815260040161071690612c4d565b6000828152600e602052604090206004016110348282612cde565b505050565b6060815183511461109e5760405162461bcd60e51b815260206004820152602960248201527f455243313135353a206163636f756e747320616e6420696473206c656e677468604482015268040dad2e6dac2e8c6d60bb1b6064820152608401610716565b600083516001600160401b038111156110b9576110b9612470565b6040519080825280602002602001820160405280156110e2578160200160208202803683370190505b50905060005b845181101561115a5761112d85828151811061110657611106612d9d565b602002602001015185838151811061112057611120612d9d565b60200260200101516106af565b82828151811061113f5761113f612d9d565b602090810291909101015261115381612dc9565b90506110e8565b509392505050565b600061116c611d51565b6008546001600160a01b0316336001600160a01b0316146111cf5760405162461bcd60e51b815260206004820152601e60248201527f49676779506f73743a204f6e6c79206d696e7465722063616e206d696e7400006044820152606401610716565b600b54845111156111f25760405162461bcd60e51b815260040161071690612de2565b600f876040516112029190612be3565b90815260408051602092819003830190206001600160a01b03891660009081529252812054915081900361132e575060098054908190600061124383612dc9565b919050555080600f886040516112599190612be3565b9081526040805191829003602090810183206001600160a01b038b1660008181529183528382209590955560c0840183528584528382018c81528484019590955260608401899052608084018890524260a0850152858152600e9091522081518155915190919060018201906112cf9082612cde565b5060408201516002820180546001600160a01b0319166001600160a01b039092169190911790556060820151600382019061130a9082612cde565b506080820151600482019061131f9082612cde565b5060a082015181600501559050505b60006012886040516113409190612be3565b90815260408051602092819003830190206001600160a01b038a1660009081529252902054905080156113e7576000828152600e602052604090206005015461138a908290612e24565b4211156113e75760405162461bcd60e51b815260206004820152602560248201527f49676779506f73743a204d696e74696e6720646561646c696e65206861732070604482015264185cdcd95960da1b6064820152608401610716565b61140286838560405180602001604052806000815250611daa565b7f168c5a5fdc943f57a3f5fafb948e0d58a21b923382b174c39810981bc6f408d0868989866040516114379493929190612e37565b60405180910390a15061144a6001600655565b9695505050505050565b61145c611b1a565b6001600160a01b0381166000908152600560205260408120805460ff19169055600454905b8181101561103457826001600160a01b0316600482815481106114a6576114a6612d9d565b6000918252602090912001546001600160a01b0316036115a65760046114cd600184612e6b565b815481106114dd576114dd612d9d565b600091825260209091200154600480546001600160a01b03909216918390811061150957611509612d9d565b9060005260206000200160006101000a8154816001600160a01b0302191690836001600160a01b03160217905550600480548061154857611548612e7e565b600082815260208120820160001990810180546001600160a01b03191690559091019091556040516001600160a01b0385169133917fc322b4d5159f72837eec184e14dde68867f91c6da39449fb9829f42121fc704d9190a3505050565b600101611481565b50565b6115b9611b1a565b6115c36000611ebe565b565b6115cd611b1a565b6008805460ff60a01b1916600160a01b179055565b3360009081526005602052604090205460ff168061160a57506003546001600160a01b031633145b6116265760405162461bcd60e51b815260040161071690612ad6565b600a55565b600d80546107a590612a9c565b611643338383611f10565b5050565b6060600480548060200260200160405190810160405280929190818152602001828054801561169f57602002820191906000526020600020905b81546001600160a01b03168152600190910190602001808311611681575b5050505050905090565b80601183604051610b419190612be3565b3360009081526005602052604090205460ff16806116e257506003546001600160a01b031633145b6116fe5760405162461bcd60e51b815260040161071690612ad6565b336000818152600560205260408120805460ff19169055600454905b8181101561103457826001600160a01b03166004828154811061173f5761173f612d9d565b6000918252602090912001546001600160a01b0316036117665760046114cd600184612e6b565b60010161171a565b3360009081526005602052604090205460ff168061179657506003546001600160a01b031633145b6117b25760405162461bcd60e51b815260040161071690612ad6565b60095482106117d35760405162461bcd60e51b815260040161071690612b2b565b600854600160a01b900460ff16156117fd5760405162461bcd60e51b815260040161071690612c4d565b600b54815111156118205760405162461bcd60e51b815260040161071690612de2565b6000828152600e602052604090206003016110348282612cde565b3360009081526005602052604090205460ff168061186357506003546001600160a01b031633145b61187f5760405162461bcd60e51b815260040161071690612ad6565b600780546001600160a01b0319166001600160a01b0392909216919091179055565b3360009081526005602052604090205460ff16806118c957506003546001600160a01b031633145b6118e55760405162461bcd60e51b815260040161071690612ad6565b600880546001600160a01b0319166001600160a01b0392909216919091179055565b6001600160a01b03851633148061192357506119238533610625565b61193f5760405162461bcd60e51b815260040161071690612bff565b610d7d8585858585611ff0565b611954611b1a565b6001600160a01b0381166119b95760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401610716565b6115ae81611ebe565b6119ca611b1a565b600481815481106119dd576119dd612d9d565b60009182526020822001546040516001600160a01b039091169133917fc322b4d5159f72837eec184e14dde68867f91c6da39449fb9829f42121fc704d9190a360006005600060048481548110611a3657611a36612d9d565b6000918252602080832091909101546001600160a01b031683528201929092526040019020805460ff191691151591909117905560048054611a7a90600190612e6b565b81548110611a8a57611a8a612d9d565b600091825260209091200154600480546001600160a01b039092169183908110611ab657611ab6612d9d565b9060005260206000200160006101000a8154816001600160a01b0302191690836001600160a01b031602179055506004805480611af557611af5612e7e565b600082815260209020810160001990810180546001600160a01b031916905501905550565b6003546001600160a01b031633146115c35760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610716565b8151835114611bd65760405162461bcd60e51b815260206004820152602860248201527f455243313135353a2069647320616e6420616d6f756e7473206c656e677468206044820152670dad2e6dac2e8c6d60c31b6064820152608401610716565b6001600160a01b038416611bfc5760405162461bcd60e51b815260040161071690612e94565b3360005b8451811015611ce3576000858281518110611c1d57611c1d612d9d565b602002602001015190506000858381518110611c3b57611c3b612d9d565b602090810291909101810151600084815280835260408082206001600160a01b038e168352909352919091205490915081811015611c8b5760405162461bcd60e51b815260040161071690612ed9565b6000838152602081815260408083206001600160a01b038e8116855292528083208585039055908b16825281208054849290611cc8908490612e24565b9250508190555050505080611cdc90612dc9565b9050611c00565b50846001600160a01b0316866001600160a01b0316826001600160a01b03167f4a39dc06d4c0dbc64b70af90fd698a233a518aa5d07e595d983b8c0526c8f7fb8787604051611d33929190612f23565b60405180910390a4611d4981878787878761211a565b505050505050565b600260065403611da35760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c006044820152606401610716565b6002600655565b6001600160a01b038416611e0a5760405162461bcd60e51b815260206004820152602160248201527f455243313135353a206d696e7420746f20746865207a65726f206164647265736044820152607360f81b6064820152608401610716565b336000611e1685612275565b90506000611e2385612275565b90506000868152602081815260408083206001600160a01b038b16845290915281208054879290611e55908490612e24565b909155505060408051878152602081018790526001600160a01b03808a1692600092918716917fc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f62910160405180910390a4611eb5836000898989896122c0565b50505050505050565b600380546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b816001600160a01b0316836001600160a01b031603611f835760405162461bcd60e51b815260206004820152602960248201527f455243313135353a2073657474696e6720617070726f76616c20737461747573604482015268103337b91039b2b63360b91b6064820152608401610716565b6001600160a01b03838116600081815260016020908152604080832094871680845294825291829020805460ff191686151590811790915591519182527f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a3505050565b6001600160a01b0384166120165760405162461bcd60e51b815260040161071690612e94565b33600061202285612275565b9050600061202f85612275565b90506000868152602081815260408083206001600160a01b038c168452909152902054858110156120725760405162461bcd60e51b815260040161071690612ed9565b6000878152602081815260408083206001600160a01b038d8116855292528083208985039055908a168252812080548892906120af908490612e24565b909155505060408051888152602081018890526001600160a01b03808b16928c821692918816917fc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f62910160405180910390a461210f848a8a8a8a8a6122c0565b505050505050505050565b6001600160a01b0384163b15611d495760405163bc197c8160e01b81526001600160a01b0385169063bc197c819061215e9089908990889088908890600401612f51565b6020604051808303816000875af1925050508015612199575060408051601f3d908101601f1916820190925261219691810190612faf565b60015b612245576121a5612fcc565b806308c379a0036121de57506121b9612fe8565b806121c457506121e0565b8060405162461bcd60e51b81526004016107169190612444565b505b60405162461bcd60e51b815260206004820152603460248201527f455243313135353a207472616e7366657220746f206e6f6e2d455243313135356044820152732932b1b2b4bb32b91034b6b83632b6b2b73a32b960611b6064820152608401610716565b6001600160e01b0319811663bc197c8160e01b14611eb55760405162461bcd60e51b815260040161071690613071565b604080516001808252818301909252606091600091906020808301908036833701905050905082816000815181106122af576122af612d9d565b602090810291909101015292915050565b6001600160a01b0384163b15611d495760405163f23a6e6160e01b81526001600160a01b0385169063f23a6e619061230490899089908890889088906004016130b9565b6020604051808303816000875af192505050801561233f575060408051601f3d908101601f1916820190925261233c91810190612faf565b60015b61234b576121a5612fcc565b6001600160e01b0319811663f23a6e6160e01b14611eb55760405162461bcd60e51b815260040161071690613071565b80356001600160a01b038116811461239257600080fd5b919050565b600080604083850312156123aa57600080fd5b6123b38361237b565b946020939093013593505050565b6001600160e01b0319811681146115ae57600080fd5b6000602082840312156123e957600080fd5b8135610b29816123c1565b60005b8381101561240f5781810151838201526020016123f7565b50506000910152565b600081518084526124308160208601602086016123f4565b601f01601f19169290920160200192915050565b602081526000610b296020830184612418565b60006020828403121561246957600080fd5b5035919050565b634e487b7160e01b600052604160045260246000fd5b601f8201601f191681016001600160401b03811182821017156124ab576124ab612470565b6040525050565b60006001600160401b038211156124cb576124cb612470565b50601f01601f191660200190565b600082601f8301126124ea57600080fd5b81356124f5816124b2565b6040516125028282612486565b82815285602084870101111561251757600080fd5b82602086016020830137600092810160200192909252509392505050565b6000806040838503121561254857600080fd5b82356001600160401b0381111561255e57600080fd5b61256a858286016124d9565b9250506125796020840161237b565b90509250929050565b6000806040838503121561259557600080fd5b82356001600160401b038111156125ab57600080fd5b6125b7858286016124d9565b95602094909401359450505050565b6000602082840312156125d857600080fd5b610b298261237b565b60006001600160401b038211156125fa576125fa612470565b5060051b60200190565b600082601f83011261261557600080fd5b81356020612622826125e1565b60405161262f8282612486565b83815260059390931b850182019282810191508684111561264f57600080fd5b8286015b8481101561266a5780358352918301918301612653565b509695505050505050565b600080600080600060a0868803121561268d57600080fd5b6126968661237b565b94506126a46020870161237b565b935060408601356001600160401b03808211156126c057600080fd5b6126cc89838a01612604565b945060608801359150808211156126e257600080fd5b6126ee89838a01612604565b9350608088013591508082111561270457600080fd5b50612711888289016124d9565b9150509295509295909350565b86815260c06020820152600061273760c0830188612418565b6001600160a01b038716604084015282810360608401526127588187612418565b9050828103608084015261276c8186612418565b9150508260a0830152979650505050505050565b6000806040838503121561279357600080fd5b8235915060208301356001600160401b038111156127b057600080fd5b6127bc858286016124d9565b9150509250929050565b600080604083850312156127d957600080fd5b82356001600160401b03808211156127f057600080fd5b818501915085601f83011261280457600080fd5b81356020612811826125e1565b60405161281e8282612486565b83815260059390931b850182019282810191508984111561283e57600080fd5b948201945b83861015612863576128548661237b565b82529482019490820190612843565b9650508601359250508082111561287957600080fd5b506127bc85828601612604565b600081518084526020808501945080840160005b838110156128b65781518752958201959082019060010161289a565b509495945050505050565b602081526000610b296020830184612886565b60008060008060008060c087890312156128ed57600080fd5b86356001600160401b038082111561290457600080fd5b6129108a838b016124d9565b975061291e60208a0161237b565b965061292c60408a0161237b565b9550606089013591508082111561294257600080fd5b61294e8a838b016124d9565b9450608089013591508082111561296457600080fd5b5061297189828a016124d9565b92505060a087013590509295509295509295565b6000806040838503121561299857600080fd5b6129a18361237b565b9150602083013580151581146129b657600080fd5b809150509250929050565b6020808252825182820181905260009190848201906040850190845b81811015612a025783516001600160a01b0316835292840192918401916001016129dd565b50909695505050505050565b60008060408385031215612a2157600080fd5b612a2a8361237b565b91506125796020840161237b565b600080600080600060a08688031215612a5057600080fd5b612a598661237b565b9450612a676020870161237b565b9350604086013592506060860135915060808601356001600160401b03811115612a9057600080fd5b612711888289016124d9565b600181811c90821680612ab057607f821691505b602082108103612ad057634e487b7160e01b600052602260045260246000fd5b50919050565b60208082526035908201527f4f776e61626c65576974684d616e61676572733a2063616c6c6572206973206e60408201527437ba10309036b0b730b3b2b91037b91037bbb732b960591b606082015260800190565b60208082526021908201527f49676779506f73743a20546f6b656e20696420646f6573206e6f7420657869736040820152601d60fa1b606082015260800190565b600060208284031215612b7e57600080fd5b81516001600160401b03811115612b9457600080fd5b8201601f81018413612ba557600080fd5b8051612bb0816124b2565b604051612bbd8282612486565b828152866020848601011115612bd257600080fd5b61144a8360208301602087016123f4565b60008251612bf58184602087016123f4565b9190910192915050565b6020808252602e908201527f455243313135353a2063616c6c6572206973206e6f7420746f6b656e206f776e60408201526d195c881bdc88185c1c1c9bdd995960921b606082015260800190565b6020808252602b908201527f49676779506f73743a20506f7374206368616e67696e6720697320646973616260408201526a3632b2103337b932bb32b960a91b606082015260800190565b601f82111561103457600081815260208120601f850160051c81016020861015612cbf5750805b601f850160051c820191505b81811015611d4957828155600101612ccb565b81516001600160401b03811115612cf757612cf7612470565b612d0b81612d058454612a9c565b84612c98565b602080601f831160018114612d405760008415612d285750858301515b600019600386901b1c1916600185901b178555611d49565b600085815260208120601f198616915b82811015612d6f57888601518255948401946001909101908401612d50565b5085821015612d8d5787850151600019600388901b60f8161c191681555b5050505050600190811b01905550565b634e487b7160e01b600052603260045260246000fd5b634e487b7160e01b600052601160045260246000fd5b600060018201612ddb57612ddb612db3565b5060010190565b60208082526022908201527f49676779506f73743a2054657874207072657669657720697320746f6f206c6f6040820152616e6760f01b606082015260800190565b8082018082111561074257610742612db3565b600060018060a01b03808716835260806020840152612e596080840187612418565b94166040830152506060015292915050565b8181038181111561074257610742612db3565b634e487b7160e01b600052603160045260246000fd5b60208082526025908201527f455243313135353a207472616e7366657220746f20746865207a65726f206164604082015264647265737360d81b606082015260800190565b6020808252602a908201527f455243313135353a20696e73756666696369656e742062616c616e636520666f60408201526939103a3930b739b332b960b11b606082015260800190565b604081526000612f366040830185612886565b8281036020840152612f488185612886565b95945050505050565b6001600160a01b0386811682528516602082015260a060408201819052600090612f7d90830186612886565b8281036060840152612f8f8186612886565b90508281036080840152612fa38185612418565b98975050505050505050565b600060208284031215612fc157600080fd5b8151610b29816123c1565b600060033d1115612fe55760046000803e5060005160e01c5b90565b600060443d1015612ff65790565b6040516003193d81016004833e81513d6001600160401b03816024840111818411171561302557505050505090565b828501915081518181111561303d5750505050505090565b843d87010160208285010111156130575750505050505090565b61306660208286010187612486565b509095945050505050565b60208082526028908201527f455243313135353a204552433131353552656365697665722072656a656374656040820152676420746f6b656e7360c01b606082015260800190565b6001600160a01b03868116825285166020820152604081018490526060810183905260a0608082018190526000906130f390830184612418565b97965050505050505056fea2646970667358221220bb6fa6152a3e2457ae2a3fc2cca6290b2405b62f065f0472a2f057b4dd8c16f064736f6c634300081100330000000000000000000000000000000000000000000000001bc16d674ec80000000000000000000000000000f40284a811c82b4b9ab22e94bb909df6d2c66c08000000000000000000000000000000000000000000000000000000000000008000000000000000000000000000000000000000000000000000000000000000c0000000000000000000000000000000000000000000000000000000000000000f506f6f6c204368617420506f7374730000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000c504f4f4c43484154504f53540000000000000000000000000000000000000000
Deployed Bytecode
0x608060405234801561001057600080fd5b506004361061027e5760003560e01c8063641427071161015c578063b442a657116100ce578063e69e04b311610087578063e69e04b31461060e578063e985e9c514610617578063f242432a14610653578063f2fde38b14610666578063f3ae241514610679578063f883a6961461069c57600080fd5b8063b442a657146105b2578063b7002309146105c5578063c11e432f146105cd578063c8fa0220146105e0578063d570fb34146105f3578063dd443eb8146105fb57600080fd5b80637e8e98d7116101205780637e8e98d71461053e5780638c024af41461055e5780638da5cb5b1461057157806395d89b4114610582578063a22cb4651461058a578063a8d088bb1461059d57600080fd5b806364142707146104d757806368ce31b0146105125780636eb3500d1461051b578063715018a61461052e57806376f5653f1461053657600080fd5b806326fcecbb116101f557806340731c24116101b957806340731c2414610450578063482968dd146104755780634e1273f41461048857806357c294d8146104a85780635ab5de8a146104bb57806361bc221a146104ce57600080fd5b806326fcecbb146103cc5780632d06177a146103ec5780632eb2c2d6146103ff57806334d722c9146104125780633d39c2601461043d57600080fd5b80630e89341c116102475780630e89341c146103315780630ed40992146103445780631228be05146103575780631b61bd8f146103925780631f1763e2146103a657806320fd1808146103b957600080fd5b8062fdd58e1461028357806301ffc9a7146102a957806306fdde03146102cc57806308305e9f146102e157806309bade96146102f6575b600080fd5b610296610291366004612397565b6106af565b6040519081526020015b60405180910390f35b6102bc6102b73660046123d7565b610748565b60405190151581526020016102a0565b6102d4610798565b6040516102a09190612444565b6102f46102ef366004612457565b610826565b005b610296610304366004612535565b8151602081840181018051600f825292820194820194909420919093529091526000908152604090205481565b6102d461033f366004612457565b61086f565b6102f4610352366004612582565b610b30565b610296610365366004612535565b81516020818401810180516011825292820194820194909420919093529091526000908152604090205481565b6008546102bc90600160a01b900460ff1681565b6102bc6103b4366004612535565b610b76565b6102966103c7366004612535565b610bb9565b6102966103da3660046125c6565b60106020526000908152604090205481565b6102f46103fa3660046125c6565b610c27565b6102f461040d366004612675565b610d38565b600854610425906001600160a01b031681565b6040516001600160a01b0390911681526020016102a0565b61042561044b366004612457565b610d84565b61046361045e366004612457565b610dae565b6040516102a09695949392919061271e565b6102f4610483366004612780565b610f8a565b61049b6104963660046127c6565b611039565b6040516102a091906128c1565b6102966104b63660046128d4565b611162565b6102f46104c93660046125c6565b611454565b61029660095481565b6102966104e5366004612535565b81516020818401810180516012825292820194820194909420919093529091526000908152604090205481565b610296600b5481565b600754610425906001600160a01b031681565b6102f46115b1565b6102f46115c5565b6102f461054c366004612457565b33600090815260106020526040902055565b6102f461056c366004612457565b6115e2565b6003546001600160a01b0316610425565b6102d461162b565b6102f4610598366004612985565b611638565b6105a5611647565b6040516102a091906129c1565b6102f46105c0366004612582565b6116a9565b6102f46116ba565b6102f46105db366004612780565b61176e565b6102f46105ee3660046125c6565b61183b565b600454610296565b6102f46106093660046125c6565b6118a1565b610296600a5481565b6102bc610625366004612a0e565b6001600160a01b03918216600090815260016020908152604080832093909416825291909152205460ff1690565b6102f4610661366004612a38565b611907565b6102f46106743660046125c6565b61194c565b6102bc6106873660046125c6565b60056020526000908152604090205460ff1681565b6102f46106aa366004612457565b6119c2565b60006001600160a01b03831661071f5760405162461bcd60e51b815260206004820152602a60248201527f455243313135353a2061646472657373207a65726f206973206e6f742061207660448201526930b634b21037bbb732b960b11b60648201526084015b60405180910390fd5b506000818152602081815260408083206001600160a01b03861684529091529020545b92915050565b60006001600160e01b03198216636cdb3d1360e11b148061077957506001600160e01b031982166303a24d0760e21b145b8061074257506301ffc9a760e01b6001600160e01b0319831614610742565b600c80546107a590612a9c565b80601f01602080910402602001604051908101604052809291908181526020018280546107d190612a9c565b801561081e5780601f106107f35761010080835404028352916020019161081e565b820191906000526020600020905b81548152906001019060200180831161080157829003601f168201915b505050505081565b3360009081526005602052604090205460ff168061084e57506003546001600160a01b031633145b61086a5760405162461bcd60e51b815260040161071690612ad6565b600b55565b606060095482106108925760405162461bcd60e51b815260040161071690612b2b565b6000600e60008481526020019081526020016000206040518060c0016040529081600082015481526020016001820180546108cc90612a9c565b80601f01602080910402602001604051908101604052809291908181526020018280546108f890612a9c565b80156109455780601f1061091a57610100808354040283529160200191610945565b820191906000526020600020905b81548152906001019060200180831161092857829003601f168201915b505050918352505060028201546001600160a01b0316602082015260038201805460409092019161097590612a9c565b80601f01602080910402602001604051908101604052809291908181526020018280546109a190612a9c565b80156109ee5780601f106109c3576101008083540402835291602001916109ee565b820191906000526020600020905b8154815290600101906020018083116109d157829003601f168201915b50505050508152602001600482018054610a0790612a9c565b80601f0160208091040260200160405190810160405280929190818152602001828054610a3390612a9c565b8015610a805780601f10610a5557610100808354040283529160200191610a80565b820191906000526020600020905b815481529060010190602001808311610a6357829003601f168201915b505050918352505060059190910154602091820152600754908201516040808401516060850151608086015160a08701519351631c2df2c760e01b81529697506001600160a01b0390951695631c2df2c795610ae4958b959094939260040161271e565b600060405180830381865afa158015610b01573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f19168201604052610b299190810190612b6c565b9392505050565b80601283604051610b419190612be3565b90815260200160405180910390206000610b583390565b6001600160a01b031681526020810191909152604001600020555050565b6000600f83604051610b889190612be3565b908152604080519182900360209081019092206001600160a01b038516600090815292529020541515905092915050565b600080601184604051610bcc9190612be3565b90815260408051602092819003830190206001600160a01b038616600090815292528120549150819003610b2957506001600160a01b03821660009081526010602052604081205490819003610b295750600a549392505050565b610c2f611b1a565b6001600160a01b03811660009081526005602052604090205460ff1615610cab5760405162461bcd60e51b815260206004820152602a60248201527f4f776e61626c65576974684d616e61676572733a206d616e6167657220616c726044820152691958591e48185919195960b21b6064820152608401610716565b6001600160a01b038116600081815260056020526040808220805460ff1916600190811790915560048054918201815583527f8a35acfbc15ff81a39ae7d344fd709f28e8600b4aa8c65c6b64bfe7fe36bd19b0180546001600160a01b031916841790555133917ffef4b799044e6259138adfd04ab1cca8b2442cc484dd25672ae344fa8a9e208b91a350565b6001600160a01b038516331480610d545750610d548533610625565b610d705760405162461bcd60e51b815260040161071690612bff565b610d7d8585858585611b74565b5050505050565b60048181548110610d9457600080fd5b6000918252602090912001546001600160a01b0316905081565b600e6020526000908152604090208054600182018054919291610dd090612a9c565b80601f0160208091040260200160405190810160405280929190818152602001828054610dfc90612a9c565b8015610e495780601f10610e1e57610100808354040283529160200191610e49565b820191906000526020600020905b815481529060010190602001808311610e2c57829003601f168201915b505050600284015460038501805494956001600160a01b03909216949193509150610e7390612a9c565b80601f0160208091040260200160405190810160405280929190818152602001828054610e9f90612a9c565b8015610eec5780601f10610ec157610100808354040283529160200191610eec565b820191906000526020600020905b815481529060010190602001808311610ecf57829003601f168201915b505050505090806004018054610f0190612a9c565b80601f0160208091040260200160405190810160405280929190818152602001828054610f2d90612a9c565b8015610f7a5780601f10610f4f57610100808354040283529160200191610f7a565b820191906000526020600020905b815481529060010190602001808311610f5d57829003601f168201915b5050505050908060050154905086565b3360009081526005602052604090205460ff1680610fb257506003546001600160a01b031633145b610fce5760405162461bcd60e51b815260040161071690612ad6565b6009548210610fef5760405162461bcd60e51b815260040161071690612b2b565b600854600160a01b900460ff16156110195760405162461bcd60e51b815260040161071690612c4d565b6000828152600e602052604090206004016110348282612cde565b505050565b6060815183511461109e5760405162461bcd60e51b815260206004820152602960248201527f455243313135353a206163636f756e747320616e6420696473206c656e677468604482015268040dad2e6dac2e8c6d60bb1b6064820152608401610716565b600083516001600160401b038111156110b9576110b9612470565b6040519080825280602002602001820160405280156110e2578160200160208202803683370190505b50905060005b845181101561115a5761112d85828151811061110657611106612d9d565b602002602001015185838151811061112057611120612d9d565b60200260200101516106af565b82828151811061113f5761113f612d9d565b602090810291909101015261115381612dc9565b90506110e8565b509392505050565b600061116c611d51565b6008546001600160a01b0316336001600160a01b0316146111cf5760405162461bcd60e51b815260206004820152601e60248201527f49676779506f73743a204f6e6c79206d696e7465722063616e206d696e7400006044820152606401610716565b600b54845111156111f25760405162461bcd60e51b815260040161071690612de2565b600f876040516112029190612be3565b90815260408051602092819003830190206001600160a01b03891660009081529252812054915081900361132e575060098054908190600061124383612dc9565b919050555080600f886040516112599190612be3565b9081526040805191829003602090810183206001600160a01b038b1660008181529183528382209590955560c0840183528584528382018c81528484019590955260608401899052608084018890524260a0850152858152600e9091522081518155915190919060018201906112cf9082612cde565b5060408201516002820180546001600160a01b0319166001600160a01b039092169190911790556060820151600382019061130a9082612cde565b506080820151600482019061131f9082612cde565b5060a082015181600501559050505b60006012886040516113409190612be3565b90815260408051602092819003830190206001600160a01b038a1660009081529252902054905080156113e7576000828152600e602052604090206005015461138a908290612e24565b4211156113e75760405162461bcd60e51b815260206004820152602560248201527f49676779506f73743a204d696e74696e6720646561646c696e65206861732070604482015264185cdcd95960da1b6064820152608401610716565b61140286838560405180602001604052806000815250611daa565b7f168c5a5fdc943f57a3f5fafb948e0d58a21b923382b174c39810981bc6f408d0868989866040516114379493929190612e37565b60405180910390a15061144a6001600655565b9695505050505050565b61145c611b1a565b6001600160a01b0381166000908152600560205260408120805460ff19169055600454905b8181101561103457826001600160a01b0316600482815481106114a6576114a6612d9d565b6000918252602090912001546001600160a01b0316036115a65760046114cd600184612e6b565b815481106114dd576114dd612d9d565b600091825260209091200154600480546001600160a01b03909216918390811061150957611509612d9d565b9060005260206000200160006101000a8154816001600160a01b0302191690836001600160a01b03160217905550600480548061154857611548612e7e565b600082815260208120820160001990810180546001600160a01b03191690559091019091556040516001600160a01b0385169133917fc322b4d5159f72837eec184e14dde68867f91c6da39449fb9829f42121fc704d9190a3505050565b600101611481565b50565b6115b9611b1a565b6115c36000611ebe565b565b6115cd611b1a565b6008805460ff60a01b1916600160a01b179055565b3360009081526005602052604090205460ff168061160a57506003546001600160a01b031633145b6116265760405162461bcd60e51b815260040161071690612ad6565b600a55565b600d80546107a590612a9c565b611643338383611f10565b5050565b6060600480548060200260200160405190810160405280929190818152602001828054801561169f57602002820191906000526020600020905b81546001600160a01b03168152600190910190602001808311611681575b5050505050905090565b80601183604051610b419190612be3565b3360009081526005602052604090205460ff16806116e257506003546001600160a01b031633145b6116fe5760405162461bcd60e51b815260040161071690612ad6565b336000818152600560205260408120805460ff19169055600454905b8181101561103457826001600160a01b03166004828154811061173f5761173f612d9d565b6000918252602090912001546001600160a01b0316036117665760046114cd600184612e6b565b60010161171a565b3360009081526005602052604090205460ff168061179657506003546001600160a01b031633145b6117b25760405162461bcd60e51b815260040161071690612ad6565b60095482106117d35760405162461bcd60e51b815260040161071690612b2b565b600854600160a01b900460ff16156117fd5760405162461bcd60e51b815260040161071690612c4d565b600b54815111156118205760405162461bcd60e51b815260040161071690612de2565b6000828152600e602052604090206003016110348282612cde565b3360009081526005602052604090205460ff168061186357506003546001600160a01b031633145b61187f5760405162461bcd60e51b815260040161071690612ad6565b600780546001600160a01b0319166001600160a01b0392909216919091179055565b3360009081526005602052604090205460ff16806118c957506003546001600160a01b031633145b6118e55760405162461bcd60e51b815260040161071690612ad6565b600880546001600160a01b0319166001600160a01b0392909216919091179055565b6001600160a01b03851633148061192357506119238533610625565b61193f5760405162461bcd60e51b815260040161071690612bff565b610d7d8585858585611ff0565b611954611b1a565b6001600160a01b0381166119b95760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401610716565b6115ae81611ebe565b6119ca611b1a565b600481815481106119dd576119dd612d9d565b60009182526020822001546040516001600160a01b039091169133917fc322b4d5159f72837eec184e14dde68867f91c6da39449fb9829f42121fc704d9190a360006005600060048481548110611a3657611a36612d9d565b6000918252602080832091909101546001600160a01b031683528201929092526040019020805460ff191691151591909117905560048054611a7a90600190612e6b565b81548110611a8a57611a8a612d9d565b600091825260209091200154600480546001600160a01b039092169183908110611ab657611ab6612d9d565b9060005260206000200160006101000a8154816001600160a01b0302191690836001600160a01b031602179055506004805480611af557611af5612e7e565b600082815260209020810160001990810180546001600160a01b031916905501905550565b6003546001600160a01b031633146115c35760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610716565b8151835114611bd65760405162461bcd60e51b815260206004820152602860248201527f455243313135353a2069647320616e6420616d6f756e7473206c656e677468206044820152670dad2e6dac2e8c6d60c31b6064820152608401610716565b6001600160a01b038416611bfc5760405162461bcd60e51b815260040161071690612e94565b3360005b8451811015611ce3576000858281518110611c1d57611c1d612d9d565b602002602001015190506000858381518110611c3b57611c3b612d9d565b602090810291909101810151600084815280835260408082206001600160a01b038e168352909352919091205490915081811015611c8b5760405162461bcd60e51b815260040161071690612ed9565b6000838152602081815260408083206001600160a01b038e8116855292528083208585039055908b16825281208054849290611cc8908490612e24565b9250508190555050505080611cdc90612dc9565b9050611c00565b50846001600160a01b0316866001600160a01b0316826001600160a01b03167f4a39dc06d4c0dbc64b70af90fd698a233a518aa5d07e595d983b8c0526c8f7fb8787604051611d33929190612f23565b60405180910390a4611d4981878787878761211a565b505050505050565b600260065403611da35760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c006044820152606401610716565b6002600655565b6001600160a01b038416611e0a5760405162461bcd60e51b815260206004820152602160248201527f455243313135353a206d696e7420746f20746865207a65726f206164647265736044820152607360f81b6064820152608401610716565b336000611e1685612275565b90506000611e2385612275565b90506000868152602081815260408083206001600160a01b038b16845290915281208054879290611e55908490612e24565b909155505060408051878152602081018790526001600160a01b03808a1692600092918716917fc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f62910160405180910390a4611eb5836000898989896122c0565b50505050505050565b600380546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b816001600160a01b0316836001600160a01b031603611f835760405162461bcd60e51b815260206004820152602960248201527f455243313135353a2073657474696e6720617070726f76616c20737461747573604482015268103337b91039b2b63360b91b6064820152608401610716565b6001600160a01b03838116600081815260016020908152604080832094871680845294825291829020805460ff191686151590811790915591519182527f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a3505050565b6001600160a01b0384166120165760405162461bcd60e51b815260040161071690612e94565b33600061202285612275565b9050600061202f85612275565b90506000868152602081815260408083206001600160a01b038c168452909152902054858110156120725760405162461bcd60e51b815260040161071690612ed9565b6000878152602081815260408083206001600160a01b038d8116855292528083208985039055908a168252812080548892906120af908490612e24565b909155505060408051888152602081018890526001600160a01b03808b16928c821692918816917fc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f62910160405180910390a461210f848a8a8a8a8a6122c0565b505050505050505050565b6001600160a01b0384163b15611d495760405163bc197c8160e01b81526001600160a01b0385169063bc197c819061215e9089908990889088908890600401612f51565b6020604051808303816000875af1925050508015612199575060408051601f3d908101601f1916820190925261219691810190612faf565b60015b612245576121a5612fcc565b806308c379a0036121de57506121b9612fe8565b806121c457506121e0565b8060405162461bcd60e51b81526004016107169190612444565b505b60405162461bcd60e51b815260206004820152603460248201527f455243313135353a207472616e7366657220746f206e6f6e2d455243313135356044820152732932b1b2b4bb32b91034b6b83632b6b2b73a32b960611b6064820152608401610716565b6001600160e01b0319811663bc197c8160e01b14611eb55760405162461bcd60e51b815260040161071690613071565b604080516001808252818301909252606091600091906020808301908036833701905050905082816000815181106122af576122af612d9d565b602090810291909101015292915050565b6001600160a01b0384163b15611d495760405163f23a6e6160e01b81526001600160a01b0385169063f23a6e619061230490899089908890889088906004016130b9565b6020604051808303816000875af192505050801561233f575060408051601f3d908101601f1916820190925261233c91810190612faf565b60015b61234b576121a5612fcc565b6001600160e01b0319811663f23a6e6160e01b14611eb55760405162461bcd60e51b815260040161071690613071565b80356001600160a01b038116811461239257600080fd5b919050565b600080604083850312156123aa57600080fd5b6123b38361237b565b946020939093013593505050565b6001600160e01b0319811681146115ae57600080fd5b6000602082840312156123e957600080fd5b8135610b29816123c1565b60005b8381101561240f5781810151838201526020016123f7565b50506000910152565b600081518084526124308160208601602086016123f4565b601f01601f19169290920160200192915050565b602081526000610b296020830184612418565b60006020828403121561246957600080fd5b5035919050565b634e487b7160e01b600052604160045260246000fd5b601f8201601f191681016001600160401b03811182821017156124ab576124ab612470565b6040525050565b60006001600160401b038211156124cb576124cb612470565b50601f01601f191660200190565b600082601f8301126124ea57600080fd5b81356124f5816124b2565b6040516125028282612486565b82815285602084870101111561251757600080fd5b82602086016020830137600092810160200192909252509392505050565b6000806040838503121561254857600080fd5b82356001600160401b0381111561255e57600080fd5b61256a858286016124d9565b9250506125796020840161237b565b90509250929050565b6000806040838503121561259557600080fd5b82356001600160401b038111156125ab57600080fd5b6125b7858286016124d9565b95602094909401359450505050565b6000602082840312156125d857600080fd5b610b298261237b565b60006001600160401b038211156125fa576125fa612470565b5060051b60200190565b600082601f83011261261557600080fd5b81356020612622826125e1565b60405161262f8282612486565b83815260059390931b850182019282810191508684111561264f57600080fd5b8286015b8481101561266a5780358352918301918301612653565b509695505050505050565b600080600080600060a0868803121561268d57600080fd5b6126968661237b565b94506126a46020870161237b565b935060408601356001600160401b03808211156126c057600080fd5b6126cc89838a01612604565b945060608801359150808211156126e257600080fd5b6126ee89838a01612604565b9350608088013591508082111561270457600080fd5b50612711888289016124d9565b9150509295509295909350565b86815260c06020820152600061273760c0830188612418565b6001600160a01b038716604084015282810360608401526127588187612418565b9050828103608084015261276c8186612418565b9150508260a0830152979650505050505050565b6000806040838503121561279357600080fd5b8235915060208301356001600160401b038111156127b057600080fd5b6127bc858286016124d9565b9150509250929050565b600080604083850312156127d957600080fd5b82356001600160401b03808211156127f057600080fd5b818501915085601f83011261280457600080fd5b81356020612811826125e1565b60405161281e8282612486565b83815260059390931b850182019282810191508984111561283e57600080fd5b948201945b83861015612863576128548661237b565b82529482019490820190612843565b9650508601359250508082111561287957600080fd5b506127bc85828601612604565b600081518084526020808501945080840160005b838110156128b65781518752958201959082019060010161289a565b509495945050505050565b602081526000610b296020830184612886565b60008060008060008060c087890312156128ed57600080fd5b86356001600160401b038082111561290457600080fd5b6129108a838b016124d9565b975061291e60208a0161237b565b965061292c60408a0161237b565b9550606089013591508082111561294257600080fd5b61294e8a838b016124d9565b9450608089013591508082111561296457600080fd5b5061297189828a016124d9565b92505060a087013590509295509295509295565b6000806040838503121561299857600080fd5b6129a18361237b565b9150602083013580151581146129b657600080fd5b809150509250929050565b6020808252825182820181905260009190848201906040850190845b81811015612a025783516001600160a01b0316835292840192918401916001016129dd565b50909695505050505050565b60008060408385031215612a2157600080fd5b612a2a8361237b565b91506125796020840161237b565b600080600080600060a08688031215612a5057600080fd5b612a598661237b565b9450612a676020870161237b565b9350604086013592506060860135915060808601356001600160401b03811115612a9057600080fd5b612711888289016124d9565b600181811c90821680612ab057607f821691505b602082108103612ad057634e487b7160e01b600052602260045260246000fd5b50919050565b60208082526035908201527f4f776e61626c65576974684d616e61676572733a2063616c6c6572206973206e60408201527437ba10309036b0b730b3b2b91037b91037bbb732b960591b606082015260800190565b60208082526021908201527f49676779506f73743a20546f6b656e20696420646f6573206e6f7420657869736040820152601d60fa1b606082015260800190565b600060208284031215612b7e57600080fd5b81516001600160401b03811115612b9457600080fd5b8201601f81018413612ba557600080fd5b8051612bb0816124b2565b604051612bbd8282612486565b828152866020848601011115612bd257600080fd5b61144a8360208301602087016123f4565b60008251612bf58184602087016123f4565b9190910192915050565b6020808252602e908201527f455243313135353a2063616c6c6572206973206e6f7420746f6b656e206f776e60408201526d195c881bdc88185c1c1c9bdd995960921b606082015260800190565b6020808252602b908201527f49676779506f73743a20506f7374206368616e67696e6720697320646973616260408201526a3632b2103337b932bb32b960a91b606082015260800190565b601f82111561103457600081815260208120601f850160051c81016020861015612cbf5750805b601f850160051c820191505b81811015611d4957828155600101612ccb565b81516001600160401b03811115612cf757612cf7612470565b612d0b81612d058454612a9c565b84612c98565b602080601f831160018114612d405760008415612d285750858301515b600019600386901b1c1916600185901b178555611d49565b600085815260208120601f198616915b82811015612d6f57888601518255948401946001909101908401612d50565b5085821015612d8d5787850151600019600388901b60f8161c191681555b5050505050600190811b01905550565b634e487b7160e01b600052603260045260246000fd5b634e487b7160e01b600052601160045260246000fd5b600060018201612ddb57612ddb612db3565b5060010190565b60208082526022908201527f49676779506f73743a2054657874207072657669657720697320746f6f206c6f6040820152616e6760f01b606082015260800190565b8082018082111561074257610742612db3565b600060018060a01b03808716835260806020840152612e596080840187612418565b94166040830152506060015292915050565b8181038181111561074257610742612db3565b634e487b7160e01b600052603160045260246000fd5b60208082526025908201527f455243313135353a207472616e7366657220746f20746865207a65726f206164604082015264647265737360d81b606082015260800190565b6020808252602a908201527f455243313135353a20696e73756666696369656e742062616c616e636520666f60408201526939103a3930b739b332b960b11b606082015260800190565b604081526000612f366040830185612886565b8281036020840152612f488185612886565b95945050505050565b6001600160a01b0386811682528516602082015260a060408201819052600090612f7d90830186612886565b8281036060840152612f8f8186612886565b90508281036080840152612fa38185612418565b98975050505050505050565b600060208284031215612fc157600080fd5b8151610b29816123c1565b600060033d1115612fe55760046000803e5060005160e01c5b90565b600060443d1015612ff65790565b6040516003193d81016004833e81513d6001600160401b03816024840111818411171561302557505050505090565b828501915081518181111561303d5750505050505090565b843d87010160208285010111156130575750505050505090565b61306660208286010187612486565b509095945050505050565b60208082526028908201527f455243313135353a204552433131353552656365697665722072656a656374656040820152676420746f6b656e7360c01b606082015260800190565b6001600160a01b03868116825285166020820152604081018490526060810183905260a0608082018190526000906130f390830184612418565b97965050505050505056fea2646970667358221220bb6fa6152a3e2457ae2a3fc2cca6290b2405b62f065f0472a2f057b4dd8c16f064736f6c63430008110033
Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)
0000000000000000000000000000000000000000000000001bc16d674ec80000000000000000000000000000f40284a811c82b4b9ab22e94bb909df6d2c66c08000000000000000000000000000000000000000000000000000000000000008000000000000000000000000000000000000000000000000000000000000000c0000000000000000000000000000000000000000000000000000000000000000f506f6f6c204368617420506f7374730000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000c504f4f4c43484154504f53540000000000000000000000000000000000000000
-----Decoded View---------------
Arg [0] : _defaultPrice (uint256): 2000000000000000000
Arg [1] : _metadataAddress (address): 0xF40284a811c82b4B9ab22E94Bb909Df6d2c66C08
Arg [2] : _name (string): Pool Chat Posts
Arg [3] : _symbol (string): POOLCHATPOST
-----Encoded View---------------
8 Constructor Arguments found :
Arg [0] : 0000000000000000000000000000000000000000000000001bc16d674ec80000
Arg [1] : 000000000000000000000000f40284a811c82b4b9ab22e94bb909df6d2c66c08
Arg [2] : 0000000000000000000000000000000000000000000000000000000000000080
Arg [3] : 00000000000000000000000000000000000000000000000000000000000000c0
Arg [4] : 000000000000000000000000000000000000000000000000000000000000000f
Arg [5] : 506f6f6c204368617420506f7374730000000000000000000000000000000000
Arg [6] : 000000000000000000000000000000000000000000000000000000000000000c
Arg [7] : 504f4f4c43484154504f53540000000000000000000000000000000000000000
Loading...
Loading
Loading...
Loading
Loading...
Loading
Net Worth in USD
$0.93
Net Worth in ETH
0.000399
Token Allocations
ETH
100.00%
Multichain Portfolio | 35 Chains
| Chain | Token | Portfolio % | Price | Amount | Value |
|---|---|---|---|---|---|
| ARB | 100.00% | $2,335.7 | 0.0004 | $0.934282 |
Loading...
Loading
Loading...
Loading
Loading...
Loading
[ Download: CSV Export ]
A contract address hosts a smart contract, which is a set of code stored on the blockchain that runs when predetermined conditions are met. Learn more about addresses in our Knowledge Base.