编译器
0.8.18+commit.87f61d96
文件 1 的 9: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 的 9: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 的 9: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);
}
文件 4 的 9: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);
}
文件 5 的 9:IMusicProtocolRECORDToken.sol
pragma solidity 0.8.18;
import "@openzeppelin/contracts/token/ERC20/IERC20.sol";
interface IMusicProtocolRECORDToken is IERC20 {
function lock(address from, uint256 amount) external returns (bool);
function pay(address to, uint256 amount) external;
function mint(address to, uint256 amount) external;
function mint_and_lock(address _beneficiary, uint256 _amount, uint64 _start, uint64 _duration) external;
function burn(uint256 amount) external;
function burnFrom(address account, uint256 amount) external;
function transfer_and_lock(address _from, address _beneficiary, uint256 _amount, uint64 _start, uint64 _duration) external;
function transferOwnership(address to) external;
function pause() external;
function unpause() external;
}
文件 6 的 9:MusicProtocolRECORDToken.sol
pragma solidity 0.8.18;
import "@openzeppelin/contracts/access/Ownable2Step.sol";
import "@openzeppelin/contracts/token/ERC20/ERC20.sol";
import "@openzeppelin/contracts/security/Pausable.sol";
import "./interfaces/IMusicProtocolRECORDToken.sol";
contract MusicProtocolRECORDToken is
IMusicProtocolRECORDToken,
ERC20,
Ownable2Step,
Pausable
{
uint256 private constant MAX_MINT = 1000000000000000000000000000;
uint256 public minted = 0;
address private immutable _ArtistStaking;
mapping(address => ReleasablePayment) public releasablePayments;
struct ReleasablePayment {
uint256 releasableBalance;
uint256 tokens;
uint256 released;
uint64 start;
uint64 duration;
uint64 updatedDuration;
}
event TokenReleased(address indexed beneficiary, uint256 amount);
event TokenLocked(address indexed sender, address indexed beneficiary, uint256 amount);
event SenderReleasablePaymentUpdate(
uint256 indexed senderToken,
uint64 indexed senderUpdatedDuration
);
event RecipientReleasablePaymentUpdate(
uint256 indexed recipientToken,
uint64 indexed recipientUpdatedDuration
);
modifier onlyStaking() {
require(
_ArtistStaking == _msgSender(),
"MusicProtocolRECORDToken: caller is not the ArtistStaking contract"
);
_;
}
constructor(address staking_) ERC20("MusicProtocolRECORDToken", "RECORD") {
require(
staking_ != address(0),
"MusicProtocolRECORDToken: the address of ArtistStaking is 0"
);
_ArtistStaking = staking_;
}
function transferOwnership(
address to
) public override(IMusicProtocolRECORDToken, Ownable2Step) onlyOwner {
super.transferOwnership(to);
}
function renounceOwnership() public override(Ownable) onlyOwner {
require(
false,
"MusicProtocolRECORDToken: function disabled"
);
super.renounceOwnership();
}
function pause() external override onlyOwner {
_pause();
}
function unpause() external override onlyOwner {
_unpause();
}
function _beforeTokenTransfer(
address from,
address to,
uint256 amount
) internal virtual override whenNotPaused {
if (balanceOf(from) >= amount) {
if (releasablePayments[from].releasableBalance > 0) {
_release(from);
if (from != address(0) && to != _ArtistStaking && from != _ArtistStaking) {
uint256 ownedTokens = balanceOf(from) -
(releasablePayments[from].tokens -
releasablePayments[from].released);
require(
ownedTokens >= amount,
"MusicProtocolRECORDToken: transfer amount exceeds balance"
);
}
if (to == _ArtistStaking) {
uint256 ownedTokens = balanceOf(from) -
(releasablePayments[from].tokens -
releasablePayments[from].released);
if (
amount > ownedTokens
) {
uint256 debt = amount - ownedTokens;
releasablePayments[from].tokens -= debt;
releasablePayments[from].updatedDuration -= uint64(
(debt * releasablePayments[from].duration) /
releasablePayments[from].releasableBalance
);
emit SenderReleasablePaymentUpdate(
releasablePayments[from].tokens,
releasablePayments[from].updatedDuration
);
}
}
}
if (
from == _ArtistStaking &&
releasablePayments[to].releasableBalance > 0
) {
uint256 debt = releasablePayments[to].releasableBalance -
releasablePayments[to].tokens;
if (debt > 0) {
if (amount >= debt) {
releasablePayments[to].tokens += debt;
releasablePayments[to].updatedDuration += uint64(
(debt * releasablePayments[to].duration) /
releasablePayments[to].releasableBalance
);
} else {
releasablePayments[to].tokens += amount;
releasablePayments[to].updatedDuration += uint64(
(amount * releasablePayments[to].duration) /
releasablePayments[to].releasableBalance
);
}
emit RecipientReleasablePaymentUpdate(
releasablePayments[to].tokens,
releasablePayments[to].updatedDuration
);
}
}
}
super._beforeTokenTransfer(from, to, amount);
}
function mint(address to, uint256 amount) external override onlyOwner {
require(
minted + amount <= MAX_MINT,
"MusicProtocolRECORDToken: Maximum limit of mintable tokens reached"
);
minted += amount;
_mint(to, amount);
}
function mint_and_lock(
address _beneficiary,
uint256 _amount,
uint64 _start,
uint64 _duration
) external override onlyOwner {
require(
_amount > 0,
"MusicProtocolRECORDToken: Amount can not be 0 or less in mint_and_lock."
);
require(
releasablePayments[_beneficiary].releasableBalance == 0,
"MusicProtocolRECORDToken: Releasable payment already used."
);
require(
minted + _amount <= MAX_MINT,
"MusicProtocolRECORDToken: Maximum limit of mintable tokens reached"
);
require(
_start >= block.timestamp,
"MusicProtocolRECORDToken: Releasable payment cannot begin in the past"
);
require(
_duration >= 600,
"MusicProtocolRECORDToken: The duration of releasable payment must be at least 10 minutes"
);
releasablePayments[_beneficiary] = ReleasablePayment(
_amount,
_amount,
0,
_start,
_duration,
_duration
);
minted += _amount;
_mint(_beneficiary, _amount);
emit TokenLocked(address(0), _beneficiary, _amount);
}
function burn(uint256 amount) external override onlyOwner {
_burn(_msgSender(), amount);
}
function burnFrom(
address account,
uint256 amount
) external override onlyOwner {
_spendAllowance(account, _msgSender(), amount);
_burn(account, amount);
}
function transfer_and_lock(
address _from,
address _beneficiary,
uint256 _amount,
uint64 _start,
uint64 _duration
) external override onlyOwner {
require(
_amount > 0,
"MusicProtocolRECORDToken: Amount can not be 0 or less in transfer_and_lock."
);
require(
releasablePayments[_beneficiary].releasableBalance == 0,
"MusicProtocolRECORDToken: Releasable payment already used."
);
require(
_start >= block.timestamp,
"MusicProtocolRECORDToken: Releasable payment cannot begin in the past"
);
require(
_duration >= 600,
"MusicProtocolRECORDToken: The duration of releasable payment must be at least 10 minutes"
);
releasablePayments[_beneficiary] = ReleasablePayment(
_amount,
_amount,
0,
_start,
_duration,
_duration
);
transferFrom(_from, _beneficiary, _amount);
emit TokenLocked(_from, _beneficiary, _amount);
}
function _release(address beneficiary) internal {
uint256 amount = releasable(beneficiary);
releasablePayments[beneficiary].released += amount;
emit TokenReleased(beneficiary, amount);
}
function released(address beneficiary) public view returns (uint256) {
return releasablePayments[beneficiary].released;
}
function releasable(address beneficiary) public view returns (uint256) {
uint256 releasableTokens = _vestingSchedule(
releasablePayments[beneficiary],
uint64(block.timestamp)
) - released(beneficiary);
return releasableTokens;
}
function _vestingSchedule(
ReleasablePayment memory releasablePayment,
uint64 timestamp
) private pure returns (uint256) {
if (timestamp < releasablePayment.start) {
return 0;
} else if (
timestamp >=
releasablePayment.start + releasablePayment.updatedDuration
) {
return releasablePayment.tokens;
} else {
return
(releasablePayment.tokens *
(timestamp - releasablePayment.start)) /
releasablePayment.updatedDuration;
}
}
function lock(
address from,
uint256 amount
) external override onlyStaking returns (bool) {
transferFrom(from, _msgSender(), amount);
return true;
}
function pay(address to, uint256 amount) external override onlyStaking {
_mint(to, amount);
}
}
文件 7 的 9: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 的 9:Ownable2Step.sol
pragma solidity ^0.8.0;
import "./Ownable.sol";
abstract contract Ownable2Step is Ownable {
address private _pendingOwner;
event OwnershipTransferStarted(address indexed previousOwner, address indexed newOwner);
function pendingOwner() public view virtual returns (address) {
return _pendingOwner;
}
function transferOwnership(address newOwner) public virtual override onlyOwner {
_pendingOwner = newOwner;
emit OwnershipTransferStarted(owner(), newOwner);
}
function _transferOwnership(address newOwner) internal virtual override {
delete _pendingOwner;
super._transferOwnership(newOwner);
}
function acceptOwnership() external {
address sender = _msgSender();
require(pendingOwner() == sender, "Ownable2Step: caller is not the new owner");
_transferOwnership(sender);
}
}
文件 9 的 9:Pausable.sol
pragma solidity ^0.8.0;
import "../utils/Context.sol";
abstract contract Pausable is Context {
event Paused(address account);
event Unpaused(address account);
bool private _paused;
constructor() {
_paused = false;
}
modifier whenNotPaused() {
_requireNotPaused();
_;
}
modifier whenPaused() {
_requirePaused();
_;
}
function paused() public view virtual returns (bool) {
return _paused;
}
function _requireNotPaused() internal view virtual {
require(!paused(), "Pausable: paused");
}
function _requirePaused() internal view virtual {
require(paused(), "Pausable: not paused");
}
function _pause() internal virtual whenNotPaused {
_paused = true;
emit Paused(_msgSender());
}
function _unpause() internal virtual whenPaused {
_paused = false;
emit Unpaused(_msgSender());
}
}
{
"compilationTarget": {
"contracts/MusicProtocolRECORDToken.sol": "MusicProtocolRECORDToken"
},
"evmVersion": "paris",
"libraries": {},
"metadata": {
"bytecodeHash": "ipfs"
},
"optimizer": {
"enabled": true,
"runs": 1000
},
"remappings": []
}
[{"inputs":[{"internalType":"address","name":"staking_","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":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferStarted","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":false,"internalType":"address","name":"account","type":"address"}],"name":"Paused","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"uint256","name":"recipientToken","type":"uint256"},{"indexed":true,"internalType":"uint64","name":"recipientUpdatedDuration","type":"uint64"}],"name":"RecipientReleasablePaymentUpdate","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"uint256","name":"senderToken","type":"uint256"},{"indexed":true,"internalType":"uint64","name":"senderUpdatedDuration","type":"uint64"}],"name":"SenderReleasablePaymentUpdate","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"sender","type":"address"},{"indexed":true,"internalType":"address","name":"beneficiary","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"TokenLocked","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"beneficiary","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"TokenReleased","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":"address","name":"account","type":"address"}],"name":"Unpaused","type":"event"},{"inputs":[],"name":"acceptOwnership","outputs":[],"stateMutability":"nonpayable","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":[{"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":[{"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":"from","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"lock","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"mint","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_beneficiary","type":"address"},{"internalType":"uint256","name":"_amount","type":"uint256"},{"internalType":"uint64","name":"_start","type":"uint64"},{"internalType":"uint64","name":"_duration","type":"uint64"}],"name":"mint_and_lock","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"minted","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"pause","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"paused","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"pay","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"pendingOwner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"beneficiary","type":"address"}],"name":"releasable","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"releasablePayments","outputs":[{"internalType":"uint256","name":"releasableBalance","type":"uint256"},{"internalType":"uint256","name":"tokens","type":"uint256"},{"internalType":"uint256","name":"released","type":"uint256"},{"internalType":"uint64","name":"start","type":"uint64"},{"internalType":"uint64","name":"duration","type":"uint64"},{"internalType":"uint64","name":"updatedDuration","type":"uint64"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"beneficiary","type":"address"}],"name":"released","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"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"},{"inputs":[{"internalType":"address","name":"to","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_from","type":"address"},{"internalType":"address","name":"_beneficiary","type":"address"},{"internalType":"uint256","name":"_amount","type":"uint256"},{"internalType":"uint64","name":"_start","type":"uint64"},{"internalType":"uint64","name":"_duration","type":"uint64"}],"name":"transfer_and_lock","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"unpause","outputs":[],"stateMutability":"nonpayable","type":"function"}]