编译器
0.8.18+commit.87f61d96
文件 1 的 8:Context.sol
pragma solidity ^0.8.0;
abstract contract Context {
function _msgSender() internal view virtual returns (address) {
return msg.sender;
}
function _msgData() internal view virtual returns (bytes calldata) {
return msg.data;
}
}
文件 2 的 8: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 的 8: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 的 8: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 的 8:Ownable.sol
pragma solidity ^0.8.0;
import "../utils/Context.sol";
abstract contract Ownable is Context {
address private _owner;
event OwnershipTransferred(address indexed previousOwner, address indexed newOwner);
constructor() {
_transferOwnership(_msgSender());
}
modifier onlyOwner() {
_checkOwner();
_;
}
function owner() public view virtual returns (address) {
return _owner;
}
function _checkOwner() internal view virtual {
require(owner() == _msgSender(), "Ownable: caller is not the owner");
}
function renounceOwnership() public virtual onlyOwner {
_transferOwnership(address(0));
}
function transferOwnership(address newOwner) public virtual onlyOwner {
require(newOwner != address(0), "Ownable: new owner is the zero address");
_transferOwnership(newOwner);
}
function _transferOwnership(address newOwner) internal virtual {
address oldOwner = _owner;
_owner = newOwner;
emit OwnershipTransferred(oldOwner, newOwner);
}
}
文件 6 的 8: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());
}
}
文件 7 的 8:ReentrancyGuard.sol
pragma solidity ^0.8.0;
abstract contract ReentrancyGuard {
uint256 private constant _NOT_ENTERED = 1;
uint256 private constant _ENTERED = 2;
uint256 private _status;
constructor() {
_status = _NOT_ENTERED;
}
modifier nonReentrant() {
_nonReentrantBefore();
_;
_nonReentrantAfter();
}
function _nonReentrantBefore() private {
require(_status != _ENTERED, "ReentrancyGuard: reentrant call");
_status = _ENTERED;
}
function _nonReentrantAfter() private {
_status = _NOT_ENTERED;
}
}
文件 8 的 8:SnoozeToken.sol
pragma solidity ^0.8.18;
import "@openzeppelin/contracts/token/ERC20/ERC20.sol";
import "@openzeppelin/contracts/security/Pausable.sol";
import "@openzeppelin/contracts/access/Ownable.sol";
import "@openzeppelin/contracts/security/ReentrancyGuard.sol";
interface ILegacyToken {
function balanceOf(address account) external view returns (uint256);
function spend(uint256 amount) external;
}
interface IBoosterToken {
function balanceOf(address account) external view returns (uint256);
}
contract SnoozeToken is ERC20, Ownable, Pausable, ReentrancyGuard {
address public alwaysTired;
ILegacyToken public legacyToken;
IBoosterToken public boosterToken;
uint256 public mintReward = 1000;
uint256 public interval = 864;
uint256 public intervalReward = 1;
uint256 public boosterBalance = 1;
uint256 public boosterMultiplier = 3000;
uint256 public boosterDenominator = 2000;
mapping(address => uint256) public transfers;
mapping(address => uint256) public counts;
mapping(address => uint256) public stashs;
mapping(address => bool) public exchanges;
address[] public exchangers;
modifier onlyAlwaysTired() {
require(
msg.sender != address(0) && msg.sender == alwaysTired,
"Must be AlwaysTired"
);
_;
}
constructor(
address _alwaysTired,
address _legacyToken,
address _boosterToken
) ERC20("SnoozeToken", "$SNOOZE") {
alwaysTired = _alwaysTired;
legacyToken = ILegacyToken(_legacyToken);
boosterToken = IBoosterToken(_boosterToken);
_pause();
}
function decimals() public view virtual override returns (uint8) {
return 0;
}
function pause() external onlyOwner whenNotPaused {
_pause();
}
function unpause() external onlyOwner whenPaused {
_unpause();
}
function setAlwaysTired(address _alwaysTired) external onlyOwner {
alwaysTired = _alwaysTired;
}
function setLegacyToken(address _legacyToken) external onlyOwner {
legacyToken = ILegacyToken(_legacyToken);
}
function setBoosterToken(address _boosterToken) external onlyOwner {
boosterToken = IBoosterToken(_boosterToken);
}
function setMintReward(uint256 _mintReward) external onlyOwner {
mintReward = _mintReward;
}
function setInterval(uint256 _interval) external onlyOwner {
interval = _interval;
}
function setIntervalReward(uint256 _intervalReward) external onlyOwner {
intervalReward = _intervalReward;
}
function setBoosterBalance(uint256 _boosterBalance) external onlyOwner {
boosterBalance = _boosterBalance;
}
function setBoosterMultiplier(
uint256 _boosterMultiplier
) external onlyOwner {
boosterMultiplier = _boosterMultiplier;
}
function setBoosterDenominator(
uint256 _boosterDenominator
) external onlyOwner {
boosterDenominator = _boosterDenominator;
}
function setTransfers(
address[] calldata _addresses,
uint256[] calldata _timestamps
) external onlyOwner {
require(_addresses.length == _timestamps.length, "Invalid length");
unchecked {
for (uint256 i = 0; i < _addresses.length; i++) {
transfers[_addresses[i]] = _timestamps[i];
}
}
}
function setCounts(
address[] calldata _addresses,
uint256[] calldata _counts
) external onlyOwner {
require(_addresses.length == _counts.length, "Invalid length");
unchecked {
for (uint256 i = 0; i < _addresses.length; i++) {
counts[_addresses[i]] = _counts[i];
}
}
}
function setStashs(
address[] calldata _addresses,
uint256[] calldata _stashs
) external onlyOwner {
require(_addresses.length == _stashs.length, "Invalid length");
unchecked {
for (uint256 i = 0; i < _addresses.length; i++) {
stashs[_addresses[i]] = _stashs[i];
}
}
}
function getExchangers() public view returns (address[] memory) {
return exchangers;
}
function deleteExchanges() external onlyOwner {
unchecked {
for (uint256 i = 0; i < exchangers.length; i++) {
delete exchanges[exchangers[i]];
}
delete exchangers;
}
}
function exchangeable() external view returns (uint256) {
uint256 count_ = counts[msg.sender];
if (count_ < 1) {
return 0;
}
bool exchanged = exchanges[msg.sender];
if (exchanged) {
return 0;
}
uint256 balance = legacyToken.balanceOf(msg.sender);
return balance;
}
function exchange() external whenNotPaused nonReentrant {
uint256 count_ = counts[msg.sender];
require(count_ > 0, "Must be Holder");
bool exchanged = exchanges[msg.sender];
require(!exchanged, "Already exchanged");
uint256 balance = legacyToken.balanceOf(msg.sender);
require(balance > 0, "Insufficient balance");
_mint(msg.sender, balance);
exchanges[msg.sender] = true;
exchangers.push(msg.sender);
}
function updateRewards(
address _from,
address _to,
uint256 _quantity
) external onlyAlwaysTired nonReentrant {
unchecked {
uint256 timestamp = block.timestamp;
bool isMint = _from == address(0);
if (_from != address(0)) {
uint256 countFrom = counts[_from];
_updateStash(_from, countFrom, timestamp, isMint, _quantity);
counts[_from] = countFrom - _quantity;
transfers[_from] = timestamp;
}
uint256 countTo = counts[_to];
_updateStash(_to, countTo, timestamp, isMint, _quantity);
counts[_to] = countTo + _quantity;
transfers[_to] = timestamp;
}
}
function _updateStash(
address _address,
uint256 _count,
uint256 _timestamp,
bool isMint,
uint256 _quantity
) internal {
unchecked {
uint256 stash = 0;
if (isMint) {
stash += mintReward * _quantity;
}
uint256 transfer = transfers[_address];
if (_count > 0 && transfer > 0) {
uint256 factor = (_timestamp - transfer) / interval;
stash += _count * intervalReward * factor;
}
stashs[_address] += stash;
}
}
function airdrop(
address[] calldata _addresses,
uint256 _amount
) external onlyOwner nonReentrant {
require(_amount > 0, "Invalid amount");
for (uint16 i = 0; i < _addresses.length; ) {
require(_addresses[i] != address(0), "Invalid address");
_mint(_addresses[i], _amount);
unchecked {
i++;
}
}
}
function available() external view returns (uint256) {
uint256 count_ = counts[msg.sender];
if (count_ < 1) {
return 0;
}
uint256 timestamp = block.timestamp;
uint256 transfer = transfers[msg.sender];
uint256 amount = 0;
unchecked {
uint256 factor = (timestamp - transfer) / interval;
amount = count_ * intervalReward * factor;
if (
address(boosterToken) != address(0) &&
boosterToken.balanceOf(msg.sender) >= boosterBalance
) {
amount = (amount * boosterMultiplier) / boosterDenominator;
}
amount = amount + stashs[msg.sender];
}
return amount;
}
function claim() external whenNotPaused nonReentrant {
uint256 count_ = counts[msg.sender];
require(count_ > 0, "Must be Holder");
uint256 timestamp = block.timestamp;
uint256 transfer = transfers[msg.sender];
uint256 amount = 0;
unchecked {
uint256 factor = (timestamp - transfer) / interval;
amount = count_ * intervalReward * factor;
if (
address(boosterToken) != address(0) &&
boosterToken.balanceOf(msg.sender) >= boosterBalance
) {
amount = (amount * boosterMultiplier) / boosterDenominator;
}
amount = amount + stashs[msg.sender];
}
require(amount > 0, "No Snooze to claim");
_mint(msg.sender, amount);
transfers[msg.sender] = timestamp;
delete stashs[msg.sender];
}
function spend(uint256 _amount) external whenNotPaused nonReentrant {
uint256 count_ = counts[msg.sender];
require(count_ > 0, "Must be Holder");
_burn(msg.sender, _amount);
}
}
{
"compilationTarget": {
"contracts/SnoozeToken.sol": "SnoozeToken"
},
"evmVersion": "paris",
"libraries": {},
"metadata": {
"bytecodeHash": "ipfs"
},
"optimizer": {
"enabled": true,
"runs": 1337
},
"remappings": []
}
[{"inputs":[{"internalType":"address","name":"_alwaysTired","type":"address"},{"internalType":"address","name":"_legacyToken","type":"address"},{"internalType":"address","name":"_boosterToken","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":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"account","type":"address"}],"name":"Paused","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":[{"internalType":"address[]","name":"_addresses","type":"address[]"},{"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"airdrop","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":[],"name":"alwaysTired","outputs":[{"internalType":"address","name":"","type":"address"}],"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":[],"name":"available","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"boosterBalance","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"boosterDenominator","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"boosterMultiplier","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"boosterToken","outputs":[{"internalType":"contract IBoosterToken","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"claim","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"counts","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","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":"deleteExchanges","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"exchange","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"exchangeable","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"exchangers","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"exchanges","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getExchangers","outputs":[{"internalType":"address[]","name":"","type":"address[]"}],"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":"interval","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"intervalReward","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"legacyToken","outputs":[{"internalType":"contract ILegacyToken","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"mintReward","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":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_alwaysTired","type":"address"}],"name":"setAlwaysTired","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_boosterBalance","type":"uint256"}],"name":"setBoosterBalance","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_boosterDenominator","type":"uint256"}],"name":"setBoosterDenominator","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_boosterMultiplier","type":"uint256"}],"name":"setBoosterMultiplier","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_boosterToken","type":"address"}],"name":"setBoosterToken","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address[]","name":"_addresses","type":"address[]"},{"internalType":"uint256[]","name":"_counts","type":"uint256[]"}],"name":"setCounts","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_interval","type":"uint256"}],"name":"setInterval","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_intervalReward","type":"uint256"}],"name":"setIntervalReward","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_legacyToken","type":"address"}],"name":"setLegacyToken","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_mintReward","type":"uint256"}],"name":"setMintReward","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address[]","name":"_addresses","type":"address[]"},{"internalType":"uint256[]","name":"_stashs","type":"uint256[]"}],"name":"setStashs","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address[]","name":"_addresses","type":"address[]"},{"internalType":"uint256[]","name":"_timestamps","type":"uint256[]"}],"name":"setTransfers","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"spend","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"stashs","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","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":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"transfers","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"unpause","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_from","type":"address"},{"internalType":"address","name":"_to","type":"address"},{"internalType":"uint256","name":"_quantity","type":"uint256"}],"name":"updateRewards","outputs":[],"stateMutability":"nonpayable","type":"function"}]