MCPcopy Index your code
hub / github.com/Sharders/sharder-chain

github.com/Sharders/sharder-chain @v2.0.0

Chat with this repo
repository ↗ · DeepWiki ↗ · release v2.0.0 ↗ · + Follow
7,827 symbols 28,539 edges 666 files 859 documented · 11%
What it actually does AI analysis from the code graph — generated when you open this
loading…
README

Sharder

Sharder is a blockchain-based multi-chain storage network.

Project Structure

Java project,the UI uses the vue.

sharder-chain           // project root 
    |- classes/         // compiled class files 
    |- conf/            // configuration files 
    |- lib/             // 3rd party or required library 
    |- html/            // compiled UI html file
    |- logs/            // logs 
    |- sharder_*_db/    // sharder-chain database
    |- src/             // sharder-chain source code 
    |- ui/              // UI source code 
    |- run.sh           // shell for linux and osx 
    |- run.bat          // bat for windows 
    |- 3RD-PARTY-LICENSES  
    |- LICENSE 
    |- README.md

NOTE:If you manually specify the compiled directory, you must then set the compiled directory to the above classes folder. Otherwise, the run.sh and run.bat files will not run normally.

Running the Sharder Client

You can use the following methods to run the client: * Method one

    1. Download the client from [official site](https://sharder.org) according to your OS.
    2. Install the client on your computer.
    3. Run the client program.
  • Method two
    1. Clone this project to your local disk.
    2. Modify the conf/sharder.properties to set the network attribute to `sharder.network=$NETWORK`. The values of $NETWORK are: `Testnet` or `Mainnet`, the default value is `Testnet`.
    3. Enter the UI folder and run `npm run build` to compile UI files, the location of compiled files is at `html` folder。
    4. Set the `src` as the source code folder, add the `conf` into project as the resource folder, finish the project compilation.
    5. Run the `Main` method of `org.conch.Conch` or execute the `run.sh/run.bat` to start the Sharder Client.
    

Open the ports

Client can join the network after open the follow ports:

Testnet
TCP/UDP: 7217,7218,4001,8088
HTTP:  7215,9001

Mainnet
TCP/UDP: 3217,3218,4001,8088
HTTP:  3215,9001

Start Mining

Please read the MINER-GUIDE.md

Follow Us

  • Website: https://sharder.org
  • Twitter: @SharderChain
  • Telegram: https://t.me/sharder_talk
  • Medium: https://medium.com/@SharderChain
  • Github: https://github.com/Sharders/sharder-chain
  • Wechat: supersharder

豆匣

豆匣是多链架构区块链存储网络。

工程说明

Java工程,UI使用vue。

sharder-chain           // 工程根目录 
    |- classes/         // 编译后的源文件 
    |- conf/            // 配置文件
    |- lib/             // 第三方或则依赖的代码库
    |- html/            // 编译后的UI文件
    |- logs/            // 日志 
    |- sharder_*_db/    // 数据库
    |- src/             // 源代码
    |- ui/              // UI源代码
    |- run.sh           // linux和osx操作系统的启动脚本 
    |- run.bat          // windows操作系统的启动脚本
    |- 3RD-PARTY-LICENSES  
    |- LICENSE 
    |- README.md

注意:如果你手动指定编译目录的话,需要将编译目录设置到上面的classes文件夹,否则run.sh和run.bat无法正常运行。

运行豆匣客户端

你可以采用下面两种方式运行豆匣客户端: * 方式一

    1. 在[官网](https://sharder.org)下载对应操作系统的客户端
    2. 安装豆匣客户端
    3. 运行豆匣客户端
  • 方式二
    1. 将本工程克隆到本地磁盘
    2. 在conf/sharder.properties设置连入的网络`sharder.network=$NETWORK`。$NETWORK可以设置为`Testnet`或`Mainnet`,默认值为`Testnet`。
    3. 进入ui目录,运行`npm run build`编译ui文件。编译出的ui文件位于`html`文件夹。
    4. 将`src`设置为源文件目录,将`conf`加入工程作为资源目录,完成工程的编译。
    5. 运行org.conch.Conch中的main方法,或则运行`run.sh/run.bat`以启动客户端。
    

Open the ports

需要开放如下端口,节点才能连入网络:

测试网
TCP/UDP: 7217,7218,4001,8088
HTTP:  7215,9001

主网
TCP/UDP: 3217,3218,4001,8088
HTTP:  3215,9001

开始挖矿

请阅读MINER-GUIDE.md

关注我们

  • 官方网站: https://sharder.org
  • Twitter: @SharderChain
  • Telegram: https://t.me/sharder_talk
  • Medium: https://medium.com/@SharderChain
  • Github: https://github.com/Sharders/sharder-chain
  • 微信: 豆匣咨讯

Extension points exported contracts — how you extend this code

Lock (Interface)
Lock interface [6 implementers]
src/main/java/org/conch/util/ReadWriteUpdateLock.java
UrlConnectionInitializer (Interface)
连接初始化器 [81 implementers]
src/main/java/org/conch/util/RestfulHttpClient.java
QueryTransactionsHandler (Interface)
handler for querying transactions @author CloudSen [4 implementers]
src/main/java/org/conch/http/handler/QueryTransactionsHandler.java
Fee (Interface)
(no doc) [6 implementers]
src/main/java/org/conch/tx/Fee.java
Observable (Interface)
(no doc) [23 implementers]
src/main/java/org/conch/util/Observable.java

Core symbols most depended-on inside this repo

put
called by 2840
src/main/java/org/conch/util/RestfulHttpClient.java
get
called by 1330
src/main/java/org/conch/db/DbIterator.java
add
called by 476
src/main/java/org/conch/storage/TaggedData.java
getLong
called by 459
src/main/java/org/conch/http/ParameterParser.java
getParameter
called by 410
src/main/java/org/conch/http/Airdrop.java
getBlockchain
called by 404
src/main/java/org/conch/Conch.java
setLong
called by 403
src/main/java/org/conch/db/DbUtils.java
logDebugMessage
called by 400
src/main/java/org/conch/util/Logger.java

Shape

Method 6,571
Class 857
Function 298
Enum 65
Interface 36

Languages

Java96%
TypeScript4%

Modules by API surface

src/main/java/org/conch/tx/Attachment.java541 symbols
src/main/java/org/conch/tx/TransactionType.java202 symbols
src/main/java/org/conch/tx/Appendix.java199 symbols
src/main/java/org/conch/account/Account.java166 symbols
src/main/java/org/conch/market/DigitalGoodsStore.java125 symbols
src/main/java/org/conch/peer/Peers.java96 symbols
src/main/java/org/conch/consensus/poc/PocTemplate.java96 symbols
src/main/java/org/conch/http/Airdrop.java94 symbols
src/main/java/org/conch/mint/pool/SharderPoolProcessor.java91 symbols
src/main/java/org/conch/tx/TransactionImpl.java90 symbols
src/main/java/org/conch/consensus/poc/tx/PocTxBody.java88 symbols
src/main/java/org/conch/peer/PeerImpl.java84 symbols

For agents

$ claude mcp add sharder-chain \
  -- python -m otcore.mcp_server <graph>

⬇ download graph artifact