编译器
0.8.18+commit.87f61d96
文件 1 的 13: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;
}
}
文件 2 的 13:ERC20.sol
pragma solidity ^0.8.0;
import "./IERC20.sol";
import "./extensions/IERC20Metadata.sol";
import "../../utils/Context.sol";
contract ERC20 is Context, IERC20, IERC20Metadata {
mapping(address => uint256) private _balances;
mapping(address => mapping(address => uint256)) private _allowances;
uint256 private _totalSupply;
string private _name;
string private _symbol;
constructor(string memory name_, string memory symbol_) {
_name = name_;
_symbol = symbol_;
}
function name() public view virtual override returns (string memory) {
return _name;
}
function symbol() public view virtual override returns (string memory) {
return _symbol;
}
function decimals() public view virtual override returns (uint8) {
return 18;
}
function totalSupply() public view virtual override returns (uint256) {
return _totalSupply;
}
function balanceOf(address account) public view virtual override returns (uint256) {
return _balances[account];
}
function transfer(address to, uint256 amount) public virtual override returns (bool) {
address owner = _msgSender();
_transfer(owner, to, amount);
return true;
}
function allowance(address owner, address spender) public view virtual override returns (uint256) {
return _allowances[owner][spender];
}
function approve(address spender, uint256 amount) public virtual override returns (bool) {
address owner = _msgSender();
_approve(owner, spender, amount);
return true;
}
function transferFrom(address from, address to, uint256 amount) public virtual override returns (bool) {
address spender = _msgSender();
_spendAllowance(from, spender, amount);
_transfer(from, to, amount);
return true;
}
function increaseAllowance(address spender, uint256 addedValue) public virtual returns (bool) {
address owner = _msgSender();
_approve(owner, spender, allowance(owner, spender) + addedValue);
return true;
}
function decreaseAllowance(address spender, uint256 subtractedValue) public virtual returns (bool) {
address owner = _msgSender();
uint256 currentAllowance = allowance(owner, spender);
require(currentAllowance >= subtractedValue, "ERC20: decreased allowance below zero");
unchecked {
_approve(owner, spender, currentAllowance - subtractedValue);
}
return true;
}
function _transfer(address from, address to, uint256 amount) internal virtual {
require(from != address(0), "ERC20: transfer from the zero address");
require(to != address(0), "ERC20: transfer to the zero address");
_beforeTokenTransfer(from, to, amount);
uint256 fromBalance = _balances[from];
require(fromBalance >= amount, "ERC20: transfer amount exceeds balance");
unchecked {
_balances[from] = fromBalance - amount;
_balances[to] += amount;
}
emit Transfer(from, to, amount);
_afterTokenTransfer(from, to, amount);
}
function _mint(address account, uint256 amount) internal virtual {
require(account != address(0), "ERC20: mint to the zero address");
_beforeTokenTransfer(address(0), account, amount);
_totalSupply += amount;
unchecked {
_balances[account] += amount;
}
emit Transfer(address(0), account, amount);
_afterTokenTransfer(address(0), account, amount);
}
function _burn(address account, uint256 amount) internal virtual {
require(account != address(0), "ERC20: burn from the zero address");
_beforeTokenTransfer(account, address(0), amount);
uint256 accountBalance = _balances[account];
require(accountBalance >= amount, "ERC20: burn amount exceeds balance");
unchecked {
_balances[account] = accountBalance - amount;
_totalSupply -= amount;
}
emit Transfer(account, address(0), amount);
_afterTokenTransfer(account, address(0), amount);
}
function _approve(address owner, address spender, uint256 amount) internal virtual {
require(owner != address(0), "ERC20: approve from the zero address");
require(spender != address(0), "ERC20: approve to the zero address");
_allowances[owner][spender] = amount;
emit Approval(owner, spender, amount);
}
function _spendAllowance(address owner, address spender, uint256 amount) internal virtual {
uint256 currentAllowance = allowance(owner, spender);
if (currentAllowance != type(uint256).max) {
require(currentAllowance >= amount, "ERC20: insufficient allowance");
unchecked {
_approve(owner, spender, currentAllowance - amount);
}
}
}
function _beforeTokenTransfer(address from, address to, uint256 amount) internal virtual {}
function _afterTokenTransfer(address from, address to, uint256 amount) internal virtual {}
}
文件 3 的 13:ICustomizedCondition.sol
pragma solidity ^0.8.0;
interface ICustomizedCondition {
function getStatus(address _tokenAddress, address _sender) external view returns(bool);
}
文件 4 的 13:ICustomizedVesting.sol
pragma solidity ^0.8.0;
interface ICustomizedVesting {
function addAllocation(address recipient, uint amount) external;
function removeAllocation(address recipient, uint amount) external;
function claim() external;
function available(address address_) external view returns (uint);
function released(address address_) external view returns (uint);
function outstanding(address address_) external view returns (uint);
function setTokenAddress(address _tokenAddress) external;
}
文件 5 的 13:IERC20.sol
pragma solidity ^0.8.0;
interface IERC20 {
event Transfer(address indexed from, address indexed to, uint256 value);
event Approval(address indexed owner, address indexed spender, uint256 value);
function totalSupply() external view returns (uint256);
function balanceOf(address account) external view returns (uint256);
function transfer(address to, uint256 amount) external returns (bool);
function allowance(address owner, address spender) external view returns (uint256);
function approve(address spender, uint256 amount) external returns (bool);
function transferFrom(address from, address to, uint256 amount) external returns (bool);
}
文件 6 的 13:IERC20Metadata.sol
pragma solidity ^0.8.0;
import "../IERC20.sol";
interface IERC20Metadata is IERC20 {
function name() external view returns (string memory);
function symbol() external view returns (string memory);
function decimals() external view returns (uint8);
}
文件 7 的 13:IInitialFairOffering.sol
pragma solidity ^0.8.0;
import "./IInscriptionFactory.sol";
interface IInitialFairOffering {
function initialize(IInscriptionFactory.Token memory _token) external;
function setMintData(address _addr, uint128 _ethAmount, uint128 _tokenAmount, uint128 _tokenLiquidity) external;
function liquidityAdded() external view returns(bool);
}
文件 8 的 13:IInscription.sol
pragma solidity ^0.8.0;
import "./ICustomizedCondition.sol";
import "./ICustomizedVesting.sol";
interface IInscription {
struct FERC20 {
uint128 cap;
uint128 limitPerMint;
address onlyContractAddress;
uint32 maxMintSize;
uint64 inscriptionId;
uint128 onlyMinQuantity;
uint128 crowdFundingRate;
address whitelist;
uint40 freezeTime;
uint16 fundingCommission;
uint16 liquidityTokenPercent;
bool isIFOMode;
address payable inscriptionFactory;
uint128 baseFee;
address payable ifoContractAddress;
uint96 maxRollups;
ICustomizedCondition customizedConditionContractAddress;
ICustomizedVesting customizedVestingContractAddress;
}
function mint(address _to) payable external;
function getFerc20Data() external view returns(FERC20 memory);
function balanceOf(address owner) external view returns(uint256);
function totalSupply() external view returns(uint256);
function allowance(address owner, address spender) external view returns(uint256);
function totalRollups() external view returns(uint256);
function burn(address account, uint256 amount) external;
function burnFrom(address account, uint256 amount) external;
}
文件 9 的 13:IInscriptionFactory.sol
pragma solidity ^0.8.0;
interface IInscriptionFactory {
struct Token {
uint128 cap;
uint128 limitPerMint;
address onlyContractAddress;
uint32 maxMintSize;
uint64 inscriptionId;
uint128 onlyMinQuantity;
uint128 crowdFundingRate;
address addr;
uint40 freezeTime;
uint40 timestamp;
uint16 liquidityTokenPercent;
address ifoContractAddress;
uint16 refundFee;
uint40 startTime;
uint40 duration;
address customizedConditionContractAddress;
uint96 maxRollups;
address deployer;
string tick;
uint16 liquidityEtherPercent;
string name;
address customizedVestingContractAddress;
bool isIFOMode;
bool isWhitelist;
bool isVesting;
bool isVoted;
string logoUrl;
}
function deploy(
string memory _name,
string memory _tick,
uint256 _cap,
uint256 _limitPerMint,
uint256 _maxMintSize,
uint256 _freezeTime,
address _onlyContractAddress,
uint256 _onlyMinQuantity,
uint256 _crowdFundingRate,
address _crowdFundingAddress
) external returns (address _inscriptionAddress);
function updateStockTick(string memory _tick, bool _status) external;
function transferOwnership(address newOwner) external;
function getIncriptionIdByAddress(address _addr) external view returns(uint256);
function getIncriptionByAddress(address _addr) external view returns(Token memory tokens, uint256 totalSupplies, uint256 totalRollups);
function fundingCommission() external view returns(uint16);
function isExisting(string memory _tick) external view returns(bool);
function isLiquidityAdded(address _addr) external view returns(bool);
}
文件 10 的 13:IWhitelist.sol
pragma solidity ^0.8.0;
interface IWhitelist {
function getStatus(address _tokenAddress, address _participant) external view returns(bool);
}
文件 11 的 13:InscriptionV3.sol
pragma solidity ^0.8.18;
import "@openzeppelin/contracts/token/ERC20/ERC20.sol";
import "./libs/Logarithm.sol";
import "./libs/TransferHelper.sol";
import "./interfaces/IWhitelist.sol";
import "./interfaces/IInitialFairOffering.sol";
import "./interfaces/IInscription.sol";
import "./interfaces/ICustomizedCondition.sol";
import "./interfaces/ICustomizedVesting.sol";
interface ICommonToken {
function balanceOf(address owner) external returns(uint256);
}
contract Inscription is ERC20 {
using Logarithm for int256;
IInscription.FERC20 private ferc20;
mapping(address => uint256) private lastMintTimestamp;
mapping(address => uint256) private lastMintFee;
uint96 public totalRollups;
event Mint(address sender, address to, uint amount, bool isVesting);
event Burn(address sender, address to, uint amount);
constructor(
string memory _name,
string memory _tick,
uint128 _cap,
uint128 _limitPerMint,
uint64 _inscriptionId,
uint32 _maxMintSize,
uint40 _freezeTime,
address _onlyContractAddress,
uint128 _onlyMinQuantity,
uint96 _baseFee,
uint16 _fundingCommission,
uint128 _crowdFundingRate,
address _whitelist,
bool _isIFOMode,
uint16 _liquidityTokenPercent,
address payable _ifoContractAddress,
address payable _inscriptionFactory,
uint96 _maxRollups,
address _customizedConditionContractAddress,
address _customizedVestingContractAddress
) ERC20(_name, _tick) {
require(_cap >= _limitPerMint, "Limit per mint exceed cap");
ferc20.cap = _cap;
ferc20.limitPerMint = _limitPerMint;
ferc20.inscriptionId = _inscriptionId;
ferc20.maxMintSize = _maxMintSize;
ferc20.freezeTime = _freezeTime;
ferc20.onlyContractAddress = _onlyContractAddress;
ferc20.onlyMinQuantity = _onlyMinQuantity;
ferc20.baseFee = _baseFee;
ferc20.fundingCommission = _fundingCommission;
ferc20.crowdFundingRate = _crowdFundingRate;
ferc20.whitelist = _whitelist;
ferc20.isIFOMode = _isIFOMode;
ferc20.ifoContractAddress = _ifoContractAddress;
ferc20.inscriptionFactory = _inscriptionFactory;
ferc20.liquidityTokenPercent = _liquidityTokenPercent;
ferc20.maxRollups = _maxRollups;
ferc20.customizedConditionContractAddress = ICustomizedCondition(_customizedConditionContractAddress);
ferc20.customizedVestingContractAddress = ICustomizedVesting(_customizedVestingContractAddress);
}
function mint(address _to) payable public {
require(totalRollups + 1 <= ferc20.maxRollups, "Touched cap");
require(ferc20.onlyContractAddress == address(0x0)
|| ICommonToken(ferc20.onlyContractAddress).balanceOf(msg.sender) >= ferc20.onlyMinQuantity, "You don't have required assets");
require(ferc20.whitelist == address(0x0)
|| IWhitelist(ferc20.whitelist).getStatus(address(this), msg.sender), "You are not in whitelist");
require(address(ferc20.customizedConditionContractAddress) == address(0x0)
|| ferc20.customizedConditionContractAddress.getStatus(address(this), msg.sender), "Customized condition not satisfied");
require(lastMintTimestamp[msg.sender] < block.timestamp, "Timestamp fail");
uint256 tokenForInitialLiquidity = ferc20.isIFOMode ? ferc20.limitPerMint * ferc20.liquidityTokenPercent / (10000 - ferc20.liquidityTokenPercent) : 0;
if(lastMintTimestamp[msg.sender] + ferc20.freezeTime > block.timestamp) {
lastMintFee[msg.sender] = lastMintFee[msg.sender] == 0 ? ferc20.baseFee : lastMintFee[msg.sender] * 2;
require(msg.value >= ferc20.crowdFundingRate + lastMintFee[msg.sender], "Send ETH as fee and crowdfunding");
if(ferc20.crowdFundingRate > 0) _dispatchFunding(_to, ferc20.crowdFundingRate, ferc20.limitPerMint, tokenForInitialLiquidity);
if(msg.value - ferc20.crowdFundingRate > 0) TransferHelper.safeTransferETH(ferc20.inscriptionFactory, msg.value - ferc20.crowdFundingRate);
} else {
if(ferc20.crowdFundingRate > 0) {
require(msg.value >= ferc20.crowdFundingRate, "Send ETH as crowdfunding");
if(msg.value - ferc20.crowdFundingRate > 0) TransferHelper.safeTransferETH(ferc20.inscriptionFactory, msg.value - ferc20.crowdFundingRate);
_dispatchFunding(_to, ferc20.crowdFundingRate, ferc20.limitPerMint, tokenForInitialLiquidity);
}
lastMintFee[msg.sender] = 0;
lastMintTimestamp[msg.sender] = block.timestamp;
}
if(address(ferc20.customizedVestingContractAddress) == address(0x0)) {
_mint(_to, ferc20.limitPerMint);
emit Mint(msg.sender, _to, ferc20.limitPerMint, false);
} else {
_mint(address(ferc20.customizedVestingContractAddress), ferc20.limitPerMint);
emit Mint(msg.sender, address(ferc20.customizedVestingContractAddress), ferc20.limitPerMint, true);
ferc20.customizedVestingContractAddress.addAllocation(_to, ferc20.limitPerMint);
}
if(tokenForInitialLiquidity > 0) _mint(ferc20.ifoContractAddress, tokenForInitialLiquidity);
totalRollups++;
}
function batchMint(address _to, uint32 _num) payable public {
require(_num <= ferc20.maxMintSize, "exceed max mint size");
require(totalRollups + _num <= ferc20.maxRollups, "Touch cap");
require(ferc20.freezeTime == 0, "Batch mint only for non-frozen token");
require(ferc20.onlyContractAddress == address(0x0)
|| ICommonToken(ferc20.onlyContractAddress).balanceOf(msg.sender) >= ferc20.onlyMinQuantity, "You don't have required assets");
require(ferc20.whitelist == address(0x0)
|| IWhitelist(ferc20.whitelist).getStatus(address(this), msg.sender), "You are not in whitelist");
require(address(ferc20.customizedConditionContractAddress) == address(0x0)
|| ferc20.customizedConditionContractAddress.getStatus(address(this), msg.sender), "Customized condition not satisfied");
uint256 tokenForInitialLiquidity = ferc20.isIFOMode ? ferc20.limitPerMint * ferc20.liquidityTokenPercent / (10000 - ferc20.liquidityTokenPercent) : 0;
if(ferc20.crowdFundingRate > 0) {
require(msg.value >= ferc20.crowdFundingRate * _num, "Crowdfunding ETH not enough");
if(msg.value - ferc20.crowdFundingRate * _num > 0) TransferHelper.safeTransferETH(ferc20.inscriptionFactory, msg.value - ferc20.crowdFundingRate * _num);
_dispatchFunding(_to, ferc20.crowdFundingRate * _num , ferc20.limitPerMint * _num, tokenForInitialLiquidity * _num);
}
for(uint256 i = 0; i < _num; i++) {
if(address(ferc20.customizedVestingContractAddress) == address(0x0)) {
_mint(_to, ferc20.limitPerMint);
emit Mint(msg.sender, _to, ferc20.limitPerMint, false);
} else {
_mint(address(ferc20.customizedVestingContractAddress), ferc20.limitPerMint);
emit Mint(msg.sender, address(ferc20.customizedVestingContractAddress), ferc20.limitPerMint, true);
ferc20.customizedVestingContractAddress.addAllocation(_to, ferc20.limitPerMint);
}
if(tokenForInitialLiquidity > 0) {
_mint(ferc20.ifoContractAddress, tokenForInitialLiquidity);
}
}
totalRollups = totalRollups + _num;
}
function getMintFee(address _addr) public view returns(uint256 mintedTimes, uint256 nextMintFee) {
if(lastMintTimestamp[_addr] + ferc20.freezeTime > block.timestamp) {
int256 scale = 1e18;
int256 halfScale = 5e17;
nextMintFee = lastMintFee[_addr] == 0 ? ferc20.baseFee : lastMintFee[_addr] * 2;
mintedTimes = uint256((Logarithm.log2(int256(nextMintFee / ferc20.baseFee) * scale, scale, halfScale) + 1) / scale) + 1;
}
}
function getFerc20Data() public view returns(IInscription.FERC20 memory) {
return ferc20;
}
function getLastMintTimestamp(address _addr) public view returns(uint256) {
return lastMintTimestamp[_addr];
}
function getLastMintFee(address _addr) public view returns(uint256) {
return lastMintFee[_addr];
}
function transfer(address to, uint256 amount) public virtual override returns (bool) {
require(!ferc20.isIFOMode || IInitialFairOffering(ferc20.ifoContractAddress).liquidityAdded(),
"Only workable after public liquidity added");
address owner = _msgSender();
_transfer(owner, to, amount);
return true;
}
function transferFrom(
address from,
address to,
uint256 amount
) public virtual override returns (bool) {
require(!ferc20.isIFOMode || IInitialFairOffering(ferc20.ifoContractAddress).liquidityAdded(),
"Only workable after public liquidity added");
address spender = _msgSender();
_spendAllowance(from, spender, amount);
_transfer(from, to, amount);
return true;
}
function burn(address account, uint256 amount) public {
require(account == msg.sender, "only owner can burn");
require(balanceOf(account) >= amount, "balance not enough");
_burn(account, amount);
emit Burn(msg.sender, account, amount);
}
function burnFrom(address account, uint256 amount) public {
uint256 currentAllowance = allowance(account, msg.sender);
require(currentAllowance != type(uint256).max, "allowance exceed max");
require(currentAllowance >= amount, "allowance less than amount");
_approve(account, msg.sender, currentAllowance - amount);
_burn(account, amount);
emit Burn(msg.sender, account, amount);
}
function _dispatchFunding(address _to, uint256 _ethAmount, uint256 _tokenAmount, uint256 _tokenForLiquidity) private {
require(ferc20.ifoContractAddress > address(0x0), "ifo address zero");
uint256 commission = _ethAmount * ferc20.fundingCommission / 10000;
TransferHelper.safeTransferETH(ferc20.ifoContractAddress, _ethAmount - commission);
if(commission > 0) TransferHelper.safeTransferETH(ferc20.inscriptionFactory, commission);
IInitialFairOffering(ferc20.ifoContractAddress).setMintData(
_to,
uint128(_ethAmount - commission),
uint128(_tokenAmount),
uint128(_tokenForLiquidity)
);
}
}
文件 12 的 13:Logarithm.sol
pragma solidity ^0.8.0;
library Logarithm {
function mostSignificantBit(uint256 x) public pure returns (uint256 msb) {
if (x >= 2**128) {
x >>= 128;
msb += 128;
}
if (x >= 2**64) {
x >>= 64;
msb += 64;
}
if (x >= 2**32) {
x >>= 32;
msb += 32;
}
if (x >= 2**16) {
x >>= 16;
msb += 16;
}
if (x >= 2**8) {
x >>= 8;
msb += 8;
}
if (x >= 2**4) {
x >>= 4;
msb += 4;
}
if (x >= 2**2) {
x >>= 2;
msb += 2;
}
if (x >= 2**1) {
msb += 1;
}
}
function log2(int256 x, int256 scale, int256 halfScale) public pure returns (int256 result) {
require(x > 0);
unchecked {
int256 sign;
if (x >= scale) {
sign = 1;
} else {
sign = -1;
assembly {
x := div(1000000000000000000000000000000000000, x)
}
}
uint256 n = mostSignificantBit(uint256(x / scale));
result = int256(n) * scale;
int256 y = x >> n;
if (y == scale) {
return result * sign;
}
for (int256 delta = int256(halfScale); delta > 0; delta >>= 1) {
y = (y * y) / scale;
if (y >= 2 * scale) {
result += delta;
y >>= 1;
}
}
result *= sign;
}
}
}
文件 13 的 13:TransferHelper.sol
pragma solidity >=0.6.0;
library TransferHelper {
function safeApprove(
address token,
address to,
uint256 value
) internal {
(bool success, bytes memory data) = token.call(abi.encodeWithSelector(0x095ea7b3, to, value));
require(
success && (data.length == 0 || abi.decode(data, (bool))),
'TransferHelper::safeApprove: approve failed'
);
}
function safeTransfer(
address token,
address to,
uint256 value
) internal {
(bool success, bytes memory data) = token.call(abi.encodeWithSelector(0xa9059cbb, to, value));
require(
success && (data.length == 0 || abi.decode(data, (bool))),
'TransferHelper::safeTransfer: transfer failed'
);
}
function safeTransferFrom(
address token,
address from,
address to,
uint256 value
) internal {
(bool success, bytes memory data) = token.call(abi.encodeWithSelector(0x23b872dd, from, to, value));
require(
success && (data.length == 0 || abi.decode(data, (bool))),
'TransferHelper::transferFrom: transferFrom failed'
);
}
function safeTransferETH(address to, uint256 value) internal {
(bool success, ) = to.call{value: value}(new bytes(0));
require(success, 'TransferHelper::safeTransferETH: ETH transfer failed');
}
}
{
"compilationTarget": {
"contracts/InscriptionV3.sol": "Inscription"
},
"evmVersion": "paris",
"libraries": {
"contracts/libs/Logarithm.sol:Logarithm": "0xc035c72f7317d2d18e4a2f7479f79ef288494c9e"
},
"metadata": {
"bytecodeHash": "ipfs"
},
"optimizer": {
"enabled": true,
"runs": 200
},
"remappings": [],
"viaIR": true
}
[{"inputs":[{"internalType":"string","name":"_name","type":"string"},{"internalType":"string","name":"_tick","type":"string"},{"internalType":"uint128","name":"_cap","type":"uint128"},{"internalType":"uint128","name":"_limitPerMint","type":"uint128"},{"internalType":"uint64","name":"_inscriptionId","type":"uint64"},{"internalType":"uint32","name":"_maxMintSize","type":"uint32"},{"internalType":"uint40","name":"_freezeTime","type":"uint40"},{"internalType":"address","name":"_onlyContractAddress","type":"address"},{"internalType":"uint128","name":"_onlyMinQuantity","type":"uint128"},{"internalType":"uint96","name":"_baseFee","type":"uint96"},{"internalType":"uint16","name":"_fundingCommission","type":"uint16"},{"internalType":"uint128","name":"_crowdFundingRate","type":"uint128"},{"internalType":"address","name":"_whitelist","type":"address"},{"internalType":"bool","name":"_isIFOMode","type":"bool"},{"internalType":"uint16","name":"_liquidityTokenPercent","type":"uint16"},{"internalType":"address payable","name":"_ifoContractAddress","type":"address"},{"internalType":"address payable","name":"_inscriptionFactory","type":"address"},{"internalType":"uint96","name":"_maxRollups","type":"uint96"},{"internalType":"address","name":"_customizedConditionContractAddress","type":"address"},{"internalType":"address","name":"_customizedVestingContractAddress","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"spender","type":"address"},{"indexed":false,"internalType":"uint256","name":"value","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"sender","type":"address"},{"indexed":false,"internalType":"address","name":"to","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"Burn","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"sender","type":"address"},{"indexed":false,"internalType":"address","name":"to","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"},{"indexed":false,"internalType":"bool","name":"isVesting","type":"bool"}],"name":"Mint","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":false,"internalType":"uint256","name":"value","type":"uint256"}],"name":"Transfer","type":"event"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"spender","type":"address"}],"name":"allowance","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"approve","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_to","type":"address"},{"internalType":"uint32","name":"_num","type":"uint32"}],"name":"batchMint","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"burn","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"burnFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"decimals","outputs":[{"internalType":"uint8","name":"","type":"uint8"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"subtractedValue","type":"uint256"}],"name":"decreaseAllowance","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"getFerc20Data","outputs":[{"components":[{"internalType":"uint128","name":"cap","type":"uint128"},{"internalType":"uint128","name":"limitPerMint","type":"uint128"},{"internalType":"address","name":"onlyContractAddress","type":"address"},{"internalType":"uint32","name":"maxMintSize","type":"uint32"},{"internalType":"uint64","name":"inscriptionId","type":"uint64"},{"internalType":"uint128","name":"onlyMinQuantity","type":"uint128"},{"internalType":"uint128","name":"crowdFundingRate","type":"uint128"},{"internalType":"address","name":"whitelist","type":"address"},{"internalType":"uint40","name":"freezeTime","type":"uint40"},{"internalType":"uint16","name":"fundingCommission","type":"uint16"},{"internalType":"uint16","name":"liquidityTokenPercent","type":"uint16"},{"internalType":"bool","name":"isIFOMode","type":"bool"},{"internalType":"address payable","name":"inscriptionFactory","type":"address"},{"internalType":"uint128","name":"baseFee","type":"uint128"},{"internalType":"address payable","name":"ifoContractAddress","type":"address"},{"internalType":"uint96","name":"maxRollups","type":"uint96"},{"internalType":"contract ICustomizedCondition","name":"customizedConditionContractAddress","type":"address"},{"internalType":"contract ICustomizedVesting","name":"customizedVestingContractAddress","type":"address"}],"internalType":"struct IInscription.FERC20","name":"","type":"tuple"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_addr","type":"address"}],"name":"getLastMintFee","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_addr","type":"address"}],"name":"getLastMintTimestamp","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_addr","type":"address"}],"name":"getMintFee","outputs":[{"internalType":"uint256","name":"mintedTimes","type":"uint256"},{"internalType":"uint256","name":"nextMintFee","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"addedValue","type":"uint256"}],"name":"increaseAllowance","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_to","type":"address"}],"name":"mint","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalRollups","outputs":[{"internalType":"uint96","name":"","type":"uint96"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"transfer","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"transferFrom","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"}]