Skip to content

Commit

Permalink
[proof-of-solvency] Add diem-assets-proof CLI tool
Browse files Browse the repository at this point in the history
Adds a small CLI tool for collecting and aggregating a VASPs current
on-chain assets (including parent VASP and child VASP accounts) into
an easily digestible json output via public-facing Diem json-rpc
services.

Closes: #7998
  • Loading branch information
phlip9 authored and bors-libra committed Mar 23, 2021
1 parent 229eaf7 commit ef6c719
Show file tree
Hide file tree
Showing 5 changed files with 702 additions and 0 deletions.
16 changes: 16 additions & 0 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 2 additions & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
[workspace]

members = [
"client/assets-proof",
"client/faucet",
"client/json-rpc",
"client/swiss-knife",
Expand Down Expand Up @@ -166,6 +167,7 @@ default-members = [
"config/management/operational",
"config/seed-peer-generator",
"consensus/safety-rules",
"client/assets-proof",
"client/faucet",
"client/swiss-knife",
"execution/db-bootstrapper",
Expand Down
25 changes: 25 additions & 0 deletions client/assets-proof/Cargo.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
[package]
name = "diem-assets-proof"
version = "0.1.0"
authors = ["Diem Association <opensource@diem.com>"]
description = "Diem Proof-of-Assets CLI"
repository = "https://github.com/diem/diem"
homepage = "https://diem.com"
license = "Apache-2.0"
publish = false
edition = "2018"

[dependencies]
anyhow = "1.0.38"
serde = { version = "1.0.124", default-features = false }
serde_json = "1.0.64"
structopt = "0.3.21"

bcs = "0.1.2"
diem-client = { path = "../../sdk/client", features = ["blocking"], default-features = false }
diem-crypto = { path = "../../crypto/crypto" }
diem-types = { path = "../../types" }
move-core-types = { path = "../../language/move-core/types" }

[dev-dependencies]
diem-workspace-hack = { path = "../../common/workspace-hack" }
Loading

0 comments on commit ef6c719

Please sign in to comment.