编译器
0.8.21+commit.d9974bed
文件 1 的 11:AdminControl.sol
pragma solidity 0.8.21;
import "../interfaces/LiquidifyV3Interface.sol";
import "@openzeppelin/contracts/utils/ReentrancyGuard.sol";
contract AdminControl is ReentrancyGuard {
LiquidifyV3FactoryInterface public factory;
address public owner;
address public feeReceiver;
uint256 public creatorSellFee = 0;
mapping(address => bool) public liquidityPools;
event SetLiquidityPool(address indexed lp, bool status);
event ChangeOwner(address indexed newOwner);
event ReduceSellFee(uint256 newFee);
event SetFeeReceiver(address indexed newFeeReceiver);
event RenounceOwnership();
constructor(address _factoryAddress) {
factory = LiquidifyV3FactoryInterface(_factoryAddress);
}
modifier onlyOwner() {
require(msg.sender == owner, "Only Owner");
_;
}
function setLiquidityPool(address _lp, bool _status) external {
require(msg.sender == owner || msg.sender == factory.managerAddress(), "Only Owner or Liquidify Management");
liquidityPools[_lp] = _status;
emit SetLiquidityPool(_lp, _status);
}
function reduceSellFee(uint256 _newFee) external onlyOwner {
require(_newFee <= creatorSellFee, "Creator sell fee must be lower than current");
creatorSellFee = _newFee;
emit ReduceSellFee(_newFee);
}
function changeOwner(address _owner) external onlyOwner {
require (_owner != address(0), "New owner cannot be 0");
owner = _owner;
emit ChangeOwner(_owner);
}
function renounceOwnership() external onlyOwner {
require (owner != address(0), "Already renounced");
owner = address(0);
emit RenounceOwnership();
}
function setFeeReceiver(address _newFeeReceiver) external payable onlyOwner nonReentrant {
require(msg.value >= 1, "min 1 wei");
(bool success, ) = payable(_newFeeReceiver).call{value: msg.value}("");
require(success, "Transfer failed");
feeReceiver = _newFeeReceiver;
emit SetFeeReceiver(_newFeeReceiver);
}
}
文件 2 的 11:Context.sol
pragma solidity ^0.8.20;
abstract contract Context {
function _msgSender() internal view virtual returns (address) {
return msg.sender;
}
function _msgData() internal view virtual returns (bytes calldata) {
return msg.data;
}
function _contextSuffixLength() internal view virtual returns (uint256) {
return 0;
}
}
文件 3 的 11:ERC20.sol
pragma solidity ^0.8.20;
import {IERC20} from "@openzeppelin/contracts/token/ERC20/IERC20.sol";
import {IERC20Metadata} from "@openzeppelin/contracts/token/ERC20/extensions/IERC20Metadata.sol";
import {Context} from "@openzeppelin/contracts/utils/Context.sol";
import {IERC20Errors} from "@openzeppelin/contracts/interfaces/draft-IERC6093.sol";
abstract contract ERC20 is Context, IERC20, IERC20Metadata, IERC20Errors {
mapping(address account => uint256) private _balances;
mapping(address account => mapping(address spender => 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 returns (string memory) {
return _name;
}
function symbol() public view virtual returns (string memory) {
return _symbol;
}
function decimals() public view virtual returns (uint8) {
return 18;
}
function totalSupply() public view virtual returns (uint256) {
return _totalSupply;
}
function balanceOf(address account) public view virtual returns (uint256) {
return _balances[account];
}
function transfer(address to, uint256 value) public virtual returns (bool) {
address owner = _msgSender();
_transfer(owner, to, value);
return true;
}
function allowance(address owner, address spender) public view virtual returns (uint256) {
return _allowances[owner][spender];
}
function approve(address spender, uint256 value) public virtual returns (bool) {
address owner = _msgSender();
_approve(owner, spender, value);
return true;
}
function transferFrom(address from, address to, uint256 value) public virtual returns (bool) {
address spender = _msgSender();
_spendAllowance(from, spender, value);
_transfer(from, to, value);
return true;
}
function _transfer(address from, address to, uint256 value) internal virtual {
if (from == address(0)) {
revert ERC20InvalidSender(address(0));
}
if (to == address(0)) {
revert ERC20InvalidReceiver(address(0));
}
_update(from, to, value);
}
function _update(address from, address to, uint256 value) internal virtual {
if (from == address(0)) {
_totalSupply += value;
} else {
uint256 fromBalance = _balances[from];
if (fromBalance < value) {
revert ERC20InsufficientBalance(from, fromBalance, value);
}
unchecked {
_balances[from] = fromBalance - value;
}
}
if (to == address(0)) {
unchecked {
_totalSupply -= value;
}
} else {
unchecked {
_balances[to] += value;
}
}
emit Transfer(from, to, value);
}
function _mint(address account, uint256 value) internal {
if (account == address(0)) {
revert ERC20InvalidReceiver(address(0));
}
_update(address(0), account, value);
}
function _burn(address account, uint256 value) internal {
if (account == address(0)) {
revert ERC20InvalidSender(address(0));
}
_update(account, address(0), value);
}
function _approve(address owner, address spender, uint256 value) internal {
_approve(owner, spender, value, true);
}
function _approve(address owner, address spender, uint256 value, bool emitEvent) internal virtual {
if (owner == address(0)) {
revert ERC20InvalidApprover(address(0));
}
if (spender == address(0)) {
revert ERC20InvalidSpender(address(0));
}
_allowances[owner][spender] = value;
if (emitEvent) {
emit Approval(owner, spender, value);
}
}
function _spendAllowance(address owner, address spender, uint256 value) internal virtual {
uint256 currentAllowance = allowance(owner, spender);
if (currentAllowance != type(uint256).max) {
if (currentAllowance < value) {
revert ERC20InsufficientAllowance(spender, currentAllowance, value);
}
unchecked {
_approve(owner, spender, currentAllowance - value, false);
}
}
}
}
文件 4 的 11:IERC20.sol
pragma solidity ^0.8.20;
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 value) external returns (bool);
function allowance(address owner, address spender) external view returns (uint256);
function approve(address spender, uint256 value) external returns (bool);
function transferFrom(address from, address to, uint256 value) external returns (bool);
}
文件 5 的 11:IERC20Metadata.sol
pragma solidity ^0.8.20;
import {IERC20} from "../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);
}
文件 6 的 11:LiquidERC721.sol
pragma solidity 0.8.21;
import "../Standard/LiquidifyStandard.sol";
interface IERC721 {
function safeTransferFrom(address from, address to, uint256 tokenId) external;
function transferFrom(address from, address to, uint256 tokenId) external;
}
contract LiquidERC721 is LiquidifyStandard {
address public immutable nftContractAddress;
uint256 public immutable tokensPerNft;
mapping(uint256 => uint256[]) public storedNfts;
mapping(uint256 => uint256) public tiers;
uint256[] public tiersList;
bool public pairEnabled = false;
event WrapERC721(uint256[] tokenIds, uint256 tokensMinted);
event UnwrapERC721(uint256 quantity, uint256 tokenId);
event EnablePair();
constructor(
address _factoryContract,
string memory tokenName,
string memory tokenSymbol,
address _nftContractAddress,
uint256 _tokensPerNft,
uint256 _creatorSellFee,
address _owner
) LiquidifyStandard(_factoryContract, tokenName, tokenSymbol) {
require(_tokensPerNft >= 1, "Tokens per NFT must be greater than 0");
require(_creatorSellFee <= 500, "Maximum creator sell fee is 5%");
nftContractAddress = _nftContractAddress;
tokensPerNft = _tokensPerNft * 10 ** 18;
creatorSellFee = _creatorSellFee;
owner = _owner;
feeReceiver = _owner;
address swapPair = IUniswapV2Factory(swapRouter.factory()).createPair(address(this), swapRouter.WETH());
liquidityPools[swapPair] = true;
tiersList.push(tokensPerNft);
}
function wrapERC721(uint256[] memory _tokenIds) external nonReentrant payable {
require(pairEnabled, "Pair not been enabled");
uint256 storageFee = factory.storageFee(address(this), _tokenIds.length);
require(msg.value >= storageFee, "Insufficient storage fee");
uint256 totalTokens = 0;
for (uint i = 0; i < _tokenIds.length; i++) {
uint256 _tokenId = _tokenIds[i];
IERC721(nftContractAddress).transferFrom(
msg.sender,
address(this),
_tokenId
);
uint256 tokens = tokensPerNft;
if (tiers[_tokenId] != 0) {
tokens = tiers[_tokenId];
}
storedNfts[tokens].push(_tokenId);
totalTokens += tokens;
}
address protocolFeeReceiver = factory.protocolFeeReceiver();
(bool success, ) = payable(protocolFeeReceiver).call{value: msg.value}("");
require(success, "Transfer to protocol failed");
_mint(msg.sender, totalTokens);
emit WrapERC721(_tokenIds, totalTokens);
}
function unwrapERC721(uint256 amount) external nonReentrant payable {
require(pairEnabled, "Pair not enabled");
require(storedNfts[amount].length != 0, "No NFTs to unwrap in this tier");
uint256 storageFee = factory.storageFee(address(this), 1);
require(msg.value >= storageFee, "Insufficient storage fee");
_burn(msg.sender, amount);
uint256 tokenId = storedNfts[amount][storedNfts[amount].length - 1];
storedNfts[amount].pop();
address protocolFeeReceiver = factory.protocolFeeReceiver();
(bool success, ) = payable(protocolFeeReceiver).call{value: msg.value}("");
require(success, "Transfer to protocol failed");
IERC721(nftContractAddress).safeTransferFrom(
address(this),
msg.sender,
tokenId
);
emit UnwrapERC721(amount, tokenId);
}
function enablePair() external onlyOwner {
require(!pairEnabled, "Pair already enabled");
pairEnabled = true;
emit EnablePair();
}
function setTiers(uint256[] memory tokenIds, uint256[] memory newTiers) external onlyOwner {
require(tiersList.length <= 15, "Maximum tier limit reached");
require(!pairEnabled, "Pair already enabled");
require(tokenIds.length == newTiers.length, "Mismatch in arrays");
for (uint i = 0; i < tokenIds.length; i++) {
uint256 newTier = newTiers[i] * 10 ** 18;
require(newTier >= tokensPerNft, "New tier has to be greater than base tier");
tiers[tokenIds[i]] = newTier;
if (!isTierPresent(newTier)) {
tiersList.push(newTier);
}
}
}
function getQtyForTier(uint256 amount) external view returns (uint256) {
return storedNfts[amount * 10 ** 18].length;
}
function getTiersCount() external view returns (uint256) {
return tiersList.length;
}
function isTierPresent(uint256 _tier) internal view returns (bool) {
for (uint i = 0; i < tiersList.length; i++) {
if (tiersList[i] == _tier) {
return true;
}
}
return false;
}
}
文件 7 的 11:LiquidifyStandard.sol
pragma solidity 0.8.21;
import "../ERC20/ERC20.sol";
import "../Admin/AdminControl.sol";
import "../interfaces/UniswapV2Interface.sol";
contract LiquidifyStandard is ERC20, AdminControl {
IUniswapV2Router public swapRouter = IUniswapV2Router(0x4752ba5DBc23f44D87826276BF6Fd6b1C372aD24);
uint256 constant protocolFee = 25;
uint256 constant feeBase = 10000;
constructor(
address _factoryContract,
string memory tokenName,
string memory tokenSymbol
) ERC20(tokenName, tokenSymbol) AdminControl(_factoryContract) {}
function _transfer(address from, address to, uint256 value) internal override {
if (from == address(0)) {
revert ERC20InvalidSender(address(0));
}
if (to == address(0)) {
revert ERC20InvalidReceiver(address(0));
}
uint256 transferAmount = value;
uint256 totalFeeAmount = 0;
address protocolFeeReceiver = factory.protocolFeeReceiver();
if (creatorSellFee != 0 && liquidityPools[to] && from != protocolFeeReceiver) {
uint256 totalFeeRate = protocolFee + creatorSellFee;
totalFeeAmount = (value * totalFeeRate) / feeBase;
transferAmount -= totalFeeAmount;
_update(from, protocolFeeReceiver, totalFeeAmount);
}
_update(from, to, transferAmount);
}
}
文件 8 的 11:LiquidifyV3Interface.sol
pragma solidity 0.8.21;
interface LiquidifyV3FactoryInterface {
function protocolFeeReceiver() external view returns (address);
function managerAddress() external view returns (address);
function storageFee(address liquidifyContract, uint256 quantity) external view returns (uint256);
}
文件 9 的 11:ReentrancyGuard.sol
pragma solidity ^0.8.20;
abstract contract ReentrancyGuard {
uint256 private constant NOT_ENTERED = 1;
uint256 private constant ENTERED = 2;
uint256 private _status;
error ReentrancyGuardReentrantCall();
constructor() {
_status = NOT_ENTERED;
}
modifier nonReentrant() {
_nonReentrantBefore();
_;
_nonReentrantAfter();
}
function _nonReentrantBefore() private {
if (_status == ENTERED) {
revert ReentrancyGuardReentrantCall();
}
_status = ENTERED;
}
function _nonReentrantAfter() private {
_status = NOT_ENTERED;
}
function _reentrancyGuardEntered() internal view returns (bool) {
return _status == ENTERED;
}
}
文件 10 的 11:UniswapV2Interface.sol
pragma solidity 0.8.21;
interface IUniswapV2Factory {
function createPair(
address tokenA,
address tokenB
) external returns (address pair);
}
interface IUniswapV2Router {
function factory() external pure returns (address);
function WETH() external pure returns (address);
}
文件 11 的 11:draft-IERC6093.sol
pragma solidity ^0.8.20;
interface IERC20Errors {
error ERC20InsufficientBalance(address sender, uint256 balance, uint256 needed);
error ERC20InvalidSender(address sender);
error ERC20InvalidReceiver(address receiver);
error ERC20InsufficientAllowance(address spender, uint256 allowance, uint256 needed);
error ERC20InvalidApprover(address approver);
error ERC20InvalidSpender(address spender);
}
interface IERC721Errors {
error ERC721InvalidOwner(address owner);
error ERC721NonexistentToken(uint256 tokenId);
error ERC721IncorrectOwner(address sender, uint256 tokenId, address owner);
error ERC721InvalidSender(address sender);
error ERC721InvalidReceiver(address receiver);
error ERC721InsufficientApproval(address operator, uint256 tokenId);
error ERC721InvalidApprover(address approver);
error ERC721InvalidOperator(address operator);
}
interface IERC1155Errors {
error ERC1155InsufficientBalance(address sender, uint256 balance, uint256 needed, uint256 tokenId);
error ERC1155InvalidSender(address sender);
error ERC1155InvalidReceiver(address receiver);
error ERC1155MissingApprovalForAll(address operator, address owner);
error ERC1155InvalidApprover(address approver);
error ERC1155InvalidOperator(address operator);
error ERC1155InvalidArrayLength(uint256 idsLength, uint256 valuesLength);
}
{
"compilationTarget": {
"contracts/LNFT/LiquidERC721.sol": "LiquidERC721"
},
"evmVersion": "paris",
"libraries": {},
"metadata": {
"bytecodeHash": "ipfs"
},
"optimizer": {
"enabled": true,
"runs": 200
},
"remappings": []
}
[{"inputs":[{"internalType":"address","name":"_factoryContract","type":"address"},{"internalType":"string","name":"tokenName","type":"string"},{"internalType":"string","name":"tokenSymbol","type":"string"},{"internalType":"address","name":"_nftContractAddress","type":"address"},{"internalType":"uint256","name":"_tokensPerNft","type":"uint256"},{"internalType":"uint256","name":"_creatorSellFee","type":"uint256"},{"internalType":"address","name":"_owner","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"inputs":[{"internalType":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"allowance","type":"uint256"},{"internalType":"uint256","name":"needed","type":"uint256"}],"name":"ERC20InsufficientAllowance","type":"error"},{"inputs":[{"internalType":"address","name":"sender","type":"address"},{"internalType":"uint256","name":"balance","type":"uint256"},{"internalType":"uint256","name":"needed","type":"uint256"}],"name":"ERC20InsufficientBalance","type":"error"},{"inputs":[{"internalType":"address","name":"approver","type":"address"}],"name":"ERC20InvalidApprover","type":"error"},{"inputs":[{"internalType":"address","name":"receiver","type":"address"}],"name":"ERC20InvalidReceiver","type":"error"},{"inputs":[{"internalType":"address","name":"sender","type":"address"}],"name":"ERC20InvalidSender","type":"error"},{"inputs":[{"internalType":"address","name":"spender","type":"address"}],"name":"ERC20InvalidSpender","type":"error"},{"inputs":[],"name":"ReentrancyGuardReentrantCall","type":"error"},{"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":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"ChangeOwner","type":"event"},{"anonymous":false,"inputs":[],"name":"EnablePair","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"newFee","type":"uint256"}],"name":"ReduceSellFee","type":"event"},{"anonymous":false,"inputs":[],"name":"RenounceOwnership","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"newFeeReceiver","type":"address"}],"name":"SetFeeReceiver","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"lp","type":"address"},{"indexed":false,"internalType":"bool","name":"status","type":"bool"}],"name":"SetLiquidityPool","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"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"quantity","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"UnwrapERC721","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256[]","name":"tokenIds","type":"uint256[]"},{"indexed":false,"internalType":"uint256","name":"tokensMinted","type":"uint256"}],"name":"WrapERC721","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":"value","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":"_owner","type":"address"}],"name":"changeOwner","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"creatorSellFee","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"decimals","outputs":[{"internalType":"uint8","name":"","type":"uint8"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"enablePair","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"factory","outputs":[{"internalType":"contract LiquidifyV3FactoryInterface","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"feeReceiver","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"getQtyForTier","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getTiersCount","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"liquidityPools","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"nftContractAddress","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"pairEnabled","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_newFee","type":"uint256"}],"name":"reduceSellFee","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_newFeeReceiver","type":"address"}],"name":"setFeeReceiver","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"address","name":"_lp","type":"address"},{"internalType":"bool","name":"_status","type":"bool"}],"name":"setLiquidityPool","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256[]","name":"tokenIds","type":"uint256[]"},{"internalType":"uint256[]","name":"newTiers","type":"uint256[]"}],"name":"setTiers","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"},{"internalType":"uint256","name":"","type":"uint256"}],"name":"storedNfts","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"swapRouter","outputs":[{"internalType":"contract IUniswapV2Router","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"tiers","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"tiersList","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"tokensPerNft","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"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":"value","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":"value","type":"uint256"}],"name":"transferFrom","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"unwrapERC721","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"uint256[]","name":"_tokenIds","type":"uint256[]"}],"name":"wrapERC721","outputs":[],"stateMutability":"payable","type":"function"}]