Skip to content

Commit

Permalink
doc: give more description
Browse files Browse the repository at this point in the history
  • Loading branch information
Alex992Y committed Mar 30, 2024
1 parent 18915f9 commit 008ccf8
Show file tree
Hide file tree
Showing 5 changed files with 11 additions and 0 deletions.
6 changes: 6 additions & 0 deletions basic/15-nft-blindbox-chainlink-vrf/README-CN.md
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,12 @@ npx hardhat run scripts/transaction.js --network sepolia
```
RandomWords 随机数生成之后,通过合约传入。./scripts/deployment.json 中保存的 requestID,再次获取之前获取的随机数。可以自定义随机数使用场景,本例只作为调用参考。

随机数生成之后,可以在Ehterscan中查看
<center><img src="./imgs/Consumer.png?raw=true" /></center>
<center><img src="./imgs/Events.png?raw=true" /></center>
<center><img src="./imgs/RequestAndResult.png?raw=true" /></center>


## 参考链接
github 样例代码: https://github.com/PatrickAlphaC/dungeons-and-dragons-nft
Chainlink链下报告概览: https://learnblockchain.cn/article/2186
Expand Down
5 changes: 5 additions & 0 deletions basic/15-nft-blindbox-chainlink-vrf/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,11 @@ npx hardhat run scripts/transaction.js --network sepolia
```
RandomWords After the random number is generated, it is passed in through the contract. The requestID saved in ./scripts/deployment.json is used to obtain the random number obtained before. You can customize random number usage scenarios. This example is only used as a calling reference.

After the random number is generated, it can be viewed in Ehterscan
<center><img src="./imgs/Consumer.png?raw=true" /></center>
<center><img src="./imgs/Events.png?raw=true" /></center>
<center><img src="./imgs/RequestAndResult.png?raw=true" /></center>


## Refer to the link
Github sample code: https://github.com/PatrickAlphaC/dungeons-and-dragons-nft
Expand Down
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 008ccf8

Please sign in to comment.