编译器
0.8.17+commit.8df45f5f
文件 1 的 8:Address.sol
pragma solidity ^0.8.1;
library Address {
function isContract(address account) internal view returns (bool) {
return account.code.length > 0;
}
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");
}
function functionCall(address target, bytes memory data) internal returns (bytes memory) {
return functionCallWithValue(target, data, 0, "Address: low-level call failed");
}
function functionCall(
address target,
bytes memory data,
string memory errorMessage
) internal returns (bytes memory) {
return functionCallWithValue(target, data, 0, errorMessage);
}
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");
}
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);
}
function functionStaticCall(address target, bytes memory data) internal view returns (bytes memory) {
return functionStaticCall(target, data, "Address: low-level static call failed");
}
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);
}
function functionDelegateCall(address target, bytes memory data) internal returns (bytes memory) {
return functionDelegateCall(target, data, "Address: low-level delegate call failed");
}
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);
}
function verifyCallResultFromTarget(
address target,
bool success,
bytes memory returndata,
string memory errorMessage
) internal view returns (bytes memory) {
if (success) {
if (returndata.length == 0) {
require(isContract(target), "Address: call to non-contract");
}
return returndata;
} else {
_revert(returndata, errorMessage);
}
}
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 {
if (returndata.length > 0) {
assembly {
let returndata_size := mload(returndata)
revert(add(32, returndata), returndata_size)
}
} else {
revert(errorMessage);
}
}
}
文件 2 的 8:Context.sol
pragma solidity ^0.8.0;
abstract contract Context {
function _msgSender() internal view virtual returns (address) {
return msg.sender;
}
function _msgData() internal view virtual returns (bytes calldata) {
return msg.data;
}
}
文件 3 的 8:IERC721Receiver.sol
pragma solidity ^0.8.0;
interface IERC721Receiver {
function onERC721Received(
address operator,
address from,
uint256 tokenId,
bytes calldata data
) external returns (bytes4);
}
文件 4 的 8:INishikigoi.sol
pragma solidity ^0.8.17;
interface INishikigoi {
function mintedSalesTokenIdList(
uint256 offset,
uint256 limit
) external view returns (uint256[] memory);
function buy(uint256 tokenId) external payable;
function buyBundle(uint256[] memory tokenIdList) external payable;
function updateSaleStatus(bool _isOnSale) external;
function updateBaseURI(string calldata newBaseURI) external;
function mintForPromotion(address to, uint256 amount) external;
function withdrawETH() external;
function transferOwnership(address newOwner) external;
function safeTransferFrom(
address from,
address to,
uint256 tokenId
) external;
}
文件 5 的 8:MerkleProof.sol
pragma solidity ^0.8.0;
library MerkleProof {
function verify(
bytes32[] memory proof,
bytes32 root,
bytes32 leaf
) internal pure returns (bool) {
return processProof(proof, leaf) == root;
}
function verifyCalldata(
bytes32[] calldata proof,
bytes32 root,
bytes32 leaf
) internal pure returns (bool) {
return processProofCalldata(proof, leaf) == root;
}
function processProof(bytes32[] memory proof, bytes32 leaf) internal pure returns (bytes32) {
bytes32 computedHash = leaf;
for (uint256 i = 0; i < proof.length; i++) {
computedHash = _hashPair(computedHash, proof[i]);
}
return computedHash;
}
function processProofCalldata(bytes32[] calldata proof, bytes32 leaf) internal pure returns (bytes32) {
bytes32 computedHash = leaf;
for (uint256 i = 0; i < proof.length; i++) {
computedHash = _hashPair(computedHash, proof[i]);
}
return computedHash;
}
function multiProofVerify(
bytes32[] memory proof,
bool[] memory proofFlags,
bytes32 root,
bytes32[] memory leaves
) internal pure returns (bool) {
return processMultiProof(proof, proofFlags, leaves) == root;
}
function multiProofVerifyCalldata(
bytes32[] calldata proof,
bool[] calldata proofFlags,
bytes32 root,
bytes32[] memory leaves
) internal pure returns (bool) {
return processMultiProofCalldata(proof, proofFlags, leaves) == root;
}
function processMultiProof(
bytes32[] memory proof,
bool[] memory proofFlags,
bytes32[] memory leaves
) internal pure returns (bytes32 merkleRoot) {
uint256 leavesLen = leaves.length;
uint256 totalHashes = proofFlags.length;
require(leavesLen + proof.length - 1 == totalHashes, "MerkleProof: invalid multiproof");
bytes32[] memory hashes = new bytes32[](totalHashes);
uint256 leafPos = 0;
uint256 hashPos = 0;
uint256 proofPos = 0;
for (uint256 i = 0; i < totalHashes; i++) {
bytes32 a = leafPos < leavesLen ? leaves[leafPos++] : hashes[hashPos++];
bytes32 b = proofFlags[i] ? leafPos < leavesLen ? leaves[leafPos++] : hashes[hashPos++] : proof[proofPos++];
hashes[i] = _hashPair(a, b);
}
if (totalHashes > 0) {
return hashes[totalHashes - 1];
} else if (leavesLen > 0) {
return leaves[0];
} else {
return proof[0];
}
}
function processMultiProofCalldata(
bytes32[] calldata proof,
bool[] calldata proofFlags,
bytes32[] memory leaves
) internal pure returns (bytes32 merkleRoot) {
uint256 leavesLen = leaves.length;
uint256 totalHashes = proofFlags.length;
require(leavesLen + proof.length - 1 == totalHashes, "MerkleProof: invalid multiproof");
bytes32[] memory hashes = new bytes32[](totalHashes);
uint256 leafPos = 0;
uint256 hashPos = 0;
uint256 proofPos = 0;
for (uint256 i = 0; i < totalHashes; i++) {
bytes32 a = leafPos < leavesLen ? leaves[leafPos++] : hashes[hashPos++];
bytes32 b = proofFlags[i] ? leafPos < leavesLen ? leaves[leafPos++] : hashes[hashPos++] : proof[proofPos++];
hashes[i] = _hashPair(a, b);
}
if (totalHashes > 0) {
return hashes[totalHashes - 1];
} else if (leavesLen > 0) {
return leaves[0];
} else {
return proof[0];
}
}
function _hashPair(bytes32 a, bytes32 b) private pure returns (bytes32) {
return a < b ? _efficientHash(a, b) : _efficientHash(b, a);
}
function _efficientHash(bytes32 a, bytes32 b) private pure returns (bytes32 value) {
assembly {
mstore(0x00, a)
mstore(0x20, b)
value := keccak256(0x00, 0x40)
}
}
}
文件 6 的 8:Minter.sol
pragma solidity ^0.8.17;
import "@openzeppelin/contracts/access/Ownable.sol";
import "@openzeppelin/contracts/security/ReentrancyGuard.sol";
import "@openzeppelin/contracts/token/ERC721/IERC721Receiver.sol";
import "@openzeppelin/contracts/utils/cryptography/MerkleProof.sol";
import "@openzeppelin/contracts/utils/Address.sol";
import "./interfaces/INishikigoi.sol";
contract Minter is Ownable, IERC721Receiver, ReentrancyGuard {
INishikigoi public nishikigoiNFTContract;
address public cushionAddress;
address private agentAddress;
uint256 public constant PUBLIC_PRICE = 0.03 ether;
uint256 public constant ALLOWLIST_PRICE = 0.025 ether;
uint256 public constant HOLDER_PRICE = 0.01 ether;
uint256 public constant PRICE = 0.03 ether;
bool public isPublicSaleActive;
bool public isAllowlistSaleActive;
bool public isHolderSaleActive;
bytes32 public allowlistMerkleRoot;
bytes32 public holderMerkleRoot;
mapping (address => uint256) public holderMinted;
mapping (uint256 => bytes32) private tokenIdToSeed;
enum Artist { Okazz, Raf, Ykxotkx }
event Minted(uint256 indexed _tokenId, Artist indexed _artist, bytes32 indexed _seed);
constructor(
address _cushionAddress,
address _targetAddress
) {
nishikigoiNFTContract = INishikigoi(_targetAddress);
cushionAddress = _cushionAddress;
}
function publicMint(
uint256[] memory _tokenIdList
) external payable nonReentrant {
require(isPublicSaleActive, "Minter: Public sale is not active");
require(_isValidTokenIdList(_tokenIdList), "Minter: Invalid token id list");
require(msg.value == PUBLIC_PRICE * _tokenIdList.length, "Minter: Incorrect payment amount");
_mintNFT(msg.sender, _tokenIdList);
}
function publicMintByAgent(
uint256[] memory _tokenIdList,
address _recipient
) external payable onlyAgent nonReentrant {
require(isPublicSaleActive, "Minter: Public sale is not active");
require(_isValidTokenIdList(_tokenIdList), "Minter: Invalid token id list");
require(msg.value == PUBLIC_PRICE * _tokenIdList.length, "Minter: Incorrect payment amount");
_mintNFT(_recipient, _tokenIdList);
}
function allowlistMint(
bytes32[] calldata _merkleProof,
uint256[] memory _tokenIdList
) external payable nonReentrant {
require(isAllowlistSaleActive, "Minter: Allowlist sale is not active");
require(_isValidTokenIdList(_tokenIdList), "Minter: Invalid token id list");
require(MerkleProof.verify(_merkleProof, allowlistMerkleRoot, keccak256(abi.encodePacked(msg.sender))), "Minter: Invalid Merkle Proof");
require(msg.value == ALLOWLIST_PRICE * _tokenIdList.length, "Minter: Incorrect payment amount");
_mintNFT(msg.sender, _tokenIdList);
}
function allowlistMintByAgent(
bytes32[] calldata _merkleProof,
uint256[] memory _tokenIdList,
address _recipient
) external payable onlyAgent nonReentrant {
require(isAllowlistSaleActive, "Minter: Allowlist sale is not active");
require(_isValidTokenIdList(_tokenIdList), "Minter: Invalid token id list");
require(MerkleProof.verify(_merkleProof, allowlistMerkleRoot, keccak256(abi.encodePacked(_recipient))), "Minter: Invalid Merkle Proof");
require(msg.value == ALLOWLIST_PRICE * _tokenIdList.length, "Minter: Incorrect payment amount");
_mintNFT(_recipient, _tokenIdList);
}
function holderMint(
bytes32[] calldata _merkleProof,
uint256 _quantity,
uint256[] memory _tokenIdList
) external payable nonReentrant {
require(isHolderSaleActive, "Minter: Holder sale is not active");
require(holderMinted[msg.sender] + _tokenIdList.length <= _quantity, "Minter: Exceeds the number of mints allowed");
require(_isValidTokenIdList(_tokenIdList), "Minter: Invalid token id list");
require(MerkleProof.verify(_merkleProof, holderMerkleRoot, keccak256(abi.encodePacked(msg.sender, _quantity))), "Minter: Invalid Merkle Proof");
require(msg.value == HOLDER_PRICE * _tokenIdList.length, "Minter: Incorrect payment amount");
_mintNFT(msg.sender, _tokenIdList);
holderMinted[msg.sender] += _tokenIdList.length;
}
function holderMintByAgent(
bytes32[] calldata _merkleProof,
uint256 _quantity,
uint256[] memory _tokenIdList,
address _recipient
) external payable onlyAgent nonReentrant {
require(isHolderSaleActive, "Minter: Holder sale is not active");
require(holderMinted[_recipient] + _tokenIdList.length <= _quantity, "Minter: Exceeds the number of mints allowed");
require(_isValidTokenIdList(_tokenIdList), "Minter: Invalid token id list");
require(MerkleProof.verify(_merkleProof, holderMerkleRoot, keccak256(abi.encodePacked(_recipient, _quantity))), "Minter: Invalid Merkle Proof");
require(msg.value == HOLDER_PRICE * _tokenIdList.length, "Minter: Incorrect payment amount");
_mintNFT(_recipient, _tokenIdList);
holderMinted[_recipient] += _tokenIdList.length;
}
function ownerMintByMintForPromotion(address _to, uint256 _quantity) external onlyOwner {
nishikigoiNFTContract.mintForPromotion(_to, _quantity);
}
function ownerMint(address _to, uint256[] memory _tokenIdList) external onlyOwner {
_overrideBuyBundle(_to, _tokenIdList);
}
modifier onlyAgent() {
require(msg.sender == agentAddress, "Minter: Invalid agent address");
_;
}
function _changeSaleState(bool _state) internal {
nishikigoiNFTContract.updateSaleStatus(_state);
}
function _overrideBuyBundle(address _to, uint256[] memory _tokenIdList) internal {
_changeSaleState(true);
nishikigoiNFTContract.buyBundle{value: PRICE * _tokenIdList.length}(_tokenIdList);
_changeSaleState(false);
for (uint256 i = 0; i < _tokenIdList.length; i++) {
_transfer(_to, _tokenIdList[i]);
emit Minted(_tokenIdList[i], getArtistFor3rdSale(_tokenIdList[i]), tokenIdToSeed[_tokenIdList[i]]);
}
}
function _transfer(address _to, uint256 tokenId) internal {
nishikigoiNFTContract.safeTransferFrom(address(this), cushionAddress, tokenId);
nishikigoiNFTContract.safeTransferFrom(cushionAddress, _to, tokenId);
}
function _generateSeed(address _addr, uint256[] memory _tokenIdList) internal {
for (uint256 i = 0; i < _tokenIdList.length; i++) {
tokenIdToSeed[_tokenIdList[i]] = keccak256(abi.encodePacked(_tokenIdList[i], block.number, blockhash(block.number - 1), _addr));
}
}
function _mintNFT(address _addr, uint256[] memory _tokenIdList) internal {
_generateSeed(_addr, _tokenIdList);
_overrideBuyBundle(_addr, _tokenIdList);
}
function _isValidTokenIdList(
uint256[] memory _tokenIdList
) internal pure returns (bool) {
for (uint256 i = 0; i < _tokenIdList.length; i++) {
if (_tokenIdList[i] >= 8666) {
return false;
}
}
return true;
}
function overrideTransferOwnership(address _to) public onlyOwner {
require(!Address.isContract(_to), "Minter: Cannot transfer ownership to a contract");
bool anySaleActive = isHolderSaleActive || isAllowlistSaleActive || isPublicSaleActive;
require(!anySaleActive, "Minter: Sale is active");
nishikigoiNFTContract.transferOwnership(_to);
}
function setIsHolderSaleActive(bool _state) external onlyOwner {
isHolderSaleActive = _state;
}
function setIsAllowlistSaleActive(bool _state) external onlyOwner {
isAllowlistSaleActive = _state;
}
function setIsPublicSaleActive(bool _state) external onlyOwner {
isPublicSaleActive = _state;
}
function setMerkleRoot(
bytes32 _holderMerkleRoot,
bytes32 _allowlistMerkleRoot
) external onlyOwner {
holderMerkleRoot = _holderMerkleRoot;
allowlistMerkleRoot = _allowlistMerkleRoot;
}
function setBaseURI(string memory _newBaseURI) external onlyOwner {
nishikigoiNFTContract.updateBaseURI(_newBaseURI);
}
function setAgentAddress(address _agentAddress) external onlyOwner {
agentAddress = _agentAddress;
}
function setCushionAddress(address _cushionAddress) external onlyOwner {
cushionAddress = _cushionAddress;
}
function getSeed(uint256 tokenId) external view returns (bytes32) {
return tokenIdToSeed[tokenId];
}
function getArtistFor3rdSale(uint256 tokenId) public pure returns (Artist) {
if (tokenId <= 1937) {
return Artist.Okazz;
} else if (tokenId <= 3854) {
return Artist.Raf;
} else {
return Artist.Ykxotkx;
}
}
function withdraw(address payable _receiptAddress) external onlyOwner {
require(_receiptAddress != address(0), "Minter: Invalid receipt address");
_receiptAddress.transfer(address(this).balance);
nishikigoiNFTContract.withdrawETH();
}
function withdrawOfNishikigoi() external onlyOwner {
nishikigoiNFTContract.withdrawETH();
}
function onERC721Received(address, address, uint256, bytes calldata) external pure override returns (bytes4) {
return this.onERC721Received.selector;
}
receive() external payable {}
}
文件 7 的 8:Ownable.sol
pragma solidity ^0.8.0;
import "../utils/Context.sol";
abstract contract Ownable is Context {
address private _owner;
event OwnershipTransferred(address indexed previousOwner, address indexed newOwner);
constructor() {
_transferOwnership(_msgSender());
}
modifier onlyOwner() {
_checkOwner();
_;
}
function owner() public view virtual returns (address) {
return _owner;
}
function _checkOwner() internal view virtual {
require(owner() == _msgSender(), "Ownable: caller is not the owner");
}
function renounceOwnership() public virtual onlyOwner {
_transferOwnership(address(0));
}
function transferOwnership(address newOwner) public virtual onlyOwner {
require(newOwner != address(0), "Ownable: new owner is the zero address");
_transferOwnership(newOwner);
}
function _transferOwnership(address newOwner) internal virtual {
address oldOwner = _owner;
_owner = newOwner;
emit OwnershipTransferred(oldOwner, newOwner);
}
}
文件 8 的 8:ReentrancyGuard.sol
pragma solidity ^0.8.0;
abstract contract ReentrancyGuard {
uint256 private constant _NOT_ENTERED = 1;
uint256 private constant _ENTERED = 2;
uint256 private _status;
constructor() {
_status = _NOT_ENTERED;
}
modifier nonReentrant() {
_nonReentrantBefore();
_;
_nonReentrantAfter();
}
function _nonReentrantBefore() private {
require(_status != _ENTERED, "ReentrancyGuard: reentrant call");
_status = _ENTERED;
}
function _nonReentrantAfter() private {
_status = _NOT_ENTERED;
}
}
{
"compilationTarget": {
"contracts/Minter.sol": "Minter"
},
"evmVersion": "london",
"libraries": {},
"metadata": {
"bytecodeHash": "ipfs"
},
"optimizer": {
"enabled": false,
"runs": 200
},
"remappings": []
}
[{"inputs":[{"internalType":"address","name":"_cushionAddress","type":"address"},{"internalType":"address","name":"_targetAddress","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"uint256","name":"_tokenId","type":"uint256"},{"indexed":true,"internalType":"enum Minter.Artist","name":"_artist","type":"uint8"},{"indexed":true,"internalType":"bytes32","name":"_seed","type":"bytes32"}],"name":"Minted","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"},{"inputs":[],"name":"ALLOWLIST_PRICE","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"HOLDER_PRICE","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"PRICE","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"PUBLIC_PRICE","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"allowlistMerkleRoot","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32[]","name":"_merkleProof","type":"bytes32[]"},{"internalType":"uint256[]","name":"_tokenIdList","type":"uint256[]"}],"name":"allowlistMint","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"bytes32[]","name":"_merkleProof","type":"bytes32[]"},{"internalType":"uint256[]","name":"_tokenIdList","type":"uint256[]"},{"internalType":"address","name":"_recipient","type":"address"}],"name":"allowlistMintByAgent","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"cushionAddress","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getArtistFor3rdSale","outputs":[{"internalType":"enum Minter.Artist","name":"","type":"uint8"}],"stateMutability":"pure","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getSeed","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"holderMerkleRoot","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32[]","name":"_merkleProof","type":"bytes32[]"},{"internalType":"uint256","name":"_quantity","type":"uint256"},{"internalType":"uint256[]","name":"_tokenIdList","type":"uint256[]"}],"name":"holderMint","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"bytes32[]","name":"_merkleProof","type":"bytes32[]"},{"internalType":"uint256","name":"_quantity","type":"uint256"},{"internalType":"uint256[]","name":"_tokenIdList","type":"uint256[]"},{"internalType":"address","name":"_recipient","type":"address"}],"name":"holderMintByAgent","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"holderMinted","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"isAllowlistSaleActive","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"isHolderSaleActive","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"isPublicSaleActive","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"nishikigoiNFTContract","outputs":[{"internalType":"contract INishikigoi","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"},{"internalType":"address","name":"","type":"address"},{"internalType":"uint256","name":"","type":"uint256"},{"internalType":"bytes","name":"","type":"bytes"}],"name":"onERC721Received","outputs":[{"internalType":"bytes4","name":"","type":"bytes4"}],"stateMutability":"pure","type":"function"},{"inputs":[{"internalType":"address","name":"_to","type":"address"}],"name":"overrideTransferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_to","type":"address"},{"internalType":"uint256[]","name":"_tokenIdList","type":"uint256[]"}],"name":"ownerMint","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_to","type":"address"},{"internalType":"uint256","name":"_quantity","type":"uint256"}],"name":"ownerMintByMintForPromotion","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256[]","name":"_tokenIdList","type":"uint256[]"}],"name":"publicMint","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"uint256[]","name":"_tokenIdList","type":"uint256[]"},{"internalType":"address","name":"_recipient","type":"address"}],"name":"publicMintByAgent","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_agentAddress","type":"address"}],"name":"setAgentAddress","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"_newBaseURI","type":"string"}],"name":"setBaseURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_cushionAddress","type":"address"}],"name":"setCushionAddress","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bool","name":"_state","type":"bool"}],"name":"setIsAllowlistSaleActive","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bool","name":"_state","type":"bool"}],"name":"setIsHolderSaleActive","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bool","name":"_state","type":"bool"}],"name":"setIsPublicSaleActive","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"_holderMerkleRoot","type":"bytes32"},{"internalType":"bytes32","name":"_allowlistMerkleRoot","type":"bytes32"}],"name":"setMerkleRoot","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address payable","name":"_receiptAddress","type":"address"}],"name":"withdraw","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"withdrawOfNishikigoi","outputs":[],"stateMutability":"nonpayable","type":"function"},{"stateMutability":"payable","type":"receive"}]