开源推荐
morning
GitHub 热门项目:Shardeum
摘要
GitHub项目:shardeum 仓库地址:https://github。
network
the
and
shardus
https
2026-05-19
1 阅读
GitHub Trending
GitHub 项目:Shardeum
仓库地址:https://github.com/shardeum/shardeum
星级:31448 | 作者:shardeum
项目描述:Shardeum是一个基于EVM的自动扩容区块链
===================================================
自述文件内容:
# 重要通知:
- 请勿尝试从源连接到测试网络。
-访问 https://gitlab.com/shardeum/validator/dashboard 并使用它
- 本地测试可能还不能很好地运行。我们稍后会更新相关信息
- 目前此存储库的最佳用途是能够查看代码
# 熟悉 Shardus
## 设置
### 预安装
确保您已安装并配置以下内容(我们建议使用 [nvm](https://github.com/nvm-sh/nvm)/[nvm-windows](https://github.com/coreybutler/nvm-windows) 来管理您的 Node.js 和 npm 版本):
- Node.js (10.x.x)
- npm (6.x.x)
- git
然后,安装[此处](https://www.npmjs.com/package/node-gyp#installation)列出的平台的“node-gyp”依赖项。
在 Ubuntu 上,它是这样的:
````
$ sudo apt update && sudo apt install python2.7 make g++
$ npm 配置设置 python python2.7
````
### 安装
````
$ npm i -g git+https://gitlab.com/shardus/enterprise/tools/shardus-cli.git
$ shardus init myApp https://gitlab.com/shardus/enterprise/applications/coin-app-template.git
$ cd myApp
````
## 在单个节点上迭代
1. 对 `index.ts` 和/或 `client.js` 进行代码更改
2. 启动 `seed-node-server`、`monitor-server` 和您的 `index.ts` 服务器:
````
$ npm 开始
````
3. 与“index.ts”服务器交互:
````
$ 节点客户端.js
$客户$帮助
...
````
4. 停止`seed-node-server`和`monitor-server`,并清理残留的运行文件:
````
$ npm stop && npm run clean
````
重复直到实现所需的行为...
## 测试节点网络
1. 使用“index.ts”服务器的多个实例创建本地测试网络:
````
$ shardus 网络创建 --default
(使用提示的默认设置)...
$ cd 实例
````
2. 启动本地测试网络:
````
$ shardus网络启动
````
3. 与您的网络互动:
````
$ 节点../client.js
$客户$帮助
...
````
4. 停止网络:
````
$ shardus 网络停止
````
5. 清理上次运行的数据库和日志:
````
$ shardus 网络干净
````
# 贡献
请阅读此贡献[指南](./CONTRIBUTING.md)。