This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| { | |
| "MyContract .sol": { | |
| "__sources__": {} | |
| }, | |
| "MyContract.sol": { | |
| "__sources__": { | |
| "MyContract.sol": { | |
| "content": "// SPDX-License-Identifier: MIT\n// SPDX 用于声明开源协议\n// MIT 是最常见的 Solidity 开源许可证\n\npragma solidity ^0.8.20;\n// 指定 Solidity 编译器版本\n// ^0.8.20 表示:\n// >=0.8.20 且 <0.9.0 都可以编译\n\ncontract MyContract {\n // contract = 智能合约\n // 类似 Java 里的 class\n // 部署后会生成一个链上地址\n\n // =========================================================\n // 1. State Variable(状态变量)\n // =========================================================\n\n uint public count;\n // uint = 无符号整数\n // public = 自动生成 getter 读取函数\n // count 会永久存储在区块链 storage 中\n\n // =========================================================\n // 2. Event(事件)\n // =========================================================\n\n event Increment(address user, uint value);\n // event = 链上日志系统\n // 用于记录重要行为\n // 前端 / 区块浏览器可以监听\n\n // 参数:\n // user = 谁触发了 increment\n // value = incre |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| { | |
| "MyContract .sol": { | |
| "__sources__": {} | |
| }, | |
| "MyContract.sol": { | |
| "__sources__": { | |
| "MyContract.sol": { | |
| "content": "// SPDX-License-Identifier: MIT\n// SPDX 用于声明开源协议\n// MIT 是最常见的 Solidity 开源许可证\n\npragma solidity ^0.8.20;\n// 指定 Solidity 编译器版本\n// ^0.8.20 表示:\n// >=0.8.20 且 <0.9.0 都可以编译\n\ncontract MyContract {\n // contract = 智能合约\n // 类似 Java 里的 class\n // 部署后会生成一个链上地址\n\n // =========================================================\n // 1. State Variable(状态变量)\n // =========================================================\n\n uint public count;\n // uint = 无符号整数\n // public = 自动生成 getter 读取函数\n // count 会永久存储在区块链 storage 中\n\n // =========================================================\n // 2. Event(事件)\n // =========================================================\n\n event Increment(address user, uint value);\n // event = 链上日志系统\n // 用于记录重要行为\n // 前端 / 区块浏览器可以监听\n\n // 参数:\n // user = 谁触发了 increment\n // value = incre |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| { | |
| "MyContract .sol": { | |
| "__sources__": {} | |
| }, | |
| "MyContract.sol": { | |
| "__sources__": { | |
| "MyContract.sol": { | |
| "content": "// SPDX-License-Identifier: MIT\n// SPDX 用于声明开源协议\n// MIT 是最常见的 Solidity 开源许可证\n\npragma solidity ^0.8.20;\n// 指定 Solidity 编译器版本\n// ^0.8.20 表示:\n// >=0.8.20 且 <0.9.0 都可以编译\n\ncontract MyContract {\n // contract = 智能合约\n // 类似 Java 里的 class\n // 部署后会生成一个链上地址\n\n // =========================================================\n // 1. State Variable(状态变量)\n // =========================================================\n\n uint public count;\n // uint = 无符号整数\n // public = 自动生成 getter 读取函数\n // count 会永久存储在区块链 storage 中\n\n // =========================================================\n // 2. Event(事件)\n // =========================================================\n\n event Increment(address user, uint value);\n // event = 链上日志系统\n // 用于记录重要行为\n // 前端 / 区块浏览器可以监听\n\n // 参数:\n // user = 谁触发了 increment\n // value = incre |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| { | |
| "MyContract .sol": { | |
| "__sources__": {} | |
| }, | |
| "MyContract.sol": { | |
| "__sources__": { | |
| "MyContract.sol": { | |
| "content": "// SPDX-License-Identifier: MIT\n// SPDX 用于声明开源协议\n// MIT 是最常见的 Solidity 开源许可证\n\npragma solidity ^0.8.20;\n// 指定 Solidity 编译器版本\n// ^0.8.20 表示:\n// >=0.8.20 且 <0.9.0 都可以编译\n\ncontract MyContract {\n // contract = 智能合约\n // 类似 Java 里的 class\n // 部署后会生成一个链上地址\n\n // =========================================================\n // 1. State Variable(状态变量)\n // =========================================================\n\n uint public count;\n // uint = 无符号整数\n // public = 自动生成 getter 读取函数\n // count 会永久存储在区块链 storage 中\n\n // =========================================================\n // 2. Event(事件)\n // =========================================================\n\n event Increment(address user, uint value);\n // event = 链上日志系统\n // 用于记录重要行为\n // 前端 / 区块浏览器可以监听\n\n // 参数:\n // user = 谁触发了 increment\n // value = incre |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| { | |
| "MyContract .sol": { | |
| "__sources__": {} | |
| }, | |
| "MyContract.sol": { | |
| "__sources__": { | |
| "MyContract.sol": { | |
| "content": "// SPDX-License-Identifier: MIT\n// SPDX 用于声明开源协议\n// MIT 是最常见的 Solidity 开源许可证\n\npragma solidity ^0.8.20;\n// 指定 Solidity 编译器版本\n// ^0.8.20 表示:\n// >=0.8.20 且 <0.9.0 都可以编译\n\ncontract MyContract {\n // contract = 智能合约\n // 类似 Java 里的 class\n // 部署后会生成一个链上地址\n\n // =========================================================\n // 1. State Variable(状态变量)\n // =========================================================\n\n uint public count;\n // uint = 无符号整数\n // public = 自动生成 getter 读取函数\n // count 会永久存储在区块链 storage 中\n\n // =========================================================\n // 2. Event(事件)\n // =========================================================\n\n event Increment(address user, uint value);\n // event = 链上日志系统\n // 用于记录重要行为\n // 前端 / 区块浏览器可以监听\n\n // 参数:\n // user = 谁触发了 increment\n // value = incre |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| { | |
| "MyContract .sol": { | |
| "__sources__": {} | |
| }, | |
| "MyContract.sol": { | |
| "__sources__": { | |
| "MyContract.sol": { | |
| "content": "// SPDX-License-Identifier: MIT\r\n// SPDX 用于声明开源协议\r\n// MIT 是最常见的 Solidity 开源许可证\r\n\r\npragma solidity ^0.8.20;\r\n// 指定 Solidity 编译器版本\r\n// ^0.8.20 表示:\r\n// >=0.8.20 且 <0.9.0 都可以编译\r\n\r\ncontract MyContract {\r\n // contract = 智能合约\r\n // 类似 Java 里的 class\r\n // 部署后会生成一个链上地址\r\n\r\n // =========================================================\r\n // 1. State Variable(状态变量)\r\n // =========================================================\r\n\r\n uint public count;\r\n // uint = 无符号整数\r\n // public = 自动生成 getter 读取函数\r\n // count 会永久存储在区块链 storage 中\r\n\r\n // =========================================================\r\n // 2. Event(事件)\r\n // =========================================================\r\n\r\n event Increment(address user, uint value);\r\n // event = 链上日志系统\r\n // 用于记录重要行为\r\n // 前端 / 区块浏览器可以监听\r\n\r\ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| ref: refs/heads/main |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| { | |
| "MyContract .sol": { | |
| "__sources__": {} | |
| }, | |
| "MyContract.sol": { | |
| "__sources__": { | |
| "MyContract.sol": { | |
| "content": "// SPDX-License-Identifier: MIT\r\n// SPDX 用于声明开源协议\r\n// MIT 是最常见的 Solidity 开源许可证\r\n\r\npragma solidity ^0.8.20;\r\n// 指定 Solidity 编译器版本\r\n// ^0.8.20 表示:\r\n// >=0.8.20 且 <0.9.0 都可以编译\r\n\r\ncontract MyContract {\r\n // contract = 智能合约\r\n // 类似 Java 里的 class\r\n // 部署后会生成一个链上地址\r\n\r\n // =========================================================\r\n // 1. State Variable(状态变量)\r\n // =========================================================\r\n\r\n uint public count;\r\n // uint = 无符号整数\r\n // public = 自动生成 getter 读取函数\r\n // count 会永久存储在区块链 storage 中\r\n\r\n // =========================================================\r\n // 2. Event(事件)\r\n // =========================================================\r\n\r\n event Increment(address user, uint value);\r\n // event = 链上日志系统\r\n // 用于记录重要行为\r\n // 前端 / 区块浏览器可以监听\r\n\r\ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| { | |
| "MyContract .sol": { | |
| "__sources__": {} | |
| }, | |
| "MyContract.sol": { | |
| "__sources__": { | |
| "MyContract.sol": { | |
| "content": "// SPDX-License-Identifier: MIT\r\n// SPDX 用于声明开源协议\r\n// MIT 是最常见的 Solidity 开源许可证\r\n\r\npragma solidity ^0.8.20;\r\n// 指定 Solidity 编译器版本\r\n// ^0.8.20 表示:\r\n// >=0.8.20 且 <0.9.0 都可以编译\r\n\r\ncontract MyContract {\r\n // contract = 智能合约\r\n // 类似 Java 里的 class\r\n // 部署后会生成一个链上地址\r\n\r\n // =========================================================\r\n // 1. State Variable(状态变量)\r\n // =========================================================\r\n\r\n uint public count;\r\n // uint = 无符号整数\r\n // public = 自动生成 getter 读取函数\r\n // count 会永久存储在区块链 storage 中\r\n\r\n // =========================================================\r\n // 2. Event(事件)\r\n // =========================================================\r\n\r\n event Increment(address user, uint value);\r\n // event = 链上日志系统\r\n // 用于记录重要行为\r\n // 前端 / 区块浏览器可以监听\r\n\r\ |