Skip to content

Commit

Permalink
update metadata
Browse files Browse the repository at this point in the history
  • Loading branch information
AmazingAng committed Sep 9, 2023
1 parent 0517b97 commit f29e11e
Show file tree
Hide file tree
Showing 26 changed files with 201 additions and 6 deletions.
7 changes: 7 additions & 0 deletions 01_HelloVitalik/readme.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,12 @@
---
title: 1. HelloVitalik (6行代码)
tags:
- ethers
- javascript
- ens
- vitalik
- frontend
- web
---

# Ethers极简入门: 1. HelloVitalik (6行代码)
Expand Down
10 changes: 8 additions & 2 deletions 02_Provider/readme.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
---
title: 2. 提供器 Provider
tags:
- ethers
- javascript
- provider
- frontend
- web
---

# Ethers极简入门: 2. Provider 提供器
Expand Down Expand Up @@ -58,9 +64,9 @@ const providerGoerli = new ethers.JsonRpcProvider(`https://goerli.infura.io/v3/$
const balance = await providerETH.getBalance(`vitalik.eth`);
const balanceGoerli = await providerGoerli.getBalance(`vitalik.eth`);
// 将余额输出在console(主网)
console.log(`ETH Balance of vitalik: ${ethers.utils.formatEther(balance)} ETH`);
console.log(`ETH Balance of vitalik: ${ethers.formatEther(balance)} ETH`);
// 输出Goerli测试网ETH余额
console.log(`Goerli ETH Balance of vitalik: ${ethers.utils.formatEther(balanceGoerli)} ETH`);
console.log(`Goerli ETH Balance of vitalik: ${ethers.formatEther(balanceGoerli)} ETH`);
```

![V神余额](img/2-2.png)
Expand Down
7 changes: 7 additions & 0 deletions 03_ReadContract/readme.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,12 @@
---
title: 3. 读取合约信息
tags:
- ethers
- javascript
- provider
- contract
- frontend
- web
---

# Ethers极简入门: 3. 读取合约信息
Expand Down
8 changes: 8 additions & 0 deletions 04_SendETH/readme.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,13 @@
---
title: 4. 发送ETH
tags:
- ethers
- javascript
- provider
- wallet
- contract
- frontend
- web
---

# Ethers极简入门: 4. 发送ETH
Expand Down
8 changes: 8 additions & 0 deletions 05_WriteContract/readme.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,13 @@
---
title: 5. 合约交互
tags:
- ethers
- javascript
- provider
- wallet
- contract
- frontend
- web
---

# Ethers极简入门: 5. 合约交互
Expand Down
9 changes: 9 additions & 0 deletions 06_DeployContract/readme.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,14 @@
---
title: 6. 部署合约
tags:
- ethers
- javascript
- provider
- wallet
- contract
- create
- frontend
- web
---

# Ethers极简入门: 6. 部署合约
Expand Down
7 changes: 7 additions & 0 deletions 07_Event/readme.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,12 @@
---
title: 7. 检索事件
tags:
- ethers
- javascript
- provider
- event
- frontend
- web
---

# Ethers极简入门: 7. 检索事件
Expand Down
8 changes: 8 additions & 0 deletions 08_ContractListener/readme.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,13 @@
---
title: 8. 监听合约事件
tags:
- ethers
- javascript
- provider
- event
- listener
- frontend
- web
---

# Ethers极简入门: 8. 监听合约事件
Expand Down
7 changes: 7 additions & 0 deletions 09_EventFilter/readme.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,12 @@
---
title: 9. 事件过滤
tags:
- ethers
- javascript
- event
- filter
- frontend
- web
---

# Ethers极简入门: 9. 事件过滤
Expand Down
14 changes: 11 additions & 3 deletions 10_Units/readme.md
Original file line number Diff line number Diff line change
@@ -1,8 +1,16 @@
---
title: 10. BigNumber和单位转换
title: 10. BigInt和单位转换
tags:
- ethers
- javascript
- bigint
- parseUnits
- formatUnits
- frontend
- web
---

# Ethers极简入门: 10. BigNumber和单位转换
# Ethers极简入门: 10. BigInt和单位转换

我最近在重新学`ethers.js`,巩固一下细节,也写一个`WTF Ethers极简入门`,供小白们使用。

Expand All @@ -16,7 +24,7 @@ title: 10. BigNumber和单位转换

提示:本教程基于ethers.js 6.3.0 ,如果你使用的是v5,可以参考[ethers.js v5文档](https://docs.ethers.io/v5/)

这一讲,我们介绍`BigNumber`类和单位转换。
这一讲,我们介绍`BigInt`类和单位转换。

## `BigInt`

Expand Down
6 changes: 6 additions & 0 deletions 11_StaticCall/readme.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
---
title: 11. StaticCall
tags:
- ethers
- javascript
- staticcall
- frontend
- web
---

# Ethers极简入门: 11. StaticCall
Expand Down
8 changes: 8 additions & 0 deletions 12_ERC721Check/readme.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,13 @@
---
title: 12. 识别ERC721合约
tags:
- ethers
- javascript
- erc165
- erc721
- selector
- frontend
- web
---

# Ethers极简入门: 12. 识别ERC721合约
Expand Down
7 changes: 7 additions & 0 deletions 13_EncodeCalldata/readme.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,12 @@
---
title: 13. 编码calldata
tags:
- ethers
- javascript
- encode
- calldata
- frontend
- web
---

# Ethers极简入门: 13. 编码calldata
Expand Down
10 changes: 10 additions & 0 deletions 14_HDwallet/readme.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,15 @@
---
title: 14. 批量生成钱包
tags:
- ethers
- javascript
- wallet
- hdwallet
- bip32
- bip44
- bip39
- frontend
- web
---

# Ethers极简入门: 14. 批量生成钱包
Expand Down
6 changes: 6 additions & 0 deletions 15_MultiTransfer/readme.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
---
title: 15. 批量转账
tags:
- ethers
- javascript
- multitransfer
- frontend
- web
---

# Ethers极简入门: 15. 批量转账
Expand Down
6 changes: 6 additions & 0 deletions 16_MultiCollect/readme.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
---
title: 16. 批量归集
tags:
- ethers
- javascript
- collect
- frontend
- web
---

# Ethers极简入门: 16. 批量归集
Expand Down
7 changes: 7 additions & 0 deletions 17_MerkleTree/readme.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,12 @@
---
title: 17. MerkleTree脚本
tags:
- ethers
- javascript
- airdrop
- merkletree
- frontend
- web
---

# Ethers极简入门: 17. MerkleTree脚本
Expand Down
8 changes: 8 additions & 0 deletions 18_Signature/readme.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,13 @@
---
title: 18. 数字签名脚本
tags:
- ethers
- javascript
- airdrop
- signature
- ecdsa
- frontend
- web
---

# Ethers极简入门: 18. 数字签名脚本
Expand Down
8 changes: 8 additions & 0 deletions 19_Mempool/readme.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,13 @@
---
title: 19. 监听Mempool
tags:
- ethers
- javascript
- mempool
- mev
- pending
- frontend
- web
---

# Ethers极简入门: 19. 监听Mempool
Expand Down
7 changes: 7 additions & 0 deletions 20_DecodeTx/readme.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,12 @@
---
title: 20. 解码交易详情
tags:
- ethers
- javascript
- decode
- interface
- frontend
- web
---

# Ethers极简入门: 20. 解码交易详情
Expand Down
7 changes: 7 additions & 0 deletions 21_VanityAddress/readme.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,12 @@
---
title: 21. 靓号生成器
tags:
- ethers
- javascript
- vanity
- address
- frontend
- web
---

# Ethers极简入门: 21. 靓号生成器
Expand Down
7 changes: 7 additions & 0 deletions 22_ReadAnyData/readme.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,12 @@
---
title: 22. 读取任意数据
tags:
- ethers
- javascript
- read
- slot
- frontend
- web
---

# Ethers极简入门: 22. 读取任意数据
Expand Down
9 changes: 9 additions & 0 deletions 23_Frontrun/readme.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,14 @@
---
title: 23. 抢先交易脚本
tags:
- ethers
- javascript
- mev
- mempool
- frontrun
- nft
- frontend
- web
---

# Ethers极简入门: 23. 抢先交易脚本
Expand Down
8 changes: 8 additions & 0 deletions 24_ERC20Check/readme.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,13 @@
---
title: 24. 识别ERC20合约
tags:
- ethers
- javascript
- erc20
- token
- selector
- frontend
- web
---

# Ethers极简入门: 24. 识别ERC20合约
Expand Down
10 changes: 9 additions & 1 deletion 25_Flashbots/readme.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,13 @@
---
title: 25. Flashbots
tags:
- ethers
- javascript
- mev
- flashbots
- bundle
- frontend
- web
---

# Ethers极简入门: 25. Flashbots
Expand Down Expand Up @@ -106,7 +114,7 @@ npm install --save @flashbots/ethers-provider-bundle
chainId: CHAIN_ID,
type: 2,
to: "0x25df6DA2f4e5C178DdFF45038378C0b08E0Bce54",
value: ethers.utils.parseEther("0.001"),
value: ethers.parseEther("0.001"),
maxFeePerGas: GWEI * 100n
}
```
Expand Down
8 changes: 8 additions & 0 deletions 26_EIP712/readme.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,13 @@
---
title: 26. EIP712 签名脚本
tags:
- ethers
- javascript
- eip712
- signature
- airdrop
- frontend
- web
---

# Ethers极简入门: 26. EIP712 签名脚本
Expand Down

0 comments on commit f29e11e

Please sign in to comment.