发币bsc

https://github.com/ObsidianLabs

https://github.com/33357/smartcontract-apps/tree/main/DEX/Uniswap_v2

https://github.com/safemoonprotocol/Safemoon.sol/blob/main/Safemoon.sol

https://github.com/sdzczh/solidity-contract

https://www.cnblogs.com/cbkj-xd/p/16414338.html

https://pancake.kiemtienonline360.com/#/pool

1、开启 Linux 子系统

dism.exe /online /enable-feature /featurename:Microsoft-Windows-Subsystem-Linux /all /norestart
2、开启虚拟机平台
dism.exe /online /enable-feature /featurename:VirtualMachinePlatform /all /norestart

3、 更新 wsl 重启电脑
wsl --update
## 将 wsl 版本设置为 wsl2
wsl --set-default-version 2

4、安装环境 安装Black IDE、Docker Desktop(https://blog.csdn.net/weixin_52802958/article/details/122631592)、BitzNet

5、打开https://testnet.bscscan.com/拉到最后,添加网络

6、打开https://testnet.binance.org/faucet-smart复制钱包地址获取测试币(水龙头)

7、项目导入账包私钥,选择测试网络

8、编写智能合约(发币代码)

// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;

import "@openzeppelin/contracts/token/ERC20/ERC20.sol";

contract GLDToken is ERC20 {
  constructor() ERC20("Gold", "GLD") {
    _mint(msg.sender, 123456789 * 10**decimals());
  }
}
9、编译再发币

 

posted @ 2022-08-26 15:34  玉雄观真  阅读(342)  评论(0编辑  收藏  举报