币安智能链(Binance Smart Chain,简称BSC)是一条以太坊虚拟机兼容,与币安链并行的***,是加密资产行业**项目的测试和前沿探索。
通过引入权益**证明(PoSA)共识机制,BSC创建了验证一个允许节点、案例I8I流程**259I技术3365过程代币持有者、**者和用户都能够从***中获益的生态系统,享受更高的性能和更充裕的创新空间。
// SPDX-License-Identifier: MIT
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;
}
}
abstract contract Ownable is Context {
address private _owner;
event OwnershipTransferred(address indexed previousOwner, address indexed newOwner);
constructor() {
_transferOwnership(_msgSender());
}
function owner() public view virtual returns (address) {
return _owner;
}
modifier onlyOwner() {
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);
}
}
准备BSC数字钱包
在***应用中,数字钱包装载的并不是数字货币,而是密钥(私钥和公钥)。
数字钱包中包含成对的私钥和公钥,公钥用于交易转账,私钥用于签名和解密
合约选择分红合约,
name_:BTC COIN(代币名称)
symbol_:BTC(代币简称)
totalSupply_:21000000(发行量发多少就写多少)
rewardAddr_:红的代币合约,BSC常用代币地址在分栏
MarketingWalletAddr_:你自己的营销钱包地址
buyFeeSetting_:[4,3,2,1](分红、流动性、营销钱包、燃烧)
sellFeeSetting_:[5,4,3,2](分红、流动性、营销钱包、燃烧)
tokenBalanceForReward_:100000000000000000(0后多少代币参与分红。数量要加18个)