Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix issue template #845

Merged
merged 8 commits into from
Nov 25, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
34 changes: 15 additions & 19 deletions .github/ISSUE_TEMPLATE/bug-report.yml
Original file line number Diff line number Diff line change
@@ -1,45 +1,41 @@
name: Bug report (程序Bug报告)
title: "[Bug] [Class (章节)] Title(标题)"
description: Problems and issues with code of WTF-Solidity (报告WTF-Solidity中的程序Bug)
name: 🕷️ Bug report (程序Bug报告)
title: "[Bug]"
description: Report errors or unexpected behavior (报告错误或意外行为)
labels:
- bug
body:
- type: markdown
attributes:
value: >
Please make sure what you are reporting is indeed a bug with reproducible steps(请确保您所报告的是一个具有可重现步骤的错误), if you want to ask questions
or share ideas, you can head to our (如果你是想问一个问题或者分享一个主意,你可以通过以下方式)
[Discussions](https://github.com/AmazingAng/WTF-Solidity/discussions) tab, you can also
[join our discord](https://discord.gg/5akcruXrsk)

Please make sure what you are reporting is indeed a bug with reproducible steps, if you want to ask questions or share ideas, you can head to our [Discussions](https://github.com/AmazingAng/WTF-Solidity/discussions) tab, you can also join our [discord](https://discord.gg/5akcruXrsk).
(请确保您所报告的是一个具有可重现步骤的错误, 如果你是想问一个问题或者分享一个主意,你可以通过以下方式加入我们的[讨论](https://github.com/AmazingAng/WTF-Solidity/discussions), 你也可以加入我们的[discord](https://discord.gg/5akcruXrsk)。

- type: textarea
attributes:
label: Details (细节)
description: Describe what happened.(描述一下发生了什么)
description: Describe what happened. (描述一下发生了什么)
placeholder: >
Please provide the context in which the problem occurred and explain what happened(请提供问题发生的背景并解释发生的情况)
Please provide the context in which the problem occurred and explain what happened. (请提供问题发生的背景并解释发生的情况)
validations:
required: true


- type: textarea
attributes:
label: Environment (环境)
description: Tell us about your environment(告诉我们你的环境信息)
description: Tell us about your environment. (告诉我们你的环境信息)
placeholder: >
Tell us what you're using it: Hardhat, Remix, etc. (告诉我们你使用的环境HardhatRemix等等。)
Tell us what you're using it: Hardhat, Remix, etc. (告诉我们你使用的环境:Hardhat, Remix等等。)


- type: checkboxes
attributes:
label: Are you willing to submit PR?(你愿意提交PR吗)
label: Are you willing to submit PR?(你愿意提交PR吗?)
description: >
This is absolutely not required, but we are happy to guide you in the contribution process
especially if you already have a good understanding of how to implement the fix.
(这不是必须的,但是我们很高兴您能够提交PR)
This is absolutely not required, but we are happy to guide you in the contribution process especially if you already have a good understanding of how to implement the fix.
(这不是必须的, 但是我们很高兴您能够提交PR。)
options:
- label: Yes I am willing to submit a PR!(是的我愿意)


- label: Yes, I am willing to submit a PR!(是的, 我愿意!)

- type: markdown
attributes:
Expand Down
4 changes: 2 additions & 2 deletions .github/ISSUE_TEMPLATE/config.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
blank_issues_enabled: false
contact_links:
- name: Ask a question or get support(提个问题或者获得支持)
- name: "\U0001F4E7 Discussions(讨论)"
url: https://github.com/AmazingAng/WTF-Solidity/discussions
about: Ask a question or request support for using WTF-Solidity (在使用WTF-Solidity时,遇到的问题或者需要获得帮助)
about: General discussions and request help from the community (与社区交流讨论和寻求帮助)
23 changes: 11 additions & 12 deletions .github/ISSUE_TEMPLATE/document.yml
Original file line number Diff line number Diff line change
@@ -1,30 +1,29 @@
name: Typo report(勘误报告)
description: Report a typo in the WTF-Solidity(报告WTF-Solidity中的勘误)
title: "[Doc][Module Name(模块)] Title(标题)"
name: 📚Typo report(勘误报告)
description: Report a typo in the WTF-Solidity (报告WTF-Solidity中的文字勘误)
labels:
- documentation
title: "[Doc]"
body:
- type: markdown
attributes:
value: |
For better global communication, Please write in English.

If you feel the description in English is not clear, then you can use Chinese, thanks!
为了更好的全球化的交流,请使用英文,如果觉得用英文无法清楚描述,可以使用中文)
(为了更好的全球化的交流,请使用英文,如果觉得用英文无法清楚描述,可以使用中文,谢谢!

- type: textarea
attributes:
label: Details(细节)
description: A short description what your find in our document.(简短的描述一下在文档中发现了什么错误)

description: A short description what you find in our document.(简短的描述一下在文档中发现了什么错误。)

- type: checkboxes
attributes:
label: Are you willing to submit a PR?(你愿意提交PR吗)
label: Are you willing to submit a PR?(你愿意提交PR吗?)
description: >
This is absolutely not required, but we are happy to guide you in the contribution process
especially if you already have a good understanding of how to implement the fix.
(这不是必须的,但是我们很高兴您能够提交PR)
This is absolutely not required, but we are happy to guide you in the contribution process especially if you already have a good understanding of how to implement the fix.
(这不是必须的, 但是我们很高兴您能够提交PR)
options:
- label: Yes I am willing to submit a PR!(是的我愿意)
- label: Yes, I am willing to submit a PR!(是的, 我愿意提交PR)

- type: markdown
attributes:
Expand Down
26 changes: 11 additions & 15 deletions .github/ISSUE_TEMPLATE/feature-request.yml
Original file line number Diff line number Diff line change
@@ -1,17 +1,16 @@

name: Feature request(对此项目提出一个意见)
description: Suggest an idea for this project(对此项目提出一个意见)
title: "[Feature][Module Name(模块名称)] Title(标题)"
name: ⭐ Feature request(功能请求)
description: Suggest an idea for this project. (对此项目提出一个想法。)
title: "[Feature]"
labels:
- enhancement
body:
- type: markdown
attributes:
value: |
For better global communication, Please write in English.

If you feel the description in English is not clear, then you can use Chinese, thanks!
(为了更好的全球化的交流,请使用英文,如果觉得用英文无法清楚描述,可以使用中文)


(为了更好的全球化的交流,请使用英文,如果觉得用英文无法清楚描述,可以使用中文,谢谢!)

- type: textarea
attributes:
Expand All @@ -29,16 +28,13 @@ body:

- type: checkboxes
attributes:
label: Are you willing to submit a PR?(你愿意提交PR吗)
label: Are you willing to submit a PR? (你愿意提交PR吗?)
description: >
This is absolutely not required, but we are happy to guide you in the contribution process
especially if you already have a good understanding of how to implement the fix.
(这不是必须的,但是我们很高兴您能够提交PR)
This is absolutely not required, but we are happy to guide you in the contribution process especially if you already have a good understanding of how to implement the fix.
(这不是必须的, 但是我们很高兴您能够提交PR)
options:
- label: Yes I am willing to submit a PR!(是的我愿意)


- label: Yes, I am willing to submit a PR!(是的, 我愿意!)

- type: markdown
attributes:
value: "Thanks for completing our form!(感谢填写表单)"
value: "Thanks for completing our form!(感谢填写表单!)"
31 changes: 0 additions & 31 deletions .github/ISSUE_TEMPLATE/improvement-report.yml

This file was deleted.

5 changes: 1 addition & 4 deletions 40_ERC1155/readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ interface IERC1155MetadataURI is IERC1155 {
* @dev 返回第`id`种类代币的URI
*/
function uri(uint256 id) external view returns (string memory);
}
```

那么怎么区分`ERC1155`中的某类代币是同质化还是非同质化代币呢?其实很简单:如果某个`id`对应的代币总量为`1`,那么它就是非同质化代币,类似`ERC721`;如果某个`id`对应的代币总量大于`1`,那么他就是同质化代币,因为这些代币都分享同一个`id`,类似`ERC20`。
Expand Down Expand Up @@ -639,7 +640,3 @@ contract BAYC1155 is ERC1155{
## 总结

这一讲我们学习了以太坊`EIP1155`提出的`ERC1155`多代币标准,它允许一个合约中包含多个同质化或非同质化代币。并且,我们创建了魔改版无聊猿 - `BAYC1155`:一个包含`10,000`种代币且元数据与`BAYC`相同的`ERC1155`代币。目前,`ERC1155`主要应用于`GameFi`中。但我相信随着元宇宙技术不断发展,这个标准会越来越流行。




Loading