Steem学院课后作业-火币发行代币boylikegirl教程

in hive-108451 •  3 years ago 

终于到了区块链发币教程了,一直期待着,在区块链里币就是硬通货所以学会发币则代表着,你有割韭菜的初步技术了。哈哈!开个玩笑。今天这个课程有点难度,那么废话不多说直接开始!

发币前准备

在进行发币前首先要准备浏览器插件,小狐狸钱包,ETH账号地址一个,合约文件3个合约文件获取地址,下载到本地

image.png

三个文件中EIP20Factory.sol要修改几个参数如下图:

image.png

图中4个红圈参数从左到右依次为:
1.代币数量
2.代币名称
3.代币位数(此参数与参数与共同作用决定代币数量及小数点位数,如果代币要发10000个,小数点保留2位,那么第一个参数要输入 1000000)
4.参数是符号

修改好后保存。

小狐狸钱包安装教程请参看@abcallen教授的专业教程

零成本发币

因为是作业,首次体验发币,所以本着成本越低越好的原则,所以我选择测试链发币。首先找到火币测试链领取HT,测试链领HT地址:https://scan-testnet.hecochain.com/faucet ,打开地址后显示如下界面

image.png

转红框处输入你的钱包地址,也就是ETH地址,输入完成后点击确认弹出如下界面:

image.png

按照界面提示,点击图标进行身份验证,跳转到GitHub,没有GitHub的同学建议注册一个。

image.png

点击Sign In,跳转到授权页:

image.png

点击红框处授权按钮,授权成功跳转回火币测试链

image.png

再次点击确定按钮,成功后会自动跳转到如下界面:

image.png

成功领取到0.5个HT,查看小狐狸钱包是否领取成功。

image.png

这里我居然有1.98个.因为我之前有用火币链玩过测试游戏,所以这里多了一些。

真正的发币要开始了

我们使用remix发币,打开网址remix

image.png

将图中红圈处的内容全部删除,删除方法是文件夹上点右键。清除完成后上传我们准备的三个文件。

image.png

点击红圈处的上传本地文件按钮。

1628773862(1).png

选择全部,点击打开,效果如下图:

image.png

文件上传成功,然后选中EIP20Factory.sol,点击左侧红圈处的按钮,准备编译文件,进入如下界面


image.png

图中红圈处要选择与右侧版本号一致的选项。确认无误后点击下方的Compile按钮

image.png

编译完成 后左侧多出来了一个绿色√符号的角标代表编译完成。然后点击左侧第三个菜单。

image.png

进入后,左侧第一个下拉框选择injected web3,这时会链接你的小狐狸钱包,授权即可,授权后点击deploy按钮。

image.png

这里报了一个错,检查一下配置


image.png

发现,CONTRACT选择错误。我们这里切换成图中红圈处的选项。再次点击Deploy,这次就弹出小狐狸确认框了。

image.png

这时点击确认。确认后Remix出现如下图中的信息

image.png

代表合约创建完成,这时我们到小狐狸去检查一下。

image.png

打开小狐狸,点击活动,看到合约部署,我们点击打开如下界面
image.png

点击图中红圈处,去火币测试链浏览器查看交易信息。打开如下图:
image.png

点击红圈处的合约,去部署代币,点击后如下图:

image.png

然后点击图中红框处Contract,打开如下:
image.png

然后点击图中红圈处去部署代币,代开如下图:
image.png

这里的选项按照图中方式选择,然后点击continue按钮,到如下界面

image.png

点击Step1 选择之前的3个文件,然后点击Step2 的上传按钮,过一会
image.png

然后我们进行谷歌人机身份验证,最后点击verify and Publish按钮,跳转如下:

image.png

出现图中信息说明代币发布成功了。点击红框处的合约地址跳转如下:
image.png

点击图中红圈处,打开如下
image.png

这时看到我们之前设置的代币信息了,点击红圈处 :
image.png

图中显示了代币信息,及合约地址,这时我们拷贝合约地址去小狐狸中添加:

image.png

点击添加代币,打开如下

1628776737(1).jpg

