编译器
0.6.12+commit.27d51765
文件 1 的 9:Address.sol
pragma solidity ^0.6.2;
library Address {
function isContract(address account) internal view returns (bool) {
uint256 size;
assembly { size := extcodesize(account) }
return size > 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 functionCall(target, data, "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");
return _functionCallWithValue(target, data, value, errorMessage);
}
function _functionCallWithValue(address target, bytes memory data, uint256 weiValue, string memory errorMessage) private returns (bytes memory) {
require(isContract(target), "Address: call to non-contract");
(bool success, bytes memory returndata) = target.call{ value: weiValue }(data);
if (success) {
return returndata;
} else {
if (returndata.length > 0) {
assembly {
let returndata_size := mload(returndata)
revert(add(32, returndata), returndata_size)
}
} else {
revert(errorMessage);
}
}
}
}
文件 2 的 9:Context.sol
pragma solidity ^0.6.0;
abstract contract Context {
function _msgSender() internal view virtual returns (address payable) {
return msg.sender;
}
function _msgData() internal view virtual returns (bytes memory) {
this;
return msg.data;
}
}
文件 3 的 9:ERC20.sol
pragma solidity ^0.6.0;
import "Context.sol";
import "IERC20.sol";
import "SafeMath.sol";
import "Address.sol";
contract ERC20 is Context, IERC20 {
using SafeMath for uint256;
using Address for address;
mapping (address => uint256) private _balances;
mapping (address => mapping (address => uint256)) private _allowances;
uint256 private _totalSupply;
string private _name;
string private _symbol;
uint8 private _decimals;
constructor (string memory name, string memory symbol) public {
_name = name;
_symbol = symbol;
_decimals = 18;
}
function name() public view returns (string memory) {
return _name;
}
function symbol() public view returns (string memory) {
return _symbol;
}
function decimals() public view returns (uint8) {
return _decimals;
}
function totalSupply() public view override returns (uint256) {
return _totalSupply;
}
function balanceOf(address account) public view override returns (uint256) {
return _balances[account];
}
function transfer(address recipient, uint256 amount) public virtual override returns (bool) {
_transfer(_msgSender(), recipient, 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) {
_approve(_msgSender(), spender, amount);
return true;
}
function transferFrom(address sender, address recipient, uint256 amount) public virtual override returns (bool) {
_transfer(sender, recipient, amount);
_approve(sender, _msgSender(), _allowances[sender][_msgSender()].sub(amount, "ERC20: transfer amount exceeds allowance"));
return true;
}
function increaseAllowance(address spender, uint256 addedValue) public virtual returns (bool) {
_approve(_msgSender(), spender, _allowances[_msgSender()][spender].add(addedValue));
return true;
}
function decreaseAllowance(address spender, uint256 subtractedValue) public virtual returns (bool) {
_approve(_msgSender(), spender, _allowances[_msgSender()][spender].sub(subtractedValue, "ERC20: decreased allowance below zero"));
return true;
}
function _transfer(address sender, address recipient, uint256 amount) internal virtual {
require(sender != address(0), "ERC20: transfer from the zero address");
require(recipient != address(0), "ERC20: transfer to the zero address");
_beforeTokenTransfer(sender, recipient, amount);
_balances[sender] = _balances[sender].sub(amount, "ERC20: transfer amount exceeds balance");
_balances[recipient] = _balances[recipient].add(amount);
emit Transfer(sender, recipient, 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 = _totalSupply.add(amount);
_balances[account] = _balances[account].add(amount);
emit Transfer(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);
_balances[account] = _balances[account].sub(amount, "ERC20: burn amount exceeds balance");
_totalSupply = _totalSupply.sub(amount);
emit Transfer(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 _setupDecimals(uint8 decimals_) internal {
_decimals = decimals_;
}
function _beforeTokenTransfer(address from, address to, uint256 amount) internal virtual { }
}
文件 4 的 9:IERC165.sol
pragma solidity ^0.6.0;
interface IERC165 {
function supportsInterface(bytes4 interfaceId) external view returns (bool);
}
文件 5 的 9:IERC20.sol
pragma solidity ^0.6.0;
interface IERC20 {
function totalSupply() external view returns (uint256);
function balanceOf(address account) external view returns (uint256);
function transfer(address recipient, 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 sender, address recipient, uint256 amount) external returns (bool);
event Transfer(address indexed from, address indexed to, uint256 value);
event Approval(address indexed owner, address indexed spender, uint256 value);
}
文件 6 的 9:IERC721.sol
pragma solidity ^0.6.2;
import "IERC165.sol";
interface IERC721 is IERC165 {
event Transfer(address indexed from, address indexed to, uint256 indexed tokenId);
event Approval(address indexed owner, address indexed approved, uint256 indexed tokenId);
event ApprovalForAll(address indexed owner, address indexed operator, bool approved);
function balanceOf(address owner) external view returns (uint256 balance);
function ownerOf(uint256 tokenId) external view returns (address owner);
function safeTransferFrom(address from, address to, uint256 tokenId) external;
function transferFrom(address from, address to, uint256 tokenId) external;
function approve(address to, uint256 tokenId) external;
function getApproved(uint256 tokenId) external view returns (address operator);
function setApprovalForAll(address operator, bool _approved) external;
function isApprovedForAll(address owner, address operator) external view returns (bool);
function safeTransferFrom(address from, address to, uint256 tokenId, bytes calldata data) external;
}
文件 7 的 9:Ownable.sol
pragma solidity ^0.6.0;
import "Context.sol";
contract Ownable is Context {
address private _owner;
event OwnershipTransferred(address indexed previousOwner, address indexed newOwner);
constructor () internal {
address msgSender = _msgSender();
_owner = msgSender;
emit OwnershipTransferred(address(0), msgSender);
}
function owner() public view returns (address) {
return _owner;
}
modifier onlyOwner() {
require(_owner == _msgSender(), "Ownable: caller is not the owner");
_;
}
function renounceOwnership() public virtual onlyOwner {
emit OwnershipTransferred(_owner, address(0));
_owner = address(0);
}
function transferOwnership(address newOwner) public virtual onlyOwner {
require(newOwner != address(0), "Ownable: new owner is the zero address");
emit OwnershipTransferred(_owner, newOwner);
_owner = newOwner;
}
}
文件 8 的 9:SafeMath.sol
pragma solidity ^0.6.0;
library SafeMath {
function add(uint256 a, uint256 b) internal pure returns (uint256) {
uint256 c = a + b;
require(c >= a, "SafeMath: addition overflow");
return c;
}
function sub(uint256 a, uint256 b) internal pure returns (uint256) {
return sub(a, b, "SafeMath: subtraction overflow");
}
function sub(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) {
require(b <= a, errorMessage);
uint256 c = a - b;
return c;
}
function mul(uint256 a, uint256 b) internal pure returns (uint256) {
if (a == 0) {
return 0;
}
uint256 c = a * b;
require(c / a == b, "SafeMath: multiplication overflow");
return c;
}
function div(uint256 a, uint256 b) internal pure returns (uint256) {
return div(a, b, "SafeMath: division by zero");
}
function div(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) {
require(b > 0, errorMessage);
uint256 c = a / b;
return c;
}
function mod(uint256 a, uint256 b) internal pure returns (uint256) {
return mod(a, b, "SafeMath: modulo by zero");
}
function mod(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) {
require(b != 0, errorMessage);
return a % b;
}
}
文件 9 的 9:WrappedKongzV2.sol
pragma solidity ^0.6.12;
import "ERC20.sol";
import "IERC721.sol";
import "SafeMath.sol";
import "Ownable.sol";
interface IHub is IERC20 {
function getTotalClaimable(address _user, address _token) external view returns(uint256);
}
interface IKongz is IERC721 {
function getReward() external;
}
contract WrappedKongzV2 is ERC20("Wrapped Genesis Kongz", "WGK"), Ownable {
using SafeMath for uint256;
IKongz constant public KONGZ = IKongz(0x57a204AA1042f6E66DD7730813f4024114d74f37);
IHub public HUB = IHub(0x86CC33dBE3d2fb95bc6734e1E5920D287695215F);
IERC20 public BANANA = IERC20(0x94e496474F1725f1c1824cB5BDb92d7691A4F03a);
uint256 constant public END = 1931622407;
address public mainLpAddress;
uint256[] public genIds;
uint256 public globalScore;
uint256 public globalLastUpdate;
uint256 public globalClaimed;
mapping(address => uint256) public holderScores;
mapping(address => uint256) public holderLastUpdate;
mapping(address => uint256) public holderClaimed;
mapping(address => uint256) public holderLastScoreClaim;
event KongzWrapped(uint256 kongId);
event KongzUnwrapped(uint256 kongId);
event NanasClaimed(address indexed holder, uint256 amount);
constructor() public {
globalLastUpdate = block.timestamp;
}
modifier syncScore(address _from, address _to) {
uint256 time = min(block.timestamp, END);
uint256 lastUpdateFrom = holderLastUpdate[_from];
if (lastUpdateFrom > 0) {
uint256 interval = time.sub(lastUpdateFrom);
holderScores[_from] = holderScores[_from].add(balanceOf(_from).mul(interval));
}
if (lastUpdateFrom != END)
holderLastUpdate[_from] = time;
if (_to != address(0)) {
uint256 lastUpdateTo = holderLastUpdate[_to];
if (lastUpdateTo > 0) {
uint256 interval = time.sub(lastUpdateTo);
holderScores[_to] = holderScores[_to].add(balanceOf(_to).mul(interval));
}
if (lastUpdateTo != END)
holderLastUpdate[_to] = time;
}
_;
}
modifier syncGlobalScore() {
uint256 time = min(block.timestamp, END);
uint256 lastUpdate = globalLastUpdate;
if (lastUpdate > 0) {
uint256 interval = time.sub(lastUpdate);
globalScore = globalScore.add(totalSupply().mul(interval));
}
if (lastUpdate != END)
globalLastUpdate = time;
_;
}
function setLpAddress(address _lpAddress) external onlyOwner {
require(_isContract(_lpAddress));
mainLpAddress = _lpAddress;
}
function syncRewards() external onlyOwner {
uint256 before = BANANA.balanceOf(address(this));
KONGZ.getReward();
uint256 post = BANANA.balanceOf(address(this));
globalClaimed = globalClaimed.add(post.sub(before));
}
function claimLpNanas() external syncScore(mainLpAddress, address(0)) syncGlobalScore() {
require(mainLpAddress != address(0), "WrappedKongz: LP address not set");
_claimNanas(mainLpAddress, owner());
}
function getClaimableNanas(address _holder) external view returns(uint256) {
uint256 time = min(block.timestamp, END);
uint256 gInterval = time.sub(globalLastUpdate);
uint256 uInterval = time.sub(holderLastUpdate[_holder]);
uint256 _globalScore = globalScore.add(totalSupply().mul(gInterval));
uint256 userScore = holderScores[_holder].add(balanceOf(_holder).mul(uInterval));
uint256 totalFarmed = globalClaimed + HUB.getTotalClaimable(address(this), address(BANANA));
uint256 userShare = totalFarmed.mul(userScore).div(_globalScore);
uint256 claimable = userShare.sub(holderClaimed[_holder]);
return claimable;
}
function wrap(uint256[] calldata _kongzIdsToWrap) external syncScore(msg.sender, address(0)) syncGlobalScore() {
for (uint256 i = 0; i < _kongzIdsToWrap.length; i++) {
require(_kongzIdsToWrap[i] <= 1000, "WrappedKongz: Kongz is not genesis");
genIds.push(_kongzIdsToWrap[i]);
KONGZ.safeTransferFrom(msg.sender, address(this), _kongzIdsToWrap[i]);
emit KongzWrapped(_kongzIdsToWrap[i]);
}
_mint(msg.sender, _kongzIdsToWrap.length * 100 * (1e18));
}
function unwrap(uint256 _amount) external {
unwrapFor(_amount, msg.sender);
}
function unwrapFor(uint256 _amount, address _recipient) public syncScore(msg.sender, address(0)) syncGlobalScore() {
require(_recipient != address(0), "WrappedKongz: Cannot send to void address.");
_burn(msg.sender, _amount * 100 * (1e18));
uint256 _seed = 0;
for (uint256 i = 0; i < _amount; i++) {
_seed = _getSeed(_seed, msg.sender);
uint256 _index = _seed % genIds.length;
uint256 _tokenId = genIds[_index];
genIds[_index] = genIds[genIds.length - 1];
genIds.pop();
KONGZ.safeTransferFrom(address(this), _recipient, _tokenId);
emit KongzUnwrapped(_tokenId);
}
}
function transfer(address _to, uint256 _amount) public override syncScore(msg.sender, _to) returns (bool) {
return ERC20.transfer(_to, _amount);
}
function transferFrom(address _from, address _to, uint256 _amount) public override syncScore(_from, _to) returns (bool) {
return ERC20.transferFrom(_from, _to, _amount);
}
function claimNanas() external syncScore(msg.sender, address(0)) syncGlobalScore() {
_claimNanas(msg.sender, msg.sender);
}
function _claimNanas(address _holder, address _to) internal {
uint256 holderScore = holderScores[_holder];
if (holderScore == holderLastScoreClaim[_holder])
return;
uint256 totalFarmed = globalClaimed + HUB.getTotalClaimable(address(this), address(BANANA));
uint256 userShare = totalFarmed.mul(holderScore).div(globalScore);
uint256 toSend = userShare.sub(holderClaimed[_holder]);
holderClaimed[_holder] = userShare;
holderLastScoreClaim[_holder] = holderScore;
if (BANANA.balanceOf(address(this)) < toSend) {
uint256 before = BANANA.balanceOf(address(this));
KONGZ.getReward();
uint256 post = BANANA.balanceOf(address(this));
globalClaimed = globalClaimed.add(post.sub(before));
}
BANANA.transfer(_to, toSend);
emit NanasClaimed(_holder, toSend);
}
function min(uint256 a, uint256 b) internal pure returns (uint256) {
return a < b ? a : b;
}
function _getSeed(uint256 _seed, address _sender) internal view returns (uint256) {
if (_seed == 0)
return uint256(keccak256(abi.encodePacked(block.timestamp, block.difficulty, _sender)));
else
return uint256(keccak256(abi.encodePacked(_seed)));
}
function _isContract(address _addr) internal view returns (bool) {
uint32 _size;
assembly {
_size:= extcodesize(_addr)
}
return (_size > 0);
}
function onERC721Received(address operator, address from, uint256 tokenId, bytes calldata data) external returns (bytes4) {
return WrappedKongzV2.onERC721Received.selector;
}
}
{
"compilationTarget": {
"WrappedKongzV2.sol": "WrappedKongzV2"
},
"evmVersion": "istanbul",
"libraries": {},
"metadata": {
"bytecodeHash": "ipfs"
},
"optimizer": {
"enabled": true,
"runs": 200
},
"remappings": []
}
[{"inputs":[],"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":"uint256","name":"kongId","type":"uint256"}],"name":"KongzUnwrapped","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"kongId","type":"uint256"}],"name":"KongzWrapped","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"holder","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"NanasClaimed","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":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":false,"internalType":"uint256","name":"value","type":"uint256"}],"name":"Transfer","type":"event"},{"inputs":[],"name":"BANANA","outputs":[{"internalType":"contract IERC20","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"END","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"HUB","outputs":[{"internalType":"contract IHub","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"KONGZ","outputs":[{"internalType":"contract IKongz","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"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":[],"name":"claimLpNanas","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"claimNanas","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":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"genIds","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_holder","type":"address"}],"name":"getClaimableNanas","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"globalClaimed","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"globalLastUpdate","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"globalScore","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"holderClaimed","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"holderLastScoreClaim","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"holderLastUpdate","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"holderScores","outputs":[{"internalType":"uint256","name":"","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":[],"name":"mainLpAddress","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"operator","type":"address"},{"internalType":"address","name":"from","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"bytes","name":"data","type":"bytes"}],"name":"onERC721Received","outputs":[{"internalType":"bytes4","name":"","type":"bytes4"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_lpAddress","type":"address"}],"name":"setLpAddress","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"syncRewards","outputs":[],"stateMutability":"nonpayable","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"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"unwrap","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_amount","type":"uint256"},{"internalType":"address","name":"_recipient","type":"address"}],"name":"unwrapFor","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256[]","name":"_kongzIdsToWrap","type":"uint256[]"}],"name":"wrap","outputs":[],"stateMutability":"nonpayable","type":"function"}]