Skip to content

Commit d299b60

Browse files
committed
Merge remote-tracking branch 'upstream/main'
2 parents 48ed39f + 3b225de commit d299b60

File tree

73 files changed

+8098
-16
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

73 files changed

+8098
-16
lines changed
82.6 KB
Loading

BTC/BRC-20/images/dune.jpg

102 KB
Loading

BTC/BRC-20/readme.md

Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
# BRC-20 简介
2+
## Ordinals
3+
Ordinals是Satoshi比特币的最小单位,同下文聪)的一种编号方案,允许跟踪和传输单个聪。这些数字称为序数。聪按照开采的顺序进行编号,并以先进先出的方式从交易输入转移到交易输出。编号方案和转移方案都依赖于 order,编号方案取决于开采聪的顺序,转移方案取决于交易输入和输出的顺序。Ordinals协议允许在比特币的单个聪上“铸造”或附加数据(称为铭文),这意味着每个聪可以成为一个独特的、非同质化的资产。同时基于聪上携带的铭文我们可以发行同质化资产和非同质资产类似于以太坊上的ERC20和NFT,而 BRC-20 就是 Ordinals 协议知名度最高的资产发行方案。
4+
5+
## BRC-20
6+
2023 年 3 月 11 日,domo在Twitter上发起了一项实验,该实验基于Ordinal协议,并定义了一种新的Token标准:“BRC-20”。这个实验性的协议专注于在比特币网络上资产的铸造和转移,意外地打开了潘多拉魔盒,激发了人们多年来对于在比特币网络上发行资产的强烈兴趣。
7+
![dune](./images/dune.jpg)
8+
据 Dune 链上数据统计,截止2023 年 12 月 3 日, 巅峰期 BRC-20 交易占比超过比特币网络交易的六成之多,是迄今为止BTC生态采用度最高的协议。Ordinal和BRC-20协议从技术层面来说并不是一个优秀的技术,但其是去掉智能合约的资产发行足够简单以及Fair Mint的特点,让用户更加容易参与进来。
9+
这次实验不仅点燃了市场的热情,还引发了一场广泛的“铭文潮流”,也就是在比特币网络上铸造和交易各种Token的潮流。接着,类似于BRC-20的铭文协议如雨后春笋般涌现,不仅在比特币网络上蓬勃发展,还迅速扩散到其他公链平台。这次实验中的一种Token——ordi,已经取得了显著的市场成就。截至目前,ordi的市值已经超过了10亿美元,成为了加密资产市场中的一颗新星,稳居市值排行榜前50位。这个成就不仅证明了BRC-20和类似协议的潜力,也显示了区块链技术在资产Token化领域的巨大应用前景。
10+
总的来说,domo的这次实验不仅是一个技术上的突破,也是一个市场和社区层面的重大事件。它不仅为比特币网络上的资产发行开辟了新天地,还为整个加密资产生态系统的发展注入了新的活力和创新。
11+
![brc20-experiment](./images/brc20-experiment.jpg)
12+
13+
## 协议详情
14+
### Deploy
15+
```js
16+
{"p":"brc-20","op":"deploy","tick":"ordi","max":"21000000","lim":"1000"}
17+
```
18+
| Key | Required? | Description |
19+
|------|-----------|-----------------------------------------------------------------------------------------------|
20+
| p | Yes | Protocol: Helps other systems identify and process BRC-20 events |
21+
| op | Yes | Operation: Type of event (Deploy, Mint, Transfer) |
22+
| tick | Yes | Ticker: 4 letter identifier of the BRC-20 |
23+
| max | Yes | Max supply: set max supply of the BRC-20 |
24+
| lim | No | Mint limit: If letting users mint to themselves, limit per ordinal (unisat not validate) |
25+
| dec | No | Decimals: set decimal precision, default to 18 |
26+
27+
### Mint
28+
```js
29+
{"p":"brc-20","op":"mint","tick":"ordi","amt":"100000"}
30+
```
31+
| Key | Required? | Description |
32+
|------|-----------|-------------------------------------------------------------------|
33+
| p | Yes | Protocol: Helps other systems identify and process brc-20 events |
34+
| op | Yes | Operation: Type of event (Deploy, Mint, Transfer) |
35+
| tick | Yes | Ticker: 4 letter identifier of the brc-20 |
36+
| amt | Yes | Amount to mint: States the amount of the brc-20 to mint. Has to be less than "lim" above if stated |
37+
38+
### Transform
39+
- 铸造transfer铭文
40+
```js
41+
{"p":"brc-20","op":"transfer","tick":"ordi","amt":"10"}
42+
```
43+
- 将transfer铭文通过PSBT的方法转移给receiver