填入合约地址,然后点击下一步

1628776746(1).jpg

点击添加代币,最后回到小狐狸钱包首页

1628776761(1).png

至此 整个发币过程就完成了,这个发币方式比教授课程里提供的一键发币方式要复杂很多,但是无奈我现在打不开教授提供的网站,所以只能选择这个方式完成作业,虽然累点,但是好在发币成功了,并且是在测试链中发币,所以没有实际的成本。

Authors get paid when people like you upvote their post.
If you enjoyed what you read here, create your account today and start earning FREE STEEM!
Sort Order:  
  ·  3 years ago 

{"title":"第一个提案","userId":"0xecb4418967ba6b2695efa752dd0b6332412fe745","communityId":"0xa7637ac672e04eD7823039874A71107224DB0746","network":"5","type":"proposal","start":"2021-09-28 13:00:40","end":"2021-09-28 13:00:40","body":"第一个提案","first_block":"5577454","end_block":"5577454","strategies":"[\n {\n "strategyControlId": "jGHpUolwO4HgjaqWPd_XC",\n "strategyKey": "erc20-balance-of",\n "strategyParams": "{\n \"address\": \"0x3C372284875566209Be2995c433913bE792CaFa4\",\n \"symbol\": \"BLG23\",\n \"decimals\": 18\n}",\n "strategies": {\n "name": "erc20-balance-of",\n "params": {\n "address": "0x3C372284875566209Be2995c433913bE792CaFa4",\n "symbol": "BLG23",\n "decimals": 18\n }\n }\n }\n]","threshold":1,"blockNumber":0}

  ·  3 years ago 

awesome !shop

