Cover photo

Base在Layer3的任务教程(包含两个任务)+部署智能合约发行自己的代币

作者:Lin Dora 推特:@duola_eth

我的推特:

项目篇:

Base 是一种安全、低成本、对开发人员友好的以太坊 L2,旨在将下一个十亿用户带入 web3。Base 在 Coinbase 内孵化,并计划在未来几年逐步去中心化。

post image

说起Base大家都不陌生,他是由Coinbase孵化的,目标是10亿用户,属于必刷项目。

教程开始:

一共两个任务

1.完成layer3任务

1-1打开网站,连接好钱包,点击Begin

post image

点击继续,基本都是一直点击继续,很简单

post image
post image

答题

post image

继续

post image
post image

这里我们不要点击Open Faucet,因为这个网站需要我们下载coinbase钱包才可以领水

post image

我们换一个领水网站

在领水之前,我们需要先在小狐狸钱包中添加Base测试网

搜索base,然后Include Testnets前面打勾,连接钱包,将Base Goerli添加到钱包中

post image

接着我们打开上边的领水网站,输入钱包地址,点击Continue

post image

接着点击no就可以了

post image

接着我们回到Layer3,点击验证

post image

接着我们点击Open Base Bridge,页面会跳转

post image

连接钱包

post image

输入ETH金额,点击DEPOSIT ETH

post image

钱包中确认,等待完成就好

post image

然后回到Layer3,点击验证

post image

点击Open Zora,页面继续跳转

post image

连接好钱包,点击Collect

post image

然后回来点击验证

post image

这里如果不想买直接点击跳过

post image

接着点击Continue

post image

完成

post image

2.接着来做第二个任务

教程开始:

1.打开上边的网站,连接好钱包,点击Begin

post image

接着点击Open Mean Finance,页面自动跳转

post image

点上右上角连接好钱包,钱包网络切换为Base测试网

post image

输入ETH的金额,任意金额就好,兑换USDC,点击Swap

post image

钱包中确认

post image

完成

post image

接着我们回到任务界面,点击验证

post image

接着我们继续点击Open Mean Finance,页面自动跳转

post image

我们点击左上角的Invest(DCA),然后选择Create

post image

我们选择Base测试网,然后用ETH兑换MEAN代币,输入金额,时间随便选择一个,然后点击Continue

post image

继续点击Create position

post image

钱包中确认

post image

完成

post image

接着我们继续回到任务界面,点击验证

post image

接下来需要发推特,我们直接点击跳过Skip

post image

最后点击Continue

post image

得到一个箱子,点击Open

post image

结束

post image

3.发行自己的代币

https://docs.openzeppelin.com/contracts/4.x/wizard

打开上边的网站,选择ERC20,输入名字和代币符号,输入数量,下边的Mintable打勾,然后点击上边的Open in Remix,页面会自动跳转

post image

直接点击编译Compile

post image

当左侧第三个按钮出现绿色对勾,说明编译成功

post image

接着点击左侧第四个按钮

post image

接下来把小狐狸钱包网络切换为Base测试网,然后点击ENVIRONMENT,选择小狐狸钱包

post image

接着点击下边的Deploy

post image

钱包中确认

post image

下边出现绿色对勾说明部署成功

post image

接着点击左侧下方这个文件

post image

下拉菜单中找到mint,点后边的箭头

post image

输入自己的小号钱包地址和数量,点击transact

post image

钱包中确认

post image

右侧下方找到自己刚才发送的,点击后边箭头展开

post image

找到自己的代币合约地址,点击复制

post image

打开小狐狸钱包,点击添加资产

post image

输入自己代币的合约地址,点击添加代币

post image

点击添加就好

post image

希望大家多多评论转发

多多关注我**@duola_eth**

我会给大家带来更多更好的教程

我的推特: