编译器
0.8.25+commit.b61c2a91
文件 1 的 8:CAD_Stake.sol
pragma solidity ^0.8.25;
import "@openzeppelin/contracts/token/ERC20/ERC20.sol";
import "@openzeppelin/contracts/utils/cryptography/MerkleProof.sol";
import "@openzeppelin/contracts/access/Ownable.sol";
interface IOSCMP is IERC20 {
function verify(bytes32 _root, address _to, uint256 count, bytes32[] calldata proof) external view returns (bool);
function claimedAmount(address user) external view returns(uint256);
function claim(address to, uint256 amountAll, bytes32[] calldata proof) external;
function claim(address[] calldata lstTo, uint256[] calldata lstAmount, bytes32[][] calldata lstProof) external;
function claim(address to, uint256 amountAll, bytes32[] calldata proof, uint8 decimal) external;
function claim(address[] calldata lstTo, uint256[] calldata lstAmount, bytes32[][] calldata lstProof, uint8 decimal) external;
}
interface ICADStake {
function stake(uint256 value) external;
function claim(address user) external;
function getReward(address user) external view returns (uint256 _reward);
function getData(address user) external view returns (uint256[] memory _balances,
uint256 _stake, uint256 _reward, uint256 _claim);
event Stake(address user, uint256 value);
event Claim(address operator, address user, uint256 value);
}
contract OSCMP is IOSCMP, ERC20, Ownable {
bytes32 public merkleRoot;
mapping(address => uint256) public claimedAmount;
constructor() ERC20("Caduceus osCMP", "osCMP") Ownable(msg.sender) {
}
function setMerkleRoot(bytes32 _root) public onlyOwner {
merkleRoot = _root;
}
function getEncodePacked(address _to, uint256 count) public pure virtual returns (bytes memory) {
return abi.encode(_to, count);
}
function getHash(address _to, uint256 count) public view virtual returns (bytes32) {
return keccak256(this.getEncodePacked(_to, count));
}
function getKeccak256(bytes memory _data) public pure virtual returns (bytes32) {
return keccak256(_data);
}
function verify(bytes32 _root, address _to, uint256 count, bytes32[] calldata proof) public view override returns (bool) {
return MerkleProof.verify(proof, _root, this.getHash(_to, count));
}
function claim(address to, uint256 amountAll, bytes32[] calldata proof) public override {
claim(to, amountAll, proof, 0);
}
function claim(address[] calldata lstTo, uint256[] calldata lstAmount, bytes32[][] calldata lstProof) public override {
claim(lstTo, lstAmount, lstProof, 0);
}
function claim(address to, uint256 amountAll, bytes32[] calldata proof, uint8 decimal) public override {
uint256 amount = amountAll * 10 ** (18 - decimal);
if (this.verify(merkleRoot, to, amountAll, proof)
&& claimedAmount[to] < amount) {
uint256 amountToClaim = amount - claimedAmount[to];
claimedAmount[to] += amountToClaim;
_mint(to, amountToClaim);
}
}
function claim(address[] calldata lstTo, uint256[] calldata lstAmount, bytes32[][] calldata lstProof, uint8 decimal) public override {
for (uint256 i = 0; i < lstTo.length; i++) {
claim(lstTo[i], lstAmount[i], lstProof[i], decimal);
}
}
}
contract CADStake is ICADStake, Ownable {
uint256 public stakeStartTime = 0;
uint256 public stakeEndTime = 1745280000;
uint256 public stakeLockTime = 365 days;
uint256 public rewardRate = 20000;
address public rewardToken;
address[] private stakeTokens;
uint256[] private stakeRates;
mapping(address => uint256) public userClaimedAmount;
mapping(address => uint256[]) public userStakeRecord;
mapping(uint256 => uint256) public amountOfStakeRecord;
mapping(uint256 => uint256) public startOfStakeRecord;
uint256 public totalStake;
uint256 constant TIME_ZONE = 0 hours;
uint256 constant TIME_UNIT = 1 days;
bool constant TIME_ZONE_WEST = false;
uint256 constant RATE_PERCENT = 10000;
constructor() Ownable(msg.sender) {
stakeTokens = new address[](2);
stakeRates = new uint256[](2);
stakeTokens[0] = address(0xe60FbbEEd16445FA51004A4903ad579a5f74AF1F);
stakeTokens[1] = address(0x4349929808E515936A68903F6085F5e2B143ff3d);
stakeRates[0] = 10000;
stakeRates[1] = 10000;
rewardToken = stakeTokens[1];
}
function set(
uint256 _stakeStartTime,
uint256 _stakeEndTime,
uint256 _stakeLockTime,
address[] memory _stakeTokens,
uint256[] memory _stakeRates,
address _rewardToken,
uint256 _rewardRate
) public onlyOwner {
stakeStartTime = _stakeStartTime;
stakeEndTime = _stakeEndTime;
stakeLockTime = _stakeLockTime;
stakeTokens = new address[](_stakeTokens.length);
for (uint256 i = 0; i < _stakeTokens.length; i++) {
stakeTokens[i] = _stakeTokens[i];
}
stakeRates = new uint256[](_stakeRates.length);
for (uint256 i = 0; i < _stakeRates.length; i++) {
stakeRates[i] = _stakeRates[i];
}
rewardToken = _rewardToken;
rewardRate = _rewardRate;
}
function stake(uint256 value) public {
require(block.timestamp >= stakeStartTime, "The stake pool hasn't started yet.");
require(block.timestamp <= stakeEndTime, "The stake pool has ended yet.");
for (uint256 i = 0; i < stakeTokens.length; i++) {
IERC20(stakeTokens[i]).transferFrom(msg.sender, address(this),
value * stakeRates[i] / RATE_PERCENT);
}
_recordStake(msg.sender, value);
}
function claim(address user) public {
uint256 amountReward = getReward(user);
uint256 amountClaim = userClaimedAmount[user];
if (amountClaim < amountReward) {
uint256 amount = amountReward - amountClaim;
userClaimedAmount[user] += amount;
IERC20(rewardToken).transfer(user, amount);
emit Claim(msg.sender, user, amount);
}
}
function getStake(address user) public view returns (uint256 _stake) {
uint256 amount = 0;
for (uint256 i = 0; i < userStakeRecord[user].length; i++) {
uint256 idx = userStakeRecord[user][i];
amount += amountOfStakeRecord[idx];
}
return amount;
}
function getData(address user) public view returns (uint256[] memory _balances,
uint256 _stake, uint256 _reward, uint256 _claim) {
uint256[] memory balances = new uint256[](stakeTokens.length);
for (uint256 i = 0; i < stakeTokens.length; i++) {
balances[i] = IERC20(stakeTokens[i]).balanceOf(user);
}
return (balances, getStake(user), getReward(user), userClaimedAmount[user]);
}
function getReward(address user) public view returns (uint256 _reward) {
uint256 reward = 0;
for (uint256 i = 0; i < userStakeRecord[user].length; i++) {
uint256 idx = userStakeRecord[user][i];
reward += getReward(idx);
}
return reward;
}
function getReward(uint256 idx) public view returns (uint256 _reward) {
uint256 day = getStakeDays(idx);
uint256 dayAll = stakeLockTime / TIME_UNIT;
if (day > dayAll) {
day = dayAll;
}
return amountOfStakeRecord[idx] * rewardRate * day / (RATE_PERCENT * dayAll);
}
function getStakeDays(uint256 idx) public view returns(uint256) {
uint256 tStart = startOfStakeRecord[idx];
uint256 t1 = max(stakeStartTime, tStart);
uint256 t2 = min(block.timestamp, tStart + stakeLockTime);
return t2 > t1 ? getDay(t2) - getDay(t1) : 0;
}
function getDay(uint256 t) public pure returns(uint256) {
return (TIME_ZONE_WEST ? (t > TIME_ZONE ? (t - TIME_ZONE) : 0) : (t + TIME_ZONE)) / TIME_UNIT;
}
function max(uint256 x, uint256 y) public pure returns(uint256) {
return x > y ? x : y;
}
function min(uint256 x, uint256 y) public pure returns(uint256) {
return x < y ? x : y;
}
function _recordStake(address user, uint256 value) internal {
amountOfStakeRecord[totalStake] = value;
startOfStakeRecord[totalStake] = block.timestamp;
userStakeRecord[user].push(totalStake);
totalStake++;
emit Stake(user, value);
}
}
interface IStakeCADOnETHForMining {
function stake(uint8 kind) external;
function unstake() external;
event Stake(address indexed user, uint8 kind);
event Unstake(address indexed user);
}
contract StakeCADOnETHForMining is Ownable, IStakeCADOnETHForMining {
IERC20 public tokenOfNeedStaking;
uint256 public tokenPriceCAD;
uint256 public tokenPriceUSD;
uint256[] public amountOfSNeedStaking;
mapping(address => uint256) public amountOfUserStaked;
constructor() Ownable(msg.sender) {
}
function set(uint256 _tokenPriceCAD, uint256 _tokenPriceUSD) public onlyOwner {
tokenPriceCAD = _tokenPriceCAD;
tokenPriceUSD = _tokenPriceUSD;
}
function set(uint256[] calldata _amounts, uint8 decimal) public onlyOwner {
uint256 scaler = 10 ** (18 - decimal);
for (uint256 i = 0; i < _amounts.length; i++) {
amountOfSNeedStaking[i] = _amounts[i] * scaler;
}
}
function stake(uint8 kind) public {
require(kind < amountOfSNeedStaking.length, "The staking type isn't exist.");
uint256 amount = amountOfSNeedStaking[kind] * tokenPriceUSD / tokenPriceCAD;
require(tokenOfNeedStaking.balanceOf(msg.sender) >= amount, "Your staking token isn't enough.");
require(amountOfUserStaked[msg.sender] == 0, "You have already staked.");
tokenOfNeedStaking.transferFrom(msg.sender, address(this), amount);
amountOfUserStaked[msg.sender] += amount;
emit Stake(msg.sender, kind);
}
function unstake() public {
uint256 amount = amountOfUserStaked[msg.sender];
require(amount > 0, "You haven't staked yet.");
tokenOfNeedStaking.transfer(msg.sender, amount);
amountOfUserStaked[msg.sender] -= amount;
emit Unstake(msg.sender);
}
}
文件 2 的 8:Context.sol
pragma solidity ^0.8.20;
abstract contract Context {
function _msgSender() internal view virtual returns (address) {
return msg.sender;
}
function _msgData() internal view virtual returns (bytes calldata) {
return msg.data;
}
function _contextSuffixLength() internal view virtual returns (uint256) {
return 0;
}
}
文件 3 的 8:ERC20.sol
pragma solidity ^0.8.20;
import {IERC20} from "./IERC20.sol";
import {IERC20Metadata} from "./extensions/IERC20Metadata.sol";
import {Context} from "../../utils/Context.sol";
import {IERC20Errors} from "../../interfaces/draft-IERC6093.sol";
abstract contract ERC20 is Context, IERC20, IERC20Metadata, IERC20Errors {
mapping(address account => uint256) private _balances;
mapping(address account => mapping(address spender => 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 returns (string memory) {
return _name;
}
function symbol() public view virtual returns (string memory) {
return _symbol;
}
function decimals() public view virtual returns (uint8) {
return 18;
}
function totalSupply() public view virtual returns (uint256) {
return _totalSupply;
}
function balanceOf(address account) public view virtual returns (uint256) {
return _balances[account];
}
function transfer(address to, uint256 value) public virtual returns (bool) {
address owner = _msgSender();
_transfer(owner, to, value);
return true;
}
function allowance(address owner, address spender) public view virtual returns (uint256) {
return _allowances[owner][spender];
}
function approve(address spender, uint256 value) public virtual returns (bool) {
address owner = _msgSender();
_approve(owner, spender, value);
return true;
}
function transferFrom(address from, address to, uint256 value) public virtual returns (bool) {
address spender = _msgSender();
_spendAllowance(from, spender, value);
_transfer(from, to, value);
return true;
}
function _transfer(address from, address to, uint256 value) internal {
if (from == address(0)) {
revert ERC20InvalidSender(address(0));
}
if (to == address(0)) {
revert ERC20InvalidReceiver(address(0));
}
_update(from, to, value);
}
function _update(address from, address to, uint256 value) internal virtual {
if (from == address(0)) {
_totalSupply += value;
} else {
uint256 fromBalance = _balances[from];
if (fromBalance < value) {
revert ERC20InsufficientBalance(from, fromBalance, value);
}
unchecked {
_balances[from] = fromBalance - value;
}
}
if (to == address(0)) {
unchecked {
_totalSupply -= value;
}
} else {
unchecked {
_balances[to] += value;
}
}
emit Transfer(from, to, value);
}
function _mint(address account, uint256 value) internal {
if (account == address(0)) {
revert ERC20InvalidReceiver(address(0));
}
_update(address(0), account, value);
}
function _burn(address account, uint256 value) internal {
if (account == address(0)) {
revert ERC20InvalidSender(address(0));
}
_update(account, address(0), value);
}
function _approve(address owner, address spender, uint256 value) internal {
_approve(owner, spender, value, true);
}
function _approve(address owner, address spender, uint256 value, bool emitEvent) internal virtual {
if (owner == address(0)) {
revert ERC20InvalidApprover(address(0));
}
if (spender == address(0)) {
revert ERC20InvalidSpender(address(0));
}
_allowances[owner][spender] = value;
if (emitEvent) {
emit Approval(owner, spender, value);
}
}
function _spendAllowance(address owner, address spender, uint256 value) internal virtual {
uint256 currentAllowance = allowance(owner, spender);
if (currentAllowance != type(uint256).max) {
if (currentAllowance < value) {
revert ERC20InsufficientAllowance(spender, currentAllowance, value);
}
unchecked {
_approve(owner, spender, currentAllowance - value, false);
}
}
}
}
文件 4 的 8:IERC20.sol
pragma solidity ^0.8.20;
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 value) external returns (bool);
function allowance(address owner, address spender) external view returns (uint256);
function approve(address spender, uint256 value) external returns (bool);
function transferFrom(address from, address to, uint256 value) external returns (bool);
}
文件 5 的 8:IERC20Metadata.sol
pragma solidity ^0.8.20;
import {IERC20} from "../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);
}
文件 6 的 8:MerkleProof.sol
pragma solidity ^0.8.20;
library MerkleProof {
error MerkleProofInvalidMultiproof();
function verify(bytes32[] memory proof, bytes32 root, bytes32 leaf) internal pure returns (bool) {
return processProof(proof, leaf) == root;
}
function verifyCalldata(bytes32[] calldata proof, bytes32 root, bytes32 leaf) internal pure returns (bool) {
return processProofCalldata(proof, leaf) == root;
}
function processProof(bytes32[] memory proof, bytes32 leaf) internal pure returns (bytes32) {
bytes32 computedHash = leaf;
for (uint256 i = 0; i < proof.length; i++) {
computedHash = _hashPair(computedHash, proof[i]);
}
return computedHash;
}
function processProofCalldata(bytes32[] calldata proof, bytes32 leaf) internal pure returns (bytes32) {
bytes32 computedHash = leaf;
for (uint256 i = 0; i < proof.length; i++) {
computedHash = _hashPair(computedHash, proof[i]);
}
return computedHash;
}
function multiProofVerify(
bytes32[] memory proof,
bool[] memory proofFlags,
bytes32 root,
bytes32[] memory leaves
) internal pure returns (bool) {
return processMultiProof(proof, proofFlags, leaves) == root;
}
function multiProofVerifyCalldata(
bytes32[] calldata proof,
bool[] calldata proofFlags,
bytes32 root,
bytes32[] memory leaves
) internal pure returns (bool) {
return processMultiProofCalldata(proof, proofFlags, leaves) == root;
}
function processMultiProof(
bytes32[] memory proof,
bool[] memory proofFlags,
bytes32[] memory leaves
) internal pure returns (bytes32 merkleRoot) {
uint256 leavesLen = leaves.length;
uint256 proofLen = proof.length;
uint256 totalHashes = proofFlags.length;
if (leavesLen + proofLen != totalHashes + 1) {
revert MerkleProofInvalidMultiproof();
}
bytes32[] memory hashes = new bytes32[](totalHashes);
uint256 leafPos = 0;
uint256 hashPos = 0;
uint256 proofPos = 0;
for (uint256 i = 0; i < totalHashes; i++) {
bytes32 a = leafPos < leavesLen ? leaves[leafPos++] : hashes[hashPos++];
bytes32 b = proofFlags[i]
? (leafPos < leavesLen ? leaves[leafPos++] : hashes[hashPos++])
: proof[proofPos++];
hashes[i] = _hashPair(a, b);
}
if (totalHashes > 0) {
if (proofPos != proofLen) {
revert MerkleProofInvalidMultiproof();
}
unchecked {
return hashes[totalHashes - 1];
}
} else if (leavesLen > 0) {
return leaves[0];
} else {
return proof[0];
}
}
function processMultiProofCalldata(
bytes32[] calldata proof,
bool[] calldata proofFlags,
bytes32[] memory leaves
) internal pure returns (bytes32 merkleRoot) {
uint256 leavesLen = leaves.length;
uint256 proofLen = proof.length;
uint256 totalHashes = proofFlags.length;
if (leavesLen + proofLen != totalHashes + 1) {
revert MerkleProofInvalidMultiproof();
}
bytes32[] memory hashes = new bytes32[](totalHashes);
uint256 leafPos = 0;
uint256 hashPos = 0;
uint256 proofPos = 0;
for (uint256 i = 0; i < totalHashes; i++) {
bytes32 a = leafPos < leavesLen ? leaves[leafPos++] : hashes[hashPos++];
bytes32 b = proofFlags[i]
? (leafPos < leavesLen ? leaves[leafPos++] : hashes[hashPos++])
: proof[proofPos++];
hashes[i] = _hashPair(a, b);
}
if (totalHashes > 0) {
if (proofPos != proofLen) {
revert MerkleProofInvalidMultiproof();
}
unchecked {
return hashes[totalHashes - 1];
}
} else if (leavesLen > 0) {
return leaves[0];
} else {
return proof[0];
}
}
function _hashPair(bytes32 a, bytes32 b) private pure returns (bytes32) {
return a < b ? _efficientHash(a, b) : _efficientHash(b, a);
}
function _efficientHash(bytes32 a, bytes32 b) private pure returns (bytes32 value) {
assembly {
mstore(0x00, a)
mstore(0x20, b)
value := keccak256(0x00, 0x40)
}
}
}
文件 7 的 8:Ownable.sol
pragma solidity ^0.8.20;
import {Context} from "../utils/Context.sol";
abstract contract Ownable is Context {
address private _owner;
error OwnableUnauthorizedAccount(address account);
error OwnableInvalidOwner(address owner);
event OwnershipTransferred(address indexed previousOwner, address indexed newOwner);
constructor(address initialOwner) {
if (initialOwner == address(0)) {
revert OwnableInvalidOwner(address(0));
}
_transferOwnership(initialOwner);
}
modifier onlyOwner() {
_checkOwner();
_;
}
function owner() public view virtual returns (address) {
return _owner;
}
function _checkOwner() internal view virtual {
if (owner() != _msgSender()) {
revert OwnableUnauthorizedAccount(_msgSender());
}
}
function renounceOwnership() public virtual onlyOwner {
_transferOwnership(address(0));
}
function transferOwnership(address newOwner) public virtual onlyOwner {
if (newOwner == address(0)) {
revert OwnableInvalidOwner(address(0));
}
_transferOwnership(newOwner);
}
function _transferOwnership(address newOwner) internal virtual {
address oldOwner = _owner;
_owner = newOwner;
emit OwnershipTransferred(oldOwner, newOwner);
}
}
文件 8 的 8:draft-IERC6093.sol
pragma solidity ^0.8.20;
interface IERC20Errors {
error ERC20InsufficientBalance(address sender, uint256 balance, uint256 needed);
error ERC20InvalidSender(address sender);
error ERC20InvalidReceiver(address receiver);
error ERC20InsufficientAllowance(address spender, uint256 allowance, uint256 needed);
error ERC20InvalidApprover(address approver);
error ERC20InvalidSpender(address spender);
}
interface IERC721Errors {
error ERC721InvalidOwner(address owner);
error ERC721NonexistentToken(uint256 tokenId);
error ERC721IncorrectOwner(address sender, uint256 tokenId, address owner);
error ERC721InvalidSender(address sender);
error ERC721InvalidReceiver(address receiver);
error ERC721InsufficientApproval(address operator, uint256 tokenId);
error ERC721InvalidApprover(address approver);
error ERC721InvalidOperator(address operator);
}
interface IERC1155Errors {
error ERC1155InsufficientBalance(address sender, uint256 balance, uint256 needed, uint256 tokenId);
error ERC1155InvalidSender(address sender);
error ERC1155InvalidReceiver(address receiver);
error ERC1155MissingApprovalForAll(address operator, address owner);
error ERC1155InvalidApprover(address approver);
error ERC1155InvalidOperator(address operator);
error ERC1155InvalidArrayLength(uint256 idsLength, uint256 valuesLength);
}
{
"compilationTarget": {
"CAD_Stake.sol": "OSCMP"
},
"evmVersion": "cancun",
"libraries": {},
"metadata": {
"bytecodeHash": "ipfs"
},
"optimizer": {
"enabled": false,
"runs": 200
},
"remappings": []
}
[{"inputs":[],"stateMutability":"nonpayable","type":"constructor"},{"inputs":[{"internalType":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"allowance","type":"uint256"},{"internalType":"uint256","name":"needed","type":"uint256"}],"name":"ERC20InsufficientAllowance","type":"error"},{"inputs":[{"internalType":"address","name":"sender","type":"address"},{"internalType":"uint256","name":"balance","type":"uint256"},{"internalType":"uint256","name":"needed","type":"uint256"}],"name":"ERC20InsufficientBalance","type":"error"},{"inputs":[{"internalType":"address","name":"approver","type":"address"}],"name":"ERC20InvalidApprover","type":"error"},{"inputs":[{"internalType":"address","name":"receiver","type":"address"}],"name":"ERC20InvalidReceiver","type":"error"},{"inputs":[{"internalType":"address","name":"sender","type":"address"}],"name":"ERC20InvalidSender","type":"error"},{"inputs":[{"internalType":"address","name":"spender","type":"address"}],"name":"ERC20InvalidSpender","type":"error"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"OwnableInvalidOwner","type":"error"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"OwnableUnauthorizedAccount","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":"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":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":false,"internalType":"uint256","name":"value","type":"uint256"}],"name":"Transfer","type":"event"},{"inputs":[{"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":"value","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":"address","name":"to","type":"address"},{"internalType":"uint256","name":"amountAll","type":"uint256"},{"internalType":"bytes32[]","name":"proof","type":"bytes32[]"},{"internalType":"uint8","name":"decimal","type":"uint8"}],"name":"claim","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"amountAll","type":"uint256"},{"internalType":"bytes32[]","name":"proof","type":"bytes32[]"}],"name":"claim","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address[]","name":"lstTo","type":"address[]"},{"internalType":"uint256[]","name":"lstAmount","type":"uint256[]"},{"internalType":"bytes32[][]","name":"lstProof","type":"bytes32[][]"},{"internalType":"uint8","name":"decimal","type":"uint8"}],"name":"claim","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address[]","name":"lstTo","type":"address[]"},{"internalType":"uint256[]","name":"lstAmount","type":"uint256[]"},{"internalType":"bytes32[][]","name":"lstProof","type":"bytes32[][]"}],"name":"claim","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"claimedAmount","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":"_to","type":"address"},{"internalType":"uint256","name":"count","type":"uint256"}],"name":"getEncodePacked","outputs":[{"internalType":"bytes","name":"","type":"bytes"}],"stateMutability":"pure","type":"function"},{"inputs":[{"internalType":"address","name":"_to","type":"address"},{"internalType":"uint256","name":"count","type":"uint256"}],"name":"getHash","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes","name":"_data","type":"bytes"}],"name":"getKeccak256","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"pure","type":"function"},{"inputs":[],"name":"merkleRoot","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"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":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"_root","type":"bytes32"}],"name":"setMerkleRoot","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":"value","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":"value","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":"bytes32","name":"_root","type":"bytes32"},{"internalType":"address","name":"_to","type":"address"},{"internalType":"uint256","name":"count","type":"uint256"},{"internalType":"bytes32[]","name":"proof","type":"bytes32[]"}],"name":"verify","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"}]