Skip to content

Commit

Permalink
add a package dumper
Browse files Browse the repository at this point in the history
  • Loading branch information
0xOmarA committed Apr 26, 2024
1 parent 0f10ad8 commit 9834400
Show file tree
Hide file tree
Showing 5 changed files with 384 additions and 4 deletions.
12 changes: 12 additions & 0 deletions Cargo.lock

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

7 changes: 4 additions & 3 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ members = [
"libraries/address-macros",
# Tools
"tools/publishing-tool",
"tools/package-dumper",
# Tests
"testing/tests",
"testing/stateful-tests"
Expand Down Expand Up @@ -55,9 +56,6 @@ panic = 'abort'
strip = true
overflow-checks = true

[workspace.lints.clippy]
arithmetic_side_effects = "warn"

[patch.'https://github.com/radixdlt/radixdlt-scrypto']
sbor = { git = "https://www.github.com/radixdlt/radixdlt-scrypto.git", rev = "4887c5e4be2603433592ed290b70b1a0c03cced3" }
utils = { git = "https://www.github.com/radixdlt/radixdlt-scrypto.git", rev = "4887c5e4be2603433592ed290b70b1a0c03cced3" }
Expand All @@ -73,3 +71,6 @@ radix-engine-interface = { git = "https://www.github.com/radixdlt/radixdlt-scryp
radix-engine-store-interface = { git = "https://www.github.com/radixdlt/radixdlt-scrypto.git", rev = "4887c5e4be2603433592ed290b70b1a0c03cced3" }
scrypto-unit = { git = "https://www.github.com/radixdlt/radixdlt-scrypto.git", rev = "4887c5e4be2603433592ed290b70b1a0c03cced3" }
scrypto-test = { git = "https://www.github.com/radixdlt/radixdlt-scrypto.git", rev = "4887c5e4be2603433592ed290b70b1a0c03cced3" }

[workspace.lints.clippy]
arithmetic_side_effects = "warn"
1 change: 0 additions & 1 deletion testing/stateful-tests/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,6 @@ use common::prelude::*;
use extend::*;
use publishing_tool::database_overlay::*;
use publishing_tool::publishing::*;
use publishing_tool::utils::to_json;
use radix_engine::system::system_modules::*;
use radix_engine::transaction::*;
use radix_engine::vm::*;
Expand Down
18 changes: 18 additions & 0 deletions tools/package-dumper/Cargo.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
[package]
name = "package-dumper"
description = "A cli tool for dumping packages from a node to the local file system."
version.workspace = true
edition.workspace = true

[dependencies]
sbor = { workspace = true }
radix-engine-interface = { workspace = true }
radix-engine-store-interface = { workspace = true }

state-manager = { workspace = true }

flate2 = { version = "1.0.28" }
clap = { version = "4.5.1", features = ["derive"] }

[lints]
workspace = true
Loading

0 comments on commit 9834400

Please sign in to comment.