diff --git a/.github/ISSUE_TEMPLATE/bug-report.yml b/.github/ISSUE_TEMPLATE/bug-report.yml index bb4686766..1b4619c40 100644 --- a/.github/ISSUE_TEMPLATE/bug-report.yml +++ b/.github/ISSUE_TEMPLATE/bug-report.yml @@ -1,22 +1,21 @@ -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 @@ -24,22 +23,19 @@ body: - 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. (告诉我们你使用的环境:Hardhat,Remix等等。) + 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: diff --git a/.github/ISSUE_TEMPLATE/config.yml b/.github/ISSUE_TEMPLATE/config.yml index 4fcbaa800..132c1b96a 100644 --- a/.github/ISSUE_TEMPLATE/config.yml +++ b/.github/ISSUE_TEMPLATE/config.yml @@ -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 (与社区交流讨论和寻求帮助) diff --git a/.github/ISSUE_TEMPLATE/document.yml b/.github/ISSUE_TEMPLATE/document.yml index e3dec71ea..352ce9e19 100644 --- a/.github/ISSUE_TEMPLATE/document.yml +++ b/.github/ISSUE_TEMPLATE/document.yml @@ -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: diff --git a/.github/ISSUE_TEMPLATE/feature-request.yml b/.github/ISSUE_TEMPLATE/feature-request.yml index f0ffa96f5..7a08bf34b 100644 --- a/.github/ISSUE_TEMPLATE/feature-request.yml +++ b/.github/ISSUE_TEMPLATE/feature-request.yml @@ -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: @@ -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!(感谢填写表单!)" diff --git a/.github/ISSUE_TEMPLATE/improvement-report.yml b/.github/ISSUE_TEMPLATE/improvement-report.yml deleted file mode 100644 index e9b0a8b56..000000000 --- a/.github/ISSUE_TEMPLATE/improvement-report.yml +++ /dev/null @@ -1,31 +0,0 @@ -name: Improvement request (提升请求) -description: Suggest an improvement for this project (给WTF-Solidity提一个改进提升的请求) -title: "[Improvement][Module Name(模块名称)] Title(标题)" -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: Description - description: A short description why your find in our document.(简短的描述一下) - - - - type: checkboxes - attributes: - 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) - options: - - label: Yes I am willing to submit a PR!(是的我愿意) - - - type: markdown - attributes: - value: "Thanks for completing our form!(感谢填写表单!)" diff --git a/40_ERC1155/readme.md b/40_ERC1155/readme.md index 708273794..e9f19c7f0 100644 --- a/40_ERC1155/readme.md +++ b/40_ERC1155/readme.md @@ -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`。 @@ -639,7 +640,3 @@ contract BAYC1155 is ERC1155{ ## 总结 这一讲我们学习了以太坊`EIP1155`提出的`ERC1155`多代币标准,它允许一个合约中包含多个同质化或非同质化代币。并且,我们创建了魔改版无聊猿 - `BAYC1155`:一个包含`10,000`种代币且元数据与`BAYC`相同的`ERC1155`代币。目前,`ERC1155`主要应用于`GameFi`中。但我相信随着元宇宙技术不断发展,这个标准会越来越流行。 - - - -