【文件属性】:
文件名称:trustbase:智能合约平行链与Polkadot和以太坊互操作
文件大小:1.67MB
文件格式:ZIP
更新时间:2021-02-17 14:09:50
smart-contracts substrate polkadot trustbase-client Rust
信任库
trustbase的trustbase客户端实现,智能合约的底物兼容链。
设定环境
使用单个命令安装所有必需的依赖项
curl https://getsubstrate.io -sSf | bash -s -- --fast
从源代码构建
设置开发环境后,构建信任库客户端。
cargo build --release
用法
要运行本地开发节点,请执行
cargo run --release -- --dev
要运行本地网络,请执行
cargo run --release -- --chain local
要运行testnet1,请执行
cargo run --release
或者
cargo run --release -- --chain=./res/trust_cc1.json
TrustBase网络
此仓库支持trustcc1的trustbase运行时。
通过运行以下命
【文件预览】:
trustbase-master
----runtime()
--------Cargo.toml(10KB)
--------src()
--------build.rs(769B)
----Cargo.toml(366B)
----inspect()
--------Cargo.toml(864B)
--------src()
----rpc()
--------Cargo.toml(2KB)
--------src()
----src()
--------main.rs(695B)
----rpc-client()
--------Cargo.toml(573B)
--------src()
----scripts()
--------init.sh(225B)
----file_header.txt(773B)
----executor()
--------Cargo.toml(3KB)
--------src()
--------tests()
--------benches()
----primitives()
--------Cargo.toml(1KB)
--------src()
----LICENSE(34KB)
----cli()
--------Cargo.toml(8KB)
--------src()
--------build.rs(2KB)
--------res()
----README.md(925B)
----.gitignore(102B)