编译器
0.8.14+commit.80d49f37
文件 1 的 5:ERC20.sol
pragma solidity >=0.8.0;
abstract contract ERC20 {
event Transfer(address indexed from, address indexed to, uint256 amount);
event Approval(address indexed owner, address indexed spender, uint256 amount);
string public name;
string public symbol;
uint8 public immutable decimals;
uint256 public totalSupply;
mapping(address => uint256) public balanceOf;
mapping(address => mapping(address => uint256)) public allowance;
uint256 internal immutable INITIAL_CHAIN_ID;
bytes32 internal immutable INITIAL_DOMAIN_SEPARATOR;
mapping(address => uint256) public nonces;
constructor(
string memory _name,
string memory _symbol,
uint8 _decimals
) {
name = _name;
symbol = _symbol;
decimals = _decimals;
INITIAL_CHAIN_ID = block.chainid;
INITIAL_DOMAIN_SEPARATOR = computeDomainSeparator();
}
function approve(address spender, uint256 amount) public virtual returns (bool) {
allowance[msg.sender][spender] = amount;
emit Approval(msg.sender, spender, amount);
return true;
}
function transfer(address to, uint256 amount) public virtual returns (bool) {
balanceOf[msg.sender] -= amount;
unchecked {
balanceOf[to] += amount;
}
emit Transfer(msg.sender, to, amount);
return true;
}
function transferFrom(
address from,
address to,
uint256 amount
) public virtual returns (bool) {
uint256 allowed = allowance[from][msg.sender];
if (allowed != type(uint256).max) allowance[from][msg.sender] = allowed - amount;
balanceOf[from] -= amount;
unchecked {
balanceOf[to] += amount;
}
emit Transfer(from, to, amount);
return true;
}
function permit(
address owner,
address spender,
uint256 value,
uint256 deadline,
uint8 v,
bytes32 r,
bytes32 s
) public virtual {
require(deadline >= block.timestamp, "PERMIT_DEADLINE_EXPIRED");
unchecked {
address recoveredAddress = ecrecover(
keccak256(
abi.encodePacked(
"\x19\x01",
DOMAIN_SEPARATOR(),
keccak256(
abi.encode(
keccak256(
"Permit(address owner,address spender,uint256 value,uint256 nonce,uint256 deadline)"
),
owner,
spender,
value,
nonces[owner]++,
deadline
)
)
)
),
v,
r,
s
);
require(recoveredAddress != address(0) && recoveredAddress == owner, "INVALID_SIGNER");
allowance[recoveredAddress][spender] = value;
}
emit Approval(owner, spender, value);
}
function DOMAIN_SEPARATOR() public view virtual returns (bytes32) {
return block.chainid == INITIAL_CHAIN_ID ? INITIAL_DOMAIN_SEPARATOR : computeDomainSeparator();
}
function computeDomainSeparator() internal view virtual returns (bytes32) {
return
keccak256(
abi.encode(
keccak256("EIP712Domain(string name,string version,uint256 chainId,address verifyingContract)"),
keccak256(bytes(name)),
keccak256("1"),
block.chainid,
address(this)
)
);
}
function _mint(address to, uint256 amount) internal virtual {
totalSupply += amount;
unchecked {
balanceOf[to] += amount;
}
emit Transfer(address(0), to, amount);
}
function _burn(address from, uint256 amount) internal virtual {
balanceOf[from] -= amount;
unchecked {
totalSupply -= amount;
}
emit Transfer(from, address(0), amount);
}
}
文件 2 的 5:IOKPC.sol
pragma solidity ^0.8.14;
interface IOKPC {
function marketplaceAddress() external view returns (address);
function owner() external view returns (address);
function balanceOf(address owner) external view returns (uint256);
function ownerOf(uint256 tokenId) external view returns (address);
function artCountForOKPC(uint256) external view returns (uint256);
function clockSpeed(uint256) external view returns (uint256);
function clockSpeedMaxMultiplier() external view returns (uint256);
function clockSpeedData(uint256 pcId)
external
view
returns (
uint256,
uint256,
uint256,
uint256
);
function activeArtForOKPC(uint256 pcId) external view returns (uint256);
function artCollectedByOKPC(uint256 pcId, uint256 artId)
external
view
returns (bool);
function setMarketplaceAddress(address marketplaceAddress) external;
function transferArt(
uint256 fromOKPC,
uint256 toOKPC,
uint256 artId
) external;
}
文件 3 的 5:IOKPCMarketplace.sol
pragma solidity ^0.8.14;
interface IOKPCMarketplace {
function didMint(uint256 pcId, uint256 artId) external view returns (bool);
}
文件 4 的 5:OKPCGold.sol
pragma solidity ^0.8.14;
import "solmate/tokens/ERC20.sol";
import "solmate/auth/Owned.sol";
import "./interfaces/IOKPC.sol";
import "./interfaces/IOKPCMarketplace.sol";
contract OKPCGold is Owned, ERC20 {
IOKPC public immutable OKPC;
uint256 public constant OKPC_CLAIM_MAX = 1_024;
uint256 public constant AIRDROP_CLAIM = 10_000;
uint256 public SCREEN_STAKING_INTERVAL = 64 days;
uint256 public SCREEN_STAKING_REWARD = 256;
bool public CLAIMABLE;
struct OKPCClaim {
bool okpcClaimed;
bool artworkClaimed;
uint128 stakingLastClaimed;
}
mapping(uint256 => OKPCClaim) public okpcClaims;
error ClaimNotOpen();
error NoOKGLDClaimable();
modifier ifClaimable() {
if (!CLAIMABLE) revert ClaimNotOpen();
_;
}
constructor(IOKPC okpcAddress)
Owned(msg.sender)
ERC20("OKPC GOLD", "OKGLD", 18)
{
OKPC = okpcAddress;
}
function claim(uint256 pcId) external ifClaimable {
if (OKPC.ownerOf(pcId) != msg.sender) revert NoOKGLDClaimable();
uint256 amount;
amount += _claimForOKPC(pcId);
amount += _claimForArtwork(pcId);
amount += _claimForScreenStaking(pcId);
if (amount == 0) revert NoOKGLDClaimable();
_mint(msg.sender, amount * 10**decimals);
}
function claim(uint256[] calldata pcIds) external ifClaimable {
uint256 amount;
for (uint256 i; i < pcIds.length; i++)
if (OKPC.ownerOf(pcIds[i]) == msg.sender) {
amount += _claimForOKPC(pcIds[i]);
amount += _claimForArtwork(pcIds[i]);
amount += _claimForScreenStaking(pcIds[i]);
}
if (amount == 0) revert NoOKGLDClaimable();
_mint(msg.sender, amount * 10**decimals);
}
function claimableAmount(uint256 pcId)
public
view
returns (uint256 amount)
{
return
claimableAmountForOKPC(pcId) +
claimableAmountForArtwork(pcId) +
claimableAmountForScreenStaking(pcId);
}
function claimableAmount(uint256[] calldata pcIds)
public
view
returns (uint256 amount)
{
for (uint256 i; i < pcIds.length; i++)
amount += claimableAmount(pcIds[i]);
}
function claimForOKPC(uint256 pcId) external ifClaimable {
if (OKPC.ownerOf(pcId) != msg.sender) revert NoOKGLDClaimable();
uint256 amount = _claimForOKPC(pcId);
if (amount == 0) revert NoOKGLDClaimable();
_mint(msg.sender, amount * 10**decimals);
}
function claimForOKPC(uint256[] calldata pcIds) external ifClaimable {
uint256 amount;
for (uint256 i; i < pcIds.length; i++)
if (OKPC.ownerOf(pcIds[i]) == msg.sender)
amount += _claimForOKPC(pcIds[i]);
if (amount == 0) revert NoOKGLDClaimable();
_mint(msg.sender, amount * 10**decimals);
}
function _claimForOKPC(uint256 pcId) private returns (uint256 amount) {
amount = claimableAmountForOKPC(pcId);
if (amount > 0) okpcClaims[pcId].okpcClaimed = true;
}
function claimableAmountForOKPC(uint256 pcId)
public
view
returns (uint256 amount)
{
return claimableAmountForOKPC(pcId, 0);
}
function claimableAmountForOKPC(uint256[] calldata pcIds)
public
view
returns (uint256 amount)
{
for (uint256 i; i < pcIds.length; i++)
amount += claimableAmountForOKPC(pcIds[i], 0);
}
function claimableAmountForOKPC(
uint256[] calldata pcIds,
uint256 afterBlocks
) public view returns (uint256 amount) {
for (uint256 i; i < pcIds.length; i++)
amount += claimableAmountForOKPC(pcIds[i], afterBlocks);
}
function claimableAmountForOKPC(uint256 pcId, uint256 afterBlocks)
public
view
returns (uint256 amount)
{
if (okpcClaims[pcId].okpcClaimed == false) {
uint256 artCount = OKPC.artCountForOKPC(pcId);
uint256 total = (clockSpeedProjected(pcId, afterBlocks) / 2) *
2**(artCount > 3 ? 3 : artCount);
amount = total > OKPC_CLAIM_MAX ? OKPC_CLAIM_MAX : total;
}
}
function clockSpeedProjected(uint256 pcId, uint256 afterBlocks)
public
view
returns (uint256)
{
(uint256 savedSpeed, uint256 lastBlock, , ) = OKPC.clockSpeedData(pcId);
if (lastBlock == 0) return 1;
uint256 delta = block.number + afterBlocks - lastBlock;
uint256 multiplier = delta / 200_000;
uint256 clockSpeedMaxMultiplier = OKPC.clockSpeedMaxMultiplier();
if (multiplier > clockSpeedMaxMultiplier)
multiplier = clockSpeedMaxMultiplier;
uint256 total = savedSpeed + ((delta * (multiplier + 1)) / 10_000);
if (total < 1) total = 1;
return total;
}
function clockSpeedProjected(uint256[] calldata pcIds, uint256 afterBlocks)
public
view
returns (uint256[] memory)
{
uint256[] memory result = new uint256[](pcIds.length);
for (uint256 i; i < pcIds.length; i++)
result[i] = clockSpeedProjected(pcIds[i], afterBlocks);
return result;
}
function claimForArtwork(uint256 pcId) external ifClaimable {
if (OKPC.ownerOf(pcId) != msg.sender) revert NoOKGLDClaimable();
uint256 amount = _claimForArtwork(pcId);
if (amount == 0) revert NoOKGLDClaimable();
_mint(msg.sender, amount * 10**decimals);
}
function claimForArtwork(uint256[] calldata pcIds) external ifClaimable {
uint256 amount;
for (uint256 i; i < pcIds.length; i++)
if (OKPC.ownerOf(pcIds[i]) == msg.sender)
amount += _claimForArtwork(pcIds[i]);
if (amount == 0) revert NoOKGLDClaimable();
_mint(msg.sender, amount * 10**decimals);
}
function _claimForArtwork(uint256 pcId) private returns (uint256 amount) {
amount = claimableAmountForArtwork(pcId);
if (amount > 0) okpcClaims[pcId].artworkClaimed = true;
}
function claimableAmountForArtwork(uint256 pcId)
public
view
returns (uint256 amount)
{
if (
okpcClaims[pcId].artworkClaimed == false &&
OKPC.artCollectedByOKPC(pcId, 69)
) {
if (
OKPC.marketplaceAddress() == address(0) ||
IOKPCMarketplace(OKPC.marketplaceAddress()).didMint(pcId, 69)
) amount = AIRDROP_CLAIM;
}
}
function claimableAmountForArtwork(uint256[] calldata pcIds)
public
view
returns (uint256 amount)
{
for (uint256 i; i < pcIds.length; i++)
amount += claimableAmountForArtwork(pcIds[i]);
}
function claimForScreenStaking(uint256 pcId) external ifClaimable {
if (OKPC.ownerOf(pcId) != msg.sender) revert NoOKGLDClaimable();
uint256 amount = _claimForScreenStaking(pcId);
if (amount == 0) revert NoOKGLDClaimable();
_mint(msg.sender, amount * 10**decimals);
}
function claimForScreenStaking(uint256[] calldata pcIds)
external
ifClaimable
{
uint256 amount;
for (uint256 i; i < pcIds.length; i++)
if (OKPC.ownerOf(pcIds[i]) == msg.sender)
amount += _claimForScreenStaking(pcIds[i]);
if (amount == 0) revert NoOKGLDClaimable();
_mint(msg.sender, amount * 10**decimals);
}
function _claimForScreenStaking(uint256 pcId)
private
returns (uint256 amount)
{
amount = claimableAmountForScreenStaking(pcId);
if (amount > 0)
okpcClaims[pcId].stakingLastClaimed = uint128(block.timestamp);
}
function claimableAmountForScreenStaking(uint256 pcId)
public
view
returns (uint256 amount)
{
return claimableAmountForScreenStaking(pcId, 0);
}
function claimableAmountForScreenStaking(uint256[] calldata pcIds)
public
view
returns (uint256 amount)
{
for (uint256 i; i < pcIds.length; i++)
amount += claimableAmountForScreenStaking(pcIds[i]);
}
function claimableAmountForScreenStaking(uint256 pcId, uint256 afterTime)
public
view
returns (uint256 amount)
{
if (OKPC.activeArtForOKPC(pcId) != 69) return 0;
(, , , uint256 artLastChanged) = OKPC.clockSpeedData(pcId);
uint256 previous = (
okpcClaims[pcId].stakingLastClaimed > artLastChanged
? okpcClaims[pcId].stakingLastClaimed
: artLastChanged
);
if (block.timestamp + afterTime >= previous + SCREEN_STAKING_INTERVAL)
amount =
SCREEN_STAKING_REWARD *
((block.timestamp + afterTime - previous) /
SCREEN_STAKING_INTERVAL);
}
function claimableAmountForScreenStaking(
uint256[] calldata pcIds,
uint256 afterTime
) public view returns (uint256 amount) {
for (uint256 i; i < pcIds.length; i++)
amount += claimableAmountForScreenStaking(pcIds[i], afterTime);
}
function burn(uint256 amount) external {
_burn(msg.sender, amount);
}
function setClaimable(bool claimable) external onlyOwner {
CLAIMABLE = claimable;
}
function setScreenStakingConfig(
uint256 screenStakingInterval,
uint256 screenStakingReward
) external onlyOwner {
SCREEN_STAKING_INTERVAL = screenStakingInterval;
SCREEN_STAKING_REWARD = screenStakingReward;
}
}
文件 5 的 5:Owned.sol
pragma solidity >=0.8.0;
abstract contract Owned {
event OwnerUpdated(address indexed user, address indexed newOwner);
address public owner;
modifier onlyOwner() virtual {
require(msg.sender == owner, "UNAUTHORIZED");
_;
}
constructor(address _owner) {
owner = _owner;
emit OwnerUpdated(address(0), _owner);
}
function setOwner(address newOwner) public virtual onlyOwner {
owner = newOwner;
emit OwnerUpdated(msg.sender, newOwner);
}
}
{
"compilationTarget": {
"src/OKPCGold.sol": "OKPCGold"
},
"evmVersion": "london",
"libraries": {},
"metadata": {
"bytecodeHash": "ipfs"
},
"optimizer": {
"enabled": true,
"runs": 200
},
"remappings": [
":ds-test/=lib/solmate/lib/ds-test/src/",
":forge-std/=lib/forge-std/src/",
":openzeppelin-contracts/=lib/openzeppelin-contracts/",
":script/=script/",
":solmate/=lib/solmate/src/",
":src/=src/",
":test/=test/"
]
}
[{"inputs":[{"internalType":"contract IOKPC","name":"okpcAddress","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"inputs":[],"name":"ClaimNotOpen","type":"error"},{"inputs":[],"name":"NoOKGLDClaimable","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":"amount","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"user","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnerUpdated","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":"amount","type":"uint256"}],"name":"Transfer","type":"event"},{"inputs":[],"name":"AIRDROP_CLAIM","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"CLAIMABLE","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"DOMAIN_SEPARATOR","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"OKPC","outputs":[{"internalType":"contract IOKPC","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"OKPC_CLAIM_MAX","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"SCREEN_STAKING_INTERVAL","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"SCREEN_STAKING_REWARD","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"},{"internalType":"address","name":"","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":"","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":"uint256","name":"pcId","type":"uint256"}],"name":"claim","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256[]","name":"pcIds","type":"uint256[]"}],"name":"claim","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256[]","name":"pcIds","type":"uint256[]"}],"name":"claimForArtwork","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"pcId","type":"uint256"}],"name":"claimForArtwork","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"pcId","type":"uint256"}],"name":"claimForOKPC","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256[]","name":"pcIds","type":"uint256[]"}],"name":"claimForOKPC","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256[]","name":"pcIds","type":"uint256[]"}],"name":"claimForScreenStaking","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"pcId","type":"uint256"}],"name":"claimForScreenStaking","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256[]","name":"pcIds","type":"uint256[]"}],"name":"claimableAmount","outputs":[{"internalType":"uint256","name":"amount","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"pcId","type":"uint256"}],"name":"claimableAmount","outputs":[{"internalType":"uint256","name":"amount","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256[]","name":"pcIds","type":"uint256[]"}],"name":"claimableAmountForArtwork","outputs":[{"internalType":"uint256","name":"amount","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"pcId","type":"uint256"}],"name":"claimableAmountForArtwork","outputs":[{"internalType":"uint256","name":"amount","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256[]","name":"pcIds","type":"uint256[]"}],"name":"claimableAmountForOKPC","outputs":[{"internalType":"uint256","name":"amount","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"pcId","type":"uint256"}],"name":"claimableAmountForOKPC","outputs":[{"internalType":"uint256","name":"amount","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256[]","name":"pcIds","type":"uint256[]"},{"internalType":"uint256","name":"afterBlocks","type":"uint256"}],"name":"claimableAmountForOKPC","outputs":[{"internalType":"uint256","name":"amount","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"pcId","type":"uint256"},{"internalType":"uint256","name":"afterBlocks","type":"uint256"}],"name":"claimableAmountForOKPC","outputs":[{"internalType":"uint256","name":"amount","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"pcId","type":"uint256"}],"name":"claimableAmountForScreenStaking","outputs":[{"internalType":"uint256","name":"amount","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256[]","name":"pcIds","type":"uint256[]"},{"internalType":"uint256","name":"afterTime","type":"uint256"}],"name":"claimableAmountForScreenStaking","outputs":[{"internalType":"uint256","name":"amount","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"pcId","type":"uint256"},{"internalType":"uint256","name":"afterTime","type":"uint256"}],"name":"claimableAmountForScreenStaking","outputs":[{"internalType":"uint256","name":"amount","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256[]","name":"pcIds","type":"uint256[]"}],"name":"claimableAmountForScreenStaking","outputs":[{"internalType":"uint256","name":"amount","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256[]","name":"pcIds","type":"uint256[]"},{"internalType":"uint256","name":"afterBlocks","type":"uint256"}],"name":"clockSpeedProjected","outputs":[{"internalType":"uint256[]","name":"","type":"uint256[]"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"pcId","type":"uint256"},{"internalType":"uint256","name":"afterBlocks","type":"uint256"}],"name":"clockSpeedProjected","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":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"nonces","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"okpcClaims","outputs":[{"internalType":"bool","name":"okpcClaimed","type":"bool"},{"internalType":"bool","name":"artworkClaimed","type":"bool"},{"internalType":"uint128","name":"stakingLastClaimed","type":"uint128"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"value","type":"uint256"},{"internalType":"uint256","name":"deadline","type":"uint256"},{"internalType":"uint8","name":"v","type":"uint8"},{"internalType":"bytes32","name":"r","type":"bytes32"},{"internalType":"bytes32","name":"s","type":"bytes32"}],"name":"permit","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bool","name":"claimable","type":"bool"}],"name":"setClaimable","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"setOwner","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"screenStakingInterval","type":"uint256"},{"internalType":"uint256","name":"screenStakingReward","type":"uint256"}],"name":"setScreenStakingConfig","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"}]