Skip to content

Instantly share code, notes, and snippets.

View niziming's full-sized avatar
🏠
Working from home

Simeon Ngai niziming

🏠
Working from home
View GitHub Profile
@niziming
niziming / .deps...npm....resolution-index.json
Created May 13, 2026 03:46
Created using remix-ide: Realtime Ethereum Contract Compiler and Runtime. Load this file by pasting this gists URL or ID at https://remix.ethereum.org/#version=soljson-v0.8.20+commit.a1b79de6.js&optimize=undefined&runs=200&gist=
{
"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
@niziming
niziming / .deps...npm....resolution-index.json
Created May 13, 2026 03:46
Created using remix-ide: Realtime Ethereum Contract Compiler and Runtime. Load this file by pasting this gists URL or ID at https://remix.ethereum.org/#version=soljson-v0.8.20+commit.a1b79de6.js&optimize=undefined&runs=200&gist=
{
"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
@niziming
niziming / .deps...npm....resolution-index.json
Created May 13, 2026 03:46
Created using remix-ide: Realtime Ethereum Contract Compiler and Runtime. Load this file by pasting this gists URL or ID at https://remix.ethereum.org/#version=soljson-v0.8.20+commit.a1b79de6.js&optimize=undefined&runs=200&gist=
{
"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
@niziming
niziming / .deps...npm....resolution-index.json
Created May 13, 2026 03:45
Created using remix-ide: Realtime Ethereum Contract Compiler and Runtime. Load this file by pasting this gists URL or ID at https://remix.ethereum.org/#version=soljson-v0.8.20+commit.a1b79de6.js&optimize=undefined&runs=200&gist=
{
"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
@niziming
niziming / .deps...npm....resolution-index.json
Created May 13, 2026 03:45
Created using remix-ide: Realtime Ethereum Contract Compiler and Runtime. Load this file by pasting this gists URL or ID at https://remix.ethereum.org/#version=soljson-v0.8.20+commit.a1b79de6.js&optimize=undefined&runs=200&gist=
{
"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
@niziming
niziming / .deps...npm....resolution-index.json
Created May 12, 2026 10:47
Created using remix-ide: Realtime Ethereum Contract Compiler and Runtime. Load this file by pasting this gists URL or ID at https://remix.ethereum.org/#version=soljson-v0.8.20+commit.a1b79de6.js&optimize=undefined&runs=200&gist=
{
"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\
@niziming
niziming / .git...HEAD
Created May 12, 2026 10:46
Created using remix-ide: Realtime Ethereum Contract Compiler and Runtime. Load this file by pasting this gists URL or ID at https://remix.ethereum.org/#version=soljson-v0.8.20+commit.a1b79de6.js&optimize=undefined&runs=200&gist=
ref: refs/heads/main
@niziming
niziming / .deps...npm....resolution-index.json
Created May 12, 2026 10:40
Created using remix-ide: Realtime Ethereum Contract Compiler and Runtime. Load this file by pasting this gists URL or ID at https://remix.ethereum.org/#version=soljson-v0.8.20+commit.a1b79de6.js&optimize=undefined&runs=200&gist=
{
"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\
@niziming
niziming / .deps...npm....resolution-index.json
Created May 12, 2026 10:40
Created using remix-ide: Realtime Ethereum Contract Compiler and Runtime. Load this file by pasting this gists URL or ID at https://remix.ethereum.org/#version=soljson-v0.8.20+commit.a1b79de6.js&optimize=undefined&runs=200&gist=
{
"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\