文件 1 的 6: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) {
this;
return msg.data;
}
}
文件 2 的 6: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 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);
uint256 currentAllowance = _allowances[sender][_msgSender()];
require(currentAllowance >= amount, "ERC20: transfer amount exceeds allowance");
_approve(sender, _msgSender(), currentAllowance - amount);
return true;
}
function increaseAllowance(address spender, uint256 addedValue) public virtual returns (bool) {
_approve(_msgSender(), spender, _allowances[_msgSender()][spender] + addedValue);
return true;
}
function decreaseAllowance(address spender, uint256 subtractedValue) public virtual returns (bool) {
uint256 currentAllowance = _allowances[_msgSender()][spender];
require(currentAllowance >= subtractedValue, "ERC20: decreased allowance below zero");
_approve(_msgSender(), spender, currentAllowance - subtractedValue);
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);
uint256 senderBalance = _balances[sender];
require(senderBalance >= amount, "ERC20: transfer amount exceeds balance");
_balances[sender] = senderBalance - amount;
_balances[recipient] += 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 += amount;
_balances[account] += 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);
uint256 accountBalance = _balances[account];
require(accountBalance >= amount, "ERC20: burn amount exceeds balance");
_balances[account] = accountBalance - amount;
_totalSupply -= 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 _beforeTokenTransfer(address from, address to, uint256 amount) internal virtual { }
}
文件 3 的 6:IERC20.sol
pragma solidity ^0.8.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);
}
文件 4 的 6: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 的 6:KaikenToken.sol
pragma solidity 0.8.4;
import "@openzeppelin/contracts/token/ERC20/ERC20.sol";
import "@openzeppelin/contracts/utils/math/SafeMath.sol";
contract KaikenToken is ERC20 {
using SafeMath for uint;
address owner;
address private investors = 0x456ee95063e52359530b9702C9A3d1EEB46864A7;
address private exchanges = 0xa611d21b868f2A1d9Cfb383152DC3483Ea15F81F;
address private marketing = 0x085BA6bef0b3fEACf2D4Cb3Dba5CA11520E2AD01;
address private reserve = 0xFe76451745386702e091113170b703096dC9E024;
struct TaxRecord {
uint timestamp;
uint tax;
uint balance;
}
struct GenesisRecord {
uint timestamp;
uint balance;
}
uint transferMode;
uint[] startingTaxes = [
5,
8,
10,
15,
20,
25,
30
];
uint[] thresholds = [
5,
10,
20,
30,
40,
50
];
uint private constant BPS = 100;
uint private constant ONE_YEAR = 365;
uint private constant TRANSFER = 0;
uint private constant TRANSFER_FROM = 1;
uint private OWNER = 20000000000;
uint private RESERVE = 30000000000;
uint private INVESTORS = 15000000000;
uint private EXCHANGES = 20000000000;
uint private MARKETING = 15000000000;
mapping(address => bool) exempts;
mapping(address => bool) totalExempts;
mapping(address => TaxRecord[]) accountTaxMap;
mapping(address => TaxRecord[]) sandboxAccountTaxMap;
mapping(address => GenesisRecord) genesis;
modifier onlyOwner {
require(msg.sender == owner, 'Only the owner can invoke this call.');
_;
}
event AddedExempt(address exempted);
event RemovedExempt(address exempted);
event RemovedTotalExempt(address exempted);
event UpdatedExempt(address exempted, bool isValid);
event UpdatedTotalExempt(address exempted, bool isValid);
event UpdatedReserve(address reserve);
event TaxRecordSet(address _addr, uint timestamp, uint balance, uint tax);
event UpdatedStartingTaxes(uint[] startingTaxes);
event UpdatedThresholds(uint[] thresholds);
event InitializedExempts(uint initialized);
event InitializedTotalExempts(uint initialized);
event SandboxTaxRecordSet(address addr, uint timestamp, uint balance, uint tax);
constructor(
string memory _name,
string memory _symbol
) public ERC20(_name, _symbol) {
owner = msg.sender;
_mint(owner, OWNER * (10 ** uint256(decimals())));
_mint(reserve, RESERVE * (10 ** uint256(decimals())));
_mint(exchanges, EXCHANGES * (10 ** uint256(decimals())));
_mint(investors, INVESTORS * (10 ** uint256(decimals())));
_mint(marketing, MARKETING * (10 ** uint256(decimals())));
_initializeExempts();
_initializeTotalExempts();
}
function transfer(
address to,
uint amount
) public virtual override returns (bool){
transferMode = TRANSFER;
return _internalTransfer(msg.sender, to, amount);
}
function transferFrom(
address from,
address to,
uint amount
) public virtual override returns (bool success) {
transferMode = TRANSFER_FROM;
return _internalTransfer(from, to, amount);
}
function getStartingTaxes() public view returns(uint[] memory) {
return startingTaxes;
}
function getThresholds() public view returns(uint[] memory){
return thresholds;
}
function getExempt(address _addr) public view returns(bool){
return exempts[_addr];
}
function getTotalExempt(address _addr) public view returns(bool){
return totalExempts[_addr];
}
function getTaxRecord(address _addr) public view returns(TaxRecord[] memory){
return accountTaxMap[_addr];
}
function getGenesisRecord(address _addr) public view returns(GenesisRecord memory){
return genesis[_addr];
}
function getReserve() public view returns(address) {
return reserve;
}
function updateStartingTaxes(uint[] memory _startingTaxes) public onlyOwner {
startingTaxes = _startingTaxes;
emit UpdatedStartingTaxes(startingTaxes);
}
function updateThresholds(uint[] memory _thresholds) public onlyOwner {
thresholds = _thresholds;
emit UpdatedThresholds(thresholds);
}
function updateReserve(address _reserve) public onlyOwner {
reserve = _reserve;
emit UpdatedReserve(reserve);
}
function addExempt(address _exempted, bool totalExempt) public onlyOwner {
require(_exempted != owner, 'Cannot tax exempt the owner');
_addExempt(_exempted, totalExempt);
}
function updateExempt(address _exempted, bool isValid) public onlyOwner {
require(_exempted != owner, 'Can not update Owners tax exempt status');
exempts[_exempted] = isValid;
emit UpdatedExempt(_exempted, isValid);
}
function updateTotalExempt(address _exempted, bool isValid) public onlyOwner {
require(_exempted != owner, 'Can not update Owners tax exempt status');
totalExempts[_exempted] = isValid;
if(isValid) {
exempts[_exempted] = false;
}
emit UpdatedTotalExempt(_exempted, isValid);
}
function removeExempt(address _exempted) public onlyOwner {
require(exempts[_exempted], 'Exempt address is not existent');
exempts[_exempted] = false;
emit RemovedExempt(_exempted);
}
function removeTotalExempt(address _exempted) public onlyOwner {
require(totalExempts[_exempted], 'Total Exempt address is not existent');
totalExempts[_exempted] = false;
emit RemovedTotalExempt(_exempted);
}
function _addExempt(address _exempted, bool totalExempt) internal {
require(!exempts[_exempted] || !totalExempts[_exempted], 'Exempt address already existent');
if(totalExempt == false) {
exempts[_exempted] = true;
} else {
totalExempts[_exempted] = true;
exempts[_exempted] = false;
}
emit AddedExempt(_exempted);
}
function _initializeExempts() internal {
exempts[exchanges] = true;
exempts[investors] = true;
exempts[marketing] = true;
exempts[0xf164fC0Ec4E93095b804a4795bBe1e041497b92a] = true;
exempts[0x7a250d5630B4cF539739dF2C5dAcb4c659F2488D] = true;
exempts[0xE592427A0AEce92De3Edee1F18E0157C05861564] = true;
exempts[0xd9e1cE17f2641f24aE83637ab66a2cca9C378B9F] = true;
exempts[0xdb38ae75c5F44276803345f7F02e95A0aeEF5944] = true;
exempts[0xBA12222222228d8Ba445958a75a0704d566BF2C8] = true;
emit InitializedExempts(1);
}
function _initializeTotalExempts() internal {
totalExempts[reserve] = true;
totalExempts[0xCCE8D59AFFdd93be338FC77FA0A298C2CB65Da59] = true;
totalExempts[0xB5Ef14898928FDCE71b54Ea80350B76F9a3617a6] = true;
totalExempts[0x9BA3560231e3E0aD7dde23106F5B98C72E30b468] = true;
emit InitializedTotalExempts(1);
}
function _getTaxPercentage(
address _from,
address _to,
uint _sentAmount
) internal returns (uint tax) {
uint taxPercentage = 0;
uint fromBalance = balanceOf(_from);
uint noww = block.timestamp;
require(
fromBalance > 0 && _sentAmount > 0,
'Intangible balance or amount to send'
);
bool isDueForTaxExemption =
!exempts[_from] &&
!totalExempts[_from] &&
genesis[_from].timestamp > 0 &&
genesis[_from].balance > 0 &&
balanceOf(_from) >= genesis[_from].balance &&
noww - genesis[_from].timestamp >= ONE_YEAR * 1 days;
if (isDueForTaxExemption) _addExempt(_from, false);
if (
exempts[_from] ||
totalExempts[_from] ||
totalExempts[_to]
) return taxPercentage;
uint percentageTransferred = _sentAmount.mul(100).div(fromBalance);
if (percentageTransferred <= thresholds[0]) {
taxPercentage = startingTaxes[0];
} else if (percentageTransferred <= thresholds[1]) {
taxPercentage = startingTaxes[1];
} else if (percentageTransferred <= thresholds[2]) {
taxPercentage = startingTaxes[2];
} else if (percentageTransferred <= thresholds[3]) {
taxPercentage = startingTaxes[3];
} else if (percentageTransferred <= thresholds[4]) {
taxPercentage = startingTaxes[4];
} else if (percentageTransferred <= thresholds[5]) {
taxPercentage = startingTaxes[5];
} else {
taxPercentage = startingTaxes[6];
}
_setTaxRecord(_from, taxPercentage);
return taxPercentage;
}
function _getReceivedAmount(
address _from,
address _to,
uint _sentAmount
) internal returns (uint receivedAmount, uint taxAmount) {
uint taxPercentage = _getTaxPercentage(_from, _to, _sentAmount);
receivedAmount = _sentAmount.sub(_sentAmount.div(BPS).mul(taxPercentage));
taxAmount = _sentAmount.sub(receivedAmount);
}
function _setTaxRecord(
address _addr,
uint _tax
) internal {
uint timestamp = block.timestamp;
accountTaxMap[_addr].push(TaxRecord({
timestamp: timestamp,
tax: _tax,
balance: balanceOf(_addr)
}));
emit TaxRecordSet(_addr, timestamp, balanceOf(_addr), _tax);
}
function _internalTransfer(
address _from,
address _to,
uint _amount
) internal returns (bool success){
uint noww = block.timestamp;
if(_from == owner && !exempts[owner]) {
}
if (transferMode == TRANSFER) {
super.transfer(_to, _amount);
} else {
(, uint taxAmount) = _getReceivedAmount(_from, _to, _amount);
require(
balanceOf(_from) >= _amount.add(taxAmount),
'Exclusive taxation: Cannot afford to pay tax'
);
if(taxAmount > 0) {
_burn(_from, taxAmount);
_mint(reserve, taxAmount);
}
super.transferFrom(_from, _to, _amount);
}
if (genesis[_to].timestamp == 0) {
genesis[_to].timestamp = noww;
}
genesis[_to].balance = balanceOf(_to);
genesis[_from].balance = balanceOf(_from);
genesis[_from].timestamp = noww;
return true;
}
function sandboxSetTaxRecord(
address addr,
uint _tax
) public {
uint noww = block.timestamp;
sandboxAccountTaxMap[addr].push(TaxRecord({
timestamp: noww,
tax: _tax,
balance: balanceOf(addr)
}));
emit SandboxTaxRecordSet(addr, noww, balanceOf(addr), _tax);
}
function sandboxGetTaxRecord(
address addr
) public view returns (TaxRecord[] memory tr){
tr = sandboxAccountTaxMap[addr];
}
}
文件 6 的 6:SafeMath.sol
pragma solidity ^0.8.0;
library SafeMath {
function tryAdd(uint256 a, uint256 b) internal pure returns (bool, uint256) {
unchecked {
uint256 c = a + b;
if (c < a) return (false, 0);
return (true, c);
}
}
function trySub(uint256 a, uint256 b) internal pure returns (bool, uint256) {
unchecked {
if (b > a) return (false, 0);
return (true, a - b);
}
}
function tryMul(uint256 a, uint256 b) internal pure returns (bool, uint256) {
unchecked {
if (a == 0) return (true, 0);
uint256 c = a * b;
if (c / a != b) return (false, 0);
return (true, c);
}
}
function tryDiv(uint256 a, uint256 b) internal pure returns (bool, uint256) {
unchecked {
if (b == 0) return (false, 0);
return (true, a / b);
}
}
function tryMod(uint256 a, uint256 b) internal pure returns (bool, uint256) {
unchecked {
if (b == 0) return (false, 0);
return (true, a % b);
}
}
function add(uint256 a, uint256 b) internal pure returns (uint256) {
return a + b;
}
function sub(uint256 a, uint256 b) internal pure returns (uint256) {
return a - b;
}
function mul(uint256 a, uint256 b) internal pure returns (uint256) {
return a * b;
}
function div(uint256 a, uint256 b) internal pure returns (uint256) {
return a / b;
}
function mod(uint256 a, uint256 b) internal pure returns (uint256) {
return a % b;
}
function sub(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) {
unchecked {
require(b <= a, errorMessage);
return a - b;
}
}
function div(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) {
unchecked {
require(b > 0, errorMessage);
return a / b;
}
}
function mod(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) {
unchecked {
require(b > 0, errorMessage);
return a % b;
}
}
}
{
"compilationTarget": {
"github/kaikendev/kaikenCoin/contracts/mock/KaikenToken.sol": "KaikenToken"
},
"evmVersion": "istanbul",
"libraries": {},
"metadata": {
"bytecodeHash": "ipfs"
},
"optimizer": {
"enabled": true,
"runs": 200
},
"remappings": []
}
[{"inputs":[{"internalType":"string","name":"_name","type":"string"},{"internalType":"string","name":"_symbol","type":"string"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"exempted","type":"address"}],"name":"AddedExempt","type":"event"},{"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":"initialized","type":"uint256"}],"name":"InitializedExempts","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"initialized","type":"uint256"}],"name":"InitializedTotalExempts","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"exempted","type":"address"}],"name":"RemovedExempt","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"exempted","type":"address"}],"name":"RemovedTotalExempt","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"addr","type":"address"},{"indexed":false,"internalType":"uint256","name":"timestamp","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"balance","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"tax","type":"uint256"}],"name":"SandboxTaxRecordSet","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"_addr","type":"address"},{"indexed":false,"internalType":"uint256","name":"timestamp","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"balance","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"tax","type":"uint256"}],"name":"TaxRecordSet","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":"exempted","type":"address"},{"indexed":false,"internalType":"bool","name":"isValid","type":"bool"}],"name":"UpdatedExempt","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"reserve","type":"address"}],"name":"UpdatedReserve","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256[]","name":"startingTaxes","type":"uint256[]"}],"name":"UpdatedStartingTaxes","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256[]","name":"thresholds","type":"uint256[]"}],"name":"UpdatedThresholds","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"exempted","type":"address"},{"indexed":false,"internalType":"bool","name":"isValid","type":"bool"}],"name":"UpdatedTotalExempt","type":"event"},{"inputs":[{"internalType":"address","name":"_exempted","type":"address"},{"internalType":"bool","name":"totalExempt","type":"bool"}],"name":"addExempt","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":[],"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":"_addr","type":"address"}],"name":"getExempt","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_addr","type":"address"}],"name":"getGenesisRecord","outputs":[{"components":[{"internalType":"uint256","name":"timestamp","type":"uint256"},{"internalType":"uint256","name":"balance","type":"uint256"}],"internalType":"struct KaikenToken.GenesisRecord","name":"","type":"tuple"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getReserve","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getStartingTaxes","outputs":[{"internalType":"uint256[]","name":"","type":"uint256[]"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_addr","type":"address"}],"name":"getTaxRecord","outputs":[{"components":[{"internalType":"uint256","name":"timestamp","type":"uint256"},{"internalType":"uint256","name":"tax","type":"uint256"},{"internalType":"uint256","name":"balance","type":"uint256"}],"internalType":"struct KaikenToken.TaxRecord[]","name":"","type":"tuple[]"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getThresholds","outputs":[{"internalType":"uint256[]","name":"","type":"uint256[]"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_addr","type":"address"}],"name":"getTotalExempt","outputs":[{"internalType":"bool","name":"","type":"bool"}],"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":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_exempted","type":"address"}],"name":"removeExempt","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_exempted","type":"address"}],"name":"removeTotalExempt","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"addr","type":"address"}],"name":"sandboxGetTaxRecord","outputs":[{"components":[{"internalType":"uint256","name":"timestamp","type":"uint256"},{"internalType":"uint256","name":"tax","type":"uint256"},{"internalType":"uint256","name":"balance","type":"uint256"}],"internalType":"struct KaikenToken.TaxRecord[]","name":"tr","type":"tuple[]"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"addr","type":"address"},{"internalType":"uint256","name":"_tax","type":"uint256"}],"name":"sandboxSetTaxRecord","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":"success","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_exempted","type":"address"},{"internalType":"bool","name":"isValid","type":"bool"}],"name":"updateExempt","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_reserve","type":"address"}],"name":"updateReserve","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256[]","name":"_startingTaxes","type":"uint256[]"}],"name":"updateStartingTaxes","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256[]","name":"_thresholds","type":"uint256[]"}],"name":"updateThresholds","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_exempted","type":"address"},{"internalType":"bool","name":"isValid","type":"bool"}],"name":"updateTotalExempt","outputs":[],"stateMutability":"nonpayable","type":"function"}]