[WhereIn Android] (http://www.wherein.io)

  ·  3 years ago 

程序猿就是不一样啊!牛逼特斯拉!
!shop

[WhereIn Android] (http://www.wherein.io)

  ·  3 years ago 

你好鸭,boylikegirl!

@zhangyan-123给您叫了一份外卖!

Cold Pot

吃饱了吗?跟我猜拳吧! 石头,剪刀,布~

如果您对我的服务满意,请不要吝啬您的点赞~

  ·  3 years ago 

点评:

  • 学员@boylikegirl ,当前声望61,本期课程所参与的课后作业内容为“学习加密货币的发行方式并通过实际行动发行加密货币”。无论是当前声望还是所编写的作业文章均符合本期课程的参与要求。

  • 在当前中的作业文章中,学员@boylikegirl 选择了基于HECO测试网络进行加密货币的发行,所发行的加密货币为boylikegirl ,总量为1亿。整个加密货币的发行因为是基于HECO测试网且获取了免费的HT,真正做到了零成本发行加密货币。


优点:

  • 关于本次加密货币的发行过程,学员@boylikegirl不仅同通过教程的形式进行详细的描述,非常具有参考性,且整个操作过程且具有一定技术含量。

缺点:

  • 当前课后作业当中只完成了加密货币的发行,却缺失了对所发行加密货币添加流动性的操作,这也使得整个过程不够完整。

建议:

  • 能实现零成本发行加密货币固然是好事,但更建议发行到主网上,并对所发行的加密货币添加流动性。

打分:「满分10」

  • 7分
  ·  3 years ago 

厉害了!学习,学习。!shop

[WhereIn Android] (http://www.wherein.io)

  ·  3 years ago 

你好鸭,boylikegirl!

@lovelingling给您叫了一份外卖!

埃塞的果汁

吃饱了吗?跟我猜拳吧! 石头,剪刀,布~

如果您对我的服务满意,请不要吝啬您的点赞~

  ·  3 years ago (edited)

@tipu curate 2
真是厉害

  ·  3 years ago 

谢谢。教授教程也起了很大作用。

  ·  3 years ago 

{"title":"第一个提案","userId":"0xecb4418967ba6b2695efa752dd0b6332412fe745","communityId":"0xa7637ac672e04eD7823039874A71107224DB0746","network":"5","type":"proposal","start":"2021-09-28 12:49:12","end":"2021-09-28 13:39:15","body":"","first_block":"5577445","end_block":"5578445","strategies":"[\n {\n "strategyControlId": "jGHpUolwO4HgjaqWPd_XC",\n "strategyKey": "erc20-balance-of",\n "strategyParams": "{\n \"address\": \"0x3C372284875566209Be2995c433913bE792CaFa4\",\n \"symbol\": \"BLG23\",\n \"decimals\": 18\n}",\n "strategies": {\n "name": "erc20-balance-of",\n "params": {\n "address": "0x3C372284875566209Be2995c433913bE792CaFa4",\n "symbol": "BLG23",\n "decimals": 18\n }\n }\n }\n]","threshold":1,"blockNumber":0}

  ·  3 years ago 

{"title":"第一个提案","userId":"0xecb4418967ba6b2695efa752dd0b6332412fe745","communityId":"0xa7637ac672e04eD7823039874A71107224DB0746","network":"5","type":"proposal","start":"2021-09-28 12:51:27","end":"2021-09-28 12:51:28","body":"第一个提案","first_block":"5577454","end_block":"5577454","strategies":"[\n {\n "strategyControlId": "jGHpUolwO4HgjaqWPd_XC",\n "strategyKey": "erc20-balance-of",\n "strategyParams": "{\n \"address\": \"0x3C372284875566209Be2995c433913bE792CaFa4\",\n \"symbol\": \"BLG23\",\n \"decimals\": 18\n}",\n "strategies": {\n "name": "erc20-balance-of",\n "params": {\n "address": "0x3C372284875566209Be2995c433913bE792CaFa4",\n "symbol": "BLG23",\n "decimals": 18\n }\n }\n }\n]","threshold":1,"blockNumber":0}

  ·  3 years ago 

{"title":"第一个提案","userId":"0xecb4418967ba6b2695efa752dd0b6332412fe745","communityId":"0xa7637ac672e04eD7823039874A71107224DB0746","network":"5","type":"proposal","start":"2021-09-28 12:52:02","end":"2021-09-28 12:52:02","body":"第一个提案","first_block":"5577454","end_block":"5577454","strategies":"[\n {\n "strategyControlId": "jGHpUolwO4HgjaqWPd_XC",\n "strategyKey": "erc20-balance-of",\n "strategyParams": "{\n \"address\": \"0x3C372284875566209Be2995c433913bE792CaFa4\",\n \"symbol\": \"BLG23\",\n \"decimals\": 18\n}",\n "strategies": {\n "name": "erc20-balance-of",\n "params": {\n "address": "0x3C372284875566209Be2995c433913bE792CaFa4",\n "symbol": "BLG23",\n "decimals": 18\n }\n }\n }\n]","threshold":1,"blockNumber":0}

  ·  3 years ago 

你好鸭,boylikegirl!
@alpha-omega赠送1枚SHOP币给你!

目前你总共有: 38枚SHOP币

查看或者交易 SHOP币 请到 steem-engine.net.

无聊吗?跟我猜拳吧! **石头,剪刀,布~**
  ·  3 years ago 

{"title":"第二个提案","userId":"0xecb4418967ba6b2695efa752dd0b6332412fe745","communityId":"0xa7637ac672e04eD7823039874A71107224DB0746","network":"5","type":"proposal","start":"2021-09-28 13:02:05","end":"2021-09-28 13:02:05","body":"第二个提案","first_block":"5577454","end_block":"5577454","strategies":"[\n {\n "strategyControlId": "jGHpUolwO4HgjaqWPd_XC",\n "strategyKey": "erc20-balance-of",\n "strategyParams": "{\n \"address\": \"0x3C372284875566209Be2995c433913bE792CaFa4\",\n \"symbol\": \"BLG23\",\n \"decimals\": 18\n}",\n "strategies": {\n "name": "erc20-balance-of",\n "params": {\n "address": "0x3C372284875566209Be2995c433913bE792CaFa4",\n "symbol": "BLG23",\n "decimals": 18\n }\n }\n }\n]","threshold":1,"blockNumber":0}

  ·  3 years ago 

{"title":"第二个提案","userId":"0xecb4418967ba6b2695efa752dd0b6332412fe745","communityId":"0xa7637ac672e04eD7823039874A71107224DB0746","network":"5","type":"proposal","start":"2021-09-28 13:03:17","end":"2021-09-28 22:13:19","body":"第二个提案","first_block":"5577454","end_block":"5588454","strategies":"[\n {\n "strategyControlId": "jGHpUolwO4HgjaqWPd_XC",\n "strategyKey": "erc20-balance-of",\n "strategyParams": "{\n \"address\": \"0x3C372284875566209Be2995c433913bE792CaFa4\",\n \"symbol\": \"BLG23\",\n \"decimals\": 18\n}",\n "strategies": {\n "name": "erc20-balance-of",\n "params": {\n "address": "0x3C372284875566209Be2995c433913bE792CaFa4",\n "symbol": "BLG23",\n "decimals": 18\n }\n }\n }\n]","threshold":1,"blockNumber":0}

  ·  3 years ago 

{"title":"第三个提案","userId":"0xecb4418967ba6b2695efa752dd0b6332412fe745","communityId":"0xa7637ac672e04eD7823039874A71107224DB0746","network":"5","type":"proposal","start":"2021-09-28 13:08:52","end":"2021-09-28 21:28:54","body":"第三个提案","first_block":"5577524","end_block":"5587524","strategies":"[\n {\n "strategyControlId": "jGHpUolwO4HgjaqWPd_XC",\n "strategyKey": "erc20-balance-of",\n "strategyParams": "{\n \"address\": \"0x3C372284875566209Be2995c433913bE792CaFa4\",\n \"symbol\": \"BLG23\",\n \"decimals\": 18\n}",\n "strategies": {\n "name": "erc20-balance-of",\n "params": {\n "address": "0x3C372284875566209Be2995c433913bE792CaFa4",\n "symbol": "BLG23",\n "decimals": 18\n }\n }\n }\n]","threshold":1,"blockNumber":0}

  ·  3 years ago 

{"id":"","ipfs":"","userId":"0xecb4418967ba6b2695efa752dd0b6332412fe745","created":"","communityId":"0xa7637ac672e04eD7823039874A71107224DB0746","proposalId":"c9lnkyska3i","voteType":1,"voteScore":5}

  ·  3 years ago 

{"id":"","ipfs":"","userId":"0x07b40d4474cff5301c078ad35ebb9409359b4516","created":"","communityId":"0xa7637ac672e04eD7823039874A71107224DB0746","proposalId":"c9lnkyska3i","voteType":0,"voteScore":6}

  ·  3 years ago 

{"id":"","ipfs":"","userId":"0x07b40d4474cff5301c078ad35ebb9409359b4516","created":"","communityId":"0xa7637ac672e04eD7823039874A71107224DB0746","proposalId":"35poq09fg6w","voteType":1,"voteScore":6}

  ·  3 years ago 

{"id":"","ipfs":"","userId":"0xd9f4985a73349dea9acb7c424e35056714ba2b35","created":"","communityId":"0xa7637ac672e04eD7823039874A71107224DB0746","proposalId":"35poq09fg6w","voteType":0,"voteScore":112}

  ·  3 years ago 

{"id":"","ipfs":"","userId":"0xecb4418967ba6b2695efa752dd0b6332412fe745","created":"","communityId":"0xa7637ac672e04eD7823039874A71107224DB0746","proposalId":"543d6uewyuq","voteType":1,"voteScore":5}

  ·  3 years ago 

{"id":"","ipfs":"","userId":"0x07b40d4474cff5301c078ad35ebb9409359b4516","created":"","communityId":"0xa7637ac672e04eD7823039874A71107224DB0746","proposalId":"543d6uewyuq","voteType":0,"voteScore":6}

  ·  3 years ago 

{"id":"","ipfs":"","userId":"0x07b40d4474cff5301c078ad35ebb9409359b4516","created":"","communityId":"0xa7637ac672e04eD7823039874A71107224DB0746","proposalId":"anp5xhc6il","voteType":1,"voteScore":6}