README.md

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ At the same time, feel free to keep expanding this [book list](./docs/books-en.m
9595
We have collected some crypto courses from top universities and the Ethereum community to help developers systematically understand blockchain and cryptocurrencies.
9696
- [MIT Online Course: Blockchain and Money by Prof. Gary Gensler](https://ocw.mit.edu/courses/sloan-school-of-management/15-s12-blockchain-and-money-fall-2018/video-lectures/)
9797
- [Berkeley Online Course:](https://berkeley-defi.github.io/f21) [Defi Learning](https://defi-learning.org/)
98-
- [Standford Online Course: CS 251 Bitcoin and Cryptocurrencies](https://cs251.stanford.edu/syllabus.html)
98+
- [Stanford Online Course: CS 251 Bitcoin and Cryptocurrencies](https://cs251.stanford.edu/syllabus.html)
9999

100100
We have also organized a translation group to translate MIT course 'blockchain and money' into Chinese, and upload all the chinese note-taking on our WeChat Official Account [Welcome to Dapp-Learning](https://mp.weixin.qq.com/mp/appmsgalbum?action=getalbum&__biz=MzAwNTAxMzMzMA==&scene=1&album_id=2241099480056119298&count=3#wechat_redirect)
101101

@@ -187,6 +187,10 @@ You are welcome to PR improvements to existing tutorial projects or to create mo
187187
74. [erc20-meta-token](https://github.com/0xsequence/erc20-meta-token)
188188
75. [golang-dapp](basic/75-golang-dapp)
189189
76. [Push Protocol](https://docs.epns.io/developers)
190+
77. [orbit](basic/77-orbit)
191+
78. [wallet connect](basic/78-wallet-connect)
192+
79. [hardhat-foundry](basic/79-hardhat-foundry)
193+
80. [Circle CCTP](basic/80-circle-cctp)
190194

191195
Welcome to submit pull request, [Add a new basic task or update the above task](https://github.com/Dapp-Learning-DAO/Dapp-Learning/issues/new)
192196

@@ -305,7 +309,7 @@ Dapp-learning has a series of derivative projects and joint maintenance projects
305309
Interested in participating? Check out this doc and find out how you can be a member of us: [How to contribute](./docs/dao-en.md).
306310

307311
## Frequently Asked Questions (FAQ)
308-
Please refer to [this link](./docs/TROUBLE_SHOOTING-en.md) to get some answers on how to set up dev environment, how to use the project, and how to get tokens for testing etc.
312+
Please refer to [this link](./docs/TROUBLE_SHOOTING-en.md) to get some answers on how to set up dev environment, how to use the project, and how to get tokens for testing, etc.
309313

310314
## Donation Wanted
311315
Open-sourced projects are not easy to maintain so we'd love all kinds of donations. Dapp Learning team follows DAO's governance and all donations would be allocated to our community members as crypto rewards and/or NFTs based on their quality of contributions.
@@ -320,7 +324,7 @@ Direct donation to our dev team's fund is also appreciated:
320324
**We also have created multi-signature wallets on Polygon, managed by our core contributors**
321325
- Polygon [Multiple signature wallets](https://app.safe.global/matic:0x2A6D09B3b11E5455a37F907f2ec885E0Be704779 ): 0x2A6D09B3b11E5455a37F907f2ec885E0Be704779
322326

323-
Sponsorship grants are managed under a multi-sign-up wallet by core contributor team; the fund is available to all contributors for their stellar additions to the project. We look forward to see your contributions soon.
327+
Sponsorship grants are managed under a multi-signature wallet by core contributor team; the fund is available to all contributors for their stellar additions to the project. We look forward to see your contributions soon.
324328

325329
## Cooperative partner
326330

@@ -371,7 +375,7 @@ Sponsorship grants are managed under a multi-sign-up wallet by core contributor
371375

372376
## Sponsor partner
373377

374-
Shout out to the following organizations for their unconditional donations to us/the open source project (in no particular order).
378+
Shout out to the following organizations for their unconditional donations to us/the open-source project (in no particular order).
375379

376380
<br>
377381
<div align="left">

basic/11-react-express-hardhat/backend/package-lock.json

Lines changed: 3 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

basic/22-zk-snarkjs/circom2/verifier.sol

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -152,7 +152,7 @@ contract PlonkVerifier {
152152

153153
///////
154154
// Computes the inverse of an array of values
155-
// See https://vitalik.ca/general/2018/07/21/starks_part_3.html in section where explain fields operations
155+
// See https://vitalik.eth.limo/general/2018/07/21/starks_part_3.html in section where explain fields operations
156156
//////
157157
function inverseArray(pVals, n) {
158158

basic/26-quadratic-vote&gitcoin/README-CN.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ cost to the voter = 2^(n-1)
7979

8080
### financingTool
8181

82-
![quadratic_funding.png](https://vitalik.ca/images/qv-files/quadratic_funding.png)
82+
![quadratic_funding.png](https://vitalik.eth.limo/images/qv-files/quadratic_funding.png)
8383

8484
每个用户针对某个提案投票都是总金额的开平方
8585

@@ -160,7 +160,7 @@ struct UserVote {//每个用户每个提案会有一个实例
160160

161161
## 参考资料
162162

163-
- [Quadratic Payments: A Primer](https://vitalik.ca/general/2019/12/07/quadratic.html)
163+
- [Quadratic Payments: A Primer](https://vitalik.eth.limo/general/2019/12/07/quadratic.html)
164164
- [二次方投票和二次方资助](https://www.matataki.io/p/6113)
165165
- [视频](https://www.bilibili.com/video/BV1Y5411w77b/)
166166
- [gitcoin](https://gitcoin.co/blog/gitcoin-grants-quadratic-funding-for-the-world/)

basic/26-quadratic-vote&gitcoin/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ Using both eth and Token for voting is not implemented for now.
8181

8282
### FinancingTool
8383

84-
![quadratic_funding.png](https://vitalik.ca/images/qv-files/quadratic_funding.png)
84+
![quadratic_funding.png](https://vitalik.eth.limo/images/qv-files/quadratic_funding.png)
8585

8686
Each user vote on a proposal is the square root of the total amount ().
8787

@@ -161,7 +161,7 @@ Case: Each person can donate to multiple proposals within a certain period of ti
161161

162162
## Reference
163163

164-
- [Quadratic Payments: A Primer (by vitalik)](https://vitalik.ca/general/2019/12/07/quadratic.html)
164+
- [Quadratic Payments: A Primer (by vitalik)](https://vitalik.eth.limo/general/2019/12/07/quadratic.html)
165165
- [Quadratic vote and quadratic funde (from zhihu)](https://www.matataki.io/p/6113)
166166
- [video intro](https://www.bilibili.com/video/BV1Y5411w77b/)
167167
- [gitcoin](https://gitcoin.co/blog/gitcoin-grants-quadratic-funding-for-the-world/)
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
PRIVATE_KEY=xxxx
2+
PRIVATE_KEY1=yyyy
3+
PRIVATE_KEY2=yyyy
4+
INFURA_ID=yyyy
5+
PROJECT_ID=yyyy
6+
TARGET_ACCOUNT=yyyy
7+
API_KEY=yyyy
8+
EHTERSCAN_KEY=yyyy
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
node_modules
2+
.env
3+
coverage
4+
coverage.json
5+
typechain
6+
7+
#Hardhat files
8+
cache
9+
artifacts
10+
11+
**/deployment.json

0 commit comments

Comments
 (0)